Nobody can solve this DBMS_LOB problem:

I want to upload text file to ftp server but when i open file mcx.txt which is in e:\middle-east\ssm dmbs_lob.fileopen() function give error. edit e:\middle-east\ssm\mcx.txt; command also open this text file properly.
ORA-22285: non-existent directory or file for FILEOPEN operation
ORA-06512: at "SYS.DBMS_LOB", line 523
ORA-06512: at "SCOTT.FTP", line 128
ORA-06512: at "SCOTT.FTP", line 355
ORA-06512: at line 7
FUNCTION get_local_ascii_data (p_dir IN VARCHAR2,
p_file IN VARCHAR2)
RETURN CLOB IS
l_bfile BFILE;
l_data CLOB;
BEGIN
DBMS_LOB.createtemporary (lob_loc => l_data,
cache => TRUE,
dur => DBMS_LOB.call);
l_bfile := BFILENAME(p_dir, p_file);
DBMS_LOB.fileopen(l_bfile, DBMS_LOB.file_readonly);
DBMS_LOB.loadfromfile(l_data, l_bfile, DBMS_LOB.getlength(l_bfile));
DBMS_LOB.fileclose(l_bfile);
RETURN l_data;
END;

Just for the sake of clarification ... What value are you specifying for p_dir variable?
It should be a directory object created in the database.
It can be created with a command like
CREATE OR REPLACE DIRECTORY BFILE_DIR AS 'e:\middle-east\ssm';
and the user who is going to call the function should have read access on this directory object which can be granted with a command like
grant read on directory BFILE_DIR to FUNCTIONCALLINGUSER;
I hope this helps with what you are trying
Best Regards

Similar Messages

  • Nobody Can Solve this Problem

    My rollover images do not work in Internet Explorer 6. Here's
    the page. The people and the starbursts should change upon
    mouseover. Is there a fix for this?
    http://www.dittydaddys.com/index.html

    Hard to test since I have IE 7. Which it works just fine in.
    My guess is possible error in the javascript to handle the png
    files. Also it is not a good idea to use the mailto in your web
    page. Its best to find another way as bots can scan the web page
    and start dumping spam in your email.
    One way is to create a simple contact page, where you can
    control what headers are passed and how the body of the email will
    be sent to you. So it is possible to force the email to be straight
    text with no formatting and be able to remove any html tags or
    javascript from the text before you even see it. this can be done
    by using one of the server side languages on your server. You may
    have to ask your service provider of what is available then search
    amazon for a few good books. Well worth learning.

  • Wav vs. ID3 = nobody can solve this problem !

    Hi. I have a big quesion for you guys. Check it out.
    I have almost 800 wav files on my external drive #1. I have entered the information for every tracks in iTunes (quite an big big big job!).
    The thing is, i know the wav files does not keep this info in the file (unlike the mp3).
    As long as I let the wav files in my external drive #1, iTunes will keep the info alive).
    But if, for example, i copy the files into a new external drive (#2) and i try to reimport the wav files, i will loose all the song infos.
    *So the big question :*
    +IS there a way to copy the files on another drive and relink them all without losing all the information ?+

    Yes the thing is i mainly buy my techno tracks from Beatport.com and download the WAV version, because since it's 1411 kbps it's sound better in club sound systems (especially basses). So thats why I don't do that.
    Ok. So let's recap and if somebody could tell me if I am ok it would be nice:
    1. I am buying a new 750 GB portable external drive (Drive A).
    2. I will create a new folder in my Drive A. I will name it "Folder A"
    3. I will copy from my main computer into Folder A the Album Artwork folder and the iTunes Music Library.xml (I am not copying my actual iTunes Music Folder because there's nothing inside of it.
    4. I will copy my 450 GB mp3 batch (Mp3 Batch 1) into Folder A on Drive A.
    5. I will copy my 80 GB of WAV (on my external drive B) in Folder A on drive A.
    6. I will change my iTunes music folder (in my preferences) to the new music folder on Drive A.
    7. I will go in Advanced > Consolidate Library
    8** I heard that when it's done, you have to option+click on the iTunes icon and choose our new library. Is it true ?
    thanks for the feedback!

  • [Desperate] Our company will pay if you can solve this memory problem!

    We have a java program running in linux. The problem with this program is that it's memory usage keep increasing in size and does not stop. Eventually all the swap space will be used and the system dies. However, here is the key, the heap usage DOES NOT INCREASE. We cannot figure this out. What could the problem here?
    Heap Usage shown by profile: cycles between 450-500Mb. VM was set to havea 600Mb limit
    Total memory usage 6Gb shown by the unix utility top and growing.

    sabre150 wrote:
    Yarlag wrote:
    sabre150 wrote:
    Yarlag wrote:
    I'm sorry we can provide any information as need, but we are really just not sure where to start.
    1) We do not use any runtime.exec
    2) No native libraries
    3) We have no file I/O but plenty of network I/OI doubt if I can really help but if you close the program before running out of swap space is the memory returned?Yes if I close the program, all memory (both resident and in swap) is returned to the OS.So as I initially surmised, you seem to have a native method memory leak. How you find it I don't know.
    What version of Java are you using?
    Are you using one the the non-Sun Java abominations such as gcj or Openjdk? If so then don't .
    Edited by: sabre150 on Sep 29, 2009 8:46 PM1) How do you come to the conclustion that I have a native method memory leak? No evidence suggests that and we know that we do not use any native method.
    2) 1.6
    3) Sun's JVM

  • Who can solve this difficult problem?

    I have written a java program:
    import java.util.*;
    class Test0 {
    public static void main(String[] args) {
    LinkedList[] Cate= new LinkedList[4];
    (Cate[0]).add(0,"cat");
    (Cate[0]).add("kate");
    System.out.println(Cate[0]);
    Cate[2].add("dog");
    Cate[2].add("girl");
    for(int i=0;i<4;i++){
    Cate.add("boy");
    System.out.println(Cate[i]);
    } // end of main class
    // end of class
    But i can not run it correctly,why?

    No, I can not compile it correctly:
    import java.util.*;
    class Test0 {
    public static void main(String[] args) {
    class Point{
    public int x=2;
    public int y=5;
    LinkedList[] Cate= new LinkedList[4];
    // according your advice:
    for(int i=0;i<4;i++){
    Cate = new LinkedList();
    Point x1 = new Point();
    Point x2 = new Point();
    Cate[0].add(x1);
    Cate[0].add(x2);
    Cate[2].add("dog");
    Cate[2].add("girl");
    System.out.println( ((Point)(Cate[0].get(0)) ).x );
    System.out.println( ((Point)(Cate[0].get(0)) ).y );
    System.out.println( ((Point)(Cate[0].get(1)) ).x );
    System.out.println( ((Point)(Cate[0].get(1)) ).y );
    for(int i=0;i<4;i++){
    //Cate.add("boy");
    System.out.println(Cate[i]+" "+Cate[i].size() );
    I got this:
    [xwl@zhyj_12 Test.old]$ javac Test0.java
    Test0.java:13: incompatible types
    found : java.util.LinkedList
    required: java.util.LinkedList[]
    Cate = new LinkedList();
    ^
    1 error
    But Ragnvald told me another method yestoday,it works perfectly, And I appreciate him. His code like this:
    import java.util.*;
    class Test0 {
    public static void main(String[] args) {
    class Point{
    public int x=2;
    public int y=5;
    LinkedList[] Cate= new LinkedList[4];
    // The difference is Cate or Cate[i] !!!!
    for(int i=0;i<4;i++){
    Cate[i] = new LinkedList();
    Point x1 = new Point();
    Point x2 = new Point();
    Cate[0].add(x1);
    Cate[0].add(x2);
    Cate[2].add("dog");
    Cate[2].add("girl");
    System.out.println( ((Point)(Cate[0].get(0)) ).x );
    System.out.println( ((Point)(Cate[0].get(0)) ).y );
    System.out.println( ((Point)(Cate[0].get(1)) ).x );
    System.out.println( ((Point)(Cate[0].get(1)) ).y );
    for(int i=0;i<4;i++){
    //Cate[i].add("boy");
    System.out.println(Cate[i]+" "+Cate[i].size() );

  • How I can solve this problem or manipulate it ports 80,443 are closed by ISP and they don't want to open it

    hi,
     I see that I have a particulier abonnee of my ISP , which has closed all the ports for security reason and they don't want to open  any of it 80,443 ect.
    suppose If I want to use Essential server 2012  how I can solve this problem , essential wants domain name whith A record.
    I asked DDNS service provider if I lease from them a domain name whith A record  would that help to open or manipulate the port 80,443  they said that I have to solve this problem myself . they lease only domain names with dynamic dns records.  
     so what can be a solution the ISP provider won't open this ports , how I can solve this problem .   domain name with ip adres is not helping so what it's go to help?
    thanks
    johan
    h.david

    The domain name in this instance is only used for remote access, and is seperate from the active directory domain name.
    If your ISP blocks port 80 and 443, and you dont intend to use remote access anyway, the wizard will likely not complete successfully whether you have a valid domain name or not.
    Robert Pearman SBS MVP
    itauthority.co.uk |
    Title(Required)
    Facebook |
    Twitter |
    Linked in |
    Google+

  • Hello all .. i have a big problem in my ipad version 5.1.1 that is when i connect the ipad with my computer the i tunes give me this message ( itunes couldnt connect to this ipad .an unknown error occurred (0xE8000012).) how i can solve this problem pleas

    hello all .. i have a big problem in my ipad version 5.1.1 that is when i connect the ipad with my computer the i tunes give me this message ( itunes couldnt connect to this ipad .an unknown error occurred (0xE8000012).) how i can solve this problem please
    and this is an pic for the problem

    There is some troubleshooting for 0xE8 error codes on this page : http://support.apple.com/kb/TS3221 - you could see if anything on that page fixes it

  • I can not buy the gem in the "clash of clans" game, It says "My purchase could not be completed". How I can solved this problem?

    I can not buy the gem in the "clash of clans" game, It says "My purchase could not be completed". How I can solved this problem?

    If you are also getting a message to contact iTunes Support then you can do so via this link and ask them for help (we are fellow users here on these forums, we won't know why the message is appearing) : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • When I close my iPhone and I want to open it to use it again, the opening process takes more than an hour, I regretted to buy the iPhone because of this problem that you do not suffer at all with Nokia,how I can solve this problem?

    When I close my iPhone and I want to open it to use it again, the opening process takes more than an hour, I regretted to buy the iPhone because of this problem that you do not suffer at all with Nokia,how I can solve this problem?

    mostafa182 wrote:
    ... how I can solve this problem?
    The Basic Troubleshooting Steps are:
    Restart... Reset... Restore from Backup...  Restore as New...
    Restart / Reset
    http://support.apple.com/kb/ht1430
    Backing up, Updating and Restoring
    http://support.apple.com/kb/HT1414
    If you try all these steps and you still have issues... Then a Visit to an Apple Store or AASP (Authorized Apple Service Provider) is the Next Step...
    Be sure to make an appointment first...

  • Hello apple guys, i can't open app store, reminders, contacts, mail(crash), maps, Image Capture, and other apps that comes with Mavericks OS, how i can solve this problem?

    hello apple guys, after installing OS X Mavericks, i can't open app store, reminders, contacts, mail(crash), maps, Image Capture, and other apps that comes with Mavericks OS, how i can solve this problem?

    So is this the way Apple works now? Not solving customers problems? I'm sure so many users have had this problem. I've had, and I reinstalled Mavericks 3 times. Works fine for some days and then several Apple Apps stop working. Is that a way to force us ti update to Yosemite? (I don't want to) and then pay to update some third party programs (i.e. Pro Tools). Also, there are so many 15" MacBooks Pro with graphic problems and of course the guys at the Apple Service Centers always say: "It's the logic board, you can have it replaced, but it's so expensive I would recommend a new Mac".  I really, really miss Steve Jobs!

  • I have a problem in my iphone 4 with wi-fi after update to IOS6 please can help my how can solve this problem?

    I have a problem in my iphone 4 with wi-fi after update to IOS6 please can help my how can solve this problem?

    Nope
    One needs to press the home and sleep / wake keys together for the phone to reset
    The other thing I could recommend
    Let the battery run out and the phone completely "die"
    It may take a day or two with it not being used
    Then plug it in to charge and see if there is any change in behavior
    If you cannot get this to work - you may need to bring it to an Apple store

  • When i go to new sms typing their is always show a text, how can solve this problem?

    when i go to new sms typing their is always show a text, how can solve this problem?

    Delete them and then download them from the desired Apple ID. This may require repurchasing paid applications.
    (95675)

  • HT1386 Please contact itunes support to complete this transaction how i can solve this problem on my iphone 4s IOS 5.1.1

    Please contact itunes support to complete this transaction how i can solve this problem on my iphone 4s IOS 5.1.1

    Do as directed & contact iTunes support:
    http://www.apple.com/support/itunes/

  • Hi my iphone 4 is disabled how can solve this problem? help me please

    hi my iphone 4 is disabled how can solve this problem? help me please

    What do you mean by "disabled"? Disabled by entering the wrong passcode? If so, you'll have to force the phone into recovery mode & restore it to get it working again & remove the passcode:
    Turn your phone off, then force it into recovery mode & restore it:
    Leave the USB cable connected to your computer, but NOT your phone, iTunes running, press & hold the home button while connecting the USB cable to your dock connector, continue holding the home button until you see “Connect to iTunes” on the screen. You may now release the home button. iTunes should now display that it has detected your phone in recovery mode, if not quit and reopen iTunes. If you still don’t see the recovery message repeat these steps again. iTunes will give you the option to restore from a backup or set up as new.

  • Help me please ,I dont can solve this problem

    please How I can solve this problem?(SQL)
    Display each employee’s last name, hire date, and salary review date, which is the first Monday after
    six months of service. Label the column REVIEW. Format the dates to appear similar to “Monday,
    the Thirty-First of July, 2000.”
    Flickr: abbasovv's Photostream

    Where you get this task?  I didn't understand anything, really! what do you want to do? what is the purpose? to get next 6 months function ADD_MONTHS, to get next monday, tuesday ... use function NEXT_DAY, to get number of week use function TO_CHAR.
    WITH T AS(
    select to_date('17-JUN-1987','dd-mon-yyyy') D from dual union all
    select to_date('21-SEP-1989','dd-mon-yyyy') from dual union all
    select to_date('13-JAN-1993','dd-mon-yyyy') from dual union all
    select to_date('03-JUN-1990','dd-mon-yyyy') from dual union all
    select to_date('21-MAY-1991','dd-mon-yyyy') from dual union all
    select to_date('07-FEB-1999','dd-mon-yyyy') from dual union all
    select to_date('16-NOV-1999','dd-mon-yyyy') from dual )
    SELECT D,
           ADD_MONTHS(D,6),
           NEXT_DAY(ADD_MONTHS(D,6),'MONDAY'),
           TO_CHAR(ADD_MONTHS(D,6),'W'),
           TO_CHAR(ADD_MONTHS(D,6),'fmDay, fmdd fmMonth fmyyyy')
    FROM T
    WHERE TO_CHAR(ADD_MONTHS(D,6),'W') = 1
    Ramin Hashimzade

Maybe you are looking for