How can we read filenames from a specific folder

Hi forum,
I have a situation that, there are several files coming daily in a specific folder.
I want to read filenames from that folder and want to get that filename in a variable.
That filename contains account nos. which I need for further processing.
Now, how can we read filenames from a specific folder with using Oracle PL/SQL Procedure?
Please suggest.
Thanks & regards,
Kiran

If you are on 10g (not sure which exact release I'm afraid) you might look at Chris Poole's XUTL_FINDFILES that lists the files in a directory using PL/SQL and DBMS_BACKUP_RESTORE.SEARCHFILES (all a bit undocumented as it seems to be provided as part of rman).
The conventional (i.e. supported) approach is to use a Java stored procedure - there is an example on AskTom.
Message was edited by:
William Robertson

Similar Messages

  • How can i access filename from file (sender)

    hi All,
    can anybody tell me
    how can i access filename from file (sender)?
    thank u
    swari

    See:
    "SAP NetWeaver XI: Variable Substitution with Adapter-Specific Message Attributes via DynamicConfigurationBean"
    SAP NetWeaver XI: Variable Substitution with Adapter-Specific Message Attributes via DynamicConfigurationBean
    "Accessing Adapter-Specific Attributes through User Defined Function"
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70c89607-e4d9-2910-7280-f6746e964516

  • How can I find history from a specific website on my MacBook Pro?

    How can I find history from a specific website (such as: time spent on that website and things of that nature) on my MacBook Pro?  I would also like to see if I can get a detailed history for other things done on the computer, such as: Date & Time Spent running a specific application, etc.

    Not so much.
    You can try 3rd party app for example http://timingapp.com/

  • TS3276 How can I block mail from a specific email address?

    How can I block mail from a specific email address?

    Create a Rule
    Mail menu
    You can choose the Delete option from the drop down list or you can move the message to a specific folder.

  • OSB : How can we copy  actions from one project folder to other projects?

    How can we copy actions from one project folder to other projects in OSB?
    For eg:
    I have a service call out action in Project1/proxySer1
    I want to copy this to Project2/proxySer2.
    Espicially, in our case error handling callout is common to all of our projects and we should be able to copy from one to another.
    Edited by: user10367892 on Aug 20, 2009 12:28 PM

    Thank you for the reply.
    It was my fault. I was on two different servers, while i was doing this and so didn't work. But copy /past action works as you suggested.
    Can I select multiple actions from one stage and paste to different proxy service? I have too many options to copy/paste and hence I have this question.
    Is there any other way of copying all selected actions in one stage to another, but not the complete stage itselft?

  • How can I read email from my aol account from my iphone and keep it as uread on my computer at home.  It automatically goes to read mail on my computer.  On my computer if I want to keep an email to answer later I can mark it "Keep as New".

    How can I read my email from my aol account from my iphone and keep it as "unread" on my computer at home?  At home I can read an email and if I want to get back to it at a later date I can mark it as "keep as new".  I tend to forget it if it goes to "read" mail.   Right now, when I read an email from my phone it goes automatically to "read" mail.

    On the iPad, using the mail app, there is no way to do what you are asking without tapping the flag icon and marking the item as unread. Have you tried the OWA app for the iPad? It may have that functionality, but I haven't tested it as you need an Office 365 subscription with Exchange support to use the app.

  • How can I read color from frond-end PC

    Hi Everybody,
    I have en HTML- control in my GUI and I would like to adjust back ground color of my HTML page to actual client color scheme. Does anyone known how can I read the color settings from client pc?
    Best regards
    Bogdan

    Hi,
    If you are using LOAD_HTML_DOCUMENT method to load the repository object, then pass a merge_table which contains an instruction to replace the background:
    TYPE-POOLS SWWW.
      DATA: l_merge_table TYPE swww_t_merge_table,
            l_merge_item  TYPE swww_t_merge_item,
            l_html_table  TYPE TABLE OF w3html,
            l_html_line   TYPE w3_html,
            l_url         LIKE me->url.
        CLEAR l_html_table.
        l_html_line = ' '.  " No background color, use default
        APPEND l_html_line TO l_html_table.
        l_merge_item-name = '<!BACKGROUND!>'.  " Tag to be replaced
        l_merge_item-html = l_html_table.
        l_merge_item-command = ' '.     " blank means replace tag line
        APPEND l_merge_item TO l_merge_table.
        CALL METHOD html_view->load_html_document
             EXPORTING
                  document_id  = 'DOCID'
             IMPORTING
                  assigned_url = l_url
             CHANGING
                  merge_table  = l_merge_table
             EXCEPTIONS
                  OTHERS       = 1.
    I have not tried this code but hope it helps,
    Rao A

  • How can i start Terminal in a specific folder

    how can i start Terminal in a specific folder

    From the menu bar, select
     ▹ System Preferences... ▹ Keyboard ▹ Keyboard Shortcuts ▹ Services ▹ New Terminal at Folder: On
    Right-click or control-click a folder in the Finder and select that item from the contextual menu.

  • How can I read channels from different SCXI modules simultaneu​sly?

    Hello.
    I have a system that consists in:
    - Three E-series DAQ boards (PCI-6034, PCI-6052 & PCI-MIO-16E)
    - One SCXI chassis (SCXI 1001)
    - 4 SCXI modules for voltage measurement connected to PCI MIO 16E
    - One SCXI module for strain gauges connected to PCI 6034
    - One SCXI module for accelerometers connected to PCI 6052
    I have to develop a software application that reads all the channels at the same time or at least in the same program cycle. I have tried to create only one DAQmx task containing all the channels, although they belong to different DAQ boards (and SCXI modules, of course), but it seems to be impossible to use channels from different devices in the same task.
    So I have created three different DAQmx tasks, one for each device and its channels. I have used one "DAQmx Start Task" VI for each task at the beggining of the loop in order to use them independently, reading their channels inside the loop in every program cycle.
    When I have run the program I have get the following error:
    "ERROR -200619 ocurred at DAQmx Start Task.vi
    Chassis cannot be used for more than one scanning operation at the same time.
    Do only one scanning operation or combine multiple scanning operations into a single operation."
    What is the problem? How can I combine these multiple scanning operations? What can I do to read all channels at the same time?
    Thanks.

    Hello pablomendana,
    it's ok that you got an error when trying to use more than one device on the same task. According to the setup you have, I agree that 3 tasks should be put in place.
    The key question I have is... Have you configured manually at MAX the SG and accel. modules to be in Parallel mode?
    I would not expect the error you get if they are in parallel mode (in which you could even read directly from the DAQ board, using DAQ device channels instead of SCXI channels).
    Unfortunately, I haven't been able to setup a system similar to yours, but I would like to know more details on what you've tried so far.
    Also, I recommend you that if still need help on setting up the system, use NI's SSP program to get support from your local NI Application Engineering organization, as this will be faster than the forum.
    Regards,
    Jorge M.

  • How can I read weight from scale

    Hi,
      I want to setup SAP so that HUPAST transaction can read the weight from the scale. I could see that it looks for an RFC destination and scale name etc. But didnt succeed in creating the RFC destination
    Please let me know if a third party software is a MUST or SAP has an inbuilt software for reading scales, if so how can we configure it. We are on ECC 5.0
    Thanks for reading.

    After a few more experiments, you can get correct values from the 'bounds'-descriptor.
    function getTextExtents(text_item) {
      app.activeDocument.activeLayer = text_item.parent
      var ref = new ActionReference()
      ref.putEnumerated( charIDToTypeID("Lyr "), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") )
      var desc = executeActionGet(ref).getObjectValue(stringIDToTypeID('textKey'))
      var bounds = desc.getObjectValue(stringIDToTypeID('bounds'))
      var width = bounds.getUnitDoubleValue (stringIDToTypeID('right'))
      var height = bounds.getUnitDoubleValue (stringIDToTypeID('bottom'))
      var x_scale = 1
      var y_scale = 1
      if (desc.hasKey(stringIDToTypeID('transform'))) { 
      var transform = desc.getObjectValue(stringIDToTypeID('transform'))
      x_scale = transform.getUnitDoubleValue (stringIDToTypeID('xx'))
      y_scale = transform.getUnitDoubleValue (stringIDToTypeID('yy'))
      return { x:Math.round(text_item.position[0]), y:Math.round(text_item.position[1]) , width:Math.round(width*x_scale), height:Math.round(height*y_scale) }
    I tested that this returns correct values both when image and text box get scaled. There is some strange Photoshop behaviour to note though:
    bounds.left seems to be always 0 like one could assume
    bounds.top on the other had is most times -1-3px. This probably corresponds to the amount the actual text rises above the text box. I feel it's a bug, i.e. it should be part of content bounding box, not the text area. But maybe it's like it was specced and I'm just interpreting it wrong.
    x_scale and y_scale seem to be always equal. For example if you create a 100x100px text box and scale it to 200px horizontally, both x_scale and y_scale will be 2 and text_item.height will be 50.

  • Without loops how can i read data from associative Array??

    Hi all,
    I am facing scenario like...
    i need to read data from associative array  without using loops is it possible,
    CREATE OR REPLACE PACKAGE BODY test_pkg IS
        TYPE t1 IS TABLE OF NUMBER INDEX BY BINARY_INTEGER;
       -- in array we can expect more than one row or sometimes no data also.
      FUNCTION test1(vt1 T1 DEFAULT CAST(NULL AS t1)) RETURN NUMBER IS
      BEGIN
        -- basically in array we'll get data of column2
        -- this loop should satisfies table1.colum2 = nvl(NULL, table2.colum2 )if array is null.
        -- if array is not null then only compare with array values
        FOR i IN (SELECT t1.colum1,t1.column2
                         FROM table1 t1, table1 t2
                              WHERE t1.colum1 = t2.column1
                                AND t1.colum2 = nvl(vt1, t2.colum2)
          LOOP
            generateTEXT(i.colum1, i.colum2);
         END LOOP;
      END test1;
    END test_pkg;
    in table1 we have date like...
    colum1          column2
    Jan                  1
    Feb                  2
    Mar                  3
    if i call select test_pkg.test1(1) from dual then output should
    be Jan..
    and
    select test_pkg.test1(null) from dual then it should display all elements from table1.
    Jan                  1
    Feb                  2
    Mar                  3,
    Thanks for your quick replay..

    i need to read data from associative array  without using loops is it possible,
    No - you would need to create a SQL type and then use the TABLE operator to unnest the collection.
    create or replace TYPE my_nums IS TABLE OF INTEGER;
    DECLARE
    --  TYPE my_nums IS TABLE OF PLS_INTEGER INDEX BY PLS_INTEGER;
      v_nums my_nums := my_nums(1, 2, 3);
      v_total number;
    BEGIN
      select sum(column_value) into v_total from table(v_nums);
      DBMS_OUTPUT.PUT_LINE
        ('Sum of the numbers is ' || TO_CHAR(v_total));
    END;
    Sum of the numbers is 6

  • How Can i Read data From Maintainance View

    I Want read data from Maintainance View. i written select query
    SELECT *
    FROM J_1yyyyV
    INTO TABLE GT_BUSPLACE.
    WHERE BUPLA = LV_BUPLA.
    this is giving following error
    "J_1yyyyV" is not defined in the ABAP Dictionary as a table,
    projection view, or database view.
    Can you help me Please.
    Thanks in Advance.
    Regards,
    Raj.

    Hi raj,
    maintainance view is a nothing but combinations of table using join on some fields..
    see the relation ship between the joins..
    if you want to write selection query ..go to se11 -->enter view name >and open tab>
                    Table/Join  conditions--> see the table's involved and join conditons between tables.
    and write the select query same as like the Table/Join  conditions in se11..now you can acheive the
    table maintainance fields..
    Prabhudas

  • How can I play songs from a specific genre in album order? (soundtracks) I just upgraded from and Ipod nano 5th generations and would like to be able to listen to my soundtracks without having to choose a different album all the time.

    Question says it all!

    You really can't. However, you can create a new playlist and add whole albums at a time to it and then when you play it back, be sure that the shuffle is not enabled and then you can hear whole albums from a certain genre in album order

  • How to restore an iPhone from a specific folder that iTunes doesen't recognize as a backup but in fact it is a backup?

    Hi, I have an iphone 5 on wich I made factory reset. When I wanted to restore yesterday a backup from iTunes (22.5.2013.) in the middle of restoring there was an error saying that there is not any more space on the computer. After that I can't restore it any more with this backup - the last backup that is available is the one made couple of hours ago. BUT I searched for this backup in the App Files of my WinXP and found that backup folder with many files in there but I don't know how to make my iTunes to restore an iPhone with this specific folder - it seems that iTunes doesen't recognize this folder as a backup but in fact that is a backup.
    Thanks for help.
    Regards, Borna

    Hello olip0101,
    From the following article:
    iOS: Back up and restore your iOS device with iCloud or iTunes
    Restore from a backup
    If you have a new iOS device, or if you need to restore your device to resolve an issue, follow these steps:
    Connect your iOS device to the computer that has your backup.
    Make sure this computer has the latest version of iTunes.
    Choose File > Devices > Restore from Back up.
    If you're using iTunes 10.7 or earlier, right-click the device from the list and choose Restore from Backup.
    Regards,
    Jeff D. 

  • How can I move mail from the offline folder inbox to a local folder?

    I have an IMAP account and my provider lost all but the last week of my emails. I still have them in the offline folder in Thunderbird so as long as I stay offline I can see the emails but I want to move them to local folders so I can go back online and sync the account without losing them all. How can I do this?

    Ah! You are BRILLIANT!! Thank you so very very very much. Your solution worked PERFECTLY! I now have all the messages I had lost aside from the past two months as the only computer I still had the offline messages was two month out of date BUT losing two months is far better than losing 5 years. You are my new personal HERO! Honestly, I can't thank you enough. This was nightmare and you solved it simply, beautifully, and completely.

Maybe you are looking for