Cant get OCI jdbc driver working on Mac OS X

I have installed the 10g final release for Mac OS X 10.3.7.
I did a custom install...ONLY the JDBC drivers...nothing else.
I have gotten the THIN driver to work fine and connect to the database. But when I try to use the OCI driver, I keep getting unsatisifed link errors. I have set my LD_LIBRARY_PATH and such but no luck. Anyone got any ideas for what I need to do?
Environment vars:
echo $LD_LIBRARY_PATH
/Users/michaelm/other/oracle/product/10.1.0/client_1/lib
This shows that the file in question DOES exist:
ls -l /Users/michaelm/other/oracle/product/10.1.0/client_1/lib/libocijdbc10.jnilib
-rw-r--r-- 1 michaelm michaelm 93028 29 Dec 21:22 /Users/michaelm/other/oracle/product/10.1.0/client_1/lib/libocijdbc10.jnilib
When I run the program, I get this:
Exception in thread "main" java.lang.UnsatisfiedLinkError: /Users/michaelm/other/oracle/product/10.1.0/client_1/lib/libocijdbc10.jnilib:
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1586)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1511)
at java.lang.Runtime.loadLibrary0(Runtime.java:788)
at java.lang.System.loadLibrary(System.java:834)
at oracle.jdbc.driver.T2CConnection.loadNativeLibrary(T2CConnection.java:2927)
at oracle.jdbc.driver.T2CConnection.logon(T2CConnection.java:225)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:347)
at oracle.jdbc.driver.T2CConnection.<init>(T2CConnection.java:139)
at oracle.jdbc.driver.T2CDriverExtension.getConnection(T2CDriverExtension.java:79)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:549)
at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:196)
at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:146)
at Test.getConnection(Test.java:32)
at Test.main(Test.java:12)
What else do I need to do?

Same error. I just don't get it. Here are some of the environment vars:
echo $ORACLE_HOME
/Users/michaelm/other/oracle/product/10.1.0/client_1
echo $LD_LIBRARY_PATH
/Users/michaelm/other/oracle/product/10.1.0/client_1/lib
echo $DYLD_LIBRARY_PATH
/Users/michaelm/other/oracle/product/10.1.0/client_1/lib
What in the world am I doing wrong? Seems like with such a basic installation (just the JDBC drivers) this thing would work!
thanks,
Mike

Similar Messages

  • I had my hard drive replaced and I cant get my email to work on the new hard drive.  I have the ! in the triangle next to the inbox.  I tried "take all accounts online" and it ddidnt work.  The email account is working on my iphone and ipad.

    I had my hard drive replaced and I cant get my email to work on the new hard drive.  I have the ! in the triangle next to the inbox.  I tried "take all accounts online" and it ddidnt work.  The email account is working on my iphone and ipad, and my macBook is connected to the internet.

    Cant get help with this issue on Apple Support, so I have to go to the Apple store to the Genius Bar to get assistance.  All the help issues are so technical in their jargon, that I cannot understand how to fix the issue.

  • SetString/executeBatch fails in Oracle 10g OCI JDBC driver

    Hi,
    I am using Oracle 10g OCI jdbc driver for batch updates.
    Following is the the code that I am using
    import java.sql.*;
    import oracle.jdbc.*;
    import oracle.jdbc.pool.OracleDataSource;
    public class BatchUpdates
    public static void main(String[] args)
    Connection conn = null;
    Statement stmt = null;
    PreparedStatement pstmt = null;
    ResultSet rset = null;
    int i = 0;
    try
    String url = "jdbc:oracle:oci:@kctutf8";
    try {
    String url1 = System.getProperty("JDBC_URL");
    if (url1 != null)
    url = url1;
    } catch (Exception e) {
    OracleDataSource ods = new OracleDataSource();
    ods.setUser("kctuser");
    ods.setPassword("kana");
    ods.setURL(url);
    conn = ods.getConnection ();
    stmt = conn.createStatement();
    try { stmt.execute(
    "create table mytest_table (col1 number, col2 varchar2(20))");
    } catch (Exception e1) {}
    pstmt = conn.prepareStatement("insert into mytest_table values (?, ?)");
    pstmt.setInt(1, 1);
    pstmt.setString(2, "row 1");
    pstmt.addBatch();
    pstmt.setInt(1, 2);
    pstmt.setString(2, "row 2");
    pstmt.addBatch();
    pstmt.setInt(1, 3);
    pstmt.setString(2, "row 3");
    pstmt.addBatch();
    pstmt.setInt(1, 4);
    pstmt.setString(2, "row 4");
    pstmt.addBatch();
    pstmt.setInt(1, 5);
    pstmt.setString(2, "row 5");
    pstmt.addBatch();
    pstmt.executeBatch();
    rset = stmt.executeQuery("select * from mytest_table");
    while (rset.next())
    System.out.println(rset.getInt(1) + ", " + rset.getString(2));
    catch (Exception e)
    e.printStackTrace();
    finally
    if (stmt != null)
    try { stmt.execute("drop table mytest_table"); } catch (Exception e) {}
    try { stmt.close(); } catch (Exception e) {}
    if (pstmt != null)
    try { pstmt.close(); } catch (Exception e) {}
    if (conn != null)
    try { conn.close(); } catch (Exception e) {}
    When I run this class I get the following output
    1, row 1
    2, row 3
    3, row 5
    4, null
    5,
    But It should have been
    1, row 1
    2, row 2
    3, row 3
    4, row 4
    5, row 5
    The same class runs fine if I use Thin driver.
    Can anyone please help me solve this issue.
    Note: This happens only in case we use setString with Varchar2 in the DB. This works fine if I have two number columns
    Thanks,
    Raja.S

    Please post this question to the Java forum. It is located under "Technologies".

  • I cant get my camera to work it says its on but has no feedback, any ideas?

    i cant get my camera to work it says its on but has no feedback, any ideas?

    Here are my best suggestions for your camera problem:
    • If Apple's http://support.apple.com/kb/HT2090
       suggestions do not help you, (the "reset" suggested there
       often restores normal function,) continue with the following.
    • Use your Mac's Disk Utility to repair permissions and then
       download and apply the latest Combo Update for your Mac OS.
       If you are using OS X 10.7 or later, reinstall OS X.
    • Repair permissions again immediately following the system restart
       that completes the Combo update or reinstall.
    Properly applying the Combo version of updates can sometimes correct software problems, but, if your trouble is caused by a hardware problem, there are no user serviceable parts of the camera.  For hardware help, contact Apple or an Apple-Authorized Service Provider for service.
    (Over time, Apple has changed the built-in camera's name on newer Macs from "iSight" to "FaceTime" and then to "FaceTime HD."  Regardless of the name of your Mac's built-in camera, the same info and troubleshooting applies.)
       Unless you have a current backup, make one now.
      Then use the final "Troubleshooting" suggestion:
    "... contact Apple or an Apple-Authorized Service Provider for service."

  • I cant get my webcam to work on my g72

    I cant get my webcam to work on my laptop.

    Hi,
    Also.
    Do you have the Google Video Chat Plug-in installed ?
    You may have gained this by Installing Chrome if you did not manually download the Installer for Intel Macs Only.
    This can conflict with the Flash Plug-in.
    See Known Issues and open the bit on Google Talk Plug-in Disables iSight on Mac.
    10:16 PM      Thursday; October 6, 2011
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb( 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • I cant get my cd out of my mac pro book

    I cant get a cd out of my mac please help I have tryed all the ejects and holding down and restarting ?

    Solutions
    First try the normal methods to remove the disc. Drag its icon to the Trash can in the Dock or select 'Eject' from the File menu.
    If you are running a virtual machine, e.g. VMFusion, ensure that the CD is disconnected from the virtual machine. This will sometimes allow the CD to now show up in Mac OS X.
    Shut down the computer and start up whilst holding down the mouse button. This may take some time, but keep your finger on the mouse button right up until the disc comes out or the log-in screen has appeared.
    If you have Toast Titanium installed on your computer, choose EJECT DISC from the menubar.
    Sometimes you can successfully use the eject disc button in iTunes even if the disc is not visible to the Finder
    Open Disk Utility and choose the disc you wish to eject in the left-hand pane, then click on the Eject button.
    Some Macintoshes have a paperclip hole that you can insert a straightened paperclip into, manually triggering the eject mechanism.
    Open Terminal and type "drutil tray eject" to eject the disc/tray, and "drutil tray close" to close the tray.
    Restart the computer while holding down Command-Option-O-F, to enter the Open Firmware prompt. Type "eject cd" without the quotes, and press return. The disk ought to eject. To start into OS X, type "mac-boot" without the quotes. Press return, and the computer will continue with the startup. (This will not work on an Intel Mac. There is no Open Firmware on Intel Macs. )
    If your computer has an eject button on the keyboard, restart the computer holding down the Option key. When the startup disk selection screen appears, let go of the option key and press the keyboard's eject button.

  • Cant get my sound to work :(

    I recently had to format my computer because of a virus that wouldnt let me log into windows. I was running win xp pro upgrade and it was running fine. Now i run win 98se becuase it wont let me upgrade for some wierd reason. but i cant get my sound to work. i try to install the drivers but i get a screen after the install wizard to put win98se cd in, select drive and press ok. well i clicked just about every option there was. and it would either flash back to the my documents on the selection screen or ask me if i want to cancell the installation, i have no idea what to do. I dont even know if it is recognizing that i even am using my integrated sound card. i would go and get another sound card but i dont have any money right now. anyone else have this problem or can help with with this problem??? ;(
    i have the k7n2g mobo with a 1800 xp athlon

    Hi,
    You can tell whether the system has found your soundcard hardware by looking in "Device Manager" have you yellow question marks that show hardware (but no drivers)? My apologies if you've done this.
    If I remember correctly (but don't quote me) when Windows98 asks for your 98SE disc it's looking for a file within one of the .CAB files on the 98SE (Correct me If I'm wrong) disc. If not, exactly which file is it looking for? - the requester should give you a clue. When you know what the file is, do a search on your 98 CD to see if you can find it. Then point the drivers install to that location (the directory where the .CAB OR relevant file resides.)
    You say that after failing to find the file on the 98 CD that it reverts to "My Documents" this would suggest that you'd previously installed drivers (or other Win98SE software) from that location. For some reason Win 98 assumes (for some stupid reason) that it'll find any future files it needs at the same location as previously installed files.
    Try installing the drivers for your sound using "Device Manager" click on the yellow question mark next to your hardware (if they are available) and Windows should open the "There is a problem with this device" (or words to that effect) requester and follow the instructions (wizard) from there.
    I'm going to nip off now as I have 98 SE on a different partition (I very rarely use it). I'll have a look and get back to you later.
    Good luck!  :D
    Axel  :D

  • Cant get graphics card to work on MS6166 board

    Iam tring to install nvidia graphics card(PCI) to my MS6166 mother board but cant get new drivers to work,I have disabled on board graphics via jumper on board but new graphics card still wont work.
    HELP!
    Anybody had same problem?

    Well, have you tried leaving the monitor cable connected to the onboard VGA and tried booting up? Sometimes you need to disable it within BIOS.

  • Cant get @font-face to work on my new web site

    Hi everyone,
    I Cant get @font-face to work on my new web site.
    I tryed it before on other web sites and it worked just fine.
    Here is the code i am using:
    CSS:
    @charset "utf-8";
    @font-face {
    font-family:"Caviar Dreams",sans-serif !important;
    font-style: normal;
    src:url ("../fonts/CaviarDreams.ttf") format('truetype');
    src:url("../fonts/CaviarDreams.eot") format('eot');
    src: url("../fonts/CaviarDreams.svg") format('svg');
    src:url("../fonts/CaviarDreams.woff") format('woff');
    src:url("../fonts/CaviarDreams.otf") format('otf');
    /* Simple fluid media
    Note: Fluid media requires that you remove the media's height and width attributes from the HTML
    http://www.alistapart.com/articles/fluid-images/
    img, object, embed, video {
    max-width: 100%;
    /* IE 6 does not support max-width so default to width 100% */
    .ie6 img {
    width:100%;
    Dreamweaver Fluid Grid Properties
    dw-num-cols-mobile: 5;
    dw-num-cols-tablet: 8;
    dw-num-cols-desktop: 10;
    dw-gutter-percentage: 25;
    Inspiration from "Responsive Web Design" by Ethan Marcotte
    http://www.alistapart.com/articles/responsive-web-design
    and Golden Grid System by Joni Korpi
    http://goldengridsystem.com/
    /* Mobile Layout: 480px and below. */
    body{
    background-image:url(../images/background/wraper_bg.jpg);
    background-repeat:no-repeat;
    background-attachment:fixed;
    background-size:100% 100%;
    font-family:"Caviar Dreams", sans-serif !important;
    .caviar{
    font-family:"Caviar Dreams", Arial, Helvetica, sans-serif ;
    .index_bg{
    width:100% !important;
    height:100% !important;
    background:url(../images/graphics/index_bg.png) !important;
    background-size:cover !important;
    .welcome_image{
    position:absolute;
    top:35%;
    width:95% !important;
    margin:2% !important;
    .nav{
    color:#FFFFFF !important;
    font-family:"Britannic Bold" !important;
    font-size:14px;
    font-weight:lighter !important;
    .background_white{
    background:rgba(255,255,255,0.7);
    .background_black{
    background:rgba(0,0,0,0.65);
    .background_black_2{
    background:#000 !important;
    .background_noir{
    background:rgba(179,1,1,0.7);
    .background_purple{
    background:rgba(152,131,201,0.7)!important;
    color:#FFFFFF !important;
    width:100% !important;
    height:25px;
    text-decoration:none !important;
    font-family:"Caviar Dreams" ;
    border:0px !important;
    margin:0px !important;
    padding:0px !important;
    .background_purple:hover{
    background:#FFFF00!important;
    color:#000 !important;
    width:100% !important;
    text-decoration:none !important;
    font-family:"Caviar Dreams" ;
    border:0px !important;
    .white{
    color:#FFFFFF !important;
    .black{
    color:rgba(0,0,0,1) !important;
    .red{
    color:#B30101 !important;
    .yellow{
    color:#FFFF00 !important;
    .black_span{
    background:#000000 !important;
    color:#FFFFFF !important;
    margin:1% !important;
    margin-left:5px !important;
    padding:5px !important;
    .black_span_margin1{
    margin-left:0px !important;
    .black_span_margin2{
    margin-left:0px !important;
    .border_white{
    border:3px solid #FFFFFF !important;
    margin:0px !important;
    padding:0px !important;
    .border_gold{
    border:0px solid #000!important;
    margin:0px !important;
    padding:0px !important;
    h1, h2, h3, h4, h5, h6{
    font-family:"Britannic Bold" !important;
    font-weight:lighter !important;
    color:#FFD700 !important;
    margin-left:2% !important;
    margin-right:2% !important;
    margin-top:2% !important;
    margin-bottom:2% !important;
    p{
    font-family:"Caviar Dreams", Arial, Helvetica, sans-serif !important;
    font-size:16px !important;
    color:#FFFFFF !important;
    margin-left:2% !important;
    margin-right:2% !important;
    margin-top:2% !important;
    margin-bottom:2% !important;
    .text-small{
    font-size:12px !important;
    .caviar{
    font-family:"Caviar Dreams" !important;
    I am trying to use the font Caviar Dreams on my new web site but i cant get it right,
    Can anyone tell me what is wrong.
    And also i would like some help with IE9, it seems the header is displaying in blue instead of black on IE9 and 10.
    My web site adrees is marcoalexwebdesign.site11.com  .

    I already fixed the issue, it seems trhat in dreamweaver the fonts ttf , otf, etc must be in a folder named webfonts, and then dreamweaver connects the fonts stylesheet to the main stylesheeet with @inport.I had to unisntall the fonts from my windows and download them again and add tehm with dreamweaver add web fonts feature.
    Thanks ayway.

  • I cant get a DVD to work

      I cant get a DVD to work on my MacBook Pro even though I have iDVD!

    iDVD is for creating movies on a DVD. Is that what you are trying to do?
    For playback of DVDs use DVD Player, or VLC:
    http://www.videolan.org/vlc/

  • I cant get my email to work on my iphone 4

    hi, i cant get my email to work on my iphone, iv added my email address and password but when i go to mail there are no emails showing or accounts. my email is showing as on in settings but doesnt seem to be working. any advise would be great, thanks

    There is something wrong in your settings. As the settings for each email provider are different you need to check your email server's web site for instructions. Most now have specific instructions for the iPhone. Also see Apple's instructions: http://support.apple.com/kb/HT1385

  • I cant get the font to work on a picture in Photoshop, I have watched at least 12 how to videos and it wont work, Help

    I cant get the font to work on a picture in Photoshop, I have watched at least 12 how to videos and it wont work, Help

    Could you capture your screen and post it. Have the layers panel open and any layers that are collapsed, expanded. We will need to see the entire screen, as some information in the tab is important as well.

  • I cant get google chrome to work on my desk top

    i cant get google chrome to work on my desk top

    When posting in Apple Communties/Forums/Message Boards.......It would help us to know which iMac model you have, which OS & version you're using, how much RAM, etc. You can have this info displayed on the bottom of every post by completing your system profile and filling in the information asked for.
    CLICKY CLICK-----> Help us to help you on these forums
    ***This will help in providing you with the proper and/or correct solutions.***
    ===================
    Contact Chrome tech support and/or post in their forums.

  • Required appropriate OCI JDBC driver for   Oracle 9i

    Required appropriate OCI JDBC driver for Oracle 9i Enterprise Edition Release 9.2.0.6.0.

    Stick to one thread please.
    http://forum.java.sun.com/thread.jspa?messageID=9552360

  • TS2972 cant get home sharing to work  any ideas?

    cant get home sharing to work.  any ideas?

    HOME SHARING
    Setting up Home Sharing on your Computer
    http://support.apple.com/kb/HT4620?viewlocale=en_US&locale=en_US
    Understanding  >  http://support.apple.com/kb/HT3819
    How to  >  http://support.apple.com/kb/HT2688
    Troubleshooting  >  http://support.apple.com/kb/TS2972

Maybe you are looking for

  • How do I upload pictures from my iphone to a new computer and not lose them

    My laptop crashed so I bought a new computer and iTunes says if I sync my pictures they'll be replaced with what's on the new computer. There are no pictures on the new computer.  So how do I get them off my phone and not lose them too?

  • Check box in a table not being read on auto read by JAWS(Screen Reader)

    Hi Experts, I am working on Accessible pages in ADF. Check box in table is not being read on "Auto Read" function by jaws. Auto read is a function that allows the user to start the screen reader at the top of the page and read the entire thing that i

  • The solo function is not working in my Final Cut Pro X

    When I select the track I want to solo all other tracks gets black and white (as they should) but all tracks are still visible, nothing changes in the project window. and when I play the movie nothing have changed. Any ideas out there ????

  • Open BP-Account via URL in certain partnerrole

    Hallo, i have to open a business Partner in Web UI from SAP GUI. Therfore I pass a URL with several parameters to the Function Module CALL_BROWSER which looks like this: http://.../bc/bsp/sap/crm_ui_start/default.htm?crm-object-type=BP_ACCOUNT&crm-ob

  • Create a database based on a current database

    I have a 9.2.0.6 database on server test. I copied everything to server test1. I used backup control file to trace on test. I put this backup control file to test1 and modified the file locations and want to recreat a database on server test1. What's