如何修改internal的口令?
软件环境:
1、Windows NT4.0+ORACLE 8.0.4
2、ORACLE安装路径为:C:\ORANT实现方法:
用法: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.ora3、建立新的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.ora7、关闭ORACLE数据库,重新启动8、进入svrmgr30服务程序,测试internal密码是否更改成功
软件环境:
1、Windows NT4.0+ORACLE 8.0.4
2、ORACLE安装路径为:C:\ORANT实现方法:
用法: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.ora3、建立新的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.ora7、关闭ORACLE数据库,重新启动8、进入svrmgr30服务程序,测试internal密码是否更改成功
1、cd $ORACLE_HOME/dbs
2、在该目录下键入
orapwd file=orapw password=
entries=
(其中的file必须为orapw在上SID的名字,password最好是sys的密码)
3、在init.ora文件中,加入
REMOTE_LOGIN_PASSWORDFILE=exclusive
4、重新启动数据库
注:曾经有人用上述方法不能在connect internal,但是我没碰到。
或者
alter user sys identified by xxx;
据说用这个方法改变了密码,即使再用第一个方法来更改一个不同的密码,但是internal的密码仍然和sys一样
平台:Windows NT
在NT下,有两个方法来保护internal/sys
1、通过ORA_DBA O/S用户组来限制进入internal/sys
2、通过sys密码来限制
改密码的方法:
orapwd file=C:\oracle\ora81\database\pwd.ora password=mypswd
或
改注册表
HKEY_LOCAL_MACHINE->SOFTWARE->ORACLE
DBA__AUTHORIZATION=BYPASS (<7.3.4 version)
DBA_AUTHORIZATION= ( Oracle 8.x)
或
直接改sys的密码
alter user sys identified by xxxx;
我认为internal用户就是sys用户。