Uploading data through jdbc thin client appl to database is taking time.

Hi
When application team try to upload data (excel file) through JDBC app to the database is taking too much time. When I checked through TOAD below query in background is taking too much time.
SELECT NULL AS table_cat, t.owner AS table_schem,
t.table_name AS table_name, t.column_name AS column_name,
DECODE (t.data_type,
'CHAR', 1,
'VARCHAR2', 12,
'NUMBER', 3,
'LONG', -1,
'DATE', 91,
'RAW', -3,
'LONG RAW', -4,
'BLOB', 2004,
'CLOB', 2005,
'BFILE', -13,
'FLOAT', 6,
'TIMESTAMP(6)', 93,
'TIMESTAMP(6) WITH TIME ZONE', -101,
'TIMESTAMP(6) WITH LOCAL TIME ZONE', -102,
'INTERVAL YEAR(2) TO MONTH', -103,
'INTERVAL DAY(2) TO SECOND(6)', -104,
'BINARY_FLOAT', 100,
'BINARY_DOUBLE', 101,
1111
) AS data_type,
t.data_type AS type_name,
DECODE (t.data_precision,
NULL, t.data_length,
t.data_precision
) AS column_size,
0 AS buffer_length, t.data_scale AS decimal_digits,
10 AS num_prec_radix, DECODE (t.nullable, 'N', 0, 1) AS nullable,
NULL AS remarks, t.data_default AS column_def, 0 AS sql_data_type,
0 AS sql_datetime_sub, t.data_length AS char_octet_length,
t.column_id AS ordinal_position,
DECODE (t.nullable, 'N', 'NO', 'YES') AS is_nullable
FROM all_tab_columns t
WHERE t.owner LIKE :1 ESCAPE '/'
AND t.table_name LIKE :2 ESCAPE '/'
AND t.column_name LIKE :3 ESCAPE '/'
ORDER BY table_schem, table_name, ordinal_position
All other activity on app and database is fine.
Kindly need a suggestion soon regarding this.
Thanks
SHIYAS

which is easier to read & understand?
SELECT NULL                                        AS table_cat,
       t.owner                                     AS table_schem,
       t.table_name                                AS table_name,
       t.column_name                               AS column_name,
       Decode (t.data_type, 'CHAR', 1,
                            'VARCHAR2', 12,
                            'NUMBER', 3,
                            'LONG', -1,
                            'DATE', 91,
                            'RAW', -3,
                            'LONG RAW', -4,
                            'BLOB', 2004,
                            'CLOB', 2005,
                            'BFILE', -13,
                            'FLOAT', 6,
                            'TIMESTAMP(6)', 93,
                            'TIMESTAMP(6) WITH TIME ZONE', -101,
                            'TIMESTAMP(6) WITH LOCAL TIME ZONE', -102,
                            'INTERVAL YEAR(2) TO MONTH', -103,
                            'INTERVAL DAY(2) TO SECOND(6)', -104,
                            'BINARY_FLOAT', 100,
                            'BINARY_DOUBLE', 101,
                            1111)                  AS data_type,
       t.data_type                                 AS type_name,
       Decode (t.data_precision, NULL, t.data_length,
                                 t.data_precision) AS column_size,
       0                                           AS buffer_length,
       t.data_scale                                AS decimal_digits,
       10                                          AS num_prec_radix,
       Decode (t.nullable, 'N', 0,
                           1)                      AS nullable,
       NULL                                        AS remarks,
       t.data_default                              AS column_def,
       0                                           AS sql_data_type,
       0                                           AS sql_datetime_sub,
       t.data_length                               AS char_octet_length,
       t.column_id                                 AS ordinal_position,
       Decode (t.nullable, 'N', 'NO',
                           'YES')                  AS is_nullable
FROM   all_tab_columns t
WHERE  t.owner LIKE :1 ESCAPE '/'
       AND t.table_name LIKE :2 ESCAPE '/'
       AND t.column_name LIKE :3 ESCAPE '/'
ORDER  BY table_schem,
          table_name,
          ordinal_position

Similar Messages

  • Connection through jdbc thin client taking more time than from sqlplus!!!

    Hello All
    Machines A and B
    Applicaion in A is connecting to B(9.2.0.6),db server.
    The schema is so small with few tables and data in each table less than 500 rows
    We are in the process of migrating the Application Schema in B to C[9.2.0.8].
    But the response time is more when the application fetches from C.
    Even while selecting the sysdate from dual.
    The application is using the jdbc thin client for fetching the data.
    When the same sql is executed by (from A to C)
    sqlplus -s user/pass @execute.sql, its gets done in a fraction of a second.
    But when the same is done through the application which uses jdbc thin client, it takes few seconds
    to complete.
    When tried with a small java program that uses classes12.jar (from A to C)
    conn = DriverManager.getConnection(URL,UID,PASS);
                   stop = System.currentTimeMillis();
                   System.out.println("Connection time in milli sec: " + (stop - start));
                   System.out.println();
    ..It was found that creating the connection was taking time.
    But the same is not happening when tired through the sqlplus
    Could someone throw some light into this?
    What could be the reason for jdbc to get slower while establishing connections?
    TIA,
    JJ

    are you using latest drivers - http://www.oracle.com/technology/tech/java/sqlj_jdbc/index.html
    you may want to check some options reducing jdbc connection cost from the otn samples - http://www.oracle.com/technology/sample_code/tech/java/sqlj_jdbc/index.html

  • RMS installation error: JDBC-thin client oracle/jdbc/driver/T2CConnection.getLibraryVersionNumber()

    Trying to Install RMS application 13.2.2 and I get past the pre-installation checks and when I get to the Data Source details and enter the data source details with the check box checked to validate the schema/Test Data Source I get the following error:
    Error Connecting to database URL jdbc:oracle:oci:@rmsdbtst as user rms13 java.lang.Exception:UnsatisfiedLinkError encountered when using the Oracle driver. Please check that the library path is set up properly or switch to the JDBC thin client oracle/jdbc/driver/T2CConnection.getLibraryVersioNumber()
    Checks performed:
    RMS Application code location and directory contents:
    [oracle@test-rms-app application]$ pwd
    /binary_files/STAGING_DIR/rms/application
    [oracle@test-rms-app application]$ ls -ltr
    total 144
    -rw-r--r-- 1 oracle oinstall   272 Dec 7  2010 version.properties
    -rw-r--r-- 1 oracle oinstall   405 Jan 16 2011 expected-object-counts.properties
    -rw-r--r-- 1 oracle oinstall   892 May 13 2011 ant.install.properties.sample
    -rw-r--r-- 1 oracle oinstall 64004 Jun  6  2011 build.xml
    drwxr-xr-x 9 oracle oinstall  4096 Jun 16 2011 rms13
    drwxr-xr-x 3 oracle oinstall  4096 Jun 16 2011 installer-resources
    drwxr-xr-x 3 oracle oinstall  4096 Jun 16 2011 antinstall
    drwxr-xr-x 2 oracle oinstall  4096 Jun 16 2011 ant-ext
    drwxr-xr-x 5 oracle oinstall  4096 Jun 16 2011 ant
    -rw-r--r-- 1 oracle oinstall 11324 Dec 18 09:18 antinstall-config.xml.ORIG
    -rwxr-xr-x 1 oracle oinstall  4249 Dec 18 10:01 install.sh
    drwxr-xr-x 4 oracle oinstall  4096 Dec 18 10:06 common
    -rw-r--r-- 1 oracle oinstall 16244 Dec 19 10:37 antinstall-config.xml
    -rw-r--r-- 1 oracle oinstall   689 Dec 19 10:37 ant.install.log
    [oracle@test-rms-app application]$
    Application installation:
    [oracle@test-rms-app application]$ ./install.sh
    THIS IS the driver directory
    Verified $ORACLE_SID.
    Verified SQL*Plus exists.
    Verified write permissions.
    Verified formsweb.cfg read permissions.
    Verified Registry.dat read permissions.
    Verified Java version 1.4.2.x or greater. Java version - 1.6.0
    Verified Tk2Motif.rgb settings.
    Verified frmcmp_batch.sh status.
    WARNING: Oracle Enterprise Linux not detected.  Some components may not install properly.
    Verified $DISPLAY - 172.16.129.82:0.0.
    This installer will ask for your "My Oracle Support" credentials.
    Preparing installer. This may take a few moments.
    Your internet connection type is: NONE
    Integrating My Oracle Support into the product installer workflow...
         [move] Moving 1 file to /binary_files/STAGING_DIR/rms/application
    Installer preparation complete.
    MW_HOME=/u01/app/oracle/Middleware/NewMiddleware1034
    ORACLE_HOME=/u01/app/oracle/Middleware/NewMiddleware1034/as_1
    ORACLE_INSTANCE=/u01/app/oracle/Middleware/NewMiddleware1034/asinst_1
    DOMAIN_HOME=/u01/app/oracle/Middleware/NewMiddleware1034/user_projects/domains/rmsClassDomain
    WLS_INSTANCE=WLS_FORMS
    ORACLE_SID=rmsdbtst
    JAVA_HOME=/u01/app/oracle/jrockit-jdk1.6.0_45-R28.2.7-4.1.0
    Launching installer...
    To make sure I have connectivity from the app server to the database (on a database server) here are the steps followed:
    [oracle@test-rms-app application]$ tnsping rmsdbtst
    TNS Ping Utility for Linux: Version 11.1.0.7.0 - Production on 19-DEC-2013 10:41:40
    Copyright (c) 1997, 2008, Oracle.  All rights reserved.
    Used parameter files:
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = test-rms-db.vonmaur.vmc)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SID = rmsdbtst)))
    OK (0 msec)
    [oracle@test-rms-app application]$
    [oracle@test-rms-app application]$ sqlplus rms13@rmsdbtst
    SQL*Plus: Release 11.1.0.7.0 - Production on Thu Dec 19 10:46:18 2013
    Copyright (c) 1982, 2008, Oracle.  All rights reserved.
    Enter password:
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> exit
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    [oracle@test-rms-app application]$
    [oracle@test-rms-app application]$ ping test-rms-db
    PING test-rms-db.vonmaur.vmc (192.168.1.140) 56(84) bytes of data.
    64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=1 ttl=64 time=0.599 ms
    64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=2 ttl=64 time=0.168 ms
    64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=3 ttl=64 time=0.132 ms
    64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=4 ttl=64 time=0.158 ms
    64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=5 ttl=64 time=0.135 ms
    --- test-rms-db.vonmaur.vmc ping statistics ---
    5 packets transmitted, 5 received, 0% packet loss, time 4001ms
    rtt min/avg/max/mdev = 0.132/0.238/0.599/0.181 ms
    [oracle@test-rms-app application]$
    [oracle@test-rms-app application]$ uname -a
    Linux test-rms-app.vonmaur.vmc 2.6.18-128.el5 #1 SMP Wed Jan 21 08:45:05 EST 2009 x86_64 x86_64 x86_64 GNU/Linux
    [oracle@test-rms-app application]$
    [oracle@test-rms-app application]$ cat /etc/*-release
    Enterprise Linux Enterprise Linux Server release 5.3 (Carthage)
    Red Hat Enterprise Linux Server release 5.3 (Tikanga)
    [oracle@test-rms-app application]$
    The database is created and all the batch file scripts have been successfully deployed.  Now working on the application server.  The  Weblogic server is installed and 11g forms and reports are installed successfully.
    Any help would be helpful.
    Thanks,
    Ram.

    Please check MOS Notes:
    FAQ: RWMS 13.2 Installation and Configuration (Doc ID 1307639.1)

  • JDBC THIN CLIENT in V$SESSION inactive

    Hello DBA's
    I have too many inactive session of JDBC thin client. Please suggest can we kill them?? or any other alternative
    SID SERIAL# USERNAME PROGRAM STATUS Inactive_Hours
    12 74 APPS JDBC Thin Client INACTIVE 1772.69806
    13 31 APPLSYSPUB JDBC Thin Client INACTIVE 1772.69806
    18 62 APPS JDBC Thin Client INACTIVE 1772.69806
    20 1 APPLSYSPUB JDBC Thin Client INACTIVE 952.465556
    22 9 APPS JDBC Thin Client INACTIVE 1772.69806
    26 55 APPS JDBC Thin Client INACTIVE 92.1361111
    30 2 APPLSYSPUB JDBC Thin Client INACTIVE 1772.61361
    31 7 APPS JDBC Thin Client INACTIVE 1772.69667
    53 29516 APPS JDBC Thin Client INACTIVE 521.344167
    54 35 APPLSYSPUB JDBC Thin Client INACTIVE 1772.69278
    69 7 APPLSYSPUB JDBC Thin Client INACTIVE 1772.69278
    Can we kill them or any particular check before killing them??

    I am not sure how you have computed the "Inactive Time".
    You need to know if the middle-tier is configured to re-connect when necessary OR whether the middle-tier process will fail at the next SQL / operation it attempts to execute. So middle-tier processes can handle a kill gracefully, others cannot.
    The usernames you list indicate that this is an Oracle EBusiness Suite install. You need to identify the services on the application server that correspond to these sessions and whether they can handle a kill gracefully.
    Why do you need to kill sessions ?
    Hemant K Chitale

  • ADF panel opening too many JDBC Thin Client database sessions.

    Hi All,
    I have several ADF Panels, which allows the user to run a few simple queries against an Oracle database done using ADF view objects and ADF view links and ADF application module.
    Each ADF panel as I said contains several View Link queries, and links under the form of Jbuttons to other ADF Panels running other ADF View Links.
    Running the ADF Panel as described here opens up to 21 database sessions displaying as “JDBC Thin Client” when I look them up from v$session.
    Why do I end up with that many database sessions.
    Why doesn’t it just use one or two database sessions to run all these View Links? It seems that it is opening one database session for each of these view links.
    How can I change this destructive behavior? I only one to see one or two database sessions for the entire ADF panel no matter how many ADF View Links it contains.
    Your suggestions are most appreciated.
    Thanks.
    Bobby A.

    Thanks for your response.
    I took a quick look at the docs you pointed me to. It seems that I can set some parameters in bc4j.xcfg of each application module Home to control number of database connections that the application module will create. In that case maybe you can recommend which parameters and what value they should be set to.
    Your response will be most helpful as my background is rather in database admin and not java.
    Thanks.
    Bobby A.

  • OS_USER not correct when using JDBC Thin Client on 10G

    Hi Folks,
    We are migrating an application from a 9i database to 10g and have a problem that someone might have come across before.
    The application is a Java applet based application that connects to the database using JDBC Thin client. on 9i the OS_USER comes up as the user running the applet but in 10G it is coming up as the user account that installed 10G on the DB server.
    We tried using a 9i client to identify if it was a client or DB issue but its the same problem with the 9i client connecting to the 10G DB.
    If anyone can help it would be much appreciated.
    Thanks,
    John.

    Could you please provide further details on what do you mean with OS_USER?
    The application is a Java applet based application
    that connects to the database using JDBC Thin client.
    on 9i the OS_USER comes up as the user running the
    applet but in 10G it is coming up as the user account
    that installed 10G on the DB server.
    Are you referring to the user provided to perform authentication against database, i.e. a database user?
    How do you know this user is being changed?
    ~ Madrid

  • OS_USER not correct when connecting using JDBC Thin Client on 10G

    Hi Folks,
    We are migrating an application from a 9i database to 10g and have a problem that someone might have come across before.
    The application is a Java applet based application that connects to the database using JDBC Thin client. on 9i the OS_USER comes up as the user running the applet but in 10G it is coming up as the user account that installed 10G on the DB server.
    We tried using a 9i client to identify if it was a client or DB issue but its the same problem with the 9i client connecting to the 10G DB.
    If anyone can help it would be much appreciated.
    Thanks,
    John.

    What is the return of this command?
    SELECT sys_context ('USERENV', 'OS_USER') FROM dual;
    Is it the DB user or the OS user?

  • Upload data through FI transation F-02

    Hey All,
    The requirement here is to upload data through FI transation F-02.
    Using a BDC for the data upload is not suggested for this transaction as the Screen Sequence changes as per the values of the Posting Key ( and in some rare cases according to value of Account ).
    Authorisations for LSMW havent been provided at this site.
    I looked up SDN which showed many threads in which it was agreed that coding a BDC to handle such a dynamic sequence of screens is very complex. Some people suggested BAPIs as an alternative. Namely - BAPI_ACCT_DOCUMENT_POST and  BAPI_TRANSACTION_COMMIT .
    But, when I searched for the BAPI BAPI_ACCT_DOCUMENT_POST in se37, it did not exist. The version here is 4.6c
    Any suggestions ?
    -ashrut .
    <u><b>PS - I'm a techie !!</b></u> , keep this in mind while you answer
    Extra Info -
    The posting keys I have to use are - GL Account Debit, GL Account Credit , Vendor Debit, Vendor Credit .
    And there is the special case of a GL Account mapping to a Sales Order No for the GL Account Posting Keys.
    SDN Links - BDC for FB01
                      http://sap.ittoolbox.com/groups/technical-functional/sap-acct/prog-rfbibl00-230755?cv=expanded #

    Programmed a BDC that handled screen changes

  • Bw 7.0 uploading data through r3

    hi all ,
                  can anybody plz send me any document or any snap short for uploading data through r3 at this time i make the connection between r3 and bw system
    and create source system plz tell me the procedure for this
    thanks.

    dear Ankit,
    please refer to the following link of best practices:
    http://help.sap.com/bp_biv270/html/BW/I08_EN_DE.htm
    on this page, click on the BI connectivity link in the building blocks. This doc will give u a detailed step by step approach for your problem.
    hope it helps...

  • 12.1.3 EBS with JDBC Thin Client

    Hello,
    I have question about JDBC Thin Client, typically dbc file and context file define connection to RAC Database using thin client, as far as I know jdbc thin client does not support TAF feature when there is database node down, the connection not direct to surviving node until relogin.
    APPS_JDBC_URL=jdbc\:oracle\:thin\:@(DESCRIPTION\=(ADDRESS_LIST\=(LOAD_BALANCE\=YES)(FAILOVER\=YES)(ADDRESS\=(PROTOCOL\=tcp)(HOST\=XXXX-SCAN.xxx.com)(PORT\=1521)))(CONNECT_DATA\=(SERVICE_NAME\=DBSID)))
    <jdbc_url oa_var="s_apps_jdbc_connect_descriptor">jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=YES)(FAILOVER=YES)(ADDRESS=(PROTOCOL=tcp)(HOST=XXXX-SCAN.xxx.com)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=DBSID)))
    And parameter APPS_JDBC_DRIVER_TYPE=THIN in dbc  file, is it must to be THIN?  What is the function of FND_JDBC_USABLE_CHECK=false/true?
    Also to  make connection work to surviving database node, we need to restart process OACORE that connect to down node, is that expected behavior and workaround?  Is there a way or is it supported to use THICK client in R12 EBS?
    Thank you.

    Please see the following docs.
    Is Transparent Application Failover (TAF) Supported on the JDBC Thin Driver? (Doc ID 297490.1)
    Configuring and Managing E-Business Application Tier for RAC (Doc ID 1311528.1)
    Thanks,
    Hussein

  • What are the steps we have to fallow to upload data through IDOC in LSMW?

    What are the steps we have to fallow to upload data through IDOC in LSMW?

    HI
    see this link click on each link it will show you step and screen shot of that step
    http://www.****************/Tutorials/LSMW/IDocMethod/
    <b>Rewar di fusefull</b>

  • Not able to find 10.1.0.4 jdbc thin client driver

    I am trying to download 10.1.0.4 jdbc thin client driver, but I am not able to. I am using this link http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/htdocs/jdbc101040.html. But It does not show 10.1.0.4. Can anybody tell me how I can download this driver ? Any help is much appreciated
    Thanks

    I would very much doubt that Oracle ever returned an empty String. Oracle treats (unless something has dramatically changed in 10.x) empty strings as null. This is not related to the JDBC driver. What do you get when you select the values using SQL*Plus?

  • Connect to 10g RAC over JDBC thin client

    I'm trying to connect to multiple Oracle 10g databases (failover) over the JDBC thin client, and when I run the following, I get:
    java.sql.SQLException: Io exception: NL Exception was generated
    connection = DriverManager.getConnection("jdbc:oracle:thin:@DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP) (HOST = dbdev) (PORT = 1521))) (CONNECT_DATA = (INSTANCE_NAME = orcldev)))", "scott", "tiger");
    I eventually want to put multiple ADDRESSes in that string, but right now I'm trying to get it to work with just one! I've tried multiple variations of this, like changing INSTANCE_NAME to SID or SERVICE_NAME, and using the internal IP address for the HOST dbdev (see below). Here's the tnsnames.ora file used by SQL*Plus on the same client machine:
    ORCLDEV.world =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.132)(PORT = 1521))
    (CONNECT_DATA =
    (SID = orcldev)
    )

    I found this in Doc ID #213412.1 on metalink.oracle.com:
    Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@(DESCRIPTIO N = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP) (HOST = osol1.us.oracle.com) ( PORT = 15000)) (ADDRESS = (PROTOCOL = TCP) (HOST = rmsol1.us.oracle.com) (POR T = 12002))) (CONNECT_DATA = (SERVICE_NAME = PROD))) ", "scott", " tiger"); That's how you would specify the locations of two different database servers for failover. BEA has an article on doing it with Weblogic and Oracle:
    http://e-docs.bea.com/wls/docs81/jdbc/oracle_rac.html

  • JDBC thin client downloads locally, not through internet

    Using same code, environment, server, etc,:
    the thin client will download successfully if the server is accessed as part of the internal network. Access with the server outside the local network (via internet) does not seem to download all the parts of the thin client.
    I have tried with the thin client jars (both), and with classess rather than jar (so I can see where it stops).
    The environment is O8iEnterprise, NT server4 (SP6), IIS, JRUN 2.3x, IE5, java 1.2x/applets, 1.3 plugin
    What am I missing for the internet access setup? Thx.

    are you using latest drivers - http://www.oracle.com/technology/tech/java/sqlj_jdbc/index.html
    you may want to check some options reducing jdbc connection cost from the otn samples - http://www.oracle.com/technology/sample_code/tech/java/sqlj_jdbc/index.html

  • Establish SSL connection to Oracle Instance w/JDBC Thin Client

    Hello all,
    I am writing a monitoring utility that will allow me to establish connections to both Oracle instances and LDAP repositories and query them to determine that they are up and running. My utility consists of a number of objects that handle connections to the LDAP and Oracle instances. I need to be able to do SSL and non-SSL connections to said instances.
    My issue is this: I am able to do SSL and non-SSL to LDAP, and non-SSL to an Oracle instance. I am having problems, though, establishing an SSL connection to an Oracle instance (I am using the thin client). Whenever I try, a SQLException is thrown that states: "Encountered a problem with the secret store. Check the wallet location for the presense of an <b>open</b> wallet (cwallet.sso) and ensure that the wallet contains the correct credentials..."
    Ok, a little background for those who may need it. Oracle uses a wallet to hold certs that allow SSL connections. I have a wallet on my box, and, from the command line, I am able to sqlplus into and tnsping the appropriate Oracle instances, so I know it is setup properly. The inability to connect only occurs in my code. My code looks like this:
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    Security.addProvider(new oracle.security.pki.OraclePKIProvider());
    /*Setup connection properties*/
    String connectionString = "testbox01:1000:ssl_instances_name";
    String userName = "userName";
    String pwd = "password";
    Properties props = new Properties();
    props.put("oracle.net.ssl_version", 3.0");
    props.put("oracle.net.wallet_location", "SOURCE=(METHOD=file)(METHOD_DATA=(DIRECTORY=c:\\wallet)))");
    props.put("oracle.net.ssl_cipher_suites", "ssl cipher suites");
    props.put("oracle.net.ssl_server_dn_match", "FALSE");
    props.put("oracle.net.ssl_client_authentication", "true");
    /*Do connection and return connection object
    OracleDataSource ods = new OracleDataSource();
    ods.setUser(userName);
    ods.setPassword(pwd);
    ods.setUrl("jdbc:oracle:thin:@" + connectionString);
    ods.setConnectionProperties(props);
    Connection conn = ods.getConnection(); <---This is where code errors out with SQLException described above.
    return conn;
    And that's pretty much it. Anyone have any ideas?

    Ok, that looked horrible. Let's try this again:<br>
    <br>
    I am writing a monitoring utility that will allow me to establish connections to both Oracle instances and LDAP repositories and query them to determine that they are up and running. My utility consists of a number of objects that handle connections to the LDAP and Oracle instances. I need to be able to do SSL and non-SSL connections to said instances.<br>
    <br>
    My issue is this: I am able to do SSL and non-SSL to LDAP, and non-SSL to an Oracle instance. I am having problems, though, establishing an SSL connection to an Oracle instance. Whenever I try, a SQLException is thrown that states: "Encountered a problem with the secret store. Check the wallet location for the presense of an <b>open</b> wallet (cwallet.sso) and ensure that the wallet contains the correct credentials..."<br>
    <br>
    Ok, a little background for those who may need it. Oracle uses a wallet to hold certs that allow SSL connections. I have a wallet on my box, and, from the command line, I am able to sqlplus into and tnsping the appropriate Oracle instances, so I know it is setup properly. The inability to connect only occurs in my code. My code looks like this:<br>
    <br>
    *****<br>
    <br>
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());<br>
    Security.addProvider(new oracle.security.pki.OraclePKIProvider());<br>
    <br>
    /*Setup connection properties*/<br>
    <br>
    String connectionString = "testbox01:1000:ssl_instances_name";<br>
    String userName = "userName";<br>
    String pwd = "password";<br>
    <br>
    Properties props = new Properties();<br>
    props.put("oracle.net.ssl_version", 3.0");<br>
    props.put("oracle.net.wallet_location", "SOURCE=(METHOD=file)(METHOD_DATA=(DIRECTORY=c:\\wallet)))");<br>
    props.put("oracle.net.ssl_cipher_suites", "ssl cipher suites");<br>
    props.put("oracle.net.ssl_server_dn_match", "FALSE");<br>
    props.put("oracle.net.ssl_client_authentication", "true");<br>
    <br>
    /*Do connection and return connection object*/<br>
    OracleDataSource ods = new OracleDataSource();<br>
    ods.setUser(userName);<br>
    ods.setPassword(pwd);<br>
    ods.setUrl("jdbc:oracle:thin:@" + connectionString);<br>
    ods.setConnectionProperties(props);<br>
    <br>
    Connection conn = ods.getConnection(); <---This is where code errors out with SQLException described above.<br>
    <br>
    return conn;<br>
    <br>
    *****<br>
    <br>
    And that's pretty much it. Anyone have any ideas?<br>

Maybe you are looking for

  • WRT300N no longer detecting network

    Hello, After a loss of power the WRT300N is no longer detecting the network I have setup.  Other wireless networks are shown.  I hit the reset button already, and nothing changed.  I tried to access http://192.168.1.1/ as suggested elsewhere but I am

  • Need help in Data Dictionary record upload

    Hi All, In my table I have 2 fields. Say FIELDA and FIELDB. FIELDA is INT type and FIELDB is of CHAR type. I have created a table maintenance generator and DB Utility is also done. Now I want to upload the following record into the table. FIELDA  sho

  • Export mp3 to usb

    I know A way to do what I am about to ask.  It's just painful. Ultimate Objective - export a playlist to a USB stick to play in my truck radio.  I would like the final product to be in the same format as an MP3 CD (i.e., with folders, etc).  Current

  • A website switched me from 64 bit to 32 and I'm worried Firefox 4 won't run as fast now... can I switch it back or is that not an issue?

    I was on Sirius but before I could play music a popup told me I needed a 32 bit browser to play the plugin (at least I think that's what it said, I clicked too fast). I clicked it and Firefox restarted as 32 bit rather than 64 bit but now I'm worried

  • AS3 dynamic font embedding bug

    Hi all, Is there a known bug for the following case? Case: A project I'm working on doesn't seem to handle font embedding correctly when the font is added dynamically using actionscript. When I test my movie it does not display the embedded font at a