网站公告列表

  没有公告

加入收藏
设为首页
联系站长
您现在的位置: 天盾数据恢复中心 >> 文章中心 >> 数据库技术 >> 文章正文
  系统损坏情况下恢复 Oracle 10g 数据库           ★★★ 【字体:
系统损坏情况下恢复 Oracle 10g 数据库
作者:hww    文章来源:本站原创    点击数:    更新时间:2007-7-23    

环境:oracle10g,操作系统5.2

数据库系统在rootvg下/oracle文件系统下

数据文件在datavg下/oradata文件系统下

控制文件在 $/ORACLE_HOME/dbs/一个和/oradata下两个

重做日志文件在 $/ORACLE_HOME/dbs/和/oradata下每组日志文件各一个,共三组

有最新spfile文件备份。

1、rootvg损坏,重新安装操作系统。

2、安装oracle数据库系统文件

3、恢复spfile文件到$/ORACLE_HOME/dbs/下

4、startup nomount,出现错误提示,建立$/ORACLE_BASE/hb052500/cdump 和udump

5、startup nomount,出现错误提示

SQL> startup nomountORA-00444: background process "MMAN" failed while startingORA-07446: sdnfy: bad value '' for parameter .ORA-07446 sdnfy: bad value 'string' for parameter string.Cause: The directory specified as the value for the stated parameter could notbe used.Action: Make sure the directory you have specified is a valid directory/filespecification.

6、建立pfile文件

SQL> create pfile from spfile;File created. F

7、查看pfile文件,按照pfile文件中列出的路径,建立相应路径后台进程目录和归档目录

*.log_archive_dest_1='LOCATION=/oracle/app/oracle/OraHome/dbs/archive'*.background_dump_dest='/oracle/app/oracle/admin/hb052500/bdump'$ cd $/ORACLE_BASE/hb052500/$ lscdump udump$ mkdir bdump$ cd $ORACLE_HOME/dbs/$ lshb052500 init.ora inithb052500.orahc_hb052500.dat initdw.ora spfilehb052500.ora$ mkdir archive

8、startup nomount成功

$ sqlplus /nologSQL*Plus: Release 10.1.0.2.0 - Production on Sun Oct 16 21:23:17 2005Copyright (c) 1982, 2004, Oracle. All rights reserved.SQL> conn / as sysdbaConnected to an idle instance.SQL> startup nomount;ORACLE instance started.Total System Global Area 289406976 bytesFixed Size 1328912 bytesVariable Size 262387952 bytesDatabase Buffers 25165824 bytesRedo Buffers 524288 bytesSQL>
ase mount,出现错误提示

SQL> alter database mount;alter database mount*ERROR at line 1:ORA-01990: error opening password file '/oracle/app/oracle/OraHome/dbs/orapw'ORA-27037: unable to obtain file statusIBM AIX RISC System/6000 Error: 2: No such file or directoryAdditional information: 3

10、建立口令文件

orapwd file=$ORACLE_HOME/dbs/orapwd.ora password=oracle

11、

SQL> alter database mount;alter database mount*ERROR at line 1:ORA-01100: database already mountedSQL> alter database open;alter database open*ERROR at line 1:ORA-38760: This database instance failed to turn on flashback databaseSQL> alter database flashback off;Database altered.SQL> alter database open;Database altered.SQL> archive log list;Database log mode Archive ModeAutomatic archival EnabledArchive destination /oracle/app/oracle/OraHome/dbs/archiveOldest online log sequence 614Next log sequence to archive 616Current log sequence 616SQL>

文章录入:hww    责任编辑:hww 
  • 上一篇文章:

  • 下一篇文章: 没有了
  • 发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口
    最新热点 最新推荐 相关文章
    最简便的备份MySQL数据库的方
    怎样进行Oracle数据库性能完
    关于暴力破解的原理和破解经
    安全工具下载恶意程序3448.c
    存储过程中数据安全问题的最
    解析不同存储环境下的数据保
    Kvsc3.exe、Kvsc3.dll病毒查
    arp病毒危害与ARP病毒清除方
    感染型病毒Trojan-Downloade
    copy.exe病毒 硬盘双击打不开
      网友评论:(只显示最新10条。评论内容只代表网友观点,与本站立场无关!)
    Copyright © 2006 huifu119.com, All rights reserved. 站长: