Is there any way to collect the file list from UTL_FILE_DIR.

I expect the use "Oracle supplied package UTL_FILE" to import our customer order shipments to table by XML format files. I already did the procedure to import one XML file into Table by DBMS_XMLSave.insertXML and UTL_FILE. GET_LINE. And it did work.
My question is :
Is there any way to collect the file list from UTL_FILE_DIR. (I put all import XML files into `/usr/tmp?, I want to get all file names from this folder and feed them into UTL_FILE.FOPEN.)
Thanks in advance

UTL_FILE_DIR is a very dangerous and deprecated parameter. Oracle very specifically recommends not using it. You should be using directory objects instead.
As for doing a directory listing, you can use Java stored proc. External procs/functions are not required.
The following sample shows how to use such a Java stored proc to insert the result of a directory listing into a session temporary table:
create or replace and compile java source named "ListFiles" as
import java.io.*;
import java.sql.*;
public class ListFiles
        public static void getList(String directory, String filter)
        throws SQLException
                File path = new File( directory );
                final String ExpressionFilter =  filter;
                FilenameFilter fileFilter = new FilenameFilter() {
                        public boolean accept(File dir, String name) {
                                if(name.equalsIgnoreCase(ExpressionFilter))
                                        return true;
                                if(name.matches("." + ExpressionFilter))
                                        return true;
                                return false;
                String[] list = path.list(fileFilter);
                String element;
                for(int i = 0; i < list.length; i++)
                        element = list;
#sql {
insert
into directory_list
( directory, filename )
values
( :directory, :element )

Similar Messages

  • Is there any way to get the files from other computer ?

    Hai all,
    I have 2 computers connected. I know the IP address of other computer. Is there any way to get the files from other computer. (for e.g. I want to get the files from specific folder. In Java netwroking is it possible? (Any programs)
    regards,
    Namanc

    Bro Take it easy.
    Think you need to send a Image file named ("abc.gif")
    now develop a server using ServerSocket and connect it in local IP and any PORT
    For example i think ur server is connected in "localhost" and 9000 port.
    Now make ur server educated using some commands.
    For example:
    FileName: <File Name String>
    [Means new file is sending by connected client]
    FileSize: <File size long or int value>
    [ So that ur server can determind about the total length of sender file]
    DataModeOpen
    [Now your client will send its image data, this command means your client software is sending data]
    fjadlkfjaofaijojfwoeiurfodkjflsajlfksa
    l23j4lj23lkjlasjfoq23j4rokjelfkjasldkf
    2o3j4lk2j3ljslakdjf2l3j4 l23kjlk23k4j
    DataModeClose
    [Means file sending finished]
    Close
    [Means your client connection is closed]
    Now develop a client supporting this command.
    For example(Server):
    String getFileName=null;
    long getFileSize=0;
    public handleCommand(String getCmd) {
        if(getCmd.startsWith("FileName")) {
                String[] splitData=getCmd.split(":");
                this.getFileName=   splitData[1];
                outPutStream.writeBytes("+OK");
        } else if(getCmd.startsWith("FileSize")) {
                String[] splitData=getCmd.split(":");
                this.getFileSize=Long.parseLong(splitData[1]);
                outPutStream.writeBytes("+OK");
        } else if(getCmd.startsWith("DataModeOpen")) {
               //data mode open so receive data
              receiveData();
              outPutStream.writeBytes("+OK");
        } else if(getCmd.startsWith("DataModeClose")) {
              //close client socket
             getClientSocket.close();
    }For client:
    DataInputStream dataIn=null;
    BufferedOutputStream bout=null;
    public sendFile(bytes[] getBytes) {
            //if ok found then do other or show error message
        if(sendCmd("FileName:"+getFileName)) {
            if(sendCmd("FileSize:"+getFileSize)) {
                if(sendCmd("DataModeOpen")) {
                   bout.write(getBytes);
                } else {
                   showError(3);
            } else {
                   showError(2);
       } else {
            showError(1);
    }i think it will help u

  • HT4407 Is there any way to download these files manually from another source? The download from boot camp keeps stopping at around 25% and then produces the error "Can't download Windows Support Software because of a network problem". Thx!

    Is there any way to download these files manually from another source? The download from boot camp keeps stopping at around 25% and then produces the error "Can't download Windows Support Software because of a network problem". Thx!

    No. This issue is dicussed here frequently. The only option is to be patient and try often. Search this forum for other posts about this issue.

  • Is there any way to show the file name super imposed on the slides?

    Is there any way to show the file name super imposed on the slides in Premiere Elements 9?
    I am setting up pictures as slide show along with some movie clips but wanted the desctiptive file names appearing with each picture.
    Thanks!

    Yes. In Timeline mode, you add it to an upper video track as a title.
    I show you the basics of titles in the Basic Training tutorials at Premiere Elements support site Muvipix.com.
    http://forums.adobe.com/thread/537685?tstart=0

  • Is there any way to block PDF files sharing from iPad to any another device or cloud? We need to have certain PDFs visible and readable only from iPad.

    Is there any way to block PDF files sharing from iPad to any another device or cloud? We need to have certain PDFs visible and readable only from iPad.

    There are "container" apps emerging for the iPad.  Enough searching & I suspect there would be one for your needs. 
    All in one Application that emphasize security
    Good Collaboration Suite  Secure mobile app-to-app collaboration.
    The Good Collaboration Suite includes Good for Enterprise, Good Share and Good Connect secure mobile apps, simplifying access to email, calendar, contacts, tasks, instant messaging, browsing and document sharing. These apps are built using Good’s next-gen containerization   that includes secure data sharing between any Good secured app as well as app-level encryption independent of the device used."
    http://www1.good.com/applications/

  • Is there any way to change the document size from scene to scene?

    I'm building a portfolio site, but I need the document size to be different from each scene.  I'd rather not create a separate swf/html file for each page since that would disrupt the transition between scenes (not to mention all the wok I went through to get the dropdown menus working).
    For instance, the "home" scene is structured for 1200x670 px, but the portfolio scene labeled "published" needs to be at 1200x1500px.
    Is there any way to change the document size from scene to scene?  OR; If, for instance, I made the universal document size 1200x1500 for the entire flash file, is there a script that would restrict the "home" scene to only show the first 670 pixels?

    not in flash alone.
    you may be able to do what you want using javascript in your html document and using the externalinterface class to communicate between your actionscript the embedding html javascript.

  • Is there any way to know the T-code from the screen?

    Hi friemds,
    it s a general question. but I found relavant for posting here.
    I saw our group friens giving some T-codes for spro functions (eg: SNRO, M/06), bbut how to know the transaction from path. i.e. If I go to condition types screen, there I could not see any transaction. is there any way to know the T-code from the screen?

    Hi,
    Listed here are the various ways you can find the list of transaction codes and their usage:
    Use transaction SE11 - ABAP Dictionary:
    Fill in the Database table name and click the Display button.
    - TSTC   table will contain all the Tcodes and
    - TSTCT table will contain all the Tcodes with Texts.
    Once you entered the screen, click in Top Menu - Utilities - Table contents - Display
    If you want to display all the transaction code (total - 57,048) you have to change the Fields: Maximum number of hits to 99999 (default 500).
    or
    Simply goto transaction SM01, although this tcode is to Lock/Unlock any transaction code, you can also view all the tcode available in the R/3 system from here.
    or
    Goto transaction SE93
    There are two ways where you can find the list of transaction codes in SE93.
    Method 1:
    You must be familiar with the starting characters strings for each of the R/3 application modules.
    Assuming you know that most Materials Management transaction codes start with MM.
    In the Fields: Transaction code, type in MM* and press the function key F4
    The list of transaction code starting with MM will be displayed.
    Method 2:
    On the Top Menu, click Utilities - Find - Execute and the first 500 transaction will be display.
    If want to display all the tcodes, make sure you remembered to change the Fields: Maximum no. of hits right at the bottom of the screen.
    I know a particular T Code and can enter and work on it.  How do I know what is the menu path for that T Code?
    Enter Search_SAP_Menu in the command box and when the pop box appears enter, the Tcode and it will give the nodes and menu path. 
    This is helpful only in case of SAP Menu not in case of SPRO - ie IMG.....
    Reward if Helpful,
    Regards,
    Archit.

  • Is there any way to get the file for your site from Creative Cloud?

    I lost the file for my Muse site and was wondering if there was any way to get the file from the server or from somewhere in Creative Cloud.
    Thanks.

    Are you Mac or Windows?

  • Using pages, I saved the wrong file thereby overwriting the file I want.  Is there any way to get the file I want back?

    Is there any way to recover a file if you have overwritten it?

    When I do that: Pages>Revert to > I don't get a chance to "Browse all Versions"  Instead it says, "no Document"

  • Is there any way to stop the print screen from dropping down on top of the page to be printed.  Can the print screen be moved?

    Is there a way to stop the print screen from dropping down on top of the page to be printed.  Can the print screen be moved?  When the print screen drops down, it covers the page and the info needed to create the file.  Thank you

    You will find that this is application dependent.  Most Apple applications such as Safari and Mail will use the "sheet" type of dialog boxes that you are referring.  There is no way for the user to change that behavior.  Other, non-Apple, applications like Firefox use a "modal" dialog box for printing etc.  The modal boxes can be moved around so you can see the page behind.

  • Is there any way to access the files to be sent by XML bursting process?

    Hi All,
    I have following problem (11i, 5.6.3):
    - XML output will be created from report
    - bursting process will e-mail to multiple addresses after converting to PDF using RTF template
    - now I need to split the output again (like XML bursting does before sending out), but save on the server instead of emailing out
    Is there any way to achieve last point? Please note that in second step file will be split by supplier and in the third by invoice, so I definitely need to run bursting process twice.
    Regards
    Piotr

    iOS does not natively support normal file structures or servers, but there are third party apps you can get that do, such as FileBrowser.
    Regards.

  • Is there any way to delete the favorites folder from the mac mail sidebar?

    I recently made the mistake of flagging two email messages. Immediately I now see a "Flagged" icon in my Mac Mail sidebar, right under the Inbox. I the "unflagged" the messages. They went away but the Flagged icon won't. It now seems to be a permanent fixture of my mail sidebar. Is there any way to move, relocate or delete a mailbox icon you don't use and don't want to see?

    There's no "downgrade" from OS X Server 10.6 Snow Leopard Server to client.
    Acquire the current OS X client software, boot the DVD and use Disk Utility to erase the target disk, and reinstall the software.
    Leaving the box with the server software running, with the services stopped, adds negligible performance overhead.  If any.

  • When changing "browser.newtab.url" is there any way to prevent the address bar from getting focus?

    When I change "browser.newtab.url" to about:home and open a new tab, focus is set to the address bar not the search box on the firefox home page. The same thing happens if i change the url to google.com or another search engine. Is there any way to prevent this from happening.

    Custom new Tab has a small bug if the start page is exactly the same as the new tab page. Then the focus of the start page is on the address bar. Just leave the "www." out in the startpage and use "www." in the new tab page then it works perfectly. e.g.
    Startpage: google.com
    new Tab page : www.google.com
    Now the focus of the start page is on the search box.

  • Is there any way to reset the file type to "Adobe Acrobat Document" rather than "pdf file"?

    An update from WordPerfect automatically installed Foxit on my computer without warning me.  I uninstalled it and reinstalled CS5 and Acrobat 11 but when I look at a list of files in Windows Explorer, all of my PDF files are simply listed as "PDF file" rather than "Adobe Acrobat Document".  I rely on the Adobe name to get my PDF listed at the top of list of files when I sort by document type for something that I need to do 4 or 5 times a day.  Having it buried under "PDF" is causing lots of errors.
    I've tried searching the registry but can't find anything that would make this change.  I know it's related to the computer because when I use my laptop to view the same folder on the desktop, the laptop shows the files as "Adobe Acrobat Document".  I just don't know where to look to fix this.
    Any help would be very much appreciated.
    Thanks,
    GiGi

    I have already reinstalled both Adobe Reader and the full version of CS5 which includes Adobe Pro.  Neither of those steps worked. 
    Thanks,
    GiGi

  • I do not have Aperture installed on my computer anymore but I do have my old library.  Is there any way to extract the ORIGINAL image from the library without having Aperture installed?

    I started using Aperture back when it first came out.  I really had no idea what I was doing when I set everything up.  I got a new computer but do not have my Aperture disc anymore but I do have my old library.  I can get into the library and find the pictures in the Preview and Thumbnails folders, but these obviously are not the original pictures.  The ones in the Preview folder are only 10% of the size of the original digial photo.  I want to know if there is any way to get or reconstruct the original picture using the files in the library without installing Aperture.

    Hi Refringgers,
    Install the 30 day trial of Aperture. Open your Aperture Library, export the Masters and Versions.
    Other than that I will make a strong recommendation not to muck within the Aperture library. Yes, you can find your photos in there, but if you ever decide to again use it may well be unable to be opened. The other thing is the photos are scattered around in a gazillion folders it would take a long time, of course depending on the number of photos, to retrieve them.
    Cordially,
    RicD

Maybe you are looking for

  • Camera and led light not working after IOS 7 update on iphone 5 help please!!

    After I installed the update my led light won't work for the flashlight and my camera doesn't work either. Only the front facing camera works. Any suggestions?

  • LinkToAction Image not displaying in NWDS

    Hi, I am on NWDS version Version: 2.0.14. My imageSource file (abc.gif) associated with each LinkToAction type element displays fine in execution mode.  However, the image does not display in NWDS.  All I see is a blank in the layout where the link i

  • JPEG? TIFF? PNG? PCT? Best still format to use in FCP7???

    I'm making a WWII documentary that will feature a lot of pans and zooms on stills. My sequence setting is DV-NTSC, 480i. I'd like to know the best Photoshop still format I should be using. I've heard that TIFF is best but it also happens to take up a

  • Signal Express 2009 causing NIMAX to generate an Error Exception message

    I have a system that gives an error message when I try to open an instrument in NIMAX. The popup error message says "unexpected Error", with a code of "MAXKnownException. This system is running Windows XP and we had Signal Express 3.0 with NIMAX 4.3

  • My IMAC died for no apparent reason

    I have an Indigo Imac G3 with 500Mhz Processor, 20GB Hard drive, 256Kb of ram, plain old CD ROM and the latest update to OS10.2. This past weekend was the last time I used my computer. It is always shut down since it is never continuously in use. The