当前位置:七道奇文章资讯数据防范Oracle防范
日期:2012-03-25 00:29:00  来源:本站整理

在操作系统破坏时恢复Oracle10g全历程[Oracle防范]

赞助商链接



  本文“在操作系统破坏时恢复Oracle10g全历程[Oracle防范]”是由七道奇为您精心收集,来源于网络转载,文章版权归文章作者所有,本站不对其观点以及内容做任何评价,请读者自行判断,以下是其具体内容:

  环境: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 nomount

  ORA-00444: background process "MMAN" failed while starting

  ORA-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 not

  be used.

  Action: Make sure the directory you have specified is a valid directory/file

  specification.

  6、成立pfile文件

  SQL> create pfile from spfile;

  File created.

  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/

  $ ls

  cdump udump

  $ mkdir bdump

  $ cd $ORACLE_HOME/dbs/

  $ ls

  hb052500 init.ora inithb052500.ora

  hc_hb052500.dat initdw.ora spfilehb052500.ora

  $ mkdir archive

  8、startup nomount成功.

  $ sqlplus /nolog

  SQL*Plus: Release 10.1.0.2.0 - Production on Sun Oct 16 21:23:17 2005

  Copyright (c) 1982, 2004, Oracle. All rights reserved.

  SQL> conn / as sysdba

  Connected to an idle instance.

  SQL> startup nomount;

  ORACLE instance started.

  Total System Global Area 289406976 bytes

  Fixed Size 1328912 bytes

  Variable Size 262387952 bytes

  Database Buffers 25165824 bytes

  Redo Buffers 524288 bytes

  SQL>

  9、alter database 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 status

  IBM AIX RISC System/6000 Error: 2: No such file or directory

  Additional 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 mounted

  SQL> alter database open;

  alter database open

  *

  ERROR at line 1:

  ORA-38760: This database instance failed to turn on flashback database

  SQL> alter database flashback off;

  Database altered.

  SQL> alter database open;

  Database altered.

  SQL> archive log list;

  Database log mode Archive Mode

  Automatic archival Enabled

  Archive destination /oracle/app/oracle/OraHome/dbs/archive

  Oldest online log sequence 614

  Next log sequence to archive 616

  Current log sequence 616

  SQL>


  以上是“在操作系统破坏时恢复Oracle10g全历程[Oracle防范]”的内容,如果你对以上该文章内容感兴趣,你可以看看七道奇为您推荐以下文章:
  • 在操作系统破坏时恢复Oracle10g全历程
  • 本文地址: 与您的QQ/BBS好友分享!
    • 好的评价 如果您觉得此文章好,就请您
        0%(0)
    • 差的评价 如果您觉得此文章差,就请您
        0%(0)

    文章评论评论内容只代表网友观点,与本站立场无关!

       评论摘要(共 0 条,得分 0 分,平均 0 分) 查看完整评论
    Copyright © 2020-2022 www.xiamiku.com. All Rights Reserved .