当前位置:网站首页>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
边栏推荐
- Salient map drawing based on OpenCV
- Feature extraction and detection 15-akaze local matching
- Market trend report, technical innovation and market forecast of electrochromic glass and devices in China and Indonesia
- Software Engineer vs Hardware Engineer
- China's roof ladder market trend report, technological innovation and market forecast
- 力扣今日题-1200. 最小绝对差
- Oracle监听器Server端与Client端配置实例
- [North Asia data recovery] data recovery case of database data loss caused by HP DL380 server RAID disk failure
- How to decrypt worksheet protection password in Excel file
- Transformer中position encoding实践
猜你喜欢

Overview of convolutional neural network structure optimization

Game theory

Using celery in projects

How was MP3 born?

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

L1-072 scratch lottery

对人胜率84%,DeepMind AI首次在西洋陆军棋中达到人类专家水平

~89 deformation translation

一图看懂ThreadLocal

程序员怎么才能提高代码编写速度?
随机推荐
[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
DIY a low-cost multi-functional dot matrix clock!
Model fusion -- stacking principle and Implementation
Stew in disorder
overflow:auto与felx结合的用法
@EnableAspectAutoJAutoProxy_ Exposeproxy property
Hidden communication tunnel technology: intranet penetration tool NPS
Actual combat | use composite material 3 in application
线程池的使用和原理
Vscode setting outline shortcut keys to improve efficiency
[native JS] optimized text rotation effect
对人胜率84%,DeepMind AI首次在西洋陆军棋中达到人类专家水平
CMPSC311 Linear Device
Four point probe Industry Research Report - market status analysis and development prospect prediction
165 webmaster online toolbox website source code / hare online tool system v2.2.7 Chinese version
js中的数组筛选fliter
Essential basic knowledge of digital image processing
实战:fabric 用户证书吊销操作流程
std::shared_ ptr initialization: make_ shared< Foo> () vs shared_ ptr< T> (new Foo) [duplicate]
The new generation of domestic ORM framework sagacity sqltoy-5.1.25 release