支持数据库版本: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)
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/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/22558114/viewspace-1097580/