oracle 10g 遠端連線asm

來源:互聯網
上載者:User

標籤:lob   ice   靜態   ddr   DBName   部分   sqlplus   2.0   block   

asm遠端連線可能會遇到以下報錯:

ORA-12505 TNS:listener could not resolve SID given in connect descriptorORA-12541: TNS:no listenerORA-15000: command disallowed by current instance typeORA-12528: TNS:listener: all appropriate instances are blocking new connectionsORA-1031:   insufficient privileges

asm遠端連線配置如下:
參數配置:

remote_login_passwordfile = exclusive ... for stand alone ASM setupsremote_login_passwordfile = shared ... for ASM setups that also use Real Application Cluster (RAC)

節點1:

[[email protected] admin]$ cat listener.ora SID_LIST_LISTENER_prodb1 =  (SID_LIST =    (SID_DESC =      (SID_NAME = PLSExtProc)      (ORACLE_HOME = /u01/app/oracle/product/10.2.0/db_1)      (PROGRAM = extproc)     (SID_DESC =       (SID_NAME = +ASM1)         (GLOBAL_DBNAME  = +ASM)         (ORACLE_HOME = /u01/app/oracle/product/10.2.0/db_1)    )  )LISTENER_prodb1 =  (DESCRIPTION_LIST =    (DESCRIPTION =      (ADDRESS = (PROTOCOL = TCP)(HOST = prodb1-vip)(PORT = 1521)(IP = FIRST))      (ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.10.101)(PORT = 1521)(IP = FIRST))    )  )

節點2:

[[email protected] admin]$ cat listener.ora SID_LIST_LISTENER_prodb2 =  (SID_LIST =    (SID_DESC =      (SID_NAME = PLSExtProc)      (ORACLE_HOME = /u01/app/oracle/product/10.2.0/db_1)      (PROGRAM = extproc)     (SID_DESC =       (SID_NAME = +ASM2)         (GLOBAL_DBNAME  = +ASM)         (ORACLE_HOME = /u01/app/oracle/product/10.2.0/db_1)    )  )LISTENER_prodb2 =  (DESCRIPTION_LIST =    (DESCRIPTION =      (ADDRESS = (PROTOCOL = TCP)(HOST = prodb2-vip)(PORT = 1521)(IP = FIRST))      (ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.10.102)(PORT = 1521)(IP = FIRST))    )  )

用戶端tnsname.ora:

ASM1 =     (DESCRIPTION =       (ADDRESS_LIST =         (ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.10.101)(PORT = 1521))       )       (CONNECT_DATA =         (SERVICE_NAME = +ASM)      (UR=A)     )     )  ASM2 =     (DESCRIPTION =       (ADDRESS_LIST =         (ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.10.102)(PORT = 1521))       )       (CONNECT_DATA =         (SERVICE_NAME = +ASM)      (UR=A)     )     )ASM =     (DESCRIPTION =       (ADDRESS_LIST =         (ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.10.102)(PORT = 1521))         (ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.10.101)(PORT = 1521))     )       (CONNECT_DATA =         (SERVICE_NAME = +ASM)      (UR=A)     )     )

關鍵區段為 (UR=A),如果不配置該選項,則串連的時候報:

$ sqlplus sys/[email protected] as sysdbaSQL*Plus: Release 10.2.0.5.0 - Production on чǚ? 7? 5 21:44:30 2018Copyright (c) 1982, 2010, Oracle.  All Rights Reserved.ERROR:ORA-12528: TNS:listener: all appropriate instances are blocking new connections

UR=A選項通常用來串連使用nomount,mount或restricted模式啟動資料庫。

資料庫啟動到nomount,監聽狀態為BLOCKED;
資料庫啟動到mount,監聽狀態為READY;
資料庫啟動到restrict,監聽狀態為RESTRICT;
靜態註冊的asm為BLOCKED

參考自:How to connect to ASM instance from a remote client (Oracle Net) (文檔 ID 340277.1)

oracle 10g 遠端連線asm

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.