当前位置:网站首页>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
边栏推荐
- What is torch NN?
- Understand Alibaba cloud's secret weapon "dragon architecture" in the article "science popularization talent"
- Statistical learning: logistic regression and cross entropy loss (pytoch Implementation)
- %F format character
- Socks agent tools earthworm, ssoks
- How was MP3 born?
- 基于check-point实现图数据构建任务
- TypeError: list indices must be integers or slices, not str
- [flask] ORM one to many relationship
- 科普达人丨一文看懂阿里云的秘密武器“神龙架构”
猜你喜欢

Understand asp Net core - Authentication Based on jwtbearer

~89 deformation translation

Transformer中position encoding实践

Preliminary practice of niuke.com (10)

Talking about Net core how to use efcore to inject multiple instances of a context annotation type for connecting to the master-slave database

165 webmaster online toolbox website source code / hare online tool system v2.2.7 Chinese version

MFC implementation of ACM basic questions encoded by the number of characters

Object.keys()的用法

Redis' optimistic lock and pessimistic lock for solving transaction conflicts

The new generation of domestic ORM framework sagacity sqltoy-5.1.25 release
随机推荐
Review of Weibo hot search in 2021 and analysis of hot search in the beginning of the year
跳跃表实例
函數式接口,方法引用,Lambda實現的List集合排序小工具
Find numbers
基于check-point实现图数据构建任务
2021 Google vulnerability reward program review
Accounting regulations and professional ethics [7]
科普达人丨一文看懂阿里云的秘密武器“神龙架构”
Qt---error: ‘QObject‘ is an ambiguous base of ‘MyView‘
Principle and general steps of SQL injection
C language: implementation of daffodil number function
Research Report on market supply and demand and strategy of tetramethylpyrazine industry in China
js中的数组筛选fliter
How to save the contents of div as an image- How to save the contents of a div as a image?
Filtered off site request to
Research Report on market supply and demand and strategy of China's plastics and polymer industry
Daily notes~
Laravel simply realizes Alibaba cloud storage + Baidu AI Cloud image review
Digital recognition system based on OpenCV
高度剩余法