溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點(diǎn)擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

ORACLE 12C ADRCI-老司機(jī)的小技巧

發(fā)布時(shí)間:2020-08-04 05:18:36 來源:網(wǎng)絡(luò) 閱讀:1038 作者:roidba 欄目:關(guān)系型數(shù)據(jù)庫

DBA技巧類每日一文

查看數(shù)據(jù)庫日志的時(shí)候你還需要自己去找目錄么,學(xué)會(huì)使用ADRCI就好了。我一般會(huì)怎么用的,不妨你也試試啊。adrci 其實(shí)有很多我們可以研究的地方,help一下可以自學(xué)哦。

<roidb01:orcl:/home/oracle>$adrci

ADRCI: Release 12.1.0.2.0 - Production on Sat Dec 16 22:16:44 2017

Copyright (c) 1982, 2014, Oracle and/or its affiliates.  All rights reserved.

ADR base = "/u01/app/oracle"
adrci> show home
ADR Homes: 
diag/rdbms/orcl/orcl
diag/clients/user_oracle/host_530034364_82
diag/tnslsnr/roidb01/listener
adrci> set home diag/rdbms/orcl/orcl
adrci> show home
ADR Homes: 
diag/rdbms/orcl/orcl
adrci> show alert -tail -f 
2017-12-16 22:04:40.567000 +08:00
Thread 1 advanced to log sequence 214 (LGWR switch)
  Current log# 2 seq# 214 mem# 0: +DATADG/ORCL/ONLINELOG/group_2.263.954623037
ARC3: Standby redo logfile selected for thread 1 sequence 209 for destination LOG_ARCHIVE_DEST_2
Archived Log entry 1130 added for thread 1 sequence 213 ID 0x58d68eb4 dest 1:
ARC2: Standby redo logfile selected for thread 1 sequence 213 for destination LOG_ARCHIVE_DEST_2
2017-12-16 22:06:43.285000 +08:00
Destination LOG_ARCHIVE_DEST_2 is SYNCHRONIZED
LGWR: Standby redo logfile selected for thread 1 sequence 215 for destination LOG_ARCHIVE_DEST_2
Thread 1 advanced to log sequence 215 (LGWR switch)
  Current log# 3 seq# 215 mem# 0: +DATADG/ORCL/ONLINELOG/group_3.264.954623041
Archived Log entry 1135 added for thread 1 sequence 214 ID 0x58d68eb4 dest 1:
2017-12-16 22:06:51.692000 +08:00
Thread 1 cannot allocate new log, sequence 216
Checkpoint not complete
  Current log# 3 seq# 215 mem# 0: +DATADG/ORCL/ONLINELOG/group_3.264.954623041
2017-12-16 22:06:53.389000 +08:00
LGWR: Standby redo logfile selected for thread 1 sequence 216 for destination LOG_ARCHIVE_DEST_2
Thread 1 advanced to log sequence 216 (LGWR switch)
  Current log# 1 seq# 216 mem# 0: +DATADG/ORCL/ONLINELOG/group_1.262.954623021
Thread 1 cannot allocate new log, sequence 217
Checkpoint not complete
  Current log# 1 seq# 216 mem# 0: +DATADG/ORCL/ONLINELOG/group_1.262.954623021
Archived Log entry 1137 added for thread 1 sequence 215 ID 0x58d68eb4 dest 1:
2017-12-16 22:06:56.405000 +08:00
LGWR: Standby redo logfile selected for thread 1 sequence 217 for destination LOG_ARCHIVE_DEST_2
Thread 1 advanced to log sequence 217 (LGWR switch)
  Current log# 2 seq# 217 mem# 0: +DATADG/ORCL/ONLINELOG/group_2.263.954623037
LGWR: Standby redo logfile selected for thread 1 sequence 218 for destination LOG_ARCHIVE_DEST_2
Thread 1 advanced to log sequence 218 (LGWR switch)
  Current log# 3 seq# 218 mem# 0: +DATADG/ORCL/ONLINELOG/group_3.264.954623041
Archived Log entry 1140 added for thread 1 sequence 216 ID 0x58d68eb4 dest 1:
Archived Log entry 1141 added for thread 1 sequence 217 ID 0x58d68eb4 dest 1:
^CDIA-48223: Interrupt Requested - Fetch Aborted - Return Code [1] [ALERT_EXT]

adrci> 
adrci> 
adrci> exit
<roidb01:orcl:/home/oracle>$adrci

ADRCI: Release 12.1.0.2.0 - Production on Sat Dec 16 22:17:47 2017

Copyright (c) 1982, 2014, Oracle and/or its affiliates.  All rights reserved.

ADR base = "/u01/app/oracle"
adrci> show alert -tail -f
DIA-48449: Tail alert can only apply to single ADR home

adrci> show home
ADR Homes: 
diag/rdbms/orcl/orcl
diag/clients/user_oracle/host_530034364_82
diag/tnslsnr/roidb01/listener
adrci> set home diag/rdbms/orcl/orcl
adrci> show alert -tail -f
2017-12-16 22:04:40.567000 +08:00
Thread 1 advanced to log sequence 214 (LGWR switch)
  Current log# 2 seq# 214 mem# 0: +DATADG/ORCL/ONLINELOG/group_2.263.954623037
ARC3: Standby redo logfile selected for thread 1 sequence 209 for destination LOG_ARCHIVE_DEST_2
Archived Log entry 1130 added for thread 1 sequence 213 ID 0x58d68eb4 dest 1:
ARC2: Standby redo logfile selected for thread 1 sequence 213 for destination LOG_ARCHIVE_DEST_2
2017-12-16 22:06:43.285000 +08:00
Destination LOG_ARCHIVE_DEST_2 is SYNCHRONIZED
LGWR: Standby redo logfile selected for thread 1 sequence 215 for destination LOG_ARCHIVE_DEST_2
Thread 1 advanced to log sequence 215 (LGWR switch)
  Current log# 3 seq# 215 mem# 0: +DATADG/ORCL/ONLINELOG/group_3.264.954623041
Archived Log entry 1135 added for thread 1 sequence 214 ID 0x58d68eb4 dest 1:
2017-12-16 22:06:51.692000 +08:00
Thread 1 cannot allocate new log, sequence 216
Checkpoint not complete
  Current log# 3 seq# 215 mem# 0: +DATADG/ORCL/ONLINELOG/group_3.264.954623041
2017-12-16 22:06:53.389000 +08:00
LGWR: Standby redo logfile selected for thread 1 sequence 216 for destination LOG_ARCHIVE_DEST_2
Thread 1 advanced to log sequence 216 (LGWR switch)
  Current log# 1 seq# 216 mem# 0: +DATADG/ORCL/ONLINELOG/group_1.262.954623021
Thread 1 cannot allocate new log, sequence 217
Checkpoint not complete
  Current log# 1 seq# 216 mem# 0: +DATADG/ORCL/ONLINELOG/group_1.262.954623021
Archived Log entry 1137 added for thread 1 sequence 215 ID 0x58d68eb4 dest 1:
2017-12-16 22:06:56.405000 +08:00
LGWR: Standby redo logfile selected for thread 1 sequence 217 for destination LOG_ARCHIVE_DEST_2
Thread 1 advanced to log sequence 217 (LGWR switch)
  Current log# 2 seq# 217 mem# 0: +DATADG/ORCL/ONLINELOG/group_2.263.954623037
LGWR: Standby redo logfile selected for thread 1 sequence 218 for destination LOG_ARCHIVE_DEST_2
Thread 1 advanced to log sequence 218 (LGWR switch)
  Current log# 3 seq# 218 mem# 0: +DATADG/ORCL/ONLINELOG/group_3.264.954623041
Archived Log entry 1140 added for thread 1 sequence 216 ID 0x58d68eb4 dest 1:
Archived Log entry 1141 added for thread 1 sequence 217 ID 0x58d68eb4 dest 1:
向AI問一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI