ORACLE重建密码文件

    技术2022-05-20  56

    SQL> alter database mount;alter database mount*ERROR 位于第 1 行:ORA-01991: ???????'d:/oracle/ora92/DATABASE/PWDjoseph.ORA'

    ============================================================================

    重建数据库之后,在启动的过程中出现了这个错误,密码文件它不认了。哎

    重启数据库也无济于事,于是只好重建密码文件了。

    首先,删除现在的密码文件,这个文件的位置上面的1991错误已经告诉你地址了。

    SQL> host del d:/oracle/ora92/DATABASE/PWDjoseph.ORA

    在删除密码文件之后,就要重建密码文件了。重设SYS账号的密码是sys

    SQL> host orapwd file=d:/oracle/ora92/DATABASE/PWDjoseph.ORA password=sys entries=10;

    这样就可以了。重启数据库,没有报错,可以打开了。

    ORAPWD参数给大家介绍一些

    C:/Documents and Settings/jiao>orapwdUsage: orapwd file=<fname> password=<password> entries=<users>

    where    file - name of password file (mand),    password file 位置    password - password for SYS (mand), 要修改的SYS新密码    entries - maximum number of distinct DBA and OPERs (opt),允许最大同时在线的数量There are no spaces around the equal-to (=) character. 等号和后面的字符之间没有空格存在

    orapwd file=d:/oracle/ora92/DATABASE/PWDjoseph.ORA password=sys entries=10;

     

    本文来自博客,转载请标明出处:http://blog.csdn.net/hbdys/archive/2009/12/11/4987043.aspx


    最新回复(0)