List of files stored in a directory object

Hello

I looked on Google, Oracle DB docs and here to find a way to practice for the list of files stored in a DIRECTORY for the batch of loading into a table with PL/SQL. But no luck, UTL_FILE does not have a method of directory listing. I seen examples with a workaround like putting the list of files in a text file before loading. The directory is powered by other network services and process, so I don't know the list of the files that I need to import, and then remove. I do not have access to the server console, and it is impossible for me to throw a kind of "dir" result in a text file. I've seen other examples of using Java, but it seems that I have too much access to Java on the server side.

Is there a simple way to do so only in PL/SQL?
Otherwise, I'll ask the ADMINISTRATOR the rights necessary to compile/run java on the server side...

Versions of target DB for this requirement are 10g and 11g (mainly) on Windows environment.

Thank you
Bruno

As far as I'm concerned, obviously, but it is up to you to answer all the undocumented features is caveat emptor.

DBMS_BACKUP_RESTORE is the PL/SQL package that only RMAN backups.
DBMS_BACKUP_RESTORE is not documented in the Guide of packages provided (or whatever we call it) but has detailed comments in the package header in $ORACLE_HOME/rdbms/admin. This is unlike some packages where Oracle have even wrapped the header. There are dozens of notes on Metalink describing certain circumstances where the DBMS_BACKUP_RESTORE call yourself is OK.

SEARCHFILES procedure is called by RMAN when you manually catalog archives that start with a string.
XUTL_FINDFILES exposes only and only the part of the DBMS_BACKUP_RESTORE.
The disadvantage of XUTL_FINDFILES is that it must be installed in the SYS schema due to the inevitable dependence on a table of $ fixed x.
So the only privileged required to install XUTL_FINDFILES is you must be logged in as SYS. After its creation, you would run on XUTL_FINDFILES than that you wanted, then, as the security is controlled by directory objects. So it would be OK to grant execute on XUTL_FINDFILES to the public, because without privileges on a directory object, the package will not do anything.
Some administrators will not like the fact that the package must be installed in the SYS. All I can say is try it on a development database and see what happens.

Tags: Database

Similar Questions

  • iMac Photo app smart album settings files: stored in this directory?

    Nobody knows...

    On the iMac, in which directory is 'photo app Smart Album settings files' stored?

    I am running OS X El Capitan, version 10.11.4

    All photos, records, albums etc are stored in the photo library. Are NOT, repeat DO NOT mess with this file, unless you want to make a mess of your photos. Should be changed in the Photo app. Maybe if you tell what you are trying to reach so someone can point you in the right direction. There is also a Photos for Mac forum, you can post here, this is where the Photos for the Mac experts hang out.

  • OMB * Plus the command to the list of files in the current directory

    UNIX-based OMB * more customer supports the command 'ls' for a list of the files in the current directory (OS).

    Does OMB non-windows * more customer have a similar command? I tried the two 'ls' and 'dir' without a bit of luck.

    I use the Windows OMB 11.2.0.2 version * more customer.

    Thank you.

    Use tcl commands to get the platform independence, so, for example, you can use
    glob *.
    to list all the files or
    *.XML glob
    for all XML files in the directory.

    See below for details of the glob command
    http://www.tcl.TK/man/tcl8.4/TclCmd/glob.htm

    You can use cd to change directories because I think that the version of TCL used is older and does not support the - directive of the directory on the glob command.

    See you soon
    David

  • I have several .dbx files stored in a directory on a Windows 8. How to import them to my mail application?

    I configured my Gmail account in my Mail application.  As, I exported my Outlook Express files and stored these .dbx files in a directory on my PC in Windows 8.  To import the .dbx files, I have read that I have to go in my WinMail application and select File--> Import Messages (by selecting the format of OE 6), import them from the directory in which they are stored, navigate to that directory, select the .dbx files and import them.

    However, the Mail app doesn't have the file--> import feature, or at least I can't locate.  Can someone advise please how I can perform this function in the Mail application?  Thank you.

    John

    My DBXpress program retrieves messages from the dbx (www.oehelp.com/DBXpress/) files.  You can then get my ceml program (free - www.oehelp.com/ceml/) to read.  Otherwise, you will need to get a 3rd mail program (e.g. Thunderbird, Windows Live Mail, Outlook) group to import the files and read them.  The Mail App in Win8 will not read them.

    Steve

  • APEX - opening World document (and other files) stored in a blob column?

    Hello

    I have an application developed in Oracle Apex 3.2.1 and RDBMS Oracle 9.2.0.8 (SUN SOLARIS SPARC 64-BIT).

    I have a table called BAC_ARQUIVO, with the following structure:

    CREATE TABLE BAC_ARQUIVO
    (NAME VARCHAR2 (4000), / * name of the file stored in a BLOB column * /)
    TOPIC VARCHAR2 (4000), / * a brief presentation of this file stored * /.
    Identification NUMBER, / * an identification of this file - it s a PK of this table column * /.
    BLOB BLOB_CONTENT, / * Blob field to store different types of files - XLS, DOC, PPT, PDF, EXE, ZIP, etc.) ;
    Mime_type VARCHAR2 (4000) / * Identification whose file type is stored in BLOB field * /.
    )


    The field BLOB_CONTENT in this table can store:

    -Executable files;
    -MS-world Documents (DOC);
    -Zip Files (ZIP).
    -Ms-Excel (XLS) files;
    -Ms-Powerpoint files (PPT);
    -Adobe (PDF) documents.

    In fact, in this application, APEX, I developed an interactive report in which the user can download these files to the desktop without problem.

    But now, my user I would like to know if it s possible ask APEX can OPEN some of these files stored on this download of WITHOUT BLOB column.

    My user would like to see a hiperlink (or button) that, if you press on/accessed, can open a new page (or page within the application) with the document. Doesn´t need to edit this file oppened. He wants only to see.

    For example, if the file stored in the blob column is type ms word, so the application opens an MS-WINDOWS application with these files.

    Is this possible?

    In this forum, I saw this it possible s to open a file stored on the directory "/ i /", but I need to open the file stored in the BLOB column. I Don t want to store the file in the operating system of the server.

    Could someone show me how it could be done?

    Best regards

    Sergio Coutinho

    Hi Sergio,

    You might find this link useful:

    http://www.Oracle.com/WebFolder/technetwork/tutorials/OBE/DB/Apex/R31/apex31nf/apex31blob.htm

    See also the Mask of Format download BLOB :

    {message: id = 9716335}

    Here I gave the format mask for APEX 4.0, which will be slightly different for 3.2.1 and proposed changes
    in the format of mask are:
    (1) mask format: DOWNLOAD
    (2) content-disposition: Inline

    This will be achieved with her:
    >
    But now, my user I would like to know if it s possible ask APEX can OPEN some of these files stored on this download of WITHOUT BLOB column.

    My user would like to see a hiperlink (or button) that, if you press on/accessed, can open a new page (or page within the application) with the document. Doesn´t need to edit this file oppened. He wants only to see.
    >

    I hope that helps!
    Kind regards
    Kiran

  • How do a list of jpeg file to a working directory folder titles list text on Excel or Word

    I want to create a library in Excel of all the images that we have given the reference numbers.

    All images are titled with the part number, for example 43682 001.

    I want to understand this list on Excel, but I'm not able to get this list of titles of the image in a text format to add.

    Any ideas?

    Here's one way:

    1. Open a command window in the folder
      Hold SHIFT when you right click on the file were all images are.  Now shift offers more options on the shortcut menu.  Choose "open command window here".

    2. Copy the list of names of file with a command
      In the command window, enter the following command and press ENTER:

      dir /b /s | Clip

      When you press on enter, nothing appears to happen again.  In the background, a list of all the file names has been copied to the Clipboard.

    3. Paste the list in Excel
      Switch to Excel, and then press paste (or Ctrl-V).  A list of file names.

    4. Delete the path (optional) file info
      If you want just the names, and to remove the path to the folder, you can press Ctrl + H and a replacement:

      Replace: . \
      Replace with:  (nothing, leave this empty)

      After replacing, you'll just file names:

  • Load a BLOB of FTP-directory object?

    Hey community members.

    I am now master the insertion of a BLOB of the file either during an INSERT or UPDATE in my local directory (C:\Oracle\Test\Pics) thanks to your
    friendly and competent help.

    but, as always ;) now I am facing another problem I thought that it would not really be a problem...

    My problem is:
    the BLOBs I want to write in my paintings are stored on an FTP server in the network and I want to access this directory when trying to create
    It's like a directory of the database as follows:
    CREATE OR REPLACE DIRECTORY image_store AS 'ftp://oracle:[email protected]/testFiles/testImages';
    username: oracle
    password: oracle

    but I can not grant access to the directory. I surfed through the net and I found several solutions for writing in a directory on the FTP server, but
    I can't understand how this is a problem to read from it. I need to create a login FTP with UTL_TCP.connection procedure?

    I found this on the net, but is it really that much "complicated"?
    -- Retrieve a binary file from a remote FTP server.
    DECLARE
      l_conn  UTL_TCP.connection;
    BEGIN
      l_conn := ftp.login('ftp.company.com', '21', 'ftpuser', 'ftppassword');
      ftp.binary(p_conn => l_conn);
      ftp.get(p_conn      => l_conn,
              p_from_file => '/u01/app/oracle/product/9.2.0.1.0/sysman/reporting/gif/jobs.gif',
              p_to_dir    => 'MY_DOCS',
              p_to_file   => 'jobs_get.gif');
      ftp.logout(l_conn);
    END;
    If so, how can I call a procedure in my procedure?


    Thanks a lot for your help and your patience!

    see you soon
    Ramirez

    An Oracle Directory object must refer to a directory which is known for the filesystem of the host operating system. A FTP location is not a valid directory object.

    The simplest approach is likely to use some of Chris Poole package XUTL_FTP. Otherwise, you'd written your own FTP package.

    Justin

  • my folders disappeared when 10.6.8 OS10.11.3. In any case, to get this stuff back in folders rather than a long list of files?

    My folders disappeared when 10.6.8 OS10.11.3. In any case, to get this stuff back in folders rather than a long list of files?

    Where they disappeared?

    Some changes that may be what you watch:

    • All of my files - this is the search folder that searches all your files in your home and presents them in one place. They were not moved, they are displayed just like they are.
    • Framed by default - the sidebar returns the values by default for all folders that you placed there will need to be added again.

    Your files are stored inside your folder into subfolders such as Documents, movies, pictures, etc. They are all should still be there. You can add one of these folders to the sidebar by dragging them there, or you can use the tab of the sidebar in the Finder preferences.

    You can access your file in the Finder with cmd-shift-h (menu go).

  • model of recursive list of files

    Hello

    I created a Subvi, which runs a main folder for specific files and adds them to a compressed folder. I have 4 files that I create for different types of collected files (.csv and .txt). The file naming convention include an object identifier, description of the task and time (most of the time). Here are some examples:

    ABC_30s_narrow_ec_12-23-42 - PM_R.csv (multiple with different timestamps)

    ABC_30s_narrow_ec_12-23-42 - PM_L.csv (multiple with different timestamps)

    ABC_sts_arms_12-21-06 - PM.csv (multiple with different timestamps)

    ABC_Tablet_2_12-26-56 - PM.txt (multiple with different timestamps)

    ABC_gait.txt

    ABC_zero.csv

    I tried by using the model of the vi recursive list of files to search for a specific task (for example 30 sec) and that move to a compressed folder you specified (for example the balance). Files are moved only if the "model" at the end of the file name. The model is only the end of the files listed or can I get it to find the model in the middle of the name? And is it possible to find two patterns (for example, 30 s and zero) and move them to the same folder, without crushing the compressed file? I would like to understand this without modifying the convention of naming too much (predetermined by someone else).

    Thanks in advance,

    Anton

    The model can be applied anywhere in the file name. Aid indicates specifically how a boss can ask at the beginning of a file name (*.vi matches all the screws). To search for specific text in the middle of the file name, you must use a model like * text * (with an asterisk before and after the text that you want to match). You can similarly to mutiple models with * pattern1 * pattern2 *.

  • Save dialog box under does not display the list of files

    Terminal Server R2 of 2012.  Dialog box "Save as" for a user does not display the list of files.  The address bar shows the way, there is a form for the file name box, and the user can save the file successfully.  But the space that would show the files in the selected directory is empty.  There is no form for the list of files box, it's just the grey box dialog box space - that is to say, it is not that it looks like an empty folder, there is simply no display form box.

    The 'Open' dialog box appears normal, showing the list of files in the selected folder.

    I had the user close the session on the Terminal Server and access it from another PC, even if I was not expecting to make a difference, and it didn't.  I have also connected on myself and has not experienced the same problem.  So it seems to be user-specific.

    What a setting, the user has selected by mistake, or a mistake any?

    Thanks for any help.

    Hello

    Post your question in the TechNet Server Forums, as your question kindly is beyond the scope of these Forums.

    http://social.technet.Microsoft.com/forums/WindowsServer/en-us/home?category=WindowsServer

    See you soon.

  • Make a list of files

    Is it possible to copy the list of files in a folder and paste in, say a Word or Excel document in a list that can then be printed? I'm not trying to copy the file names just files to compose a list.

    Is it possible to copy the list of files in a folder and paste in, say a Word or Excel document in a list that can then be printed? I'm not trying to copy the file names just files to compose a list.

    =====================================
    The following freeware might be worth a try:

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    Karen's directory printer
    http://www.KarenWare.com/PowerTools/ptdirprn.asp

    Directory printer tutorial from Karen
    http://www.howtogeek.com/HOWTO/6056/print-detailed-directory-information-with-Karens-directory-printer

    Karen compatibility tooling
    http://www.KarenWare.com/compatibility.asp

  • List of files in a folder in a text list

    Read it please I want to make a list of files within a folder.
    I can do Dir C:\Cab, but as the cottage:

    27/07/2012 13:02 .
    13/04/2012 06:58 6 819 abc.py
    19/04/2012 the 17 433 07:44 about.png
    13/04/2012 the 6 800 aboutDialog.py 06:59
    19/04/2012 the 23 804 abouten_US.res 06:50
    19/04/2012 108 abp.dll 544 08:41
    19/04/2012 the 7 912 07:14 abpen_US.res
    19/04/2012 acc.dll 716 288 08:41

    I wonder if it is not run this command and get just the names of the exported without the size files date ect

    Or better if there is a way to send a text with directory document here in from them would be exit 1

    Filename C:\Cab\

    The reason im trying to understand this is that I have about 3500 files that I want to put in a cab file and I don't want to alter each line because it would take FOREVER!

    Sure.

    Just enter the command:

    dir /b /s C:\Cab > outfile.txt

    This simply gives you a list of files in the C:\Cab directory and put the list in the file "outfile.txt".
    The "/ s" will include subdirectories and will also give full paths

    HTH,
    JW

  • Can I write a .bat file to list all files of a specific type?

    With the help that I am here, I wrote a simple .bat file that lists all the files in a directory that I chose.

    I would now like to make a version of which lists all the files in the specified directory that have a .wav extension. Is this possible?

    Here are the existing syntax:

    D:
    CD D:\inetpub\kthings
    dir > C:\tftDocuments.txt
    TYPE tftDocuments.txt

    Can I write a .bat file to list all files of a specific type?

    I do not know.  Can you?

    Tips:

    Go here: http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ntcmds.mspx?mfr=true

    Or just open a command prompt window (start > run > cmd > OK), and then type a command followed by the characters /? to see information about this command.

    For example, try

    dir /?

    You should also read http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/batch.mspx?mfr=true this http://technet.microsoft.com/en-us/library/bb490982.aspx and maybe this http://www.pcstats.com/articleview.cfm?articleID=1767

  • Export the list of files in a folder in the Explorer

    How to export a list of files that that are in an excel file or a text document? Preferably excel.

    Thank you

    Tom

    You must have the directory you want the list on your hard drive (not a network share even if a mapped drive may work?

    Files should be displayed in the format of details in the directory.

    (1) type cmd in the start menu to bring up a prompt back
    (2) use the (for example) "cd C:\Users\BobJones\Desktop\New folder" command to navigate to the folder in question
    (3) use the command "DIR > doggy.csv ' to create a file named doggy.csv in the same directory that you open directly with excel. Nothing looks much lik that it happens, but you unlike find the small file as expected.

    Good luck!

  • When you try to import a .mp4 file in windows movie maker, the program does not list the file when I search for it in his file.

    When you try to import a .mp4 file in windows movie maker, the program does not list the file when I search for it in his file.  Help, please.

    As I suggested previously, conversion to a format like
    . WMV before you import it into Movie maker may be the solution.

    The free Converter from Microsoft can be a place to start:

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    Download Microsoft Expression Encoder 4 with Service Pack 1 (SP1) (freeware)
    http://www.Microsoft.com/download/en/details.aspx?displaylang=en&ID=24601
    (runs under WinXP SP3 / Vista / 7)

    When you install the program...
    Start Microsoft Expression Encoder 4
    (Start / programs / Microsoft Expression /)
    Microsoft Expression Encoder 4)

    On the "Load a new project" screen...
    Left click... "Transcoding project '...

    When the program opens, click on... File / import...

    (If at any time you get lost while browsing
    the program of... to... Window / active Reset
    Type or workspace... CTRL + SHIFT + R)

    Look for the file/s that you want to convert.
    (If files do not appear... open the fall
    window and choose... All files)

    Click (highlight) left the files and the left on the Open button.

    You can see the files in the "Multimedia content" pane

    In the right column... left click on the tab "Output"...

    Open the drop directory window and choose an output folder.
    (This is where you will find your converted file)

    On the left, click on the button "encode".

    Wait... video encoding CPU intensive and can
    be a slow process. It is always best if you do not have
    multi-task while files are encoded.

    Now... try import you again. File WMV in Movie Maker.

    More converters:

    There are to many converters available on the net...
    the following links are some examples. You can
    need to experiment to find the best result.

    Proceed at your own risk *.

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    (1) format Factory (freeware)
    http://www.videohelp.com/tools/Format_Factory
    (the 'direct link' is faster)
    (the file you want to download is: > FFSetup270.zip<>
    (FWIW... installation..., you can uncheck
    'all' boxes on the last screen... even in this case, it may
    install the Ask toolbar on your system)
    (Windows XP / Vista / 7)

    First, you will need to decompress the file or just open the
    Drag FFSetup270.exe out of the folder
    and drop it on your desktop. To install left click.

    (2) Freemake Free Video Converter (freeware)
    http://www.Freemake.com/free_video_converter/
    (Windows XP / Vista / 7)

    (3) Koyotesoft Free Video Converter
    http://www.koyotesoft.com/indexEn.html
    (2000/XP/2003/Vista/Seven)

    (4) Sothink Free Video Converter
    http://www.Sothinkmedia.com/video-converter/
    (Windows XP / Vista / 7)

    (5) hamster Free Video Converter
    http://www.PCWorld.com/downloads/file/FID, order 155794, 4 pages, 1/download.html
    (Windows XP, Vista, 7)
    (If you choose Custom Installation
    You can uncheck additional modules you
    do not want to install)

    (6) quick Media Converter
    http://www.Cocoonsoftware.com/
    (Win XP, Vista, Win 7 Home Premium)

    (7) SUPER © Simplified Universal Player Encoder & Renderer
    http://www.videohelp.com/tools/Super
    (the download mirror site is faster) (Windows XP / Vista / 7)

    (8) Xilisoft Video Converter
    http://www.Xilisoft.com/video-converter.html
    (not freeware but receives good reviews)
    (Windows XP (SP2 or later) / Vista / 7)

    Good luck...

Maybe you are looking for

  • Netflix: The network appears to be down

    I have a blu ray player model: BDPS780 connected to my wireless network. When you're watching a Netflix movie after a few minutes I get the message "the network appears to be down. Is the installation of the network properly? ». I hit retry and then

  • JobId difference for a shared printer on a client of Win7

    Hello I am interrogating the news of employment during printing for which I use the job Idobtained during the escape of the DOCUMENTEVENT_STARTDOCPOST. But I have problems ifI use when network sharing is turned on and the Win7 is the customer. In suc

  • Using a Mac to partition a USB external hard drive to use to start Windows 7 on a PC

    Hello My PC hard drive died recently, and I need to reinstall Windows 7. Fortunately, I have a Windows 7 .iso file on my Macbook Pro. I also have an external hard drive USB empty. I try to use the Mac (in particular the disk utility program) partitio

  • Num Lock not enabled when starting Windows 8

    Hello world After turning on my system after loading Windows 8, the Num Lock does not automatically start as it is defined in my BIOS.  I followed the suggestion given in the forums and changed registry entries for the InitialKeyboardIndicators key i

  • The filters are case sensitive?

    If I had a filter in a segment that resembled a contact field or a field of a CDO that asked if the field was exactly 'on', which are both 'on' and 'On' (or 'ON' or 'oN') or simply '' they ''?Thank you.