How to connect from java without using oracle client installation

hi ,
Please tell me how to connect from java without using oracle client
Thanks & Regars

http://www.orafaq.com/wiki/JDBC#Thin_driver

Similar Messages

  • How to connect to AD without using ADWS?

    How to connect to AD without using ADWS? Is it possible to do it? If yes, can teach me how to connect to AD and find their attributed?

    Hi Noobycy,
    There are few tools to find AD attributes without ADWS. See options you have below
    1.ADFIND -
    http://www.joeware.net/freetools/tools/adfind/  This is a command Line tool
    2.
    The ADSIEDIT tool
    from the Windows Support Tools is a great tool to "explore" the AD.
    http://technet.microsoft.com/en-us/library/cc731547.aspx
    3. ADUC -
    http://www.boostsolutions.com/blog/how-to-find-attributes-of-objects-in-active-directory/
    Regards, MassonTech

  • Problems in SQL Connection from Java program to Oracle 8.1.7

    Hi,
    I am java program that connects to Oracle 8.1.7 .
    Client: java code on Windows 2000
    Server: oracle 8.1.7 on Solaris
    Java code uses two types of Connection Pools. One Pool uses "thin" connections and other pool uses "OracleConnectionPoolDataSource" class.
    The methods which use "thin" pool work great however the methods which use "OracleConnectionPoolDataSource" fail after 5 to 10 calls.
    Given below is the exception that I see in my log file.
    February 26, 2002 10:17:38 AM UTC: Debug.INFO: searchByNameCommono.jsp Error : Tpd2.openConnection(1)failed:DBConnPool2.getConnection(String) failed:Closed Connection
    com.commerceone.msbtpdapi.util.DBConnException: Tpd2.openConnection(1)failed:DBConnPool2.getConnection(String) failed:Closed Connection
         at com.commerceone.msbtpdapi.api.Tpd2.openConnection(Tpd2.java:138)
         at com.commerceone.msbtpdapi.api.TpdDBApi.searchTpsByCompanynameAndStatus(TpdDBApi.java:1685)
    Windows java code uses JDK 1.3.1
    Oracle machine has java version 1.2.2.
    Do I need to check for any settings like LD_LIBRARY_PATH on oracle machine ?
    Thanks a lot.
    Regards
    Mandar

    Hi,
    I am java program that connects to Oracle 8.1.7 .
    Client: java code on Windows 2000
    Server: oracle 8.1.7 on Solaris
    Java code uses two types of Connection Pools. One Pool uses "thin" connections and other pool uses "OracleConnectionPoolDataSource" class.
    The methods which use "thin" pool work great however the methods which use "OracleConnectionPoolDataSource" fail after 5 to 10 calls.
    Given below is the exception that I see in my log file.
    February 26, 2002 10:17:38 AM UTC: Debug.INFO: searchByNameCommono.jsp Error : Tpd2.openConnection(1)failed:DBConnPool2.getConnection(String) failed:Closed Connection
    com.commerceone.msbtpdapi.util.DBConnException: Tpd2.openConnection(1)failed:DBConnPool2.getConnection(String) failed:Closed Connection
         at com.commerceone.msbtpdapi.api.Tpd2.openConnection(Tpd2.java:138)
         at com.commerceone.msbtpdapi.api.TpdDBApi.searchTpsByCompanynameAndStatus(TpdDBApi.java:1685)
    Windows java code uses JDK 1.3.1
    Oracle machine has java version 1.2.2.
    Do I need to check for any settings like LD_LIBRARY_PATH on oracle machine ?
    Thanks a lot.
    Regards
    Mandar

  • First two iPhone 4's no service.  Now have new phone. How to connect to iTunes without using old backup?

    Got a new iPhone 4 in November after long time success with an iPhone 3G.  It constantly showed no service & gave error message to restore with iTunes, which I did. It continued to not have service. I would reset network connection and it would work for a bit only to not be of use again.  In January I brought it back to the apple store and they gave me a new phone.  I took it home and synced  it with iTunes.  However the second phone started to do the same thing.  I am on my 3rd iPhone 4.  I am scared to sync it with iTunes and restore to backup for fear something in iTunes could be corrupting it.  Does anyone have houghts on this?

    If there is a problem with the backup, transferring the backup will also transfer the problem.
    When connecting a new iPhone to iTunes on a computer used to sync with another iPhone, you are prompted to transfer the backup for the other iPhone to the new iPhone, or set up the new iPhone as a new iPhone or do not transfer the backup. Choose the latter.

  • Oracle connection from remote server where oracle client is installed not happening.

    Hi  ,
    I am facing problem today , that i am not able to reach oracle DB from other machine where i have installed Oracle clinet few months ago. Same was heppeing till yesterday.
    OS: Windows
    Version: 11G
    Oracle DB TNS:
    # tnsnames.ora Network Configuration File: C:\app\oracluadmin\product\11.2.0\dbhome_1\NETWORK\ADMIN\tnsnames.ora
    # Generated by Oracle configuration tools.
    DFCCDB =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = 10.199.4.130)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = dfccdb.dfcc.co.in)
    ORACLR_CONNECTION_DATA =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
        (CONNECT_DATA =
          (SID = CLRExtProc)
    Output from DB server:
    C:\Users\oracluadmin>tnsping DFCCDB
    TNS Ping Utility for 64-bit Windows: Version 11.2.0.3.0 - Production on 28-JAN-2014 14:51:22
    Copyright (c) 1997, 2011, Oracle.  All rights reserved.
    Used parameter files:
    C:\app\oracluadmin\product\11.2.0\dbhome_1\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 10.199.4.130)(PORT = 1521))) (CONNECT_DATA = (SERVER
    = DEDICATED) (SERVICE_NAME = dfccdb.dfcc.co.in)))
    OK (0 msec)
    C:\Users\oracluadmin>sqlplus SYS AS SYSDBA@DFCCDB
    SQL*Plus: Release 11.2.0.3.0 Production on Tue Jan 28 14:56:15 2014
    Copyright (c) 1982, 2011, Oracle.  All rights reserved.
    Enter password:
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL>
    Clinet server TNS:
    DFCCDB =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = 10.199.4.130)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = dfccdb.dfcc.co.in)
    Output from client server:
    C:\Users\gisadmin>tnsping DFCCDB
    TNS Ping Utility for 64-bit Windows: Version 11.2.0.1.0 - Production on 28-JAN
    014 15:06:18
    Copyright (c) 1997, 2010, Oracle.  All rights reserved.
    Used parameter files:
    C:\app\gisadmin\product\11.2.0\client_1\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TC
    (HOST = 10.199.4.130)(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = dfccdb.df
    .co.in)))
    OK (10 msec)
    C:\Users\gisadmin>sqlplus SYS AS SYSDBA@DFCCDB
    SQL*Plus: Release 11.2.0.1.0 Production on Tue Jan 28 15:06:36 2014
    Copyright (c) 1982, 2010, Oracle.  All rights reserved.
    Enter password:
    ERROR:
    ORA-12560: TNS:protocol adapter error
    Enter user-name:
    Thnaks....

    Hi,
    Refer the logs:
    <msg time='2014-02-11T10:43:10.455+05:30' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='DFCC-GISDB-01'
    host_addr='10.199.4.58'>
    <txt>11-FEB-2014 10:43:10 * (CONNECT_DATA=(SERVICE_NAME=dfccdb.dfcc.co.in)(CID=(PROGRAM=C:\app\gisadmin\product\11.2.0\client_1\bin\sqlplus.exe)(HOST=DFCC-GISAPP-01)(USER=gisadmin))) * (ADDRESS=(PROTOCOL=tcp)(HOST=10.199.4.55)(PORT=25229)) * establish * dfccdb.dfcc.co.in * 12514
    </txt>
    </msg>
    <msg time='2014-02-11T10:43:10.455+05:30' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='DFCC-GISDB-01'
    host_addr='10.199.4.58'>
    <txt>TNS-12514: TNS:listener does not currently know of service requested in connect descriptor
    </txt>
    </msg>
    <msg time='2014-02-11T10:43:58.706+05:30' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='DFCC-GISDB-01'
    host_addr='10.199.4.58'>
    <txt>11-FEB-2014 10:43:58 * (CONNECT_DATA=(SERVICE_NAME=dfccdb.dfcc.co.in)(CID=(PROGRAM=C:\app\gisadmin\product\11.2.0\client_1\bin\sqlplus.exe)(HOST=DFCC-GISAPP-01)(USER=gisadmin))) * (ADDRESS=(PROTOCOL=tcp)(HOST=10.199.4.55)(PORT=25230)) * establish * dfccdb.dfcc.co.in * 12514
    </txt>
    </msg>
    <msg time='2014-02-11T10:43:58.722+05:30' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='DFCC-GISDB-01'
    host_addr='10.199.4.58'>
    <txt>TNS-12514: TNS:listener does not currently know of service requested in connect descriptor
    </txt>
    </msg>
    <msg time='2014-02-11T10:44:33.120+05:30' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='DFCC-GISDB-01'
    host_addr='10.199.4.58'>
    <txt>11-FEB-2014 10:44:33 * (CONNECT_DATA=(SERVICE_NAME=dfccdb.dfcc.co.in)(CID=(PROGRAM=C:\app\gisadmin\product\11.2.0\client_1\bin\sqlplus.exe)(HOST=DFCC-GISAPP-01)(USER=gisadmin))) * (ADDRESS=(PROTOCOL=tcp)(HOST=10.199.4.55)(PORT=25231)) * establish * dfccdb.dfcc.co.in * 12514
    </txt>
    </msg>
    <msg time='2014-02-11T10:44:33.136+05:30' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='DFCC-GISDB-01'
    host_addr='10.199.4.58'>
    <txt>TNS-12514: TNS:listener does not currently know of service requested in connect descriptor
    </txt>
    </msg>
    <msg time='2014-02-11T10:45:24.662+05:30' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='DFCC-GISDB-01'
    host_addr='10.199.4.58'>
    <txt>11-FEB-2014 10:45:24 * (CONNECT_DATA=(SERVICE_NAME=dfccdb.dfcc.co.in)(CID=(PROGRAM=C:\app\gisadmin\product\11.2.0\client_1\bin\sqlplus.exe)(HOST=DFCC-GISAPP-01)(USER=gisadmin))) * (ADDRESS=(PROTOCOL=tcp)(HOST=10.199.4.55)(PORT=25280)) * establish * dfccdb.dfcc.co.in * 12514
    </txt>
    </msg>
    <msg time='2014-02-11T10:45:24.662+05:30' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='DFCC-GISDB-01'
    host_addr='10.199.4.58'>
    <txt>TNS-12514: TNS:listener does not currently know of service requested in connect descriptor
    </txt>
    </msg>
    <msg time='2014-02-11T10:48:00.819+05:30' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='DFCC-GISDB-01'
    host_addr='10.199.4.58'>
    <txt>11-FEB-2014 10:48:00 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=oracluadmin))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=186647296)) * status * 0
    </txt>
    </msg>
    <msg time='2014-02-11T10:48:14.547+05:30' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='DFCC-GISDB-01'
    host_addr='10.199.4.58'>
    txt>11-FEB-2014 10:48:14 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=oracluadmin))(COMMAND=services)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=186647296)) * services * 0
    </txt>
    </msg>

  • How to establish a connection from java to SAP Netwevare server

    Hi All,
    As per my requirement i need to create a connection from Java to SAP Netwevaer Server inorder to access the docs from KM. PLZ provide some sample code
    (I know how to connect from java to SAP R/3 syatem using JCo connector).
    Can anybody help me.
    ADV Thanks

    Look
    https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/6615ea90-0201-0010-be81-e7a300fdf212
    /people/rohit.radhakrishnan/blog/2005/05/27/uploading-files-to-km-repository-using-webdynpro-apis

  • How to connect from VC++ 6.0 to Oracle 8i

    Can anybody tell me how to connect from
    VC++ 6.0 to Oracle 8i which is installed
    in server (without installing in client)

    Whats the problem you are facing, from what I see its pretty straight forward. Edit the system object, from 'Show Category' drop down select Internet Transaction Server, hit the modify button at the extreme right and your good to go.
    Thanks,
    GLM

  • HOW COULD CONNECT FROM SAP SYSTEM TO THIRD PARTY JAVA APPLICATION

    HI expects,
            HOW COULD CONNECT FROM SAP SYSTEM TO THIRD PARTY JAVA or . DET APPLICATION.please provide me some scenarios and documents.please help me.

    Hi,
    In the sender side i.e. in SAP system you can use IDoc/RFC/Proxy to push the data to XI.
    IDoc supports only Async communication and in Sync case performace is good using Proxy.
    In the receiver side you can use Java Proxy to connect to the Java application or you can even bulid a webservice over the Java/.Net application and use SOAP adapter to post data to it.
    Thanks
    SaNv...

  • HT4061 I bought my mom an iPad for Christmas this year.  We can't use it as it will not recognize her passwords.  How do I reset it without using passwords.  I want this thing wiped clean, just like it came from the store so that I might start over.

    I bought my mom an iPad for Christmas this year.  We can't use it as it will not recognize her passwords.  How do I reset it without using passwords.  I want this thing wiped clean, just like it came from the store so that I might start over.  This is very frustrating!

    How can I unlock my iPad if I forgot the passcode?
    http://www.everymac.com/systems/apple/ipad/ipad-troubleshooting-repair-faq/ipad- how-to-unlock-open-forgot-code-passcode-password-login.html
    iOS: Device disabled after entering wrong passcode
    http://support.apple.com/kb/ht1212
    How can I unlock my iPad if I forgot the passcode?
    http://tinyurl.com/7ndy8tb
    How to Reset a Forgotten Password for an iOS Device
    http://www.wikihow.com/Reset-a-Forgotten-Password-for-an-iOS-Device
    Using iPhone/iPad Recovery Mode
    http://ipod.about.com/od/iphonetroubleshooting/a/Iphone-Recovery-Mode.htm
    You may have to do this several times.
     Cheers, Tom

  • Hey guys i please i need a help on my ipad. i have received an ipad from anonymous person but she has already logged in to iclouds, since i dont know her password how do i sign out without using password on ios 8?

    Hey guys i please i need a help on my ipad. i have received an ipad from anonymous person but she has already logged in to iclouds, since i dont know her password how do i sign out without using her password on ios 8?

    You can't. Your mysterious benefactor must remove the device from her (I guess you know it's a her?) iCloud account by logging into icloud.com, going to Find my iPhone and removing from there.
    Matt

  • How to create logical standby database without using Oracle Grid Control

    Hi All,
    I want to create Logical standby database on 11gr2 on RHEL 5 without using oracle Grid Control.
    I already have a primary database as well as physical standby database.
    What i want to create a logical standby database as well on the same machine where physical standby database is running.
    So anyone of you help me out to do that
    Thanks in advance

    Hi,
    Creating a Logical Standby Database
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/create_ls.htm#SBYDB00300
    Regards,
    Tom

  • How to Unpivot, Crosstab, or Pivot using Oracle 9i with PL/SQL?

    How to Unpivot, Crosstab, or Pivot using Oracle 9i with PL/SQL?
    Here is a fictional sample layout of the data I have from My_Source_Query:
    Customer | VIN | Year | Make | Odometer | ... followed by 350 more columns/fields
    123 | 321XYZ | 2012 | Honda | 1900 |
    123 | 432ABC | 2012 | Toyota | 2300 |
    456 | 999PDQ | 2000 | Ford | 45586 |
    876 | 888QWE | 2010 | Mercedes | 38332 |
    ... followed by up to 25 more rows of data from this query.
    The exact number of records returned by My_Source_Query is unknown ahead of time, but should be less than 25 even under extreme situations.
    Here is how I would like the data to be:
    Column1 |Column2 |Column3 |Column4 |Column5 |
    Customer | 123 | 123 | 456 | 876 |
    VIN | 321XYZ | 432ABC | 999PDQ | 888QWE |
    Year | 2012 | 2012 | 2000 | 2010 |
    Make | Honda | Toyota | Ford | Mercedes|
    Odometer | 1900 | 2300 | 45586 | 38332 |
    ... followed by 350 more rows with the names of the columns/fields from the My_Source_Query.
    From reading and trying many, many, many of the posting on this topic I understand that the unknown number or rows in My_Source_Query can be a problem and have considered working with one row at a time until each row has been converted to a column.
    If possible I'd like to find a way of doing this conversion from rows to columns using a query instead of scripts if that is possible. I am a novice at this so any help is welcome.
    This is a repost. I originally posted this question to the wrong forum. Sorry about that.

    The permission level that I have in the Oracle environment is 'read only'. This is also be the permission level of the users of the query I am trying to build.
    As requested, here is the 'create' SQL to build a simple table that has the type of data I am working with.
    My real select query will have more than 350 columns and the rows returned will be 25 rows of less, but for now I am prototyping with just seven columns that have the different data types noted in my sample data.
    NOTE: This SQL has been written and tested in MS Access since I do not have permission to create and populate a table in the Oracle environment and ODBC connections are not allowed.
    CREATE TABLE tbl_MyDataSource
    (Customer char(50),
    VIN char(50),
    Year char(50),
    Make char(50),
    Odometer long,
    InvDate date,
    Amount currency)
    Here is the 'insert into' to populate the tbl_MyDataSource table with four sample records.
    INSERT INTO tbl_MyDataSource ( Customer, VIN, [Year], Make, Odometer, InvDate, Amount )
    SELECT "123", "321XYZ", "2012", "Honda", "1900", "2/15/2012", "987";
    INSERT INTO tbl_MyDataSource ( Customer, VIN, [Year], Make, Odometer, InvDate, Amount )
    VALUES ("123", "432ABC", "2012", "Toyota", "2300", "1/10/2012", "6546");
    INSERT INTO tbl_MyDataSource ( Customer, VIN, [Year], Make, Odometer, InvDate, Amount )
    VALUES ("456", "999PDQ", "2000", "Ford", "45586", "4/25/2002", "456");
    INSERT INTO tbl_MyDataSource ( Customer, VIN, [Year], Make, Odometer, InvDate, Amount )
    VALUES ("876", "888QWE", "2010", "Mercedes", "38332", "10/13/2010", "15973");
    Which should produce a table containing these columns with these values:
    tbl_MyDataSource:
    Customer     VIN     Year     Make     Odometer     InvDate          Amount
    123 | 321XYZ | 2012 | Honda      | 1900          | 2/15/2012     | 987.00
    123 | 432ABC | 2012 | Toyota | 2300 | 1/10/2012     | 6,546.00
    456 | 999PDQ | 2000 | Ford     | 45586          | 4/25/2002     | 456.00
    876 | 888QWE | 2010 | Mercedes | 38332          | 10/13/2010     | 15,973.00
    The desired result is to use Oracle 9i to convert the columns into rows using sql without using any scripts if possible.
    qsel_MyResults:
    Column1          Column2          Column3          Column4          Column5
    Customer | 123 | 123 | 456 | 876
    VIN | 321XYZ | 432ABC | 999PDQ | 888QWE
    Year | 2012 | 2012 | 2000 | 2010
    Make | Honda | Toyota | Ford | Mercedes
    Odometer | 1900 | 2300 | 45586 | 38332
    InvDate | 2/15/2012 | 1/10/2012 | 4/25/2002 | 10/13/2010
    Amount | 987.00 | 6,546.00 | 456.00 | 15,973.00
    The syntax in SQL is something I am not yet sure of.
    You said:
    >
    "Don't use the same name or alias for two different things. if you have a table called t, then don't use t as an alais for an in-line view. Pick a different name, like ordered_t, instead.">
    but I'm not clear on which part of the SQL you are suggesting I change. The code I posted is something I pieced together from some of the other postings and is not something I full understand the syntax of.
    Here is my latest (failed) attempt at this.
    select *
      from (select * from tbl_MyDataSource) t;
    with data as
    (select rownum rnum, t.* from (select * from t order by c1) ordered_t), -- changed 't' to 'ordered_t'
    rows_to_have as
    (select level rr from dual connect by level <= 7 -- number of columns in T
    select rnum,
           max(decode(rr, 1, c1)),
           max(decode(rr, 2, c2)),
           max(decode(rr, 3, c3)),
           max(decode(rr, 4, c3)),      
           max(decode(rr, 5, c3)),      
           max(decode(rr, 6, c3)),      
           max(decode(rr, 7, c3)),       
      from data, rows_to_have
    group by rnumIn the above code the "select * from tbl_MyDataSource" is a place holder for my select query which runs without error and has these exact number of fields and data types as order shown in the tbl_MyDataSource above.
    This code produces the error 'ORA-00936: missing expression'. The error appears to be starting with the 'with data as' line if I am reading my PL/Sql window correctly. Everything above that row runs without error.
    Thank you for your great patients and for sharing your considerable depth of knowledge. Any help is gratefully welcomed.

  • Establish MDM connection from Java class

    Hi all,
    I am trying to connect to MDM from a local Java class inside a DC. I know I need to add the JAR files in the DC properties. I need to know if it is possible to establish the connection, if the landscape set-up uses a MDM destination for connecting to MDM; and I need to refer the same in the Java class. 
    I am doing this so that I need not deploy the DC each time to check the logic. MDM version is 7.1 SP 09.
    Any help is appreciated. Thanks.
    Regards
    Subathra M

    Why do you have the Class.forName() in a separate try-catch block than the DriverManager.getConnection()?
    Try placing everything in the same try-catch block to see if that resolves your problem.
    You may also want to try using an OracleDataSource.
    OracleDataSource ods = new OracleDataSource();
    String url = "jdbc:oracle:thin:@//hostname:port/SID",
    ods.setURL(url);
    ods.setUser("apps");
    ods.setPassword("password");
    Connection conn = ods.getConnection();
    Refer to http://st-doc.us.oracle.com/11/111/java.111/b31224/getsta.htm#i1008334 for details on how to connect to the database using a Data Source.

  • Getting error while Creating a JDBC connection from Java Class

    Hi,
    I am getting the exception pasted below:
    Exception in thread "main" java.lang.AbstractMethodError
    at JvMakeVTable(java.lang.Class) (/usr/lib/libgcj.so.5.0.0)
    at JvPrepareClass(java.lang.Class) (/usr/lib/libgcj.so.5.0.0)
    at JvWaitForState(java.lang.Class, int) (/usr/lib/libgcj.so.5.0.0)
    at java.lang.VMClassLoader.linkClass0(java.lang.Class) (/usr/lib/libgcj.so.5.0.0)
    at java.lang.VMClassLoader.resolveClass(java.lang.Class) (/usr/lib/libgcj.so.5.0.0)
    at java.lang.Class.initializeClass() (/usr/lib/libgcj.so.5.0.0)
    at oracle.jdbc.driver.OracleStatement.executeQuery(java.lang.String) (Unknown Source)
    at oracle.jdbc.dbaccess.DBAccess.setNlsParamsClient(oracle.jdbc.driver.OracleConnection) (Unknown Source)
    at oracle.jdbc.ttc7.TTC7Protocol.initNls(oracle.jdbc.driver.OracleConnection) (Unknown Source)
    at oracle.jdbc.driver.OracleConnection.OracleConnection(oracle.jdbc.dbaccess.DBAccess, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.util.Properties) (Unknown Source)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.util.Properties) (Unknown Source)
    at oracle.jdbc.driver.OracleDriver.connect(java.lang.String, java.util.Properties) (Unknown Source)
    at java.sql.DriverManager.getConnection(java.lang.String, java.util.Properties) (/usr/lib/libgcj.so.5.0.0)
    at java.sql.DriverManager.getConnection(java.lang.String, java.lang.String, java.lang.String) (/usr/lib/libgcj.so.5.0.0)
    The code raising this error is :
    try
                   Class.forName("oracle.jdbc.driver.OracleDriver");
              catch (Exception Exp)
                   System.out.println("Error while getting the class : "+Exp);
    try
                   String url = "jdbc:oracle:thin:@hostname:port:SID";
                   String user = "apps";
                   String password = "password";
                   con = DriverManager.getConnection(url,user,password);
    catch (Exception ex)
                   System.err.println("SQLException: " + ex.getMessage());
    Any help in this is appreciated.
    Regards
    Jujaar

    Why do you have the Class.forName() in a separate try-catch block than the DriverManager.getConnection()?
    Try placing everything in the same try-catch block to see if that resolves your problem.
    You may also want to try using an OracleDataSource.
    OracleDataSource ods = new OracleDataSource();
    String url = "jdbc:oracle:thin:@//hostname:port/SID",
    ods.setURL(url);
    ods.setUser("apps");
    ods.setPassword("password");
    Connection conn = ods.getConnection();
    Refer to http://st-doc.us.oracle.com/11/111/java.111/b31224/getsta.htm#i1008334 for details on how to connect to the database using a Data Source.

  • How to connect to oracle10g Database using oracle11g Enterprise Manager.

    Hi,
    please suggest me how to connect to oracle10g Database using oracle11g Enterprise Manager.
    i did setting in tnsnames.ora file of oracle11g database but when i am trying to connect sys@testvsr and password
    using oracle11g Enterprise manager its not connecting but from command prompt its connecting.
    its not acccepting hostname its simply telling invalid username and password ,if i remove and try to connect its connecting.
    so please suggest its very urgent my manager is nagging.
    Regards,
    Srinu.

    you cant attach a database 10g instance with
    Enterprise manager of 11g as enterprise manager is
    meant for a single database only .. your problem cant be solved
    enterprise manager it can be solved by using GRID CONTROL
    For more details visit oracle documentation..
    Hope This helps..
    BI TC

Maybe you are looking for

  • Trouble with "add note to replace text" annotation

    When I use "Add note to replace text" in Reader XI, the note acts as if it is locked even though it is not. The Locked box is not checked, but yet the options are grayed out; and I cannot delete the note, though I can edit the text box. "Strikethroug

  • ITunes 11 Won't Let Me Add Songs To Library

    I made this a new question because the previous posts were pretty old. https://discussions.apple.com/thread/4562384?start=0&tstart=0 Thats the previous with the most replies that I could find. The options they suggested were : 1) file>add folder to l

  • Need help with disabling fields or hiding rows based on previous field

    Hi, I have a report in a region. The report has five columns: Animal type_ Health Issues* Angel Grant Requested?* Granted?* Grant Response Date* Dog Fleas Yes Yes 02/04/2009 Cat Fleas No The first time the screen is displayed only the Animal type_ He

  • Multiple monitor UI bugs in CC 2014/Mavericks

    I have two new bugs that I'm seeing since the 2014 update.  I'm running 10.9.4, and use two monitors, one for my images, and another for all of my palettes (less, of course, my beloved custom panel created in the now deprecated Configurator). When I

  • Can't launch application on iOS simulator with Flash Pro CC

    Hi! What am I doing wrong? I have installed: MacOS 10.9.2, Xcode Version 5.1 (5B130a), Adobe AIR 13.0.0.64 for iOS, iPhoneSimulator7.1.sdk, Adobe Flash Professional 13.1.0.226 I set the path to iPhone simulator sdk in application settings: "Applicati