【翻译自mos文章】改变数据库用户sysman(该用户是DBControlRepository的schema)密码的方法(二)

2014-11-24 15:36:13 · 作者: · 浏览: 1
tory of the Enterprise Manager DB Control 的 schema

为了确保你是在正确的数据库中修改了sysman口令,请检查环境变量ORACLE_SID是否被设置,

对于 DB Control Release 11.2 以及更高版本来说,你需要将环境变量ORACLE_UNQNAME设置为数据库参数DB_UNIQUE_NAME 的值
你必须检查环境变量 ORACLE_HOME 是否被设置,PATH是否包括 正确的 $ORACLE_HOME/bin

请修改sysman口令时严格遵守如下的步骤,否则,你的DB Control 将会运行异常。

1.1.Stop the DB Control
On Unix
$ emctl stop dbconsole

On Windows
Stop the Windows Service OracleDBConsole
Or
Open a Command Window and type
C> emctl stop dbconsole

2. 确认 DB Control 已经被停止
On Unix
$ emctl status dbconsole

On Windows
Check the status of the Windows Service OracleDBConsole
Or
Open a DOS Command Window and type
C> emctl status dbconsole

3. 使用dba 权限登陆sqlplus,执行如下的语句:
SQL> alter user sysman identified by ;
4. 确认新密码:
SQL> connect sysman/[@database_alias]
5. 在database directory $ORACLE_HOME/bin目录中,执行:
On Unix
$ emctl setpasswd dbconsole
Provide the new SYSMAN password

On Windows
C>: emctl setpasswd dbconsole
Provide the new SYSMAN password

6.重启DB Control
On Unix
$ emctl start dbconsole

On Windows
Start the Windows Service OracleDBConsole
Or
Open a DOS Command Window and type
C>: emctl start dbconsole