Author: mac

  • 【データリカバリ】ROWIDを構造することで、バックアップなしにORA-1578、ORA-8103、ORA-1410などロジック/物理的なベッドブロックトラブルを避ける

    プロのOracle Databaseの復旧サービスを提供 携帯番号: +86 13764045638 メール:[email protected]   バックアップなしにORA-1578、ORA-8103、ORA-1410エラになると、以下のようなPL/SQLでROWIDを構造することで大部分の非ベッドブロックデータを救える。一般的に二つの状況に分けられる:インディクスががある場合とインディクスを使えなくて、dbms_rowid.ROWID_CREATEでROWIDを構造する必要がある場合である。   インディクスがある場合に対して、MOSのスクリプトをそのままに運用できる:     REM Create a new table based on the table that is producing errors with no rows: create table as select * from where 1=2; REM Create the table to keep track of ROWIDs pointing to affected rows: create table bad_rows (row_id rowid ,oracle_error_code…

  • 【Oracleデータリカバリ】ORA-08102エラを診断する

    プロのOracle Databaseの復旧サービスを提供 携帯番号: +86 13764045638 メール:[email protected]       [oracle@mlab2 ~]$ oerr ora 81020   8102, 00000, “index key not found, obj# %s, file %s, block %s (%s)”// *Cause:  Internal error: possible inconsistency in index// *Action:  Send trace file to your customer support representative, along//           with information on reproducing the error   ORA-8102エラが現れた原因はテーブルあるいはLOB SEGMENTでキー値が存在しているが、インディクスから見つからないとエラになる。 TRACEの部分は大体以下の通り:…

  • 【Oracleデータリカバリ】データブロック損害/ベッドブロック診断

    プロのOracle Databaseの復旧サービスを提供 携帯番号: +86 13764045638 メール:[email protected] ORACLEで現れる中データブロック損害/ベッドブロック診断corruptionがいろいろあるが症状に分けると、だいたいは以下の通り: ORA-01578エラ ORA-600[61xx]エラ ORA-600[3339]あるいはORA-600[3398] ORA-600[2130],ORA-600[2845],ORA-600[4147]エラなど SELECT で誤ったデータを探し出す   このようなトラブルに対して、以下のような方法を使ってください: 1、データベースが起動したままであれば、そのブロック損害/ベッドブロックが存在しているデータファイル番号、ブロック番号を判断する必要がある。そして具体的なオブジェクトの位置を探し出す(テーブルあるいはインディクス)。ORA-1578エラあるいはORA-600の変数情報を参考して、以下のようなSQLを使ってください。   SELECT tablespace_name, segment_type, owner, segment_nameFROM dba_extentsWHERE file_id = &fileidand &blockid between block_id AND block_id + blocks – 1;   2、前のステップに獲得したSEGMENT_TYPEを確認して、以下のSEGMENT_TYPEの場合は再構造できる: index データが獲得できるテーブルあるいは再構造できるテーブル SYSTEMというロールバックセグメントを除いたすべてのロールバックセグメント 順列セグメント, sort segment 一時的なテーブル     3、 ステップに挙げたものに属していなければ、以下の情報を確認してください: データベースはアーカイブモードか export /sqlldrを含んで、テーブルのバックアップデータがあるか NOT NULLに基づいたインディクスがあるか そのようなインディクスがあれば、UNIUQEか  …

  • 【Oracleデータリカバリ】ORA-01115、ORA-01110、ORA-27091、ORA-27070、OSD-04006、O/S-Error

    プロのOracle Databaseの復旧サービスを提供 携帯番号: +86 13764045638 メール:[email protected]   あるユーザーがwindows 2003のデータベースはストレージトラブルで、システムテーブルスペースにsystem.dbfがIOトラブルが現れた。データベースを起動するときに、エラになる:     ORA-01115: IO error reading block from file 15 ORA-01110: data file … ORA-27091: unable to queue I/O ORA-27070: async read/write failed OSD-04006: ReadFile() failure, unable to read from file O/S-Error: (OS 121) The semaphore timeout period has expired. 以上ORA-01115、ORA-01110、ORA-27091、ORA-27070、OSD-04006、O/S-Error などのエラが根本的にはOracleデータベースと関係ない。トラブルの本質はWindowsで該当するディスクドライブのファイルが読み取れない。これもOS bug あるいは該当するディスクに物理的なトラブルが現れた。このトラブルに対してOSの視角で解決策を求めてください。うまくいかない場合に、特別な解決策を考えてください。 ‘  …

  • 【Oracle数据恢复】ORA-00600:[2846]与ORA-01498

    当使用updatable snapshot且C_MLOG# cluster受损时可能出现   ORA-00600: internal error code, arguments: [2846], [1], [65535], [1], [8192], [8192] kdcchk: error when looking at index with key: col 0; len 16; (16): 43 4c 49 45 4e 54 5f 47 52 50 5f 45 4e 54 52 59 col 1; len 6; (6):44 41 44 4d 49 4e kdcchk:…

  • know more about ‘CSS initialization’

    know more about ‘CSS initialization’   ‘CSS initialization’ and other CSS registration events takes 8 seconds. If the slaves write to disk, then they need to register with CSS. This is unavoidable. If PCIX is run twice, the first run will do CSS registration. PCIX takes 20 seconds. The second run will not do CSS…

  • Know more about “os thread startup”

    Know more about “os thread startup”   ‘os thread startup’ takes significant amount of time in ‘create index parallel’. All slaves are allocated one by one in serial. SQL tracing on foreground, there is one ‘os thread startup’ wait per slave, each wait takes 100ms. –> May need investigation When there are 512 slaves, ‘os…

  • 【转】ASM Attributes Directory

    The ASM attributes directory – the ASM metadata file number 9 – contains the information about disk group attributes. The attributes directory exists only in disk groups with the COMPATIBLE.ASM (attribute!) set to 11.1 or higher.   Disk group attributes were introduced in ASM version 11.1[1] and can be used to fine tune the disk group…

  • 【转】ASM files number 10 and 11

    ASM metadata file number 10 is ASM user directory and ASM file number 11 is ASM group directory. These are supporting structures for ASM file access control feature. ASM file access control can be used to restrict file access to specific ASM clients (typically databases), based on the operating system effective user identification number of…

  • 【转】ASM file number 7

    ASM metadata file number 7 – volume directory – keeps track of files associated with ASM Dynamic Volume Manager (ADVM) volumes. An ADVM volume device is constructed from an ASM dynamic volume. One or more ADVM volume devices may be configured within each disk group. ASM Cluster File System (ACFS) is layered on ASM through…