Attempting to Run 'Instant Client' via XCode on Mac OS X (v10.4.6)

Environment: OS X (10.4.6) on G4.
The Setup:
I used 'Oracle Instant Client Installer' {http://www.kyngchaos.com/} to install the necessary Oracle libraries here:
[Users/oracle]ls /usr/local/oracle/lib
libclntsh.10.1.dylib* libclntsh.so@ libnnz10.dylib@ libocci.dylib.10.1@ libocijdbc.dylib@
libclntsh.dylib@ libnnz.10.dylib* libocci.10.1.dylib* libociei.dylib* libocijdbc10.dylib@
libclntsh.dylib.10.1@ libnnz.dylib@ libocci.dylib@ libocijdbc.10.dylib*
I've read that LD_LIBRARY_PATH is rather "archaic" for the Mac OS X vs a directory of dylibs accessable directly from XCode.
2) I set the XCode 2.2.1 Library search Path as:
USER_HEADER_SEARCH_PATHS = /usr/local/oracle/sdk/include
LIBRARY_SEARCH_PATHS = /usr/local/oracle/lib
==============
So my questions are:
1) How do I find the available APIs?
I've looked at an on-line example but don't know what I'm doing.
I saw some source-code demo on-line so I essentially cut/pasted the following code.
The following is what I've done within the NSApp's Delegate method:
#include "/usr/local/oracle/sdk/include/oci.h"
static OCIEnv *p_env;
static OCIError *p_err;
static OCISvcCtx *p_svc;
static OCIStmt *p_sql;
static OCIDefine p_dfn    = (OCIDefine ) 0;
static OCIBind p_bnd    = (OCIBind ) 0;
int p_bvi;
char p_sli[20];
int rc;
char errbuf[100];
int errcode;
@implementation AppDelegate
- (id)init {
     self = [super init];
     if (self) {
          rc = OCIInitialize((ub4) OCI_DEFAULT, (dvoid *)0, // Initialize OCI
          (dvoid * (*)(dvoid *, size_t)) 0,
          (dvoid * (*)(dvoid *, dvoid *, size_t))0,
          (void (*)(dvoid *, dvoid *)) 0 );
          // Initialize environment
          rc = OCIEnvInit( (OCIEnv **) &p_env, OCI_DEFAULT, (size_t) 0, (dvoid **) 0 );
          // Initialize handles:
          rc = OCIHandleAlloc( (dvoid *) p_env, (dvoid **) &p_err, OCI_HTYPE_ERROR,
                         (size_t) 0, (dvoid **) 0);
          rc = OCIHandleAlloc( (dvoid *) p_env, (dvoid **) &p_svc, OCI_HTYPE_SVCCTX,
                         (size_t) 0, (dvoid **) 0);
     NSLog(@"{Appdelegate} Init.");
     return self;
} // end init().
==============
What I get is:
test has exited due to signal 6 (SIGABRT).
[Session started at 2006-05-20 16:01:28 -0700.]
ZeroLink: unknown symbol '_OCIInitialize'
2) Am I on the right track or what am I doing wrong?
-- Oracle/OS X neopyte.
Ric.

Firefox 4 requires at least OS X 10.5 and an Intel Mac. There is a third party version of Firefox 4 that runs on OS X 10.4/10.5 and PPC Macs, for details see http://www.floodgap.com/software/tenfourfox
If you prefer, you can get the latest version of Firefox 3.6 from http://www.mozilla.com/en-US/firefox/all-older.html

Similar Messages

  • No Instant Client 10.2 for Mac PPC?

    I'll skip the rant about there not being an Oracle Instant Client for Intel Mac since that appears to have been covered in a previous thread.
    But where's the 10.2 instant client for PPC Macs? All other platforms (at least the ones I care about) have 10.2 but Mac is stuck at 10.1. When I link against the 10.1 library, I get the following unresolved externals:
    __ZTIN6oracle4occi12SQLExceptionE
    __ZTIN6oracle4occi7PObjectE
    Please tell me there's a 10.2 available for Mac, even if it's only PPC. Maybe somebody just forgot to update the links on the download site?

    hi there. i've got (almost) the same problem on my mac ppc (darwin kernel version 8.10.0) with g++ 4.0.0, but i only have an unresolved __ZTIN6oracle4occi12SQLExceptionE.
    there is a workaround for the SQLException problem. as SQLException extends std::exception you can use
    try {
    catch(std::exception& exception) {
    int oraCode(exception.getErrorCode());
    std::string oraMessage(exception.getMessage());
    // do whatever you like with oraCode and oraMessage
    instead of
    try {
    catch(oracle::occi::SQLException& exception) {
    int oraCode(exception.getErrorCode());
    std::string oraMessage(exception.getMessage());
    // do whatever you like with oraCode and oraMessage
    throughout your code, which will not require
    __ZTIN6oracle4occi12SQLExceptionE to be resolved (or generated).
    as i mentioned before, i haven't come across the PObject problem. what compiler are you using (i suppose g++ 4.0.0)? what are your compiler and linker flags?
    best wishes from hamburg, matt

  • Running iPad Apps via xcode

    Is it possible to run iPad apps and books successfully without an iPad if I install xcode on my iMac?

    No. Xcode has iOS Simulator for test your applications, but not for others

  • Limiting Applications that can run on clients via WGM

    In the midst of setting up a new primary school server and having some issues with the application filtering in WGM.
    I obviously need to stop the students accessing the utilities folder and various other apps on their 10.5 client machines.
    When ever I add all the apps I don't want them to access into their group prefs in WGM it will ask for a signature for the third party stuff and then on a client machine they cannot login at all (shakes)
    Any thoughts anyone?

    Hiya,
      I kind of doubt this is still a requirement given the age of the post, but please see my recent article :
    [http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/70ed80f3-5964-2e10-90b9-e833ade5e8c5|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/70ed80f3-5964-2e10-90b9-e833ade5e8c5]
    It gives a step-by-step of getting SAP to talk to Google Desktop Gadgets.
    I think that the Imagineering(?) Team came up with a similar concept.
    All the best
    Patrick

  • RH 8 running on W7 via Parallels on Mac

    Have a new MacBook Pro (i7 - 4GB RAM) and have W7 working as a virtual machine via Parallels with 1GB RAM assigned to the VM. I've had no issues with this, until I needed to look at a RoboHelp project.
    Adding books or pages to the TOC, changing any of the SSL output settings, editing the HTML is so slow as to make RH impossible to use. All other members of TCS 2 work ok.
    I know someone else who has had the same issues. Is there any way around this?

    I am no hardware expert but if that means RoboHelp only has access to 1gb of memory, I'm not surprised it is running slowly. Whilst it is the minimum spec, minimum is just that.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Instant Client 11.1.0.1, Perl DBD::Oracle, and Kerberos

    Hi all,
    I'm trying to get an Instant Client working so I can connect to remote server and sync the data up with our own. It works, but there is a problem. Basically, if I connect via the Perl DBI and DBD::Oracle, Kerberos authentication bits get screwed up for the rest of the process. If I connect to the remote server, and then a local non-Oracle service via Kerberos, the latter fails. Note that, if done separately, they work fine.
    Looking into it, it appears that it wants to open the file /krb5/krb.conf, which doesn't exist for me (/etc/krb5.conf is the Kerberos config file). I found something online (http://download-west.oracle.com/docs/cd/B10501_01/network.920/a96573/asoappb.htm) that suggests that I should change some KERBEROS* parameters in $ORACLE_HOME/network/admin/sqlnet.ora. Either I'd like to have it try to open the right Kerberos config, or just ignore Kerberos altogether. Unfortunately, I have an old sqlnet.ora, that appears to have been generated by some external interface, and I'd like to maybe do this again, the "right way".
    [koczan@ator] ~ $ cat /s/oracle-csl/network/admin/sqlnet.ora
    # SQLNET.ORA Network Configuration File: /local.gazoo/oracle/network/admin/sqlnet.ora
    # Generated by Oracle configuration tools.
    NAMES.DEFAULT_DOMAIN = cs.wisc.edu
    NAMES.DIRECTORY_PATH= (TNSNAMES)
    The other thing I'm wondering is why it's even looking at Kerberos. Doing ldd on the sqlplus binary, the libraries, and the DBD::Oracle shared library showed no reference to Kerberos.
    [koczan@ator] ~ $ ldd /s/oracle-csl/perl5/lib/site_perl/5.8.6/i686-linux-64int/auto/DBD/Oracle/Oracle.so
    linux-gate.so.1 => (0x0043d000)
    libclntsh.so.11.1 => /s/oracle-csl-0/lib/libclntsh.so.11.1 (0x00783000)
    libocci.so.11.1 => /s/oracle-csl-0/lib/libocci.so.11.1 (0x00110000)
    libociei.so => /s/oracle-csl-0/lib/libociei.so (0x02cf2000)
    libc.so.6 => /lib/libc.so.6 (0x00272000)
    libnnz11.so => /s/oracle-csl-0/lib/libnnz11.so (0x004ea000)
    libdl.so.2 => /lib/libdl.so.2 (0x003b2000)
    libm.so.6 => /lib/libm.so.6 (0x003b6000)
    libpthread.so.0 => /lib/libpthread.so.0 (0x003dd000)
    libnsl.so.1 => /lib/libnsl.so.1 (0x003f4000)
    libaio.so.1 => /usr/lib/libaio.so.1 (0x0040b000)
    libstdc++.so.6 => /s/gcc-3.4.4/i386_cent40/lib/libstdc++.so.6 (0x0215a000)
    libgcc_s.so.1 => /s/gcc-3.4.4/i386_cent40/lib/libgcc_s.so.1 (0x0040d000)
    /lib/ld-linux.so.2 (0x004cf000)
    So, is there something I'm missing? What would be a good way to make everything happy? I tried looking online for this, and asking the DBD::Oracle people, and I couldn't find anything.
    I'm running Instant Client 11.1.0.1 on Red Hat Enterprise Linux 5.1, Perl 5.8.8, DBI 1.602, DBD::Oracle 1.19, Kerberos 1.6.2.
    Thanks. I know this was a lot of info and questions for this, but any help would be appreciated.

    There's no SQLNET.AUTHENTICATION_SERVICES set in my sqlnet.ora. I assume it's using some sort of default or trying everything, is there a way to tell what it's doing even though nothing is set?
    All I need to do is connect via password-based authentication to a remote server. What should SQLNET.AUTHENTICATION_SERVICES be set to for that?
    I couldn't find any clear resource documenting SQLNET.AUTHENTICATION_SERVICES, if you could point me to one that would be excellent.
    Thanks.
    P.S. Here's the entirety of my sqlnet.ora file.
    # SQLNET.ORA Network Configuration File
    # Generated by Oracle configuration tools.
    # Originally on gazoo - /local.gazoo/oracle/network/admin/sqlnet.ora
    # Modified for use with Oracle InstantClient
    NAMES.DEFAULT_DOMAIN = cs.wisc.edu
    NAMES.DIRECTORY_PATH= (TNSNAMES)
    SQLNET.KERBEROS5_CONF=/etc/krb5.conf

  • Instant Client on a USB thumbdrive

    Can you install and run the client from a USB thumbdrive? I want to be able to access my oracle from my home computer at work.

    You can run Instant Client from any device.
    You will have to find a way to add the directory that contains Instant Client to the PATH environment variable.
    If you need sqlnet.ora or tnsnames.ora or ldap.ora, you must also set TNS_ADMIN.
    Make sure that there is no firewall or proxy server between client and server.
    Yours,
    Laurenz Albe

  • Can SAP Kernel 640 (linked OCI_9.2) run Ora DB 9.2 via instant client 10g ?

    Hello,
    One of our old system runs a SAP Kernel 640 OCI_920.
    DB server runs Oracle 9.2
    We would like to backup it with RMAN to take advantage of backup as saveset with disk_copy_cmd = rman_set
    So according to OSS 1101530, we should run at least BrTools 7.00 patch 30 or BRTools 7.10 patch 5.
    OSS 849483 and 1060539 state that those Br*Tools can be run with a database server Oracle 9.2 if an Oracle instant client 10g is installed on the Database server.
    I wonder if it is possible without upgrading the DB Server to oracle 10g
    1) Can SAP Kernel 640 (linked OCI_9.2) run Ora DB 9.2 via instant client 10g ?
    2) Or should we go to an SAP Kernel 640_EX2 ?
    3) If so, shouldn't Oracle server be upgraded to 10g beforehand ?
    I will try to get some clue in the product availibility matrix, but if you already have some piece of information about it, please just shoot !
    Thx in advance for you time
    Edited by: Emmanuel TCHENG on Mar 30, 2010 12:25 PM

    Hi,
    Check SAP Note 521230 - FAQ: Client software 9i or lower on UNIX
    Thanks
    Sunny

  • ORA-01816 when running with Oracle Instant Client

    good morning
    we are running the same SQL script on 2 computers.
    - native system with DB
    - via Oracle Instant client
    when running via the instant client i get the following error.
    ( select to_char(to_date('1970-01-01') + "DATE" / 86400000, 'YYYY-MM-DD') "CD", logical_name
    ERROR at line 2:
    ORA-01861: literal does not match format string
    thanks for any hint

    It probably works on one and not the other because you have set the NLS_DATE_FORMAT for one system to match the format of the string you are passing in, so Oracle knows how to do the implicit conversion.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Obtaining an ODBC link to an Oracle 9.2 database via Instant Client

    Hi
    Justin Cave, on one of your other forums, has been assisting but as of yet we have not suceeded. He suggested that this forum may be of help.
    We are trying to find a way of linking a Microsoft Access database to an Oracle 9.2 database but as of yet have not suceeded can you please help?
    The database server we are trying to connect to has a full installation of Oracle 9.2. We have a limited number of workstations that have a fully licensed Oracle client installation (required to use our PDM system). On these workstations we can successfully configure an ODBC connection to the Oracle database on the server and link tables in MS Access. However the majority of our PCs do not have any Oracle client installed, nor do we have any further Oracle client licenses to install with (we do have the installation media for both the server and client software).
    We have attempted to use Orcale Instant Client (and ODBC addon) believing that we do not need licenses for this, at both the latest version 11.1.0.70 and at the earliest version we could find 10.1.0.5 but neither was successful in making an ODBC connection to the Oracle 9.2 database. Is this because we are using the wrong version of the Instant Client or is it just because we cannot configure it correctly? Are we correct in believing that we do not need to purchase licenses for Instant Client?
    If we are way off the mark, what can you suggest?
    Many thanks in advance.
    Kevin (and co)

    Hi Laurenz,
    Firstly, thank you for your prompt response.
    Secondly, in answer to some of your questions:
    1. How did you install Instant Client? By extracting the downloaded package to a directory on the local HDD (C:) maintaining the subfolder structure.
    2. What environment variables did you set? We set TNS_ADMIN using the System Properties Dialog (Environment Variables) to be the folder where Instant Client was installed to (extracted to) i.e. C:\InstantClient_11_1. We also amended the PATH to include this folder using a command prompt and typing PATH=%PATH%;C:\InstantClient_11_1. This works but only until the next reboot when the PATH reverts to the previous value.
    3. Did you run the odbc_install script to install the ODBC driver? Yes, we extracted the ODBC add-on into the same folder and ran the ODBC_install.exe script successfully.
    4. Does the driver show up in the list of drivers on your system? Yes.
    5. Do you get any error messages? When we use v11.1.0.70 and hit the test connection button within ODBC admin, we get a noticiable delay followed by 'Unable to connect... TNS could not resolve the connect identifier'. When we use v10.1.0.5 we cannot even complete the System DSN ODBC configuration.
    Our next questions are as follows:
    1. Is the TNS_ADMIN environment variable case sensitive and should it have a \ after the folder name?
    2. How do we amend the PATH permanently, so it does not revert following reboot?
    3. What part does tnsnames.ora play in the configuration. This file currently resides deep within the folder structure on the database server. Should we be copying it to the local C: and placing it in the same folder as Instant Client?
    Once again, many thanks for your help.
    Yours,
    Kevin (and co)

  • Request: enable use of sql*plus via Oracle Instant Client.

    hi,
    great project....
    I've just installed Raptor release 3 on top of oracle instant client, and it seems to be running fine. my sql*plus from the instant client functions from the command line, but the sql*plus menu item in the tools menu is grayed out.
    review of the help files say's that oracle_home must be set, but instant client does not need an oracle_home. (uses tns_admin instead).
    is there a work around for this? (other than loading the full oracle client w/ it's sql*plus)
    thanks
    GT

    The SQL*Plus menu item does not seem to be correctly detecting the current connection context. I'm filing this as a bug to be fixed before we ship. In the current version, however, you can enable the menu item by ensuring first that the connection is selected in the Connections navigator.
    When the menu is invoked, you will be prompted for the location of the SQL*Plus executable. On Windows, this should just be the path to sqlplus.exe (or sqlplusw.exe). On Unix platforms, you should include 'xterm' or an equivalent in order to ensure that SQL*Plus invokes in a window.
    - John
    Raptor Development Team

  • Attempt to load Oracle client libraries threw BadImageFormatException. This problem will occur when running in 64 bit mode with the 32 bit Oracle client components installed.

    Hello guys,
                Problem has been solved -
    Attempt to load Oracle client libraries threw BadImageFormatException. This problem will occur when running in 64 bit mode with the 32 bit Oracle client components installed.
    1. If you install 64 bit oracle this is not an issue. Install 64 bit oracle.
    2. Download odp.net 32 bit  from below link:-
        ODP.NET Managed Driver Beta Download</title><meta name="Title" content="ODP.NET Managed Driver B…
    3. installed the odp.net.
    4. open the visual studio 2010.
    5.Select new - project - asp.net web application - project name -ok
    6.select tools- > connect to database- then follow the following steps
                             i>  user name - your user name/client username (example -- hr)
                             ii> password -- enter your password/client password  (example- hr)
                            iii>select connection type -- if you want to connect client database then- select EZ connect other wise select tns
                            iv>test the connection- then you will get connection succeed.
                            v> then click ok
    Thanks
    Chandrashekhar

    You do not need to do anything in VS.  You do need to configure both tnsnames.ora files, because the drivers do not share any data.
    Please see:
    http://sqlblog.com/blogs/jorg_klein/archive/2011/06/09/ssis-connect-to-oracle-on-a-64-bit-machine.aspx

  • How to run Pro*C application with Instant Client in Oracle 10g

    i am try to run but Pro*C application give error orasql10.dll
    i have downlod Instant Client in Oracle 10g from site. i have unzip and maked environmental virable in PC.
    but application not run. given error orasql10.dll .......
    my problem is thrat i want to run Pro*C application with Instant Client in Oracle 10g .....
    oracle say that run but how........

    According to this thread, it does not work on Windows:
    Does Instant Client 10.1.0.4 for Windows 32 support ProC ?

  • Instant Client with ADO on VBA -- Run-time error '-2147467259 (80004005)' -

    VB 6.0 uses Instant Client and Win XP Pro sp2 operating system. The MDAC has been checked and it is 2.8 sp1.
    The same project works on Win 2000 pro.
    Installing the run-time, thick, client makes the application work.
    We are getting the following error:
    Run-time error '-2147467259 (80004005)';
    Oracle error occurred, but error message could not be retrieved from Oracle.
    Any ideas?
    We have tried privleges, ORACLE_HOME variable, all kinds of things. Bring us your suggestions we are weary.....
    Thanks,
    Linda

    It looks like some sort of overflow. Instant Client does not support ADO.NET yet, if that is what is causing the problem. I hope that helps.

  • How do I solve the following message from Code Blocks on a OS X (10.10.2): "Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo." ?. It appears when I try to compile any code.

    Whenever I try to compile any code the following messagem appears: "greeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo."
    I'm using CodeBlocks v. 13.12. Its file (codeblocks-2.app) is inside the App folder.

    I suggest you ask whomever makes CodeBlocks.
    They would be the most knowledgeable.

Maybe you are looking for

  • How do I send a 2 minute video ?

    What format should I use to send a 2 minute video over email?

  • VF02 how to change Posting status on header tab

    how can  i change posting status in vf02. I have changed billing date from last month to current month. On the header tab there is posting  block ( it its greayed out righ now )  - Error in Accounting interface. How can i remove that ? Vanbills.

  • OWB repository doesnt allow deploying or executing of mappings

    Hi , I have run into a strange problem since a couple of day with 2 of my repositories Rep 1: Database : Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod PL/SQL Release 10.2.0.3.0 - Production CORE 10.2.0.3.0 Production TNS for Linux:

  • Testing if two tables have the same structure

    Hi, I am looking for a tool that provides support for verifying whether two tables or databases schemas are same or not. I want to input two sql script files: 1. one containing the create table for creating a table with name, id and email 2. other co

  • Add on to Existing License

    We have purchased the K1 license(DESKLESSPACK comprise SHAREPOINTDESKLESS, EXCHANGE_S_DESKLESS). See below. PS C:\Windows\system32> Get-MsolAccountSku | Where-Object {$_.SkuPartNumber -eq 'DESKLESSPACK'} | ForEach-Object {$_.ServiceStatus} ServicePla