JDBC 2.0 or later API

Can any suggest me where can I find Sun's JDBC 2.0 or later API set ?

You can check [url http://java.sun.com/j2se/1.4.1/docs/api/index.html]this link.
For samples on JDBC click [url http://otn.oracle.com/sample_code/tech/java/sqlj_jdbc/content.html]here
Regards,
Anupama
[url http://otn.oracle.com/sample_code/content.html]OTN Sample Code

Similar Messages

  • Jdbc oci interface and xdb API for oracle 9.2.0.7

    I have a Java application that uses the jdbc oci interface to connect to an Oracle database and insert some XML into an XMLType column using the XDB APIs provided in xdb.jar.
    OS : IBM AIX version 5.1
    JVM : IBM 32-bit SDK pour AIX, Java 2 Technology Edition, version 1.4.2
    libraries used :
    ojdbc14.jar
    nls_charset12.jar
    xdb.jar
    xmlparserv2.jar
    libocijdbc9.so
    with Oracle 9.2.0.1 the application worked correctly. However we have just upgraded from Oracle 9.2.0.1 to Oracle 9.2.0.7 and now the JVM crashes when the XMLType.createXML(java.sql.Connection, java.lang.String) API is called. The error message is :
    JVMDG217: Dump Handler is Processing Signal 11 - Please Wait.
    JVMDG303: JVM Requesting Java core file
    JVMDG304: Java core file written to /<snip>/javacore2375690.1152115549.txt
    JVMDG215: Dump Handler has Processed Exception Signal 11.
    start.shl: 2375690 Segmentation fault(coredump)
    In the javacore file we find the lines :
    1XHSIGRECV SIGSEGV received at 0xdd7b7d6c in /<snip>/libocijdbc9.so. Processing terminated.
    ... <snip> ...
    "Thread-2" (TID:0x3030B4D8, sys_thread_t:0x75A8B128, state:R, native ID:0xA0C) prio=5
    4XESTACKTRACE at oracle.xdb.XMLType.createXMLTypeFromStringNative(Native Method)
    4XESTACKTRACE at oracle.xdb.XMLType.<init>(XMLType.java:518)
    4XESTACKTRACE at oracle.xdb.XMLType.createXML(XMLType.java:593)
    Does anyone have any ideas? Changing the version from 9.2.0.7 is not an option.
    Thanks,
    Dave Gosling.

    The 9.2.0.5 patchset, and all patchsets, are available for download from Metalink.
    There should be a rather large variety of JDBC drivers that will connect to an 9.2.0.5 database if that's what you're asking about.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Can not deploy a report using JDBC connection on CR2008 Server

    Hi Group,
    I have a report created with JDBC connection. When I tried to add it to CR2008 server, it gives an error - "An unexpected error has occurred ". Basically I want to add a report to a public folder via CMC. I am using adminstrator account.
    Then I thought I need to add JDBC driver into CR2008 server. so I put oracle jdbc jar into CR2008 server classpath and add JDBC connection info into CRConfig.xml. but I still got the same error.
    I also tried:
    - Change the report to use native Oracle driver rather than JDBC. The deployment succeeded (but this is not what I want)
    - Add a data source connection via Business View Manager, but no luck.
    I know how to use/change jdbc connection with programtic way, but I just want to know if I want to use built-in components in CR2008 server without any coding the reports can be deployed and managed.
    Thanks in advance.
    Dennis

    Hello Will,
    Crystal Reports supports connections to JDBC/JNDI out of the box, and have done so for a while, whether stand-alone or published to Enterprise.
    To specify where the server would search for the JDBC driver jar files, you'd change the classpath tag found in the CRConfig.xml file found on the machine where the Crystal Reports Page or Job Server is running. 
    For early Crystal Enterprise 10 and before, it used Java Native Interface (JNI) to start the Java process to retrieve the data from the JDBC connection.
    For later Crystal Enterprise 10 and later, it starts off a "Java Server" process, and communicates to the Crystal Reports process via CORBA TCP/IP connection.
    Commonissues that may arise:  (1) CRConfig.xml not configured properly, (2) unable to start or communicate to the "Java Server" because of permissions or firewall.
    Note that this is a separate connectivity map from using ADO or ADO.NET.
    Sincerely,
    Ted Ueda

  • SQLJ vs. JDBC

    This was posted some time ago:
    Some advantages you gain in using SQLJ over JDBC for static SQL
    statements are:
    SQLJ uses database connections to type-check static SQL code.
    JDBC, being a completely dynamic API, does not do any type
    checking until run-time.
    SQLJ programs allow direct embedding of Java bind expressions
    within SQL statements. JDBC requires separate get and/or set
    call statements for each bind variable and specifies the binding
    by position number.
    SQLJ provides strong typing of query outputs and return
    parameters and allows type-checking on calls. JDBC passes values
    to and from SQL without compile-time type checking.
    [i]
    My question is: If the SQLJ is converted to JDBC code once compiled, then how can it offer anything different than JDBC? How can it offer type-checking or binding or any of that?

    I finally solved my own problem. The SQLJ compiler creates a .ser file that is used on the DB side to customize and build the packages needed so that the SQL is static. Using straight JDBC creates dynamic calls.
    At this point I'm worried because I've not had one question answered regarding SQLJ, and it appears that nobody is using it. So, I'm looking in other directions if I can.

  • Proxy(asynch) to JDBC(sync) to Proxy (asynch)

    Hi ,
    I have a scenario where i'l be triggerin proxy(12 tables data) and  will be either inserting or update to JDBC 12 tables and later shud  recieve an acknowledgement of all the 12 tables and pass it to the proxy (updatng the 12 ztables field as sucess  ) . can any 1 provide me a solution please .. or how to go about the scenario.kindly help

    Also on sender proxy, i would write a single Proxy program to gather all the data (from 12 tables).. Data of each table in a single record Qualified by its Table name or other table metadata details...
    On the receiver end, I would write a Stored Proc to update all the tables & give the status of each of those as single output...
    Receive them back & update the ABAP tables using proxy (metadata info of the tables is still obtained from the stored proc... which tables are success & which are failure)
    -Siva Maranani
    Edited by: Siva Maranani on Jul 23, 2009 11:56 AM

  • Any Java API for dumping database?

    As far as I know, the normal way to dump a database is to execute some command on the console.
    Is there any Java API for dumping a database, so that the operation can be wrapped in the code?
    The database system that I'm using is MySQL. Please help. Thanks!

    By "dumping a database" I mean exporting data in the database into a text file, as a backup, that can be used when restoring the database. For example, in MySQL, I can run "mysqldump" on the command line to dump the database into a file.
    So far I still have no idea how to do this using JDBC or any other Java API. Please help!

  • Dequeue timeout NOT timing out

    Hi, we have an application that uses the pure JDBC drivers and the AQ api to dequeue messages off an 8.1.7.2 queue with object payloads. We user navigation next message and the queue properties are:
    owner : QUEUEMGR
    name : FXD_QUEUE
    queue table : FXD_MSG_QUEUE
    [AQQueueProperty]
    type : NORMAL
    max_retries : 0
    retry_interval : 0.0
    retention_time : 0.0
    dep_tracking : false
    comment : null
    auto_commit : true
    Payload type : OBJECT
    Users enqueue messages through a stored procedure, which after calling enqueue it goes into a loop checking the queue table for the existence of that message every few ms. If the message does not leave the queue within 5 seconds, an error is thrown to the user. We are experiencing a problem with the queue in that sometimes the dequeue call would block for a very long time (1, 2 even 4 minutes) as if there were no messages, while on the same time users where getting errors thrown as they were enqueueing messages that were not received within 5 seconds. We tried to work around that by setting the dequeue timeout to 2 seconds, hoping that unblocking and calling dequeue again would work, and we added very verbose logging to know exactly where the time is spent.
    While normally our log file looks like:
    [Wed Sep 11 15:07:17 GMT+03:00 2002],Informative,OracleAQRetriever: Dequeue timeout due to inactivity.
    [Wed Sep 11 15:07:17 GMT+03:00 2002],Informative,Calling blocking dequeue on AQ Api
    [Wed Sep 11 15:07:19 GMT+03:00 2002],Informative,OracleAQRetriever: Dequeue timeout due to inactivity.
    [Wed Sep 11 15:07:19 GMT+03:00 2002],Informative,Calling blocking dequeue on AQ Api
    [Wed Sep 11 15:07:21 GMT+03:00 2002],Informative,OracleAQRetriever: Dequeue timeout due to inactivity.
    [Wed Sep 11 15:07:21 GMT+03:00 2002],Informative,Calling blocking dequeue on AQ Api
    [Wed Sep 11 15:07:23 GMT+03:00 2002],Informative,OracleAQRetriever: Dequeue timeout due to inactivity.
    [Wed Sep 11 15:07:23 GMT+03:00 2002],Informative,Calling blocking dequeue on AQ Api
    [Wed Sep 11 15:07:25 GMT+03:00 2002],Informative,Blocking dequeue returned message
    [Wed Sep 11 15:07:25 GMT+03:00 2002],Informative,OracleAQRetriever: processing msg from dequeue call
    At random intervals we get :
    [Wed Sep 11 15:07:43 GMT+03:00 2002],Informative,OracleAQRetriever: Dequeue timeout due to inactivity.
    [Wed Sep 11 15:07:43 GMT+03:00 2002],Informative,Calling blocking dequeue on AQ Api
    [Wed Sep 11 15:08:56 GMT+03:00 2002],Informative,Blocking dequeue returned message
    [Wed Sep 11 15:08:56 GMT+03:00 2002],Informative,OracleAQRetriever: processing msg from dequeue call
    which means that now we called dequeue at 15:07:43, there was a meesage so there was no reason to timeout. The method returned over a minute
    later with a message.
    Is there anything that could be causing it not to timeout every 2 seconds?
    Is there anything that could be causing it not to dequeue the message immediately but with a huge delay?
    Kind regards,
    alex

    Hi,
    While de-queing the dequeue session does not refresh after every dequeue.The message list is read only once i.e during the first dequeue call of the session.If the first dequeue call sees only 3 messages it would dequeue only 3 messages even if more messages are added(through enqueue) after the first dequeue.
    To overcome this you can set dbms_aq.dequeue_options_t 's navigation property to DBMS_AQ.FIRST_MESSAGE(the default is dbms_aq.next_message) before every call to dequeue is made.
    loop
    set the property to first message
    dequeue
    end loop
    Thanks
    Gautham C
    [email protected]

  • Oracle Updating Batches

    Hi All,
    I wanted to have Batch execute in my java method.
    There are few requirements of that
    1. The data has to be inserted in 2 tables
    2. The data has to be deleted from 2 tables
    3. I have to use Statement for delete as the query uses in clause.
    I have gone through http://web.umr.edu/~ora9i/java.901/a90211/oraperf.htm for Oracle Updating batches.As per the details given in above link, I have few doubts
    1.Can I use 2 or more different Prepared Statements in same Batch?
    For Example:
    //Creating a prepared statement for first table
    ps = conn.prepareStatement(INSERT_INTO_TABLE1);
    ((OraclePreparedStatement)ps).setExecuteBatch (30);
    ps.setInt(1, 23);
    ps.setString(2, "Sales");
    ps.setString(3, "USA");
    ps.executeUpdate(); //JDBC queues this for later execution
    ps.setInt(1, 24);
    ps.setString(2, "Blue Sky");
    ps.setString(3, "Montana");
    ps.executeUpdate(); //JDBC queues this for later execution
    ps.setInt(1, 25);
    ps.setString(2, "Applications");
    ps.setString(3, "India");
    ps.executeUpdate(); //The queue size equals the batch value of 3
    //JDBC sends the requests to the database
    ps.setInt(1, 26);
    ps.setString(2, "HR");
    ps.setString(3, "Mongolia");
    ps.executeUpdate(); //JDBC queues this for later execution
    //Creating a prepared statement for second table
    ps = conn.prepareStatement(INSERT_INTO_TABLE2);
    ((OraclePreparedStatement)ps).setExecuteBatch (30);
    ps.setInt(1, 23);
    ps.setString(2, "Sales");
    ps.setString(3, "USA");
    ps.setInt(4,1);
    ps.executeUpdate(); //JDBC queues this for later execution
    ps.setInt(1, 24);
    ps.setString(2, "Blue Sky");
    ps.setString(3, "Montana");
    ps.setInt(4,1);
    ps.executeUpdate(); //JDBC queues this for later execution
    ps.setInt(1, 25);
    ps.setString(2, "Applications");
    ps.setString(3, "India");
    ps.setInt(4,1);
    ps.executeUpdate(); //The queue size equals the batch value of 3
    //JDBC sends the requests to the database
    ps.setInt(1, 26);
    ps.setString(2, "HR");
    ps.setString(3, "Mongolia");
    ps.executeUpdate(); //JDBC queues this for later execution
    //Atlast calling send batch
    ((OraclePreparedStatement)ps).sendBatch();
    2.Can I use the Oracle Updating Batches for Normal Statements? Can any one elaborate following points
    •     Do not mix standard update batching syntax with Oracle update batching syntax in the same application. The JDBC driver will throw an exception when you mix these syntaxes
    As per above statement, we can’t have both type of updating in a method or in the whole application. Can any one elaborate this point, how it’s possible as every time we have to open a new connection object?
    If we cant make use of both type of batching, then how to implement the Oracle Updating Batches for simple Statements.
    •     The Oracle implementation of standard update batching does not implement true batching for generic statements and callable statements. Although Oracle JDBC supports the use of standard batching syntax for Statement and CallableStatement objects, you will see performance improvement for only PreparedStatement objects.
    3. If first case is possible & if we can use the Oracle Updating Batches for simple Statements, then can we have all the statements in one Batch?
    the query if run from PL/SQL will be like this and in same sequence
    delete from table1 where country in ('USA','GERMANY')// multiple statement of this type
    delete from table2 where country in ('USA','INDIA'))// multiple statement of this type
    insert into table1 values(1,'SALES','USA'))// multiple statement of this type
    insert into table2 values(1,'SALES,'Australia','1')// multiple statement of this type

    Dear Robert Richardson,
    Unfortunately you can only access the Batch/Serial object by an document object.
    If you want to update a Batch fields, then you need to get the document object first, then get its batch object as
    Documents > Document_Lines > BatchNumbers.
    Another thought is to update the field value by UI API when open the OIBT form if possible.
    Best Regards
    Jane Jing
    SAP Business One Forums team

  • How to represent a tree (like file system dirs) in object?

    I am parsing a dynamic set of nodes at runtime. The nodes below a "known" node are all dynamic, in that they can be any number of nodes at any number of depth. I am basically doing what DOM does, in that I want to take these nodes below the "known" node, and create a simple object in memory. I am using xml pull parser though, so I am not using any sort of DOM/SAX/SAX2 parsing and do not want to use anything outside of my own object or one that is in the JDK 1.3 or later API. I see TreeSet and TreeMap, but I don't see much in the way of parent/child(ren) methods. I would think that each node can have a parent node, as well as any number of children.
    Is there an object like this (simple, small bit of code preferrably) that I can download/use, or does someone have a snippet in mind they can post that would be a valid object to represent an xml/dir tree the way I need?
    Thanks.

    I've seen this kind of think implemented very easily. You basically need a TreeNode object, which has a collection of children (which are also TreeNodes).
    You can use a Vector or Hashtable or some such for the children. I would also suggest maintaining a "parent" reference in each child.
    At that point, you simply implement the getters and setters that you want.
    Chances are you will also want to maintain some info about each node. You can be very specific (say providing a name and one or two other attributes), or you could introduce another collection: properties.
    I suggest you implement some kind of toString(), which lets you print out your tree.
    Finally, you may decide that you want to support access by path or relative path. It's useful, but paths are a pain in the butt - trickier code to get right.
    My estimate: A few hours for the basics, and then tweak it as you go.

  • How to access XML packages in Applet?

    Hi all,
    I am new to XML.
    I just found, in any Java Applet program, if I include a declartion from Java XML packages, like this.
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    Java will comiple, but when I try to run that java applet, I got an error message like this:
    java.lang.NoClassDefFoundError: javax/xml/parsers/DocumentBuilderFactory
    at LogoBounce.init(LogoBounce.java:23)
    at sun.applet.AppletPanel.run(AppletPanel.java:344)
    at java.lang.Thread.run(Thread.java:484)
    I searched all the related posts in this forum and found two solutions.
    1 One suggest to use
    DocumentBuilderFactory factory = new com.sun.xml.parser.DocumentBuilderFactoryImpl();
    but I suspect DocumentBuilderFactoryImpl() method is in old version Java XML. Because I can't find it in the lates API document.
    2 Change the .Policy file
    grant {
    permission java.util.PropertyPermission "javax.xml.parsers.DocumentBuilderFactory", "read";
    I tried this, but it dosen't work.
    I am very sure my .jar file is installed correctly and my Classpath is correct. Because I can run sample examples provided by Sun. (they are all Appliction programs).
    Can anyone give me a suggestion on this issue?
    Thanks.

    Say, doesn't this sound like the question in http://forum.java.sun.com/thread.jsp?thread=194313&forum=4&message=636602

  • Exception in thread "main" java.sql.SQLException:

    when i run the JdbcTest.java program happen this:
    C:\temp>javac JdbcTest.java
    C:\temp>java -cp .;C:\oracle\ora81\jdbc\lib\classes111.zip JdbcTest
    Exception in thread "main" java.sql.SQLException: Eccezione IO: Connection refus
    ed(DESCRIPTION=(TMP=)(VSNNUM=135290880)(ERR=12500)(ERROR_STACK=(ERROR=(CODE=1250
    0)(EMFI=4))(ERROR=(CODE=12560)(EMFI=4))(ERROR=(CODE=530)(EMFI=4))(ERROR=(BUF='32
    -bit Windows Error: 2: No such file or directory'))))
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
    va)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at JdbcTest.main(JdbcTest.java:12)
    the sample code is this>
    import java.sql.*;
    class JdbcTest {
    public static void main (String args []) throws SQLException {
    // Load Oracle driver
    DriverManager.registerDriver (new oracle.jdbc.driver.OracleDriver());
    // Connect to the local database
    Connection conn =
    DriverManager.getConnection ("jdbc:oracle:thin:@pcserver:1521:PIRELLI",
    "vetture", "vetture");
    // Query the employee names
    Statement stmt = conn.createStatement ();
    ResultSet rset = stmt.executeQuery ("select a from pippo");
    // Print the name out
    while (rset.next ())
    System.out.println (rset.getString (1));
    -------please halp me

    what u say is correct becouse if i use another db-oracle
    and for use it i change the host, the port and sid, it works.
    DriverManager.getConnection ("jdbc:oracle:thin:@ULISSE:1651:APIS",
    "vetture", "vetture");
    and in this case the database is on another machine.
    if i try with :
    DriverManager.getConnection ("jdbc:oracle:thin:@pcserver:1521:PIRELLI",
    "vetture", "vetture");
    doesn't work, but i can read from the database with another product TOAD, so this meand the DB service is running, I can't undestand.
    In any case thanks becouse now i know that the problem is not about classpath or sqlstatement, but is only about configuration and service.

  • Standard Username an Password for the new Release2 As Portal?

    i have installed the Applicationserver Release2 with Portal , but i can not access to the Portal with the Standard Username and Password , i need the new Standard username and Password for the new Oracle Portal(Release2)
    the same Problem is with the Standard Username and Password for the iasdb (IAS Database on the Infrastructure Server !)
    thanx
    Saleh Matani

    Hi,
    You are facing strange problems with SDN :). May be connection at your end is too slow..
    For the problem:
    It seems you need a login password page. If this is your reuirement. Simple solution is create a page with two labels,two input fields, save and reset buttons. The login/pwd on submitted with validated by quering the database. Is your question - how to query the database ?
    May be you can create a javabean to do that (you can use jdbc for logic). Later import the JavaBean as JavaBeanModel in Web Dynpro. Map the model to context in the view and use the context.
    Regards,
    Ashwani Kr Sharma

  • Database Connections in Jdeveloper

    Hi,
    I was able to make a successful jdbc to odbc database connection using Jdeveloper 10.1.3.0.2. I could see the list of tables in the Oracle database. However, release 10.1.3.0.4 produces the following message: "Invalid Fetch Size". I also tried a straight jdbc connection in the later release, and it returns a certain amount of metadata, but no list of tables. Why does the connection work for the earlier release but not the later release?
    Thank you,
    Roland Wales

    I logged an er (3649694) to track this request. Thanks for the feedback!
    -- Brian

  • Oracle AS 9.0.4 and ojdbc14 - 4k blob issue

    Greetings,
    Perhaps someone has faced this issue before and could offer some help..
    I'm trying to insert a blob (>4k) into an Oracle 10g database. To verify that
    it is an oracle-specific issue that I am having, I've tried with the following
    configurations:
    AppServer1: Tomcat 4.1.31
    AppServer2: Oracle Application Server 10g (9.0.4.0.0) for Microsoft Windows
    Database1: MySql 4.1
    Database2: Oracle 10g version 10.2.0
    The oracle DB driver I'm using is ojdbc14.jar (a 10g download that apparently
    solves the >4k problem)
    The blob-insertion works when I use the same code on:
    -AppServer1 with Database1
    -AppServer1 with Database2
    -AppServer2 with Database1
    But not when I use the code on
    -AppServer2 with Databse2
    Now, this probably looks a bit strange because here I am trying to use 2
    Oracle products together to perform a seemingly simple task yet instead
    I am getting SQL (ORA-1460) exceptions when I try to do it.
    Based on the above, the problem has to be the driver right? With this in mind
    I've tried the following:
    -bundled the ojdbc14.jar file in WEB-INF/lib
    -placed odjbc14.jar in the j2ee/home/applib folder
    -added a -Djava.library.path=$ORACLE_HOME/j2ee/home/applib/ojdbc14.jar to the
    JVM args for the oc4j instance
    but none of the above have worked.
    Then I read that there is a directive in the orion-web.xml that should get the app
    server to load from the WEB-INF/lib directory first. So I tried it my app wouldn't
    even start. I also tried the -Xbootclasspath stuff but that has never worked for me.
    I can see in the jdbc/lib directory of the Oracle app server installation that there
    are some older versions of the drivers. Is it possible that these are getting loaded
    first by the app server and are being used globally? If so, is there any way that they
    can be overwritten / overridden?
    Any advice on this would be appreciated. I hope I've been clear, many thanks,
    dan

    Hey Jos,
    Thanks for the info. I tried bundling the 10g drivers (classes12.jar) with the webapp in
    WEB-INF/lib but unfortunately there was no change. As an experiment, I dropped in
    these jars into the OraHome1/jdbc/lib directory and it worked! Unfortunately, I'm not sure
    if I'm going to be able to do this in a production environment, since I don't know how it will
    impact on other apps that I have no contol over sitting in the same container :(
    Anyone know of problems upgrading the OraHome/jdbc/lib drivers with later versions?
    Am I being over-ambitious by expecting this to be acceptable - last I heard the drivers
    were certified backwards-compatible so in theory there shouldn't be a problem doing
    this. But hey, I'm rediscovering the meaning of the word naive since I started working with
    oracle products ;-)
    Cheers,
    dan

  • Identifying connection/datasource by application name, machine and user

    Hi,
    I am implementing a Java app to gather few connection related statistics. As part of this, in the JDBC layer, I want to identify the connection by app name, os/app user and client's machine name. I searched for all the ways an oracle app would set these attributes. I have some queries around them, will be grateful if somone can respond and clarify them. Here are my findings/observations
    *1. DataSource.setConnectionProperties() with v$session param and values for program, osuser, machine*
    It appears setting the v$session.program, v$session.osuser and v$session.machine on datasource is a preferred way to set the client information for v10.2 and higher. Is my assumption that this is the predominant/preferred way oracle apps would set the client information valid ?
         Properties props = new Properties();
         props.put("v$session.program", "OracleApp");
         props.put("v$session.osuser", "human");
         props.put("v$session.machine", "dale");
         ds.setConnectionProperties(props);*2. OracleConnection.setClientData() with key-value*
    There is a method setClientData but available only with OracleConnection as class referrence (needs cast). It seems to be a deprecated in 10g. Does anyone know why is this deprecated and replaced by what ? Hope it is not deprecated due to JDBC 4.0 spec, which is not supported by Oracle
         OracleConnection conn_ = (OracleConnection) con;
         conn_.setClientData("ApplicationName", "OracleApp");
         conn_.setClientData("ClientHostname", "dale");
         conn_.setClientData("ClientUser", "human");*3. Connection.setClientInfo() with ApplicationName, ClientHostname, ClientUser*
    Apparently, JDBC 4.0 has exposed api-s to set/get clientInfo values that I am looking for. But surprisingly, oracle doesn't seem to have correctly implemented these methods. I get SQLClientInfoException for the above values and when I do DatabaseMetaData.getClientInfoProperties I get empty Properties object. Does this indicate 0 keys are supported ? Or is there any special setting/configuration I have to executed to allow setting of keys?
         ResultSet clientInfoProperties = con.getMetaData().getClientInfoProperties();
         while (clientInfoProperties.next()) { // next() returns false
              System.out.println(clientInfoProperties.getString(1));
         Properties properties = new Properties();
         properties.put("ApplicationName", "OracleApp");
         properties.put("ClientHostname", "dale");
         properties.put("ClientUser", "human");
         con.setClientInfo(properties);
         // throws java.sql.SQLClientInfoException and e.getFailedProperties() returns
         // {ClientUser=REASON_UNKNOWN, ApplicationName=REASON_UNKNOWN, ClientHostname=REASON_UNKNOWN}
         // and e.getMessage() returns Invalid or unsupported name for clientInfo.*4. Other ways to set/get client info using connection or datasource ?*
    Apart from the above, are there other ways to set/get client info on connection or datasource objects ? how do oracle apps in general handle this kind of need.
    If someone has some insight on my queries, will appreciate if you can spare some time replying to this thread.
    Thanks
    Rajesh

    bumping it up. Can anyone help ?
    -Rajesh

Maybe you are looking for

  • How can i transfer a parchase movie from another iPad to my iPad

    How can i transfer a parchase movie from another iPad to my iPad

  • EMERGENCY need responce External firewire as startup

    I need to know which way to go firewire for a start up drive I need an answer right away since i have just put in my order at Newegg for the ACARD AEC-6280M PCI IDE Controller Card For Mac but the shipping is $22 $73 total Will this work on a sawtoot

  • Problem in reading  file

    Hi, Here i read file then i want to put it's contents in textarea . I used FileInputStream and bufferedInputstream for reading file but the content not appear in the textarea . why this ? import java.awt.*; import java.awt.event.*; import java.io.*;

  • Re-installed itunes but cannot get iphone 4 to upgrade?

    I've been having problems getting my iphone to synv with my computer. Reinstalled itunes, but cannot get software installed on iphone 4

  • OIM Date field

    Hi, In my application there is a field 'Effective Date and time of transfer'. For that i have created the field in design console as date field . The date field is using the zapatec calendar in the custom UI code. I modified one of its property in ja