当前位置:网站首页>Configuration instance of Oracle listener server and client
Configuration instance of Oracle listener server and client
2022-07-04 16:41:00 【Full stack programmer webmaster】
Listener.ora、tnsnames.ora These two files are often difficult to use because of format problems , I usually have a backup after configuration , In the future, just copy and change it ! Hey ~~~
Because I usually use linux More often , So sometimes I will encounter sqlnet.ora There's something wrong with this file , Just delete it directly ~~
Sometimes in windows Bottomed oracle Of listener The service will not start , In this case , Go directly to oracle Of bin Find lsnrctl.exe That document , Run it directly , Don't close the pop-up window , That's all right. .
Oracle Server End Listener.ora file ( One instance):
LISTENER = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL=TCP)(HOST=hostname)(PORT=1521)) // Host name or IP And port settings ) ) )
SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (SID_NAME = database1) // database1 For the database instance name (ORACLE_HOME = /opt/oracle/product/10.1.0) //oracle The installation directory , Change according to the installation (PROGRAM = extproc) ) )
Oracle Server End Listener.ora file ( Two instance): LISTENER = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL=TCP)(HOST=hostname)(PORT=1521)) ) ) ) SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (SID_NAME = database1) // database1 For the database instance1 name (ORACLE_HOME = /opt/oracle/product/10.1.0) (PROGRAM = extproc) ) (SID_DESC = (SID_NAME = database2) // database2 For the database instance2 name (ORACLE_HOME = /opt/oracle/product/10.1.0) (PROGRAM = extproc) ) )
Oracle Server End listener start 、 stop it 、 View status command :
$ lsnrctl start
$ lsnrctl stop
$ lsnrctl status
Oracle Client End Tnsnames.ora file :
ORALOCAL = // Alias oralocal (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = hostname)(PORT = 1521)) ) (CONNECT_DATA = (SERVICE_NAME = database1) //database1 by SID name ) )
Oracle Client Check the connection status of the listener with the command :
$ tnsping Alias
for example : use oracle The user executes the command $ tnsping oralocal
Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/110861.html Link to the original text :https://javaforall.cn
边栏推荐
- overflow:auto与felx结合的用法
- Research Report on market supply and demand and strategy of China's four sided flat bag industry
- Penetration test --- database security: detailed explanation of SQL injection into database principle
- 跳跃表实例
- 同构图与异构图CYPHER-TASK设计与TASK锁机制
- Accounting regulations and professional ethics [10]
- Review of Weibo hot search in 2021 and analysis of hot search in the beginning of the year
- Find numbers
- [Chongqing Guangdong education] National Open University spring 2019 1396 pharmaceutical administration and regulations (version) reference questions
- std::shared_ ptr initialization: make_ shared< Foo> () vs shared_ ptr< T> (new Foo) [duplicate]
猜你喜欢
[North Asia data recovery] data recovery case of database data loss caused by HP DL380 server RAID disk failure
I let the database lock the table! Almost fired!
Preliminary practice of niuke.com (10)
Vscode setting outline shortcut keys to improve efficiency
[North Asia data recovery] a database data recovery case where the partition where the database is located is unrecognized due to the RAID disk failure of HP DL380 server
程序员怎么才能提高代码编写速度?
Anta is actually a technology company? These operations fool netizens
Talking about Net core how to use efcore to inject multiple instances of a context annotation type for connecting to the master-slave database
What is torch NN?
[tutorial] yolov5_ DeepSort_ The whole process of pytoch target tracking and detection
随机推荐
Application of clock wheel in RPC
JS to realize the countdown function
Understand Alibaba cloud's secret weapon "dragon architecture" in the article "science popularization talent"
DIY a low-cost multi-functional dot matrix clock!
Accounting regulations and professional ethics [7]
Accounting regulations and professional ethics [8]
Daily notes~
[Previous line repeated 995 more times]RecursionError: maximum recursion depth exceeded
[North Asia data recovery] a database data recovery case where the partition where the database is located is unrecognized due to the RAID disk failure of HP DL380 server
基于check-point实现图数据构建任务
Understand the rate control mode rate control mode CBR, VBR, CRF (x264, x265, VPX)
Market trend report, technical innovation and market forecast of China's hair repair therapeutic apparatus
~88 running people practice
Accounting regulations and professional ethics [11]
Principle and general steps of SQL injection
Statistical learning: logistic regression and cross entropy loss (pytoch Implementation)
The four most common errors when using pytorch
Hair growth shampoo industry Research Report - market status analysis and development prospect forecast
Hair and fuzz interceptor Industry Research Report - market status analysis and development prospect forecast
多年锤炼,迈向Kata 3.0 !走进开箱即用的安全容器体验之旅| 龙蜥技术