91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

【故障處理】ORA-12162 錯誤的處理

發布時間:2020-07-15 18:17:19 來源:網絡 閱讀:283 作者:小麥苗best 欄目:關系型數據庫

【故障處理】ORA-12162: TNS:net service name is incorrectly specified

 

一.1  場景

今天拿到一個新的環境,可是執行sqlplus / as sysdba的時候不能登錄,報ORA-12162: TNS:net service name is incorrectly specified的錯誤,之前沒有碰到過,就隨時記錄下,備查。

 

一.2  實驗還原

Last unsuccessful login: Thu Mar 19 16:59:06 BEIST 2015 on /dev/pts/0 from 200.31.177.54

Last login: Thu Jul 16 22:44:20 BEIST 2015 on ftp from ::ffff:200.31.156.201

*******************************************************************************

*                                                                             *

*                                                                             *

Welcome to AIX Version 5.3!                                                *

*                                                                             *

*                                                                             *

*  Please see the README file in /usr/lpp/bos for information pertinent to    *

*  this release of the AIX Operating System.                                  *

*                                                                             *

*                                                                             *

*******************************************************************************

oracle@SJCk4:/home/oracle>

oracle@SJCk4:/home/oracle>

oracle@SJCk4:/home/oracle>ps -ef|grep ora_pmon_

  oracle  348182       1   0   Apr 25      -  7:42 ora_pmon_DATAWDB

  oracle  630842       1   0   Apr 25      - 20:02 ora_pmon_COGDB

  oracle  843948       1   0   Apr 25      -  6:45 ora_pmon_ETLDB

  oracle 5005418 4427974   0 09:44:03  pts/0  0:00 grep ora_pmon_

oracle@SJCk4:/home/oracle>ORACLE_SID=DATAWDB

oracle@SJCk4:/home/oracle>echo $ORACLE_SID

DATAWDB

 

oracle@SJCk4:/home/oracle>

oracle@SJCk4:/home/oracle>sqlplus / as sysdba

 

SQL*Plus: Release 10.2.0.1.0 - Production on Fri Jul 17 09:56:44 2015

 

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

 

ERROR:

ORA-12162: TNS:net service name is incorrectly specified

 

 

Enter user-name:

ERROR:

ORA-12162: TNS:net service name is incorrectly specified

 

 

Enter user-name:

ERROR:

ORA-12162: TNS:net service name is incorrectly specified

 

 

SP2-0157: unable to CONNECT to ORACLE after 3 attempts, exiting SQL*Plus

oracle@SJCk4:/home/oracle>echo $ORACLE_HOME

/app/oracle/product/10.2.0/db_1

oracle@SJCk4:/home/oracle>echo $ORACLE_SID

DATAWDB

oracle@SJCk4:/home/oracle>

oracle@SJCk4:/home/oracle>

oracle@SJCk4:/home/oracle>

oracle@SJCk4:/home/oracle>

oracle@SJCk4:/home/oracle>export ORACLE_SID=DATAWDB

oracle@SJCk4:/home/oracle>sqlplus / as sysdba

 

SQL*Plus: Release 10.2.0.1.0 - Production on Fri Jul 17 09:59:27 2015

 

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

 

 

Connected to:

Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production

With the Partitioning, OLAP and Data Mining options

 

SQL>

SQL>

 

 

 

 

一.3  總結

[oracle@rhel6_lhr ~]$ oerr ora 12162

12162, 00000, "TNS:net service name is incorrectly specified"

// *Cause:  The connect descriptor corresponding to the net service name in

// TNSNAMES.ORA or in the directory server (Oracle Internet Directory) is

// incorrectly specified.

// *Action: If using local naming make sure there are no syntax errors in

// the corresponding connect descriptor in the TNSNAMES.ORA file. If using

// directory naming check the information provided through the administration

// used for directory naming.

[oracle@rhel6_lhr ~]$

 

可以確定的是ORA-12162是由于ORACLE_SID未設置或者設置不正確導致的,推薦使用export ORACLE_SID=XXX來設置,當不能設置的時候再用ORACLE_SID=XXX來直接設置。

 

 

另外的一篇blog參考:http://blog.itpub.net/26736162/viewspace-1735917/

 

 

 

一.4  About Me

 

...........................................................................................................................................................................................

本文作者:小麥苗,只專注于數據庫的技術,更注重技術的運用

ITPUB BLOG:http://blog.itpub.net/26736162

本文地址:http://blog.itpub.net/26736162/viewspace-1736192/

本文pdf版:http://yunpan.cn/QCwUAI9bn7g7w  提取碼:af2d

QQ:642808185 若加QQ請注明你所正在讀的文章標題

創作時間地點:2015-07-17 10:00~ 2015-07-17 19:00 于×××交易中心

<版權所有,文章允許轉載,但須以鏈接方式注明源地址,否則追究法律責任!>

...........................................................................................................................................................................................

 

 

向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

琼中| 贺州市| 灵台县| 卢龙县| 门头沟区| 阜阳市| 呼伦贝尔市| 靖安县| 德兴市| 太保市| 定西市| 长沙县| 伊春市| 遂宁市| 修水县| 诸暨市| 和平区| 烟台市| 怀安县| 布尔津县| 南涧| 青河县| 宝清县| 嘉祥县| 青阳县| 肥乡县| 南和县| 南雄市| 玉树县| 梅州市| 易门县| 山西省| 凤台县| 崇明县| 景谷| 闻喜县| 和平区| 鹤岗市| 满城县| 江达县| 虞城县|