Error while connecting to Oracle in Linux
I wrote a JAVA program to test the connection with Oracle. It worked in NT environment, but it did not in Linux Environment. I got the error message: "IO exception: The Network Adapter could not establish the connection."
Here is JAVA code:
import java.sql.*;
class Employee1
public static void main (String args [])
throws SQLException
try{
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection conn =
DriverManager.getConnection ("jdbc:oracle:thin:@203.149.143.1:1521:ora1",
"dxhub", "manager");
Statement stmt = conn.createStatement ();
ResultSet rset = stmt.executeQuery ("select user_id from user_info");
while (rset.next ())
System.out.println (rset.getString ("user_id"));
catch(Exception e)
System.out.println(e.getMessage());
I think there is nothing wrong with JAVA code. There must be something wrong in the Linux environment. I appreciate your help if someone can give me a little advice.
Tony
null
I wrote a JAVA program to test the connection with
Oracle. It worked in NT environment, but it did not
in Linux Environment. I got the error message: "IO
exception: The Network Adapter could not establish
the connection."
Here is JAVA code:
import java.sql.*;
class Employee1
public static void main (String args [])
throws SQLException
try{
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection conn =
DriverManager.getConnection
n ("jdbc:oracle:thin:@203.149.143.1:1521:ora1",
"dxhub", "manager");
Statement stmt = conn.createStatement ();
ResultSet rset = stmt.executeQuery ("select user_id
d from user_info");
while (rset.next ())
System.out.println (rset.getString ("user_id"));
catch(Exception e)
System.out.println(e.getMessage());
I think there is nothing wrong with JAVA code. There
must be something wrong in the Linux environment. I
appreciate your help if someone can give me a little
advice.
Tony
nullDid you ever find an answer to this, I'm having the same problem. My application works under windows, but doesn't under linux.
Lonnie
Similar Messages
-
Error While Connecting to Oracle
Hi All,
While Connecting to Oracle through jdbc thin driver, following error is displayed. Please help me in resolving the same.
<b>SQL Exception:
State : null
Message: Io exception: The Network Adapter could not establish the connection
Error : 17002</b>hi,
Any or all of the following conditions may also apply:
1) You are able to establish a SQL*Plus connection from the same client to the same Oracle instance.
2) You are able to establish a JDBC OCI connection, but not a Thin
connection from the same client to the same Oracle instance.
3) The same JDBC application is able to connect from a different
client to the same Oracle instance.
4) The same behavior applies whether the initial JDBC connection
string specifies a hostname or an IP address.
Go thru the foll url
http://www.websina.com/bugzero/kb/oracle-connection.html
wbr,
KK -
Problem while connecting to oracle in linux
i connected to oracle in linux as
"sqlplus ,#sysdba,"
after that it asked me for password
and i typed as "oracle"
after tat message displayed that "connected to IDEAL instance"
SQL>select * from tab;
i got an error message staying tat "ORACLE not connected"
can anyone help me out where the poblem is gettinghi,
after tat message displayed that "connected to IDEAL instance"
i got an error message staying tat "ORACLE not connected"you are connected to an ideal instance.
you should mount and then open the database
if you are using spfile
then issue
SQL>startup
database mounted.
database opened.
or
SQL> startup nomount pfile='location'
database will be in nomount stage
SQL>alter database mount;
database mounted.
SQL>alter database open;
then you can issue your command..
regards,
Deepak -
Error while connecting to Oracle 8 from PI 7.1
I am trying the connect oracel 8.0 from PI 7.1,
I am getting following error in communication channel monitoring
"Exception caught during JDBC adapter processing: java.lang.NullPointerException "
at the same time I can connect to oracle 10g smoothly without any error.
Please suggest what would be the reason.
regards,Hi Check this thread
same problem disueed here & solved
Error in Sender JDBC communication channel
Regards
Abhishek -
Error while connecting to oracle 10g data base
Following is the code we used to connect to oracle 10g data base using symbian 7.1 series 80 SDK
int CTest_S80AppUi::SetupODBC(void)
RETCODE rc;
char *DataSource = OD_DATA_SOURCE;
char UserId = "system", Password = "manager";
rc=SQLAllocEnv(&Henv);
//if (TEST_CHECK_ERR(SQL_NULL_HSTMT, rc, "SQLAllocEnv", FALSE) < 0) return(-1);
rc=SQLAllocConnect(Henv, &Hdbc);
//if (TEST_CHECK_ERR(SQL_NULL_HSTMT, rc, "SQLAllocConnect", FALSE) < 0)
//return(-1);
rc = SQLConnect(Hdbc, (unsigned char *)DataSource, SQL_NTS,
(unsigned char *)UserId, SQL_NTS,
(unsigned char *)Password, SQL_NTS);
bConnected = TRUE;
//if (TEST_CHECK_ERR(SQL_NULL_HSTMT, rc, "SQLConnect", FALSE) < 0) return(-1);
SQLAllocStmt(Hdbc, &Hstmt);
//if (TEST_CHECK_ERR(SQL_NULL_HSTMT, rc, "SQLAllocStmt", FALSE) < 0) return(-1);
return (1);
} /* SetupODBC */
iam getting the return code for SQLConnect as -1.
Thanks in advance.Thanks for the reply.
//syntax means comments.
chk the following code.
int SetupODBC(void)
char *DataSource = "polite";
char UserId = "system", Password = "manager";
if ( SQLAllocEnv(&Henv) < 0 )
return -1;
if ( SQLAllocConnect(Henv, &Hdbc) < 0 )
return -1;
if ( SQLConnect(Hdbc, (unsigned char *)DataSource, SQL_NTS,
(unsigned char *)UserId, SQL_NTS,
(unsigned char *)Password, SQL_NTS) < 0 )
return -1;
if (SQLAllocStmt(Hdbc, &Hstmt) < 0 )
return -1;
return (0);
As said earlier there is a problem in SQLConnect. It is returning -1.
But the code should return 0 if successfully connected.
The info regarding the arguments used in the above methods:
HENV Henv; /* Handle to ODBC Environment object */
HDBC Hdbc; /* Handle to ODBC Connection object */
HSTMT Hstmt; /* Handle to ODBC Statement object */ -
Odbc driver error while connecting with Oracle BI in Linux
I have Oracle BI Server, Presentation Service and Oracle 11g Client installed in RHEL 5. Oracle BI client is installed in Windows so that I can use Admin tool.
I have created a repository in Windows for sh schema(by creating ODBC). After that I transferred this repository to the ..server/repository in the linux server.
I have installed Oracle ODBC Driver from EASYSOFT and added one odbc data source for sh schema in the ../setup/odbc.ini.
My ODBC setting is as follows.
[ODBC Data Sources]
sh=Oracle in OraDb11g_home1
[sh]
Driver=/usr/local/easysoft/oracle/libesoracle.so
Database=//ipaddress_of_ORACLE_SERVER:port/database_service_name
UID=sh
PWD=sh
When I am trying to query through Oracle Answers I am getting the following error.
Odbc driver returned an error (SQLExecDirectW).
Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 16023] The ODBC function has returned an error. The database may not be available, or the network may be down. (HY000)
SQL Issued: SELECT Customers."Cust First Name" saw_0 FROM SH ORDER BY saw_0
I have enabled tracing, but I am not getting any clue from trace output.
Can anybody please help.
If it is because of wrong driver, can anybody suggest a proper ODBC Driver for Oracle and how to configure it. If the driver is OK and configuration is wrong, can anybody tell me how to create system dsn in linux?
Thanking you in advance.don't use ODBC for Oracle, use OCI
search on the forum, there's plenty of information about it. -
Error while connecting to Oracle db using jdbc
When I try to execute a java class which has to access data in
the Oracle db using Jdbc connection, get an error --
Appln- pathname/filename is attempting to call the OCI function
(opinit) this function does not exist in ORA72.DLL.
Exit this appln ? Yes or No
Both oracle db & java are on the same PC.Would like to know what
can be done to rectify this.
Thanks.
nullThe OCI driver 7.3 requires the 7.3 OCI to be installed (this is
part of the client required support files or RSF). The particular
call in question wasn't added to the OCI untill 7.3 so it
wouldn't exist in the 7.2 OCI library.
null -
Error while connecting to Oracle 11gR2 database instance
Dear All,
I installed Oracle 11g R2 on my local machine (laptop) successfully. Using Sql Developer I tried to connect to the instance (ORCL) but not able to connect to the server. Please let me know hw to configure tnsnames.ora, listener.ora, and sqlnet.ora files. I tried to configure those three files using Net manager, but since I am novice, I could not do it..
Here are the details of my windows services related to oracle installation..
OracleOraDb11g_home1TNSListener (started)
OracleServiceORCL (started)
Listener.ora
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = ORCL)
(ORACLE_HOME = C:\app\Administrator\product\11.2.0\dbhome_1)
(SID_NAME = ORCL)
(SID_DESC =
(GLOBAL_DBNAME = ORCL)
(PROGRAM = extproc)
(SID_NAME = ORCL)
(ORACLE_HOME = C:\app\Administrator\product\11.2.0\dbhome_1)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = tgsdl022)(PORT = 1521))
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = extproc))
ADR_BASE_LISTENER = C:\app\Administrator\product\11.2.0\dbhome_1\log
tnsnames.ora
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
LISTENER =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(CONNECT_DATA =
(SID = ORCL)
(PRESENTATION = RO)
ORCL =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = tgsdl022)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = ORCL)
sqlnet.ora
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
ADR_BASE = C:\app\Administrator\product\11.2.0\dbhome_1\log
As per my guess, entries in tnsnames.ora, and listener.ora are not appropriate. Please help to configure the correct values in those files.
Thanks and Regards
Santosh910192 wrote:
Dear All,
I installed Oracle 11g R2 on my local machine (laptop) successfully. Using Sql Developer I tried to connect to the instance (ORCL) but not able to connect to the server. Please let me know hw to configure tnsnames.ora, listener.ora, and sqlnet.ora files. I tried to configure those three files using Net manager, but since I am novice, I could not do it..
Here are the details of my windows services related to oracle installation..
OracleOraDb11g_home1TNSListener (started)
OracleServiceORCL (started)
Listener.ora
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = ORCL)
(ORACLE_HOME = C:\app\Administrator\product\11.2.0\dbhome_1)
(SID_NAME = ORCL)
(SID_DESC =
(GLOBAL_DBNAME = ORCL)
(PROGRAM = extproc)
(SID_NAME = ORCL)
(ORACLE_HOME = C:\app\Administrator\product\11.2.0\dbhome_1)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = tgsdl022)(PORT = 1521))
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = extproc))
ADR_BASE_LISTENER = C:\app\Administrator\product\11.2.0\dbhome_1\log
tnsnames.ora
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
LISTENER =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(CONNECT_DATA =
(SID = ORCL)
(PRESENTATION = RO)
ORCL =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = tgsdl022)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = ORCL)
sqlnet.ora
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
ADR_BASE = C:\app\Administrator\product\11.2.0\dbhome_1\log
As per my guess, entries in tnsnames.ora, and listener.ora are not appropriate. Please help to configure the correct values in those files.
Thanks and Regards
SantoshError msg? -
Error while connecting to Oracle on Unix
Hi..
I m new to JDBC.
I have written a small code which will connect to the Oracle and select some data to display report.
On execution its throwing NULL POINTER EXCEPTION on conn.
I guess the URL tht i hav used is a problem area. But i dont know what to use. I have used oracle_SID.
Can someone tell me if that is correct url or where should i find correct DSN namein UNIX dir?hey thanks....
actually i have done it using DSN on windows. but i
really dont know wher should i do it on UNIX. The
oracle 9i is already installed on this unix box. I
guess, the DSN name also has been created and exists
on the same. But i dont know where should i search in
unix dir to structure to find this DSN name.
Can someone help me to find existing DSN name on this
box?
I believe it should be somewhere in ORACLE_HOME ...
???For Unix, if you have ODBC installed, there is an odbc.ini where you need to add the necessary configurations.
The best way you could do is make use of the Oracle thin driver (type 4). -
I am getting error while connecting to sqlplus by using apps account in 11i
i am getting error while connecting to sqlplus by using apps account in 11i. Does anyone has similar error.
[applmgr@appsc05t01 admin]$ sqlplus
SQL*Plus: Release 8.0.6.0.0 - Production on Mon Sep 13 14:34:52 2010
(c) Copyright 1999 Oracle Corporation. All rights reserved.
Enter user-name: apps
ERROR:
ORA-12514: Message 12514 not found; product=RDBMS; facility=ORA
Enter user-name:
Thanks
Raoyes.
login as: gorantla
[email protected]'s password:
Last login: Mon Sep 13 14:39:23 2010 from glng3wy9g1.actuant.pri
[gorantla@appsc05t01 ~]$ sudo su - applmgr
[applmgr@appsc05t01 ~]$ ora_setup
Available databases:
x = ATUXX
y = ATUYY
z = ATUZZ
Select database: \c
y
ORACLE_SID=ATUYY
IAS_ORACLE_HOME=/apps/ATUYY/atuyyora/iAS
ORACLE_HOME=/apps/ATUYY/atuyyora/8.0.6
APPL_TOP=/apps/ATUYY/atuyyappl
[applmgr@appsc05t01 ~]$
[applmgr@appsc05t01 ~]$
[applmgr@appsc05t01 ~]$
[applmgr@appsc05t01 ~]$ tnsping ATUYY
TNS Ping Utility for Linux: Version 8.0.6.3.0 - Production on 13-SEP-2010 15:42:32
(c) Copyright 1997 Oracle Corporation. All rights reserved.
Attempting to contact (ADDRESS=(PROTOCOL=tcp)(HOST=dbrac05t01-vip.actuant.pri)(PORT=1611))
OK (0 msec)
[applmgr@appsc05t01 ~]$ sqlplus
SQL*Plus: Release 8.0.6.0.0 - Production on Mon Sep 13 15:42:40 2010
(c) Copyright 1999 Oracle Corporation. All rights reserved.
Enter user-name: apps
ERROR:
ORA-12514: Message 12514 not found; product=RDBMS; facility=ORA
Enter user-name:
Thanks
Rao -
Getting "ORA-12514 error" while connecting first time
Hi,
Getting below error while connecting to the database first time.
ORA-12514: TNS:listener does not currently know of service requested in connect
apludc01dat25:e2cmpc1 > tnsping ora37_ap
TNS Ping Utility for Linux: Version 10.2.0.5.0 - Production on 26-MAR-2012 12:00:58
Copyright (c) 1997, 2010, Oracle. All rights reserved.
Used parameter files:
/grid/product/crs/network/admin/sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = apl11764clu01-scan-oravip.nat.bt.com)(PORT = 61901)) (CONNECT_DATA = (SERVICE_NAME = ORA37_ap))
OK (0 msec)
apludc01dat25:e2cmpc1 > sqlplus
SQL*Plus: Release 10.2.0.5.0 - Production on Mon Mar 26 12:00:15 2012
Copyright (c) 1982, 2010, Oracle. All Rights Reserved.
Enter user-name: outln@ora37_ap
Enter password:
ERROR:
ORA-12514: TNS:listener does not currently know of service requested in connect
descriptor
Enter user-name:
apludc01dat25:e2cmpc1 > sqlplus
SQL*Plus: Release 10.2.0.5.0 - Production on Mon Mar 26 12:00:22 2012
Copyright (c) 1982, 2010, Oracle. All Rights Reserved.
Enter user-name: outln@ora37_ap
Enter password:
Connected to:
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
With the Partitioning, Real Application Clusters, OLAP, Data Mining
and Real Application Testing options
SQL>
Please help me out to resolve this issue.
Thank you.
Regards,
DasarathHi,
We are getting this error while connecting remotely.
PFB output of listener status and services
apl11764a001:ORA37a > lsnrctl services LISTENER_ORA37
LSNRCTL for Linux: Version 11.1.0.7.0 - Production on 26-MAR-2012 12:18:06
Copyright (c) 1991, 2008, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_ORA37)))
Services Summary...
Service "ORA37_ap" has 1 instance(s).
Instance "ORA37a", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:2 refused:0 state:ready
LOCAL SERVER
Service "ORA37_ap_XPT" has 1 instance(s).
Instance "ORA37a", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:2 refused:0 state:ready
LOCAL SERVER
Service "ORA37aXDB" has 1 instance(s).
Instance "ORA37a", status READY, has 1 handler(s) for this service...
Handler(s):
"D000" established:0 refused:0 current:0 max:1022 state:ready
DISPATCHER <machine: apl11764a001, pid: 25970>
(ADDRESS=(PROTOCOL=tcp)(HOST=apl11764a001)(PORT=10862))
The command completed successfully
apl11764a001:ORA37a > lsnrctl status LISTENER_ORA37
LSNRCTL for Linux: Version 11.1.0.7.0 - Production on 26-MAR-2012 12:18:20
Copyright (c) 1991, 2008, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_ORA37)))
STATUS of the LISTENER
Alias LISTENER_ORA37
Version TNSLSNR for Linux: Version 11.2.0.2.0 - Production
Start Date 26-MAR-2012 12:15:17
Uptime 0 days 0 hr. 3 min. 2 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /grid/product/crs/network/admin/listener.ora
Listener Log File /grid/product/crs/log/diag/tnslsnr/apl11764a001/listener_ora37/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER_ORA37)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=172.25.169.4)(PORT=62037)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=172.25.169.7)(PORT=62037)))
Services Summary...
Service "ORA37_ap" has 1 instance(s).
Instance "ORA37a", status READY, has 1 handler(s) for this service...
Service "ORA37_ap_XPT" has 1 instance(s).
Instance "ORA37a", status READY, has 1 handler(s) for this service...
Service "ORA37aXDB" has 1 instance(s).
Instance "ORA37a", status READY, has 1 handler(s) for this service...
The command completed successfully
Thank you.
Regards,
Dasarath -
Hi,
I have installed Oracle Workflow Builder 2.6.3 recently on my system and after installation, when I am trying to connect the workflow builder (using database username/password of that particular instance), it is throwing me the following error:
220: Unable to set NLS_LANGUAGE.
210: Oracle Error: ORA-01403: no data found
. SQL text: SELECT NLS_LANGUAGE FROM WF_LANGUAGES WHERE :l IN (NLS_LANGUAGE, CODE)
In the previous threads when I searched for the same issue, I found that if
select value from v$nls_parameters
where parameter='NLS_CHARACTERSET';
returns the value other then WE8ISO8859P1 then that is what I should change my NLS_LANG entry for the builder - i.e. AMERICAN_AMERICA.<character set>.
But I am not getting where should I change NLS_LANG, it is located where...some file? I am new to Workflow.
Please help me. I tried a lot. Any type of help will be highly appreciated.
Thanks,
SumirThis issue (and solution) is described in ML Doc 577905.1 (Error While Connecting To Database Via Workflow Builder)
HTH
Srini -
JCONTROL - dies with Error while connecting to DB
Hi....Experts
DB : Oracle 10.2.0.4.0
OS ; AIX 5.3
NW : 7.0 SP22
UT : EP
Yesterday the above server got rebooted by a power failure. after that
The server's DB is coming up as ora<sid> user, listener is also up
But as <sid>adm user - when i am starting . The jcotnrol dies and in thee work directory
....log_bootstrap_ID1168012.0.log fiel shows the below messages in the tail end,
================================================================
ERROR-1 : OBSERVED
================================================================
==[ Caused by: ]==----
com.sap.engine.frame.core.configuration.ConfigurationException: Error while connecting to DB.
at com.sap.engine.core.configuration.impl.persistence.rdbms.DBConnectionPool.createConnection(DBConnectionPool.java:365)
at com.sap.engine.core.configuration.impl.persistence.rdbms.DBConnectionPool.<init>(DBConnectionPool.java:130)
at com.sap.engine.core.configuration.impl.persistence.rdbms.PersistenceHandler.<init>(PersistenceHandler.java:38)
at com.sap.engine.core.configuration.impl.cache.ConfigurationCache.<init>(ConfigurationCache.java:149)
at com.sap.engine.core.configuration.bootstrap.ConfigurationManagerBootstrapImpl.init(ConfigurationManagerBootstrapImpl.java:236)
at com.sap.engine.core.configuration.bootstrap.ConfigurationManagerBootstrapImpl.<init>(ConfigurationManagerBootstrapImpl.java:49)
at com.sap.engine.bootstrap.Synchronizer.<init>(Synchronizer.java:74)
at com.sap.engine.bootstrap.Bootstrap.initDatabaseConnection(Bootstrap.java:473)
at com.sap.engine.bootstrap.Bootstrap.<init>(Bootstrap.java:146)
at com.sap.engine.bootstrap.Bootstrap.main(Bootstrap.java:971)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:88)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:61)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
at java.lang.reflect.Method.invoke(Method.java:391)
at com.sap.engine.offline.OfflineToolStart.main(OfflineToolStart.java:81)
Caused by: java.sql.SQLException: Io exception: There is no process to read data written to a pipe.
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:255)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:387)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:420)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:165)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:801)
at com.sap.sql.jdbc.NativeConnectionFactory.createNativeConnection(NativeConnectionFactory.java:215)
at com.sap.sql.connect.OpenSQLDataSourceImpl.createPooledConnection(OpenSQLDataSourceImpl.java:608)
at com.sap.sql.connect.OpenSQLDataSourceImpl.getPooledConnection(OpenSQLDataSourceImpl.java:285)
at com.sap.engine.core.configuration.impl.persistence.rdbms.DBConnectionPool.createConnection(DBConnectionPool.java:307)
... 15 more
[Feb 10, 2012 4:46:28 PM ] [Bootstrap module]> Problem occurred while performing synchronization.
================================================================
ERROR-2 : OBSERVED
================================================================
also i see error in work directory ...sapcpe.log as below
Host:d45adm> more sapcpe.log
2012/02/10 19:01:45
sapcpe version UC: @(#) $Id: //bas/700_REL/src/ccm/sapstart/sapxxcpe.c#20 $ SAP
Command line:
0: /usr/sap/D45/SYS/exe/run/sapcpe
1: name=D45
Trace level (profile): 1
INFO: Try to find file table sapcpeft (default:sapcpeft)
INFO: Try to find file table in the central directory /usr/sap/D45/SYS/exe/ctrun/sapcpeft
INFO: not found any file table.
source: /usr/sap/D45/SYS/exe/ctrun
target: /usr/sap/D45/SYS/exe/run
ERROR: sapcpe: find <src> /usr/sap/D45/SYS/exe/ctrun failed, 2, No such file or directory, [sapxxcpe.c:1464]
sapcpe.log: END
================================================================
any thoughts & advises, clues ???
Rgds
PRISSUE - RESOLVED
####Summary######################################
Key Word of this Issue :
Exception in thread "main" java.sql.SQLException: Io exception: There is no process to read data written to a pipe.
Reason
Name resolution by conflict / failure by netsvc.conf even we have hostfile & ping works with host name for Every user.
Solution
Adjusted netsvc.conf file to use the hostfile.
DETAILS OF RESOLUTION
OSS Experts asked me to copy the results
SAP Note No. 867176: FAQ: Oracle JDBC (JdbcCheckup) - Point 10
01. I copied JdbcCheckup.sar to location /home/sidadm/867176-jdbchkup/
02. Extracted the same in same foler with command : SAPCAR -xvf JdbcCheckup.sar
03. Now folder contained 2 files ""JdbcCheckup.java"" and "" JdbcCheckup.sar""
04. my JDBC driver file ojdbc14.jar is in location /oracle/client/10x_64/instantclient/
05. To determine the JDBC driver version issued the below command as per note
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$Command : java -classpath /oracle/client/10x_64/instantclient/ojdbc14.jar:. JdbcCheckup
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
Please enter information to test connection to the database
user: SAPSR3DB
password: PASSWORD
database(a TNSNAME entry): SID
Hostname: portalserver
Port (1521): 1527
Connecting to the database...Connecting...
jdbc:oracle:thin:@portalserver:1527:SID, SAPSR3DB, PASSWORD
Exception in thread "main" java.sql.SQLException: Io exception: There is no process to read data written to a pipe.
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:255)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:387)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:441)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:165)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:801)
at java.sql.DriverManager.getConnection(DriverManager.java:559)
at java.sql.DriverManager.getConnection(DriverManager.java:189)
at JdbcCheckup.main(JdbcCheckup.java:128)
portalserver:sidadm>
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
06. Immediately id did google with above Syntax of error.
"""java.sql.SQLException: Io exception: There is no process to read data
written to a pipe"""
https://forums.oracle.com/forums/thread.jspa?threadID=1320173
which was referring about netsvc.conf
With UNIX Team discussions, adjusted the host file as first name
resolution source and DNS servers list followed in same(netsvc.conf) file. which
fixed the issue and "JdbcCheckup" passed.
07. JdbcCheckup Command - Passed output.
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$Command : java -classpath /oracle/client/10x_64/instantclient/ojdbc14.jar:. JdbcCheckup
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
Command : java -classpath /oracle/client/10x_64/instantclient/ojdbc14.jar:. JdbcCheckup
Please enter information to test connection to the database
user: SAPSR3DB
password: PASSWORD
database(a TNSNAME entry): SID
Hostname: portalserver
Port (1521): 1527
Connecting to the database...Connecting...
jdbc:oracle:thin:@portalserver:1527:SID, SAPSR3DB, PASSWORD
connected.
=============
Database Product Name is ... Oracle
Database Product Version is Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, Data Mining and Real Application Testing options
=============
JDBC Driver Name is ........ Oracle JDBC driver
JDBC Driver Version is ..... 10.2.0.4.0
=============
Hello World
Your JDBC installation is correct.
portalserver:sidadm>
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
BIG THANK TO EVERYONE !!!!!!!!!!!!!!!!
REGARDS
PR -
Hi,
We are getting the error while connecting the database.
ERROR:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
IBM AIX RISC System/6000 Error: 2: No such file or directory
Error persists only for second or two & again connection comes back.
NOTE-- When this happens only new connection recives the error while existing connection work properly.
On metalink the error description is.
Cause: Unable to locate shared memory realm
Action: Verify that the realm is accessible
also I have checked
SQL> select resource_name,current_utilization,max_utilization,limit_value from v$resource_limit;
RESOURCE_NAME CURRENT_UTILIZATION MAX_UTILIZATION LIMIT_VALU
processes 1044 1091 1100
sessions 1052 1097 1400
enqueue_locks 208 437 17404
enqueue_resources 248 335 UNLIMITED
ges_procs 0 0 0
Kindly advice urgent.IBM AIX 5L
10.2.0.3
Client OS is Windows XP & oracle client using is oracle 8 & 9i client.
TNS Entery of client
AIX.WORLD =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (COMMUNITY = tcp.world)(PROTOCOL = TCP)(Host = 192.168.16.50)(Port = 1521))
(ADDRESS = (COMMUNITY = tcp.world)(PROTOCOL = TCP)(Host = 192.168.16.50)(Port = 1526))
(CONNECT_DATA =
(SID = ORCL)
There is only one oracle home on the client mechine
entries in sql* net are
names.directory_path = (TNSNAMES)
names.default_domain = world
name.default_zone = world
names.default_domain=world
erro in the listener log is
18-MAY-2009 16:42:25 * (CONNECT_DATA=(SID=ORCL)(CID=(PROGRAM=UdyogGrid.Exe)(HOST=Windows NT PC)(USER=vmittal))) * (ADDRESS=(PROTOCOL=tcp)(HOST=221.135.27.180)(PORT=2021)) * establish * ORCL * 0
18-MAY-2009 16:42:33 * ping * 0
WARNING: Subscription for node down event still pending.
NOTE-- Problem started from the day we have set the password for the listener.
Kindly advice.
Edited by: Sachin A on May 18, 2009 10:08 PM -
Error while connecting MYSQL Database
Hi,
I use a 30 days trial of Crystal Reports 2008. When i try to connect with the database i always get the next error: [http://www.visiscan.nl/error.jpg]
The database is 4.1GB large and there is 10GB free space on the database.
Anybody can tell me what to do?Hi Tom,
As I understand the error while connecting to database is
u201CFailed to retrieve data from databaseu201D
There could be some could be multiple reasons for this.
If you are using an ODBC connection then try to check the DSN. Recreate the same and then try.
If the database is oracle check if native client is installed and try to ping from the native client to check if it responds.
When connecting to Oracle, ensure that the Service name is identical to that used in the <ORA_HOME>/network/admin/tnsnames.ora file on the BusinessObjects XI Release 2 server.
For ODBC databases, ensure that the ODBC DSN is exactly the same in the ODBC Manager as on the BusinessObjects XI Release 2 server.
Please let us know if this helps
Regards,
Aditya Joshi
Maybe you are looking for
-
My external hard drive is not recognized my desktop or time machine
how can i fix this??
-
Hi guys, my newly purchased MacPro is refusing to print over the network at my office. We have several Canon copiers, and HP printers, as well as a BestColor Rip powering 2 epson 9600s. For the life of me i can't seem to get this machine to print to
-
I'm trying to partition my Macbook Pro early 2011 with Boot Camp Assistant so I can run Windows 7, however when I tell it to create the partition I get an error that says: "The disk cannot be partitioned because some files cannot be moved. ... Back u
-
Database went in quiesce state?
I am on Oracle 11.1.1.0.7 on HP UNIX . This morning, I came to know no one could connect to database from application logins. Some of the application logins have sysdba role. I could however login to database from system and sys. I just restarted the
-
Hello - I have Lightroom 5. I have imported a color photo. I am trying to use the Adjustment Brush to change the background to Black and White and leave a portion of the photo in color. When I begin painting the photo with the Saturation at -100 I