亚洲精品中文字幕无乱码_久久亚洲精品无码AV大片_最新国产免费Av网址_国产精品3级片

Oracle認(rèn)證

Oracle認(rèn)證:Oracle控制件文件修復(fù)

時(shí)間:2024-10-05 11:27:18 Oracle認(rèn)證 我要投稿
  • 相關(guān)推薦

Oracle認(rèn)證:Oracle控制件文件修復(fù)

  查看文件頭SCN號(hào):

  SQL> select file#, checkpoint_change# from v;

  FILE# CHECKPOINT_CHANGE#

  1 18120070

  2 18120070

  3 18120070

  4 18120070

  5 18120070

  6 18120070

  7 18120070

  8 18120070

  9 18120070

  10 18120070

  11 18121207

  FILE# CHECKPOINT_CHANGE#

  12 18121196

  12 rows selected.

  查看控制文件SCN號(hào):

  SQL> select file#, checkpoint_change# from v;

  FILE# CHECKPOINT_CHANGE#

  1 18120070

  2 18120070

  3 18120070

  4 18120070

  5 18120070

  6 18120070

  7 18120070

  8 18120070

  9 18120070

  10 18120070

  11 18121207

  FILE# CHECKPOINT_CHANGE#

  12 18121196

  12 rows selected.

  SQL>

  當(dāng)數(shù)據(jù)文件SCN號(hào)大于控制文件scn號(hào),即會(huì)發(fā)生控制文件太久的提示,

  當(dāng)數(shù)據(jù)文件SCN號(hào)小于控制文件scn號(hào)時(shí), 則提示mediea recovery提示

  當(dāng)數(shù)據(jù)文件sCN號(hào)等于控制文件scn號(hào),正常啟動(dòng)實(shí)例

  SQL> alter database backup controlfile to trace as '/u01/Oracle/admin/ora9i/udump/c.trc';

  Database altered.

  SQL>

  /u01/Oracle/oradata/ora9i

  [oracle@test ora9i]$ rm control0*

  [oracle@test ora9i]$

  SQL> shutdown immediate;

  ORA-00210: cannot open the specified controlfile

  ORA-00202: controlfile: '/u01/Oracle/oradata/ora9i/control01.ctl'

  ORA-27041: unable to open file

  Linux Error: 2: No such file or directory

  Additional information: 3

  SQL> shutdown abort;

  ORACLE instance shut down.

  SQL>

  修改備份c.trc文件使用第一個(gè)sql

  STARTUP NOMOUNT

  CREATE CONTROLFILE REUSE DATABASE "ORA9I" NORESETLOGS ARCHIVELOG

  MAXLOGFILES 50

  MAXLOGMEMBERS 5

  MAXDATAFILES 100

  MAXINSTANCES 1

  MAXLOGHISTORY 226

  LOGFILE

  GROUP 1 '/u01/Oracle/oradata/ora9i/redo01.log' SIZE 100M,

  GROUP 2 '/u01/Oracle/oradata/ora9i/redo02.log' SIZE 100M,

  GROUP 3 '/u01/Oracle/oradata/ora9i/redo03.log' SIZE 100M

  DATAFILE

  '/u01/Oracle/oradata/ora9i/system01.dbf',

  '/u01/Oracle/oradata/ora9i/undotbs01.dbf',

  '/u01/Oracle/oradata/ora9i/cwmlite01.dbf',

  '/u01/Oracle/oradata/ora9i/drsys01.dbf',

  '/u01/Oracle/oradata/ora9i/example01.dbf',

  '/u01/Oracle/oradata/ora9i/indx01.dbf',

  '/u01/Oracle/oradata/ora9i/odm01.dbf',

  '/u01/Oracle/oradata/ora9i/tools01.dbf',

  '/u01/Oracle/oradata/ora9i/users01.dbf',

  '/u01/Oracle/oradata/ora9i/xdb01.dbf',

  '/u01/Oracle/oradata/ora9i/app2.dbf',

  '/u01/Oracle/oradata/ora9i/app1_01.dbf'

  CHARACTER SET ZHS16GBK

  ;

  # Configure RMAN configuration record 1

  VARIABLE RECNO NUMBER;

  EXECUTE :RECNO := SYS.DBMS_BACKUP_RESTORE.SETCONFIG('CONTROLFILE AUTOBACKUP','ON');

  # Recovery is required if any of the datafiles are restored backups,

  # or if the last shutdown was not normal or immediate.

  RECOVER DATABASE

  # All logs need archiving and a log switch is needed.

  ALTER SYSTEM ARCHIVE LOG ALL;

  # Database can now be opened normally.

  ALTER DATABASE OPEN;

  # Commands to add tempfiles to temporary tablespaces.

  # Online tempfiles have complete space information.

  # Other tempfiles may require adjustment.

  ALTER TABLESPACE TEMP ADD TEMPFILE '/u01/Oracle/oradata/ora9i/temp01.dbf' REUSE;

  # End of tempfile additions.

  #

【Oracle認(rèn)證:Oracle控制件文件修復(fù)】相關(guān)文章:

Oracle認(rèn)證簡(jiǎn)介08-05

Oracle認(rèn)證考試09-04

Oracle認(rèn)證途徑09-17

Oracle認(rèn)證人員09-14

Oracle認(rèn)證考試應(yīng)用08-30

Oracle認(rèn)證種類介紹07-21

Oracle認(rèn)證體系介紹01-30

Oracle認(rèn)證考試科目09-08

Oracle認(rèn)證基本介紹10-12

oracle認(rèn)證有哪些07-12