ORA-12514 error troubleshooting when connecting to Oracle

Source: Internet
Author: User

ORA-12514 error troubleshooting when connecting to Oracle

Recently, Oracle 11 GB in windows has been used for testing.

ORA-12514: TNS: The Listener currently cannot identify the Service requested in the connection Descriptor

I searched the internet and found that the listener. ora configuration file is mostly involved, but my system has been running normally. This should not happen suddenly. Later, I accidentally found that Oracle 11g in Windows had such a problem. Oracle 11g writes audit logs by default and writes them to the "application" logs of the operating system. When the application logs are full. It is equivalent to the user login audit can not be recorded, the opportunity to log on, and report the ORA-12514 this error.

Installing Oracle 12C in Linux-6-64

Install Oracle 11gR2 (x64) in CentOS 6.4)

Steps for installing Oracle 11gR2 in vmwarevm

Install Oracle 11g XE R2 In Debian

Temporary solution: Clear logs

Control Panel-> Administrative Tools-> Event Viewer-> Applications-> right-click-> clear all events

In this way, you can log on to oracle normally.

The other solution is to disable oracle audit.

1. log on to the database server as an oracle user and execute:

Sqlplus/as sysdba

2. Cancel audit and set the initialization parameter audit_trail to NONE.

Alter system set audit_trail = none scope = spfile;

3. Restart the database.

Shutdown immediate;

Sqlplus/as sysdba

Startup;

4. Delete the authorization data. The oracle user logs on to the database server:

Sqlplus/as sysdba

Truncate table SYS. AUD $;

Later, after testing, it was found that the normal log is full, and the prompt that the log cannot be logged on should be as follows:

ERROR:

ORA-28056: failed to write audit records to Windows Event Logs

OSD-748745664: Message 748745664 not found; product = RDBMS; facility = SOSD

O/S-Error: (OS 1502) the event log file is full.

ORA-02002: An error occurred while writing audit leads

ORA-28056: failed to write audit records to Windows Event Logs

OSD-748746736: Message 748746736 not found; product = RDBMS; facility = SOSD

O/S-Error: (OS 1502) the event log file is full.

If such a prompt appears, the cause of the problem is clear. The above method can be used.

Related Article

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.