[b]Unable to connect a Jdbc Program to Oracle database.[/b]

Hi all,
i am able to access Oracle database from server to my machine(client) without any connectivity of java.now,I am trying to connect my java program to Oracle database. i have no idea about any other driver.when i am trying to execute this code then it is showing fatal error: java.sql.SQLException: No suitable driver
     at java.sql.DriverManager.getConnection(Unknown Source)
my code is here.if anyone is having idea then plz sort out it.
Thanks n Regards,
Abhi
class Jdbc{   public static void main (String args [])throws SQLException, IOException{
System.out.println ("Loading Oracle driver...");
     try {
     Class.forName ("sun.jdbc.odbc.JdbcOdbc");
       System.out.println("Driver Loaded!");}
     catch (ClassNotFoundException e) {
     System.out.println ("Could not load the driver");
     e.printStackTrace (); }
System.out.println ("Connecting to the Oracle database...");
String url = "Jdbc:Odbc:[email protected]:1521:rf","scott","tiger"
//10.10.0.78 is oracle server IP address and rf is oracle instance.
Connection conn = DriverManager.getConnection(url);

Hi all,
i am able to access Oracle database from server to my
machine(client) without any connectivity of
java.now,I am trying to connect my java program to
Oracle database. i have no idea about any other
driver.when i am trying to execute this code then it
is showing fatal error: java.sql.SQLException: No
suitable driver
at java.sql.DriverManager.getConnection(Unknown
n Source)
my code is here.if anyone is having idea then plz
sort out it.
Thanks n Regards,
Abhi
class Jdbc{   public static void main (String args
[])throws SQLException, IOException{
System.out.println ("Loading Oracle driver...");
     try {
     Class.forName ("sun.jdbc.odbc.JdbcOdbc");
       System.out.println("Driver Loaded!");}
     catch (ClassNotFoundException e) {
     System.out.println ("Could not load the driver");
     e.printStackTrace (); }
System.out.println ("Connecting to the Oracle
database...");
String url =
"Jdbc:Odbc:[email protected]:1521:rf","scott","tiger"
//10.10.0.78 is oracle server IP address and rf is
oracle instance.
Connection conn = DriverManager.getConnection(url);
Hi , I dont know if u got the answer but couple of things i wanted to let u know.
1. the driver u r using make it a thin driver as u r specifying that in the url .
http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/htdocs/winsoft.html
loading class 'oracle.jdbc.driver.OracleDriver'
and url u have to change a little, this depends on the driver u use.
"jdbc:oracle:thin:@balrog:1521:testJdbc"
Regards,
Lakshmi Narayana
/********************* the code which i have tested **************************/
public class Jdbc {
     * @param args
     public static void main(String[] args)     throws SQLException, IOException{
               System.out.println ("Loading Oracle driver...");
                    try {
                    Class.forName ("oracle.jdbc.driver.OracleDriver");
                    System.out.println("Driver Loaded!");}
                    catch (ClassNotFoundException e) {
                    System.out.println ("Could not load the driver");
                    e.printStackTrace (); }
               System.out.println ("Connecting to the Oracle database...");
               String url = "\"Jdbc:Odbc:[email protected]:1521:rf\",\"scott\",\"tiger\"";
//               10.10.0.78 is oracle server IP address and rf is oracle instance.
               Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@balrog:1521:testJdbc","ispsapp","ispsappbalrog");
               Statement st = conn.createStatement();
               ResultSet rs = st.executeQuery("select * from BC_PMT_APPLN");
               if (rs.next()){
                    System.out.println("Column Count ="+rs.getMetaData().getColumnCount());
}

Similar Messages

  • Unable to connect Forms and Report with Oracle 9i database

    Dear All
    Please help
    I have received the following message when i connect Developer 10G Report builder with oracle 9i database.
    scott/tiger@z
    REP-0501:Unable to connect to the specified database ORA-12154:TNS could not resolve service name.
    I have written the following text in tnsnames.ora file.
    # TNSNAMES.ORA Network Configuration File: E:\ora_10g\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    z =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = zkhan-dfml)(PORT = 1521))
    (CONNECT_DATA =
    (SID = dba)
    One more thing that i need to mention,I have also installed Oracle Report 6i and its connecting well.I have installed Oracle database in my own computer.
    Regards

    [email protected] wrote:
    Thanks for the reply,Now my tnsnames.ora file is look like this.
    z =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = zkhan-dfml)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = dba)
    but still facing the same error ,one more thing that i need to mention, I have 3 Oracle home.details are:
    for Oracle database 9i
    for report builder 6i
    for Developer 10G
    Kindly advise.Yes, you definately needed to mention that. That suggests you also have 3 $ORACLE_HOME/network/admin directories, each with its own tnsnames.ora file. So you need to make sure you are hitting the correct one. I'd pick one to be the controlling one and set the TNS_ADMIN enviornment variable to point to it.

  • Reg : Unable to connect to JDBC Store

    Hi all,
    We are unable to connect to a JDBC Store due to which we are experiencing internal error while launching our application. Could anyone please provide a solution why this error is occuring? Please find the error we are facing below
    weblogic.store.io.jdbc.JDBCStoreException: [Store:280065]failed to connect to database (server="AdminServer" store="LIQJMSFileStore" table="WLStore"):(Linked Cause, "java.sql.SQLSyntaxErrorException: ORA-00903: invalid table name
         at weblogic.store.io.jdbc.ReservedConnection.resetConnection(ReservedConnection.java:341)
         at weblogic.store.io.jdbc.ReservedConnection.testConnection(ReservedConnection.java:319)
         at weblogic.store.io.jdbc.ReservedConnection.lock(ReservedConnection.java:286)
         at weblogic.store.io.jdbc.ReservedConnection.lock(ReservedConnection.java:252)
         at weblogic.store.io.jdbc.JDBCStoreIO.initialize(JDBCStoreIO.java:504)
         at weblogic.store.io.jdbc.JDBCStoreIO.open(JDBCStoreIO.java:351)
         at weblogic.store.internal.PersistentStoreImpl.recoverStoreConnections(PersistentStoreImpl.java:413)
         at weblogic.store.internal.PersistentStoreImpl.open(PersistentStoreImpl.java:404)
         at weblogic.store.admin.AdminHandler.activate(AdminHandler.java:126)
         at weblogic.store.admin.JDBCAdminHandler.activate(JDBCAdminHandler.java:66)
         at weblogic.management.utils.GenericManagedService.activateDeployment(GenericManagedService.java:239)
         at weblogic.management.utils.GenericServiceManager.activateDeployment(GenericServiceManager.java:131)
         at weblogic.management.internal.DeploymentHandlerHome.invokeHandlers(DeploymentHandlerHome.java:632)
         at weblogic.management.internal.DeploymentHandlerHome.activateInitialDeployments(DeploymentHandlerHome.java:492)
         at weblogic.management.internal.DeploymentHandlerHome.activateInitialDeployments(DeploymentHandlerHome.java:472)
         at weblogic.management.deploy.internal.DeploymentAdapter$2.doPrepare(DeploymentAdapter.java:101)
         at weblogic.management.deploy.internal.DeploymentAdapter.prepare(DeploymentAdapter.java:191)
         at weblogic.management.deploy.internal.AppTransition$1.transitionApp(AppTransition.java:21)
         at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:240)
         at weblogic.management.deploy.internal.ConfiguredDeployments.prepare(ConfiguredDeployments.java:165)
         at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:122)
         at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:180)
         at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:96)
         at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused By: java.sql.SQLSyntaxErrorException: ORA-00903: invalid table name
         at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:91)
         at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:206)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1035)
         at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:194)
         at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:791)
         at oracle.jdbc.driver.T4CPreparedStatement.executeMaybeDescribe(T4CPreparedStatement.java:866)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1188)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3386)
         at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3430)
         at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1491)
         at weblogic.jdbc.wrapper.PreparedStatement.executeQuery(PreparedStatement.java:135)
         at weblogic.store.io.jdbc.ReservedConnection.getRow(ReservedConnection.java:661)
         at weblogic.store.io.jdbc.ReservedConnection.resetConnection(ReservedConnection.java:338)
         at weblogic.store.io.jdbc.ReservedConnection.testConnection(ReservedConnection.java:319)
         at weblogic.store.io.jdbc.ReservedConnection.lock(ReservedConnection.java:286)
         at weblogic.store.io.jdbc.ReservedConnection.lock(ReservedConnection.java:252)
         at weblogic.store.io.jdbc.JDBCStoreIO.initialize(JDBCStoreIO.java:504)
         at weblogic.store.io.jdbc.JDBCStoreIO.open(JDBCStoreIO.java:351)
         at weblogic.store.internal.PersistentStoreImpl.recoverStoreConnections(PersistentStoreImpl.java:413)
         at weblogic.store.internal.PersistentStoreImpl.open(PersistentStoreImpl.java:404)
         at weblogic.store.admin.AdminHandler.activate(AdminHandler.java:126)
         at weblogic.store.admin.JDBCAdminHandler.activate(JDBCAdminHandler.java:66)
         at weblogic.management.utils.GenericManagedService.activateDeployment(GenericManagedService.java:239)
         at weblogic.management.utils.GenericServiceManager.activateDeployment(GenericServiceManager.java:131)
         at weblogic.management.internal.DeploymentHandlerHome.invokeHandlers(DeploymentHandlerHome.java:632)
         at weblogic.management.internal.DeploymentHandlerHome.activateInitialDeployments(DeploymentHandlerHome.java:492)
         at weblogic.management.internal.DeploymentHandlerHome.activateInitialDeployments(DeploymentHandlerHome.java:472)
         at weblogic.management.deploy.internal.DeploymentAdapter$2.doPrepare(DeploymentAdapter.java:101)
         at weblogic.management.deploy.internal.DeploymentAdapter.prepare(DeploymentAdapter.java:191)
         at weblogic.management.deploy.internal.AppTransition$1.transitionApp(AppTransition.java:21)
         at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:240)
         at weblogic.management.deploy.internal.ConfiguredDeployments.prepare(ConfiguredDeployments.java:165)
         at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:122)
         at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:180)
         at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:96)
         at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Thanks in advance

    This is not a WebLogic issue. This is an Oracle database issue.
    ORA-00903 occurs when you issue a SQL statement with a from clause that contains a reserved keyword for a table name.
    SCOTT@gamsot3 > select * -- table does not exist, but the table name is NOT a keyword. Results in ORA-00942.
    2 from scot_test;
    from scot_test
    ERROR at line 2:
    ORA-00942: table or view does not exist
    SCOTT@gamsot3 > select * -- tables does not exist, but the table name IS a keyword. Results in ORA-00903.
    2 from select;
    from select
    ERROR at line 2:
    ORA-00903: invalid table name
    SCOTT@gamsot3 > select * -- another example with a keyword. Also results in ORA-00903.
    2 from insert;
    from insert
    ERROR at line 2:
    ORA-00903: invalid table name
    To solve this, fix the SQL statement that you are issuing from your custom code deployed on the managed server to use the correct table name in the from clause.
    Edited by: Scot Krause on Feb 15, 2012 4:29 PM

  • Acrobat unable to connect to email program

    I just installed Acrobat 9.0 on Windows 8.1.  I believe the connection worked at the beginning, but now Acrobat is "unable to connect to my email program."  I am using Windows Live Mail and set it as the default program for my computer.  Still no resolution.  Any other ideas?         

    Acrobat 9 is not compatible with Windows 8. You need to upgrade to the
    latest version (XI), and the update to the latest version available
    (11.0.10) for maximum compatibility.
    On Thu, Jan 8, 2015 at 3:31 AM, austintriguy <[email protected]>

  • Unable to connect the external program.

    Hi Experts,
    We have schedule one job which run everyday. This job execute one external program.
    Now, this job get canceled everyday and the error is Unable to connect to target host
    Failed to start external program. The job log is as follows.
    Date               Time     Message text                                            Message class Message no. Message type
    15.10.2009 04:40:20 Job started                                                              00          516          S
    15.10.2009 04:40:20 Step 001 started                                                     BT          611          S
    15.10.2009 04:40:20 External program: /interface/scripts/zgrm002.sh   BT          612          S
    15.10.2009 04:40:20 Related parameter:                                                 BT          613          S
    15.10.2009 04:40:49 Unable to connect to target host                            BT          619          I
    15.10.2009 04:40:49 Failed to start external program                             BT           605          A
    15.10.2009 04:40:49 Job cancelled                                                         00           518          A
    Can anybody have the idea how to resolve this problem.
    Thanks in Advance.
    Abhishek.

    Hi,
    The host serevr details may be changed. Please check with the respective team for the proper host details.
    Check this link. It may help:
    Re: Regarding Providing FTP connection from R/3
    Regards,
    Swarna Munukoti
    Edited by: Swarna Munukoti on Oct 16, 2009 8:17 AM

  • Unable to connect to JDBC Persistent Store

    - There are two managed server in a cluster on a WLS 9.2 MP2 and the version of database is 9..2.0.8
    - Trying to start managed server but getting java.lang.Assertion error.
    - Application also does not work.
    - Managed server 1 is not starting and throwing the java.lang.Assertion error.
    - It connects to a JDBC persistent store.
    - Managed server 2 starts perfectly and connects to it's own JDBC persistent store.
    - Both managed servers use the same Oracle Database 9.2.0.8.
    - There is different JDBC store for both the managed servers.
    - Each persistent store has its own separate table in the database
    ####<Jun 6, 2010 10:40:45 AM PDT> <Error> <Deployer> <emfd2> <WLISMMS1> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1275846045224> <BEA-149260> <A failure occurred during application startup.
    >
    Need Help!!
    >
    Edited by: user12941236 on Jun 10, 2010 7:10 AM
    Edited by: user12941236 on Jun 10, 2010 7:11 AM

    weblogic.application.ModuleException: ERROR: Could not activate EIJMSModule!ApplicationErrorQueue01
         at weblogic.jms.backend.BEDestinationRuntimeDelegate.activate(BEDestinationRuntimeDelegate.java:238)
         at weblogic.jms.module.JMSModule$EntityState.setState(JMSModule.java:1717)
         at weblogic.jms.module.JMSModule$EntityState.setState(JMSModule.java:1667)
         at weblogic.jms.module.JMSModule$EntityState.access$100(JMSModule.java:1608)
         at weblogic.jms.module.JMSModule.activate(JMSModule.java:332)
         at weblogic.jms.module.ModuleCoordinator.activate(ModuleCoordinator.java:179)
         at weblogic.application.internal.flow.ModuleListenerInvoker.activate(ModuleListenerInvoker.java:107)
         at weblogic.application.internal.flow.DeploymentCallbackFlow$2.next(DeploymentCallbackFlow.java:381)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
         at weblogic.application.internal.flow.DeploymentCallbackFlow.activate(DeploymentCallbackFlow.java:71)
         at weblogic.application.internal.flow.DeploymentCallbackFlow.activate(DeploymentCallbackFlow.java:63)
         at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:635)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
         at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212)
         at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:154)
         at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:80)
         at weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:181)
         at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:358)
         at weblogic.management.deploy.internal.DeploymentAdapter$1.doPrepare(DeploymentAdapter.java:42)
         at weblogic.management.deploy.internal.DeploymentAdapter.prepare(DeploymentAdapter.java:177)
         at weblogic.management.deploy.internal.AppTransition$1.transitionApp(AppTransition.java:21)
         at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:233)
         at weblogic.management.deploy.internal.ConfiguredDeployments.prepare(ConfiguredDeployments.java:165)
         at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:122)
         at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:173)
         at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:89)
         at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
    weblogic.messaging.kernel.KernelException: The Messaging Kernel EIJMSServer01 has not yet been opened
         at weblogic.messaging.kernel.internal.KernelImpl.checkOpened(KernelImpl.java:191)
         at weblogic.messaging.kernel.internal.DestinationImpl.activate(DestinationImpl.java:279)
         at weblogic.messaging.kernel.internal.QueueImpl.activate(QueueImpl.java:1629)
         at weblogic.messaging.kernel.internal.DestinationImpl.resume(DestinationImpl.java:263)
         at weblogic.messaging.kernel.internal.QueueImpl.resume(QueueImpl.java:1805)
         at weblogic.jms.backend.BEDestinationImpl.start(BEDestinationImpl.java:604)
         at weblogic.jms.backend.BEDestinationRuntimeDelegate.activate(BEDestinationRuntimeDelegate.java:235)
         at weblogic.jms.module.JMSModule$EntityState.setState(JMSModule.java:1717)
         at weblogic.jms.module.JMSModule$EntityState.setState(JMSModule.java:1667)

  • Unable to connect: incorrect log on parameters. Database Vendor Code: 18456

    I have imported a report into Info View (that has no parameters), I am able to run the report on Demand in InfoView, and I am also able to run the report within the CMC Preview.   I have tried scheduling using the admin account in CMC, through the publishing wizard and also with a authorized users in InfoView.  But anytime I try to schedule the report I get this error.
    Status: Failed 
    Printer: The instance is not printed. 
    External Destination: Mail the instance to " XXX@XXX .com " with a subject of " test ". 
    Data Refresh Settings:  Use the server defaults. 
    Start Time: 11/18/08 3:02:19 PM 
    End Time: 11/18/08 3:02:23 PM 
    Server Used: clr-combr.reportjobserver 
    Error Message: Error in File C:\Program Files\Business Objects\BusinessObjects Enterprise 11.5\Data\procSched\clr-combr.reportjobserver\~tmp1304574d76168ca.rpt: Unable to connect: incorrect log on parameters. Details: [Database Vendor Code: 18456 ] 
    I have made sure that the Reportjobobject is enabled and the server for SMTP email is enabled, and I am pretty sure I have the properties set up correctly within there, we created a email account specifically for crystal.  And that email account is also set up as a user.  I don't know where else to look.
    Please help.
    Thanks

    Hi Ashley
    I would like to suggest you following things with the Report:
    1) Please log in into CMC, go to Report which you want to schedule.
    2) Click on the report and go to Process
    3) Click on the tab Database.
    4) There will be two option to make the entries for database logon required for the Report.
    Please select the appropriate option. Are you able to Preview the report?
    What is the database in use? Please also check the odbc driver settings for that database.

  • Unable to connect to Forms 6i from Oracle 9i

    Hi,
    I have Oracle 9.2.0 (Personal edition) and Forms 6i installed on a Win2K PC.
    I am able to connect to the DB from SQLPLUS. But, I am unable to connect to the DB from Forms 6i. I was getting a ORA-12203 error. Then I configured the DB connection through the Net Easy Config. Also I tried to copy the network/admin/tnsnames.ora file from my database ORACLE_HOME to the Developer Suite ORACLE_HOME. Now I am getting the ORA-12222 TNS: No such protocol adapter error.
    Can anyone suggest where I am going wrong and what is that I need to do to resolve the problem.
    Thanks in advance!!!

    Normaly forms6i uses Tnsnames.ora file to connect to the database. You need to setup your Tnsnames.ora file correctly by clicking Start---Programs---Directory for Oracle--Oracle net8 easy config, and configure your database connection.

  • Unable to connect to the 10g Express edition database in oracle forms

    hi,
    i have installed Oracle Database 10g Express Edition and oracle 10g developer suite. i need to work on oracle forms by connecting to the database of the 10g express edition but unable to do so as i am not aware of the database name or SID.
    can any one tell me how to connect to the above database in oracle forms by specifying username, password and database name ?
    Thanks,
    Viddu

    specifying username, passwordSet up your database user, easy way is to grant them the resource role (*strongly* suggest not using sys nor system for user data) here's one command line sqlplus method:
    $ sqlplus /nolog
    SQL> connect system -- or connect /as sysdba; if system credential is lost/forgotten
    SQL> create user username identified by userpasswd default tablespace <tablespace> temporary tablespace <temp tablespace>;
    SQL> grant connect, resource to username;
    SQL> exit;
    > the database name or SID
    Its XE "out of the box", with a servicename is XE as well, using the default port 1521 on the host. The install should also set up a tns alias named, oddly enough, XE, with those connection details from the install. It comes with a USERS data tablespace, and TEMP temporary tablespace.
    So after the user is created, i.e. with sqlplus:
    SQL> connect username/passwd
    or if your session is not on the host where the database is running, with a tns alias pointing to the XE install host in place:
    SQL> connect username/passwd@xe
    From a different client machine you will need a tnsnames.ora entry defining an alias, it could be any name you would prefer to use as long as the entry points the the database host and port with the correct ORACLE_SID or the database service name.
    And don't forget to glance over the documentation, it is thorough and helpful as well http://www.oracle.com/pls/xe102/homepage

  • Unable to connect other client once Oracle10g EEdition Database Installed

    Hi,
    I have Oracle Client in my desktop and I am able to connect Oracle servers which connected through LAN.
    I have installed Oracle10g Express Edition Database in my desktop for the Backup purpose.
    I am struggle to connect other Oracle Database which connected in my Local Area Network once I have installed the Oracle Database in my Desktop.
    I can able to connect installed Oracle10g Express Edition DB, but not other Oracle DB Server.
    Kindly guide / help me to use both Oracle DB Server which Installed in my PC and Others.
    Thanks in advance.
    Orahar.

    Please post full Oracle error message including error number such as ORA-XXXX or TNS-XXXX.
    It coud be an Oracle Net configuration issue: find all files named tnsnames.ora and try to merge them into the default <ORACLE_HOME>/network/admin/tnsnames.ora which is for XE ORACLE_HOME in your case.

  • Stored Procedure call from JDBC sender for Oracle Database

    Hi,
    I have a requirement to call stored procedure using JDBC sender adapter for retriving data from an Oracle database.
    I need to execute first stored procedure call from Querry SQL statement and then trigger second stored procedure call for confirming the succesful retrival of those records from the update SQL statement.
    Querries:
    1. Can we trigger stored procedure from Update statement of JDBC sender.
    2. Can we call stored procedure from Querry statement, since I have read on other sdn threads that stored procedure calls on Oracle database are not allowed. If not possible to have "Execute stored procedure" would the function call (select * from table(function name)) work same as stored procedure.
    3. In a JDBC sender the Querry statement and Update statement are executed in same session call and same database connection. What happens if the querry statement was not succesful, would the update be still triggered.
    Please note PI does not have direct access to main table and hence the need to have separate stored procedure calls.
    The PI version is PI 7.11 sp4.
    Appreciate your inputs.
    Thanks.
    Siddhesh S.Tawate

    >1. Can we trigger stored procedure from Update statement of JDBC sender.
    I think not possible using update statement.
    > Can we call stored procedure from Querry statement, since I have read on other sdn threads that stored procedure calls on Oracle database are not allowed. If not possible to have "Execute stored procedure" would the function call (select * from table(function name)) work same as stored procedure.
    Yes using select query you can call stored procedure.
    >. In a JDBC sender the Querry statement and Update statement are executed in same session call and same database connection. What happens if the querry statement was not succesful, would the update be still triggered.
    No select and update handles in the same session using the same thread so if one transaction fails update should not proceed.

  • JDBC error with Oracle Database

    Hi,
      We are now facing some problems when using Oracle JDBC in XI JDBC Adapter, and this problem happens randomly.
      Our oracle is ver 8.1.5, jdbc ver 9.2.0.1 ojdbc14.jar, J2RE 1.4.2 IBM AIX build ca142-20060824.
      The following exceptions have been found in log viewer:
    Exception caught when executing statement for table/stored proc. 'cgjs_zj_zjb' (structure 'SELECTSTMT'):
    java.sql.SQLException: Io exception: There is no process to read data written to a pipe.
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:334)
         at oracle.jdbc.ttc7.TTC7Protocol.handleIOException(TTC7Protocol.java:3668)
         at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1986)
         at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteDescribe(TTC7Protocol.java:850)
         at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:2599)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2963)
         at oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:653)
         at com.sap.aii.adapter.jdbc.SAXHandler.executeQuery(xml2sql.java(Compiled Code))
         at com.sap.aii.adapter.jdbc.SAXHandler.executeQuery(xml2sql.java(Inlined Compiled Code))
         at com.sap.aii.adapter.jdbc.SAXHandler.SQLsel(xml2sql.java(Compiled Code))
         at com.sap.aii.adapter.jdbc.SAXHandler.processList(xml2sql.java(Compiled Code))
         at com.sap.aii.adapter.jdbc.SAXHandler.endElement(xml2sql.java(Compiled Code))
         at com.sap.engine.lib.xml.parser.handlers.SAXDocHandler.endElement(SAXDocHandler.java(Compiled Code))
         at com.sap.engine.lib.xml.parser.XMLParser.scanEndTag(XMLParser.java(Compiled Code))
         at com.sap.engine.lib.xml.parser.XMLParser.scanElement(XMLParser.java(Compiled Code))
         at com.sap.engine.lib.xml.parser.XMLParser.scanContent(XMLParser.java(Compiled Code))
         at com.sap.engine.lib.xml.parser.XMLParser.scanElement(XMLParser.java(Compiled Code))
         at com.sap.engine.lib.xml.parser.XMLParser.scanDocument(XMLParser.java(Compiled Code))
         at com.sap.engine.lib.xml.parser.XMLParser.parse0(XMLParser.java(Compiled Code))
         at com.sap.engine.lib.xml.parser.AbstractXMLParser.parseAndCatchException(AbstractXMLParser.java(Compiled Code))
         at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java(Inlined Compiled Code))
         at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java(Compiled Code))
         at com.sap.engine.lib.xml.parser.Parser.parseWithoutSchemaValidationProcessing(Parser.java(Inlined Compiled Code))
         at com.sap.engine.lib.xml.parser.Parser.parse(Parser.java(Compiled Code))
         at com.sap.engine.lib.xml.parser.SAXParser.parse(SAXParser.java(Compiled Code))
         at javax.xml.parsers.SAXParser.parse(Unknown Source)
         at javax.xml.parsers.SAXParser.parse(Unknown Source)
         at com.sap.aii.adapter.jdbc.xml2sql.service(xml2sql.java:211)
         at com.sap.aii.adapter.jdbc.XI2JDBC.onInternalMessage(XI2JDBC.java:481)
         at com.sap.aii.adapter.jdbc.SapAdapterServiceFrameImpl.callSapAdapter(SapAdapterServiceFrameImpl.java:175)
         at com.sap.aii.af.modules.CallAdapterWithMessageBean.process_receiver(CallAdapterWithMessageBean.java:226)
         at com.sap.aii.af.modules.CallAdapterWithMessageBean.process(CallAdapterWithMessageBean.java:164)
         at com.sap.aii.af.mp.module.ModuleLocalLocalObjectImpl0_1.process(ModuleLocalLocalObjectImpl0_1.java:103)
         at com.sap.aii.af.mp.ejb.ModuleProcessorBean.process(ModuleProcessorBean.java:264)
         at com.sap.aii.af.mp.processor.ModuleProcessorLocalLocalObjectImpl0_0.process(ModuleProcessorLocalLocalObjectImpl0_0.java:103)
         at com.sap.aii.af.listener.AFWListenerBean.onMessage(AFWListenerBean.java:267)
         at com.sap.aii.af.listener.AFWListenerLocalObjectImpl0_0.onMessage(AFWListenerLocalObjectImpl0_0.java:103)
         at com.sap.aii.af.ra.ms.impl.ServicesImpl.deliver(ServicesImpl.java:306)
         at com.sap.aii.adapter.xi.ms.XIEventHandler.onDeliver(XIEventHandler.java:1034)
         at com.sap.aii.af.ra.ms.impl.core.queue.RequestConsumer.onMessage(RequestConsumer.java:118)
         at com.sap.aii.af.ra.ms.impl.core.queue.Queue.run(Queue.java(Compiled Code))
         at com.sap.aii.af.ra.ms.runtime.MSWorkWrapper.run(MSWorkWrapper.java:56)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java(Compiled Code))
         at java.security.AccessController.doPrivileged1(Native Method)
         at java.security.AccessController.doPrivileged(AccessController.java(Compiled Code))
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java(Compiled Code))
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java(Compiled Code))
        Hope you can help me.
        B'Rgds,
                     YiNing

    nice trick:)
    This problem hasn't been solved yet, and now I found something harder to solve with this Oracle database and it's JDBC when I was using a synchronous scenario.
    Check the following adapter log:
    2007-02-28 10:03:53 Success Message successfully received by messaging system. Profile: XI URL: http://sapxidev:50000/MessagingSystem/receive/AFW/XI Credential (User): XIISUSER
    2007-02-28 10:03:53 Success Using connection JDBC_http://sap.com/xi/XI/System. Trying to put the message into the request queue.
    2007-02-28 10:03:53 Success Message successfully put into the queue.
    2007-02-28 10:03:53 Success The message was successfully retrieved from the request queue.
    2007-02-28 10:03:53 Success The message status set to DLNG.
    2007-02-28 10:03:53 Success Delivering to channel: JDBC_RECV_PO_SBC
    2007-02-28 10:03:53 Success MP: entering
    2007-02-28 10:03:53 Success MP: processing local module localejbs/CallSapAdapter
    2007-02-28 10:03:53 Success Receiver JDBC adapter: processing started; QoS required: BestEffort
    2007-02-28 10:10:59 Success JDBC adapter receiver channel JDBC_RECV_PO_SBC: processing started; party  , service PO_SYS
    2007-02-28 10:10:59 Success SELECT BUSID, BUDAT, EDPER, BKTXT, XBLNR, BUZEI, BSCHL, HKONT, LIFNR, NEWUM, DMBTR, GSBER, MATNR, MENGE, ZUONR, SGTXT, XREF1, XREF2, XREF3, IDXSP, MWSKZ, RMVCT, RSTGR, ZTERM, ZFBDT, ZLSCH, XNEGP, KOSTL, AUFNR, LGORT_I, LGORT_O, GRUND, BWART, BSELM, STATS, ERFME, ZZFIELD2 FROM SAP_ZJB WHERE (STATS=O AND EDPER=9105)
    2007-02-28 10:11:01 Success UPDATE SAP_ZJB SET STATS=U WHERE (STATS=O AND EDPER=9105)
    2007-02-28 10:11:01 Success Database request processed successfully
    2007-02-28 10:11:01 Success MP: leaving
    2007-02-28 10:11:01 Error Delivery of the message to the application using connection JDBC_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.ra.ms.api.MessageExpiredException: Sync application request expired.. Setting message to status failed.
    2007-02-28 10:11:01 Error The message status set to FAIL.
    2007-02-28 10:11:01 Error Returning synchronous error message to calling application: com.sap.aii.af.ra.ms.api.MessageExpiredException: Sync application request expired..
    Between the 2007-02-28 10:03:53 and 2007-02-28 10:10:59, what takes it so long to process? Also it happens randomly.
    Since it is synchronous, the remote database table has been updated but the connection with XI has been disconnected for timeout issue, which lead to unrecoverable data inconsistent problem.
    Anyone who can help me?

  • ORA-12154 Connection error from HFM to Oracle Database

    Hi,
    I am trying to configure Hyperion HFM but can write to HFM database.
    The implementation architecture:
    Hyperion 11.1.2.2 (with all the requiered patches for HFM, FDM, Shared Services, Workspace and Oracle Application Development)
    Server 1:
    Windows Server 2008 x64
    Installed products: Foundation (EPMA, CalcManager), BI, HFM web components and ADM driver
    Configured products: Foundation(EPMA, CalcManager), BI.
    Database Client: 11gR2 x64
    Server 2:
    Windows Server 2008 x64
    Installed products: HFM, FDQM
    Configured Products: FDQM, HFM
    Database Client: 11gR2 x32, 11gR2 x64 (x32 version installed first)
    Server 3:
    Database: Oracle 11.2.0.2
    All the products from server 1 are working fine, FDQM (server 2) is also working fine, but, when I try to do any action related with HFM database the system fails.
    I have tested the connection is these scenarios:
    1. SQLdeveloper: successfull!, I can create tables, views, etc. Double checking the user privileges it has all the required.
    2. tnsping: successfull!
    3. HFMApplicationCopy utility: Successfull using UDL file and writing the connection parameters.
    4. EPM System Configurator: the configurator successfully validates the database connection information, but does not create the tables on the database. No errors in the configtool log.
    5. EPM Diagnostic Tool: fails with this error message:
    ------------STARTING VALIDATION SCRIPTS----------
    LOGGING IN HFM....
    CREATING APPLICATION....
    ERROR: Unable to CreateApplicationCAS
    Number (dec) : -2147215936
    Number (hex) : &H800415C0
    Description  : <?xml version="1.0"?>
    +<EStr><Ref>{DC34A1FD-EE02-4BA6-86C6-6AEB8EF5E5A3}</Ref><AppName/><User/><DBUpdate>1</DBUpdate><ESec><Num>-2147467259</Num><Type>1</Type><DTime>10/19/2012 8:30:52 AM</DTime><Svr><server_name></Svr><File>HfmADOConnection.cpp</File><Line>511</Line><Ver>11.1.2.2.300.3774</Ver><DStr>ORA-12154: TNS:could not resolve the connect identifier specified</DStr></ESec><ESec><Num>-2147215616</Num><Type>1</Type><DTime>10/19/2012 8:30:52 AM</DTime><Svr><server_name></Svr><File>CHsxSQLConnectionPool.cpp</File><Line>585</Line><Ver>11.1.2.2.300.3774</Ver></ESec><ESec><Num>-2147215936</Num><Type>0</Type><DTime>10/19/2012 8:30:52 AM</DTime><Svr><server_name></Svr><File>CHsxServerImpl.cpp</File><Line>8792</Line><Ver>11.1.2.2.300.3774</Ver></ESec><ESec><Num>-2147215936</Num><Type>0</Type><DTime>10/19/2012 8:30:52 AM</DTime><Svr><server_name></Svr><File>CHsxServer.cpp</File><Line>90</Line><Ver>11.1.2.2.300.3774</Ver></ESec><ESec><Num>-2147215936</Num><Type>1</Type><DTime>10/19/2012 8:30:52 AM</DTime><Svr><server_name></Svr><File>CHsxClient.cpp</File><Line>1356</Line><Ver>11.1.2.2.300.3774</Ver><PSec><Param><server_name></Param></PSec></ESec><ESec><Num>-2147215936</Num><Type>1</Type><DTime>10/19/2012 8:30:52 AM</DTime><Svr><server_name></Svr><File>CHsxClient.cpp</File><Line>936</Line><Ver>11.1.2.2.300.3774</Ver></ESec><ESec><Num>-2147215936</Num><Type>0</Type><DTime>10/19/2012 8:30:52 AM</DTime><Svr><server_name></Svr><File>CHsxClient.cpp</File><Line>4096</Line><Ver>11.1.2.2.300.3774</Ver></ESec></EStr>+
    Source       : Hyperion.HFMErrorHandler.1
    ERROR: while Application created
    7. HFM Classic application creation: fails with the following error:
    Error*11*<user_name+>*10/19/2012 08:30:52*CHsxServer.cpp*Line 90*<?xml version="1.0"?>+
    +<EStr><Ref>{DC34A1FD-EE02-4BA6-86C6-6AEB8EF5E5A3}</Ref><AppName/><User/><DBUpdate>1</DBUpdate><ESec><Num>-2147467259</Num><Type>1</Type><DTime>10/19/2012 8:30:52 AM</DTime><Svr><server_name></Svr><File>HfmADOConnection.cpp</File><Line>511</Line><Ver>11.1.2.2.300.3774</Ver><DStr>ORA-12154: TNS:could not resolve the connect identifier specified</DStr></ESec><ESec><Num>-2147215616</Num><Type>1</Type><DTime>10/19/2012 8:30:52 AM</DTime><Svr><server_name></Svr><File>CHsxSQLConnectionPool.cpp</File><Line>585</Line><Ver>11.1.2.2.300.3774</Ver></ESec><ESec><Num>-2147215936</Num><Type>0</Type><DTime>10/19/2012 8:30:52 AM</DTime><Svr><server_name></Svr><File>CHsxServerImpl.cpp</File><Line>8792</Line><Ver>11.1.2.2.300.3774</Ver></ESec><ESec><Num>-2147215936</Num><Type>0</Type><DTime>10/19/2012 8:30:52 AM</DTime><Svr><server_name></Svr><File>CHsxServer.cpp</File><Line>90</Line><Ver>11.1.2.2.300.3774</Ver></ESec></EStr>+
    8. EPMA Application deployment: fails with same message.
    Please help me with some insights on this problem, I have tried everything but nothing works.
    Regards
    Edited by: Otein on 19-oct-2012 14:04

    Hi,
    I Have solved one of my problems, the one that keep HFM from connecting to the Oracle database.
    I just change the TNSNAMES.ORA, like this:
    Initial tnsnames.ora
    PRUEBA.WORLD=
    +(DESCRIPTION_LIST =+
    +(DESCRIPTION =+
    +(LOAD_BALANACE = ON)+
    +(FAILOVER = ON)+
    +(ADDRESS_LIST =+
    +(ADDRESS = (PROTOCOL = TCP)(HOST = <server_name>)(PORT = <port>))+
    +)+
    +(CONNECT_DATA =+
    +(SERVICE_NAME = <service_name>)+
    +)+
    +)+
    +)+
    Modified tnsnames.ora
    PRUEBA.WORLD=
    +(DESCRIPTION =+
    +(LOAD_BALANACE = ON)+
    +(FAILOVER = ON)+
    +(ADDRESS_LIST =+
    +(ADDRESS = (PROTOCOL = TCP)(HOST = <server_name>)(PORT = <port>))+
    +)+
    +(CONNECT_DATA =+
    +(SERVICE_NAME = <service_name>)+
    +)+
    +)+
    I Just delete the line "+(DESCRIPTION_LIST =+" and its corresponding closing parenthesis, I did this cause in the configuration utility log I saw this line:
    +TNS parsing: Entry: DESCRIPTION_LIST [[Address: Protocol:(TCP) Host:(<server_name>) Port:(1521) SID:(<service_name>)]]+
    So, if the applications were trying to connect to connection descriptor DESCRIPTION_LIST, the driver could not recognize DESCRIPTION_LIST as a valid one.
    There is a lot going on behind the scenes when you work with Oracle Database as the repository, maybe there is some other way to address this issue, but it worked for me, hope it can help you too.

  • Connection issue from sqldeveloper to Oracle Database 10g

    I have installed Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 on my machine having platform Windows vista
    Now i have install sqldeveloper but i am not able to connect to oracle databse.
    GETTING AN ERROR Network adapter could not make it connection
    after that i have tried to check listners.ora through tnsping orcl getting following result
    C:\Users\Kailas>tnsping orcl
    TNS Ping Utility for 32-bit Windows: Version 10.2.0.3.0 - Production on 08-APR-2
    011 00:20:05
    Copyright (c) 1997, 2006, Oracle. All rights reserved.
    Used parameter files:
    E:\oracle\product\10.2.0\db_1\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = kailasLa
    pi)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orcl)))
    TNS-12541: TNS:no listener
    Please let me know What should i do i want to start my practice sessions on sqldeveloper
    I am new in Oracle pl/sql development
    Please guide me on this.........................

    SQLDeveloper 3.0 production is supplied with the thin driver 11.2.0.2
    it needs 11.2.0.2 version to use thick which has a few additional features over thin.
    To avoid confusion with other Oracle software you can set the ORACLE_HOME in the session you start sqldeveloper in as described below:
    The version mismatch is often because SQLDeveloper is trying to use the 'thick' driver and 11.2.0.2 thick is not available,
    try
    thin by:
    1/(uncheck Tools->preferences->Datababae->advanced->use OCI/thick driver, and
    2/If necessary, set ORACLE_HOME for your cmd.exe session where sqldev is started from to where sqldeveloper is where %ORACLE_HOME%\jdbc\lib exists, (so SQLDeveloper does not try your existing ORACLE_HOME) and
    3/If using connection type TNS, use Connection Type TNS -> Network Alias.
    4/You may need to set Tools->preferences->Datababase->advanced->Tnsname directory to the directory containing tnsnames.ora
    -Turloch
    SQLDeveloper Team

  • Error connecting Visual C# app to Oracle database

    I'm trying to write a simple web form that will display some info from an Oracle 9 database.
    I've downloaded the ODP for .net (the 10g version) and this allows me to set up an OracleDataProvider. However, when I try to configure this I get the following error message:
    "The connection could not be opened because of the following error: ORA-12154: TNS:could not resolve the connect identifier specified
    I've then tried to use the OleDbAdapter, and while I can configure this to point to my database (and when I bind the datagrid I see all the column names from the table that I'm querying) when I try to view the web form and see the data that I want I get an unspecified Oracle error.
    Do I need to install anything on the Oracle database to make this work? Does that fact that I'm using the 10g ODP mean that this won't work?

    Most likely, your connection string does not match an entry in your tnsnames.ora file.
    Your connection string should look somewhat like this:
    dsn=oracle_service_name;user id=userid;password=password;
    You could also place your tnsnames entry in the dsn field.

Maybe you are looking for