Oracle忘记用户名密码怎么办?
发布网友
发布时间:2022-03-30 10:29
我来回答
共2个回答
热心网友
时间:2022-03-30 11:58
登录到安装oracle数据库服务器的操作系统。打开命令窗口;
查看环境变量ORACLE_SID的设置情况:
windows: echo %ORACLE_SID%
linux: echo $ORACLE_SID
设置环境变量ORACLE_SID的值为你想登录的oracle实例的SID:
set ORACLE_SID=orcl
键入命令:sqlplus / as sysdba
就可以以sysdba的身份登录到oracle了!
linux系统下,如果找不到sqlplus命令的话,请切换到oracle用户。
在sqlplus窗口执行命令:
alter user you_username identified by you_password;
就可以修改你的用户的密码了~
Oracle Database,又名Oracle RDBMS,或简称Oracle。是甲骨文公司的一款关系数据库管理系统。它是在数据库领域一直处于领先地位的产品。可以说Oracle数据库系统是目前世界上流行的关系数据库管理系统,系统可移植性好、使用方便、功能强,适用于各类大、中、小、微机环境。它是一种高效率、可靠性好的 适应高吞吐量的数据库解决方案。
热心网友
时间:2022-03-30 13:16
对于oracle10g来说:1.如果不记得sys用户的密码了,采用如下方法可以修改密码:
(1)打开cmd,输入sqlplus /nolog,回车。
(2)输入“conn / as sysdba”;
(3)输入“alter user sys identified by 新密码;”(新密码必须以字母开头,另外每条SQL语句后得分号不能忘)
其他用户方式同理2.(1)在cmd中启动sqlplus; (2)用sqlplus/as sysdba登录,使其连接到: Oracle Database 10g Express Edition Release 10.2.0.1.0 - Proction (3)执行ALTER USER DBSNMP ACCOUNT UNLOCK; (4) 从新用SQL/PLUS登录,设置用户名、密码; 附:Oracle 10g 默认安装带来的用户名/密码 UsernamePasswordDescriptionSee AlsoCTXSYSCTXSYSThe Oracle Text accountOracle Text ReferenceDBSNMPDBSNMPThe account used by the Management Agent component of Oracle Enterprise Manager to monitor and manage the databaseOracle Enterprise Manager Grid Control Installation and Basic ConfigurationLBACSYSLBACSYSThe Oracle Label Security administrator accountOracle Label Security Administrator's GuideMDDATAMDDATAThe schema used by Oracle Spatial for storing Geocoder and router dataOracle Spatial User's Guide and ReferenceMDSYSMDSYSThe Oracle Spatial and Oracle interMedia Locator administrator accountOracle Spatial User's Guide and ReferenceDMSYSDMSYSThe Oracle Data Mining account.Oracle Data Mining Administrator's GuideOracle Data Mining ConceptsOLAPSYSMANAGERThe account used to create OLAP metadata structures. It owns the OLAP Catalog (CWMLite).Oracle OLAP Application Developer's GuideORDPLUGINSORDPLUGINSThe Oracle interMedia user. Plug-ins supplied by Oracle and third party format plug-ins are installed in this schema.Oracle interMedia User's GuideORDSYSORDSYSThe Oracle interMedia administrator accountOracle interMedia User's GuideOUTLNOUTLNThe account that supports plan stability. Plan stability enables you to maintain the same execution plans for the same SQL statements. OUTLN acts as a role to centrally manage metadata associated with stored outlines.Oracle Database Performance Tuning GuideSI_INFORMTN_SCHEMASI_INFORMTN_SCHEMAThe account that stores the information views for the SQL/MM Still Image StandardOracle interMedia User's GuideSYSCHANGE_ON_INSTALLThe account used to perform database administration tasksOracle Database Administrator's GuideSYSMANCHANGE_ON_INSTALLThe account used to perform Oracle Enterprise Manager database administration tasks. Note that SYS and SYSTEM can also perform these tasks.Oracle Enterprise Manager Grid Control Installation and Basic ConfigurationSYSTEMMANAGERAnother account used to perform database administration tasks.