發表文章

目前顯示的是 5月, 2018的文章

RAC to ADG 出現 ORA-16086

環境 Solaris 11 Oracle 12.2.0.1 EE 異常   RAC to ADG 出現 ORA-16086 細節 建好ADG後, 查看同步狀態, 有一個 ORA-16086 錯誤 sys@HISDB:HISRAC1> @arcdest    INST_ID DEST STATUS    ERROR ---------- ---- --------- -----------------------------------------------------------------          1    1 VALID          1    2 VALID          1    3 VALID          2    1 VALID           2    2 ERROR     ORA-16086: Redo data cannot be written to the standby redo log          2    3 VALID 6 rows selected. NAME                 VALUE -------------------- ---------------------------------------------------------------------------------------------------- log_archive_dest_1   LOCATION=USE_DB_RECOVERY_FILE_DEST VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=HISDB log_archive_dest_2   service="hisdb_6f", SYNC AFFIRM delay=0 optional compression=disable max_failure=0 max_connections=1                       reopen=300 db_unique_name="hisdb_6f" net_timeout=30, valid_for=(online_l

11g client 連上 12c server, 出現 ora-28040

圖片
環境 Solaris 11 Oracle 12.2.0.1 EE 異常   開發人員使用 11g tools 連至 12c DB 時出現 ora-28040 細節 User 轉寄以下圖片 Workaround  這個很好查, 馬上就找到  12c: ORA-28040 After Upgrade: No Matching Authentication Protocol (Doc ID 1957995.1)  在 sqlnet.ora 加入以下字串 SQLNET.ALLOWED_LOGON_VERSION_SERVER=10 SQLNET.ALLOWED_LOGON_VERSION_CLIENT=10 有幾點要注意 1. 將數值設成低於 11, 也不代表一定支援那個版本的 client  2. 在RAC環境下, 有時必需重開 cluster service 3. 在 12cR1 預設值是 11, 在 12cR2 預設值是 12 4. 在 12c 已廢棄   SQLNET.ALLOWED_LOGON_VERSION

Windows rman backup to shared drive failed

環境 Windows 2003 Oracle 10.2.0.4 EE 異常   rman backup to shared drive failed 細節 中午接到南部業務轉來園區客戶的 mail , 附件有 rman backup log 如下 Recovery Manager: Release 10.2.0.4.0 - Production on Fri May 25 11:16:59 2018 Copyright (c) 1982, 2007, Oracle.  All rights reserved. connected to target database: ExxxDB (DBID=19xxx06) using target database control file instead of recovery catalog RMAN> run{ 2> backup format 'Y:\oracle\backup\df_full_%U%T.dmp' as compressed backupset database; 3> sql 'alter system archive log current'; 4> backup format 'Y:\oracle\backup\ar_full_%U%T.dmp' as compressed backupset archivelog all not backed up delete all input; 5> backup format 'Y:\oracle\backup\my_ControlSpfile_%U%T.dmp' current controlfile spfile; 6> } 7>  Starting backup at 25-MAY-18 allocated channel: ORA_DISK_1 channel ORA_DISK_1: sid=24 devtype=DISK channel ORA_DISK_1: starting compressed full datafile backupset channel ORA_DI

trace file 一直增加嗎 ?? 可能是遇到 bug 了 !!

環境 Linux 7.2 Oracle  12.1.0.2   異常   trace file 持續大量成長 細節 沒有安排行程的一天 先是遇到A客戶spatial index 有誤 再來是B客戶的 cluster 1 node 1 自動重啟後, 向 cluster 2 scan 註冊 還沒處理完, C客戶因為重建 index 也發生了 ORA-4031 最後, 高雄同事又問 trace file 一直增加 遠端連線看了一下, 果然如此 # ls -l  -rw-r-----. 1 oracle asmadmin  1810987 May 24 15:29 CATOSP1_m000_4177.trc -rw-r-----. 1 oracle asmadmin   650296 May 24 15:29 CATOSP1_m000_4177.trm -rw-r-----. 1 oracle asmadmin  1810987 May 24 15:28 CATOSP1_m000_3859.trc -rw-r-----. 1 oracle asmadmin   650263 May 24 15:28 CATOSP1_m000_3859.trm -rw-r-----. 1 oracle asmadmin  1809963 May 24 15:27 CATOSP1_m000_2615.trc -rw-r-----. 1 oracle asmadmin   650220 May 24 15:27 CATOSP1_m000_2615.trm -rw-r-----. 1 oracle asmadmin  3620892 May 24 15:26 CATOSP1_m000_2380.trc -rw-r-----. 1 oracle asmadmin  1300501 May 24 15:26 CATOSP1_m000_2380.trm -rw-r-----. 1 oracle asmadmin  1808910 May 24 15:25 CATOSP1_m000_2144.trc -rw-r-----. 1 oracle asmadmin   650201 May 24 15:25 CATOSP1_m000_2144.trm

10g RAC on Solaris cluster heart beat link down

圖片
2/21 link down  到場檢視, 發現主機網卡燈號不亮, 再循線編至相對應之 switch,  看到整台 switch 燈號皆不亮, 請 CIM 更換 switch  4/12 又發生 link error , 當日只發生一次, 後續沒再發生, 原本以為是個案 5/9 又發生 link error, 這次同事處理, 看到  switch 燈號呈現綠/橘色間閃爍, 請 CIM 將  switch 定速 (每次裝機時, CIM 都會請我們將主機網卡定速)  Input Errors 值, 就沒再增加

ADRCI 出現 ORA 7445 [npixfc()+216]

環境 Solaris 10 SPARC Oracle 11.2.0.4 EE  異常   ADRCI 出 現  ORA 7445 [npixfc()+216] 細節 adrci> show incident ADR Home = /oracle/app/diag/tnslsnr/oradb/listener: ************************************************************************* 0 rows fetched ADR Home = /oracle/app/diag/rdbms/dyu/dyu: ************************************************************************* INCIDENT_ID          PROBLEM_KEY                                                 CREATE_TIME -------------------- ----------------------------------------------------------- ---------------------------------------- 2680242              ORA 600 [HO define: Long fetch]                             2017-10-27 16:35:10.435000 +08:00 2680234              ORA 600 [HO define: Long fetch]                             2017-10-27 16:38:35.400000 +08:00 2680235              ORA 7445 [npixfc()+216]                                     2017-10-27 16:43:21.227000 +08:00 2680236              ORA 600 [HO define: Long fetc

12c ACFS 使用手冊

圖片
一般檢查 1. 在 Clinet PC 運作 X-window passive  (Moba Xterm 毋需此步 驟 )  2.  Login ACFS server, switch user to grid,   將環境變數 DISPLAY 導至 client PC ( 例如 , export DISPLAY=192.168.1.1:0.0) 3. run asmca 4.  檢查 Instance 4. 檢查 Disk Group 5. 檢查 Volumes 5. 檢查 ACFS File systems  建立 ACFS File systems 順序: 先建立 volume, 再建立 File system 1. 建立 Volume:  click <Create> on volume  2. 輸入 volume name 及 size 3. 完成  Volume 之建立 4.  建立 ACFS File systems

12c Cluster 的 NTP

(1).  OS NTP vs Oracle GI ctssd (Cluster Synchronization Service Daemon) OS 有設NTP , 則 GI ctssd 以 observer  模式啟動 OS 沒設 NTP,  , 則 GI ctssd 以 active  模式啟動 參考 https://community.toadworld.com/platforms/oracle/b/weblog/archive/2015/03/12/switching-ctssd-from-active-mode-to-observer-mode (2). 設定 NTP 微調式 (slew)修正時間 依 metalink Doc ID 1056693.1 , 在 Solaris 上的設定方式如下: Solaris 10: #  egrep 'slewalways|pll' /etc/inet/ntp.conf slewalways yes disable pll To set, modify the configuration file. Solaris 11: # svcprop -p config/slew_always svc:/network/ntp:default true To set: # svccfg -s svc:/network/ntp:default setprop config/slew_always = true 設定完成後, 以 下列兩個指令生效 (單純 stop/start 不會生效) # /usr/sbin/svcadm refresh ntp # /usr/sbin/svcadm restart ntp (3) 關於 NTP 微調式修正時間 文件同時提到, NTP 需以微調方式修正系統時間, 否則會出珼下列錯誤 但是在 Oracle 12c GI 上 沒出現此問題 $GRID_HOME/bin/cluvfy comp clocksync -n all .. Checking daemon liveness... Liveness check passed for "xntpd" PRVF-5436 :

12cRAC, 災演後, cluster 服務無法啟動

環境 Solaris 11 SPARC (LDOM) Oracle 12.2.0.1 EE RAC  異常   OS 重開後, GI 無法啟動,   osysmond.bin 也沒有啟動 細節 EMRRAC1 root@EMRRAC1:~# /oracle/app/grid/bin/crsctl start cluster CRS-2672: Attempting to start 'ora.crf' on 'emrrac1' CRS-2672: Attempting to start 'ora.cssd' on 'emrrac1' CRS-2672: Attempting to start 'ora.diskmon' on 'emrrac1' CRS-2676: Start of 'ora.diskmon' on 'emrrac1' succeeded CRS-2676: Start of 'ora.crf' on 'emrrac1' succeeded CRS-2674: Start of 'ora.cssd' on 'emrrac1' failed CRS-2679: Attempting to clean 'ora.cssd' on 'emrrac1' CRS-2681: Clean of 'ora.cssd' on 'emrrac1' succeeded CRS-2673: Attempting to stop 'ora.crf' on 'emrrac1' CRS-2677: Stop of 'ora.crf' on 'emrrac1' succeeded CRS-4000: Command Start failed, or completed with errors . EMRRAC2 root@EMRRAC2:~# /oracle/app/grid/bin/crsctl start

測試 Flex ASM

圖片
環境 Solaris 11 SPARC (LDOM) Oracle 12.2.0.1 EE RAC  測試   Flex ASM 簡單測試 細節 有機會使用4 nodes cluster, 測試 flex asm 的 instance failover 機制