oracle 中的口令更改,如何更改internal的口令?oracle8中。

如果是Unix,那你必须有Oracle DBA组的password,以便能修改INIT.ORA文件和运行orapwd.在你决定修改internal的password的时候,你必须先shutdown db.否则下次你将不能启动Oracle.

1, shutdown db

2, delete or rename the old password file.(在$Oracle_Home/dbs/下有个文件,类似PWD.ora这样的文件)

3,运行

orapwd file=$Oracle_Home/dbs/pwdxxx.ora password=oracle entries=5

4, ensure to set REMOTE_LOGIN_PASSWORDFILE=EXCLUSIVE in init.ora file

5, $>svrmgrl

svrmgrl>connect internal/oracle as sysdba

svrmgrl>startup

svrmgrl>alter sys (或则是system)都可以了。

这样你就可以完全修改以前的dba的password.

如果是NT,步骤基本一样,但第3不可以运行别的工具。例如:

ORADIM80 -delete -sid sid

ORADIM80 -new -sid sid -intpwd your_newpasswrd -maxuser n

To change the password of internal: Make sure that you have shutdown the database before you change the password. Do not remove or modify the password file if you have a database or instance mounted using

REMOTE_LOGIN_PASSWORDFILE=EXCLUSIVE(or SHARED). If you do, you will be unable to reconnect remotely using the password file. Even if you replace it, you cannot use the new password file, because the timestamp and checksums will be wrong.

The ORACLE_HOME\DATABASE\PWD.ORA file contains the internalpassword. This is a binary file and cannot be manually edited. The ORAPWDxx.EXE utility was created for DBAs who need to change the INTERNAL login password.

From the DOS prompt run:

orapwd file=c:\oracle_home\database\pwd.ora

In your case, for example it would be something like:

orapwd8 file=c:\orant\database\pwdorcl.ora password=oracle entries=5

FILE = Path and name of the password file. (mandatory)

Password = Password for SYS and INTERNAL. (Mandatory)

Entries = Maximum number of distinct DBAs and OPERs. (Optional, default=5)

There are no spaces around the equal-to <=> character.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值