Oracle Database FAQs and Solutions

Source: Internet
Author: User
Tags server hosting

Oracle DatabaseIn the process of use, we often encounter one or another problems, and these problems often make us very confused. This article summarizes some problems in the use of Oracle databases, the solution is provided. Next we will analyze these problems.

1. Stop the oracle listener immediately after it is started.

TNS-12545: the connection failed because the target host or object does not exist.

TNS-12560: TNS: protocol adapter error.

TNS-00515: the connection failed because the target host or object does not exist.

32-bit Windows Error: 1004: Unknown error.

No listening anymore: (DESCRIPTION = (ADDRESS = (PROTOCOL = ipc) (PIPENAME = //./pipe/EXTPROC0ipc ))).

The reason is that I have modified the host name after installing oracle.

Solution:

1. directly modify listener. ora

Path: oracle installation directory/product/10.2.0/db_1/NETWORK/ADMIN/listener. ora.

Change HOST to HOST name or IP address.

2. Use Net Manager to directly modify the host in the LISTENER/LISTENER.

Ii. Error Codes and Solutions

1. ORA:-12545: the connection fails because the target host and object do not exist.

The error code ORA-12545 indicates that the machine name and IP address used in the network connection string, that is, the HOST in the tnsnames. ora file, does not exist. remodify and reconnect.

2. ORA-12651: TNS: No listener.

This information indicatesServerThe Listener process Listener is not started. This process is an operating system process on the Oracle server. When the Listener process is not started, the server can run normally, but the client cannot connect to the server. At this time, you can use the operating system command lsnrctl on the server to start the listening process normally ).

ORA-00600: internal error code, arguments: [num], [?], [?], [?], [?] .

Cause: this error is usually an internal ORACLE error and is only useful for OSS and ORACLE development. ORA-600 errors are often accompanied by State dump of the trace file system state and process state), system state storage will include information about the current object held by oracle rdbms, the Process status dump displays the objects held by the special process. When the process meets an error condition, it is often because some information is taken from a block held by the process, if we know the blocks held by these error processes, it is easy to track the source of the problem.

Solution: in general, this error cannot be solved. We only need to improve the system to solve this internal problem, such as adding hardware devices and adjusting system performance, of course, using OPS is not a good solution in a sense. The first variable of the ORA-600 error is used to mark the location of the error in the Code, the first variable in each part of the code is different), from the second to the fifth variable displays additional information, tell the OSS code where an error occurs

4. ORA-12560 protocol adapter error:

Problems with ORA-12560: TNS: protocol adapter errors

①. Check the Terminal Service to see if the Remote Desktop is the cause.

②. Environment variable set oracle_sid = required service name.

③. Is the name or IP address of the machine in listener. ora, tnsnames. ora, etc. correct.

④. Netstat-a checks whether the port is occupied.

⑤. Check the Registry HKEY_LOCAL_MACHINE/Software/Oracle/Home0 to add the string USE_SHARED_SOCKET = TRUE and restart the service.

5. ORA-28595: Invalid DLL Path calling external DLL Error

Cause: A setting in Oracle's LISTENER. ORA file on the server hosting the RDBMS is missing.

Solution:

(1). Locate the active LISTENER. ORA file on the server. By default, it will be on the Oracle RDBMS drive in the path ../ora92/network/admin.

(2). Inspect the file and locate all entries associated with "SID_DESC". Each such entry shoshould have the following option associated with it:

(ENVS = "EXTPROC_DLLS = ANY ")

(3). Add the above line to any entry where it is missing.

(4). Restart the Oracle Listener Service (or reboot the server which will in turn restart Oracle ).

Example:

The example LISTENER. ORA file below shows a valid configuration for the server named "WOODY" (using TCP/IP on Port 1521) with the correct ENVS entries highlighted:

# LISTENER. ORA Network Configuration File: C:/oracle/ora92/network/admin/listener. ora

# Generated by Oracle configuration tools.

 
 
  1. LISTENER =  
  2.  
  3. (DESCRIPTION_LIST =  
  4.  
  5. (DESCRIPTION =  
  6.  
  7. (ADDRESS_LIST =  
  8.  
  9. (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))  
  10.  
  11. )  
  12.  
  13. (ADDRESS_LIST =  
  14.  
  15. (ADDRESS = (PROTOCOL = TCP)(HOST = woody)(PORT = 1521))  
  16.  
  17. )  
  18.  
  19. )  
  20.  
  21. )  
  22.  
  23. SID_LIST_LISTENER =  
  24.  
  25. (SID_LIST =  
  26.  
  27. (SID_DESC =  
  28.  
  29. (SID_NAME = PLSExtProc)  
  30.  
  31. (ORACLE_HOME = C:/oracle/ora92)  
  32.  
  33. (PROGRAM = extproc)  
  34.  
  35. (ENVS = "EXTPROC_DLLS=ANY")  
  36.  
  37. )  
  38.  
  39. (SID_DESC =  
  40.  
  41. (GLOBAL_DBNAME = WOODY)  
  42.  
  43. (ORACLE_HOME = C:/oracle/ora92)  
  44.  
  45. (SID_NAME = WOODY)  
  46.  
  47. (ENVS = "EXTPROC_DLLS=ANY")  
  48.  
  49. )  
  50.  
  51. )  

6. When you start the service on the control panel, the following error occurs:

Service: The OracleOraDb10g_home1TNSListener service cannot be started on the local computer.

Error 3: The specified path cannot be found.

Check the properties and find that the executable file path of OracleOraDb10g_home1TNSListener service is empty.

Solution:

Start --> Run REGEDIT --> go to the Registry and find HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/OracleOraDb10g_home1TNSListener.

The key value of ImagePath is missing. Create a New expandable string value named ImagePath and edit the value data of the string as follows: Oracle installation path/BIN/TNSLSNR

7. Error Description: The OracleOraDb10g_home1TNSListener service on the Local Computer stops again after it is started. Some services are automatically stopped if they have nothing to do, such as the "performance log and alarm" service.

Solution: C:/oracle/product/10.2.0/db_1/NETWORK/ADMIN/listener. ora change the content in this file to HOST = your computer name.

For more information about Oracle Database problems and solutions, see here.

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.