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

After Oracle19c orapwd changes the password, connect to the database and report to ORA-12154

2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

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

Environment [oracle@pub19-node2 ~] $sqlplus-vSQL*Plus: Release 19.0.0.0.0-ProductionVersion 19.5.1.0.0 problem description

After using orapwd to modify the password file, there is no problem for ordinary users to log in to the database through the tnsnames.ora file. When it comes to sysdba

When entering the correct password, the password file will be reported to ORA-12514, which is not a problem before orapwd.

[oracle@pub19-node2 dbs] $orapwd file=+datadg dbuniquename=orcl format=12 sys=password sysdg=password force=y [oracle@pub19-node2 ~] $sqlplus system@czhprimarySQL*Plus: Release 19.0.0.0.0-Production on Sun May 3 08:09:45 2020Version 19.5.1.0.0Copyright (c) 1982, 2019, Oracle. All rights reserved.Enter password: Last Successful login time: Sun May 03 2020 07:56:27 + 08:00Connected to:Oracle Database 19c Enterprise Edition Release 19.0.0.0.0-ProductionVersion 19.5.1.0.0SYSTEM@czhprimary >

[oracle@pub19-node2] $sqlplus sys@czhprimary as sysdbaSQL*Plus: Release 19.0.0.0.0-Production on Sun May 3 08:08:53 2020Version 19.5.1.0.0Copyright (c) 1982, 2019, Oracle. All rights reserved.Enter password: ERROR:ORA-12154: TNS:could not resolve the connect identifier specifiedEnter user-name: troubleshooting issu

When ORA- 12514 occurs, there are generally several reasons:

(1) the tnsnames.ora file is not configured correctly.

(2) the sqlnet.ora file is not configured correctly.

(3) due to the different client and server versions, the compatibility parameters are not modified in the sqlnet.ora file.

(4) the password file is not configured correctly

Problem solving

After investigation, all of the above problems can not be solved. Go to Mos search and find the following articles:

Change in Password and Remote Connection Suddenly Yields: ORA-12154 TNS: Unable to Resolve Service Name (Doc ID 291709.1)

The problem occurs when the password modified through orapwd has the @ symbol, and it happens that the password I modified contains @, so you need to add double quotation marks when entering the password as follows:

[oracle@pub19-node2] $sqlplus sys@czhprimary as sysdbaSQL*Plus: Release 19.0.0.0.0-Production on Sun May 3 08:18:06 2020Version 19.5.1.0.0Copyright (c) 1982, 2019, Oracle. All rights reserved.Enter password: "1qaz@WSX" Connected to:Oracle Database 19c Enterprise Edition Release 19.0.0.0.0-ProductionVersion 19.5.1.0.008 Enterprise Edition Release 1815 SYS@czhprimary > thinking

When this problem occurs, you should think that the only modification is the password file. There was no problem with the connection before, and the password file was located at that time, but you didn't think of it.

Will need to be enclosed in double quotes when entering a password, or think a lot.

Reference article:

Change in Password and Remote Connection Suddenly Yields: ORA-12154 TNS: Unable to Resolve Service Name (Doc ID 291709.1)

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