從客戶端連線ASM例項

leon830216發表於2014-03-01
支援資料庫版本:10gR2、11gR2

1. 建立 ASM 例項密碼檔案

$ORACLE_HOME/dbs/orapw+ASM

2. 檢視初始化引數
show parameter remote_login_passwordfile

NAME                       TYPE    VALUE
-------------------------- ------- ------
remote_login_passwordfile  string  SHARED

3. 配置 ASM 例項靜態監聽
$ORACLE_HOME/network/admin/listener.ora
--
SID_LIST_LISTENER =
  (SID_LIST =
#    (SID_DESC =
#      (SID_NAME = PLSExtProc)
#      (ORACLE_HOME = /oracle/product/10.2.0/db_1)
#      (PROGRAM = extproc)
#    )
    (SID_DESC =
      (SID_NAME = +ASM)
      (ORACLE_HOME = /oracle/product/10.2.0/db_1)
    )
  )

LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    )
  )
--

4. 配置客戶端 tnsnames.ora
$ORACLE_HOME/network/admin/tnsnames.ora
--
asm =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 100.100.100.101)(PORT = 1521))
    )
    (CONNECT_DATA =
      (server = dedicated)
      (sid = +asm)
      (ur=a)
    )
  )
--

5. 登入
sqlplus sys/password@asm as sysdba(10g)

sqlplus sys/password@asm as sysasm(11g)

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/22558114/viewspace-1097580/,如需轉載,請註明出處,否則將追究法律責任。

相關文章