Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Summary of several reasons why the listener of oracle cannot be started

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

1) the firewall is not turned off

2) / etc/hosts configuration problem, it is possible to delete the default record of 127.0.0.1 and add the default record

[root@rac02 ~] # cat / etc/hosts

127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4

:: 1 localhost localhost.localdomain localhost6 localhost6.localdomain6

3) / var/tmp/.oracle permission problem or blindly clean up. Generally speaking, permission denied is caused by insufficient permissions, which can be solved by modifying user permissions or switching users. In some cases, if you clean up the contents of / var/tmp/.oracle, the RAC instance will be down directly or an ASM exception will occur.

Description:

[root@rac02 var] # pwd

/ var

[root@rac02 var] # ll

Drwxrwxrwt. 3 root root 4096 Apr 12 17:04 tmp > if permissions are incorrect, entitle chmod 777 tmp

[root@rac02 ~] # ll / var/tmp/.oracle

Total 4

Srwxr-xr-x 1 grid oinstall 0 Sep 18 10:53 mdnsd

-rw-r--r-- 1 grid oinstall 7 Sep 18 10:53 mdnsd.pid

Prw-r--r--. 1 root root 0 Apr 12 17:05 npohasd

Srwxrwxrwx 1 grid oinstall 0 Sep 18 10:53 ora_gipc_gipcd_rac02

-rw-r--r-- 1 grid oinstall 0 Sep 18 10:53 ora_gipc_gipcd_rac02_lock

Srwxrwxrwx 1 grid oinstall 0 Sep 18 10:53 ora_gipc_GPNPD_rac02

-rw-r--r-- 1 grid oinstall 0 Sep 18 10:53 ora_gipc_GPNPD_rac02_lock

Srwxrwxrwx 1 root root 0 Sep 18 10:53 ora_gipc_srac02gridrac-clusterCRFM_CLIIPC

-rw-r--r-- 1 root root 0 Sep 18 10:53 ora_gipc_srac02gridrac-clusterCRFM_CLIIPC_lock

Srwxrwxrwx 1 root root 0 Sep 18 10:53 ora_gipc_srac02gridrac-clusterCRFM_SIPC

-rw-r--r-- 1 root root 0 Sep 18 10:53 ora_gipc_srac02gridrac-clusterCRFM_SIPC_lock

Srwxrwxrwx 1 grid oinstall 0 Sep 19 10:18 s#122017.1

Srwxrwxrwx 1 grid oinstall 0 Sep 19 10:18 s#122017.2

These socket texts are used for process communication between local clients using Interprocess Communication Protocol (ipc) and different oracle, including tns snooping, css, crs,evm daemons, and even databases and asm instances. These socket are created by processes that are actively listening. Here oracle tns listener creates these socket files mainly for pmon and tnslsnr communication.

If RAC or HAS:

3.1.On the Linux platform, Network Socket File is in the / var/tmp/.oracle/ directory. On other platforms, possible directories are: / tmp/.oracle/*, / tmp/.oracle or / usr/tmp/.oracle

3.2.If CRS or HAS is not started, delete the temporary oracle file (Network Socket File), and it will be recreated automatically after CRS restart, without adverse effects.

3.3.If CRS or HAS is started and running normally, delete the temporary oracle file, which does not affect the database operation, but the database cannot be shut down normally (you can abort, but you cannot start it).

3.4.If the above situation occurs, 3MagneCRS cannot be turned off (including using the-f option), only shared memory segments and kill processes can be cleaned manually. In HAS, the kill ocssd.bin process does not cause the host to restart. However, in the RAC environment, the kill ocssd.bin process will cause the host to restart.

3.5. if you have completed the above scenario 4, you only need to restart CRS or HAS.

4) listener.ora configuration problem, pay attention to the space.

5) lack of system resources, you can consider adjusting the limits setting and so on.

Case: client-side TNS-12543 error. If you use tnsping to verify the connection of several database environments, a library on the client always reports TNS-12543 errors and can ping, but if you connect directly, you can report an error, which is likely to be a problem with the firewall or other network configuration. You can check whether the firewall limits a certain port. (compare the strace server with the client)

When parsing connection strings using tnsping, the timeout cannot be controlled. The default setting is 1 minute at the operating system level. If there are a large number of connection strings that need to detect IP and port, you can consider nc to set the timeout. Refer to the command:

Nc-w 2-v192.168.97.17 1521 | grep succ

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report