Create the directory of procedure to aid directory with path parameter name

Hello
I've written a procedure that takes name (C:\temp) to a directory as a parameter and creates the directory oracle using EXECUTE IMMEDIATE of the procedure. Proc compiled fine but when I try to run it (exec prc_lx_e_m_fund_activty ("C:\interface','test1.txt','20040102"), I get the following error with the execute immediate statement below.

create or replace
PROCEDURE prc_lx_e_m_fund_activty
(
i_output_dir IN VARCHAR2,
i_output_file_name IN VARCHAR2,
i_interface_date in VARCHAR2
)
AS
.
.
.
.
RUN IMMEDIATELY 'CREATE OR REPLACE DIRECTORY OUTPUT_PATH AS | ''''|| i_output_dir | " ' || « ; » ; -Where i_output_dir = C:\temp (I'm passing this parameter as IN)
.
.
.
END


ORA-01481: invalid number format model
ORA-06512: at "DBO." " PRC_LX_E_M_FUND_ACTIVTY', line 326
ORA-00911: invalid character
ORA-06512: at line 10
Process is complete.

Kind regards
Mason.

Try this

SQL> ed
Wrote file afiedt.buf

  1  create or replace
  2  PROCEDURE prc_lx_e_m_fund_activty
  3  (
  4  i_output_dir IN VARCHAR2,
  5  i_output_file_name IN VARCHAR2,
  6  i_interface_date IN VARCHAR2
  7  )
  8  AS
  9  begin
 10  EXECUTE IMMEDIATE 'CREATE OR REPLACE DIRECTORY OUTPUT_PATH AS '|| i_output_dir ;
 11* END;
 12  /

Procedure created.

SQL> exec prc_lx_e_m_fund_activty('''c:\temp''','aa','bb');

PL/SQL procedure successfully completed.

SQL>
SQL> SET LINES 10000
SQL> SELECT * FROM ALL_DIRECTORIES;

OWNER                          DIRECTORY_NAME                 DIRECTORY_PATH
------------------------------ ------------------------------ ----------------------
SYS                            OUTPUT_PATH                    c:\temp

Tags: Database

Similar Questions

  • Create the directory in the operating system through PL/SQL

    Hi gurus,

    I'm creating a procedure to automate the creation of the external tables and Oracle (using the dynamic SQL) directories.

    I wonder if it is possible to create the directory in the operating system through the procedure.

    As in SQL more
    SQL > host mkdir/oracle/test

    THX,
    Levi Pereira

    http://www.Oracle-base.com/articles/8i/ShellCommandsFromPLSQL.php
    http://asktom.Oracle.com/pls/asktom/f?p=100:11:4500682002852519:P11_QUESTION_ID:952229840241

  • Problem installing Webroot for MSN (part of the Internet software of MSN Premium subscription) "error 5: access is denied" and "Setup could not create the directory"C:; Program Files/Webroot/security /...

    Original title: problem installing Webroot for MSN (part of the Internet software of MSN Premium subscription)

    Try installing Webroot to MSN but when I run the installer, I get "error 5: access is denied" and "Setup could not create the directory"C:; Program Files/Webroot/security/current/plugins/antimalware/Backup ". OS is XP with Service Pack 3. I tried to delete my existing Webroot program and turning to the bottom/off other security options... Any suggestions? Thank you.

    Thanks for the reply. I was able to finally get the new Webroot program to install after running a Microsoft Fix affecting the directory uninstall the old prgm Webroot and meets a new error code (1603), which led me to this site to permissions Grant full control to the SYSTEM account.

    http://support.Microsoft.com/kb/834484

  • When you try to install PDF Creator, I get an error message: "error 5 - failed to create the directory, access is denied."

    access denied for the creation of a directory

    When you try to install PDF Creator, I get an error message: "error 5 - failed to create the directory, access is denied."  How can I fix this?

    When you try to install PDF Creator, I get an error message: "error 5 - failed to create the directory, access is denied."  How can I fix this?

    Only when you try to install this application?

    What about BullZIP PDF Printer?

    (You can uninstall - trying to figure out if it's a problem of Windows or the question of enforcement.)

  • KB2628259 doesn't install, cannot create the directory or file. Anyone know of a solution?

    KB2628259 doesn't install, cannot create the directory or file. Anyone know of a solution?

    Hi dakota25,

    ·         Did you do changes on the computer before the show?

    ·         You are able to install other updates successfully?

    ·         You get the error message?

    Follow these methods.

    Method 1: Temporarily disable the security software.

    Note: Antivirus software can help protect your computer against viruses and other security threats. In most cases, you should not disable your antivirus software. If you do not disable temporarily to install other software, you must reactivate as soon as you are finished. If you are connected to the Internet or a network during the time that your antivirus software is disabled, your computer is vulnerable to attacks.

    Method 2: Put the computer in a clean boot state to see if there is a software conflict as the clean boot helps eliminate software conflicts.

    How to configure Windows XP to start in a "clean boot" State

    http://support.Microsoft.com/kb/310353

    Note: After completing the steps in the clean boot troubleshooting, follow the section How to configure Windows to use a Normal startup state of the link to return the computer to a Normal startupmode.

    After the clean boot used to resolve the problem, you can follow these steps to configure Windows XP to start normally.

    (a) click Start, run.

    (b) type msconfigand click OK.

    (c) the System Configuration Utility dialog box appears.

    (d) click the general tab, click Normal startup - load all services and device drivers and then click OK.

    (e) when you are prompted, click on restart to restart the computer.

    Method 3: You can also manually install updates (KB number) by downloading from the Microsoft Download Center.

    http://www.Microsoft.com/downloads/en/default.aspx

    Method 4: Follow the steps in the article.

    How to reset the Windows Update components?

    http://support.Microsoft.com/kb/971058

    You cannot install some programs or updates

    http://support.Microsoft.com/kb/822798

  • Error message: cannot copy... Failed to create the directory or file.

    I get the Error Message ' cannot copy (a file USB Store n Go): failed to create the directory or file.»  All of a sudden I started getting error message is when I tried to copy to the USB mass storage: "F:" copy on the removable key worked for a proor very long in this message. And there are a lot of empty space.  The diagnosis says that everything works correctly.

    Dear Clarence

    Try first to unplug the mass storage device, then reconnect and format it by Righ click on Format.

    Then try to paste these files on this USB key again.

    If it fails this time then format your USB using HP USB stick formatting to http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareDescription.jsp?swItem=MTX-UNITY-I23839 tool

    Click Download on the page above. Install it and run it. This will guide you through the steps of formatting your USB drive in a few seconds...

    It is also useful for the repair of the almost dead usb keys.

    Concerning

    Zeeshan Ahmad

  • 5 error message when you try to run gimp - 2.18.16 - Setup could not create the directory

    5 error message when you try to run setup.exe gimp - 2.18.16 after downloading... it reads:
    Setup could not create the directory
    c:\Users\DEBSWO~1\AppDate\Local\Temp\is-IKDP5.tmp ".
    Error5: Access denied
    In the Temp folder under Security I have:
    'SYSTEM' with full control
    "Administrators" with full control
    "Username" with full control
    All of which is listed in the permissions, but the box for'Include the permissions that can be inherited from the parent to this object "below is checked but not really dim so that you cannot check or uncheck the box?"
    The two latest downloads gave the same error message.

    Thank you for your time.
    Debbie

    I suggest you do this:

    1. click on the start planet.
    2. type cmd.exe in the search box.
    3. press on Ctrl + Shift + Enter
    4. click on "run as Administrator".
    5. type the following commands exactly and press ENTER after each:
    takeown /f "%Temp%" / r

    Cacls "%Temp%" / t/c/g "%nom user %": F System: F

    (Enter Y when you are prompted "Are you sure?")

  • Cannot create the directory on 9000 "BOLD" - FileConnection

    Hi all

    By using the following code on the Curve 8330 works very well, however it does not work on the "BOLD" 9000 * except * I create the directory manually, then it writes the file?

    String fname = new String(fileName);
    FileConnection fc;
    
    fc = (FileConnection) Connector.open(fname, Connector.READ_WRITE);
    
    if (!fc.exists())
     {
       fc.create();
     }
    
    OutputStream os = fc.openOutputStream();
    os.write(data);
    os.flush();
    os.close();
    fc.close();
    bos.close();
    

    Any ideas as to why it does not work on the 9000 "BOLD"

    Thank you

    Paul

    Perhaps you are already best solution.

    For me, every time when I want to create the file, I first have to check the root and folder (specified) exist or not.

    and if I create one and then write the file in the folder. I think that this covers all cases.

    So, I never try directly to create a file with a folder, that nobody know exist or not.

    See you soon.

  • Setup failed to create the directory [bonnefin] error 5: access denied

    Hello

    I tried to install some programs (2) on my computer, but an error message shows everytime I open the Setup program. The error message is the following:
    Setup could not create the directory "C\Users\[NAME]~1\AppData\Local\Temp\is-HJF7P.tmp\".
    Error 5: Access denied
    I don't know if it is a problem with Setup (probably not since it happens with both programs) or the user/computer account. Very probably the last. I searched this error and found a few threads, but they were out of date or on the settings for who can access temporary files (which is why I put this topic 'Security, confidentiality and account' by the way I checked and they are the right settings).
    Oh, and I use an acer aspire laptop with Windows 7. There is only one user account on my computer and I think I have administrator permissions.
    -----
    'florestan and Eusebius.

    How to solve problems when you install or uninstall programs on a Windows computer

    http://support.Microsoft.com/kb/2438651>

    `~`

    The time and date of this moment in California, the United States is

    15:40
    Friday, June 21, 2013
    The time Pacific daylight time (PDT)-0700 UTC
     
    UTC/GMT is 22:40 on Friday, June 21, 2013
                
  • During ANY installation of a program (e.g. Skype), I get the "year error occurred while attempting to create the directory C:\Program\Microsoft\Windows\Start Menu.

    original title: facilities program

    During ANY installation of a program (e.g. Skype), I get the "year error occurred while attempting to create the directory C:\Program\Microsoft\Windows\Start Menu. What happened with cd installs, but also downloads on the internet.  I already "took possession" of the computer, which is still delayed freaking, but am still unable to fight through all the questions of security, I guess that.  Any help would be greatly appreciated as I'm about to DOWNGRADE to something more user-friendly.  Thank you

    BTW, this is WINDOWS 7 Home Premium

    I had this problem for a long time on Windows 7. Finally, by pure chance I came across this solution that solved the problem. -Take the shortcut of the property

    http://www.SevenForums.com/tutorials/1911-take-ownership-shortcut.html

    You will need to run the "fusion" in the context menu of a reg file, published as part of the solution to change some registry settings. On any folder, you'll get a context menu 'Take Ownership' which restores the property correctly. This solves a lot of problems installing.

    Many people have trouble with this and therefore decided to post here.

    Gem of a solution. Thanks to GRIM and Brink on Windows 7 Forum!

    -Jayawanth

  • Error: The database file location: [INS-32012] failed to create the directory.

    Hello

    I have a problem with the installation of database 11 g 2 on OL5.

    Error:

    Location of the database file: [INS-32012] failed to create the directory.

    Although

    drwxr-xr-x 2 root oinstall 4096 Apr 9 17:56 oradata

    drwxr-xr-x 3 755 oinstall 4096 Apr 9 16:27 products

    U01/app/oracle/a 755 permission

    Thank you

    Abhishek

    chmod-r 755/U01

    chown R oracle: oinstall/U01

    the second command change the user and the group owner Of/U01 (including all subdirectories and files) for oracle and oinstall respectively.

    HTH

    Tobi

    Tobi & #39; Oracle DBA s & amp; Blog of UNIX

  • Installation: An error occurred while attempting to create the directory C:\Users\Public\Desktop

    When I try to install the software for my HP Officejet Pro 8500 has more, I get a read error "an error has occurred" while trying to create the directory C:\Users\Public\Desktop

    First I thought it was a permissions issue, even if I am registered as an administrator.  I've even passed the Public folder and gave myself all permissions.  Then I see that the 'Office' folder is already there, so I don't understand why she is trying to create the directory.  Don't know where to go next.

    Problem solved!  Changed name of folder of the Office of "Public Desktop" to "Desktop".  A given SYSTEM and everybody full permissions to the folder.  One of these changes have made a difference.  Subsequently renamed "Desktop" back to "Public Desktop", just in case.

  • Create the directory - County list showing on all Pages of the book

    Hi to all the InDesign scripting

    I am trying to create a directory with InDesign CS6, that contains the name of the person, addresses, cities, etc.

    I have a question which is to show the number of entry per city,

    for example, there are 30 names under a city (in front of spreads and pages),

    How to automatically display the number of registration County about InDesign?

    And how InDesign find what kinds of use on this page?

    (If I have two pages should show total registration under the same city is 30)

    I found a script to add # sequential to paragraph styles, but I couldn't pick up the latest issue on the page by using the variable text - function headers running in InDesign, not the last issue under the same city.

    Any help would be appreciated!

    Best regards

    V

    Hi UFV

    Assuming that you need to do one city at the maximum per page and use you a single paragraph for your titles in the city style and assuming that use you a paragraph for your entries to name style then the following should do it.

    Trevor

    // City Listings Count Script by Trevor www.creative-scripts.com (Coming soonish)
    // Trevor {at} creative-scripts {dot} com
    // http://forums.adobe.com/message/5837823#5837823
    
    app.doScript("addListingsCount()", ScriptLanguage.JAVASCRIPT, undefined, UndoModes.ENTIRE_SCRIPT, "Add Listings Count");
    
    function addListingsCount () {
        var  doc = app.activeDocument,
                cityParagraphStyle = doc.paragraphStyles.itemByName ("City Title"), // Change to correct paragraphStyles name
                nameParagraphStyle = doc.paragraphStyles.itemByName ("Entry Name"), // Change to correct paragraphStyles name
                countParagraphStyle = doc.paragraphStyles.itemByName ("Entries Count"), // Change to correct paragraphStyles name
                cityFinds = [],
                entryFinds = {};
    
        // Get GeometricBound for Title Text Frames
        var   pageMargins = [], pageGeos = [], textFrameGeos = [],
                 vp = doc.viewPreferences.verticalMeasurementUnits,
                 distanceFromTopMarginToTheTopOfTheEntriesCountTextFrame = UnitValue (".8cm").as(vp);  // Change distance as needed
                 heigtOfTheEntriesCountTextFrame = UnitValue (".5cm").as(vp);  // Change height as needed
        pageMargins[0] = doc.pages[0].marginPreferences;
        pageGeos[0] = doc.pages[0].bounds;
        textFrameGeos[0] = pageGeos[0];
        textFrameGeos[0][0] += pageMargins[0].top - distanceFromTopMarginToTheTopOfTheEntriesCountTextFrame;
        textFrameGeos[0][1] += pageMargins[0].left;
        textFrameGeos[0][2] = textFrameGeos[0][0] + heigtOfTheEntriesCountTextFrame;
        textFrameGeos[0][3] -= pageMargins[0].right;
    
        pageMargins[1] = doc.pages[1].marginPreferences;
        pageGeos[1] = doc.pages[1].bounds;
        textFrameGeos[1] = pageGeos[1];
        textFrameGeos[1][0] += pageMargins[1].top - distanceFromTopMarginToTheTopOfTheEntriesCountTextFrame;
        textFrameGeos[1][1] += pageMargins[1].left;
        textFrameGeos[1][2] = textFrameGeos[1][0] + heigtOfTheEntriesCountTextFrame;
        textFrameGeos[1][3] -= pageMargins[1].right;
    
        app.changeTextPreferences = app.findTextPreferences = null;
        app.findTextPreferences.appliedParagraphStyle = cityParagraphStyle;
        cityFinds = doc.findText();
        app.findTextPreferences.appliedParagraphStyle = nameParagraphStyle;
    
        var l = cityFinds.length,
              c = 0, nameFinds, pageOffsets = [], pageOffset, fl, city;
    
        while (c < l) {
            pageOffset = cityFinds[c].parentTextFrames[0].parentPage.documentOffset;
            nameFinds = ([]).concat.apply ([],doc.pages [pageOffset].textFrames.everyItem().findText ());
    
            city = cityFinds[c].contents;
            fl = nameFinds.length;
            pageOffsets [c] = pageOffset;
            entryFinds [city] = (entryFinds [city]) ? entryFinds [city] + fl : fl;
            c++
            }
    
        while (l--) doc.pages[pageOffsets[l]]
                              .textFrames.add ({
                                   geometricBounds: textFrameGeos [pageOffsets[l] % 2],
                                   contents: "Total Listings: " + entryFinds [cityFinds[l].contents],
                                   name: "Listings Count"
                                   });
        doc.pages.everyItem().textFrames.itemByName ("Listings Count").texts[0].appliedParagraphStyle = countParagraphStyle;
    }
    
    // Note if you ever want to remove these text frame you can do
    // app.activeDocument.pages.everyItem().textFrames.itemByName ("Listings Count").remove()
    
  • Create the directory of ODI

    Hello

    I use the OdiOutFile command to create a file.
    My requirement is to create the directory also, in case it is not not present.

    Kindly guide me on the same.

    Thanks in advance!

    Hello
    Prior to OdiOutFile, you must use OdiMkDir.
    It is very simple, just put the name of the directory

  • Copy of complete site. I have a Web site. I would copy the entire site (complete with images) to another directory with a different name. Then, transfer to another hosting server. All ideas

    Copy of complete site. I have a Web site. I would copy the entire site (complete with images) to another directory with a different name. Then, transfer to another hosting server. Any ideas?

    Not sure that you need a different directory.

    If you are working on a local computer, create a new site with all the same settings for local files and change the remote server settings to match the second server.

    This ensures you that there is no difference between the two websites.

Maybe you are looking for