当前位置:网站首页>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
边栏推荐
- Filtered off site request to
- AI system content recommendation issue 24
- 基于check-point实现图数据构建任务
- China's plastic processing machinery market trend report, technological innovation and market forecast
- Function test - knowledge points and common interview questions
- China tall oil fatty acid market trend report, technical dynamic innovation and market forecast
- System.currentTimeMillis() 和 System.nanoTime() 哪个更快?别用错了!
- The four most common errors when using pytorch
- Anta is actually a technology company? These operations fool netizens
- The new generation of domestic ORM framework sagacity sqltoy-5.1.25 release
猜你喜欢
A trap used by combinelatest and a debouncetime based solution
Principle and general steps of SQL injection
[Previous line repeated 995 more times]RecursionError: maximum recursion depth exceeded
~88 running people practice
AI system content recommendation issue 24
[native JS] optimized text rotation effect
Preliminary practice of niuke.com (10)
Statistical learning: logistic regression and cross entropy loss (pytoch Implementation)
Using celery in projects
What is the catalog of SAP commerce cloud
随机推荐
Selenium browser (2)
AI system content recommendation issue 24
Explore mongodb - mongodb compass installation, configuration and usage introduction | mongodb GUI
What should ABAP do when it calls a third-party API and encounters garbled code?
实战:fabric 用户证书吊销操作流程
Market trend report, technical innovation and market forecast of tetrabromophthalate (pht4 diol) in China
Oracle监听器Server端与Client端配置实例
Accounting regulations and professional ethics [7]
C# 实现 FFT 正反变换 和 频域滤波
跳跃表实例
Software Engineer vs Hardware Engineer
Accounting regulations and professional ethics [9]
力扣今日题-1200. 最小绝对差
Interpretation of the champion scheme of CVPR 2020 night target detection challenge
. Net applications consider x64 generation
Anta is actually a technology company? These operations fool netizens
APOC自定义函数和过程
Understand asp Net core - Authentication Based on jwtbearer
Rearrange array
%F format character