标签:pid pre cto x86 def rom ror value his
SYS@userdata>show parameter undo_tablespace; NAME TYPE VALUE ------------------------------------ --------------------------------- ------------------------------ undo_tablespace string UNDOTBS1 SYS@userdata>select file_name,tablespace_name,status from dba_data_files where tablespace_name=‘UNDOTBS1‘; FILE_NAME TABLESPACE_NAME STATUS ------------------------------------------------------------ ------------------------------------------------------------------------------------------ --------------------------- /u01/app/oracle/oradata/userdata/undotbs01.dbf UNDOTBS1 AVAILABLE SYS@userdata>host rm -rf /u01/app/oracle/oradata/userdata/undotbs01.dbf SYS@userdata>shutdown immediate; Database closed. Database dismounted. ORACLE instance shut down.
SYS@userdata>startup; ORACLE instance started. Total System Global Area 314572800 bytes Fixed Size 2083592 bytes Variable Size 255853816 bytes Database Buffers 50331648 bytes Redo Buffers 6303744 bytes Database mounted. ORA-01157: cannot identify/lock data file 2 - see DBWR trace file ORA-01110: data file 2: ‘/u01/app/oracle/oradata/userdata/undotbs01.dbf‘ SYS@userdata>show parameter back; NAME TYPE VALUE ------------------------------------ --------------------------------- ------------------------------ background_core_dump string partial background_dump_dest string /u01/app/oracle/admin/userdata /bdump backup_tape_io_slaves boolean FALSE db_flashback_retention_target integer 1440 fast_start_parallel_rollback string LOW rollback_segments string transactions_per_rollback_segment integer 5 SYS@userdata>host tail -n 10 /u01/app/oracle/admin/userdata/bdump/alert_userdata.log Mon Oct 2 10:53:58 2017 ALTER DATABASE OPEN Mon Oct 2 10:53:58 2017 Errors in file /u01/app/oracle/admin/userdata/bdump/userdata_dbw0_8121.trc: ORA-01157: cannot identify/lock data file 2 - see DBWR trace file ORA-01110: data file 2: ‘/u01/app/oracle/oradata/userdata/undotbs01.dbf‘ ORA-27037: unable to obtain file status Linux-x86_64 Error: 2: No such file or directory Additional information: 3 ORA-1157 signalled during: ALTER DATABASE OPEN...
SYS@userdata>alter database datafile 2 offline drop; Database altered.
SYS@userdata>alter system set undo_management=‘MANUAL‘ scope=spfile; System altered.
SYS@userdata>shutdown immediate; Database closed. Database dismounted. ORACLE instance shut down. SYS@userdata>startup; ORACLE instance started. Total System Global Area 314572800 bytes Fixed Size 2083592 bytes Variable Size 255853816 bytes Database Buffers 50331648 bytes Redo Buffers 6303744 bytes Database mounted. Database opened. SYS@userdata>show parameter undo; NAME TYPE VALUE ------------------------------------ --------------------------------- ------------------------------ undo_management string MANUAL undo_retention integer 900 undo_tablespace string UNDOTBS1
SYS@userdata>drop tablespace UNDOTBS1; Tablespace dropped. SYS@userdata>create undo tablespace undotbs1 datafile ‘/u01/app/oracle/oradata/userdata/undotbs01.dbf‘ size 100m autoextend on; Tablespace created.
SYS@userdata>alter system set undo_management=‘AUTO‘ scope=spfile; System altered. SYS@userdata>shutdown immediate; Database closed. Database dismounted. ORACLE instance shut down. SYS@userdata>startup; ORACLE instance started. Total System Global Area 314572800 bytes Fixed Size 2083592 bytes Variable Size 255853816 bytes Database Buffers 50331648 bytes Redo Buffers 6303744 bytes Database mounted. Database opened.
SYS@userdata>select name,status,enabled from v$datafile; NAME STATUS ENABLED -------------------------------------------------- --------------------- ------------------------------ /u01/app/oracle/oradata/userdata/system01.dbf SYSTEM READ WRITE /u01/app/oracle/oradata/userdata/undotbs01.dbf ONLINE READ WRITE /u01/app/oracle/oradata/userdata/sysaux01.dbf ONLINE READ WRITE /u01/app/oracle/oradata/userdata/users01.dbf ONLINE READ WRITE /u01/app/oracle/oradata/userdata/example01.dbf ONLINE READ WRITE
SYS@userdata>startup ORACLE instance started. Total System Global Area 314572800 bytes Fixed Size 2083592 bytes Variable Size 255853816 bytes Database Buffers 50331648 bytes Redo Buffers 6303744 bytes Database mounted. ORA-01157: cannot identify/lock data file 2 - see DBWR trace file ORA-01110: data file 2: ‘/u01/app/oracle/oradata/userdata/undotbs01.dbf‘ SYS@userdata>alter database datafile 2 offline drop; Database altered. SYS@userdata>alter system set undo_management=‘MANUAL‘ scope=spfile; System altered. SYS@userdata>shutdown immediate; ORA-01109: database not open Database dismounted. ORACLE instance shut down. SYS@userdata>startup; ORACLE instance started. Total System Global Area 314572800 bytes Fixed Size 2083592 bytes Variable Size 255853816 bytes Database Buffers 50331648 bytes Redo Buffers 6303744 bytes Database mounted. ORA-01092: ORACLE instance terminated. Disconnection forced
SYS@userdata>host tail -n 10 /u01/app/oracle/admin/userdata/bdump/alert_userdata.log Database Characterset is AL32UTF8 Mon Oct 2 11:20:10 2017 Errors in file /u01/app/oracle/admin/userdata/udump/userdata_ora_8444.trc: ORA-00604: error occurred at recursive SQL level 1 ORA-00376: file 2 cannot be read at this time ORA-01110: data file 2: ‘/u01/app/oracle/oradata/userdata/undotbs01.dbf‘ Error 604 happened during db open, shutting down database USER: terminating instance due to error 604 Instance terminated by USER, pid = 8444 ORA-1092 signalled during: ALTER DATABASE OPEN... SYS@userdata>host tail -n 10 /u01/app/oracle/admin/userdata/udump/userdata_ora_8444.trc Longest hash chain = 1 Average hash chain = 20/20 = 1.0 Max compares per lookup = 1 Avg compares per lookup = 95/195 = 0.5 ---------------------------------------------- tkcrrsarc: (WARN) Failed to find ARCH for message (message:0x1) tkcrrpa: (WARN) Failed initial attempt to send ARCH message (message:0x1) ORA-00604: error occurred at recursive SQL level 1 ORA-00376: file 2 cannot be read at this time ORA-01110: data file 2: ‘/u01/app/oracle/oradata/userdata/undotbs01.dbf‘
SYS@userdata>select ksppinm from x$ksppi where ksppinm like ‘%roll%‘; KSPPINM -------------------------------------------------- transactions_per_rollback_segment rollback_segments _rollback_segment_initial _rollback_segment_count _offline_rollback_segments _corrupted_rollback_segments _cleanup_rollback_entries _rollback_stopat fast_start_parallel_rollback _mv_rolling_inv 10 rows selected. SYS@userdata>alter system set "_offline_rollback_segments"=true scope=spfile; System altered. SYS@userdata>alter system set "_corrupted_rollback_segments"=‘_SYSSMU1$‘,‘_SYSSMU2$‘,‘_SYSSMU3$‘,‘_SYSSMU4$‘,‘_SYSSMU5$‘,‘_SYSSMU6$‘,‘_SYSSMU7$‘,‘_SYSSMU8$‘,‘_SYSSMU9$‘,‘_SYSSMU10$‘ scope=spfile; System altered. SYS@userdata>shutdown abort; ORACLE instance shut down. SYS@userdata>startup; ORACLE instance started. Total System Global Area 314572800 bytes Fixed Size 2083592 bytes Variable Size 255853816 bytes Database Buffers 50331648 bytes Redo Buffers 6303744 bytes Database mounted. Database opened.
SYS@userdata>drop tablespace UNDOTBS1; Tablespace dropped. SYS@userdata>create undo tablespace undotbs1 datafile ‘/u01/app/oracle/oradata/userdata/undotbs01.dbf‘ size 100m autoextend on; Tablespace created.
SYS@userdata>alter system set undo_management=‘AUTO‘ scope=spfile; System altered.
SYS@userdata>alter system set "_offline_rollback_segments"=default scope=spfile; System altered. SYS@userdata>alter system set "_corrupted_rollback_segments"=default scope=spfile; System altered.
SYS@userdata>shutdown immediate; Database closed. Database dismounted. ORACLE instance shut down. SYS@userdata>startup; ORACLE instance started. Total System Global Area 314572800 bytes Fixed Size 2083592 bytes Variable Size 255853816 bytes Database Buffers 50331648 bytes Redo Buffers 6303744 bytes Database mounted. Database opened. SYS@userdata>select name,status,enabled from v$datafile; NAME STATUS ENABLED -------------------------------------------------- --------------------- ------------------------------ /u01/app/oracle/oradata/userdata/system01.dbf SYSTEM READ WRITE /u01/app/oracle/oradata/userdata/undotbs01.dbf ONLINE READ WRITE /u01/app/oracle/oradata/userdata/sysaux01.dbf ONLINE READ WRITE /u01/app/oracle/oradata/userdata/users01.dbf ONLINE READ WRITE /u01/app/oracle/oradata/userdata/example01.dbf ONLINE READ WRITE
标签:pid pre cto x86 def rom ror value his
原文地址:http://www.cnblogs.com/ilifeilong/p/7619941.html