Static registration and Dynamic Registration of Oracle DBA listeners

Source: Internet
Author: User

= [Static registration] =
Static registration can be configured through graphical net manager.
The relationship between configuration options and related files in net manager:
Profile <=> sqlnet. ora
Service name <=> tnsnames. ora
Listener <=> listener. ora

For static registration on the server, you need to configure the [listener (listener. ora)], including:
Listening location (protocol, host, Port );
Database Service (Global Database Name: the global database name corresponds to the service name, Oracle main directory, SID of the Client [service name (tnsnames. ora );
Other services (I found that I couldn't leave it blank during the test, but the program name and SID here can be entered with some characters at Will );
To append a listener, you must configure it through netca. In win, netca creates a service.

  1. Listener. ora (server side)
  2. SID_LIST_SL01 =
  3. (SID_LIST =
  4. (SID_DESC =
  5. (PROGRAM = xx)
  6. (SID_NAME = xx)
  7. )
  8. (SID_DESC =
  9. (GLOBAL_DBNAME = gdbn01)
  10. (ORACLE_HOME = d: \ oracle \ product \ 10.2.0 \ db_1)
  11. (SID_NAME = ORCL)
  12. )
  13. )
  14. SL01 =
  15. (DESCRIPTION =
  16. (ADDRESS = (PROTOCOL = TCP) (HOST = duzz) (PORT = 8899 ))
  17. )
  18. Tnsnames. ora (client)
  19. S01 =
  20. (DESCRIPTION =
  21. (ADDRESS_LIST =
  22. (ADDRESS = (PROTOCOL = TCP) (HOST = duzz) (PORT = 8899 ))
  23. )
  24. (CONNECT_DATA =
  25. (SERVICE_NAME = d01)
  26. )
  27. )
  28. = [Dynamic Registration] =
  29. To dynamically register a non-1521 port, you must first set the connection information (protocal, host, port-this connection information must be in the [listener (listener. ora)] Listening location) www.bkjia.com configured to the server tnsnames. ora, and then modify the local_listener parameter to point to tnsnames. configuration options in ora.
  30. Listener. ora (server, SL01 is the listener created through netca)
  31. SL01 =
  32. (DESCRIPTION =
  33. (ADDRESS = (PROTOCOL = TCP) (HOST = duzz) (PORT = 8899 ))
  34. )
  35. Tnsnames. ora (server side)
  36. DL01 = (ADDRESS = (PROTOCOL = TCP) (HOST = duzz) (PORT = 8899 ))
  37. AlterSystemSetLocal_listener ='Dl01';
  38. AlterSystemSetService_names ='D01, d02, d03';
  39. The client only needs to fill in the corresponding SERVICE_NAME in tnsnames. ora:
  40. Tnsnames. ora (client)
  41. S01 =
  42. (DESCRIPTION =
  43. (ADDRESS_LIST =
  44. (ADDRESS = (PROTOCOL = TCP) (HOST = duzz) (PORT = 8899 ))
  45. )
  46. (CONNECT_DATA =
  47. (SERVICE_NAME = d01)
  48. )
  49. )

To dynamically register a default port of 1521 on PMON, it is relatively simple. You do not need to set the local_listener parameter. www.bkjia.com naturally does not need to modify tnsnames on the server. ora file. The other steps are the same as those for Dynamic Registration of Non-1521 ports.

= [Verify Registration] =

  1. Sqlplus/@ s01AsSysdba
  2. Select DistinctSidFromV $ mystat;
  3. SelectService_nameFromV $ sessionWhereSid =: sid;
  4. View the service name of the current session,
  5. If SYS $ USERS is returned, it indicates that the current session is connected by a service name registered statically,
  6. Otherwise, the dynamic registration service name is returned.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.