ORA-29280 Invqalid directory path

Hi guru,.

connected through sys as sysdba
I created using the directory create or replace directory
Grant read, write on...
Grant execute utl_file made

using the function created utl_file compiled and successful
When running ORA-29280 invalid directory path error comes
checked through select * from all_directories
some place of creation is in order
Then
What has gone wrong?
your
Dr.s.r.bhattachar

PS I use oracleXE with apex 3.2

The directory name is case-sensitive.

Please give it a try.

Tags: Database

Similar Questions

  • ORA-29280: invalid directory path

    do face a problem,

    My requirement is I have to brought from a schema for a remote database my current schema some procedure, packages, functions scripts and compile them here in my current schema.
    Basically, straight word what I have to do is, all functions, procedures, are there packages in the remote schema (that I can access by a datbase link) must be created in my current schema.
    so I got what I was trying to make is just source codes to access all_sources and creating files in a code here directory.giving.

    First, what I've done is created an Oracle Directory.

    First I created a directory called "PROC_PKG_FUNC" in drive D, then I ran the following command.

    SQL > create directory 'PROC_PKG_FUNC' as 'D:\'PROC_PKG_FUNC ';
    Created directory.

    CREATE or REPLACE PROCEDURE Get_Db_Ddl_Scripts as
    v_file Utl_File.FILE_TYPE;
    v_file_dir VARCHAR2 (50);
    i_first_line NUMBER: = 1;
    BEGIN

    v_file_dir: = 'PROC_PKG_FUNC ';

    FOR REC_OBJ IN
    (SELECT a DISTINCT NAME, TYPE, DECODE (TYPE, 'FUNCTION', 'FUNCTIONS', 'PACKAGE', "PACKAGES", "PACKAGE BODY ', 'PACKAGES_BODY'," PROCEDURE", 'PROCEDURES', 'TYPE', 'TYPE', 'TYPE BODY', 'TYPES_BODY') v_file_dir)
    FROM ALL_SOURCE@FRISKDEVI41B_ORCL WHERE OWNER = 'FRISKDEVI41B. '
    AND TYPE IN ('FUNCTION, PROCEDURE, 'PACKAGE', 'PACKAGE BODY', 'TYPE'))
    LOOP
    v_file: = Utl_File.FOPEN (card = > REC_OBJ.v_file_dir,)
    filename = > REC_OBJ.NAME | ".sql",.
    OPEN_MODE = > 'w ',.
    max_linesize = > 32767);
    i_first_line: = 1;
    FOR REC IN (SELECT TEXT FROM ALL_SOURCE@FRISKDEVI41B_ORCL WHERE NAME = REC_OBJ.NAME AND TYPE = REC_OBJ. TYPE AND OWNER = 'FRISKDEVI41B' ORDER BY LINE)
    LOOP
    IF i_first_line = 1 THEN
    Utl_File.put_line (v_file, "CREATE or REPLACE" |) REPLACE (REC. TEXT, CHR (10), NULL));
    ELSE Utl_File.PUT_LINE (v_file, REPLACE (REC. TEXT, CHR (10), NULL));
    END IF;
    i_first_line: = i_first_line + 1;
    END LOOP;
    Utl_File.FCLOSE (v_file);

    END LOOP;

    END;
    /


    but when I try to run this am getting error,
    ORA-29280: invalid directory path
    ORA-06512: at "SYS." UTL_FILE", line 33
    ORA-06512: at "SYS." UTL_FILE", line 436
    ORA-06512: at "SYS." GET_DB_DDL_SCRIPTS', line 15
    ORA-06512: at line 2

    I know probbaly get this error because I am trying to create different directories, just like functions packages etc. under the external using this loop recording repertoire, but how would it be possible, please help.

    Kind regards
    Manuella

    In oracle when you say that CREATE or REPLACE the DIRECTORY you do not create a directory in the operating system, you simply create a reference to the directory in the operating system.

    So I don't know what you're asking.

  • ORA-29280: invalid directory path error

    I use the code below in the Unix system to generate the data in XML format. But get the error ORA-29280.
    I tried to use create order directory in vain because I don't have DBA privileges to create directories.

    *******************************
    SET SERVEROUTPUT ON
    DECLARE
    v_ctx DBMS_XMLGen.ctxHandle;
    v_file Utl_File.File_Type;
    v_xml CLOB.
    v_more BOOLEAN: = TRUE;
    BEGIN
    -Create the XML context.
    v_ctx: = DBMS_XMLGen.newContext ("SELECT table_name, nom_tablespace FROM user_tables WHERE rownum < 6'");

    -Set the settings to change the names of default tag lines and line and case-sensitive by default.
    DBMS_XMLGen.setRowsetTag (v_ctx, 'USER_TABLES');
    DBMS_XMLGen.setRowTag (v_ctx, 'TABLE');
    -DBMS_XMLGen.setTagCase (v_ctx, DBMS_XMLGen.LOWER_CASE);

    -Add stylesheet XSL IE specfic reference so browser can transform the file.
    -DBMS_XMLGen.setStylesheetHeader (v_ctx, 'C:\Development\XML\IEStyle.xsl', ' text/xsl');

    -Create the XML document.
    v_xml: = DBMS_XMLGen.GetXML (v_ctx);
    DBMS_XMLGen.closeContext (v_ctx);

    -Document XML output to the file.
    v_file: = Utl_File.FOpen ("/ xxx/yyy/zzz ', 'test1.xml', 'w'");
    While v_more LOOP
    Utl_File.put (v_file, Substr (v_xml, 1, 32767));
    IF Length (v_xml) > 32767 THEN
    v_xml: = Substr (v_xml, 32768).
    ON THE OTHER
    v_more: = FALSE;
    END IF;
    END LOOP;
    Utl_File.FClose (v_file);

    EXCEPTION
    WHILE OTHERS THEN
    DBMS_OUTPUT. Put_line (substr (SQLERRM, 1, 255));
    Utl_File.FClose (v_file);
    END;
    /
    ***********************************************

    Please help me solve this problem.

    Or, please let me know other the best way to generate XML from Oracle 9i DB.

    Appreciate your help.

    Thank you
    Vikram

    Use an account with DBA privileges to CREATE a DIRECTORY, or have a DBA on the DB create for you.

    You can also generate XML via XMLElement, XMLForest, XMLAgg, etc. in a SQL statement, or via the xmldom package and at least another option in 9i that does not come to mind right now.

  • Error-29280 ORA-29280: invalid directory in UTL_FILE path

    Hi all

    When I execute the code below, I get the error

    ERROR-29280ORA-29280: invalid directory path
    declare
      v_MyFileHandle UTL_FILE.FILE_TYPE;
    BEGIN
      v_MyFileHandle := UTL_FILE.FOPEN('$XXX_OUT', 'HELLO.TXT', 'a');
      
      UTL_FILE.PUT_LINE(v_MyFileHandle,
                        'Hello Again for the Second Time! ' ||
                        TO_CHAR(SYSDATE, 'MM-DD-YY HH:MI:SS AM'));
                        
      UTL_FILE.FCLOSE(v_MyFileHandle);
      
      null;
      
    EXCEPTION
      WHEN OTHERS THEN
        DBMS_OUTPUT.PUT_LINE('ERROR ' || TO_CHAR(SQLCODE) || SQLERRM);
        NULL;
    END;
    Please let me know if anyone has an idea about this error.

    Kind regards

    Check if the directory $XXX_OUT is in dba_directories.
    I think that there is no directory of that name and thus the error.
    Apparently $XXX_OUT resembles an UNIX environment variable. If it's a level UNIX environment variable, then it is false... you can't use it here.

    Use in queries

    CREATE OR REPLACE DIRECTORY  as ;
    GRANT READ,WRITE ON  to ;
    
  • Getting ORA-29280: directory path invalid as he tried to call utl_file

    I've seen a lot of posts on this, but none of the suggestions work. I tried many variations of the following and I pretty much get the same error on different lines. See below for the error.

    My code is as follows:

    CREATE or REPLACE DIRECTORY LOAD_SRC as 'C:\Stuff\BulkInsert ';

    -Select * from all_directories where directory_name = "LOAD_SRC"; C:\Stuff\BulkInsert is in the list

    DECLARE

    sale_amount NUMBER;

    LOAD_SRC VARCHAR2 (50); -If I do not add it I get the following msg: PLS-00201: identifier 'LOAD_SRC' must be declared

    FILE_HANDLE utl_file.file_type;

    BEGIN

    FILE_HANDLE: = utl_file.fopen (LOAD_SRC, 'stuff.dat', 'W', 256);--29280. 00000 - "invalid directory path.

    Sum (sale_amount) SELECT INTO sale_amount OF POS_RECORD; - where sale_amount like '% ';

    UTL_FILE.put_line (FILE_HANDLE, sale_amount);

    UTL_FILE.fclose (FILE_HANDLE);

    END;

    /

    @@@@@@@@@@@@@@@@@@@@@@@

    Error:

    CREATE or REPLACE DIRECTORY succeeded.

    Error from line 3 in order:

    DECLARE

    sale_amount NUMBER;

    LOAD_SRC VARCHAR2 (50); -If I do not add it I get the following msg: PLS-00201: identifier 'LOAD_SRC' must be declared

    FILE_HANDLE utl_file.file_type;

    BEGIN

    FILE_HANDLE: = utl_file.fopen (LOAD_SRC, 'stuff.dat', 'W', 256);--29280. 00000 - "invalid directory path.

    Sum (sale_amount) SELECT INTO sale_amount OF POS_RECORD; - where sale_amount like '% ';

    UTL_FILE.put_line (FILE_HANDLE, sale_amount);

    UTL_FILE.fclose (FILE_HANDLE);

    END;

    Error report:

    ORA-29280: invalid directory path

    ORA-06512: at "SYS." UTL_FILE", line 41

    ORA-06512: at "SYS." UTL_FILE", line 478

    ORA-06512: at line 6

    29280 00000 - "invalid directory path.

    * Cause: A corresponding directory object does not exist.

    * Action: Correct the parameter object directory, or create a correspondent

    object directory with the command CREATE a DIRECTORY.

    Is C:\Stuff\BulkInsert on your Oracle database server?

    In addition, FILE_HANDLE: = utl_file.fopen(LOAD_SRC,'stuff.dat','W',256); ==> FILE_HANDLE: is utl_file.fopen('LOAD_SRC','stuff.dat','W',256);. If you declare a varriable put this string into that and then refer to your code.

  • Windows 7 Search doesn't show the directory path in the address bar

    I have Windows 7 64 bit. When I do a search, the directory path does not show in the address bar. How can I fix this? Thanks in advance.

    Justin

    This is how does the search on the start menu. If you want to see the details of the location, you need start looking for an Explorer window or click on "See more results" just above the search box to open your current search in Explorer.

    In the Explorer search results, make sure that you use the details view and then you'll be able to see the path in the column 'folder '.

  • How JavaScript handles spaces in a directory path to save under instruction?

    Greetings,

    Below is a function I wrote that is supposed to save a file in jpeg format in a specific subfolder on my machine. The directory path has several areas and it is originally the function fails. (There is a space in Partnership DCS and TAC project on line 2 of the function below).

    Does anyone know how to write a path in the object of the new file that has spaces in the path? (It is perhaps a special character to denote a single space?)

    function saveScene (fileName) {}

    jpgFile = new File ("project of partnership/TAC C / Temp / DCS / Scenes_Listellos" + filename);

    jpgSaveOptions = new JPEGSaveOptions();

    jpgSaveOptions.embedColorProfile = true;

    jpgSaveOptions.formatOptions = FormatOptions.STANDARDBASELINE;

    jpgSaveOptions.matte = MatteType.NONE,

    jpgSaveOptions.quality = 12;

    docActive.saveAs (jpgFile, jpgSaveOptions, true, Extension.LOWERCASE);

    } / / end of function saveScene

    Try:

    jpgFile = new file ("/ Project C/Temp/DCS partnership/TAC/Scenes_Listellos" + filename);

  • the directory path not valid lack Pathé under the parameter array

    I created the directory xyz & data also being developed under the table of privilege.

    But the problem is that how this path of the directory would be added through command in the table of parameters as mentioned.
      select *  from v$parameter where name = 'utl_file_dir';
      
      

    You put the directory path in the directory parameter.

    You have to put the directory it.

     output_file := utl_file.fopen ('XX_HRMS',v_file_name, 'W'); 
    
  • Oracle DB 11 g Express Edition find home directory path in Windows 7

    Hello

    I work through a book of PL/SQL programming and am on PROGRAM UNIT DEPENDENCIES. As I work through the examples he asks me to use the dependency tree utility run this script in SQL * more: @ < path to the Oracle Home Directory > \rdbms\utldtree

    However, no matter where I look on my computer (Win7 Home) I can not understand the directory path. I looked away and it has been suggested that Windows stores the directory in the registry. I went to regedit and followed Hkey_Local_Machine\Software\Oracle...and found 'c:\oraclexe\app\oracle\product\l11.2.0\server '.
    I also tried the path of the directory, but not luck. Again, I can not even find shirts for the DB that contains "RDBMS.

    So my question is, is there a HOME directory or BASE path in windows 7 for Oracle database 11g Express Edition and or the 11g Express Edition have the utldtree.sql file somewhere?

    Thanks in advance for any help,

    Warren

    I have a lot of utl*.sql files, which you named, in C:\oracle\oraclexe\app\oracle\product\11.2.0\server\rdbms\admin.

    You should also be able to reach the location when you run in sqlplus, via '? "shortcut, for example

    SQL > @? / rdbms/admin/utldtree

    It is also a way to print high dir of the Oracle home page in sqlplus - example of path within the brackets below:

    SQL > @. [% oracle_home %].
    SP2-0310: could not open the file "." [C:\oracle\oraclexe\app\oracle\product\11.2.0\server]... SQL ".

  • PCTCT regardless of the DIRECTORY path variable

    I have a table (list) that called several folders. I use ListGetAt based on the index of the value of cfloop to get the name of the folder I want LISTDIR with PCTCT. I attribute the name of the folder to a variable. Test demonstrates the foldername table works fine. Name of the folder hardcoding in PCTCT gives the desired result. BUT, when I replace all or part of the DIRECTORY = 'path' with the file name-variable default performance is the root directory as defined by the ftp credentials.

    Why DIRECTORY = "" folder/logs / "give me what I want and the DIRECTORY =" # file #/ logs "ignores even when he #folder # is clearly defined?" I used variables inside PCTCT before, so I know that works... I am puzzled, see attached code for reference; (FYI 'files' are assigned to the variable called 'House')

    It turns out that it was a problem of path with the FTP credentials, I'd simply not the path correctly disposed to get code find its target. No one could help with that!

  • Satellite Pro A100 (PSAA3) - Cannot install the display driver because of the length of the specified directory path

    Downloaded, extracted and I tried to install it, (installed before but had to reboot the computer)

    Error message
    "SETUP cannot continue because the length of the greater of the specified directory, the name of the installation folder path exceeds 88 characters.

    "Please shorten one or both of the limit specified below, and then try again"

    What should I do?

    and cheers in advance!

    The problem is that your unzipped folder name is too long!
    You need to rename the folder. Take a shorter name!

  • The build directory path appears in the paths of internal vi EXE

    Told us our customers use ActiveX to open a vi within our exe file reference years.  However, a few years ago, we had to turn off the use of LabVIEW 8.x file layout, then the exe started to contain the path that our software has been built since.  For example if the construction c:\ourapp\ourapp.lvproj, before changing the layout of the file, we could access ourapp.exe\viinroot.vi.  Now, the paths of vi in the exe would be Ourapp.exe\ourapp\viinroot.vi.  To work around this problem, we have created a virtual disk V:\ and mapped c:\ourapp with the virtual drive.  On our x 64 build machine (with LabVIEW 2014 x 64) thise creates an exe file with the file path expected (ourapp.exe\viinroot.vi).  On our x 86 build machiene, however, the path is ourapp.exe\V\viinroot.vi, which breaks the possibility to our customers to use ActiveX to control our app.

    What should we do?

    We have solved this problem.  The root cause was cross linking to vi outside our source code directory.

    @mikeporter: we begin to do something like this and it solved the problem in the places where we have implemented this solution.  We went to the root directory where all subdirectories with sub live live and created a vi 'get the root path.vi' he has stripped that it returns path.  Then, we built all paths relative, rather than the path of our exe.

    However, there were a few places not permitted in our code that did not build paths quite the same way and so we didn't find and fix this code.  So, we still had to resolve the issue of the included build directory. In another forum post someone described that LabVIEW detects all the dependencies and then back until it finds the root folder most common and then creates the exe with files from this root.  So we understood that some of the vi in our source code were being attached elsewhere.  In particular, they were linked to copies of themselves stored in our automaded build directory.  So the solution OR proposed was mass compile the code directory.  Once we did it, this problem disappeared

  • Directory paths for transferred my .pst files from Outlook of old Vista computer to a new Windows 7 computer

    I recently bought a new computer with Windows 7 pre-loaded.  I would like to copy the Outlook .pst files containing all my Contacts, Emails (in and out) calendar items, tasks, etc. from my old computer (running Windows Vista) on my new computer.  My version of Outlook is 2007.  What I want to know is the plan of the book to find the files on the old computer, and then the directory map to find out where to stick them on my new computer, so that they appear automatically.  Can you give me the directry channels please?

    The best way to find the location is by going into Control Panel--> Mail, click data files and display the path to the .pst file.

  • Is it possible to use the directory path of custom profile? (portable sqldeveloper)

    I want to create a portable set SQL Developer, i.e. which also holds the settings profile and connections in a specified subfolder, not to the default location.

    Is there a setting in sqldeveloper/bin/sqldeveloper.conf for example, or elsewhere to replace the path of the profile directory?

    Thank you, Marcus! ...\sqldeveloper\bin\jdk.conf does not appear to have any effect.

    But put the en...\sqldeveloper\bin\sqldeveloper.conf file using the option below works perfectly.

    AddVMOption - Dide.user.dir =

  • How can I know for ASM disks real directory path

    Hello everyone, I am a novice using definitions of ASM and I need to know where all the data are stored in the operating system storage devices, but I don't know where it is exactly.

    Certain search queries, I found:

    Select GROUP_NUMBER, DISK_NUMBER, MODE_STATUS, STATE, NAME, path in v$ asm_disk

    And I realized that it is displayed in the path column, but in the examples, it shows normal IF the linux as path: ' / asm1/storage/datafile1_asm.20001.41010'

    Run the same query pending ASM the PATH column to show something like: "ORCL:PROD1_DATA30."

    So, does that mean? I don't see any path or similar. I thought that it was a directory of database, but looking in DB instance that is not exist.

    Any idea.

    Thank you.

    To find your disk/OS, you can run this command as root:

    asmdsk=`(cd /dev/oracleasm/disks/ && ls *  | awk '{ ORS=" "; print; }')`
    /etc/init.d/oracleasm querydisk -p $asmdsk |grep LABEL |awk '{print $1,$2}'
    
    e.g (on my env)
    # asmdsk=`(cd /dev/oracleasm/disks/ && ls *  | awk '{ ORS=" "; print; }')`
    # /etc/init.d/oracleasm querydisk -p $asmdsk |grep LABEL |awk '{print $1,$2}'
    /dev/sdb1: LABEL="DATA01"
    /dev/sdd1: LABEL="DATA02"
    /dev/sdh1: LABEL="DATA03"
    

    Also... More options on this Doc on MOS:
    HOWTO: What disks are managed by ASMLib kernel driver? [313387.1 ID]

    Kind regards
    Levi Pereira

    Published by: Levi Pereira on September 18, 2012 14:48

Maybe you are looking for

  • Update deleted 9.3 health data, more prevents the collection of new data

    I have updated to 9.3 instantly for my 6 s the first day. The health app immediately removed all the measurements taken nearby, and flights climbed data. I thought it was an unfortunate decision to reset the data with the update and that he met now n

  • HP Officejet 6500 a Plus: black ink cartridge does not print

    I have a HP Officejet 6500 a and have an operating system of Windows 10 on a Dell Inspiron 15R.  The printer does not print any black ink. I have genuine HP cartridges and the black cartridge is about 75% full. It was working properly until this morn

  • Unwanted installation

    My laptop came with a program called Vongo I have not cared for and tried to uninstall. Somehow, I did something wrong, the file was deleted, but now whenever I start a windows session, it tries to install the Vongo program. It has no side effects, b

  • HP DESKJET F4283 printer

    Hi all! I bought the HP DESKJET F4283 printer in Dubai, but I came back to the Brazil. So I need the code of regionalisation for my printer to the Brazil. In the printing preferences, I discovered how to change my area how the follow-up: for use with

  • Target Pixel

    I want to create applications for Z10, Z30, Q10. but I want only a target in the same pixel resolution. can someone give me your comments?