>> Read No. 37788 article  
이메시지가 뭔지..영문인데요...oracle에서 찾은..

등록 2001-12-21 23:51:00     조회 2
이름 김정훈    

		Title :  Oracle/DBI connect error(12154)  O/S :  N/A
Author :  Meh   Type :  N/A
Date :  May 24, 1999 01:07 PT   
  POST :REPLY (W/QUOTE)
--
Hi;
 I'm trying to connect to Oracle via DBI interface,by a simple
script like this:
 use DBI;
$dbh = DBI->connect(
'dbi:Oracle:database=1234;host=my.home.adrs;port=1521','dba_name','dba_passwd');
if ( ! defined $dbh){
die " can not connect to server :$DBI::errstr";
}
$sth= $dbh->prepare( " SELECT table_name FROM user_tables ");
$sth->execute;
while( @varList = $sth->fetchrow_array){
print " @varList ";
}
 $sth->finish;
$dbh->disconnect;
 Then I get this error message:
 ORA-12154: TNS:could not resolve service name (DBD ERROR:
OCIServerAttach) at /home/test/dbitest.pl line 4
can not connect to server :ORA-12154: TNS:could not resolve
service name (DBD ERROR: OCIServerAttach)
 Listener.ora file looks OK,and I don't get what OCIServiceAttach
is referring to .Any help?Thanks.
 Meh
null 
 
  Title :  Oracle/DBI connect error(12154)  O/S :  N/A
Author :  Rahul Sen Gupta   Type :  N/A
Date :  May 24, 1999 17:08 PT   
  POST :REPLY (W/QUOTE)
--
I have faced the same problem with this OCIserverAttach when I
made DBD::Oracle with perl MakeFile.pl. However my message id
was ORA-12224 not ORA-12154. Then I remade DBD with perl
MakeFile.pl -8. But now I am getting
DBI->Connect failed: ORA-12224: TNS no listner (DBD:login
failed)
Can I get some help?
 Rahul
  Meh (guest) wrote:
: Hi;
: I'm trying to connect to Oracle via DBI interface,by a simple
: script like this:
: use DBI;
: $dbh = DBI->connect(
:
'dbi:Oracle:database=1234;host=my.home.adrs;port=1521','dba_name
','dba_passwd');
: if ( ! defined $dbh){
: die " can not connect to server :$DBI::errstr";
: }
: $sth= $dbh->prepare( " SELECT table_name FROM user_tables ");
: $sth->execute;
: while( @varList = $sth->fetchrow_array){
: print " @varList ";
: }
: $sth->finish;
: $dbh->disconnect;
: Then I get this error message:
: ORA-12154: TNS:could not resolve service name (DBD ERROR:
: OCIServerAttach) at /home/test/dbitest.pl line 4
: can not connect to server :ORA-12154: TNS:could not resolve
: service name (DBD ERROR: OCIServerAttach)
: Listener.ora file looks OK,and I don't get what
OCIServiceAttach
: is referring to .Any help?Thanks.
: Meh
null 
 
  Title :  Oracle/DBI connect error(12154)  O/S :  N/A
Author :  Rx   Type :  N/A
Date :  May 24, 1999 18:48 PT   
  POST :REPLY (W/QUOTE)
--
Maybe you both should check whether the listener is REALLY up or
not. Use "lsnrctl status" to get the info.
 Robert Xu
 Rahul Sen Gupta (guest) wrote:
: I have faced the same problem with this OCIserverAttach when I
: made DBD::Oracle with perl MakeFile.pl. However my message id
: was ORA-12224 not ORA-12154. Then I remade DBD with perl
: MakeFile.pl -8. But now I am getting
: DBI->Connect failed: ORA-12224: TNS no listner (DBD:login
: failed)
: Can I get some help?
: Rahul
: Meh (guest) wrote:
: : Hi;
: : I'm trying to connect to Oracle via DBI interface,by a simple
: : script like this:
: : use DBI;
: : $dbh = DBI->connect(
: :
:
'dbi:Oracle:database=1234;host=my.home.adrs;port=1521','dba_name
: ','dba_passwd');
: : if ( ! defined $dbh){
: : die " can not connect to server :$DBI::errstr";
: : }
: : $sth= $dbh->prepare( " SELECT table_name FROM user_tables ");
: : $sth->execute;
: : while( @varList = $sth->fetchrow_array){
: : print " @varList ";
: : }
: : $sth->finish;
: : $dbh->disconnect;
: : Then I get this error message:
: : ORA-12154: TNS:could not resolve service name (DBD ERROR:
: : OCIServerAttach) at /home/test/dbitest.pl line 4
: : can not connect to server :ORA-12154: TNS:could not resolve
: : service name (DBD ERROR: OCIServerAttach)
: : Listener.ora file looks OK,and I don't get what
: OCIServiceAttach
: : is referring to .Any help?Thanks.
: : Meh
null 
 
  Title :  Oracle/DBI connect error(12154)  O/S :  N/A
Author :  Me   Type :  N/A
Date :  May 24, 1999 22:40 PT   
  POST :REPLY (W/QUOTE)
--
Good help. But listener was connected properly.Then I found there
was an error in (oracle generated file)Listener.ora:
Global_dbname was assigned an invalid address.
I corrected that and now DBD is connected and working.
 Thanks
  Rx (guest) wrote:
: Maybe you both should check whether the listener is REALLY up
or
: not. Use "lsnrctl status" to get the info.
: Robert Xu
: Rahul Sen Gupta (guest) wrote:
: : I have faced the same problem with this OCIserverAttach when
I
: : made DBD::Oracle with perl MakeFile.pl. However my message id
: : was ORA-12224 not ORA-12154. Then I remade DBD with perl
: : MakeFile.pl -8. But now I am getting
: : DBI->Connect failed: ORA-12224: TNS no listner (DBD:login
: : failed)
: : Can I get some help?
: : Rahul
: : Meh (guest) wrote:
: : : Hi;
: : : I'm trying to connect to Oracle via DBI interface,by a
simple
: : : script like this:
: : : use DBI;
: : : $dbh = DBI->connect(
: : :
: :
:
'dbi:Oracle:database=1234;host=my.home.adrs;port=1521','dba_name
: : ','dba_passwd');
: : : if ( ! defined $dbh){
: : : die " can not connect to server :$DBI::errstr";
: : : }
: : : $sth= $dbh->prepare( " SELECT table_name FROM user_tables
");
: : : $sth->execute;
: : : while( @varList = $sth->fetchrow_array){
: : : print " @varList ";
: : : }
: : : $sth->finish;
: : : $dbh->disconnect;
: : : Then I get this error message:
: : : ORA-12154: TNS:could not resolve service name (DBD ERROR:
: : : OCIServerAttach) at /home/test/dbitest.pl line 4
: : : can not connect to server :ORA-12154: TNS:could not
resolve
: : : service name (DBD ERROR: OCIServerAttach)
: : : Listener.ora file looks OK,and I don't get what
: : OCIServiceAttach
: : : is referring to .Any help?Thanks.
: : : Meh
null 
 
  Title :  re:Oracle/DBI connect error(12154)  O/S :  MS Windows
Author :  emmanuel pascual   Type :  Question
Date :  Oct 25, 2001 02:57 PT   
  POST :REPLY (W/QUOTE)
I also got a message 12154 and my Oracle version is 7.2. I'd
like to know what is the correct format of the host string or
what do i have to do if i'm using Sql*Plus but could not connect
to database. How do i check for the service name?
이름
암호
Register [ localhost 목록보기 윗글 아랫글
글쓰기
답장쓰기 수정 삭제
정규표현식 [ 상세 검색 ]
페이지로딩: [ 6.72 초 ] 작업시간: [ 6.13 초 ]

Copyleft 1999-2026 by JSBoard Open Project
Theme Designed by IDOO All right reserved
[TOP]

적수네 동네
+
| 적수네 동네
| 공부방
| 리눅스 잡지 서고
| LSN 소스
| 링크 모음
+---+
게시판
+
| 떠들어보세!
| 질문과 답변
| 새소식과 정보
| 1원짜리 팁?
| 대화방
+---+
칼럼?
+
| 세하 훔쳐보기
| Welcome2nite
| 혜진의 염장판
+---+
리눅스 상표권
+
| 반대 서명란
| 토론 게시판
+---+
GNU
+
| GNU 선언문
| GNU GPL
| GNU 미러 목록
+---+
프로젝트?
+
| 리눅스카운터
| RC5DES
| 실질헌법 제작
+---+
커널 소식
+
| 안정 버젼: 2.4.14
+---+
테마 선택
+
LSN 방송국?
+
| OFF AIR
+---+
회원
+
| 로그인
+---+
[ 적수네 동네 ] [ 리눅스 상표권 독점 반대 ] [ 한글 리눅스 문서 프로젝트 ] [ KrLine ] [ 사랑넷 ] [ Valid HTML 4.0! ] [ SlashDot ] [ Freshmeat ]
Copyleft (C) 1998-2001 Byeong-Chan Kim . License
TIME: 1789484364
System by WYZsoft, HDD by I.O.Linux, Mizi Research, Embryo, WOWLINUX, Domain by SarangNet, Network by KrLine.