Query Regarding UTL_FILE.fopen() -

Guys hope you all doin well-
I am using Oracle 9i release 2 -
I am having problem while i am trying to open a file using the UTL_FILE builtin package -
I created the directory as well where the file is located, that i want to access
While i am executing the utl_file.fopen function returns record
location in varchar2 ,
filename in varchar2 ,
open_mode in varchar2 ,
max_linesize in binary_integer default
returns the following error ORA-29283: invalid file operation
The description of the error i found is:
ORA-29283: invalid file operation
Cause: An attempt was made to read from a file or directory that does not exist, or file or directory access was denied by the operating system.
Action: Verify file and directory access privileges on the file system, and if reading, verify that the file exists
The file exists and the user has the privileges to access the file too - but still having problems
please help -
if any buddy has the idea please share -
Thanks
Y.V.

Hello Y.V.
Have you set the parameter utl_file_dir? Please check. In most of the cases the problem is because of this parameter
You can set it to directory that you want to access. Or else you can set it to * (which means) that UTL_FILE would be able to read from any directory on which Oracle Binary Owner has got access. Please be careful when setting this to *
To check the parameter use query:
select name,value from v$parameter
where name ='utl_file_dir';
Regards
Sudhanshu
OCP DBA

Similar Messages

  • Broken korean characters while using utl_file.fopen

    Hi,
    I have korean data in a table and I need to extract it out.
    Am using utl_file.fopen for this. It extracts, but korean characters are coming broken...
    Is there some setting (NLS_LANG etc) that I need to do? I tried NLS_LANG korean_korea.KO16KSC5601 but didn't help...
    Thanks,
    Sachin

    Please post this question in the Database forum for an appropriate response: General Database Discussions
    Regards,
    OTN

  • Utl_file.fopen

    Hi everyone..
    I am using utl_file to write delimited data into text files.In the utl_file.fopen i changed the default l "max line size" to 32767 when i got some error regarding the line size.After changing that that max line size paramaterer,I am getting lot of space after each line.
    Does that max line size parameter means that every line "should" be that size? why i am getting lot of space after each line?
    question1:
    ======
    How to remove that empty spaces that i got after each line in my text file?
    FILEHANDLE := UTL_FILE.FOPEN('TEST_UTL_FILE','file_name.txt', 'W',32767);And i am trying to find the length of the string that i am passing it utl_file.put_line
    I am trying to insert that length to a "test" table ,so that i can check the max length of each line that is passing to the utl_file.
    I have this insert command in my PL/SQL block
    insert into test_number_char (num) values (dbms_lob.getlength(EXTRACTED_STRING)); and the data type of "num" column is number(20,0)
    I am getting the following error .
    ERROR getting members -1461 ORA-01461: can bind a LONG value only for insert into a LONG columnquestion 2:
    =======
    How to get the length of the string that i am writing into file?
    Thanks
    phani

    Hi Phani,
    >
    question1:
    ======
    How to remove that empty spaces that i got after each line in my text file?
    >
    something like this,
       string := Rtrim(string,' ');question 2:
    =======
    How to get the length of the string that i am writing into file?
    >
    look at this,
    SQL> Set Serveroutput on
    SQL> Create or Replace Directory SOME_DIR As 'C:\Temp';
    Directory created
    SQL> Create table Test_ As (Select dbms_random.string('X',10) as Txt From dual Connect by Level <= 2500);
    Table created
    SQL>
    SQL> Declare
      2     v_column   Varchar2(30);
      3     l_utl_dir  Varchar2(30) := 'SOME_DIR';
      4     l_utl_file Varchar2(30) := 'Some_File.txt';
      5     l_header   Varchar2(32767) := Null;
      6     l_utl_id   UTL_FILE.FILE_TYPE;
      7  Begin
      8     DBMS_OUTPUT.ENABLE(32767);
      9 
    10     l_utl_id := UTL_FILE.FOPEN( location     => l_utl_dir
    11                               , filename     => l_utl_file
    12                               , open_mode    => 'w'
    13                               , max_linesize => 32767);
    14 
    15     For i IN (SELECT Rowid
    16                 FROM TEST_) Loop
    17 
    18        For x IN (SELECT COLUMN_NAME
    19                       , TABLE_NAME
    20                    FROM ALL_TAB_COLS
    21                   WHERE TABLE_NAME = 'TEST_') Loop
    22 
    23           Execute Immediate 'select ' || x.column_name || ' from ' ||
    24                             x.table_name || ' where rowid = :pi_input'
    25              INTO v_column
    26              Using IN i.Rowid;
    27 
    28           l_header := l_header || v_column || ' ';
    29 
    30        End Loop;
    31     End Loop;
    32 
    33     UTL_FILE.PUT_LINE( file   => l_utl_id
    34                      , buffer => l_header );
    35 
    36     UTL_FILE.FCLOSE(file => l_utl_id);
    37 
    38     DBMS_OUTPUT.PUT_LINE( LENGTH( l_header ) );
    39  End;
    40  /
    27500
    PL/SQL procedure successfully completedHope this helps,
    Christian Balz

  • Oracle 9i UTL_FILE.FOPEN throwing READ_ERROR

    Hi
    while running the package containg UTL_FILE.FOPEN
    I am getting an error for reading the file on this statement :
    v_file_handler := UTL_FILE.FOPEN(i_directory_path,i_file_name,'R');This happens in UNIX ,LINUX and windows NT server .
    kindly suggest , whether this is an OS error (technical problem) or something else .
    thanx in advance ,
    Ashutosh .

    Hi
    the UTL_FILE.FOPEN only opens an existing flat file on your OS , the UTL_FILE.GET_LINE reads from the file.
    many reasons to generate a read error .
    the file can be corrupted, the file doesn't exists or you havent configured the UTL_FIL_DIR parameter in the init.ora file which should be on the machine where the database is.
    make sure you have the correct file name and the parameter is set.
    also try to handle the exception.
    WHEN UTL_FILE.READ_ERROR THEN
    RAISE_APPLICATION_ERROR (-20204, SQLCODE || ' ' || SQLERRM);
    UTL_FILE.FCLOSE(v_filehandle);
    like this you can get the exact error code and message.
    Regards
    Tony G.

  • Query regarding External tables

    DECLARE
    FileIn UTL_FILE.FILE_TYPE;
    v_sql VARCHAR2 (1000);
    BEGIN
    FileIn := UTL_FILE.FOPEN ('DIR_TEMP', 'test_file_out.txt', 'R');
    IF UTL_FILE.IS_OPEN(FileIn) THEN
    LOOP
    BEGIN
    UTL_FILE.GET_LINE (FileIn, v_sql);
    dbms_output.put_line(v_sql);
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    EXIT;
    END;
    END LOOP;
    END IF;
    UTL_FILE.FCLOSE (FileIn);
    END;
    above mentioned is the procedure to read from a flat file.
    I would like to know the procedure to load flat file data into table using external tables:
    i have tried using this code but it displays errors:
    CREATE TABLE EXT_EMP
    ( EMPNO NUMBER(4), ENAME VARCHAR2(10), JOB VARCHAR2(9),
    MGR NUMBER(4), HIREDATE DATE, SAL NUMBER(7,2), COMM NUMBER(7,2), DEPTNO NUMBER(2))
    ORGANIZATION EXTERNAL (
    TYPE ORACLE_LOADER
    DEFAULT DIRECTORY DIR_TEMP
    ACCESS PARAMETERS(
    RECORDS DELIMETED BY newline
    FIELDS TERMINATED BY ','
    MISSING FIELD VALUES ARE NULL(COMM NUMBER(7,2))
    LOCATION ('test_file_out.txt')
    PARALLEL
    REJECT LIMIT UNLIMITED;
    db: Oracle 11g , OS: windows vista

    the query works fine as table is created.
    but:
    select * from ext_emp;
    o/p: no rows.
    ext.bad :
    7369,SMITH,CLERK,7902,17-DEC-80,800,,20
    7499,ALLEN,SALESMAN,7698,20-FEB-81,1600,300,30
    7521,WARD,SALESMAN,7698,22-FEB-81,1250,500,30
    7566,JONES,MANAGER,7839,02-APR-81,2975,,20
    7654,MARTIN,SALESMAN,7698,28-SEP-81,1250,1400,30
    7698,BLAKE,MANAGER,7839,01-MAY-81,2850,,30
    7782,CLARK,MANAGER,7839,09-JUN-81,2450,,10
    7788,SCOTT,ANALYST,7566,19-APR-87,3000,,20
    7839,KING,PRESIDENT,,17-NOV-81,5000,,10
    7844,TURNER,SALESMAN,7698,08-SEP-81,1500,0,30
    7876,ADAMS,CLERK,7788,23-MAY-87,1100,,20
    7900,JAMES,CLERK,7698,03-DEC-81,950,,30
    7902,FORD,ANALYST,7566,03-DEC-81,3000,,20
    7934,MILLER,CLERK,7782,23-JAN-82,1300,,10
    ext.log:
    LOG file opened at 04/01/09 02:13:13
    Field Definitions for table EXT_EMP
    Record format DELIMITED BY NEWLINE
    Data in file has same endianness as the platform
    Rows with all null fields are accepted
    Fields in Data Source:
    EMPNO Integer (4)
    Record position (+0, +4)
    Terminated by ","
    Trim whitespace same as SQL Loader
    ENAME CHAR (255)
    Terminated by ","
    Trim whitespace same as SQL Loader
    JOB CHAR (255)
    Terminated by ","
    Trim whitespace same as SQL Loader
    MGR Integer (4)
    Record position (+0, +4)
    Terminated by ","
    Trim whitespace same as SQL Loader
    HIREDATE CHAR (9)
    Date datatype DATE, date mask DD-MON-YY
    Terminated by ","
    Trim whitespace same as SQL Loader
    SAL Integer (4)
    Record position (+0, +4)
    Terminated by ","
    Trim whitespace same as SQL Loader
    COMM Integer (4)
    Record position (+0, +4)
    Terminated by ","
    Trim whitespace same as SQL Loader
    DEPTNO Integer (4)
    Record position (+0, +4)
    Terminated by ","
    Trim whitespace same as SQL Loader
    error processing column HIREDATE in row 1 for datafile c:\temp\test_file_out.txt
    ORA-01858: a non-numeric character was found where a numeric was expected
    error processing column HIREDATE in row 2 for datafile c:\temp\test_file_out.txt
    ORA-01858: a non-numeric character was found where a numeric was expected
    error processing column HIREDATE in row 3 for datafile c:\temp\test_file_out.txt
    ORA-01858: a non-numeric character was found where a numeric was expected
    error processing column HIREDATE in row 4 for datafile c:\temp\test_file_out.txt
    ORA-01858: a non-numeric character was found where a numeric was expected
    error processing column HIREDATE in row 5 for datafile c:\temp\test_file_out.txt
    ORA-01858: a non-numeric character was found where a numeric was expected
    error processing column HIREDATE in row 6 for datafile c:\temp\test_file_out.txt
    ORA-01858: a non-numeric character was found where a numeric was expected
    error processing column HIREDATE in row 7 for datafile c:\temp\test_file_out.txt
    ORA-01858: a non-numeric character was found where a numeric was expected
    error processing column HIREDATE in row 8 for datafile c:\temp\test_file_out.txt
    ORA-01858: a non-numeric character was found where a numeric was expected
    error processing column HIREDATE in row 9 for datafile c:\temp\test_file_out.txt
    ORA-01858: a non-numeric character was found where a numeric was expected
    error processing column HIREDATE in row 10 for datafile c:\temp\test_file_out.txt
    ORA-01858: a non-numeric character was found where a numeric was expected
    error processing column HIREDATE in row 11 for datafile c:\temp\test_file_out.txt
    ORA-01858: a non-numeric character was found where a numeric was expected
    error processing column HIREDATE in row 12 for datafile c:\temp\test_file_out.txt
    ORA-01858: a non-numeric character was found where a numeric was expected
    error processing column HIREDATE in row 13 for datafile c:\temp\test_file_out.txt
    ORA-01858: a non-numeric character was found where a numeric was expected
    error processing column HIREDATE in row 14 for datafile c:\temp\test_file_out.txt
    ORA-01858: a non-numeric character was found where a numeric was expected
    " I tried changing hiredate "dd-mm-yy" to hiredate "dd-mon-yy" but there is no difference.

  • Procedure using utl_file.fopen

    Hi ,
    I want to open a file ,read it line by line and if i find one particular word i want to display the whole line.
    I tried writing a procedure but not getting desired output.
    DECLARE
    x utl_file.file_type;
    y varchar2(200);
    BEGIN
    x:= utl_file.fopen('TRACE1',DB_ora_111_trc.txt','R');
    LOOP
    BEGIN
    UTL_FILE.GET_LINE(x,y);
    if x='select' then
    dbms_output.put_line(x);
    end if;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN EXIT ;
    END;
    END LOOP;
    utl_file.fclose(x);
    END;
    Here i am opening a tkprof file and trying to grep for select word and if it is found,display the whole select query.The above is not showing any output.Kindly assist me since i am new to coding.
    Thanks

    user10698496 wrote:
    Hi,
    I am getting only these much as my output . I want to see entire select query.DECLARE
    f utl_file.file_type;
    s varchar2(2000);
    BEGIN
    f := utl_file.fopen('TRACE1','DB_ora_1118250.trc.txt','R');
    LOOP
    BEGIN
    UTL_FILE.GET_LINE(f,s);
    if lower(s) like '%select%' then
    dbms_output.put_line(s);
    end if;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN EXIT ;
    END;
    END LOOP;
    utl_file.fclose(f);
    END;
    SELECT uid,tname,str,acol,hcol,TO__CHAR(u_time,'DD-MM-YYYY
    SELECTgroup,name,address1,state,country,fax_no,
    PL/SQL procedure successfully completed.
    Ok, so that is telling us that you have your queries split over multiple lines?
    In that case you need to "switch on" the output of lines from the moment you find a "select" and then switch it off again when you get a line that indicates the end of the select. So let's assume your selects end with a ";" as the last character on the last line of the select, you can do something like this...
    DECLARE
      f utl_file.file_type;
      s varchar2(2000);
      in_select boolean;
    BEGIN
      f := utl_file.fopen('TRACE1','DB_ora_1118250.trc.txt','R');
      in_select := false;
      LOOP
        BEGIN
          UTL_FILE.GET_LINE(f,s);
          if lower(s) like '%select%' or in_select then
            dbms_output.put_line(s);
            in_select := not(s like '%;'); -- stop when we get to ";" at end of a line.
          end if;
        EXCEPTION
          WHEN NO_DATA_FOUND THEN EXIT ;
        END;
      END LOOP;
      utl_file.fclose(f);
    END;
    Also i attempted to cut only table name from the output select query.I tried something like o :=substr(s,instr(s,'from')+4);PFB the code and output.Pls let me know where am i going wrong.
    DECLARE
    2  f utl_file.file_type;
    3  s varchar2(2000);
    4  op varchar2(1000);
    5  BEGIN
    6  f := utl_file.fopen('TRACE_EXTRACT','DB_ora_1118250.trc.txt','R');
    7  LOOP
    8  BEGIN
    9  UTL_FILE.GET_LINE(f,s);
    10  if lower(s) like '%select%' then
    11  op :=substr(s,instr(s,'from')+4);
    12  dbms_output.put_line(op);
    13  end if;
    14
    15  EXCEPTION
    16  WHEN NO_DATA_FOUND THEN EXIT ;
    17  END;
    18  END LOOP;
    19  utl_file.fclose(f);
    20  END;
    21  /
    ECT uid,tname,str,acol,hcol,TO__CHAR(u_time,'DD-MM-YYYY
    ECTgroup,name,address1,state,country,fax_no,
    that's because there is no "from" on those lines, so the result of the instr is 0 and you are adding 4, so you are getting all characters from character 4 onwards.
    What you need in conjunction with my above suggestion is something like this...
    DECLARE
      f utl_file.file_type;
      s varchar2(2000);
      in_select boolean;
    BEGIN
      f := utl_file.fopen('TRACE1','DB_ora_1118250.trc.txt','R');
      in_select := false;
      LOOP
        BEGIN
          UTL_FILE.GET_LINE(f,s);
          if lower(s) like '%select%' or in_select then
            dbms_output.put_line(s);
            if lower(s) like '%from%' then
              dbms_output.put_line('TABLES: '||substr(s,instr(s,'from'+5))); -- +5 to get past the from and the space character after it.
            end if;
            in_select := not(s like '%;'); -- stop when we get to ";" at end of a line.
          end if;
        EXCEPTION
          WHEN NO_DATA_FOUND THEN EXIT ;
        END;
      END LOOP;
      utl_file.fclose(f);
    END;
    /

  • Query regarding updation thru a Procedure

    Hi,I have a query regarding updation.
    1.I invoke a procedure in Oracle called submit thru my Java application.
    The submit procedure saves the XML data in the database
    and displays this data in a Front End GUI.
    2. Now,I make a change in my Java application by adding new elements to the same row.This row now contains additional XML elements.
    I would like to display the new row with the new elements in the GUI.
    What is a better option for doing the above?
    1.Delete the row being shown,save the new row with the changes in the database,and re display it?
    2.Or,Update the row dynamically and refresh?
    Any suggestions
    Thanks,

    Hi,I have a query regarding updation.
    1.I invoke a procedure in Oracle called submit thru
    my Java application.
    The submit procedure saves the XML data in the
    database
    and displays this data in a Front End GUI.
    2. Now,I make a change in my Java application by
    adding new elements to the same row.This row now
    contains additional XML elements.
    I would like to display the new row with the new
    elements in the GUI.
    What is a better option for doing the above?
    1.Delete the row being shown,save the new row with
    the changes in the database,and re display it?
    2.Or,Update the row dynamically and refresh?
    Any suggestions
    Thanks,If you delete (it seems to me yours this process is regular and frequent) and re insert the new updated one record then High water mark will cause to scan yours table which may cause to degrade the performance.AFAIK you should go with update.But hold down dont implement it as i suggested lets see what are others solution here which may be more precious then mine.
    Khurram

  • A query regarding synchronised functions, using shared object

    Hi all.
    I have this little query, regarding the functions that are synchronised, based on accessing the lock to the object, which is being used for synchronizing.
    Ok, I will clear myself with the following example :
    class First
    int a;
    static int b;
    public void func_one()
    synchronized((Integer) a)
    { // function logic
    } // End of func_one
    public void func_two()
    synchronized((Integer) b)
    { / function logic
    } // End of func_two
    public static void func_three()
    synchronized((Integer) a)
    { // function logic
    } // End of func_three, WHICH IS ACTUALLY NOT ALLOWED,
    // just written here for completeness.
    public static void func_four()
    synchronized((Integer) b)
    { / function logic
    } // End of func_four
    First obj1 = new First();
    First obj2 = new First();
    Note that the four functions are different on the following criteria :
    a) Whether the function is static or non-static.
    b) Whether the object on which synchronization is based is a static, or a non-static member of the class.
    Now, first my-thoughts; kindly correct me if I am wrong :
    a) In case 1, we have a non-static function, synchronized on a non-static object. Thus, effectively, there is no-synchronisation, since in case obj1 and obj2 happen to call the func_one at the same time, obj1 will obtain lock for obj1.a; and obj2 will obtain lock to obj2.a; and both can go inside the supposed-to-be-synchronized-function-but-actually-is-not merrily.
    Kindly correct me I am wrong anywhere in the above.
    b) In case 2, we have a non-static function, synchronized on a static object. Here, again if obj1, and obj2 happen to call the function at the same time, obj1 will try to obtain lock for obj1.a; while obj2 will try to obtain lock for obj2.a. However, since obj1.a and obj2.a are the same, thus we will indeed obtain sychronisation.
    Kindly correct me I am wrong anywhere in the above.
    c) In case 3, we have a static function , synchronized on a non-static object. However, Java does not allow functions of this type, so we may safely move forward.
    d) In case 4, we have a static function, synchronized on a static object.
    Here, again if obj1, and obj2 happen to call the function at the same time, obj1 will try to obtain lock for obj1.a; while obj2 will try to obtain lock for obj2.a. However, since obj1.a and obj2.a are the same, thus we will indeed obtain sychronisation. But we are only partly done for this case.
    First, Kindly correct me I am wrong anywhere in the above.
    Now, I have a query : what happens if the call is made in a classically static manner, i.e. using the statement "First.func_four;".
    Another query : so far we have been assuming that the only objects contending for the synchronized function are obj1, and obj2, in a single thread. Now, consider this, suppose we have the same reference obj1, in two threads, and the call "obj1.func_four;" happens to occur at the same time from each of these threads. Thus, we have obj1 rying to obtain lock for obj1.a; and again obj1 trying to obtain lock for obj1.a, which are the same locks. So, if obj1.a of the first thread obtains the lock, then it will enter the function no-doubt, but the call from the second thread will also succeed. Thus, effectively, our synchronisation is broken.
    Or am I being dumb ?
    Looking forward to replies..
    Ashutosh

    a) In case 1, we have a non-static function, synchronized on a non-static object. Thus, effectively, there is no-synchronisationThere is no synchronization between distinct First objects, but that's what you specified. Apart from the coding bug noted below, there would be synchronization between different threads using the same instance of First.
    b) In case 2, we have a non-static function, synchronized on a static object. Here, again if obj1, and obj2 happen to call the function at the same time, obj1 will try to obtain lock for obj1.a; while obj2 will try to obtain lock for obj2.a.obj1/2 don't call methods or try to obtain locks. The two different threads do that. And you mean First.b, not obj1.b and obj2.b, but see also below.
    d) In case 4, we have a static function, synchronized on a static object. Here, again if obj1, and obj2 happen to call the function at the same time, obj1 will try to obtain lock for obj1.a; while obj2 will try to obtain lock for obj2.a.Again, obj1/2 don't call methods or try to obtain locks. The two different threads do that. And again, you mean First.b. obj1.b and obj2.b are the same as First.b. Does that make it clearer?
    Now, I have a query : what happens if the call is made in a classically static manner, i.e. using the statement "First.func_four;".That's what happens in any case whether you write obj1.func_four(), obj2.func)four(), or First.func_four(). All these are identical when func_four(0 is static.
    Now, consider this, suppose we have the same reference obj1, in two threads, and the call "obj1.func_four;" happens to occur at the same time from each of these threads. Thus, we have obj1 rying to obtain lock for obj1.aNo we don't, we have a thread trying to obtain the lock on First.b.
    and again obj1 trying to obtain lock for obj1.aYou mean obj2 and First.b, but obj2 doesn't obtain the lock, the thread does.
    which are the same locks. So, if obj1.a of the first thread obtains the lock, then it will enter the function no-doubt, but the call from the second thread will also succeed.Of course it won't. Your reasoning here makes zero sense..Once First.b is locked it is locked. End of story.
    Thus, effectively, our synchronisation is broken.No it isn't. The second thread will wait on the same First.b object that the first thread has locked.
    However in any case you have a much bigger problem here. You're autoboxing your local 'int' variable to a possibly brand-new Integer object every call, so there may be no synchronization at all.
    You need:
    Object a = new Object();
    static Object b = new Object();

  • Query regarding the conversion of DME file in MT940 format.

    Hello Experts,
    I have a query regarding the generation of MT940 file after generating the payment file from other DME tree.
    After completion of payment run, my payment file is generated in the DME format which is according to the DME tree.
    I want to convert the DME file (which is generated via F110)  from existing format to the standard MT940 format.
    Is there any standard program which converts the DME file to MT940. If so,  please inform me as early.
    I have tried to upload the DME file in FF.5 transaction, but it is not allowing me to convert the file in MT940 structure.
    Or please inform the steps how i can convert the file .
    Awaiting for your inputs.
    Thanks in advance

    Hi Zareena.
    I would like to suggest,
    SX_OBJECT_CONVERT_RAW_TXT.
    Hope that's usefull.
    Good Luck & Regards.
    Harsh Dave

  • Invalid_path exception while using UTL_FILE.FOPEN

    Hi
    I am getting invalid_path exception while using the UTL_FILE.fopen subprogram. I tried finding out the reason but could not solve it. Please help.
    Below is my piece of code.
    create directory utldr as 'e:\utldir';
    declare
    f utl_file.file_type;
    s varchar2(200);
    begin
    dbms_output.put_line('1');
    f := utl_file.fopen('UTLDR','utlfil.txt','r');
    dbms_output.put_line('2');
    utl_file.get_line(f,s);
    dbms_output.put_line('3');
    utl_file.fclose(f);
    dbms_output.put_line('4');
    dbms_output.put_line(s);
    exception
    when utl_file.invalid_path then
    dbms_output.put_line('invalid_path');
    end;
    the result is:
    1
    invalid_path

    I am executing it from sys. The same user who created the directory.
    The output is as below:
    SELECT * FROM dba_directories
    OWNER     DIRECTORY_NAME     DIRECTORY_PATH
    SYS     MEDIA_DIR      d:\avale\rel4\demo\schema\product_media\
    SYS     LOG_FILE_DIR     d:\avale\rel4\assistants\dbca\logs\
    SYS     DATA_FILE_DIR     d:\avale\rel4\demo\schema\sales_history\
    SYS     EMP_DIR     E:\Oracle Directory
    SYS     REMOTED     \\10.1.1.12\oracle directory
    SYS     UTLDR     e:\utldir
    SELECT * FROM dba_tab_privs WHERE table_name='UTLDR'
    GRANTEE     OWNER     TABLE_NAME     GRANTOR     PRIVILEGE     GRANTABLE     HIERARCHY
    PUBLIC     SYS     UTLDR     SYS     READ     NO     NO

  • Error while using UTL_FILE.FOPEN

    sir,
    when i write procedure using utl_file.fopen i am getting error as it must be declared PLS-00201. what mistake, i am doing.
    yours
    dr.s.r.bhattachar

    i was under the impression that there will be a moderator who will redirect the question even by mistake we post? is it not?Absolutely not. On the APEX forum we are in the fortunate position of having members of Oracle's APEX team actively involved, but neither they nor any of the other contributors perform the role of moderator or have administrative access to the forum system. The OTN team who do only really perform "moderation" when there has been a breach of the OTN Terms and Conditions.
    If your question has obviously been posted in the wrong forum, or someone thinks you will get a better response elsewhere then generally they'll suggest this, as above.

  • Problem in using UTL_FILE.FOPEN with filename containing accent characters

    select value from nls_database_parameters where parameter = 'NLS_CHARACTERSET';
    VALUE
    AL32UTF8
    declare
    l_output UTL_FILE.FILE_TYPE;
    filename varchar2(100) := 'Avenue des Champs-Élysées.txt';
    begin
    l_output := UTL_FILE.FOPEN ('UPLOAD_DIR', filename, 'W');
    utl_file.put_line (l_output, 'Testing');
    utl_file.fclose(l_output);
    end;
    The file in the UPLOAD_DIR becomes "Avenue des Champs-Élysées.txt"
    can anyone tell me what NLS settings I should use in order to create file with correct filename ?

    symplik wrote:
    The file in the UPLOAD_DIR becomes "Avenue des Champs-Élysées.txt"And what does the o/s file system support and what is the operating system's NLS settings?
    If there is a mismatch between what you do in your code in Oracle, and what the o/s is configured for, then this type of "+translation+" error is to be expected.

  • Query regarding the data type for fetcing records from multiple ODS tables

    hey guys;
    i have a query regarding the data type for fetcing records from multiple ODS tables.
    if i have 2 table with a same column name then in the datatype under parent row node i cant add 2 nodes with the same name.
    can any one help with some suggestion.

    Hi Mudit,
    One option would be to go as mentioned by Padamja , prefxing the table name to the column name or another would be to use the AS keyoword in your SQL statement.
    AS is used to rename the column name when data is being selected from your DB.
    So, the query  Select ename as empname from emptable will return the data with column name as empname.
    Regards,
    Bhavesh

  • Query regarding Cluster nodes in CC

    Hi Experts,
    We have a query regarding the cluster nodes available in the CC monitoring.
    Can two nodes of a same channel can poll at the same time?
    Kindly suggest what should be done to make a specific cluster node of a CC polls at a particular time.
    Thanks
    Suganya.

    Hi,
    There is an answered thread on this
    Processing in  Multiple Cluster Nodes
    Regards,
    Manjusha

  • Query regarding G/LAccounts in psoting

    Hi Experts,
    I have one query regarding PCP0.
    After executing PCP0,If We double click on the posting document we can see the number of G/L accounts in that posting Document.If we double click on each G/L Account it shows all the revision information indetail for all payments cumulated into that particular G/L Account.
    Some of the G/L's are appearing as single line in the posting document and if we double click for the revision information it is showing all the Wagetypes with personnel numbers and the total of each wagetype.
    Some of the G/L's we can see Multiple times for each individual.
    Can any one please explain where does we set up the the revision information for the G/L Accounts .
    Appreciate If anyone can help to know this information.
    Thanks & Regards,
    Sandhya.

    Hi Gopal,
    Counting class are assigned to the Periodic work Schedule 1 to 9 are just arbitart sequence numbers and have no meaning in general they are used for linking Pweriodic Work schedules with differences.
    You can use the class for absence and attendance counting to specify different methods of counting according to the period work schedule.
    They have no other meaning apart from that.
    Thanks and Regards
    Swati

Maybe you are looking for

  • Email PDF smart form Support Desk

    Hi SDN, I'm working on support desk - solution manager, and i need to send the solution of the support message by email to the final user. There is an standard action (SLF1 -SMSD_SERVICE_ORDER_DNO_OUTPUT)  that sends the solution in pdf format by ema

  • Purchase Order Message Determination  - RVCOMFZZ

    I'm using RVCOMFZZ to fill a specific client field added to structure KOMB and KOMKBEA. I need to acess the ekpo info of the purchase order about to be created. My COM_EKPO table is empty. Is this a bug or it's not possible to acess PO item data when

  • Reconciliation after upgraded to 2007B

    Dear all... Are there any steps should we do for reconciliation after we upgraded the database to 2007B? Because I noticed that those BP reconciled records are showing when I click on Bank Statement and External Reconciliations -> Reconciliation by c

  • Does not open the application tab

    does not open the application tab http://adobe.ly/1h3Ng0c How resolve???

  • Problems installing Flash

    Just bought a new iMac and trying to download Flash. Download always times out after about 10 seconds. Any ideas?