internal的口令修改的意义是什么,怎么样修改?(已经改过SYSTEM和SYS用户的口令)

honeyoung 2002-06-17 04:54:33
SYSTEM和SYS用户的口令已经修改过了,INTERNAL的口令还有没有必要修改,如何修改呢?

数据库运行在UNIX下
...全文
45 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
honeyoung 2002-06-18
  • 打赏
  • 举报
回复
修改密码后,在客户端无法用SYS用户登陆

用新建密码文件替换原有密码文件后,是否会因为密码文件的状态被修改,与原系统状态不一致,从而造成无法在客户端用SYS/INTERNAL用户登陆呢?

刚刚查到这样一端资料:
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.

如果是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

如果在修改之前,没有SHUTDOWN,应如何挽救才好。


honeyoung 2002-06-18
  • 打赏
  • 举报
回复
修改密码后,在客户端无法用SYS用户登陆

用新建密码文件替换原有密码文件后,是否会因为密码文件的状态被修改,与原系统初始化参数不一致,从而造成无法在客户端用SYS/INTERNAL用户登陆
penitent 2002-06-18
  • 打赏
  • 举报
回复
8.1.7应当是orapwd
honeyoung 2002-06-18
  • 打赏
  • 举报
回复
大家再关注一下好吗?
honeyoung 2002-06-18
  • 打赏
  • 举报
回复
已经给分,但是由于网络问题,长时间没有响应,造成没有结贴。

有请斑竹大人代为处理。
newmcz 2002-06-17
  • 打赏
  • 举报
回复
u P
honeyoung 2002-06-17
  • 打赏
  • 举报
回复
在8.1.7版本下应该用哪个命令,orapwd还是orapwd80,password大写后,密码是否就是已经大写的,例如 password=ABCDEF,密码是否就是ABCDEF呢?
更改之后是否需要重新启动数据库?

我用了第一个方法更改之后,重新测试提示没连接接口驱动程序,是为什么?
bluecetacean 2002-06-17
  • 打赏
  • 举报
回复
实现方法:
用法:orapwd file= password= entries=
参数解释:
    file - name of password file (mand),
    password - password for SYS and INTERNAL (mand),
    entries - maximum number of distinct DBA and OPERs (opt),
    There are no spaces around the equal-to (=) character.

1、进入DOS下
2、默认internal密码文件在c:\orant\database下,是隐藏属性,文件名称与数据库实例名有关
  如默认ORACLE实例名为ORCL,则internal密码文件名为pwdorcl.ora
3、建立新的internal密码文件,起个新名字为pwdora8.ora
  orapwd80 file=pwdora8.ora password=B entries=5     --注:password项一定要用大写,并且不要用单引号
4、拷贝pwdora8.ora文件到c:\orant\database目录下
5、运行regedit,修改口令文件指向
6、找到HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE项
  定位ORA_ORCL_PWFILE子项,改变其值为c:\orant\database\pwdora8.ora
7、关闭ORACLE数据库,重新启动
8、进入svrmgr30服务程序,测试internal密码是否更改成功
penitent 2002-06-17
  • 打赏
  • 举报
回复
实现方法:
用法:orapwd file= password= entries=

参数解释:
    file - name of password file (mand),
    password - password for SYS and INTERNAL (mand),
    entries - maximum number of distinct DBA and OPERs (opt),
    There are no spaces around the equal-to (=) character.

在shell下
orapwd80 file=pwdora8.ora password=B entries=5     
--注:password项一定要用大写,并且不要用单引号
建立新的密码文件,覆盖老的密码文件
---------------------
internal的口令最好修改,因为它的权限太大了


2,596

社区成员

发帖
与我相关
我的任务
社区描述
Sybase相关技术讨论区
社区管理员
  • Sybase社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧