当前位置:网站首页>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
边栏推荐
- The 17 year growth route of Zhang Liang, an open source person, can only be adhered to if he loves it
- 多年锤炼,迈向Kata 3.0 !走进开箱即用的安全容器体验之旅| 龙蜥技术
- QT graphical view frame: element movement
- ONgDB图数据库与Spark的集成
- TypeError: list indices must be integers or slices, not str
- Practice: fabric user certificate revocation operation process
- Statistical learning: logistic regression and cross entropy loss (pytoch Implementation)
- [North Asia data recovery] a database data recovery case where the disk on which the database is located is unrecognized due to the RAID disk failure of HP DL380 server
- Vscode setting outline shortcut keys to improve efficiency
- Selenium browser (2)
猜你喜欢

Audio and video technology development weekly | 252

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

Move, say goodbye to the past again

Qt---error: ‘QObject‘ is an ambiguous base of ‘MyView‘
![[Previous line repeated 995 more times]RecursionError: maximum recursion depth exceeded](/img/c5/f933ad4a7bc903f15beede62c6d86f.jpg)
[Previous line repeated 995 more times]RecursionError: maximum recursion depth exceeded
![[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](/img/21/513042008483cf21fc66729ae1d41f.jpg)
[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

How to decrypt worksheet protection password in Excel file

一图看懂ThreadLocal

Vscode prompt Please install clang or check configuration 'clang executable‘

TypeError: list indices must be integers or slices, not str
随机推荐
[hcie TAC] question 5 - 1
Digital recognition system based on OpenCV
FIREBIRD使用经验总结
科普达人丨一文看懂阿里云的秘密武器“神龙架构”
Research Report on plastic recycling machine industry - market status analysis and development prospect forecast
The new generation of domestic ORM framework sagacity sqltoy-5.1.25 release
Selenium browser (2)
Hair growth shampoo industry Research Report - market status analysis and development prospect forecast
Variable cannot have type 'void'
@EnableAspectAutoJAutoProxy_ Exposeproxy property
嵌入式软件架构设计-函数调用
Market trend report, technical innovation and market forecast of electrochromic glass and devices in China and Indonesia
The vscode waveform curve prompts that the header file cannot be found (an error is reported if the header file exists)
C# 实现 FFT 正反变换 和 频域滤波
After the eruption of Tonga volcano, we analyzed the global volcanic distribution and found that the area with the most volcanoes is here!
Communication mode based on stm32f1 single chip microcomputer
Principle and general steps of SQL injection
Research Report on market supply and demand and strategy of China's four sided flat bag industry
DIY a low-cost multi-functional dot matrix clock!
[native JS] optimized text rotation effect