Compilation and use of instant client

I have two questions:
1. Can I compile a ProC and OCI program with Instant Client (10.1.0.4 or 10.2)? If so, how do I do it? what settings need to be done?
2. Oracle 10g can be installed on SunOs 5.8 and above. Can I use Oracle Instant Client (which is 10g also) on lower level machine, like SunOs 5.7 ? Is there a matrix which shows the platform that instant client can be used?

Thanks Toliver for the quick answer.
I still have some missunderstanding regarding the second question.
I saw Oracle's Client/Server interoperability matrix, but this matrix (at list the one I looked at) only stated the combination of which client version can work with which Oracle's Server version.
The senario I am interested in is this:
I compile a C program which uses ProC and OCI in SunOs 5.8, against Oracle server 10.1.0.4.
Now, the program need to use Instant Client 10.1.0.4, and connect to 8i, 9i, and 10g databases.
The tricky part is that the program actually runs on SunOs 5.7 (where SunOs 5.7 is not stateted as a platform for 10g), but the 5.7 machine is not where the database is. The program connects other machines which has 8i,9i and 10g databases.
Will It work?

Similar Messages

  • Installing and using the instant client

    Hi, we are having some troubles with understanding how to use the instant client.
    We are using a windows client, connection to our Oracle database via odbc, so we can make some staticstics.
    We used to use the full oracle client 8 install, but when that gave us some troubles, so we wantedto switch to a newer release, and saw that there was an instant client. Thinking that i didnt need to install the full oracle client i downloaded the basic package and the odbc addon.
    I unzipped the two archieves in c:\oracleodbc on a clean computer.
    I added the c:\oracleodbc path to the %path%
    I added TNS_ADMIN system variable pointing to c:\oracleodbc
    i ran the odbc_install.exe program.
    I would now think that i could access the oracle database via odbc without having to install the full oracleclient, but it does not work.
    When i try to add a odbc connection in microsoft odbc manager i get the following error when i choose the oracle odbc driver:
    "The setup routines for the Oracle in instantclient10_2 ODBC driver could not be loaded due to system error code 126"
    When i click ok to that i get a new error window with the title: "Driver's ConfigDSN, ConfigDriver, or ConfigTranslator failed" and the error text:
    "Could not load the setup or translator library"
    I was not planning to use any TNS files, but just use the quickconnect string, to connect to the right oracle service.
    Do i still need to install the full client for it to work or what ?
    Hope someone can help out.
    Thanks in advance.

    I'm replying to an old thread, but did any of you ever got this resolved?
    I've got a fresh Windows 2003 Server install, from which I'd need to establish an ODBC connection to an Oracle database.
    I've downloaded Instant Client Basic and ODBC add-on, unzipped them into D:\oracle\instantclient10_2\ , added the path into PATH, TNS_ADMIN and ORACLE_HOME environment variables and run the odbc_install.exe successfully.
    Trying to create an ODBC connection (System DSN) results in "The setup routines for the Oracle in instantclient10_2 ODBC driver could not be loaded due to system error code 126".
    I don't have MFC71 on the server and I couldn't figure out where to get those - I won't install MS Visual .NET just for this. MFC42 appears to be included in the OS.
    Where can I get an older version of Instant Client instead?

  • I'm trying to distribute a DB Application using the Instant Client provided

    Hi!!
    I'm trying to distribute a DB Application using the Instant Client provided by Oracle.
    I've checked the FAQ of Oracle and says the Instant Client supports all existant versions of Oracle.
    But I've also seen in another posting that the oci.dll needs the same Oracle version file it was created with.
    I need to distribute an application that provides all the 8i, 9i and 10g versions.
    Do I have to distribute the oci.dll for each version?
    I just wanted to check if this was true.
    One more question, when I uncompress the Instant Client, many files appear from which
    I only left oci.dll, oraocci11.dll and oraociei11.dll and erased them all, but the program
    still works. Is it ok?
    thanx
    Edited by: user11139984 on 2009. 5. 6 오후 11:10

    I am not sure what you mean if you say that you "need to distribute an application that provides all the 8i, 9i and 10g versions".
    If you mean that you want your application to be able to access Oracle Databases of versions 8, 9 and 10, then you can use Instant Client 10.2.0.4 which is able to connect to all of them.
    If your application does not need more than the three DLLs you mention to run, that should be fine.
    Yours,
    Laurenz Albe

  • Unix/Linux: How can other OS-users use the Instant Client?

    Hello,
    I have a question concerning the practical use of Instant Client. I'm new to this topic and followed the installation guide for Instant Client and installed the software from CD as "oracle"-user belonging to "oinstall"-group.
    My question:
    How can I now grant access to the installed libraries which belong "oracle:oinstall" with a completely different user, lets say "tsmith" who belongs only to OS-group "users" ?
    What is the most recommended way to grant access to other users?
    (in the documentation I found the following statement "the only user accounts that should belong to the oinstall group are the Oracle software owner accounts. For example, the oracle user"....that would mean, it is not recommended to put the user "tsmith" into the "oinstall" group, isn't it?)
    Please tell me, how do you grant the access to Instant Client from other user accounts in daily life?
    Thanks a lot in advance for your help!
    Regards
    FireFighter

    Oracle tends to be as restrictive with access permissions to the installed software, which is good in principle, but often leads to problems and bugs.
    I'd say that if Instant Client is the only Oracle software you have installed in this Oracle Home, you can safely loosen the permissions on this Oracle Home.
    I'd change directories to 0755, normal files to 0644 and executable files (files that have executable permission for the owner) to 0755.
    Yours,
    Laurenz Albe

  • CR 2008 and ODBC connection using Oracle Instant Client driver?

    Two questions.
    I'm creating CR 2008 report using an ODBC connection. The ODBC driver is the Oracle Instant Client (version 10.2, I think.)
    When I define the connection, I see only a few tables. I do not see the Tables, Views, Qualifiers tree that I see with a normal Oracle Server connection.
    Does anybody know why this happens? Is there a CR ODBC driver that works better?
    Second question:  I have a .NET application that is pointing the report to another Oracle DB. In my db, table names are not unique -- each user has the same set of tables. I find that when the .net applciation sets the datasource, I get connected to the first table with a given name; I do not get the table scoped by the logon user.
    In the .net application, how do I scope the table name to a particular user.
    Any info helps. Thanks.
    Tim

    Hi Tim,
    Below are the replies to your questions:
    Answer 1: Please try the below steps:
    - Make sure that in File->Options->Database Tab in the Data Explorer section the corresponding checkboxes are checked for tables, views,system tables,synonyms and stored procedures and the Table name LIKE and Owner LIKE boxes are blank.
    - Please try with OLEDB connection and check the results.
    - You can also refer to this SAP note no# 1215994, the link to which is given below:
    [https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/sno/ui_entry/entry.htm?param=69765F6D6F64653D3030312669765F7361706E6F7465735F6E756D6265723D3132313539393426]
    Answer 2: If you are using RAS SDK only then you would be able to change table name. Please let us know if you are using RAS.
       If you are using RAS with Java please post your query in the Java forum else if you are using Visual Studio/.NET then please post your question in .NET Forum.
    Please update with the results.
    Thanks!

  • Compiling against the 10g Instant Client in Linux

    Does anyone know if it's possible to compile and successfully link C++ programs that use the occi header against the 4 shared occi libraries that come with the 10g instant client.
    I dug out the 30 or so header files that come with the full 10g Linux version and stuck them in the /usr/include directory. This allows compilation to get done. And it appears that I am able to link against the shared libraries. At least, after the link there is an executable. This executable seg faults immediately upon a run, so there is obviously something wrong.
    The system administrator is trying to do a full install of 10g so we can compile against an Oracle home, but he's been at it for about a week with no results. He was able to get the Instant Client set up, so I'm looking for a workaround that uses only the IC and the headers.

    Thanks for the feedback.
    We aren't using a 3.xx version of gcc; it's some 2.9x version.
    Are you saying that it should be possible to link up with the shared libs without a full client install? If it is, I'll keep plugging away; but I haven't found anyone anywhere who has at any time gotten it to work.

  • USername and password for Instant Client

    Hi,
    Im trying to install the instant client on my desktop for an SQL plus remote server. When I run sqlplus.exe it asks me for a username and password.. where do I get that from?

    That would be the user name and password for the database you are trying to connect to. The DBA may be in charge of creating accounts and handing out passwords-- if not, he should know who is.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • How to install and use certificates on client?

    Hello everyone, and first of all sorry for my poor, italian-accented english.
    I have some questions about SSL and certificates. I'm developing a java desktop application, which should connect to a https server, authenticate with a previously downloaded certificate and then gain access. Some specs: I work on a Windows Xp Pro machine with Netbeans 6.1 and jdk 1.6.0_07.
    Now, I'm using HttpUnit libraries to connect the first time, login with basic authentication and download the certificate, but after i get it I'm not sure how to install the certificate (using java, it has to be an automated procedure) on the client machine and then how to use it to connect to the server. I've tried to use the code I've found here and after using it I can see the certificate inside Control Panel > Java > Securiy > Certificates > System, but I'm not sure I'm installing it in the correct way and/or in the correct path.
    Everytime I try to connect to the server I get back a HTTP 403 forbidden exception. Does someone know any tutorials/howtos/example codes to suggest to me? Or could tell me what's the right installation procedure using java? Any help would be very appreciated.
    Thanks in advance
    K.

    After banging my head on my keyboard for a lot of hours, I've got it!
    I was trying to install a *.pfx certificate, and that was bad. I tried to convert it in *.p12 or *.cer but that workaround didn't work. Finally I've found a small code to use a *.pfx certificate without installing it and... it works! No more 403 errors now, I can get that damn page. :)
    Here is the class I've used (I've found it somewhere googling around but I've lost the link, sorry. Anyway, I've modified it a little)
    import java.io.BufferedReader;
    import java.io.FileInputStream;
    import java.io.InputStreamReader;
    import java.net.*;
    import java.security.KeyStore;
    import javax.net.*;
    import javax.net.ssl.*;
    public class ConnectWithPfx {
       static final int HTTPS_PORT = 443;
       public static void main(String argv[]) throws Exception {
          // Get a Socket factory
          SocketFactory factory = SSLSocketFactory.getDefault();
          SSLSocketFactory socketFactory = null;
          try {
                KeyStore keyStoreKeys;
                KeyManagerFactory keyMgrFactory;
                SSLContext sslContext;
                keyStoreKeys = KeyStore.getInstance("PKCS12");               
                keyStoreKeys.load(new FileInputStream("mycertificate.pfx"),"certpassword".toCharArray());
                keyMgrFactory = KeyManagerFactory.getInstance("SunX509");
                keyMgrFactory.init(keyStoreKeys, "certpassword".toCharArray());
                sslContext = SSLContext.getInstance("SSL");
                sslContext.init(keyMgrFactory.getKeyManagers(), null, null);
                socketFactory = sslContext.getSocketFactory();
                Socket socket2 = factory.createSocket("www.my.host", HTTPS_PORT);
          } catch (Exception e) {
                e.printStackTrace();
            URL url = new URL("https://www.my.host/mypage");      
            // Open a HTTP connection to the URL assigning the SocketFactory we created before
            HttpsURLConnection conn = null;
            conn.setDefaultSSLSocketFactory(socketFactory);
            conn = (HttpsURLConnection) url.openConnection();              
            // Allow Inputs
            conn.setDoInput(true);
            // Allow Outputs
            conn.setDoOutput(true);
            // Don't use a cached copy.
            conn.setUseCaches(false);
            conn.setRequestProperty("Connection", "Keep-Alive");
            BufferedReader in = new BufferedReader(new InputStreamReader(conn.getInputStream()));
            String line;
            String response = "";
            while ((line = in.readLine()) != null) {
                response += line+"\n";
            System.out.println(response);
    }Hope this could be useful for someone else. Thanks to everyone who read or replied to my thread. :)

  • I am having trouble installing and using remote desktop client and admin on the same imac.  I need help?

    Can you give me a step by step on getting the client and the admin part of remote desktop to work?  I am new to this and I need for remote desktop to work to install the Faronics Deepfreeze enterprise console on the new imac in office.  The OSx version is 10.8.3  Any help will be greatly appreciated.  Also, when I go to install the admin, it says that the remote desktop client is not updated and I cant get mac app store to show any updates.  May be doing something wrong.

    This is what I usualy do to setup ARDclient on a client computer.
    on the client computer
    go to menu bar (white bar at top of the screen)
    click on the apple menu
    chose system preferences
    click show all button
    click Users & Groups
    click the lock to unlock
    click + to create a new account
    chose new account: type "administrator"
    name the user some thing applicable like "ARDuser"
    set a secure password
    click create account
    click show all button
    click sharing
    set the computer name to some thing descritpive that identifies the computer
    check remote login
    click on remote login
    set allow access for: "only these users"
    click the +
    chose the ARDuser from the list
    click select
    check remote management
    click on remote management
    set allow access to "only these users"
    click the +
    select the ARDuser from the list
    click select
    check: observe, control, genereate reports, open & quite applications, delete and replace items, start text chat or send messages, restart & shutdown, copy items
    click ok
    click the lock to lock system preferences
    click show all
    quite system preferences
    At this point you should be able to connect to the client using Apple Remote Desktop using the ARDuser setup above. Make sure the client and the ARD computer are on the same network the same way. IE both on ethernet or both on wifi. On the same internet conenction, if your were trying to conenct to a client over the internet there is more involved. 
    on the ard computer:
    open apple remote desktop
    from the left column select discover
    make sure the list is set to bonjour
    the client computer should show up on the list, with the name set above
    select the client from the list
    click control
    you will be prompted for the user/pass to log into the computer. that's the ARDuser setup in the steps above.

  • Is there anyone compiled and used omni openmp 1.6 without problem?

    Hi,
    I downloaded and compiled omni openmp 1.6. It does not give errors on compile, when I type make and make install. However, it is impossible to compile an openmp program with it.
    Do you have any idea? Or do you know a free implementation of openmp?
    thanks in advance...

    I managed to compile omni 1.4a:
    ./configure --disable-jvm --enable-gcc --with-thread=pthread
    make
    make install
    after install
    mkdir /usr/include/openmp
    cp /usr/local/lib/openmp/include/*.h /usr/include/openmp
    it works

  • Connectionstring to be used in ASP for instant client ??

    Hi,
    I'm trying to use oracle instant client for one of my projects.
    I have installed basic, sqlplus and ODBC for instant client.
    I have set all the environment variables. I have the tnsnames.ora and sqlnet.ora
    So far I have succeeded in connecting to a DB Server through sqlplus. I also created a DSN successfully using the driver "Oracle in instantclient10_2" which gets installed when I install instant client ODBC. These indicate that mos tof settings are right. It is good so far.
    Now I'm trying to use a connection string in ASP which connects to a DB server using this instant client.
    I need one DSN connection string and one DSN-less connection string.
    So far I have tried the following:-
    1)
    Driver={Oracle in instantclient10_2};Server=<Service Name>;Uid=<UserID>;Pwd=<Password>;
    This resulted in the error:-
    Microsoft OLE DB Provider for ODBC Drivers error '80004005'
    [Oracle][ODBC][Ora]ORA-12560: TNS:protocol adapter error
    2)
    StrCon.Open "Driver={Oracle in instantclient10_2};Dbq=<Server IP address>:<port>/<serviceName>", "UserID", "Password"
    This resulted in the error:-
    Microsoft OLE DB Provider for ODBC Drivers error '80004005'
    [Oracle][ODBC][Ora]ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
    Can you please help me out with these?
    Thanks in advance
    Jai

    Hello,
    I tried to use either of the 2 connections you gave but I still get an error:
    DSN
    Microsoft OLE DB Provider for ODBC Drivers error '80004005'
    Specified driver could not be loaded due to system error 5 (Oracle in instantclient10_2).
    DSN-less Connectionstring:
    Specified driver could not be loaded due to system error 5 (Oracle in instantclient10_2).
    Thanks in advance,
    Do you have an idea as why this happens?

  • Oracle Instant Client and OUT Parameter of custom type in Stored Procedures

    Hi @ all!
    I try to set up a simple client application, that calls a stored procedure via Instant Client from C#.
    The stored procedure and assiciated types looks like this:
    TYPE MYVALUE AS OBJECT
          Id      INTEGER,
          value     FLOAT
    TYPE MYVALUELIST AS TABLE OF MYVALUE;
    PROCEDURE ReadValues( ID IN INTEGER,
                                        RESULTSET OUT MYVALUELIST)
                                           IS
    ...I created an Oracle Command executing this SP and added OracleParameters for ID and (where I got stuck) the RESULTSET.
    Is it possible to pass a parameter with a custom type from C# in some way?
    I already tried it as a function with SELECT * FROM TABLE(ReadValues(1));
    With my parameter RESULTSET as the RETURN type. But since I use DML within the procedure, this does not work inside of a query...
    Any suggestions?
    Thanks in advance!

    Hi Greg!
    Sorry, I misunderstood the forum topic then. =(
    Anyway, in the example you provided in the link, this is nearly exactly my situation. But there the Oracle.DataAccess.Client is used, where the OracleDBType can be called to initialize an object of type person. I use the instant client libraries called by using System.Data.OracleClient. There is only the OracleType enum, that does not contain an object or something similar.
    So I do it right now after trying a bit with a ref cursor parameter and an OracleDataAdapter - the ref cursor is passed back from Oracle as a DataReader, so die DataAdapter is able to use it for a .Fill():
    OracleCommand cmd = new OracleCommand();
    cmd.Parameters.Add("RESULTSET", OracleType.Cursor).Direction = ParameterDirection.Output;
    OracleDataAdapter odr = new OracleDataAdapter(cmd);
    DataTable result = new DataTable();
    odr.Fill(result);Within my stored procedure I just added the following OUT parameter:
    PROCEDURE ReadValues( ID IN INTEGER,
                                        RESULTSET OUT sys_refcursor)
                                           IS
    currentlist MYVALUELIST;
    ... [Adding elements to that list] ...
    OPEN resultset for select * from TABLE(currentlist);It works now, but I don't like that solution that much since I'm always afraid that there are lots of opened cursors idyling around. Do I have to close this one explicitly after filling my table by the DataAdapter?
    Regards

  • 10G Instant client and import command

    Hi all,
    Am using the 10G instant client and need to use the import command through this client but cannot find it anywhere. Does the 10G instant client provide this functionality or anyone know of a workaround for this.
    All replies much appreciated,
    Tom

    Thats a pity. I thought I read someplace that you dont lose any client functionality by using the instant client as opposed to using the client cd install. Is it just that the instant client replicates the connection functionality of a normal 300mb client install?

  • NLS_LANG with Instant Client and MS Access

    Hello Everybody.
    Recently I downloaded Oracle Instant Client 10.1.0.3. I made a custom instalation for my little Access (ODBC)application.
    In the begining the installation had not any other configuration than PATH Environment variable and ODBC basic DLL paramaters. That configuration worked very well for some minutes, until I realized that some rows in my linked tables appeared as #DELETED.
    I made a little web-based investigation on the Microsoft and Oracle web site and I arrived to the NLS_LANG parameter. I realized it was my problem because I have Latin American characters in my rows and those rows were the "#DELETED" row I saw in my tables.
    I did "select * from NLS_DATABASE_PARAMETERS" and that command showed AMERICAN and WE8DEC as NLS_CHARACTERSET.
    I set the NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P1 and the problem disapeared.
    My question is: Is that the correct configuration in this case?
    PD:I'am using Win XP Pro in Spanish.
    Thanks

    Hi,
    >>then I use Oracle Instant Client
    It's possible that maybe a NLS environment variables configuration problem ... For more information, I advise you to take a look at [url http://www.oracle.com/technology/tech/globalization/htdocs/nls_lang%20faq.htm] NLS_LANG FAQ
    Cheers
    Legatti

  • Windows 7, Oracle DB, Instant Client and VBScript

    I'm trying to to connect to a Oracle database via vbs on a Windows 7 machine using the instant client.  I get an error [Oracle][ODBC][Ora]Ora-12560: TNS:protocol adapter error Code 80004005.  Script still works fine in XP using the Microsoft ODBC for oracle.  I've setup the system dsn, and added tns_admin option to the system environmental path.  Here's the connection line
    psconn.Open "DRIVER={Oracle in instantclient_11_2};SERVERNAME=192.168.50.1:1521/PSPRODDB;User Id=user;Password=pass;"
    I've tried 32 bit instant client and the 64 bit and get the same messages with both.  Any suggestions?

    12560 means you didnt supply a tnsnames alias, and a database was not found in that home.
    Try this:
       "DRIVER={Oracle in instantclient_11_2};DBQ=192.168.50.1:1521/PSPRODDB;uid=user;pwd=pass;"
    Using Oracle ODBC Driver
    Hope it helps,
    Greg

Maybe you are looking for

  • JDBC: Closing Connection does it close statement and resultset

    In my application I am facing ORA-0100 Maximum open cursors exceeded problem. We are executing quite a few queries and stored procedures before we close the connection object. But in few places statements and resultsets are not closed. Can these be a

  • Understanding the data storage

    Hello, In order to understand very well what happens regarding the data in the cube and in the relational database, here is a little scenario. Clould you please tell me whether my understanding is correct or not. Further precisions are welcome : If I

  • JNLP and JRE versions...

    I have a machine with JDK 1.2.2 and Java Web Start 1.0.1 (update package). I am accessing an app. that runs on JRE 1.3, but I cannot update to 1.3 yet due to other application dependencies. Is there a way that the downloaded app. can be packaged in s

  • Mountain Lion cannot access Time Capsule

    Hello, I just finished installing Moutain Lion and trying to access my things on Time Capsule. I cannot do that. Migration Assistant is saying that some backup could not be accessed, accesing by Time Machine prefs paneldoesn't work (operation can't c

  • Emails In HtmlDB

    Hi all, Can any one tell me how can we start MS Outlook when we click field on Oracle Html Db Application Thanks alaa [email protected]