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 */
Similar Messages
-
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
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 -
ORA-06502: PL/SQL: numeric or value error While Exporting in Oracle 10g
Connected to: Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
With the Partitioning, OLAP and Data Mining options
Export done in AR8MSWIN1256 character set and AL16UTF16 NCHAR character set
server uses AR8ISO8859P6 character set (possible charset conversion)
About to export the entire database ...
. exporting tablespace definitions
. exporting profiles
. exporting user definitions
. exporting roles
. exporting resource costs
. exporting rollback segment definitions
. exporting database links
. exporting sequence numbers
. exporting directory aliases
. exporting context namespaces
. exporting foreign function library names
. exporting PUBLIC type synonyms
. exporting private type synonyms
. exporting object type definitions
. exporting system procedural objects and actions
. exporting pre-schema procedural objects and actions
. exporting cluster definitions
. about to export SYSTEM's tables via Conventional Path ...
. . exporting table DEF$_AQCALL 0 rows exported
. . exporting table SRC_RQST_SEQ 1 rows exported
EXP-00091: Exporting questionable statistics.
. . exporting table SRC_USERS 6 rows exported
EXP-00091: Exporting questionable statistics.
. . exporting table SRC_YEAR_LOOKUP 40 rows exported
EXP-00091: Exporting questionable statistics.
. . exporting table TENDER_DETAIL_TABLE 36 rows exported
EXP-00091: Exporting questionable statistics.
. . exporting table TENDER_MASTER_TABLE 34 rows exported
EXP-00091: Exporting questionable statistics.
. . exporting table TENDER_NEW_DETAIL_TABLE 4 rows exported
EXP-00091: Exporting questionable statistics.
. exporting synonyms
. exporting views
EXP-00056: ORACLE error 6502 encountered
ORA-06502: PL/SQL: numeric or value error
LPX-00210: expected '<' instead of 'n'
ORA-06512: at "SYS.UTL_XML", line 152
ORA-06512: at "SYS.DBMS_METADATA_INT", line 7195
ORA-06512: at "SYS.DBMS_METADATA_INT", line 9135
ORA-06512: at "SYS.DBMS_METADATA", line 1882
ORA-06512: at "SYS.DBMS_METADATA", line 3707
ORA-06512: at "SYS.DBMS_METADATA", line 3689
ORA-06512: at line 1
EXP-00056: ORACLE error 6502 encountered
ORA-06502: PL/SQL: numeric or value error
LPX-00210: expected '<' instead of 'n'
ORA-06512: at "SYS.UTL_XML", line 152
ORA-06512: at "SYS.DBMS_METADATA_INT", line 7195
ORA-06512: at "SYS.DBMS_METADATA_INT", line 9135
ORA-06512: at "SYS.DBMS_METADATA", line 1882
ORA-06512: at "SYS.DBMS_METADATA", line 3707
ORA-06512: at "SYS.DBMS_METADATA", line 3689
ORA-06512: at line 1
EXP-00000: Export terminated unsuccessfully
Plz reply me the appropriate Solution
Edited by: user8920919 on May 3, 2010 12:27 AMhi,
EXP-00091: Exporting questionable statistics The client character set(NLS_LANG) does not match the server character;
select parameter,value from nls_database_parameters where parameter like '%CHARACTERSET%';
and check the client system character set
- Pavan Kumar N
- ORACLE OCP - 9i/10g
https://www.oracleinternals.blogspot.com -
ORA-03106 Error when connecting to Oracle 10g from Forms 6i
I have migrated my database from Oracle 8.0.5 to Oracle 10g, version 10.0.1.0.3 through import-export utility. During migration, one difference I made was to change the NLS_LANG to UTF8 from ANSI.
The NLS_LANG for client is AMERICAN_AMERICA.WE81S08859P1.
I am using HP ML370 Proliant Server and running Red Hat Enterprise Linux AS version 3 with Oracle 10g
My client-server application is based on Oracle Developer version 2.1. I am using forms 5.0 and reports 3.0 only.
The problem with me is that the client-server application is working against the upgraded database, but with greatly downgraded speed. The .fmb files cannot be compiled, however some of the .rdf files are compiled successfully, but remaining not.
My question is that is Developer 2000 (Forms 5.0.6 and Reports 3.0.5) compatable with Oracle 10 database, as my application is running very slow ?
I tried Forms 6i to remove this problem. I used Forms Developer 6i Recut version and successfully installed on Windows XP, however, when try to create connection using Net 8 Easy Utility, the connection does not establish with following error:
ORA-03106 : fatal two-task communication protocol error
The entry has been checked in tnsnames.ora and is found correct. I also tried connecting through SQL, but the application closes.
The patch set 17 for installation on Windows XP has also been applied, but still the same error persits.
The same installation has also been checked on Windows 2000, but the same problem persists.
I would be thankful if any one provide me solution for the same. Where I am mistaken and what do I do to get out of this problem.
Regards
Naveen.Naveen,
Forms 5.0 is not certified and not tested with Oracle DB 10g because it was desupported before 10g got released.
The other problem is hard to give a generic answer for and I suggest to address this to metalink.oracle.com
Frank -
Error while Installation of Oracle 10g Database on Windows Vista
while installating Oracle 10g DB on Win Vista Machine it shows the followsing error:-
Abnormal program termination. An internal error has occoured.Please provide the fillowing files to Oralce Support:
"Unknows"
"Unknows"
"Unknows"
& OK buttons is there
kindly provide me the solution for the same.Are you using the Oracle installation meant for Windows Vista or any other version?
Its available here...
http://www.oracle.com/technology/software/products/database/oracle10g/htdocs/10203vista.html -
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
nullI 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 -
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 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). -
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. -
Oracle forms 6i error while compiling on oracle 10g express edition DB
A forms created on oracle forms 6i having Dual table. But while compiling this form on oracle10g Express edition. Its Giving Error.
What can be the solution for this. If I remove the Statement using Dual table. it works fine.
What could be the reason and what could be the possible solutions for this.
Thanks
Vipin
Edited by: user6299750 on Sep 11, 2009 9:26 PMVipin,
What is the error you are getting and what is the statement you removed? Post the removed statement, or the trigger. then it will be easy for us to understand more clearly.
And also try to execute the statement in any SQL Editors, to check whether its working or not.
Regards,
Manu.
Edited by: Manu. on Sep 12, 2009 7:34 AM -
Error while connecting to Repository through Data Manager
Hi Experts,
I am able to access MDM server through MDM Console, Here mainlyI got two errors.
Error 1:- I am not able to create new repository through Console.when I click on "create Repository" option in Console,it will try to connect DBMS server to create.at the same time I have given Database credentials.It was giving error like" Unable to connect to DBMS server".
Error 2:- I have some repositories in my MDM server.already one repository is running.I am trying to access the running repository in Data Manager as well in as Import Manager and Syndicator.at the same time I am not able to connect to repository giving error like "Repository not loaded".
Note: all the necessary ports are opened as per SAP standard.
Please help me regarding this.if anybody have idea about this.
Thanks in advance,
Ravi.Hi Ravi,
Steps to load a repository
1) Load the MDM server
2) Start MDM server
3) There you will find list of repositorys
4) If required login into the repository
This is the main step you got to perform to solve your second problem
5) Right click the Repository and select 'Load Repository' and then 'Immediate'
This will load the repository and you can work on the repository from any where either IM,DM or syndicator.
For the first error check wether you have given the proper path for your DBMS server; if you give it right it wont give u any error. If its in local system then by default it be in the list. Else you got to provide the system name where the server is there.
In case of any othere issuse please let me know.
Regards,
CHARAN -
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? -
ODBC Error while Siebel Server try to connect to Oracle 10G
We have managed to get through with the configuration of siebel server on HP Unix. However before we get to the Database configuration, we are encountering errors with ODBC connection to oracle 10g database. We are able to connect to oracle using sql plus but odbc connection is failing. We verified for patches, missing files, directory access rights - but no clue as of now.
Our error says:
Logging into "ENTSIA_DEV_DAN" as "sadmin"....
/user/lib/hpux32/dld.so: Unable to find library 'libclntsh.so'.
ODBC error IM0003 in SQLConnect:
(DataDirect){ODBC lib} specified driver could not be loaded
Unable to login using specified odbc parameters
This has become a show stopped for us and we are strugging with this for the past three days without much direction.
Any help is greatly appreciated.
Thanks.Hi,
I guess your DataDirect Driver which gets registered during Database Configuration has some problems.
Can you check whether the DSN is using the proper Driver?
Also, the username through which you are logging in to start Siebel Services must have proper rights.
Many times on Windows platform i have noticied this error in ODBC due to improper user rights. If the rights are not proper, the DataDirect Driver fails to get loaded & throws similar error.
Regards,
Shalabhsneha -
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
Maybe you are looking for
-
I recently downloaded something for my ipod. Now it will not turn on properly. Can someone please tell me how to turn it back on please.
-
Unable to clear memory in C++ Managed application
I have written a win32 project and it internally calls C# forms(using /clr) to do few tasks. Once the task is completed, the form is closed. But the problem is what ever memory is allocated after loading C# form is not getting cleaned up. I tried GC
-
Hierarchical attribute dimension with Essbase Studio
Hi everybody, I need to load product dimension which is organized in a relational parent-child table like this: (parent_code, member_code, member_alias, brand, consolidation, formula) Every product has a brand and I need to load brand as attribute di
-
Superseded applications still deploying
I have a situation where I have superseded relationships for an application and previous releases are still getting deployed. It has become a round-robin sort of thing. The SCCM system is 2012 SP1 with CU4. For example, I have Mozilla firefox going a
-
Problem with Thunderbird email: When I send email using a mailing list, with my email included in the list, the message shows up in my Sent list and others receive it but it does not come to my email Inbox. The same problem occurs when I send the ema