当前位置:网站首页>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
边栏推荐
- DC-2靶场搭建及渗透实战详细过程(DC靶场系列)
- JS to realize the countdown function
- System. Currenttimemillis() and system Nanotime (), which is faster? Don't use it wrong!
- Explore mongodb - mongodb compass installation, configuration and usage introduction | mongodb GUI
- Principle and general steps of SQL injection
- Final consistency of MESI cache in CPU -- why does CPU need cache
- Accounting regulations and professional ethics [9]
- What is torch NN?
- Opencv learning -- geometric transformation of image processing
- Research Report on market supply and demand and strategy of tetramethylpyrazine industry in China
猜你喜欢
How to decrypt worksheet protection password in Excel file
A trap used by combinelatest and a debouncetime based solution
Common knowledge of unity Editor Extension
~89 deformation translation
Object.keys()的用法
[North Asia data recovery] data recovery case of database data loss caused by HP DL380 server RAID disk failure
The 17 year growth route of Zhang Liang, an open source person, can only be adhered to if he loves it
时钟轮在 RPC 中的应用
Talking about Net core how to use efcore to inject multiple instances of a context annotation type for connecting to the master-slave database
Move, say goodbye to the past again
随机推荐
Daily notes~
The new generation of domestic ORM framework sagacity sqltoy-5.1.25 release
Using celery in projects
Redis' optimistic lock and pessimistic lock for solving transaction conflicts
Audio and video technology development weekly | 252
Rearrange array
What is the catalog of SAP commerce cloud
Research Report on market supply and demand and strategy of surgical stapler industry in China
Selenium browser (2)
The content of the source code crawled by the crawler is inconsistent with that in the developer mode
一图看懂ThreadLocal
[tutorial] yolov5_ DeepSort_ The whole process of pytoch target tracking and detection
Opencv learning -- geometric transformation of image processing
The four most common errors when using pytorch
FIREBIRD使用经验总结
[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
Communication mode based on stm32f1 single chip microcomputer
Statistical learning: logistic regression and cross entropy loss (pytoch Implementation)
Working group and domain analysis of Intranet
Software Engineer vs Hardware Engineer