重建ORACLE口令文件

来源:互联网 发布:下载p2p软件 编辑:程序博客网 时间:2024/04/27 23:36

重建ORACLE口令文件

如果原来的ORACLE数据库配置了口令文件,并且在mount数据库时报如下错误:

ORA_01990:error opening password file '/home/oracle/app/oracle/pdoduct/8.1.6/dbs...'

便可以在$ORACLE_HOME/dbs/pwd$ORACLE_SID.ora路径下用以下命令重新创建口令文件:
   orapwd          其用法如下:
    orapwd file=<fname>   password=<password>  enfries=<users>
    说明:file-name of password file(口令文件的命名方式为:orapwSID)(必须)
         password-password for SYSand INTERNAL(必须)
         enfries-maximum number of distinct DBA and OPERS(可选)
There are no spaces around the eaual to(=) charactor
Example:orapwd file=orapwora816 password=manager

重新创建好口令文件之后ORACLE就可以正常启动了。