重建密码文件--解决ORA-01991错误
2007-01-28 12:41
323 查看
统计服务器测试没问题,刚好上次配置系统的时候有点问题,故重装一次,配置好安全策略(最近在研究如何新配置一台服务器的时候,第一时间配置好相关的安全设置,有空再写下来)。
为了省事,直接冷备份oracle的数据文件,安装好oracle后,直接恢复到原来对应的目录。启动,出现:
SQL> startup
ORACLE 例程已经启动。
Total System Global Area 135338868 bytes
Fixed Size 453492 bytes
Variable Size 109051904 bytes
Database Buffers 25165824 bytes
Redo Buffers 667648 bytes
ORA-01991: ???????'D:/oracle/ora92/DATABASE/PWDora9.ORA'
解决方法,由于未运行在归档模式下,使用orapwd重建oracle的密码文件:
C:/>orapwd /help
Usage: orapwd file= password=
entries=
where
file - name of password file (mand),
password - password for SYS (mand),
entries - maximum number of distinct DBA and OPERs (opt),
There are no spaces around the equal-to (=) character.
SQL> host del D:/oracle/ora92/DATABASE/PWDora9.ORA
SQL> host orapwd file=D:/oracle/ora92/DATABASE/PWDora9.ORA password=oraclepass e
ntries=10
SQL> alter database open;
数据库已更改。
重新登录的时候,应该输入旧数据库设定的密码;
更具体完全的恢复,可参考:
http://www.dbonline.cn/source/oracle/20031214/resume%20database%20example.html
其实,最近一年多解决了很多类似的问题,包括linux, oracle, windows server, cisco 路由,交换机,应用服务器..., 但很多,在网上都已经有现成的解决方法可以找到,故很少贴上来。
为了省事,直接冷备份oracle的数据文件,安装好oracle后,直接恢复到原来对应的目录。启动,出现:
SQL> startup
ORACLE 例程已经启动。
Total System Global Area 135338868 bytes
Fixed Size 453492 bytes
Variable Size 109051904 bytes
Database Buffers 25165824 bytes
Redo Buffers 667648 bytes
ORA-01991: ???????'D:/oracle/ora92/DATABASE/PWDora9.ORA'
解决方法,由于未运行在归档模式下,使用orapwd重建oracle的密码文件:
C:/>orapwd /help
Usage: orapwd file= password=
entries=
where
file - name of password file (mand),
password - password for SYS (mand),
entries - maximum number of distinct DBA and OPERs (opt),
There are no spaces around the equal-to (=) character.
SQL> host del D:/oracle/ora92/DATABASE/PWDora9.ORA
SQL> host orapwd file=D:/oracle/ora92/DATABASE/PWDora9.ORA password=oraclepass e
ntries=10
SQL> alter database open;
数据库已更改。
重新登录的时候,应该输入旧数据库设定的密码;
更具体完全的恢复,可参考:
http://www.dbonline.cn/source/oracle/20031214/resume%20database%20example.html
其实,最近一年多解决了很多类似的问题,包括linux, oracle, windows server, cisco 路由,交换机,应用服务器..., 但很多,在网上都已经有现成的解决方法可以找到,故很少贴上来。
相关文章推荐
- oracle ORA-01991错误--重建密码文件问题
- SCP 从堡垒机DUMP文件 密码错误解决办法
- 解决整合spring和mybatis后数据源配置文件读取错误,错误提示数据库用户名密码错误。
- Oracle错误——ORA-03113:通信通道的文件结尾 解决办法
- ORA-03113: 通信通道的文件结尾(错误解决)
- ORA-03113: 通信通道的文件结尾(错误解决)
- 解决win7访问xp共享的文件时,未知用户名或者密码错误的问题
- oracle异常:ORA-27101: shared memory realm does not exist ;ORA-03113: 通信通道的文件结尾(错误解决)
- 密码文件丢失导致不能登录pl/sql 错误 ora-01031 权限不足
- oralce日志文件无法归档错误ORA-16038解决方法
- Oracle错误——ORA-03113:通信通道的文件结尾 解决办法
- Oracle错误——ORA-03113:通信通道的文件结尾 解决办法
- 断电造成数据库文件损坏的解决方法,适用于ora-01122,ora-01110,ora-01207等错误
- 意外删除Oracle数据文件(dbf),恢复oralce库的解决办法--Oracle错误代码:ORA-01033
- ORA-03113: 通信通道的文件结尾(错误解决)
- Oracle错误——ORA-03113:通信通道的文件结尾 解决办法
- 解决Win访问局域网共享文件老是提示密码错误的问题
- 解决PLSQL导入表sql语句错误问题:ORA-01119:创建数据库文件时失败 ORA-27040::文件创建错误,无法创建文件
- win7下 分析tnsnames.ora文件失败 ServiceAliasException: 11 错误的解决办法
- ORA-01157错误,丢失undo tablespace中数据文件的解决方法