alter database disable thread 2
rac改單例項
15:34:21 sys@kk>select * from v$log; GROUP# THREAD# SEQUENCE# BYTES BLOCKSIZE MEMBERS ARC STATUS FIRST_CHANGE# FIRST_TIME NEXT_CHANGE# NEXT_TIME ---------- ---------- ---------- ---------- ---------- ---------- --- ---------------- ------------- ------------------- ------------ ------------------- 1 1 1063 1073741824 512 1 YES INACTIVE 4.3077E+11 2019-12-26 13:11:48 4.3077E+11 2019-12-26 13:49:57 2 1 1064 1073741824 512 1 YES INACTIVE 4.3077E+11 2019-12-26 13:49:57 4.3077E+11 2019-12-26 14:27:54 3 1 1065 1073741824 512 1 YES INACTIVE 4.3077E+11 2019-12-26 14:27:54 4.3077E+11 2019-12-26 15:02:15 4 1 1066 1073741824 512 1 YES INACTIVE 4.3077E+11 2019-12-26 15:02:15 4.3077E+11 2019-12-26 15:02:16 5 1 1067 1073741824 512 1 NO CURRENT 4.3077E+11 2019-12-26 15:02:16 2.8147E+14 6 1 1059 1073741824 512 1 YES INACTIVE 4.3076E+11 2019-12-26 10:38:45 4.3076E+11 2019-12-26 11:16:48 7 1 1060 1073741824 512 1 YES INACTIVE 4.3076E+11 2019-12-26 11:16:48 4.3077E+11 2019-12-26 11:55:03 8 1 1061 1073741824 512 1 YES INACTIVE 4.3077E+11 2019-12-26 11:55:03 4.3077E+11 2019-12-26 12:33:24 11 1 1062 1073741824 512 1 YES INACTIVE 4.3077E+11 2019-12-26 12:33:24 4.3077E+11 2019-12-26 13:11:48 12 2 0 1073741824 512 1 YES UNUSED 0 0 14 2 0 1073741824 512 1 YES UNUSED 0 0 17 3 0 1073741824 512 1 YES UNUSED 0 0 18 3 0 1073741824 512 1 YES UNUSED 0 0 Elapsed: 00:00:00.01 15:03:23 sys@kk>alter database drop logfile group 12; alter database drop logfile group 12 * ERROR at line 1: ORA-01623: log 12 is current log for instance kk2 (thread 2) - cannot drop ORA-00312: online log 12 thread 2: '/data1/KK/onlinelog/o1_mf_12_gxzp37z3_.log'
alter database disable thread 2;
15:34:25 sys@kk>alter database drop logfile group 12;
Database altered.
select thread#,status from v$thread; THREAD# STATUS ---------- ------ 1 OPEN 2 CLOSED #需要disable alter database disable thread 2;
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29990276/viewspace-2670766/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- alter database in OracleDatabaseOracle
- alter database datafile offline and alter database tablespace ...offlineDatabase
- alter database create datafileDatabase
- alter database create datafile '' as ''Database
- alter database和alter system和alter session的區別DatabaseSession
- alter database open resetlogs;Database
- alter database offline 與 alter database offline drop效果比對Database
- alter table modify constraint_disable_enable_novalidateAI
- Oracle11gr2新增ALTER DATABASE LINK語法OracleDatabase
- ALTER DATABASE RESETLOGS 的作用Database
- DATA GUARD 中alter database 命令Database
- ALTER DATABASE DATAFILE OFFLINEDatabase
- ALTER DATABASE 與 ALTER TABLESPACE OFFLINE的區別Database
- 忍不住問下alter system 和alter database的區別Database
- Oracle DBA命令參考——alter databaseOracleDatabase
- ALTER DATABASE CLEAR UNARCHIVED LOGFILE的使用DatabaseHive
- alter database ... create datafile的原理及用途Database
- alter database datafile 4 offline drop;Database
- 恢復一則 alter database create datafile '' as ''Database
- alter database datafile offline drop 與 alter tablespace drop datafile 區別Database
- Alter database datafile resize ORA-03297 原因解析Database
- UNRECOVERABLE DATAFILE clause in the ALTER DATABASE CLEAR LOGFILE statementDatabase
- VMS: ALTER TABLESPACE/DATABASE TO RENAME FILES on VMS [ID 9560.1]Database
- alter database datafile .... offline drop的問題Database
- alter database backup controlfile to trace的問題Database
- 在alter database mount時的一點收穫Database
- alter database backup controlfile to trace的含義Database
- 重建控制檔案--alter database backup controlfile to traceDatabase
- alter database drop datafile 與 drop tablespace file 的區別Database
- alter database datafile offline drop相關問題Database
- ORA-279 signalled during: alter database recover logfileDatabase
- 425alter database force logging修改那裡Database
- 部署 11G 物理DataGuard時 ALTER DATABASE OPEN 報錯Database
- ARC1: Thread not mounted lead to database not mountingthreadDatabase
- ORA-1113 signalled during: alter database open...Database
- Oracle設定日誌引數-ALTER DATABASE ADD SUPPLEMENTAL LOG DATA;OracleDatabase
- Thread2(C#)threadC#
- Oracle OCP 1Z0 053 Q559(Alter Database Begin Backup)OracleDatabase