Is it possible to use an OCI connection JDBC?

If a Java application relies on a native C library to access an Oracle database, and the native library uses the OCI, is it possible for the Java code to share an established connection

<BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Jacques Vidal:
If a Java application relies on a native C library to access an Oracle database, and the native library uses the OCI, is it possible for the Java code to share an established connection <HR></BLOCKQUOTE>
(sorry, incomplete post, last part follows:)
in JDBC using a mechanism like sqllda() or SQLEnvGet()/SQLSvcCtxGet() ?
I need this to keep transaction consistency, and can't translate the C code to Java, as it's still used by other non-Java applications.
Thanks.

Similar Messages

  • Is it possible to use Safari to connect to a WebUI via bluetooth?

    I have a device that uses a WebUI for configuration.  The device is also bluetooth capable.  I can get my iPad 2 to pair with it.  Is it then possible to use Safari to access that WebUI through the bluetooth connection, and if so, how?
    Thanks.

    Bluetooth on the iPad is intentionally restricted to peripherals such as speakers, headphones, keyboards, car audio, etc.  Not sure if you can do what you want, but past experience suggests it is highly unlikely.

  • Using swings to connect jdbc

    Iam new to java.plz help me to connect jdbc with GUI components.While connecting i have problems .Do anyone have the program plz forward to my [email protected]

    [url http://java.sun.com/docs/books/tutorial/]JDBC Database Access

  • Use thinkvantage access connections to map a network drive

    Is it possible to use thinkvantage access connections to map a network drive. I have three different basic sites (home, work1, work2) with network drives that I would like to access depending on the site.
    1) I wonder if it is possible to configure thinkvantage access connections to automatically map the network resources through a connection profile?
    2) I wonder if it is possible to configure thinkvantage access connections to automatically map the network resources through a connection profile that is based on vpn connection?
    thanks in advance
    sincerely, anders

    Hi,
    directly it's not possible for Access Connection to reconfigure your network drives.
    However, there is one really cool part of Access Connection, that might be realy suitable for your situation. This part is the script/application, that can be executed when a profile gets applied.
    So for your situation I can imagine, that you create a .bat file, that contains something like this:
    net use * /DELETE /YES
    net use Z: \\computer name\share name
    The first part will delete all maped drives. The second part will establish connection that you want to use. Of course you can multiply the last part, so that you can configure multiple connections.
    Please let me know, if this helps.
    Cheers

  • IS IT POSSIBLE TO USE AME AT AP-PAYMENT R12 ?

    Hi everyone,
    Our client has a requirement like this :
    They want to use Approval Workflow for payments (AP). Payments should not be paid, until authorized manager approve transaction. Transactions are classified according to their amounts. Transactions should be diverted to authorized personnal, according to their Approval Limit. And this approval may be serial or parallel.
    Is it possible with standard functionallity or can it be done with custom workflow development ? Or are there another solutions that provides this functionallity ?
    Thanks in advance
    Cagri

    sl725 wrote:
    Is it possible to use Facetime to connect Macbook Air with iPhone?
    Using FaceTime
    http://support.apple.com/kb/ht4319

  • Using bluetooth to connect iPad to cable-connected macbook...

    Does anyone know if it's possible to use bluetooth to connect an ipad wirelessly to the internet from the cable broadband connection on a macbook pro? its for my son who can't seem to use a wifi router in his student res...cheers, dean

    There's a couple of ways to do it.  Go to System Preferences>Sharing>Internet Sharing.  Check the box.  If the Mac is attached via WiFi, then the dropdown Menu has to say WiFi.  If it's Ethernet, then ethernet.  I know, obvious, but someone is going to ask.
    Next check Bluetooth PAN.  Now this wireless has a very short distance and can be interfered with by walls, other devices, etc. On the iPad go to Settings>General>Bluetooth and connect to the Mac.
    The better way is for the Mac to be connected to ethernet, and share the WiFi, but you have to do what you have to do.
    I hope this helps.  The Bluetooth connection may require you to post a question on the iPad forum.

  • Is it possible to use Facetime at Macbook Air?

    Is it possible to use Facetime to connect Macbook Air with iPhone?

    sl725 wrote:
    Is it possible to use Facetime to connect Macbook Air with iPhone?
    Using FaceTime
    http://support.apple.com/kb/ht4319

  • Oci connection-entry point kpufhndl0 could not be located

    hi
    i use jdev 10.1.3.3 & 10g.
    a thin connection to db works fine, but i have to use an oci connection which i fail to set.
    i've edited jdev.conf file as described here: http://www.oracle.com/webapps/online-help/jdeveloper/10.1.2/state/content/navId.4/navSetId._/vtTopicFile.db%7Ccdb_rconnectionreqsoci~html/
    and added AddNativeCodePath pointing to oracle installation directory.
    but an attempt to test a connection returns an error saying "The procedure entry point kpufhndl0 could not be located in the dynamic link library OCI.dll".
    i've found a post saying that this issue has been solved by placing jdbc:oracle:oci:@host:port:sid in jdbc custom url field of db settings. not i my case, i'm getting the same error.
    any thoughts?
    thanks a lot!
    Message was edited by:
    cyclid

    sorry, no solution yet. bumpin' it...

  • OCI Connection Pool

    Hi,
    How do I use an OCI Connection Pool as a data source in OC4J?
    A sample data-sources.xml would be helpful.
    A snippet of servlet code would be great!
    Thanks

    Hi,
    OracleOCIConnectionPool extends OracleDataSource and I have
    created and attached a example test case OCIConnPoolJNDI.java of
    how to register this OCI pool object via JNDI InitialContext and
    look it up.
    The test assumes a default directory /tmp/JNDI/jndi_dir to exist
    that can be changed. You also need dbjava/lib/jndi.zip (or
    jndi.jar) and jis/lib/aurora_client.jar in your CLASSPATH
    * Different Config test for connection pooling
    import java.sql.*;
    import java.io.*;
    import java.util.*;
    import java.math.BigDecimal;
    import oracle.jdbc.*;
    import oracle.jdbc.pool.*;
    import oracle.jdbc.oci.*;
    import oracle.sql.*;
    import javax.naming.*;
    import javax.naming.spi.*;
    import javax.sql.*;
    public class OCIConnPoolJNDI
    public static void main(String args[]) throws SQLException,
    NamingException
    String url = "jdbc:oracle:oci8:@" ;
    Context ctx = null;
    Hashtable env = new Hashtable (5);
    env.put (Context.INITIAL_CONTEXT_FACTORY,
    "com.sun.jndi.fscontext.RefFSContextFactory");
    String fileDir = "file:/tmp/JNDI";
    System.out.println("fileDir = " + fileDir);
    env.put (Context.PROVIDER_URL, fileDir);
    ctx = new InitialContext(env);
    Properties poolconfig = new Properties( ) ;
    poolconfig.put(OracleOCIConnectionPool.CONNPOOL_MIN_LIMIT,
    "1") ;
    poolconfig.put(OracleOCIConnectionPool.CONNPOOL_MAX_LIMIT,
    "10") ;
    poolconfig.put(OracleOCIConnectionPool.CONNPOOL_INCREMENT,
    "2") ;
    poolconfig.put(OracleOCIConnectionPool.CONNPOOL_NOWAIT,
    "true") ;
    poolconfig.put(OracleOCIConnectionPool.TRANSACTIONS_DISTRIBUTED,
    "true") ;
    OracleOCIConnectionPool ods = new OracleOCIConnectionPool
    ("scott", "tiger", url, poolconfig);
    System.out.println("-- Doing the Bind --");
    ctx.bind ("jndi_dir/tkpjcpdb1",ods);
    ods.close();
    System.out.println("-- Doing the Lookup --");
    OracleOCIConnectionPool cpool = (OracleOCIConnectionPool)
    ctx.lookup
    ("jndi_dir/tkpjcpdb1");
    test1(cpool);
    // Close the connection
    cpool.close();
    cpool = null;
    public static void test1(OracleOCIConnectionPool cpool)
    throws SQLException
    System.out.println ("User = " + cpool.getUser());
    System.out.println ("URL = " + cpool.getURL());
    System.out.println ("Default Min poolsize Limit = " +
    cpool.getMinLimit());
    System.out.println ("Default Max poolsize Limit = " +
    cpool.getMaxLimit());
    System.out.println ("Default Connection Increment = " +
    cpool.getConnectionIncrement());
    java.util.Properties p = new java.util.Properties( );
    p.put (OracleOCIConnectionPool.CONNPOOL_MIN_LIMIT, "1") ;
    p.put (OracleOCIConnectionPool.CONNPOOL_MAX_LIMIT, "1") ;
    p.put (OracleOCIConnectionPool.CONNPOOL_INCREMENT, "0") ;
    cpool.setPoolConfig(p);
    System.out.println ("Set Min poolsize Limit = " +
    cpool.getMinLimit());
    System.out.println ("Set Max poolsize Limit = " +
    cpool.getMaxLimit());
    System.out.println ("Set Connection Increment = " +
    cpool.getConnectionIncrement());
    //get a connection from the pool
    OracleOCIConnection conn1 = (OracleOCIConnection)
    cpool.getConnection();
    OracleOCIConnection conn2 = (OracleOCIConnection)
    cpool.getConnection();
    OracleOCIConnection conn3 = (OracleOCIConnection)
    cpool.getConnection();
    System.out.println("ActiveSize of pool = " +
    cpool.getActiveSize());
    System.out.println("PoolSize = " + cpool.getPoolSize());
    testConn1(conn1);
    testConn1(conn2);
    testConn1(conn3);
    conn1.close();
    conn2.close();
    conn3.close();
    public static void testConn1 (OracleOCIConnection conn)
    throws SQLException
    System.out.println ("Got Pooled connection ...");
    // try operations via the pool
    Statement stmt = conn.createStatement ();
    ResultSet rset = stmt.executeQuery ("select USER from
    dual");
    while (rset.next ())
    System.out.println (" User = " + rset.getString (1));
    rset.close();
    stmt.close();

  • Is it possible to use FaceTime with 3G?

    I have an Ipad2 with 3G and Im unable to use FaceTime if Im not connected to WiFi. Is it possible to use FaceTime without connecting to WiFi and only using 3G internet connection? If it is possible, how?

    Only way you can use Facetime with 3G is to jailbreak your device, a topic we can't discuss here.

  • Is it possible to use BT Fon on Apple TV?

    I have no problem using BT Fon with iPad or IPhone. Is it possible to use it when connecting to the Internet for Apple TV.
    It allows me to connect to the wireless FON but does not allow me to ask iTunes store on Apple TV and it does not let me do AirPlay or Mirrowing.
    Any suggestions welcome.

    If the developer has enabled for airplay then yes

  • Possible to use CCM 2.0 with both CRM and SRM using OCI?

    Hi,
    I am preparing a solution with SRM, CRM and CCM where CCM should be the central product catalog,
    internal ordering should be done using SRM and external ordering (reselling and billing) using CRM.
    However, the content is the same, so I either need to provide it once in CCM and create different
    views and OCI-connections from SRM and CRM or I need a way to extract a catalog from CCM and import
    it into CRM.
    In posting 83841
    Is SRM Mandatory with CCM?
    I learned that CCM 3.0 will support CRM processes.
    However, I could not find any hint when CCM 3.0 will be available.
    I assume CCM 2.0 support OCI as well, so in principle it should be possible to use one CCM view in CRM and another CCM view in SRM.
    Is this assumption correct?
    Regards, Andreas

    Hi Andreas,
    yes, via OCI one catalog can be integrated into different applications.
    Regarding the release: CCM 2.0 is the last release of the SAP Catalog.
    There will be no CCM in the future.
    In the new version of MDM the catalog function is integrated and it is
    mandatory to be used in new implementations as well with SRM 6.0.
    There are some tricky things in CCM and it is hard to get support, as
    the main focus is MDM.
    When you have a chance to plan the landscape, consider MDM from
    long term perspective.
    Thanks,
    Claudia

  • Error while creating a report that uses Oracle OCI JDBC connectivity

    Please let me know why my CR and LF characters are removed from my forum posting *****
    Hi,
    I was trying to create a report that uses Oracle OCI JDBC connectivity. I am using Eclipse3.4 download from "cr4e-all-in-one-win_2.0.2.zip".  I have successfully created a JDBC OCI connection.
    The connection parameters are given below:
    URL: jdbc:oracle:oci8:@xe
    Database: xe
    username: <userName>
    password: <password>
    I have tested the above connection in Data source Explorer and it works fine!!!
    But I am getting the following error when I drag-and-drop a table from the list of tables. Not sure what I am missing here?  Any help is highly appreciated.
    com.businessobjects.reports.jdbinterface.common.DBException: InvalidURLOrClassName
         at com.crystaldecisions.reports.queryengine.driverImpl.jdbc.JDBCConnection.Open(Unknown Source)
         at com.crystaldecisions.reports.queryengine.JDBConnectionWrapper.Open(SourceFile:123)
         at com.crystaldecisions.reports.queryengine.Connection.br(SourceFile:1771)
         at com.crystaldecisions.reports.queryengine.Connection.bs(SourceFile:491)
         at com.crystaldecisions.reports.queryengine.Connection.t1(SourceFile:2979)
         at com.crystaldecisions.reports.queryengine.Table.u7(SourceFile:2408)
         at com.crystaldecisions.reports.dataengine.datafoundation.AddDatabaseTableCommand.new(SourceFile:529)
         at com.crystaldecisions.reports.common.CommandManager.a(SourceFile:71)
         at com.crystaldecisions.reports.common.Document.a(SourceFile:203)
         at com.businessobjects.reports.sdk.requesthandler.f.a(SourceFile:175)
         at com.businessobjects.reports.sdk.requesthandler.DatabaseRequestHandler.byte(SourceFile:1079)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.do(SourceFile:1163)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(SourceFile:657)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(SourceFile:163)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.a(SourceFile:525)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.call(SourceFile:523)
         at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
         at java.util.concurrent.FutureTask.run(Unknown Source)
         at com.businessobjects.crystalreports.designer.core.util.thread.ExecutorWithIdleProcessing$3.doWork(ExecutorWithIdleProcessing.java:182)
         at com.businessobjects.crystalreports.designer.core.util.thread.AbstractCancellableRunnable.run(AbstractCancellableRunnable.java:69)
         at com.businessobjects.crystalreports.designer.core.util.thread.PriorityTask.run(PriorityTask.java:75)
         at com.businessobjects.crystalreports.designer.core.util.thread.PriorityCompoundCancellableRunnable.runSubtask(PriorityCompoundCancellableRunnable.java:187)
         at com.businessobjects.crystalreports.designer.core.util.thread.PriorityProgressAwareRunnable.runSubtask(PriorityProgressAwareRunnable.java:90)
         at com.businessobjects.crystalreports.designer.core.util.thread.PriorityCompoundCancellableRunnable.doWork(PriorityCompoundCancellableRunnable.java:144)
         at com.businessobjects.crystalreports.designer.core.util.thread.AbstractCancellableRunnable.run(AbstractCancellableRunnable.java:69)
         at com.businessobjects.crystalreports.designer.core.util.thread.ExecutorWithIdleProcessing$IdleTask.run(ExecutorWithIdleProcessing.java:320)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Thanks
    Karthik
    Edited by: KARTHIK1 on Oct 14, 2009 9:38 PM

    Hi Ted,
    Thanks for the feedback. I was able to create a report in Creystal Reports Designer 2008 using OCI.  It is not allowing only in the Eclipse plugin. In our environment we are not allowed to user Oracle thin connections and ONLY OCI is allowed.
    1) Can you please let me know if there is a way to do this? 
    2) Will it allow data sources using native database driver?
    3) If so, can I use JRC to create these reports from a desktop java program?
    Thanks & Regards
    Karthik
    Edited by: KARTHIK1 on Oct 15, 2009 4:38 PM

  • Is it possible to use my ipad 4 as a second monitor through a USB connection.

    Is it possible to use my ipad 4 as a second monitor through a USB connection.

    perhaps, but my information was current. I had the same question and was looking for and answer and found it. So I responded in order to help others who found this question and were looking for an answer. This community is made more helpful and kept current by adding new answers with current information.
    imobl... air display was a valid response for 2011 predating the question. Also using Monitor2go was valid in 2012. There were USB mirroring and as a 2nd display for an iPad options at the time the original question was asked.

  • Is it possible to use an external drive to play movies on my iPhone 5?  I am going on a long flight and only have a 16gb iPhone.  I will not have access to wifi, so it would have to connect manually.

    Is it possible to use an external drive to play movies on my iPhone 5?  I am going on a long flight and only have a 16gb iPhone 5.  I will not have access to wifi, so it would have to connect manually.  I've heard of apps that connect to an external for this very purpose, but its via wifi. 

    http://www.seagate.com/external-hard-drives/portable-hard-drives/wireless/seagat e-satellite/
    Use Google and you can find similar drives from other companies.

Maybe you are looking for

  • Can I save a single image as several file names in one go.

    I know this sounds like an unsual question, but I want to take an image (say a logo) and save that image multiple times (could be 1000 times), but each time as a different file name. ( I have a commercial reason why I dont want that image to be named

  • Rahmen in Acrobat X Pro setzen

    Hallo, ich habe ein kleines Problem: Ich möchte in Acrobat X Pro meine Seiten mit einem Rahmen versehen. Ich habe dazu in Word eine Rahmenvorlage gefunden und als pdf gespeichert. In Acrobat bin ich wie folgt vorgegangen: Werkzeuge/Hintergrund und da

  • UD,XMP,DB BI 7.0

    hi friends, i have seen one thing in bi 7.0 TCO, what is this. They gave some extra options for bd, ud and xml, so using this we can connect from bw to any external systems. Thanking u suneel.

  • XTC-ST1CF-2TB7K having an issue with firmware / STK6180 STK6140

    hi ! i need some help from the experts please it seems like my current XTC-ST1CF-2TB7K having an issue with its firmware. Basically way i see it i have drive with wrong SATA interposer card installed. CAM shows my current drive firmware as 0605( whic

  • Windows Shuts Down Suddenly and Restarts Again on HP 2000 notebook pc

    hp 2000 notebook pc-C2M21UA#ABA WINDOWS 8 STARTS OCCURING AFTER INSTALLING WINDOWS