Problem with OCI call  and  how to install and use 'DEBUG_EXTPROC' on Linux

Hi,
Can any one let me know how I can install and use this debug_extproc package. I have installed oracle XE server on Linux machine(32-bit).
When I use : DEBUG_EXTPROC.STARTUP_EXTPROC_AGENT' ... i get an error saying that : it is not declared.
I tried looking in all the directories but did not find the dbgextp.sql(which is required in order to install that package).And tried searching on google but could not get any relevant information.
Also I am newbie to OCI call interface and also to C programming too: I have coded a external procedure or custom user aggregate in C. But since I was using C++ : 'set' STL. I have compiled my program using g++ instead of gcc and I have correspondingly modified the make file in public/demo directory.
So, is it fine to do it that way: using OCI (instead of OCCI(C++)) but again compiling the pgm as a regular C++ using g++ instead of gcc.(But rest of the pgm including printf statements : everything is in C).
Also I have created the library from my : custagg.so library:
SQL> create or replace library custagg is '$ORACLE_HOME/lib/custagg.so'
But my aggregate function implemented as external C function using OCI is either not recognised or else : if recognized then there is some error because of which i am getting the following errors : ORA-06522
SQL> select MinDistance(TT) from egg1;
select MinDistance(TT) from egg1
ERROR at line 1:
ORA-06520: PL/SQL: Error loading external library
ORA-06522: /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/custagg.so:
cannot dynamically load executable
Please kindly answers my queries and trying to resolve this for almost 4 days now and could not find any clue on how to get this done.
Thanks,
-NN

#/bin/make
# Make file for OCI,OCCI and ODBC demos
# Usage :
# For compiling & linking the cdemo81.c file
# make -f demo_xe.mk buildoci CDEMOEXE=cdemo81 CDEMOOBJS=cdemo81.o
.SUFFIXES: .o .c .cpp
ICINCHOME=$(ORACLE_HOME)/rdbms/public/
ICLIBHOME=$(ORACLE_HOME)/lib
ICLIBPATH=-L$(ICLIBHOME)
THREADLIBS=-lthread
CCLIB=$(ICLIBPATH) -lclntsh $(THREADLIBS)
OCCILIB=$(ICLIBPATH) -locci -lclntsh $(THREADLIBS)
CCINCLUDES = -I$(ICINCHOME)
CCFLAGS=$(CCINCLUDES) -D_REENTRANT -g -xs
LDFLAGS=
SO_EXT=.so
EXTLDFLAGS=$(LDFLAGS) -shared
REMOVE=rm -rf
MKLINK=ln
MAKE=make
MAKEFILE=demo_xe.mk
CDEMOEXE=custagg.so
CDEMOOBJS=custagg.o
OCCIDEMO=occidml
OCCIOBJDEMO=occiobj
OTT=$(ORACLE_HOME)/bin/ott
OCCIOTTUSR=hr
OCCIOTTPWD=hr
ODBCDEMOEXE=odbcdemo
ODBCDEMOOBJS=odbcdemo.o
AQDEMOEXE=ociaqdemo00
AQDEMOOBJS=ociaqdemo00.o
EXTDEMO=extdemo2.so
CC=/usr/bin/g++
echo "LIBCLNT value is :" $(LIBCLNT)
echo "CC value is :" $(CC)
.c.o:
g++ -c -I$(ICINCHOME) $(CCFLAGS) $<
all: clean buildoci
echo "LIBCLNT value is :" $(LIBCLNT)
buildoci: $(LIBCLNT) $(CDEMOOBJS)
g++ -o $(CDEMOEXE) $(LDFLAGS) $(CDEMOOBJS) $(CCLIB)
echo "CC value is :" $(CC)
echo "LIBCLNT value is :" $(LIBCLNT)
clean:
$(REMOVE) $(CDEMOOBJS) $(CDEMOEXE)
# This port-specific file is currently empty on Solaris. Product
# lines may use this file to override compiler definitions and
# flags used in occi.mk.
# Linux compiler definitions
CC=/usr/bin/gcc
cc=/usr/bin/gcc
CCFLAGS=$(CCINCLUDES) -DLINUX -D_GNU_SOURCE -D_REENTRANT -g
LDFLAGS=-g
# This macro CCINCLUDES has to be redefined on Linux because of
# the existence of the 'new' directory in t_work. The name new
# clashes with a system header file.
CCINCLUDES = -idirafter .
THREADLIBS=-lpthread
ifdef BUILD_CCC296
CC=/usr/bin/g++296
endif
And I am executing the make file using the command :
make -f demo12.mk buildoci CDEMOEXE=custagg.so CDEMOOBJS=custagg.o
I am not getting any error while running this make file.
Can you please tell me whether PLSQL/Oracle is able to locate the file or not. Incase, if it is locating the file but due to some error in the custagg.so it is throwing that error. If this is the case, is there any way that i can debug the C program .....how can i install the debug_extproc package.. I am really new to C & OCI ... if the custagg.so is being located then there might be some problem with the way I am dynamically allocating memory to some variables.
Please kindly reply to this Post/response.
Please let me know if you also want to see my program code.
Thanks & Regards,
-NN

Similar Messages

  • Having a problem with Add-ons I did not install and now can't uninstall.

    Lately I have experienced problems with re-directing and other issues with Mozilla. I looked in my add-ons list and there are several things there that i did not add manually. (I have been having much trouble with ITunes and noticed a plug in in mozilla and want to know if it is necessary.) Is there a way to keep this from happening? I have been using mozilla for years and liked it when I could do a basic install without any add-ons that I did not request. Here is a list of the things that are troubling me - I am sure a few may be necessary. I would appreciate any help anyone can give me with this?
    PLUG-INS-
    Java Deployment Toolkit 6.0.200.2 NPRuntime Script Plug-in Library for Java(TM) Deploy
    Java (TM) Platform SE 6 U20 6.0.200.2 Next Generation Java Plug-in 1.6..0_20 for Mozilla Browsers
    Mozilla Default Plug In
    (THESE LAST THREE ALL CAME UP AS UNIDENTIFIED PLUG-IN ON MOZILLA PLUG IN CHECK SITE)
    Itunes Application Detector 1.0.1.1
    Itunes Detector Plug-In
    Wacom Dynamic Link Library 1.1.0.3
    Wacom Dynamic Link Library
    Windows Presentation Foundation 3.5.30729.1
    Windows presentation foundation (WPF) plug-in for Mozilla Browsers
    EXTENSIONS_ Java Console 6.0.23
    Java Console 6.0.20
    (Just curious with these two Java consoles - which by the way I am unable to uninstall - the uninstall button is grayed out. and I can only disable.)
    Really frustrated with this, I have already uninstalled Firefox and re-installed it - losing all my bookmarks and these add-ons were there after the re-install. PLEASE HELP!

    For camera problem try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings      
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                                
    iOS: How to back up                                                                                     
    - Restore to factory settings/new iOS device.             
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar                                      
    I do not understand what you mean about your update problem

  • Intermittent problem with outbound calls; can't hear them and they can't hear me.

    When I call someone the person can't hear me and I can't them even though call shows connected and minutes are ticking away. Have to hang up and call back. This happens randomly not with every call. Any ideas?

    did u fix this problem? i have the same trouble now. need help?

  • I already have a fire-fox sync account. as i have problem with fire-fox i have uninstalled it and re-installed. and sync accnt deleted by mistake..how restore?

    I already have a fire-fox sync account. as i have problem with fire-fox i have uninstalled it and re-installed. At firefox sync accnt deleted by mistake..how restore? i also have recovery key but its not working...

    https://support.mozilla.org/en-US/kb/firefox-sync-troubleshooting-and-tips
    https://support.mozilla.org/en-US/kb/ive-lost-my-firefox-sync-account-information
    https://support.mozilla.org/en-US/kb/how-do-i-manage-my-firefox-sync-account

  • Hello guys..does anybody know how to install and use adobe master collection with the new lion?   I need to use Flash and illustratore, but apparently those programmes are incompatible with the new operative sistem...   I am a new mac users and I'd like t

    Hello guys..does anybody know how to install and use adobe master collection with the new lion?
    I need to use Flash and illustratore, but apparently those programmes are incompatible with the new operative sistem...
    I am a new mac users and I'd like to know if there are other similar programmes I can use with lion!

    Lab79 wrote:
    Are you on Apple's payroll?
    well dude I can only let you know that as I work with those programme I don't have to pay for it is my company that pays the programme I whant to use( that's why I was asking if there where other programmes ..that I could use with lion insted that Illustrator and Flash!)..I know Adobe since 2005 and I can say that Adobs products are very good...I think that if it's an Adobe probleme or fault ..they will solve it very soon...but unfortunally I have the impression that after Jobs passed away Appel decided to change politics..and everything started to go very bad! (see FCP X)..
    good luck with apple dude..
    Where is the Apple problem? I have CS4 and CS5 running perfectly fine on my Macbook Pro. Installed 5 after Lion upgrade. Worth every cent. Adobe did have some catching up to do with Lion but with the CS5.5 update all runs fine. But not yours. So it is a problem with the Lion OS? You say you have been with Adobe since 2005. So you would be aware of all the other issues that Adobe had catching up with past Oss in Mac and Windows then. They get it right, but it is up to them. It is not up to Apple, nor Microsoft for that matter, to run around and check that every software developer in the world is running their business properly.
    And what has politics got to do with anything. Some people just have to blame Software for their poor Hardware maintainence of failure of the same.
    <The only think I can really do is to go back on my old windows...give back this orrible lap top and ask for my money back!>
    Great suggestion. You should go with that one, but good luck getting a refund.
    Bye

  • TS3694 I am unable to restore my iPhone4, I have iOS6 and latest iTunes installed  and when trying to sync or back up it comes up with Error −54. How or what do I do to fix this?

    I am unable to restore my iPhone4, I have iOS6 and latest iTunes installed  and when trying to sync or back up it comes up with Error −54. How or what do I do to fix this?

    == Error -54 ==
    From an OS9 reference, error -54 is a software lock on a file or a permissions error. (Some of the old codes still apply to OSX although there is no formal list of OSX error codes.)
    First, try simply restarting your computer.
    iTunes Library cannot be saved (Error -54) - https://discussions.apple.com/thread/1912814
    Unknown error (-54) while syncing ipod - https://discussions.apple.com/thread/1082953 - problem was locked files
    Why does iTunes keep showing a -54 error when I sync my iPad? - https://discussions.apple.com/thread/3727114
    Error -54 possibly related to Touch Copy - https://discussions.apple.com/thread/3727114 - cleared by deleting preferences on iPad.

  • I bought 500gb iCloud storage for ł30 with my macbook air, how to install it and will i still be charged a monthly fee?

    Iibought 500gb iCloud storage for ł30 with my macbook air, how to install it and will i still be charged a monthly fee?

    sebek104 wrote:
    Iibought 500gb iCloud storage for ł30 with my macbook air, how to install it and will i still be charged a monthly fee?
    There is no 500GB iCloud storage plan, 20, 200 or 1000 are the available plans.
    What did you actually buy?

  • The upgrade to Firefox 4 is causing massive problems with my computer. How do I uninstall it and go back to using the previous version?

    Firefox 4 is absolutely awful - it is causing massive problems with my computer. How do I uninstall Firefox 4 and go back to the previous version of Firefox?

    According to the instructions given on the Norton Community forum under "Other Norton Products/Comcast-Customers - Norton Toolbar Problem in Firefox 10", I have done everything necessary. And I do have a Norton toolbar (Safe Web and Identity Safe) when I open Firefox 10. As was mentioned in the previous posts here, you need to run manual LiveUpdate then reboot until you have version 5.2.0.13. Then reboot and run manual LiveUpdate again and reboot once more. One thing that I noticed is that Norton never told me that it had updated the patch for Firefox 10, so I didn't know. I guess if you have the toolbar when you run Firefox 10, then you have done it all.

  • Hi i'm using iphone 4 and i have problem with viber apps while i'm installing

    hi i'm using iphone 4 and i have problem with viber apps while i'm installing & registration process its says error on system mainternance. can you please help me out?
    thank you.

    OK, let's try again. Wind is NOT a supported carrier. In order to use tethering, it must be supported and activated by your carrier for the iPhone. This usually involves an additional fee.  You will have to ask your carrier if they can enable it. Odds are, since they are not a supported carrier, they can not. If you want to use tethering, you will most likely have to switch to a supported carrier that offers this feature on the iPhone.
    A list of supported carriers can be found here: http://support.apple.com/kb/ht1937

  • I have a problem with my itube. I had itube and its gone. Now i cant get it back. How can i get it back without pay for it again?

    I have a problem with my itube. I had itube and its gone. Now i cant get it back. How can i get it back without pay for it again?

    We are Apple users here, and we answer technical questions.
    Sorry, we cannot help you.

  • Hi i have a white screen problem with my macbookpro mid2009 15".I installed a ifixit  battery and i think it screwed up one owc ssd drive.I just installed a new one and at 13min battery left it shut down and then all i got was a white screen...

    Hi i have a white screen problem with my macbookpro mid2009 15".I installed a ifixit  battery and i think it screwed up one owc ssd drive.I just installed a new one and at 13min battery left it shut down and then all i got was a white screen...I tried every feasible command and all i got was some more white lol.I dont have my tools to open the case right now but do you guys think my cpu board is done?

    Have a look at this help document for suggestions that you haven't tried yet:
    http://support.apple.com/kb/TS2570

  • How to install and config Struts with oc4j?

    Hi,
    I download jakarta-struts-1.0,but I don't know
    how to install and config Struts with oc4j?Can you
    tell me the detail steps?
    Thanks!

    Follow the instructions in this link:
    http://jakarta.apache.org/struts/installation-oas.html. It's
    for Orion but should also apply for oc4j.

  • I bought a new iphone 4s and I have a problem with the service. How can it be solved? the SIM card is new and was working perfect withe iPhone 4G

    I bought a new iphone 4s and I have a problem with the service. How can it be solved? the SIM card is new and was working perfect withe iPhone 4G

    Under the answer you want to mark as correct you should see a box that says Correct with a green symbol to the left and a box with Helpful with an orange star to the left. Click on the one you want.
    And thanks for thinking about that, it is appreciated.

  • I have a problem with IOS 7 when I am installing app on App Store. I must read and accept new terms and condition. However, I read all new terms that I don't see Agree button to accept. Can you check help me this problem?

    I have a problem with IOS 7 when I am installing app on App Store. I must read and accept new terms and condition. However, I read all new terms but I still don't see "Agree" button to accept. Can you check help me this problem?

    If it says 'Open' in the App Store, then it's on your device.  What happens when you press the 'Open' button in the App Store?
    The App is on your phone, somewhere.  Use Spotlight to find it, or you can reset your Home Screen layout, and then you'll definitely find it.

  • I recently downloaded the latest iTunes update and now my menus are in Korean. I work in Korea but want my menus in English. I've never had this problem with updates before. How can I get English back? Thank you.

    I recently downloaded the latest iTunes for Windows update, and now when I open iTunes my menus are in Korean. I live and work in Korea but want my menus in English like they always have been. I've never had this problem with updates before. How can I get English back? I'll appreciate any help.

    CTRL+, (Comma) brings up preferences
    General is the tab on the left
    Language is the last drop down control
    English (UK) & English (US) are 9th and 10th on the list
    Close iTunes & reopen to effect the change
    tt2

Maybe you are looking for

  • Hairline crack around backside of LCD hinge

    Hello, all. Does any Apple support people read this discussion group? I would like to let them know about my issue. I bought my MacBook early this year. It is a white MacBook. Problem is that it started to show hairline crack around the bottom side o

  • JAXB, JAXB_FORMATTED_OUTPUT property, levels of indentation

    Is it possible to provide greater control over formatted output, especially indentation, than appears to be possible with the JAXB_FORMATTED_OUTPUT property? Currently, when I reach the 10th level of indentation, the formatted output shifts back to t

  • Javascript no longer detects latest Flash Player

    Hi, After having automatic updates on all our pcs happen for Flash to 9.0.115 version, no ssit which uses flash detection using javascript works anymore, we have the issue on all 5 of our pc's For example on our own site the javascript redirects us t

  • Standard transaction variant  ZMSC2 for  transaction MSC2

    Hi I have created a standard transaction variant  ZMSC2 for  transaction MSC2. When i do the recording for MSC2... I dont see the transaction variant being called.. Please suggest

  • I can't buy money in game.

    Hi,I play the online game(clash of clans)at iPhone,but when I tried to buy the money of the game,It said something wrong.I couldn't do it.why?