Problem in UTL_DBWS - Any gurus available!

Hi all,
Solicit your help in the below-mentioned scenario.
I am trying to access some published web services from 9.2.0.1.0 RDBMS using UTL_DBMS API. I have accomplished the same using UTL_HTTP. I have followed the instructions specified in:
'http://www.oracle.com/technology/sample_code/tech/java/jsp/callout_users_guide.htm#Web_Service_Callout_Utility_Download_'
to prepare the database, download Callout Utility for pre-10g RDBMS (ZIP, 5.68MB), JPub 9.2.0.1.0 Production and OC4J Release 10.1.2 (standalone) and set the environment variables.
loadjava ran successfully for:
%ORACLE_DB_HOME%/BIN/loadjava -user scott/tiger@ORACLE -r -v -f -grant public -genmissing %ORACLE_HOME%/OC4J/j2ee/home/lib/servlet.jar
%ORACLE_DB_HOME%/BIN/loadjava -user scott/tiger@ORACLE -r -v -f -grant public -genmissing %ORACLE_HOME%/OC4J/j2ee/home/lib/ejb.jar
%ORACLE_DB_HOME%/BIN/loadjava -user scott/tiger@ORACLE -r -v -f -grant public -genmissing %ORACLE_HOME%/jlib/jssl-1_2.jar
%ORACLE_DB_HOME%/BIN/loadjava -user scott/tiger@ORACLE -r -v -f -grant public -genmissing %ORACLE_HOME%/soap/webapps\soap\WEB-INF\lib\soap.jar
But it gave error for:
%ORACLE_DB_HOME%/BIN/loadjava -user scott/tiger@ORACLE -r -v -f -grant public -genmissing %ORACLE_HOME%/OC4J/j2ee/home/lib/mail.jar
%ORACLE_DB_HOME%/BIN/loadjava -user scott/tiger@ORACLE -r -v -f -grant public -genmissing %ORACLE_HOME%/OC4J/lib/dms.jar
ORA-29534: referenced object SCOTT.oracle/core/odjl/logMessage could not be resolved.
ORA-29545: badly formed class.
And while trying to run JPub using:
jpub -user=scott/tiger -sysuser sys/change_on_install -httpproxy=www-proxy.us.oracle.com:80 -proxywsdl=http://www.webservicex.net/stockquote.asmx?wsdl -endpoint=http://www.webservicex.net/stockquote.asmx -proxyopts=soap,tabfun -dir=Stock -plsqlpackage=soap_callout_wrapper
I get error:
J2T-120, ERROR: Illegal option "-proxywsdl=http://www.webservicex.net/stockquote.asmx?wsdl" ignored
J2T-120, ERROR: Illegal option "-endpoint=http://www.webservicex.net/stockquote.asmx" ignored
J2T-120, ERROR: Illegal option "-proxyopts=soap,tabfun" ignored
Any help in resolving these issues will be appreciated. Kindly also advise which api – UTL_HTTP or UTL_DBWS I should go for and why.
Regards,
Leslie

jaggyam wrote:
To add to karthik's post, that directory should be configured in your parameter file(UTL_FILE_DIR=<your directory> or *).And to correct Jaggyam..
The UTL_FILE_DIR parameter has been deprecated by oracle (i.e. they recommend you don't use it) in favour of direcory objects because of it's security problems.
The correct thing to do is to create a directory object e.g.:
CREATE OR REPLACE DIRECTORY mydir AS 'c:\myfiles';Note: This does not create the directory on the file system. You have to do that yourself and ensure that oracle has permission to read/write to that file system directory.
Then, grant permission to the users who require access e.g....
GRANT READ,WRITE ON DIRECTORY mydir TO myuser;Then use that directory object inside your FOPEN statement e.g.
fh := UTL_FILE.FOPEN('MYDIR', 'myfile.txt', 'r');Note: You MUST specify the directory object name in quotes and in UPPER case for this to work as it is a string that is referring to a database object name which will have been stored in uppercase by default.
As others have said, the file must be located on a file system directory that the oracle database server has access to i.e. the file typically should be on the database server. UTL_FILE cannot access files on the client computer.

Similar Messages

  • Error trying to relate tables "...either doesn't exist or doesn't have a relationship to any table available in the current context"

    I have two tables;
    The first is my Order table which has a single row for each unique order - there are no duplicate order numbers.The order id column here is called
    OrderID.
    The second is my Submissions table which is similar to a transactions table, there are multiple submissions for every order. This table also contains an
    OrderID column that contains the relevant OrderID.
    The submission table also contains a calculated field called Date and a calculated field called
    MaxDate field which is the date of the most recent submission that relates to any particular order in cases where there are multipple.
    My goal is to add a column to the Order table this MaxDate column. The reason for duplicating the information rather than linking the tables is because I need to create more calculated columns in the
    Orders table based on this value.
    I have created a relationship between the two tables however when I use:
    =RELATED(Submissions[MaxDate]
    I get this error:
    "...either doesn't exist or doesn't have a relationship to any table available in the current context"
    I don't really understand why this would be, because MaxDate definitely exists and contains only numerical values. What is more strange is that if I try and combine the data through a pivot table it actually works! I can create a pivot with OrderID in the first
    column and then associate it with MaxDate from the Submissions
    table as the value. 
    Can anyone help me understand what is the problem here?
    P.S. if it is useful the formula I'm using to calculate the MaxDate is:
    =MAXX(FILTER(Submissions,Submissions[OrderID] = EARLIER(Submissions[OrderID])),[Date])
    Thanks.

    Maracles, is this still an issue?
    Thanks!
    Ed Price, SQL Server Customer Program Manager (Blog,
    Small Basic,
    Wiki Ninjas,
    Wiki)
    Answer an interesting question?
    Create a wiki article about it!

  • Are there any patches available for Dev 21

    Hi,
    We've been working with Forms50 and Reports 25 under win95 for
    quite a while and have noticed occasional problems:
    - A program abort due to page fault protection under win95.For
    example, R30DES32 : R30LIB.dll.
    - You issue compile all and get and error that forms is not
    able to go to (goto error button).
    - A compile error that requires login in and out and
    recompile to fix.
    I wonder if
    - there are any patches available for Dev 21,
    - i have a memory shortage problem,
    - these are (especially case 1) win95 problems.
    Please help will be welcomed ................!
    null

    Where can I find them?
    thanks in advance,
    Xiaolin
    Jason Judge (guest) wrote:
    : There are patches for the 32bit v2.1 Windows environments
    dated:
    : 24 June 98
    : 5 August 98
    : 16 September 98
    : 21 Octomer 98
    : 21 February 99
    : and I believe a new one is just out.
    : Take your pick!
    : JJ
    : Luis Medina (guest) wrote:
    : : Hi,
    : : We've been working with Forms50 and Reports 25 under win95
    for
    : : quite a while and have noticed occasional problems:
    : : - A program abort due to page fault protection under
    : win95.For
    : : example, R30DES32 : R30LIB.dll.
    : : - You issue compile all and get and error that forms is not
    : : able to go to (goto error button).
    : : - A compile error that requires login in and out and
    : : recompile to fix.
    : : I wonder if
    : : - there are any patches available for Dev 21,
    : : - i have a memory shortage problem,
    : : - these are (especially case 1) win95 problems.
    : : Please help will be welcomed ................!
    null

  • Is any currently available printer able to prrint on to DVDs?

    The C5380 and D5460 printers could print directly on to suitable CDs/DVDs ... but are no longer available to buy in the UK.
    Is any currently available printer able to do this?
    Thanks - Greg
    This question was solved.
    View Solution.

    Hi GregWells,
    That was the last model manufactured with that feature. They may come out with another printer in the near future.
    I am an HP employee.
    Say Thanks by clicking the Kudos Star in the post that helped you.
    Please mark the post that solves your problem as "Accepted Solution"

  • I have been trying to put some of my music and artwork, on youtube. Youtube says you need an encoder to upload music. But the problem is the only encoders available are for windows. Please help, thank you

    I have been trying to put some of my music and artwork, on youtube. Youtube says you need an encoder to upload music. But the problem is the only encoders available are for windows. Please help, thank you

    The formats YouTube supports can be found here:
    http://www.google.com/support/youtube/bin/answer.py?answer=55744
    Since YouTube supports AAC, the file format iTunes uses by default, it's probable you don't need any sort of converter.
    If you continue to have problems with uploading to YouTube, I'd suggest you ask for assistance in their forums:
    http://www.google.com/support/forum/p/youtube?hl=en
    Regards.

  • Got a new MacBook pro but for some reason I can't connect to my schools wireless. It doesn't have a problem connecting to any other wifi. My schools network is unsecured all you do is login with your username and password but the window never loads

    I jus got a MacBook pro and Im having trouble connecting to my schools network. It is not secured and only requires to login with school id. A Window pops up to sign in but it never loads anyone know why I'm having this problem? Doesn't have a problem connecting to any other wifi

    "This is a flaw in OS X Lion. It does not want to connect to open WiFi that has a login page that open in a browser."
    Nonsense, no problems logging in at sites that you mention. I use OpenDNS servers. For the OP try:
    System Preferences>Network>Advanced>DNS. In the left side column click on the + sign and insert the following:
    208.67.222.222
    208.67.220.220
    Then click OK, then click Apply.

  • Is there any app available to directly copy movies from in built Movies app on iPhone directly to a Nas. I currently use iTunes for this with the Mac, but want to know if its possible without actually using a Mac or PC with iTunes?

    Is there any app available to directly copy from iPhone or iPad from the movies app to a nas without having to use iTunes.

    wjosten - thanks very much for the detailed instructions. I'll try this as soon as I get my replacement and it looks like you'll probably end up getting the green tick

  • I duplicated a picture and now iPhoto (11) is cloning that picture replacing all the other photos and only when I click directly on them I can see the real picture! How can I solve the problem without losing any saved picture? Shall I re-install? Thanx

    I duplicated a picture selecting CMD and D but, suddenly, iPhoto (latest version '11) started cloning that picture and replacing all the other photos with it.
    Only when I click directly on one photo I can open it and see the real picture it is.
    But the preview is always the duplicated one...
    I tryed to duplicate another picture just to see if it turned out ok but the only changement was the duplicated picture!
    I started repeating the second duplicated one instead of the previous one but my issue remained the same.
    So, how can you help me to solve this problem without losing any saved picture?
    Shall I re-install iPhoto completely?
    Thank you very very much in advance!!

    As Larry says, restoring the back up is the fastest and best solution. Otherwise:
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Rebuild iPhoto Library Database from automatic backup.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. .
    Regards
    TD

  • My ipod touch displays message "ipod touch disabled,connect to itunes."I have held down on/of switch until apple logo appears on screen of ipod touch , but the problem persists. Any suggestions?

    My ipod touch displays message" ipod touch disabled,connect to itunes. Ipod touch does no connect with i tunes. I hold on/off switch on ipod touch until Apple log appears on the screen, but the problem persists. Any suggestions ?  I am running Itunes 10.6(7)  My Mac OS X Version is 10.5.8.

    I connected ipod touch to my IMAC while holding on/off switch as stated to by anothe community memberand problem is solved. I wasable to update and reatore.  I have been trying to solve the disable problem
    for weeks. althou you did not actually solve the problem, In time you probably would. You were on the right track  Thank you.
    This helped me
    rbrookstone

  • My wireless keyboard no longer connects with my iMac since changing the batteries. It now shows as not connected, not paired and not configured. A friend recently connected his iPad to the iMac and since then the problem started. Any ideas to resolve this

    My wireless keyboard no longer connects with my iMac since changing the batteries. It now shows as not connected, not paired and not configured. A friend recently connected his iPad to the iMac and since then the problem started. Any ideas to resolve this?

    a friend told me that he wants my os x cd for my macbook pro to upgrade his imac.
    The discs that come with your Mac are "machine specfic" and cannot be used on another Mac.

  • I have purchased two audiobooks from iTunes. They play perfectly for about 13 minutes and then abruptly stop. I have purchased other audiobooks and have not had a problem. Please, any ideas on why this is happening and what can I do to fix it.  Thanks!

    I have purchased two audiobooks from iTunes. They play perfectly for about 13 minutes and then abruptly stop. I have purchased other audiobooks and have not had a problem. Please, any ideas on why this is happening and what can I do to fix it.  Thanks!

    As long as you use your computer like King Penguin stated for Report a Problem, you should be fine. If you can't get to your computer, are not using your computer, or your computer is not longer in the mix since you have been using your iPad, email iTunes support about the problem.
    http://www.apple.com/emea/support/itunes/contact.html

  • I installed Mavericks yesterday and have now got problems with QuarkXpress 9. Every time I click on an image and try to move it the application crashes. Anyone had similar problems or got any suggestions?

    I installed Mavericks yesterday and have now got problems with QuarkXpress 9. Every time I click on an image and try to move it the application crashes. Anyone had similar problems or got any suggestions?

    Hi Guys
    Updated my 2 imacs to Maverick yesterday. Schoolboy error on my part not checking if there were problems with any programmes before I did.
    Quark is now a nightmare with no short term answer on the way. As a Quark user for over 20 years this is just another reason to hold your hands up and say OK Indesign you win I will have to learn how to use you and Quark will be a distant memory.
    I am told there will probably be no solution to getting quak 9 running on Maverick and that you will need to update to 10 in about 2-3 weeks to get back to normal. Having spent a few bob on 2 versions of 9.5 only in Feb this year i didn't really want to upgrade yet.
    So its cough up to carry on using Quark or learn Indesign.
    I have lost faith in Quark as they are quick to send me e-mails asking me to upgrade to this and that version, why didn't they send one out saying do not upgrade to Maverick. Perhaps they know there loyal follwing will uograde to 10 and will generate a nice little bonus before Xmas.
    Lots to do today and will now take 10 times longer to do it. Is this 2013 or 1974!!!!!
    If anyone hears of a solution please post ASAP

  • Scatter plot - any libraries available

    hi,
    i need to do a scatter plot for a given data. i gotta plot a line or curve which fits the data.
    is there any packages available that i can import in my project?
    i also need to output that as a image.
    guys, also tell me how do i import that in netbeans.
    i'm a beginner so please be elaborative.

    The free chart library JFreeChart
    Example chart

  • How to take the screen shot of my computer page by using Labview.... is there any funtions available in Labview?

    How to take the screen shot of my computer page by using Labview.... is there any funtions available in Labview?

    Another thread about this theme.
    Waldemar
    Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
    Don't forget to give Kudos to good answers and/or questions

  • I recently downloaded Word Lens for my iPhone 5S. However when i go to do the in app purchases i don't see any languages available.

    I recently downloaded Word Lens for my iPhone 5S. However when i go to do the in app purchases i don't see any languages available.

    So why don't you go to the developer's site and ask there?   Word Lens is NOT an Apple product.

Maybe you are looking for

  • Sync between address book and google

    I have been driving myself nuts all day with this. Here's the scenario: a) I do not use mobile me. b) I have my address book on the mac setup to sync with google contacts (10.6) after it is initially setup: 1) if I add a new contact to my google cont

  • Firefox: How can I take all my settings to a new Mac from Windows?

    hey guys, i'm really considering getting a new Mac Mini. however, what's holding me back is Firefox. firefox is by far the application i use the most. i want to be able to take my current bookmarks, passwords and settings from this Firefox, which is

  • Can't delete a network I've created

    Hi, How do I delete a network that I've created using tool bar > airport > create new network. I've created three not knowing what I'm doing, surprise surprise, I want to keep the name of the third but want to delete the first two which are constantl

  • Raid 5 shows offline

    Hi All, We have WAE 7341 with 4.1.5f code which failed.  We recreated raid after which we see all the disk online, but raid shows offline status. Please find below the sh disk details and sh disk tech support output wa1#Sh disk details RAID Physical

  • I am unable to log in and nothing happens when I ask to reset password.

    When I try to log in it says my user name or password is incorrect. When I click on "I forgot my password" and enter my email address it says it has sent me an email to reset the password but I never get the email.