亚洲激情专区-91九色丨porny丨老师-久久久久久久女国产乱让韩-国产精品午夜小视频观看

溫馨提示×

溫馨提示×

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

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

oracle11g RAC啟動歸檔模式的示例分析

發布時間:2021-11-30 11:07:26 來源:億速云 閱讀:206 作者:柒染 欄目:關系型數據庫

今天就跟大家聊聊有關oracle11g RAC啟動歸檔模式的示例分析,可能很多人都不太了解,為了讓大家更加了解,小編給大家總結了以下內容,希望大家根據這篇文章可以有所收獲。

根據客戶要求,需要將歸檔日志存放在ASM上。因此需要在ASM建歸檔路徑

ASMCMD> mkdir arch

ASMCMD> cd arch

ASMCMD> pwd
+data1/kdcs/arch

修改歸檔路徑參數

SQL> alter system set log_archive_dest_1='location=+data1/kdcs/arch' scope=spfile sid='*';

System altered.

關閉數據庫,全部節點都要關閉

[grid@zhcs-db1 ~]$ srvctl stop database -d kdcs

檢查數據庫關閉后狀態

[grid@zhcs-db1 ~]$ crsctl stat res -t
--------------------------------------------------------------------------------
NAME           TARGET  STATE        SERVER                   STATE_DETAILS      
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.DATA1.dg
               ONLINE  ONLINE       zhcs-db1                                    
               ONLINE  ONLINE       zhcs-db2                                    
ora.LISTENER.lsnr
               ONLINE  ONLINE       zhcs-db1                                    
               ONLINE  ONLINE       zhcs-db2                                    
ora.OCR_DISK.dg
               ONLINE  ONLINE       zhcs-db1                                    
               ONLINE  ONLINE       zhcs-db2                                    
ora.asm
               ONLINE  ONLINE       zhcs-db1                 Started            
               ONLINE  ONLINE       zhcs-db2                 Started            
ora.gsd
               OFFLINE OFFLINE      zhcs-db1                                    
               OFFLINE OFFLINE      zhcs-db2                                    
ora.net1.network
               ONLINE  ONLINE       zhcs-db1                                    
               ONLINE  ONLINE       zhcs-db2                                    
ora.ons
               ONLINE  ONLINE       zhcs-db1                                    
               ONLINE  ONLINE       zhcs-db2                                    
ora.registry.acfs
               ONLINE  ONLINE       zhcs-db1                                    
               ONLINE  ONLINE       zhcs-db2                                    
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
      1        ONLINE  ONLINE       zhcs-db1                                    
ora.cvu
      1        OFFLINE OFFLINE                                                  
ora.kdcs.db
      1        OFFLINE OFFLINE                               Instance Shutdown  
      2        OFFLINE OFFLINE                               Instance Shutdown  
ora.kdcs.ser_scanip.svc
      1        OFFLINE OFFLINE                                                  
      2        OFFLINE OFFLINE                                                  
ora.oc4j
      1        ONLINE  ONLINE       zhcs-db2                                    
ora.scan1.vip
      1        ONLINE  ONLINE       zhcs-db1                                    
ora.zhcs-db1.vip
      1        ONLINE  ONLINE       zhcs-db1                                    
ora.zhcs-db2.vip
      1        ONLINE  ONLINE       zhcs-db2         

將一個節點數據庫啟動到mount狀態

[grid@zhcs-db1 ~]$ srvctl start instance -d kdcs -i kdcs1 -o mount

修改數據庫的歸檔模式并啟動數據庫

SQL> alter database archivelog;

Database altered.

SQL> alter database open;

Database altered.

檢查狀態
SQL> archive log list;
Database log mode              Archive Mode
Automatic archival             Enabled
Archive destination            +DATA1/kdcs/arch
Oldest online log sequence     86
Next log sequence to archive   87
Current log sequence           87
SQL>

啟動2節點數據庫

[grid@zhcs-db1 ~]$ srvctl start instance -d kdcs -i kdcs2

檢查集群狀態

[grid@zhcs-db1 ~]$ crsctl stat res -t
--------------------------------------------------------------------------------
NAME           TARGET  STATE        SERVER                   STATE_DETAILS      
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.DATA1.dg
               ONLINE  ONLINE       zhcs-db1                                    
               ONLINE  ONLINE       zhcs-db2                                    
ora.LISTENER.lsnr
               ONLINE  ONLINE       zhcs-db1                                    
               ONLINE  ONLINE       zhcs-db2                                    
ora.OCR_DISK.dg
               ONLINE  ONLINE       zhcs-db1                                    
               ONLINE  ONLINE       zhcs-db2                                    
ora.asm
               ONLINE  ONLINE       zhcs-db1                 Started            
               ONLINE  ONLINE       zhcs-db2                 Started            
ora.gsd
               OFFLINE OFFLINE      zhcs-db1                                    
               OFFLINE OFFLINE      zhcs-db2                                    
ora.net1.network
               ONLINE  ONLINE       zhcs-db1                                    
               ONLINE  ONLINE       zhcs-db2                                    
ora.ons
               ONLINE  ONLINE       zhcs-db1                                    
               ONLINE  ONLINE       zhcs-db2                                    
ora.registry.acfs
               ONLINE  ONLINE       zhcs-db1                                    
               ONLINE  ONLINE       zhcs-db2                                    
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
      1        ONLINE  ONLINE       zhcs-db1                                    
ora.cvu
      1        OFFLINE OFFLINE                                                  
ora.kdcs.db
      1        ONLINE  ONLINE       zhcs-db1                 Open               
      2        ONLINE  ONLINE       zhcs-db2                 Open               
ora.kdcs.ser_scanip.svc
      1        ONLINE  ONLINE       zhcs-db1                                    
      2        ONLINE  ONLINE       zhcs-db2                                    
ora.oc4j
      1        ONLINE  ONLINE       zhcs-db2                                    
ora.scan1.vip
      1        ONLINE  ONLINE       zhcs-db1                                    
ora.zhcs-db1.vip
      1        ONLINE  ONLINE       zhcs-db1                                    
ora.zhcs-db2.vip
      1        ONLINE  ONLINE       zhcs-db2                                    
[grid@zhcs-db1 ~]$

看完上述內容,你們對oracle11g RAC啟動歸檔模式的示例分析有進一步的了解嗎?如果還想了解更多知識或者相關內容,請關注億速云行業資訊頻道,感謝大家的支持。

向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

钦州市| 柞水县| 曲水县| 辽阳县| 贞丰县| 固原市| 库尔勒市| 宁南县| 六枝特区| 德化县| 合江县| 伊金霍洛旗| 克什克腾旗| 犍为县| 延川县| 尚义县| 垦利县| 儋州市| 桐梓县| 玛多县| 洛扎县| 疏附县| 谢通门县| 白河县| 苍溪县| 上饶县| 会同县| 宜宾县| 曲阜市| 始兴县| 安丘市| 洛阳市| 隆尧县| 巴中市| 奈曼旗| 松潘县| 万荣县| 北碚区| 三都| 土默特左旗| 高阳县|