In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
First, service_name,oracle11g rac scan ip can be used as follows. If you want to use vip, write two addresses, such as the red part.
Click (here) to collapse or open
Sales=
(DESCRIPTION=
(ADDRESS= (PROTOCOL=tcp) (HOST=sales-server) (PORT=1521))
(ADDRESS= (PROTOCOL=tcp) (HOST=sales-server) (PORT=1521))
(CONNECT_DATA=
(SERVICE_NAME=sales.us.acme.com)
Second: if you want to connect to an instance in the cluster, you can use instance_name. Note here that instance_name must appear at the same time as service_name, as shown below:
Click (here) to collapse or open
Sales=
(DESCRIPTION=
(ADDRESS= (PROTOCOL=tcp) (HOST=rac01-vip) (PORT=1521))
(CONNECT_DATA=
(SERVICE_NAME=racdb)
(INSTANCE_NAME=racdb1)
Of course, we can also use another way to connect to an instance, sid, as follows:
Click (here) to collapse or open
Sales=
(DESCRIPTION=
(ADDRESS= (PROTOCOL=tcp) (HOST=sales-server) (PORT=1521))
(CONNECT_DATA=
(SID=sales)
The third easy way: note here, especially in the RAC environment, if we test, please note later, what is needed is service_name, sid and instance_name are invalid
Click (here) to collapse or open
CONNECT username/password@host [: port] [/ service_name]
This method is recommended for simple TCP/IP environments.
In the tnsnames.ora file configuration, aliases (such as sales) must be fixed and must not be preceded by spaces and other things.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.