Oracle Server - Enterprise Edition - Version: 11.2.0.0 and later [Release: 11.2 and later ]
Oracle ASM Configuration Assistant (ASMCA) can be used in silent command-line mode.
ASMCA supports only alias-based (net service name based) configuration for local_listener parameter.
This article demonstrates to configure local_listener parameter with ASMCA in silent mode.
步骤如下:
ASMCA supports only alias-based (net service name based) configuration for local_listener parameter.
If you configure local_listener parameter with the network address, ASMCA fails as follows.
$ asmca -silent -configureParameter -param LOCAL_LISTENER='(ADDRESS=(PROTOCOL=TCP)(HOST=hostname)(PORT=port number))'
Invalid value passed for -param option: Expected format
<paramname>=<paramvalue>
1. open tnsnames.ora with text editor, and prepare net service names to be used for local_listener parameter.
net_service_name = (ADDRESS = (PROTOCOL = TCP)(HOST = hostname)(PORT = port number))
2. run ASMCA as follows
$ asmca -silent -configureParameter -param LOCAL_LISTENER=net_service_name
Parameter LOCAL_LISTENER configured successfully.
参考:
BUG:9714623 - ASMCA DOES NOT UNDERSTAND THE VALUE '(ADDRESS=(PROTOCOL...)' FOR LOCAL_LISTENER
From Oracle
-------------------------------------------------------------------------------------------------------
Blog: http://blog.csdn.net/tianlesoftware
Email: [email protected]
DBA1 群:62697716(满); DBA2 群:62697977(满) DBA3 群:62697850(满)
DBA 超级群:63306533(满); DBA4 群: 83829929 DBA5群: 142216823
聊天 群:40132017 聊天2群:69087192
--加群需要在备注说明Oracle表空间和数据文件的关系,否则拒绝申请