database.sarang.net
UserID
Passwd
Database
DBMS
MySQL
PostgreSQL
Firebird
ㆍOracle
Informix
Sybase
MS-SQL
DB2
Cache
CUBRID
LDAP
ALTIBASE
Tibero
DB 문서들
스터디
Community
공지사항
자유게시판
구인|구직
DSN 갤러리
도움주신분들
Admin
운영게시판
최근게시물
Oracle Q&A 24862 게시물 읽기
No. 24862
tnsping works but sqlplus gives me 12154 error
작성자
윤종수(jsrookie)
작성일
2005-11-15 18:34
조회수
2,378

sorry, my computer doesn't support Hangle, yet.

 

anyway, when i try to connect to DB server with sqlplus, it gives me ora-12154 error. it is TNS:could not resolve the connect identifier specified.

 

but oemapp console works, and also tnsping works.

 

 

 

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

rookie@js-station:/home/oracle/OraHome_1/bin> ./tnsping ORCL

 

TNS Ping Utility for Linux: Version 10.1.0.3.0 - Production on 15-11-2005 18:25:55

 

Copyright (c) 1997, 2003, Oracle. All rights reserved.

 

Used parameter files:

/home/oracle/OraHome_1/network/admin/sqlnet.ora

 

 

Used TNSNAMES adapter to resolve the alias

)SERVICE_NAME = orcl)= TCP)(HOST = 222.236.46.89)(PORT = 1521))

OK (270 msec)

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

 

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

rookie@js-station:/home/oracle/OraHome_1/bin> ./sqlplus dash@orcl

 

SQL*Plus: Release 10.1.0.3.0 - Production on ȭ 11 15 18:25:39 2005

 

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

 

Enter password:

ERROR:

ORA-12154: TNS:could not resolve the connect identifier specified

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

 

 

--------------------------<~/.profile>----------------------------------------

xport ORACLE_HOME=/home/oracle/OraHome_1

export LD_LIBRARY_PATH=$LD_LIBRARY:$ORACLE_HOME/lib

export TNS_ADMIN=$ORACLE_HOME/network/admin

export NLS_LANG=KOREAN_KOREA.KO16KSC5601

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

 

any idea?

please help me~~

 

P.S) i can see Hangle ^^;

 

 

이 글에 대한 댓글이 총 2건 있습니다.

$ORACLE_HOME/network/admin/tnsnames.ora 화일에

ORCL 관련 Config 내용이 있어야 합니다.

 

참고>

ORCL =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = ip_address)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = sid)
    )
  )

 

위와 같은 내용이 있어야 합니다.

ip_address는 DB 서버가 있는 ip 주소

sid : DB Instance Name

수고하세요

머깨비님이 2005-11-15 19:35에 작성한 댓글입니다. Edit

tnsnames.ora에서

 

(SERVER_NAME = )

을 (SID = )로 바꾸고

(SERVER = DEDICATED)를 추가하니까 되네요 ㅎㅎ

 

 

윤종수(jsrookie)님이 2005-11-16 10:35에 작성한 댓글입니다.
이 댓글은 2005-11-16 11:22에 마지막으로 수정되었습니다.
[Top]
No.
제목
작성자
작성일
조회
24865일반변수 사용시 스태틱 sql.. [1]
백수환
2005-11-16
909
24864imp시 table이름을 다르게 줄 수있나여? [1]
멍충이
2005-11-16
1142
24863트리거 실행시, SCOTT.TEST1가 변화하고 있어서 트리거/함수가 이를 볼 수 없습니다. [1]
이승배
2005-11-15
1747
24862tnsping works but sqlplus gives me 12154 error [2]
윤종수
2005-11-15
2378
24861쿼리를 바꾸면 <03113 : 통신채널에 EOF가 있습니다> 에러가.. [1]
신동민
2005-11-15
1989
24859아카이브 모드 맞는지요? [6]
파란나라
2005-11-15
2343
24858exp/imp시 여러 테이블을 하나로 지정 어케하나요? [1]
김예솔
2005-11-15
1243
Valid XHTML 1.0!
All about the DATABASE... Copyleft 1999-2024 DSN, All rights reserved.
작업시간: 0.019초, 이곳 서비스는
	PostgreSQL v16.2로 자료를 관리합니다