Pro*C compiled on 11g should load libclntsh.so of 10g

Is it possible that a program compiled with ORACLE 11g Pro*C compiler to load libclntsh.so of 10g ?
My problem is source compiled on 10g works fine for even when connected to 11g database. But it get crashed with compiled on 11g and run in same environment.
Can any please help?

Pro*C doesn't compile the program. It just creates a .c file.
Then you compile and link it with the library libclntsh.so
libclntsh.so -> libclntsh.so.11.1
libclntsh.so.10.1 -> libclntsh.so
To fool the compiler you have to COPY the data of the library:
mkdir ~/1
cd ~/1
cat $ORACLE_HOME/lib/libclntsh.so > libclntsh.so.10.1
ln -s libclntsh.so.10.1 libclntsh.so
gcc -L$HOME/1 -lclntshBTW, what do you mean by crashing? If you try to run the compiled program and it can't find the library, it's not a crash

Similar Messages

  • Pro*c errors in 11g. -- Compiles fine in 10g.

    Hi,
    We are planning to migrate from 10g to 11g so started compiling our Pro*c code in to 11g. Got several errors and couldn't trace. So to investigate further I have written a basic pro*c program as follows:
    #include <stdio.h>
    #include <sqlca.h>
    /*#include <sqlcpr.h>*/
    #include <oraca.h>
    #include <sqlda.h>
    /* Declare error handling function. */
    void sql_error();
    int main(int argc, char** argv)
    char user[]="myusername";
    char pwd[]="mypassword";
    char msg_buf[51]="";
    /* Register sql_error() as the error handler. */
    EXEC SQL WHENEVER SQLERROR DO sql_error("ORACLE error\n");
    EXEC SQL CONNECT :user IDENTIFIED BY :pwd;
    EXEC SQL
    INSERT INTO hello_world
    VALUES ('Hello world!');
    EXEC SQL COMMIT;
    EXEC SQL
    SELECT msg
    INTO :msg_buf
    FROM hello_world
    WHERE rownum <= 1;
    printf("%s\n", msg_buf);
    return(0);
    void sql_error(char *msg)
    char err_msg[128];
    int buf_len, msg_len;
    EXEC SQL WHENEVER SQLERROR CONTINUE;
    printf("%s\n", msg);
    buf_len = sizeof (err_msg);
    sqlglm(err_msg, &buf_len, &msg_len);
    if (msg_len > buf_len)
    msg_len = buf_len;
    printf("%.*s\n", msg_len, err_msg);
    EXEC SQL ROLLBACK RELEASE;
    exit(1);
    }And then did the following:
    proc iname=hellodb.pc MODE=ORACLE it has created a .c file.
    Now run
    /opt/ansic/bin/cc -g  -I. -I${ORACLE_HOME}/precomp/public -c hellodb.c -o hellodbwhich gave me a big list of errors / warnings.
    "hellodb.c", line 117: warning #2837-D: omission of explicit type is
              nonstandard ("int" assumed)
      extern sqlcxt ( void **, unsigned int *,
             ^
    "hellodb.c", line 119: warning #2837-D: omission of explicit type is
              nonstandard ("int" assumed)
      extern sqlcx2t( void **, unsigned int *,
             ^
    "hellodb.c", line 121: warning #2837-D: omission of explicit type is
              nonstandard ("int" assumed)
      extern sqlbuft( void **, char * );
             ^
    "hellodb.c", line 122: warning #2837-D: omission of explicit type is
              nonstandard ("int" assumed)
      extern sqlgs2t( void **, char * );
             ^
    "hellodb.c", line 123: warning #2837-D: omission of explicit type is
              nonstandard ("int" assumed)
      extern sqlorat( void **, unsigned int *, void * );
             ^
    "hellodb.c", line 316: warning #2223-D: function "sqlglm" declared implicitly
      sqlglm(err_msg, &buf_len, &msg_len);
      ^
    "hellodb.c", line 342: warning #2223-D: function "exit" declared implicitly
      exit(1);I did the same in another server which is having 10g installation and it went on well and created the exe hellodb.
    Any idea what these errors are?
    Thanks in advance,
    Deep.
    Edited by: user11984804 on 06-Apr-2010 03:49

    Hello,
    We face the similar problem.Our database is migrated to 11.2.0.2 from 10g.
    PRO*C compilation is not happening with so many warnings and 1 error below
    error #4313-D: no prototype or definition in scope for call to memory allocation routine "malloc".
    Could you please provide the solution.
    we are using the following command to compile PRO*C
    make -f $ORACLE_HOME/precomp/demo/proc/demo_proc.mk EXE=$program OBJS=$program.o PROCFLAGS="sqlcheck=full userid=<username>/<password>@oraclesid" build
    Edited by: user12058331 on 30-Jun-2011 04:02
    Edited by: user12058331 on 30-Jun-2011 04:05

  • My voice pro recorder on ipad is not loading, I have important recording there what should i do?

    my voice pro recorder on ipad is not loading, I have important recording there what should i do?

    Perhaps you should contact the developer of the app.

  • Macbook Pro starts up, has a small loading bar, and then shuts off.

    Macbook Pro starts up, has a small loading bar, and then shuts off after a few seconds, but the Windows bootcamp partition works fine.
    The repair disc option (using install disc) failed, and the computer cannot locate the original Mac side partition. Only Bootcamp appears under options to "restore from backup" or reinstall. The repair disc options says it should be repaired but doesn't seem to know how.
    Macbook Pro.
    Snow leaopard
    Bootcamped with Windows.
    Any ideas?

    Hold c or option key and boot off the 10.6 installer disk, run DU Repair from there.
    run through this list of fixes 1-8
    Step by Step to fix your Mac
    If it doens't work, you can recover files if you don't have any current OS X file backups, then grab what you can out of Bootcamp
    Use Data Rescue installed on the extenral boot drive ($100) to read the bits of the internal (non-filevaulted) drive to retrieve OS X data files if you can't get them off manually via drag and drop methods.
    Create a data recovery, undelete boot drive
    If you want to clone Windows, use WinClone and another drive. However it's likely compromised, unless it something you did in Windows, like trying to create a new parttition perhaps?
    Then perform a Zero Erase and install of 10.6 as shown here (on the entire drive, not only the parittions), this will give a new GUID partition table, EFI and map off bad sectors, totally fresh everything.
    How to erase and install Snow Leopard 10.6
    You cna use Carbon Copy Cloner to clone the new extenral setup to the new scrubbed internal drive. Recreate Bootcamp and WinClone back or fresh install Windows into Bootcamp like before. OR opt to use virtual machine software which is safer.
    Windows in BootCamp or Virtual Machine?
    Windows 7 can write to the boot drives GUID partition map (unlike XP), this is likely why it's borked now.

  • Premiere Pro CC 2014 keeps freezing when loading projects from Premiere Pro CC

    Hi everyone,
    I'm reporting this issue in case someone else would have the same problem.
    I just downloaded the 2014 version of Premiere Pro CC, and when I'm loading a project from Premiere Pro CC into CC2014 I have the software freezing and being unable to even play the loaded sequences. It seems that dynamic link is having trouble linking the CC and the CC2014 version of Premiere Pro.
    Until now the only solution I found was to kill the process of the software and start it again, after 8 times I got my sequence loaded alright, then sometimes it is freezing again, killing process, starting software again, and so on. Does anyone has the same problem ?
    I'm running a Windows 7 Ultimate PC with 12Go RAM dedicated only to Premiere Pro.
    Cheers,
    Vincent

    Hi Vincent,
    I feel your pain, you are not alone. Here are my machine specs and my very frustrating situation, if anyone has any idea as to how I should move forward, I would really appreciate the input/advice...
    iMac - 27" Late 2013
    Processor  3.4 GHz Intel Core i5
    Memory  12 GB 1067 MHz DDR3
    Graphics  NVIDIA GeForce GTX 780M 4096 MB
    Software  OS X 10.9.4 (13E28)
    I'm having similar issues that began when I installed Premiere Pro CC 2014, and actually got worse with the latest update/release. The majority of my projects worked fine at first, but the update last week ended that quickly. I did what I know I never should do and updated Adobe CC while completing a project on a deadline. I thought some of the fixes would help me complete the project sooner. Needless to say, the deadline has passed, my client is pissed enough to not pay me or hire me again and I'm stuck with an almost-there version that I can't export correctly because of this software. This is my problem, not Adobe's, but I didn't expect such a detrimental update to halt my operation.
    After doing some research, I found that some plugins could be the cause of some specific editing issues, mainly due to incorrect or inaccessible folders - who knows if its Dynamic Link, CC apps or 2014 apps. I concluded that my issue at the time was a plugin permissions issue on the Adobe "Preference" Folder, so I reset the permissions on the folder so that CC and 2014 apps would be able to access its contents without any problems. This was the wrong decision. For some reason, resetting this folders permissions also effected the main HDD, it's Kernel Text files and their respective permission. I could not boot my machine, just got the Apple and spinning wheel until I had to power down. I ended up on the phone with 3 different AppleCare reps who helped me at least be able to turn the machine back on and access my desktop/files, apps, etc. Outside of this, no one could offer anything other than "Uninstall the problematic application, reboot, reinstall, etc..." or "Backup your files and reimage the HDD." When I mentioned the recent CUDA driver update for my graphics card (NVIDIA GeForce GTX 780M 4096 MB now running CUDA Driver Version: 6.0.51), it was like they had never heard of graphics cards being used in their machines.
    Resetting permissions on Adobe Preference Folder...
    This is what I read would get the CC and 2014 apps communicating correctly so that they could utilize my plugins. There is a problem, I believe, in that their are TOO MANY locations where Adobe folders/components live. There are 3 "Preferences" folders that I found, and I don't know which effects what process, but the folder I changed permissions on clearly effects the operation of all of the CC & 2014 apps I had installed, as well as my HDD. Kernel Extensions and the entire system.
    Based on my perceived effects of the Preference folder, I needed to uninstall everything, run the Adobe CC Cleaner Tool, download/install just the 2014 releases and see if that resolved the issue. I'm not downloading CC apps, the 2014 releases should run fine on their own. I've yet to confirm this with Adobe, as what I've read has simply said to install the new release next to the CC apps, rather than on top of, as traditional update releases work. Anyway, one by one, I reinstalled the 14 apps that I use on a regular basis on a "clean" machine with no trace of previous Adobe apps.
    After reinstalling (without any plugins), I was at least able to open Premiere Pro from the Application folder and work for a few minutes before both Program and Source monitors froze and had to force quit the app. If I try to open the Project File by double clicking it in the Finder, SpeedGrade opens up instead of Premiere Pro - never seen that before. I also had to force quit to end that process and reopen in Premiere instead of SpeedGrade.
    So back to Premiere, if I do have success in opening a project in the right application, Premiere freezes - if not immediately, eventually it will just stop responding. The video clips, sequence segments and UI freeze, but the audio will keep playing until I force quit. When I force quit, Premiere Pro doesn't close entirely. The UI closes, but the process still runs. I've even force quit from Finder, force quit again from the Dock, Shut Down the machine, restarted and Premiere Pro will still be open, but "Not Responding", so I force quit again and open the project. Just now, I opened PP, made minor edits to a sequence, sent it to Media Encoder, exported, but the video I tested exported without audio. I force quite PP twice just before that and it is still running now, but again, it is "not responding".
    Ultimately, none of this works, nor have my attempts at resolving these many issues. One thing I know is that there is something VERY WRONG with either the latest release/update to 2014 apps, the Preference folder or the permissions that were changed.
    As I mentioned previously, and what I think is a major oversight by someone at Adobe, is that for some reason the permission changes to ONE Adobe folder also effected my entire system and Macintosh HD. Some Kernel Extension files went missing, which is never good and should not happen when resetting folder permissions, so I believe my issues are far greater than the faulty Adobe CC 2014 applications, and is the cause of many of my problems right now. If I can't get things sorted soon, I'm going to reimage my HDD and start from scratch. As much as I would like to avoid this, I really have no choice if I want to get back to work and not lose clients over inexplicable technology issues.
    If I find a solution, I will repost, but I think Adobe has to make some serious fixes on this release before anything is resolved entirely. I pay them monthly and rely on their software and platform to work without issue, which is foolish - I know, but I've used CC since it was introduced and it has work well enough until now.
    Is there anyone at Adobe that can offer some advice??

  • Premiere Pro CC hangs on splash screen  "loading ExporterQuicktimeHost.bundle"

    Premiere Pro CC hangs on splash screen  "loading ExporterQuicktimeHost.bundle"
    This happened before when I had CS6. I'm now using CC and haven't had problems until now. I again get the hang up while loading. Previously I trashed the loading ExporterQuicktimeHost.bundle file and this solved the problem.
    I tried to contact support. I thought my subscription to CC included support, apparently not.
    Anyone else have this Problem?
    Brian

    Thanks for the response Kevin.
    I tried repairing permissions.
    I recently installed OSX 10.8.4 but I've been succesfully using PP since then. PP is up to date v7.0.1
    I have read the other forum posts on this.
    Again, this problem cropped up using PP CS6, but I was able fix it using this procedure:
    1. Go to Applications
    2. Go to Adobe Premiere CS6
    3. Right click on the application and click on “Show Package Contents”
    4. Go to Contents –> Plug-ins –> Common
    5. Move the following files to the desktop: ExporterQuicktimeHost.bundle and ImporterQuicktimeHost.bundle
    6. Restart Adobe Premiere CS6 and it will successfully open up
    This no longer fixes it.
    I desperately need to get back to work.
    Even though I feel Adobe support should be included in a CC subscription, I'm considering purchasing Adobe Bronze support with a max wait time of 4 hours and only alloted phone calls for  $175
    thanks anyway

  • MacBook Pro turns on but will not load. Battery will power up and charge. The PRAM second start up seems to work, but the Apple timer continues add-infinitum. There is also a disc in the laptop so I can't load re-load software OS 10.6.1. How do I resolv

    MacBook Pro turns on but will not load. Battery will power up and charge. The PRAM second start up seems to work, but the Apple timer continues add-infinitum. There is also a disc in the laptop so I can't load re-load software OS 10.6.1. How do I resolve this problem?

    Try booting in Safe Mode by holding your Shift key down when booting. Also, try holding the eject key down when booting to eject the DVD. If you plug a mouse in and hold the clicker down when booting, that should eject the DVD.   
    17" 2.2GHz i7 Quad-Core MacBook Pro  8G RAM  750G HD + OCZ Vertex 3 SSD Boot HD 
    Got problems with your Apple iDevice-like iPhone, iPad or iPod touch? Try Troubleshooting 101

  • Pro*C compiling/linking

    I have a Pro*C EXE program on Sun that compiles/links and works fine on that Unix box, which has Pro*C compiler and Oracle 8.05 installed. Apparantly this EXE program is refering to Oracle libraries ar run time. If I take this program on other Sun computer, it gives me an error "ld.so.1: dpn_config: fatal: libclntsh.so.1.0: open failed: No such file or directory"
    How can I create a Pro*C EXE program that will run on similar Sun box that has no Oracle or Pro*C compiler installed?
    There must be some linking parameters in make file I can make use of.
    Thanks for your help.
    Kishor

    Sorry alphasof, but you'll need to have the minimum oracle client software installed on every sun box you move the app to. More than just the libraries are involved, the whole TNS name lookup stuff gets installed, etc. It's more than just trying to statically link in the oracle libraries to your executable.
    If you install the oracle client software, you'll have no problems moving the executable.

  • Nintendo WII uses OPERA Browsers. The WII system should load the best opera browser. The problem is

    Nintendo WII uses OPERA Browsers. The WII system should load the best opera browser. The problem is that it does not load flash player 8. [email protected] 619-366-9707

    That's probably more a problem to ask Nintendo or Opera Software?
    Mylenium

  • My gmail doesnt load on my macbook pro anymore, only able to fully load with the html version. Anyone share the same problem?, My gmail doesnt load on my macbook pro anymore, only able to fully load with the html version. Anyone share the same problem?

    My gmail doesnt load on my macbook pro anymore, only able to fully load with the html version. Anyone share the same problem?, My gmail doesnt load on my macbook pro anymore, only able to fully load with the html version. Anyone share the same problem?
    It loads till the almost the end of the bar and just stops there.

    I'm having the same problem. It just freezes and wont load the rest of the way.

  • Should I go for Oracle 10g OCA/OCP or 11g OCA/OCP Certification?

    Hi all,
    I am lil bit confuse to decide about my oracle core dba certification.
    Please help me to know, as per the present requirements of the business organizations.
    ***Should I go for Oracle 10g OCA/OCP or 11g OCA/OCP Certification?***
    Hope u guys answer me earliest.
    Thanks & Regards,

    Most likely, it doesn't matter too much. I doubt that most employers are terribly concerned with what recent version of Oracle you have a certification on.
    That said, if it matters
    - What does your organization use? What are their plans to upgrade? If your company still uses 9.2 primarily and has plans to upgrade to 10.2 this year, you're probably better off with a 10g certification. If your company is already running mostly 11.2, you're probably better off with an 11g certification.
    - What do most employers in your particular part of the world tend to use? What do job postings in your particular part of the world generally list?
    Justin

  • Compiling (in memory) and Loading classes on fly

    Hiya,
    I have following classes:
    public class Vehicle {Protected Sting reg;}
    public class Car extends Vehicle
    (public void print(){System.out.println(reg);}}
    These classes (or different ones) are stored in one text file. The program must read these files then compile and load them dynamically in memory.
    The link below authored by DCHSW deals with one class only (compile and loading) however it fails with more then one class particularly when it is subclassed.
    http://forum.java.sun.com/thread.jsp?thread=347467&forum=4&message=1439418
    How can we get the code mentioned at link above to compile (in memory) and load subclasses like the ones mentioned above.
    Thanks
    Derik

    Hiya,
    I have following classes:
    public class Vehicle {Protected Sting reg;}
    public class Car extends Vehicle
    (public void print(){System.out.println(reg);}}
    These classes (or different ones) are stored in one
    text file. The program must read these files then
    compile and load them dynamically in memory.
    The link below authored by DCHSW deals with one class
    only (compile and loading) however it fails with more
    then one class particularly when it is subclassed.
    Read the following post for full description of the problem
    http://forum.java.sun.com/thread.jsp?forum=4&thread=417724
    Any ideas?
    Thanks
    Derik
    http://forum.java.sun.com/thread.jsp?thread=347467&foru
    =4&message=1439418
    How can we get the code mentioned at link above to
    compile (in memory) and load subclasses like the ones
    mentioned above.
    Thanks
    Derik

  • I'm having this message when I try to export my video from Premiere Pro:  "Error compiling movie. Unknown error"

    I'm having this message when i try to export my video from Premiere Pro:
    "Error compiling movie. Unknown error" Do anybody knows what to do?

    1st, I moved your message to the correct forum
    2nd, More information needed for someone to help... please click below and provide the requested information
    -Premiere Pro Video Editing Information FAQ http://forums.adobe.com/message/4200840
    3rd, Error Compiling Movie... some past discussions and ideas
    -http://helpx.adobe.com/premiere-pro/kb/error-compiling-movie-rendering-or.html
    -http://helpx.adobe.com/premiere-elements/kb/error-error-compiling-movie-render.html
    -and nested sequences http://forums.adobe.com/thread/955172
    -and WMV files frame rate http://forums.adobe.com/message/4629210

  • Premiere PRO CS4 " unexpectedly quit error" since loaded Sorenson squeeze 8.5 is there a bug fix

    Premiere PRO CS4 " unexpectedly quit error" since loaded Sorenson squeeze 8.5 is there a bug fix

    CS4 is old, and there will be no more updates, past the ones on the update site
    All Adobe updates start here and select product, read to see if you need to install updates in number order, or if the updates are cumulative for the individual product http://www.adobe.com/downloads/updates/
    Ask Sorenson if 8.5 is even supposed to work with CS4

  • I have a macbook pro 15" retine, late 2013, should i upgrade OS to Yosemite ?

    i have a macbook pro 15" retine, late 2013, should i upgrade OS to Yosemite ?

    I suggest that you partition your storage and install Yosemite on the new partition and try it out.  That way you can revert to the prior OSX if you feel it is not worth it.  You also could install it on an external HDD and test it that way.
    Ciao.

Maybe you are looking for

  • How do you avoid unneccesary "array copies"?

    Hello - I have been having significant difficulty trying to optimize my code as I have been finding that LabView tends to make copies of variables almost everytime you access them. This may not be a big deal some times, but in my case, I am using arr

  • Change email address in icloud

    I have an email that was hacked.  I have my iphone and ipad set up using that particular email.  I was able to change my email and all of my Apple related emails go to my new email address. However, when I went to my settings on my phone it is still

  • USER EXIT / BADI on save VF01

    Hi, Do you know any user exit or BADI which triggers after save VF01 (Billing document), actually I need to modify the payment terms field in the VF01 while save. Used program RV60AFZC to modify payment terms field but it does triggers before save. <

  • When a static method is accessed concurrently

    When a static method is accessed by many objects symultaneously(concurrently), What is happened in the static method. Are the stacks for that method maded seperately and each stack doesn't influence other stacks? thank you in advance.

  • Hi, My I phone 6 purchased from UAE. now I am using in Azerbaijan, How can I install facetime?

    I would appreciate any kind of help.