当前位置:网站首页>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
边栏推荐
- 时钟轮在 RPC 中的应用
- System.currentTimeMillis() 和 System.nanoTime() 哪个更快?别用错了!
- Understand asp Net core - Authentication Based on jwtbearer
- Vscode setting outline shortcut keys to improve efficiency
- [Chongqing Guangdong education] National Open University spring 2019 1396 pharmaceutical administration and regulations (version) reference questions
- Using celery in projects
- Move, say goodbye to the past again
- Communication mode based on stm32f1 single chip microcomputer
- JS to realize the countdown function
- [Chongqing Guangdong education] National Open University spring 2019 1248 public sector human resource management reference questions
猜你喜欢

Understand asp Net core - Authentication Based on jwtbearer

Web components series - detailed slides

overflow:auto与felx结合的用法

The 17 year growth route of Zhang Liang, an open source person, can only be adhered to if he loves it

Will the memory of ParticleSystem be affected by maxparticles

The new generation of domestic ORM framework sagacity sqltoy-5.1.25 release

《吐血整理》保姆级系列教程-玩转Fiddler抓包教程(2)-初识Fiddler让你理性认识一下

AI system content recommendation issue 24

Understand the rate control mode rate control mode CBR, VBR, CRF (x264, x265, VPX)

The vscode waveform curve prompts that the header file cannot be found (an error is reported if the header file exists)
随机推荐
[North Asia data recovery] data recovery case of database data loss caused by HP DL380 server RAID disk failure
时序图数据建模与产业链分析
What is torch NN?
Statistical learning: logistic regression and cross entropy loss (pytoch Implementation)
《吐血整理》保姆级系列教程-玩转Fiddler抓包教程(2)-初识Fiddler让你理性认识一下
[tutorial] yolov5_ DeepSort_ The whole process of pytoch target tracking and detection
力扣今日题-1200. 最小绝对差
Oracle监听器Server端与Client端配置实例
Can I "reverse" a Boolean value- Can I 'invert' a bool?
Model fusion -- stacking principle and Implementation
话里话外:流程图绘制初级:六大常见错误
Research Report on market supply and demand and strategy of China's plastics and polymer industry
Market trend report, technical innovation and market forecast of tetrabromophthalate (pht4 diol) in China
I let the database lock the table! Almost fired!
线程池的使用和原理
Digital recognition system based on OpenCV
How can floating point numbers be compared with 0?
如何为ONgDB核心项目源码做贡献
Explore mongodb - mongodb compass installation, configuration and usage introduction | mongodb GUI
What does IOT engineering learn and work for?