Disable Oracle cannot connect after booting, network adapter error handling

Source: Internet
Author: User
Tags error handling dedicated server sqlplus

No Oracle cannot connect after booting,

Turn around: http://blog.sina.com.cn/s/blog_4aeef1220100fmsr.html

TNS-12560:TNS: Protocol Adapter error

Microsoft Windows [version 5.2.3790]

(C) Copyright 1985-2003 Microsoft Corp.

C:\Documents and Settings\user1>lsnrctl

Lsnrctl for 32-bit windows:version 9.2.0.7.0-production on 2 July-August-2008 09:33

: 43

Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.

Welcome to LSNRCTL, please type "help" for information.

lsnrctl> status

Connecting to (Description= (address= (PROTOCOL=IPC) (Key=extproc1))

Tns-12541:tns: No Listener

TNS-12560:TNS: Protocol Adapter error

TNS-00511: No Listener

32-bit Windows error:2: No such file or directory

Connecting to (Description= (address= (protocol=tcp) (host=192.168.0.55) (port=1521))

Tns-12538:tns: No this Protocol adapter

TNS-12560:TNS: Protocol Adapter error

TNS-00508: No such protocol adapter

Lsnrctl> start

Start Tnslsnr: Please wait ...

Tnslsnr for 32-bit windows:version 9.2.0.7.0-production

System parameter file is D:\oracle\ora92\network\admin\listener.ora

Log information written to D:\oracle\ora92\network\log\listener.log

Monitoring: (Description= (Address= (PROTOCOL=IPC) (PIPENAME=\\.\PIPE\EXTPROC1IPC)))

An error occurred while listening for this object: (Description= (Address= (protocol=tcp) (host=192.168.0.55) (port=

1521)))

Tns-12538:tns: No this Protocol adapter

TNS-12560:TNS: Protocol Adapter error

TNS-00508: No such protocol adapter

The listener failed to start. See the error message above ...

---------------------------

Service

---------------------------

The Oracleorahome92tnslistener service cannot be started on the local computer.

Error 1067: The process terminated unexpectedly.

---------------------------

Are you sure

---------------------------

==============================================================

Ora-12560:tns: Resolution of protocol Adapter errors

There are three reasons why the Ora-12560:tns: Protocol adapter error is a problem:

1. The monitoring service is not up. Windows platform: Start---program---management tools---services, open the Services panel, start the Oraclehome92tnslistener service.

2.database instance did not rise up. The Windows platform: start---program---management tools---services, open the Services panel, start oracleservicexxxx,xxxx is your database SID.

3. Registry issues. Regedit and then go to HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\HOME0 set the environment variable ORACLE_SID to XXXX,XXXX is your database Sid. Or right My Computer, attribute--advanced--environment variable---system variable--new, variable name =oracle_sid, variable value =xxxx,xxxx is your database SID. Or enter sqlplus before the command Line down the set ORACLE_SID=XXXX,XXXX is your database SID.

After the above steps, you can solve the problem.

=======================================

TNS: There are three reasons for the problem with the protocol adapter error:

1. The monitoring service is not up. Windows platform: Start---program---management tools---services, open the Services panel, start the Oraclehome92tnslistener service.

2.database instance did not rise up. The Windows platform: start---program---management tools---services, open the Services panel, start oracleservicexxxx,xxxx is your database SID.

3. Registry issues. Regedit and then go to HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\HOME0 set the environment variable ORACLE_SID to XXXX,XXXX is your database Sid. Or right My Computer, attribute--advanced--environment variable---system variable--new, variable name =oracle_sid, variable value =xxxx,xxxx is your database SID. Or enter sqlplus before the command Line down the set ORACLE_SID=XXXX,XXXX is your database SID.

After the above steps, you can solve the problem

1, Ora-12541:tns: No listener

Cause: There is no boot listener or the listener is corrupted. If the former, use the command net start Oracleorahome81tnslistener (the name may differ), and if the latter, use the Net8 Configuration

Assistant "Tool Wizard" listener configuration Add a listener (basically do not write any information, all the way OK.) You may need to remove all the listeners before adding them! )

2. Ora-12500:tns: Listener cannot start dedicated server process or ORA-12560:TNS: Protocol adapter error

Cause: Oracle's database service is not started. You can use the command net start oracleserviceoradb (oradb as the database name). If it's still not resolved, keep looking down.

3. If the database service fails to start, it is most likely that its registry key value is corrupted, and the best practice is to do the following two steps:

1) Oradim-delete-sid oradb Delete database service item

2) Oradim-new-sid oradb New database service entry

Note: If there is an error in this process, restart the computer!

4, Ora-12154:tns: Can resolve the service name

Cause: The Network Service name for Oracle is not configured correctly. Use the local network service name configuration in the Net8 Configuration Assistant Tool Wizard to configure TNS. If it's still not resolved, keep looking down.

5. Ora-1034:tns:oracle Not Available

Cause: The Oracle database service started correctly, but the database is not open!

Use the command:

1) SVRMGRL start Service Manager

2) Connect internal login as internal

3) Startup Open database

6, Ora-12560:tns: Protocol adapter error (stubborn)

Cause: Unknown.

Solution: Must kill skill--open "Windows Task Manager", kill ORACLE.exe and ORADIM.exe process, write your own

Ora_startup.bat, execute it!

Ps:

1. My ora_startup.bat:

net start Oracleorahome81tnslistener

net start oracleserviceoradb

SVRMGRL generally do not use, but sometimes it is necessary, the concrete steps to see the 5th step.

2. My ora_shutdown.bat:

net stop Oracleorahome81tnslistener

net stop oracleserviceoradb

oracle_home=/u01/app/oracle/product/8.1.6

Export oracle_home/includes the directory of ORACLE Software/

Ld_library_path=/u01/app/oracle/product/8.1.6/lib;

Export Ld_library_path

Oracle_base=/u01/app/oracle

Export oracle_base/includes the directory of ORACLE software and the directory of management software

Oracle_sid=orcl

Export Oracle_sid/identity of the default database/

oracle_term=vt100

Export Oracle_term

ora_nls33=/u01/app/oracle/product/8.1.6/

Ocommon/nls/admin/data

Export ORA_NLS33/Language support/

Path= $PATH:/u01/app/oracle/product/8.1.6/bin

Export PATH

=============================================

ORA-12560 starting LISTENER on nt-troubleshooting

---------------------------------------------------

Ora-12560:tns Protocol Adapter Error

CAUSE:A generic protocol Adapter error occurred.

Action:check addresses used for proper protocol specification. Before reporting this error, look at the error stack and check for lower level transport errors. For further details, turn on tracing and reexecute the operation. Turn off tracing when the operation are complete.

This was a high level error just reporting an error occurred in the actual transport layer. Look at the next error down the stack and process that.

1.-starting Listener with TCP/IP Protocol

Problem:

You start the TNS Listener from command line and the TCP/IP address fails with a TNS-12560.

Solution:

Check if Microsoft Winsock Proxy (WSP) Client is-enabled on the Windows NT Server, if that's the case and go to Windows C Ontrol Panel, click WSP icon and select the Disable Proxy Client option.

Explanation:

The Winsock application may fail to bind to a specific port in a proxy Server computer when the Winsock is running Proxy C Lient.

2.-TNS-12560 TNS-512 starting the listener.

Problem:

You try to start up the listener and receive the following error stack:

Tns-12542:tns:address already in use

Tns-12560:tns Protocol Adapter Error

Tns-00512:address already in use

32-bit Windows Error:48:unknown Error

Error:tns 512

Text:address already in use

--------------------------------------------

Cause:specified listener address is already being used.

Action:start your listener with an unused address.

Generally this problem could ocurr for a incorrect setting in the Listener.ora. Some causes of this problems may:

a.-Some defined address in the Listeners.ora is been used. Make sure other listeners is not running. Either listener.log and screens output appear the address with problem.

b.-Just for 8i:in Windows NT the algorithm to acquire

The address has a change, please check the Note 69026.1:oracle 8i and socket LISTEN operations.

Explanation:

The listener would try to acquire the address in exclusive mode, and if this is been used and the process to get it would fail.

3.-starting the Listener the errors ora-12203,ora-12560, NL-462 or NL-427 may raised.

Problem:

You try-to-start up the listener and receive the following errors

ora-12203,ora-12560, NL-462 or NL-427.

Solution:

Recreate the Listener.ora file.

Explanation:

Some corruption in the Listener.ora could get unable to the Tnslsnr into work adequatly.

4.-Failed to start service, TNS-12560, TNS-00530 when create new listener services

Problem:

To recreate Oracle TNS listener service on Windows NT, you delete the service entry in registry. When using Lsnrctl to start the listener, you get the following errors:

Lsnrctl> start

Starting Tnslsnr:please Wait ...

Failed to start service, error 3.

Tns-00530:protocol Adapter Error

The Listener service is not recreated and the Listener would not start.

You are using a valid Listener.ora file and protocol adapters.

Solution:

After you delete the Listener service from registry, you have to reboot NT for it to take effect. Then you can use Lsnrctl to start the Listener, which would re-create the Listener service.

Explanation:

The Listener service is marked ' disabled ', but it still exists after you delete the service from registry.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.