Connecting to ASM through the TNS Listener from a Client Desktop
Contents
- Introduction
- Modify the listener.ora for the ASM Instances
- Add ASM Entries to the tnsnames.ora File on the Client Machine
- Bounce the TNS Listener
- Test Access to ASM from the Client Machine
- About the Author
Introduction
By default, the Oracle Database Configuration Assistant (DBCA) does not configure the TNS listener to accept client requests to an ASM instance running from a different node. Access will be denied for clients like SQL*Plus, Perl DBI:DBD, and JDBC when attempting to connect to an ASM instance from a node other than the node running the ASM instance. When the service is created for an ASM instance, its status is BLOCKED:
|
This limitation puts restrictions on scripts and other client tools that want to monitor and manage an ASM instance from a different node. Getting around this restriction however is an easy task that involves manually creating a service name for the ASM instance.
This article presents the steps required to access an ASM instance through the TNS listener from a client desktop. The database used in this article is a two-node Oracle RAC 10g clustered database where in fact there will two ASM instances (one ASM instance for each Oracle instance in the cluster). The database version is Oracle 10g Release 2 (10.2.0.3.0) running on CentOS 4.5 (or RHEL 4.5):
Node 1 | |
---|---|
Machine Name | linux1.idevelopment.info |
Oracle SID | orcl1 |
ASM SID | +ASM1 |
ASM Global DB Name (service name) | +ASM |
Node 2 | |
---|---|
Machine Name | linux2.idevelopment.info |
Oracle SID | orcl2 |
ASM SID | +ASM2 |
ASM Global DB Name (service name) | +ASM |
Modify the listener.ora for the ASM Instances
The first step is to modify the listener.ora file for the ORACLE_HOME running ASM on all nodes in the RAC cluster by adding a new service:
Node 1 - (listener.ora)
|
Node 2 - (listener.ora)
|
Add ASM Entries to the tnsnames.ora File on the Client Machine
The next step is to add ASM entries to the tnsnames.ora file on the client machine that will be connecting to the ASM instance(s). The client machine in this example is named alex.idevelopment.info. A separate tnsnames entry will be created for each ASM instance in the two-node RAC. The two tnsnames entries for this example are named ORCL1_ASM1 and ORCL2_ASM2:
Client Node - (tnsnames.ora)
|
Bounce the TNS Listener
The final step is to bounce the Oracle TNS Listener. Remember that the listener process will need to be bounced on both of the nodes in the RAC cluster:
|
After restarting the TNS listener, the new service should be available from both nodes in the RAC cluster:
|
Test Access to ASM from the Client Machine
After the new ASM service(s) have been added and the TNS listener successfully restarted, test access to the ASM instances from the client machine using SQL*Plus:
|
About the Author
Jeffrey Hunter is an Oracle Certified Professional, Java Development Certified Professional, Author, and an Oracle ACE. Jeff currently works as a Senior Database Administrator for The DBA Zone, Inc. located in Pittsburgh, Pennsylvania. His work includes advanced performance tuning, Java and PL/SQL programming, developing high availability solutions, capacity planning, database security, and physical / logical database design in a UNIX, Linux, and Windows server environment. Jeff's other interests include mathematical encryption theory, programming language processors (compilers and interpreters) in Java and C, LDAP, writing web-based database administration tools, and of course Linux. He has been a Sr. Database Administrator and Software Engineer for over 16 years and maintains his own website site at: http://www.iDevelopment.info. Jeff graduated from Stanislaus State University in Turlock, California, with a Bachelor's degree in Computer Science.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/13024285/viewspace-682259/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- ORA - 12502 TNS:listener received no CONNECT_DATA from clientclient
- TNS-12518: TNS:listener could not hand off client connectionclient
- TNS-12518 TNS listener could not hand off client connectionclient
- ORA-12518: TNS:listener could not hand off client connectionclient
- ORA-12518, TNS:listener could not hand off client connectionclient
- 記一次解決:TNS-12518: TNS:listener could not hand off client connectionclient
- TNS Listener Hang, New Child Listener Process Forked
- An error from listenerError
- TNS-12518: TNS:listener could not hand off client connection For ORACLE 10G (AIX6.1)clientOracle 10gAI
- TNS-12541: TNS:no listener錯誤處理
- TNS問題排查 The listener supports no services
- Intermittent TNS Listener Hang, New Child Listener Process Forked [ID 340091.1]MIT
- GoldenGate&ASM&Connecting to a 'BLOCKED' instanceGoASMBloC
- SQL*Net message from clientSQLclient
- SQL*Net more data from clientSQLclient
- How can I prevent users from connecting to a USB storage device?dev
- Oracle 12C ORA-12545 While Connecting to RAC through SCAN NameOracleWhile
- Listener refused the connection with the following error:ORA-12514, TNS:listenerError
- Oracle Database Server 'TNS Listener'遠端資料投毒漏洞OracleDatabaseServer
- ORA-12541: TNS:no listener (DBD ERROR: OCIServerAttach) (轉)ErrorServer
- Move datafile:From File System to ASMASM
- Move datafile:From ASM to File SystemASM
- ASM例項配置監聽和TNSASM
- How to Setup SCAN Listener and Client for TAF and Load Balancingclient
- RMAN Duplicate Database From RAC ASM To RAC ASM [ID 461479.1]DatabaseASM
- Duplicate database from non ASM to ASM to a different host [ID 382669.1]DatabaseASM
- Duplicate Database from ASM to Non- ASM Database Using RMANDatabaseASM
- ORA-12500: TNS:listener failed to start a dedicated server processAIServer
- ORA-12500 TNS : listener failed to start a dedicated server processAIServer
- A potentially dangerous Request.Form value was detected from the clientORMclient
- Script to generate AWR report from remote sql clientREMSQLclient
- listener start fail TNS-12555 利用trace找到問題AI
- TNS-12537, TNS-12560, TNS-00507 Linux Error: 29: Illegal seek error When Starting the ListenerLinuxError
- 【LISTENER】Oracle監聽TNS-12545及TNS-00515錯誤處理一例Oracle
- Creating a physical standby from ASM primaryASM
- sql net message from|to client與sql execution countSQLclient
- ABP Framework Consuming HTTP APIs from a .NET ClientFrameworkHTTPAPIclient
- DUPLICATE (Backup based) DATABASE from non ASM to ASM to different host_382669.1DatabaseASM