ORA - 12545 ERROR
I have a problem connecting to the host.
I am able to ping successfully to the server.
When I execute tnsping from the client machine, the operation runs successfully.
TNS Ping Utility for 32-bit Windows: Version 2.3.2.1.0 - Production on 21-JUN-01 10:45:50
Copyright , 1996(c) Oracle Corporation 1995. All rights reserved.
Attempting to contact (ADDRESS=(COMMUNITY=tcp.world)(PROTOCOL=TCP)(Host=150.140.130.35)(Port=1521))
OK (50 msec)
However when I use SQL Plus or Forms Application to connect to this database, I get the following error :
SQL> connect armada/armada@orants
ERROR: ORA-12545: TNS:name lookup failure
My TNSnames extract for this database is as follows :
orants.world =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(COMMUNITY = tcp.world)
(PROTOCOL = TCP)
(Host = 150.140.130.35)
(Port = 1521)
(ADDRESS =
(COMMUNITY = tcp.world)
(PROTOCOL = TCP)
(Host = 150.140.130.35)
(Port = 1526)
(CONNECT_DATA = (SID = ORANTS)
A quick reply will be appreciated.
Hi
Just thought I'd tell the list that I had to add
disable_oob = on
to the client sqlnet.ora and it worked like a charm.
Try this
Good Luck
r@m@
Similar Messages
-
Re:ORA-12545 error (host target)
Can anyone shed some light on this... I have just installed red hat linux 9 and have been trying install Oracle 9.2 (i have followed many instructions from sites and have done all the export cmds etc...). But i keep getting a ORA-12545 error when trying to connect (no target host found)i have looked at the listener.ora file and cant seem to see anything wrong. What else can i do to solve my problem??? Ian.
There are several issues that you have to check out.
ORA-12545: TNS:name lookup failure
Cause: The listener on the remote node cannot be contacted.
Action: Perform these steps:
Verify that the ADDRESS in the tnsnames.ora file and the listener.ora file is correct.
Verify that the listener on the remote node has been started. Enter:
lsnrctl
LSNRCTL> STATUS [listener_name]
listener_name is the name of the listener defined in the listener.ora file. It is not necessary to identify the listener if you are using the default listener, named LISTENER.
If the output indicates the listener is not running, try starting it with the command:
LSNRCTL> START [listener_name]
First than nothing :
1.- Can you get connection locally in the Server ?
Joel P�rez -
8.1.5 installs on Redhat 6.1, but ORA-12545 error
I carefully followed all of the installation instructions, and the installation procedure seemed to go as expected. But when I attempt to create a database with dbassist, I get an error:
ORA-12545 Connect failed because target host or object does not exist
Note: This is not a networked machine, but there are two network cards installed in the machine. The hostname is currently set to "localhost.localdomain".
Any ideas?
Thanks,
J.R. Belding
[email protected]
null<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by jrbelding ([email protected]):
I carefully followed all of the installation instructions, and the installation procedure seemed to go as expected. But when I attempt to create a database with dbassist, I get an error:
ORA-12545 Connect failed because target host or object does not exist
Note: This is not a networked machine, but there are two network cards installed in the machine. The hostname is currently set to "localhost.localdomain".
Any ideas?
Thanks,
J.R. Belding
[email protected]<HR></BLOCKQUOTE>
Also, I did notice that there seemed to be some errors during execution of the ./linux.sh and ./linux_815patches.sh scripts.
null -
ORA-12545 error after changing the host name as IP address in Tnsnames.ora
HI,
I tried to connect PHP and oracle in Red Hat linux. I got error ORA-12545 after changing the host name as IPAddress in Tnsnames.ora file. In sqlnet.ora file also i have entry for tnsnames in Directory_Path. I struggled so much but i couldnt solve that. Please give me ur valuable suggestions....12545, 00000, "Connect failed because target host or object does not exist"
// *Cause: The address specified is not valid, or the program being
// connected to does not exist.
// *Action: Ensure the ADDRESS parameters have been entered correctly; the
// most likely incorrect parameter is the node name. Ensure that the
// executable for the server exists (perhaps "oracle" is missing.)
// If the protocol is TCP/IP, edit the TNSNAMES.ORA file to change the
// host name to a numeric IP address and try again.
Seems you specified wrong IP address. -
ORA-12545 error while installing Oracle 8i on RHEL 3.0
Hi,
I am trying to install oracle 8.1.7 on redhat EL 3.0. Earlier i installed the same oracle i.e 8.1.7 on redhat 8.0/9.0 and it installed sucesfully. The proceudre
i follow for installtion was :
####### some settings
groupadd dba
groupadd oinstall
groupadd oracle
useradd -g dba -G oinstall,oracle -m oracle
passwd oracle
mkdir /ora8
cd /ora8
mkdir -p m01 m02 m03/oradata/ora8
chown -R oracle.dba /ora8
###### login as oracle. changes in .bash_profile(setting up of parameters)
export ORACLE_BASE=/ora8/m01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/8.1.7
export PATH=$PATH:$ORACLE_HOME/bin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export ORACLE_SID=perfdb
export ORACLE_TERM=vt100
export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
umask 022
LD_ASSUME_KERNEL=2.2.5
##### thereafter i run installer
./runInstaller
It goes smoothly and later it gives linking error. I ignore them at this stage.
#### thereafter I apply the patch
tar xzf /tmp/glibc2.1.3_stub.tgz
./setup_stubs
#### Therafter i run dbassist and I create the db and all went well.
When i followed the same procedure in RHEL 3.0 it goes smooth till applying patch glibc2.1.3_stub.tgz but thereafter when i try to create db using dbassist it gives me error like :
ORA-12545 Connect failed because target host or object does not exist.
Even if i tried to run svrmgrl it gives me error
:ORA-12545 Connect failed because target host or object does not exist
Could anyone help me in resolving that ? the same installation procedure works well for Redhat 8.0/9.0
Thanks
Harsh BhatiaWhat version of gcc are you using?
Check out this link: http://www.redhat.com/archives/taroon-list/2004-June/msg00030.html
All 8i and 9i releases are built with 2.9x versions of gcc, so you might have to downgrade gcc in order to get 8i running.
-Antti -
Occasionally got ORA-12545 error
I have 2-node Oracle 10g RAC set up. From a remote client, i run my sample program to retrieve scott.emp data. Occasionally i got ORA-12545 connection error. Using cpp app and Perl DBI app for tested it. And I got the same problem.
./mysample
Environment and Connection created
Result Set:
7369 SMITH CLERK 7902 17-DEC-80 800 0 20
7499 ALLEN SALESMAN 7698 20-FEB-81 1600 300 30
7521 WARD SALESMAN 7698 22-FEB-81 1250 500 30
7566 JONES MANAGER 7839 02-APR-81 2975 0 20
7654 MARTIN SALESMAN 7698 28-SEP-81 1250 1400 30
7698 BLAKE MANAGER 7839 01-MAY-81 2850 0 30
7782 CLARK MANAGER 7839 09-JUN-81 2450 0 10
7788 SCOTT ANALYST 7566 19-APR-87 3000 0 20
7839 KING PRESIDENT 0 17-NOV-81 5000 0 10
7844 TURNER SALESMAN 7698 08-SEP-81 1500 0 30
7876 ADAMS CLERK 7788 23-MAY-87 1100 0 20
7900 JAMES CLERK 7698 03-DEC-81 950 0 30
7902 FORD ANALYST 7566 03-DEC-81 3000 0 20
7934 MILLER CLERK 7782 23-JAN-82 2300 0 10
Environment and Connection terminated
./mysample
Aborted
./select.pl
DBI connect('lot','scott',...) failed: ORA-12545: Connect failed because target host or object does not exist (DBD ERROR: OCIServerAttach) at ./select.pl line 6
Here is the sqlnet.log:
Fatal NI connect error 12545, connecting to:
(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=XXXXXXXX)(PORT=1521))(LOAD_BALANC
VERSION INFORMATION:
TNS for Linux: Version 10.1.0.2.0 - Production
TCP/IP NT Protocol Adapter for Linux: Version 10.1.0.2.0 - Production
Time: 15-NOV-2004 10:30:22
Tracing not turned on.
Tns error struct:
ns main err code: 12545
TNS-12545: Connect failed because target host or object does not exist
ns secondary err code: 12560
nt main err code: 515
TNS-00515: Connect failed because target host or object does not exist
nt secondary err code: 2
nt OS err code: 0
Anyone knows what went wrong?
thanks,
qichengI have same problem :-( When I try to connect from client station, but when Im connecting from one of nodes it is OK :-(
Ales -
ORA-12545 error in rac, local&remote listener
Hi,
We have an 10g Release 2 RAC system. We usually take
ORA-12545 Connect failed because target host or object does not exist tips
error message. I think tnsnames.ora file is correct, I can achieve to send tnsping message. And I think the host file is alaso correct, I am successful to send ping message to the ip in the host file. And we are noticed that cpu utilization of one RAC node is very bad. Do you that these two problem can be related? I searched the error message on internet. I think this link is interesting:
http://www.ardentperf.com/2007/04/02/local_listener-and-ora-12545/
But I do not fully understand the article. Because I do not know the local&remote listeners.
Can you help me?12545, 00000, "Connect failed because target host or object does not exist"
// *Cause: The address specified is not valid, or the program being
// connected to does not exist.
// *Action: Ensure the ADDRESS parameters have been entered correctly; the
// most likely incorrect parameter is the node name. Ensure that the
// executable for the server exists (perhaps "oracle" is missing.)
// If the protocol is TCP/IP, edit the TNSNAMES.ORA file to change the
// host name to a numeric IP address and try again.While logged onto the target system issue the following commands:
lsnrctl status
lsnrctl service
CUT commands & results and PASTE back here
Generate another error & then CUT the last 20 - 30 records from listener.log & PASTE back here -
ORA-12545 error in deploy server
Hi
In my development environment, we are having a Domain per application and each
domain will have one AdminServer and one DeployServer. Admin Server will be used
by administrator and DeployServer will be used by developers. All the user developed
application will be deployed in deploy server.
I wrote a small jsp which connects to database and retrieves some data. I've
used type-2 driver for this purpose. This jps works fine in AdminServer but do
not work in DeployServer. It throws the following error
java.sql.SQLException: Error while trying to retrieve text for error ORA-12545
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)
at oracle.jdbc.oci8.OCIDBAccess.check_error(OCIDBAccess.java:1597)
at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java:354)
at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:246)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
va:365)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260)
at java.sql.DriverManager.getConnection(DriverManager.java:517)
at java.sql.DriverManager.getConnection(DriverManager.java:177)
at jsp_servlet._jsp.__bachu1._jspService(__bachu1.java:95)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:265)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:304)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:200)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:2456)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:2039)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
But if I use thin driver then I works fine in both the servers.
I am using SunSolaris 2.8, Weblogic 6.1. Also I have added classes12.zip in the
begining of the CLASSPATH to avoid the oracle 8.1.6 and 8.1.7 conflict.
Please advise me why this error is coming and how to solve the problem.
Thanks & Regards,
Kiran BachuHi Kiran,
Your oracle client on the managed server has not been
set up properly. Make sure you have identical tnsnames.ora
files both on Admin and managed servers.
Regards,
Slava Imeshev
"Kiran Bachu" <[email protected]> wrote in message
news:[email protected]...
>
Hi
In my development environment, we are having a Domain per application andeach
domain will have one AdminServer and one DeployServer. Admin Server willbe used
by administrator and DeployServer will be used by developers. All theuser developed
application will be deployed in deploy server.
I wrote a small jsp which connects to database and retrieves some data.I've
used type-2 driver for this purpose. This jps works fine in AdminServerbut do
not work in DeployServer. It throws the following error
java.sql.SQLException: Error while trying to retrieve text for errorORA-12545
>
atoracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)
at oracle.jdbc.oci8.OCIDBAccess.check_error(OCIDBAccess.java:1597)
at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java:354)
atoracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:246)
atoracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
va:365)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260)
at java.sql.DriverManager.getConnection(DriverManager.java:517)
at java.sql.DriverManager.getConnection(DriverManager.java:177)
at jsp_servlet._jsp.__bachu1._jspService(__bachu1.java:95)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:265)
atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:304)
atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:200)
atweblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:2456)
atweblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:2039)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
But if I use thin driver then I works fine in both the servers.
I am using SunSolaris 2.8, Weblogic 6.1. Also I have added classes12.zipin the
begining of the CLASSPATH to avoid the oracle 8.1.6 and 8.1.7 conflict.
Please advise me why this error is coming and how to solve the problem.
Thanks & Regards,
Kiran Bachu -
Oracle 10gr2 rac, ora-12545 error when configured in shared server mode
Hi i have fresh installation on two node rac on linux, with oracle 10gr2. It is running successfully, when i configure it in shared server mode and try to connect from client it gives error ora_12545:
I have referred the oracle metalink notes and configured the local_listener as well as the remote_listener,
still it is giving the error. I am able to tnsping all the entries on tnsnames.ora,
i m also able to ping the hostnames,
It connects most of the times succeessfully but some times it gives the error.
how to solve this problem,
please help meBasically this error means you misspelled the hostname or typed a wrong IP Address.
Oracle Error :: TNS-12545+
Connect failed because target host or object does not exist
Cause
The address specified is not valid, or the program being connected to does not exist.
Action
Ensure the ADDRESS parameters have been entered correctly; the most likely incorrect parameter is the node name. Ensure that the executable for the server exists (perhaps "oracle" is missing.) If the protocol is TCP/IP, edit the TNSNAMES.ORA file to change the host name to a numeric IP address and try again.
I suggest you to check the dispatcher instance parameter.
~ Madrid
http://hrivera99.blogspot.com -
ORA-12545: Connect failed because target host or object does not exist(EBS)
Hi All,
We are using Oracle EBS R12 on Linux x86 Enterprise Server.
We have installed vision database (both apps and db on same machine)
Host name: ERPDEV
IP:192.168.1.211
We can connect from client machines to our database using sqlplus i.e.
sqlplus apps/****@vision
Similarly tnsping is also successfully returning results.
Also following commands are returning results
ping erpdev
ping 192.168.1.211
ping erpdev.domainname.com
All above commands are running fine.
However we are trying to create new "Legal Address Entry" through "Legal Entry Manager". After filling all the details like Location,Country,City etc, when I push the apply button, getting following error messages:
ORA-29273: HTTP request failed ORA-06512: at "SYS.UTL_HTTP", line 1674 ORA-12545: Connect failed because target host or object does not exist in Package xle_legal_address_swi Procedure create_legal_address
I dont know why this ORA-12545 error is occuring through application although all of the above tests are running fine from client terminals.
Do any one have any solution for this???
Thanks
FarooqHi,
I really am new to this application.
I could not get this document.
Can you pls guide me, how can i fix this problem.
It's really imp to me to fix this.
--Satish -
Random Occurrence of ORA-12545
Hi,
We are having trouble connecting to an Oracle 10g database. We receive an ORA-12545 error at what seems like random intervals.
We are trying to connect from 2 different places. 1) Using a DBLink in a Sql Client tool called AquaData and 2) On an Informatica server using an Informatica provided ODBC connection .
A) Below are the details in the TNSName.ORA file used by Aqua Data and Informatica:
PROD_SERVICE =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = IP_XXX_1)(PORT = YYY))
(ADDRESS = (PROTOCOL = TCP)(HOST = IP_XXX_2)(PORT = YYY))
(LOAD_BALANCE = yes)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = PROD_SERVICE)
Where the XXX's are IP address for two different servers and YYY are port numbers.
B) The prod service goes down for 30 minutes, every 90 minutes. However, the server and the listener port are "UP" all the time.
C) We are able to ping, tnsping, telnet from the Informatica server to the oracle server as well as from the Client machine. We are able to telnet and tnsping when the Oracle service is down. (In the 30 minute window), from the Client machine. We have not tried this yet from the Informatica server.
Details/ Observations about Place 1 (Sql Client/ Aqua Data):
1. We have created an DB Link connection to the database causing issues and used that to query from our factory database in Aqua Data.
2. Few times (very random) we have encountered "ORA-12545" error when we run a query.
3. We have observed that when we run a query in the 30 minute window (when the database service is down), we get ORA-01033 or ORA-12545 error randomly.
Details/ Observations about Place 2 (Informatica Server):
1. We have made the same TNS name entry in Informatica server and we have created a ODBC connection, exactly in the same way we configured the connection for SQL Client.
2. When the server is UP, and we kick off the jobs, we get the ORA-12545 error 80% of the time.
We have tried to correlate the occurrence of the error with the number of parallel connections/ different times during the 90minute window, but we were unable to find any conclusive relationship.
Can someone please help us understand the error and resolve the issue?
Thanks!!From the error docs, an ora-12545 is "Connect failed because target host or object does not exist".
Don't know how that can be made any more plain, the client software is not communicating with the specified host. Verify that the IP addresses are correct.
Three bits of information are required for a client to connect with a database- host, the listener port number, and the ORACLE_SID or instance SERVICE_NAME. Looks like RAC with load balancing so you'll be needing the service name.
The load balance part could be misleading, even with client "try an address in random order" check box enabled, it could very well be always trying the first entry of the ADDRESS_LIST stanza.
So its possible the "random" part is when one of the nodes is down. Or could be another cause, a large batch or some other kind of job blocking or some other pinch point is getting scratched.
Start with trying one client using just one of the IP address, another client specifying just the other. A "random" problem can be impossible to pinpoint.
Examine the symptoms, list possible problems, then test and discover the cause. -
ORA-12545; Can't connect because object doesn't exist
For the life of me, I can't figure out why I can't log into the server from my client. I get the ORA-12545 error. I can TNSPing the server from the client as well as ping the client.
Can someone please give me a trick to test which layer is causing the problem. Can't find docs on 8i. I'm using 8i.
Thanks in advance,
BobHi,
Please search tnsnames.ora file in your computer. I hope you can find two copy of it. if so please make sure the tns name parameters are correct in both file.
hope you can solve this problem,
Jagal ([email protected]) -
Error while installing Oracle 8i on RHEL 3.0, ORA-12545
Hi,
I am trying to install oracle 8.1.7 on redhat EL 3.0. Earlier i installed the same oracle i.e 8.1.7 on redhat 8.0/9.0 and it installed sucesfully. The proceudre
i follow for installtion was :
####### some settings
groupadd dba
groupadd oinstall
groupadd oracle
useradd -g dba -G oinstall,oracle -m oracle
passwd oracle
mkdir /ora8
cd /ora8
mkdir -p m01 m02 m03/oradata/ora8
chown -R oracle.dba /ora8
###### login as oracle. changes in .bash_profile(setting up of parameters)
export ORACLE_BASE=/ora8/m01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/8.1.7
export PATH=$PATH:$ORACLE_HOME/bin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export ORACLE_SID=perfdb
export ORACLE_TERM=vt100
export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
umask 022
LD_ASSUME_KERNEL=2.2.5
##### thereafter i run installer
./runInstaller
It goes smoothly and later it gives linking error. I ignore them at this stage.
#### thereafter I apply the patch
tar xzf /tmp/glibc2.1.3_stub.tgz
./setup_stubs
#### Therafter i run dbassist and I create the db and all went well.
When i followed the same procedure in RHEL 3.0 it goes smooth till applying patch glibc2.1.3_stub.tgz but thereafter when i try to create db using dbassist it gives me error like :
ORA-12545 Connect failed because target host or object does not exist.
Even if i tried to run svrmgrl it gives me error
:ORA-12545 Connect failed because target host or object does not exist
Could anyone help me in resolving that ? the same installation procedure works well for Redhat 8.0/9.0
Thanks
Harsh BhatiaDBCA calls svrmgrl.exe in order to make a startup nomount of the new database and svrmgrl.exe fails during the hostname resolution.
Try to give ipaddress rather than hostname in the tnsnames.ora file. -
Java.sql.SQLException: Error while trying to retrieve text for error ORA-12545
Hi,
I am getting the following error when i tried to connect to Oracle database from
a servlet. This exception is coming at the time of getting connection. And the
same code is working when i used in the standalone java program.
Oracle 8i database and WLS 6.0 are on the same UNIX machine.
---------attempting to connect ------
java.sql.SQLException: Error while trying to retrieve text for error ORA-12545
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java, Compiled
Code)
at oracle.jdbc.oci8.OCIDBAccess.check_error(OCIDBAccess.java, Compiled C
ode)
at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java, Compiled Code)
at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java, Com
piled Code)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
va, Compiled Code)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java, Compiled C
ode)
at java.sql.DriverManager.getConnection(DriverManager.java, Compiled Cod
e)
at java.sql.DriverManager.getConnection(DriverManager.java, Compiled Cod
e)
at ConnectionPoolServlet.doGet(ConnectionPoolServlet.java, Compiled Code
at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Cod
e)
at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Cod
e)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java, Compiled Code)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java, Compiled Code)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java, Compiled Code)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java, Compiled Co
de)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
Can any one help me out.
DurgaThe problem is solved after exprting the parameter ORACLE_SID=<database_name>
in Weblogic startup script.
thank u for the suggestions.
Durga
Joseph Weinstein <[email protected]> wrote:
>
>
Durga wrote:
Hi Joe,
I have checked the ORACLE_HOME parameter. There was a differnce. Ichanged to
/oracle/app/product/8.1.7
Now i am getting different exception. But still the standalone codeis working.
any clues why I am getting this exception. I will send the code andthe weblogic
properties file for reference if u need.Good. No, I don't need it. Now make sure the library path that the OS
uses to find
Oracle libraries, and our driver libraries etc., is in the same order
for the
server as for the shell that is successful on it's own. Make sure your
Oracle
client stuff is ahead of any weblogic libraries.
Joe
java.sql.SQLException: ORA-12547: TNS:lost contact
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java,Compiled
Code)
at oracle.jdbc.oci8.OCIDBAccess.check_error(OCIDBAccess.java,Compiled
C
ode)
at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java, CompiledCode)
at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java,Com
piled Code)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java,Compiled
C
ode)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java,Compiled
C
ode)
at java.sql.DriverManager.getConnection(DriverManager.java,Compiled Cod
e)
at java.sql.DriverManager.getConnection(DriverManager.java:177)
at ConnectionPoolServlet.doGet(ConnectionPoolServlet.java,Compiled Code
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl.getRuntimeName(ServletStubI
mpl.java, Compiled Code)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java, Compiled Code)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:1631)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java,Compiled
Co
de)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, CompiledCode)
Joseph Weinstein <[email protected]> wrote:
The environment for the server probably doesn't have the same ORACLE_HOME
setting as your shell when you succeed in a standalone.
Also, you should be using our connection pools, and you should avoid
making DriverManager calls in any multithreaded app such as WebLogic.
Joe
Durga wrote:
Hi,
I am getting the following error when i tried to connect to Oracledatabase from
a servlet. This exception is coming at the time of getting connection.And the
same code is working when i used in the standalone java program.
Oracle 8i database and WLS 6.0 are on the same UNIX machine.
---------attempting to connect ------
java.sql.SQLException: Error while trying to retrieve text for errorORA-12545
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java,
Compiled
Code)
at oracle.jdbc.oci8.OCIDBAccess.check_error(OCIDBAccess.java, CompiledC
ode)
at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java, Compiled
Code)
at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java,Com
piled Code)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
va, Compiled Code)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java, CompiledC
ode)
at java.sql.DriverManager.getConnection(DriverManager.java, CompiledCod
e)
at java.sql.DriverManager.getConnection(DriverManager.java, CompiledCod
e)
at ConnectionPoolServlet.doGet(ConnectionPoolServlet.java, CompiledCode
at javax.servlet.http.HttpServlet.service(HttpServlet.java, CompiledCod
e)
at javax.servlet.http.HttpServlet.service(HttpServlet.java, CompiledCod
e)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java, Compiled Code)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java, Compiled Code)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java, Compiled Code)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java, CompiledCo
de)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled
Code)
Can any one help me out.
Durga -
Error Could not connect to the database - ora-12545: tns:name lookup failure
Hi,
I am a tech at a failing company. Unfortuneatly some users still need ADI installed and working with very limited resources to troubleshoot oracle. I am getting the error - ( Could not connect to the database - ora-12545: tns:name lookup failure )when the user tries to log on to ADI. Any suggestions? I would really appreciate it. We are on Windows NT on an NT network. Oracle 8.05 client installed and ADI 6.0.
Thanks, MaryCopy the tnsname.ora file from Oracle Database serve onto the client PC.
Path: %Oracle_home%\net80\admin\
Send me a mail if there is any other issues
Regards
Oluseyi Funmi Oduberu
Oracle Consultant
Email:[email protected]
Hi,
I am a tech at a failing company. Unfortuneatly some users still need ADI installed and working with very limited resources to troubleshoot oracle. I am getting the error - ( Could not connect to the database - ora-12545: tns:name lookup failure )when the user tries to log on to ADI. Any suggestions? I would really appreciate it. We are on Windows NT on an NT network. Oracle 8.05 client installed and ADI 6.0.
Thanks, Mary
Maybe you are looking for
-
Choosing Server for SharePoint, Exchange, Active Directory, SQL
Hello We want to migrate from work-group type network and setup an interoffice mail server and , ... with SharePoint, Exchange, outlook. There are less than 40 clients. I prefer to minimize the number of servers. Is it possible to use one system for
-
Publish the query to roles ?
HI , i want to publish the query to the roles , which is on top of multiprovider & which is on top of INfocube . my question is , do i need to assign both multiprovider & infocube to auth object or only multiprovider is enough ? 2) i have a RRI
-
Publish Site Changes causes website to fail
I have just redesigned my entire website using iWeb 09. It's a photo website, so publishing the entire website each time is just not feasible for bandwidth considerations, and why should I anyway? The problem is that whenever I use the Publish Site C
-
CS6 Bug Report: Pen tool points offset from cursor
Hello, I want to report the current behavior change of the pen tool. In current and older versions, clicking with the pen tool on the canvas, created a point that was exactly centered with the cursor's center point, as expected. Now, in Photoshop CS6
-
Base64 decode with user defined function called from xslt
I have an xml document which has a segment containing a b64 encoded attachment. I would like to decode the attachment as i map it. I would think this could be done by using a java function of some kind being called from the xslt however i have very l