To set a directory and its subdirectory in  utl_file_dir using command

Hi all ,
Please help me in this dbt .
in one article i saw
UTL_FILE_DIR lets you specify one or more directories that Oracle should use for PL/SQL file I/O. If you are specifying multiple directories, you must repeat the UTL_FILE_DIR parameter for each directory
on separate lines of the initialization parameter file
and in another alter system set utl_file_dir=dir1,dir2 scope=both;
whther the second method is possible
if i want to have a directory and its sub directory to set in utl_file_dir
what i should do , whether i want to specify main directory and all sub directory seperated by comma or any other method is there
Please help me
thanks in advance ..........

Instead of specifying the directory in the INIT.ora file u can use Directory object.
U need to create a directory object once & use it when ever u require it.
For example
CREATE OR REPLACE DIRECTORY Test_dir AS 'C:\abc'
Now you can use this directoryTEST_DIR in any Pl Sql block provided u have proper privileges.

Similar Messages

  • Deleting a directory and its content

    Hi, I'm trying to delete a series of directories like this batch file does
    @echo Removing "%CD%\a"
    @rmdir /s /q "%CD%\a"
    @echo Removing "%CD%\b"
    @rmdir /s /q "%CD%\b"
    @echo Removing "%CD%\c"
    @rmdir /s /q "%CD%\c"looking at the api i found that it doesn't seem to have the option to delete a dir and its content, should i use a function like the one in thread:
    http://forum.java.sun.com/thread.jsp?forum=31&thread=188034
    or would it be better to call the batch script with Runtime.exec()? The system is windows only so i don''t need to have compatibility with *nix shells ect.
    What do you think?

    Try this
    // CLASS:    FileUtil
    // FUNCTION: An extension of File which allows various file manipulations
    import java.io.*;
    import java.net.*;
    import java.util.*;
    public class FileUtil
        extends File {
       public FileUtil(File parent, String child) throws NullPointerException {
          super(parent, child);
       public FileUtil(String pathname) throws NullPointerException {
          super(pathname);
       public FileUtil(String parent, String child) throws NullPointerException {
          super(parent, child);
       public FileUtil(URI uri) throws IllegalArgumentException, NullPointerException {
          super(uri);
       public void deleteTree() throws Exception {
          ArrayList contents = new ArrayList();
          listContents(contents);
          File f;
          for (int i = contents.size() - 1; i >= 0; i--) {
          f = new File( (String) contents.get(i));
          f.delete();
       private void listContents(ArrayList files) throws Exception {
          listContents(files, this);
       private void listContents(ArrayList files, File dir) throws Exception {
          System.out.println(dir.getAbsolutePath());
          File[] newFiles = dir.listFiles();
          File newFile;
          if (newFiles != null) {
          for (int i = 0; i < newFiles.length; i++) {
             newFile = new File(newFiles.getAbsolutePath());
         files.add(newFiles[i].getAbsolutePath());
         if (newFile.isDirectory()) {
         listContents(files, newFile);

  • How to read a files in directory and its subdirectories

    I wants to read all files in directory, its subdirectory and further till end the files in the subdirectory of subdirectories.
    I have some idea the I can do this by using recursive function, using the functions isDirectory(), File.list() etc.
    How much you can please help me. (via code of logic)

    import java.io.*;
    import java.net.*;
    public class MyCon
    public static void main(String args[]) throws
    IOException
    File file=new File("c:/");
    openDirectory(file,"");
    System.in.read();
    static void openDirectory(File file,String indent)
    String[] string=file.list();
    String path=file.getAbsolutePath();
    for(int i=0;i<string.length;i++)
    File temp=new File(path+"/"+string);
    if(temp.isDirectory())
    openDirectory(temp,indent+" ");
    else
    System.out.println(indent+temp.getName());

  • Setting save directory and filename based on fillable form fields.

    Hello,
    I'm new to .pdf development in Acrobat. I'm trying to create a form which allows users to fill in data, then save a copy of the form to a directory and file name which will be based upon several of the fields in the document. Is this method of saving possible? I've tried a script but can't seem to make the process work.
    Thanks for the help!

    It's possible, but the code that does the actual save (using the doc.saveAs JavaScript method) needs to be in a folder-level JavaScript file and further in a trusted function and app.beginPriv/app.endPriv block:
    http://acrobatusers.com/tutorials/how-save-pdf-acrobat-javascript
    http://livedocs.adobe.com/acrobat_sdk/11/Acrobat11_HTMLHelp/JS_API_AcroJS.89.173.html
    or in a certified document that the user chooses to trust to execute privileged code. If you've done either of these, can you post the code you're using?

  • How to duplicate a target and add resources in xcode using command line?

    I am trying to use command line tools to create, add resources, build, archive and export to ipa in xcode. I could do the Build, Archive and Exporting to IPA through the command line tools(xcodebuild). But I also wanted to duplicate the target in the same project,add a new Info.plist to the duplicated target resource through command line itself. How to do it? I could not find any valuable answers by Googling. I could not find any proper documentation also in Apple Sites.
    Is there any tools that can be used to perform these? I don't want to use the UI. Please, help me out.

    The Mac App Store is not appropriate for command line tools. You can use any language you want.

  • Set default directory and file permissions

    I'm trying to use setfacl to set the default permissions for directories and files but I get an error saying "sudo: setfacl: command not found." What I am trying to do is share a specific directory on a local external drive connected by Thunderbolt. Everyone in the group has access to the drive and can view all the files but once a new file is created, the group permissions are not updated. Here is an example of two PDF file. The one created by userA only has permissions for that user where the file created by userB allows all users to open and modity the file.
    -rw-------   1 userA    staff   1988176 Feb 13 15:09 TestFile01.pdf
    -rwxr-----+  1 userB  staff   1827102 Feb 13 15:05 TestFile02.pdf
    0: group:MarketingGroup allow read,write,append,readattr,writeattr,readextattr,writeextattr,readsecurity
    I can manually update the permissions through the Get Info window but this requires me to reset permissions every time a person saves a new file to the drive. There needs to be a way to do this automatically.
    Here is what I tried but the setfacl command is not supported.
    sudo setfacl -Rdm g:GroupName:rwx /DirectoryPath

    Thanks Frank. I have an externat drive connected to my Mac via Thunderbolt. On this drive I have a specific directory that I'm shairing with Mac and PC users. I've created a group on the network to limit access to this directory to specific users. That works perfectly. The issue I'm having is when one of these users creates a new file in this directory or any of it's subdirectories, no one has permission to open or edit the file. Right now I'm using Get Info to modify the permissions of the folder and all enclosed items. When I check the permissions of the files I've "corrected" I notice this extra imformation "0: group:MarketingGroup allow read,write,append,readattr,writeattr,readextattr,writeextattr,readsecurity." This is not included when I check the permissions of items saved by other uses in the group.
    So my question is how do I set the default permissions for this directory so every new file and directory will have the correct permissions to allow anyone in this group full access to open and modify every file?
    Thanks for your help!!!!

  • What is Exchange Virtual directory and its role?

    Hello there,
    I am new to Exchange and I started reading about Exchange Virtual directories. I am struggling to understand the concept behind Virtual directories in Exchange and what is the role of this component. Can someone please shed some light and better yet supplemental
    information to help me understand the concepts behind it? Let me know please. I am looking forward to any reply that would help.
    Regards,
    Lotusmail1
    Franz Garcia

    Hi,
    Thank you for your question.
    Exchange virtual directory is a directory which store some necessary URL to point to correspondent web page, those URL can provide service for user by Exchange server. it include the following component:
    On Exchange CAS server:
    Autodiscover: An important function of the Autodiscover service is to provide access to features for clients that are connected to your messaging environment. These features include the web-based offline address book (OAB), the Availability service, and
    Unified Messaging (UM). The Autodiscover service must be deployed and configured correctly for clients to automatically connect to features.
    ECP: The Exchange Control Panel is a Web application that runs on a Client Access Server providing services for the Exchange organization. This Exchange Control Panel is installed automatically when you install a Client Access server. To manage Exchange
    from just about anywhere, you simply need to enter the URL path for the application in your browser’s Address field. You can then access the Exchange Control Panel. By default, the Exchange Control Panel URL is
    https://yourserver.yourdomain.com/ecp.
    EWS: Exchange Web Services virtual directories support the calendar sharing and other functionality offered by Exchange Web Services. The Exchange Web services included in Exchange provide an XML messaging interface that enables you to manage Exchange store
    items and access Exchange server functionality from client applications.
    Microsoft-Server-ActiveSync: Exchange ActiveSync is a client protocol that lets you synchronize a mobile device with your Exchange mailbox.
    OAB: An offline address book (OAB) is a copy of an address list collection that’s been downloaded so a Microsoft Outlook user can access the address book while disconnected from the server. Microsoft Exchange generates the new OAB files and then compresses
    the files and places them on a local share. You can decide which address lists are made available to users who work offline, and you can also configure the method by which the address books are distributed.
    OWA: By default, when you install Microsoft Exchange 2013, you enable Outlook Web App. Microsoft Outlook Web App lets users access their Exchange mailbox from almost any Web browser.The Client Access server role provides proxy and redirection services for
    Outlook Web App.
    PowerShell: The Exchange Management Shell, built on Windows PowerShell technology, provides a powerful command-line interface for Microsoft Exchange Server 2013 that enables automation of administrative tasks. With the Shell, you can manage every aspect
    of Exchange. You can enable new email accounts, create Send and Receive connectors, configure database properties, manage distribution groups, and more. The Shell can perform every task that can be performed by the Exchange Administration Center (EAC) plus
    things that can't be done in the EAC. In fact, when you do something in the EAC, it's the Shell that's doing the work behind the scenes
    On Exchange mailbox server:
    PowerShell: this is the same with front CAS server.
    We could refer to the following link:
    https://technet.microsoft.com/en-us/library/gg247612(v=exchg.150).aspx
    If there are any questions regarding this issue, please be free to let me know. 
    Best Regard,
    Jim
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected].
    Jim Xu
    TechNet Community Support

  • How to append a file directory and its contents in a jTextArea

    how will i display the contents of this file and file directory in a jTextArea or ...let's say it will display the content of "c:/AutoArchive2007-05-24.csv" in a jTextarea
    say this file "c:/AutoArchive2007-05-24.csv"contains the ff:details
    user:jeff AutoArchive-Process Started at Thu May 24 15:41:54 GMT+08:00 2007
    and ended at Thu May 24 15:41:54 GMT+08:00 2007
    Message was edited by:
    ryshi1264

    use the append(...) to append data to the text area.

  • How to set runtime block and its items navigation

    this is my procedure to set a navigation in a block. but with this i m unable to how to navigate to second block.
    first block name is TRANS1
    and second block name TRANS2
    i need this navigation procedure because some items are getting invisible at the run time.i m using ORACLE 8i and FORM 6i.
    PROCEDURE NAVIGATION_SEQUENCE IS
         V_LOOP NUMBER;
         V_PREITEM VARCHAR2(100);
         V_MAXLOOP1 NUMBER;
         V_MAXLOOP2 NUMBER;
    BEGIN
    NULL;
         SET_ITEM_PROPERTY('TRANS1.T_DATE',NEXT_NAVIGATION_ITEM,'TRANS1.T_VRDATE');
         IF :PARAMETER.F$BOOKTYPE = 'DB' THEN
         SET_ITEM_PROPERTY('TRANS1.T_VRDATE',NEXT_NAVIGATION_ITEM,'TRANS1.T_VRNO');
         SET_ITEM_PROPERTY('TRANS1.T_VRNO',NEXT_NAVIGATION_ITEM,'TRANS1.T_MAID');
         ELSE
         SET_ITEM_PROPERTY('TRANS1.T_VRDATE',NEXT_NAVIGATION_ITEM,'TRANS1.T_MAID');
         END IF;
         SET_ITEM_PROPERTY('TRANS1.T_MAID',NEXT_NAVIGATION_ITEM,'TRANS1.T_AGID');
         SET_ITEM_PROPERTY('TRANS1.T_AGID',NEXT_NAVIGATION_ITEM,'TRANS1.T_DUEDAYS');
         SET_ITEM_PROPERTY('TRANS1.T_DUEDAYS',NEXT_NAVIGATION_ITEM,'TRANS1.T_DUEDATE');
         V_PREITEM := 'TRANS1.T_DUEDAYS';
         IF GET_ITEM_PROPERTY('TRANS1.T_DF1',VISIBLE) = 'TRUE' THEN
         SET_ITEM_PROPERTY('TRANS1.T_DF1',NAVIGABLE,PROPERTY_TRUE);
         SET_ITEM_PROPERTY(''||V_PREITEM||'',NEXT_NAVIGATION_ITEM,'TRANS1.T_DF1');
         V_PREITEM := 'TRANS1.T_DF1';
         END IF;     
         IF GET_ITEM_PROPERTY('TRANS1.T_DF2',VISIBLE) = 'TRUE' THEN
         SET_ITEM_PROPERTY('TRANS1.T_DF2',NAVIGABLE,PROPERTY_TRUE);
         SET_ITEM_PROPERTY(''||V_PREITEM||'',NEXT_NAVIGATION_ITEM,'TRANS1.T_DF2');
         V_PREITEM := 'TRANS1.T_DF2';
         END IF;     
         IF GET_ITEM_PROPERTY('TRANS1.T_DF3',VISIBLE) = 'TRUE' THEN
         SET_ITEM_PROPERTY('TRANS1.T_DF3',NAVIGABLE,PROPERTY_TRUE);
         SET_ITEM_PROPERTY(''||V_PREITEM||'',NEXT_NAVIGATION_ITEM,'TRANS1.T_DF3');
         V_PREITEM := 'TRANS1.T_DF3';
         END IF;     
         IF GET_ITEM_PROPERTY('TRANS1.T_DF4',VISIBLE) = 'TRUE' THEN
         SET_ITEM_PROPERTY('TRANS1.T_DF4',NAVIGABLE,PROPERTY_TRUE);
         SET_ITEM_PROPERTY(''||V_PREITEM||'',NEXT_NAVIGATION_ITEM,'TRANS1.T_DF4');
         V_PREITEM := 'TRANS1.T_DF4';
         END IF;     
         IF GET_ITEM_PROPERTY('TRANS1.T_DF5',VISIBLE) = 'TRUE' THEN
         SET_ITEM_PROPERTY('TRANS1.T_DF5',NAVIGABLE,PROPERTY_TRUE);
         SET_ITEM_PROPERTY(''||V_PREITEM||'',NEXT_NAVIGATION_ITEM,'TRANS1.T_DF5');
         V_PREITEM := 'TRANS1.T_DF5';
         END IF;     
         IF GET_ITEM_PROPERTY('TRANS1.T_DF6',VISIBLE) = 'TRUE' THEN
         SET_ITEM_PROPERTY('TRANS1.T_DF6',NAVIGABLE,PROPERTY_TRUE);
         SET_ITEM_PROPERTY(''||V_PREITEM||'',NEXT_NAVIGATION_ITEM,'TRANS1.T_DF6');
         V_PREITEM := 'TRANS1.T_DF6';
         END IF;     
    end NAVIGATION_SEQUENCE;

    hi Volberg
    thanks for your reply
    dear friend in my form, some of the block item i have to disable(make invisible).
    this is my requirement.
    V_PREITEM is a variable which contain the name of last item, which i already set in navigation.
    look at all 'IF' condition.
    1st V_PREITEM := 'TRANS1.T_DF1';
    2nd V_PREITEM := 'TRANS1.T_DF2';
    in other words V_PREITEM variable having last item name.
    IF GET_ITEM_PROPERTY('TRANS1.T_DF1',VISIBLE) = 'TRUE' THEN
    SET_ITEM_PROPERTY('TRANS1.T_DF1',NAVIGABLE,PROPERTY_TRUE);
    SET_ITEM_PROPERTY(''||V_PREITEM||'',NEXT_NAVIGATION_ITEM,'TRANS1.T_DF1');
    V_PREITEM := 'TRANS1.T_DF1';
    END IF;
    IF GET_ITEM_PROPERTY('TRANS1.T_DF2',VISIBLE) = 'TRUE' THEN
    SET_ITEM_PROPERTY('TRANS1.T_DF2',NAVIGABLE,PROPERTY_TRUE);
    SET_ITEM_PROPERTY(''||V_PREITEM||'',NEXT_NAVIGATION_ITEM,'TRANS1.T_DF2');
    V_PREITEM := 'TRANS1.T_DF2';END IF;
    IF GET_ITEM_PROPERTY('TRANS1.T_DF3',VISIBLE) = 'TRUE' THEN
    SET_ITEM_PROPERTY('TRANS1.T_DF3',NAVIGABLE,PROPERTY_TRUE);
    SET_ITEM_PROPERTY(''||V_PREITEM||'',NEXT_NAVIGATION_ITEM,'TRANS1.T_DF3');
    V_PREITEM := 'TRANS1.T_DF3';
    END IF;

  • Process all files in a directory and its subdirectories

    Hello all,
    I want to write a program that processes separately all the files in a given directory. I would like to open folders in that directory (if any) and further process all the files contained in them as well. Any suggestions with some Java code to do this as time effectively as possible? Thanks in advance.

    Hello Chuck,
    thanks for answering. You probably meant: "Search the forum archive - maybe your question has already been discussed. This way you help people focus on topics that have not yet been resolved."
    Generally http://forum.java.sun.com/thread.jspa?forumID=31&threadID=510545 suits well. My problem is however, that I would like to pass the absolute path (not the relative one) of the directory which content (including subdirectories if any) should be further processed. Any suggestions how to make it function with the absolute path passed as input argument to the program?

  • Deleting directory and its contents recursively

    File clearDir = new File(dirname);
    String farr [] = clearDir.list();
    for(int i = 0 ; i<farr.length; i++){
    new File(farr).delete();
    new File(dirname).delete();
    above code only deletes directory files and directory.
    say if the there are some other directories inside,how to handle it to delete them also??

    better version with stack implementation. (not a recursive function)
    public void deleteDir(File dir){
       Stack<File> dirStack = new Stack<File>();
       dirStack.push(dir);
       boolean containsSubFolder;
       while(!dirStack.isEmpty()){
          File currDir = dirStack.peek();
          containsSubFolder = false;
          String[] fileArray = currDir.list();
          for(int i=0; i<fileArray.length; i++){
             String fileName = currDir.getAbsolutePath() + File.separator + fileArray;
    File file = new File(fileName);
    if(file.isDirectory){
    dirStack.push(file);
    containsSubFolder = true;
    }else{
    file.delete(); //delete file
    if(!containsSubFolder){
    dirStack.pop(); //remove curr dir from stack
    currDir.delete(); //delete curr dir

  • Set Root Directory and Path

    Hi Guys,
    I put my jsp files in a folder in WEB-INF, but CSS, and IMAGES folders are under default root folder pblic_html. Now my jsp pages don't show the images and css effects, if I correct the path manually in JSP pages, they work fine.
    What is there correct way to fix it, like as done in Toystore Demo.
    I have tried it by writing messages in ApplicationResources.properties file, but it shows the path in the JSP pages.

    Hi mtmnd,
    ever noticed the file constant palette? Ever read the help for "current VI's path"?
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Set PF Status and At-Line Selection & At User-Command

    Hi All
    I've used set PF status, at user command and at-line selection in my program. initially when i click on the material number it was not drilling further that is it was not taking to secondary list. i commented the PF status and tried. then it was working fine. Later, after checking on couple of doc i added F.code PICK in my PF status and uncommented the set-PF status in my program it was working fine. Now my question is why this kind of behaviour. When i uncomment the PF status  and run the program without the f.code PICK in my PF status(se41)  it was not working but after inlcuding the F.code in my PF it is working. Any good explanation?
    thks   
    Prabhu

    hi,
    generally fuction code is useful for the system to find on which button or in which area the user has clicked in. based on the function code the system executes the satatements that are in user command.  in your case i think u didnt gave any functionality in user-command. when at-user command is a event in interactive reporting which is triggered based on the button u had clicked.
    at line-selection event uses two system variables
       1. sy-lsind [ current list index number ]
       2. sy-lisel  [ contains the current area in which user ckicked ].
       3. sy-ucomm [ function code of clicked button ].
    using these 3 vars we can drill down to 21 lists [ including 1st list ]
    if helpful reward some points.
    with regards,
    suresh.

  • When to set iwtUser-role and other per user schema using custom athentication?

    I have written my own authentication module and would like to set per user schema on login. Can I write iwtUser-role, iwtCalendarProvider-calendarUserPassword, etc from the authentication class?

    Yes you can, after the authentication is complete you get the profile object and then set whatever value you want to set for particular attributes you want to set ..

  • New Router works great if set to G and wont hardly work if using N whats up?

    Just got a brand new laptop that has a N intel network card so I went and bought a Linksys WRT310N so I could connect in my house. This is the Second router the first one was a NETGEAR and it did the same thing im about to explain so I returned it for this one.
    I set it up, my lap top right next to it gets 17-20MPS great. I go in the other room and i only get 700kb a second but upload at 2mps. So unless im right next to the cpu I get a very slow 700kb.
    I change the netgear one to G and it works fine anywhere in the house, I dont lose speed or anything but wont work on N. Back to best buy it goes.
    I get this one and whallaaa, same issues. I call tech support and they tell me to change channels ect but nothing works unless I change it to G. With a G only setting I can go anywhere with full speed and full signal.
    I heard N is over rated and just a waste of money but I bought it hoping it wasnt all true. I removed cordless phones nad disconnected batteries and every trick I could find on the net.
    Any ideas before I take this one back and just settle on buying a much cheaper N only router? Why spend 130 bucks when I can get one for 50 that does the same thing right?

    Airdrop is not setup correctly in ios7 if anyone shares an Apple ID as their main icloud account.  My family can not use it because we all have to share our main Apple ID in order to see all devices on one find my iphone app.  We all have separate apple IDs for contacts, notes, FaceTime and imessage, but it has to be secondary the way apple has ios7 set up (we used to be able to turn on find my iphone with our secondary id in ios 6).
    So if you want airdrop to work flawlessly as it is now, here is how you set it up. Understand that airdrop uses your main icloud account to identify you and your contacts contents to identify other airdrop users. Each person has to have their main icloud be different.  That email has to be in each other's contacts ONLY as you.  You need to set it as me on your device and make sure it's not in any other contacts in your device.  They need to have that email in your contact on their device and not in anyone else's.  It should work perfectly if that is all setup correctly.

Maybe you are looking for

  • Error Identification - Upgrade from BW 3.5 to BI 7

    HI, While Techincal Upgradation, basis team finding this following error's: Please correct the following error to continue the upgrade process. u201COutstanding DB conversions found.u201D CONV ENTRY TBATG TABL/BIC/POUCODE                     0CNVB 20

  • Time Capsule 2 Tb as external hard drive

    I am about to switch from my old MacBook Pro (8 years old) with a 500 Gb hard drive to my brand new MacBook Air with just a 128 Gb hard drive. I need an external HDD to house my iTunes and iPhoto libraries as well as a lot of music projects (Garage B

  • Bootcamp won't allow me to install windows 7 32bit

    hello everyone, so i am having quite a big problem at the moment. i almost tried everything but it seems like my mac won't let me install windows 7 32 bit. first i tried to do it with the install disc but for somehow my mac keeps ejecting it but othe

  • Capture & Post

    Hello, Can anyone tell me the details steps to be followed for capturing & posting the excise invoice while MIGO. Please consider the Asset & Cost centre PO also. Thanks in Advance.

  • Special function 8 - Output Type

    Hi gurus, I created a new Output Type with special function 8 called ZPDF in transaction NACE with application MR (invoice verification) and I added to that Output Type ZPDF our custom program called ZXXX_ARCHIVE_LINK in order to post into the MM inv