Linking error while trying to connect to 10 g oracle db through OCCI

Hello experts,
Iam getting a linking error while trying to connect to 10 g through OCCI.I've tried both available Instant client versions,But no luck.now, I am using instant client 11.2.0.2 with visual studio 2005 and oracle 10 g on 32 bit XP. I get "*The procedure entry point OCILobSetContentType could not be located in the dynamic link library OCI.dll*" linking error
How can i fix this error
Thanks in advance..
Regards,
Srihari

Hello,
Please ensure that you are using correct PATH and ORACLE_HOME settings - for example if IC 11202 is installed in
c:\oracle\11202\instantclient_112
execute on commandline
ORACLE_HOME=c:\oracle\11202\instantclient_112
PATH=%ORACLE_HOME%;%ORACLE_HOME%\bin;%PATH%
before starting VS2005 from commandline - or generate a commandscript
Inside VS2005 please ensure that you are picking up the libraries from
%ORACLE_HOM%\oci\lib\msvc\v8\*
furtheron, copy the
%ORACLE_HOM%\oci\lib\msvc\v8\*.dll
to %ORACLE_HOME% - otherwise by default the v9 ar picked up (copied during installation)
When this has been done, build the code and test - should work
regards,
Frank
Edited by: fscherie on 11.01.2012 12:41

Similar Messages

  • Error while trying to connect to Database using Oracle instantclient

    I have a linux box where i have downloaded"instantclient-basic-linux.x64-11.2.0.3.0.zip". I have unzipped in /opt/instantclient_11_2.
    I am using this as a client in my code for connecting to the oracle 11g database which is in a different server. I have set the below env variables.
    LD_LIBRARY_PATH=/opt/instantclient_11_2
    CLASSPATH=/opt/instantclient_11_2:...
    PATH=/opt/instantclient_11_2:...
    When i run my program i am getting the below error.
    java.sql.SQLException: ORA-12154: TNS:could not resolve the connect identifier specified
    at oracle.jdbc.driver.T2CConnection.checkError(T2CConnection.java:765)
    at oracle.jdbc.driver.T2CConnection.logon(T2CConnection.java:414)
    at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:546)
    at oracle.jdbc.driver.T2CConnection.<init>(T2CConnection.java:162)
    I am trying to connect through a thick client as below.
    Class.forName ("oracle.jdbc.OracleDriver");
                   Connection conn = DriverManager.getConnection("jdbc:oracle:oci8:@hostname_orcl", userid, pwd);
    I have seen in some forums that we need to set $ORACLE_HOME and $TNS_ADMIN env variables as well. But, here i am trying to connect to a remote database. what should i set these variables to as i don't have oracle in my machine??
    Thanks

    looks like you didnt complete the install of the instant client. the ORACLE_HOME and TNS_ADMIN points to the location of the tnsnames if you dont have the full tns string in your jdbc connection string
    https://kb.berkeley.edu/jivekb/entry.jspa?externalID=1826

  • On my Mac Mini, I keep getting this error message: "iCloud encountered an error while trying to connect to the server".  I don't have any problems with iCloud on my laptop / PC.  It works fine... Does anyone know what the problem could be?

    On my Mac Mini, I keep getting this error message: "iCloud encountered an error while trying to connect to the server".  I don't have any problems with iCloud on my laptop / PC.  It works fine... Does anyone know what the problem could be?

    Your Mac must be on Lion (10.7) to run iCloud. Apple had to change the operating system to fully support it. Nevertheless, it is possible to get emails from iCloud without having Lion. Please tell me if this interests you.
    Anyways, here is the link to buy Lion (30 dollars, totally worth the upgrade ): http://itunes.apple.com/be/app/os-x-lion/id444303913?mt=12
    Franklin

  • HT204053 How to resolve "error while trying to connect to the server."

    Receive "error while trying to connect to the server" on my PC when using iCloud. How to resolve?

    check the below link.
    /people/stephen.johannes/blog/2005/08/18/external-data-loads-for-crm-40-using-xif-adapter

  • HT4436 When trying to sign in I keep getting the error message, "iCloud encounterd a error while trying to connect to the server". How can I get signed in?

    When trying to sign in to iCloud, I always get the message, iCloud has encountered a error while trying to connect to the server. How do I get in????

    Hello,
    Try following step and check if issue gets resolved or not.
    Find Acrobat.exe on your computer.  Right click the program and click 'Troubleshoot Compatibility'.  Set the compatibility to Windows XP service pack 3.
    Regards,
    Anoop

  • Trying to setup new iCloud in system preferences and get error message: "iCloud encountered an error while trying to connect to the server."

    Here's the sequence of events:
    Setting up a new iMac.
    Migration Assistant was aborted during setup and a normal setup was completed.
    Then ran Migration Assistant from the newly setup account.
    It ran fine, but put all the data in a new account called "user".
    Renamed "user" to a new name, renamed the home folder to a new name following these instructions: OS X: How to change your account name or home directory name
    Delete the account we originally created, so just have one account with the name we want and all the data, email. Works fine.
    Sign into the App Store with the account we share for purchases.
    Now, the problem:
    Go to System Preferences to setup iCloud with a new Apple ID
    Get this error: "iCloud encountered an error while trying to connect to the server."
    So I'm unable to setup iCloud for photo stream, FaceTime, etc.
    Internet works fine, we can get mail, etc.
    Rebooting doesn't help
    Ideas?

    never mind the problem is gone this morning.

  • Error While Trying to Connect Weblogic

    im gettting an error while trying to connect server on jdeveloper 11.1.1.1.5
    The server is on LAN and installed on other PC I can also access the console and login correctly to console. After doing application server connection and testing the connection it gives me following error
    Testing JSR-160 Runtime ... failed.
    Cannot establish connection.
    Testing JSR-160 DomainRuntime ... skipped.
    Testing JSR-88 ... skipped.
    Testing JSR-88-LOCAL ... skipped.
    Testing JNDI ... skipped.
    Testing JSR-160 Edit ... skipped.
    Testing HTTP ... success.
    Testing Server MBeans Model ... skipped.
    Testing HTTP Authentication ... success.
    2 of 9 tests successful.
    any solution do u have
    regards
    Edited by: user5386925 on 22.Haz.2011 01:49

    Disable proxy settings in JDeveloper (Tools -->Preferences --> Web Browser and Proxy).
    Then, re-start JDeveloper IDE and re-test your application server Connection,it should work fine.

  • I keep getting an error that "iCloud encountered an error while trying to connect to the server". What's up?

    I've been getting an error most of the day that says "iCloud encountered an error while trying to connect to the server" on my pc. Also, anything I update on either iPad or iPhone does not update on the other device. What's up?

    Hello pongo19,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at:
    How to restart the Apple Mobile Device Service (AMDS) on Windows
    http://support.apple.com/kb/ts1567
    Close iTunes and disconnect the iPhone, iPad, or iPod touch.
    Click the Windows Start button .
    In the Start Search field type Services.
    In the Programs section of the search results, Click "Services".
    Select Apple Mobile Device and click Stop the service as shown below:
    After the service has stopped, click Start the service.
    After the Apple Mobile Device service has started again, open iTunes and connect the device.
    Set the Apple Mobile Device Service Startup type to Automatic
    Remove and reinstall iTunes and AMDS
    Best of luck,
    Mario

  • Why am I getting this error trying to sign into icloud encountered an error while trying to connect to the server????

    I am trying to sign into my mail and keep getting this error encountered an error while trying to connect to the server????

    I'm having the same issue.  Did you resolve it?

  • TS3988 I can't sign in to iCloud, message pops up stating that "iCloud encountered an error while trying to connect to the server". How do I sign in to iCloud now?

    Was using iCloud just fine on Mac and iPad and suddenly can't access it from either devices.
    When reviewing the settings on iPad a "verification failed, could not communicate with the server" message pops up.
    When trying to access iCloud account on icloud.com a "iCloud encountered an error while trying to connect to the server" message pops up.
    Meanwhile iCloud no longer works on both devices. (Apple ID works fine on Manage my Account)
    I don't remember changing any iCloud settings but I was working on email account settings when this happened....Any ideas??

    I have the same problem. This happens multiple times a day. I answer some questions and then unlock my account and then before long it all happens again. Extremely frustrating as I don't have a clue how to solve the problem.

  • Connection Error iCloud encountered an error while trying to connect to the server

    Hi iCloud users
    For the first time I have experienced errors while attempting to connect to iCloud via my PC.  Never had any problems previously.
    The first error I received was:
         "Connection Error - iCloud encountered an error while trying to connect to the server"
    After a few attempts I was able to connect to iCloud.  However I was unable to access my Calendar and Contacts.  I received the following error messages:
         "Can't load Calendar - There was a problem loading the application"
         "Can't load Contacts - There was a problem loading the application"
    Has anyone out there experienced this?  If so could you offer an solutions/suggestions?  Is iCloud not working properly today?
    Many thanks & cheers,
    Sue

    Hi
    I am sorry can't help you because I have same problem when login to icloude.com and try insert to Contacts!
    Many times happen.
    what is issues ?

  • ICloud encountered an error while trying to connect to the server

    My iMac 27 inch ( Mid 2011) running OSX 10.9.4.  Suddenly i have this problem "iCloud encountered an error while trying to connect to the server"
    Please help what has happened and how to solve the problem.

    You might want to just give it some time as there are a number of iCloud system issues effecting some users right now (see http://www.apple.com/support/systemstatus/).

  • Icloud encountered an error while trying to connect to the server' what does that mean?

    icloud encountered an error while trying to connect to the server' what does that mean?
    I am trying to get my contacts back by following a step by step guide online, but the falling at the first hurdle! trying to get into my icloud account on my pc?
    Can anyone help?

    never mind the problem is gone this morning.

  • I am unable to connect to the icloud from my windows laptop and get an error message: "Connection error: icloud encountered an error while trying to connect to the server"

    I am unable to connect to icloud from my windows-based laptop and get the following error message: "icloud encountered an error while trying to connect to the server."

    I would remove the email account from mail and then set it up again.
    If your are able to long I via owa though without the auto fill, then we already know the user name and password are correct.
    Let me know if that works.

  • HT4759 iCloud encountered an error while trying to connect to the server.

    When I try to log into my iCloud account this message props out "iCloud encountered an error while trying to connect to the server," what should I do?

    Smae issue here.
    Started today June 20, any ideas?

Maybe you are looking for

  • Need to format month into three characters in SSRS Expression

    I am using the following expression to place the month in the heading of a column. =MonthName(Month(DateAdd("M",-1,Now))) The expression above gives me the previous month, but I need to have it as "Jan", not "January". Can someone help me with an exp

  • I'm having a real hard time retrieving my emails from my old device

    I've switched to a 5s from a 4s I'm having a hard time reciveing my old and new emails and had to manually download all apps ,my contacts went through just fine I'm not reciveing any email? Can anybody help?

  • "Camera Raw is not loaded Bridge can not load camera raw"

    To any one who has a Mac and has fixed this problem please help. What happens is I can not open any photos in camera it just reads the caption above. I can get the photo open when I double click and it will go into PS6 bit any of the changes will not

  • [iPhone] UITabBar, UINavigationController, etc.

    I am very new to iPhone and Cocoa/Obj-C, but have been working in the .NET world for quite some time building WM apps using the .NET Compact Framework. Let's say I have an application design that uses a tab view with 3 tabs as its main UI metaphor. I

  • Problem with ITS after ECC 6.0 upgrade

    Hi All, I am facing problems with customized ITS application created based on CATW. It does not work properly after an upgrade to ECC 6.0 from 4.7. Some of the screens user interface is different when i compared that of with 4.7. I came to know that