2012-11-02 2 views
0

Windows Server 2008 R2에서 Oracle 11g를 실행 중입니다. 클라이언트 응용 프로그램 (Zabbix)이 다른 곳에 연결되어 연결하려고합니다.ora-12154 문제가 발생했습니다.

클라이언트 기계는 :

  • 오라클 - instantclient11.2 - - 기본 11.2.0.3.0-1.i386.rpm
  • 오라클 - instantclient11.2-(STABLE) - 11.2.0.3.0 -1.i386.rpm

그리고 sqlnet.ora 또는 tnsnames.ora 파일이 없습니다. 직접 주소 지정을 사용하여 연결을 설정하려고합니다. 1521/zabbix 다음 PHP에서 인쇄 문으로, 나는 연결이 // dbhostmachine로 설정되면서

ociplogon(user,password,$connect); 

를 호출 것을 알 수있다. 그래서 모든 것이 잘 어울립니다. 로컬 연결을 시도

C:\Users\mdobrini> lsnrctl services 

LSNRCTL for 64-bit Windows: Version 11.1.0.7.0 - Production on 02-NOV-2012 13:00:55 

Copyright (c) 1991, 2008, Oracle. All rights reserved. 

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=dbhostmachine.dddd.cccc.com)(POR 
Services Summary... 
Service "zabbix" has 1 instance(s). 
    Instance "zabbix", status READY, has 1 handler(s) for this service... 
    Handler(s): 
     "DEDICATED" established:578 refused:0 state:ready 
     LOCAL SERVER 
Service "zabbixXDB" has 1 instance(s). 
    Instance "zabbix", status READY, has 1 handler(s) for this service... 
    Handler(s): 
     "D000" established:0 refused:0 current:0 max:1022 state:ready 
     DISPATCHER <machine: dbhostmachine, pid: 6384> 
     (ADDRESS=(PROTOCOL=tcp)(HOST=dbhostmachine.dddd.cccc.com)(PORT=61396)) 
Service "zabbix_XPT" has 1 instance(s). 
    Instance "zabbix", status READY, has 1 handler(s) for this service... 
    Handler(s): 
     "DEDICATED" established:578 refused:0 state:ready 
     LOCAL SERVER 
The command completed successfully 

잘 작동 :

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

이상한 것은 그것이 간헐적으로 이전에 작업 한 것입니다 :

SQL*Plus: Release 11.1.0.7.0 - Production on Fri Nov 2 13:06:31 2012 

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

Enter user-name: SYSTEM 
Enter password: 

Connected to: 
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production 

SQL> connect uuu/[email protected]/zabbix 
Connected. 
SQL> 

그러나, 원격 내가 인기 오류가 발생합니다. 내 응용 프로그램에서 약 10 초마다 오류가 발생합니다 :

30923:20121101:142237.595 [Z3001] connection to database '//dbhostmachine:1521/zabbix'  failed: [-1] ORA-12516: TNS:listener could not find available handler with matching protocol stack 
30923:20121101:142237.596 watchdog: database is down 

그러나 확실히 데이터가 네트워크를 통해 전송되었고 db에 유지되었습니다. 응용 프로그램과 서버를 다시 시작한 후 더 이상 연결할 수 없으며 ORA-12154에 대한 답변을 얻지 못했습니다.

답변

0

DNS 문제로 인해 ORA-12154가 발생했습니다. IP 주소로 전환 한 후 사라졌습니다.

DB에서 최대 세션/프로세스에 도달하여 ORA-12516이 발생했습니다. 그것뿐만 아니라 일부 PHP는 OCI8 매개 변수를 조정 후뿐만 아니라 갔다.

관련 문제