PLSQL - how cani get  folders names that much my select queries in plsql

Hello.
Please can somebody help me.
i am writing a procedure that access data from some tables. when i get data in any field lets say select Name From Users e.i Name.
i want to use the value in that field to search for a folder some where in my drive C; that bears the same name in the folders.
eg.
if data found and exist in Table.Name.
search for folder using PLSQL in the directories that has the same name as the value in Table.Name.
just like searching for pictures using the picture id in tables and looking for them in some folders. how can i do this is PLSQL.
thank you
Edited by: user7634976 on Jun 9, 2009 10:43 AM

OK. So just to be crystal clear, when you say "same server," you mean that the database server is also the server where all these directories have been created. Is that correct?
Do you have Oracle directory objects (i.e. CREATE DIRECTORY) that reference the directories you are trying to use?
i have already created a directory that write logs to a particular folder anytime i move data.You have created an operating system directory? An Oracle directory object? Both? Neither?
A directory does not write logs. So I'm guessing that you mean that you have code that writes data to a file via UTL_FILE using an Oracle directory object mapped to an operating system directory as a result of calling a stored procedure. Is that the case? If you already understand how UTL_FILE works, how to create and manage Oracle directories, how to read and write data from files, can you be a bit more specific about the particular problems you are having copying files from one directory to another?
using that same directory i have the images there and i want to move them to another directory an rename the copied folder with its content in another folder by running a procedureI'm not sure I follow.
i have the images thereYou want to use the same Oracle directory object that you are using for writing the logs as the source for the image files you want to copy?
i want to move them to another directoryYou want to move them to another Oracle directory object? Have you created the destination directory object?
rename the copied folder with its content in another folderI'm afraid that makes no sense to me. Can you try explaining it again?
Justin

Similar Messages

  • 9I: How can get the names of all objects in a package header? [RESOLVED]

    Is there a way to get the names fo all objects (function, procedures) from package header
    select * from user_objects only gives the the header name, I need the object in the header.
    John
    Message was edited by:
    johnminkjan

    Here is an example with dbms_output package!
    SQL> select owner, object_name,procedure_name from all_procedures
      2  where  object_name='DBMS_OUTPUT';
    OWNER                          OBJECT_NAME                    PROCEDURE_NAME
    SYS                            DBMS_OUTPUT                    GET_LINES
    SYS                            DBMS_OUTPUT                    GET_LINE
    SYS                            DBMS_OUTPUT                    NEW_LINE
    SYS                            DBMS_OUTPUT                    PUT_LINE
    SYS                            DBMS_OUTPUT                    PUT_LINE
    SYS                            DBMS_OUTPUT                    PUT
    SYS                            DBMS_OUTPUT                    PUT
    SYS                            DBMS_OUTPUT                    DISABLE
    SYS                            DBMS_OUTPUT                    ENABLE
    9 rows selected.
    "or"
    SQL> desc dbms_output

  • How can they take up that much space!?

    I have around 600 photos/videos on my iPhone 4S, and they take up 6,4 GB!?
    I do not understand how this is possible, as my friends all have over a 1000 photos,
    and they take up much less space. Is there any way I can fix it?

    Thank you Cor-el for responding to my question.
    While i could open the link in the right pane of the Bookmarks Manager, it did not allow me to change any of the text ... usually one would highlight the text and after a moment or two, the text would change into the edit mode allowing it to be modified. This was not true for the bookmark texts.
    I am still trying to learn how to change the Bookmark text. All help appreciated.

  • I just got a new Mac Airbook with MAC OS 10.6.8 and now every time I load Firefox, it tells me it was downloaded from the internet and am I sure I want to open it. How can get rid of that message?

    I know this is a standard MAC message but I never got it with Firefox before changing computers. I also downloaded Firefox 5.0 and it is still doing it.

    Thanks, Jim, for taking the time, but the reply is unfortunately vague in the exact area of my confusion!  "you need to copy that file to your new computer..."  Well, the Import/Export instructions make it seem as if the two computers should be able to communicate this file thru wifi, but that's the linkage I can't seem tocreate with Import/Export.  Should I instead email a copy to myself (thats what applecare suggested)?  Copy it to and from a thumb drive?  But then place the file where?  And the article was helpful, but should I be trying to move the Library file or the Library.xml file (as iTunes Help suggests)?  Sorry to be so clueless about it...I suppose I buy Apple in the hopes of not having to think about this stuff, which approach seems not to be serving me well. Thanks again for your time!

  • How can I turn off that everything I select gets copied to clipboard?

    It's really annoying when I have something copied and before I could paste it where I want it I accidentally select a letter or something and than that's on clipboard without me selecting 'copy'
    == I don't know but by now it seriously irritates me

    See http://kb.mozillazine.org/clipboard.autocopy

  • How to get PDF file that has been transformed into docx into my filing system so I can work on it???

    How can I get the PDF file that was transformed into a docx file into my filing system to be able to work on it and translate it as the customer requested?

    THanks for your reply.
    Well what happens is I bought the program. It gives you a button to click,
    you log in and then a box opens up asking you to select the file, I go into
    my filing system (in Windows explorer) select the file, and the program
    converts it into docx, my choice.  I can read it there and when I try to
    copy and paste it into my file where the PDF version is saved, it behaves
    like an "image", and I can't save it.... or it saves likes something you
    save on the internet, so you have to go into internet every time you want
    to see it.    I have also pressed any amount of buttons to see if it will
    give me the option to save it any other way, and have found nothing.  What
    I would need is a file in docx.format that I can edit.  People send me
    things in PDF and sometimes I can just copy it off the PDF file and save it
    in WOrd, then I can translate it for them. But sometimes the PDF file
    doesnt allow me to copy the text.  If it is in image form, I cannot work on
    it.  It means printing it, so I can copy type it into Word... and for that
    I certainly wouldnt need to buy a program.  Its just double the work and
    ends up that the job takes twice as long.!
    Sorry  if I am a bit dumb with informatics.  But I simply could not find
    any way whatever to  copy the PDF file that was transformed into Word, in a
    format that would enable me to edit it.
    Kindest regards,
    Margery
    2013/12/2 Test Screen Name <[email protected]>
        Re: How to get PDF file that has been transformed into docx into my
    filing system so I can work on it???
    created by Test Screen Name<http://forums.adobe.com/people/TestScreenName>in *Adobe
    ExportPDF* - View the full discussion<http://forums.adobe.com/message/5890871#5890871

  • I purchased three albums last week and only two of them were charged.   How can I make sure that the third album gets charged in a timely fashion?

    I purchased three albums last week and only two of them were charged.   How can I make sure that the third album gets charged in a timely fashion?

    Well, thanks for feeling with me, patkosanke ... AND for your wise advice.
    I did followed your advice immediately and erased all the service number as well as S/Ns.
    Can you, however, give me any "direct number" through which I can get hold of someone and request for what you're suggesting?
    I believe I had talked with the person by the name of "Charlie" (I think... I hope I'm correct...) when I was having the same problem with the last device. He was very kind and helpful, though I ended up getting the device that brought the same problem.
    Charlie told me that if I had any more problems I should call him. But I forgot to take down his direct number.
    Or maybe I should call the main office and ask for him. But my memory is questionable as to his name, and besides I don't even know his last name either. There could be more than one "Charlies" in Palm.
    So, if you could somehow email me some direct number (other than the one that keeps on hooking me up with those people in the overseas who are answering the phone only to sympathize with & apologize to me but can only issue a false hope with the SRO#. More than once I was given the promise that the supervisor would call me back within an hour or two but I ended up calling back after I had been left hanging in the air all night long.) where I can talk to someone like I did with Charlie last time who can truly carry out the promise, I would truly appreciate it, patkosanke. ^^
    Thanks
    jcinlovewpalmTX
    Post relates to: Palm TX
    Post relates to: Palm TX
    Message Edited by jcinlovewpalmTX on 03-05-2009 06:36 PM
    Message Edited by jcinlovewpalmTX on 03-05-2009 06:36 PM

  • Can someone tell me how to get my apps that are on my ipad to appear on my TV using Apple Tv

    Can someone tell me how to get my apps that are on my IPad to be viewed on my Apple TV?

    Welcome to the Apple Community Coachcad.
    Basic AirPlay: Assuming both devices are on the same network and that AirPlay is not turned off on the Apple TV, then simply tap on the screen when you are watching content you wish to stream to your Apple TV, then tap the airplay icon that appears in the control bar, choose the Apple TV from the menu that appears.
    Mirroring: When displaying the content you wish to mirror on the iPad 2 (or better), iPad Mini, iPhone 4S (or better), swipe from the bottom of the screen, tap the AirPlay icon and choose your Apple TV from the list of devices (iOS 7 or better) or double tap the home button (quickly) and swipe the bottom row of apps to the right to reveal the playback controls, tap the AirPlay icon and select your Apple TV from the list of available devices (pre-iOS7)

  • How can get the console window name of the current form?

    How can get the console window name of the current form?

    Try the various get methods of the viewObject such as getQuery:
    http://www.oracle.com/webapps/online-help/jdeveloper/10.1.2/state/content/navId.4/navSetId._/vtAnchor.getQuery%28%29/vtTopicFile.bc4jjavadoc%7Crt%7Coracle%7Cjbo%7CViewObject%7Ehtml/

  • I'm trying to purchase Guy Sebastian's (Australia) albums, but I keep getting a link "view in iTunes" which doesn't respond.  How can I purchase music that's a few years old?

    I'm trying to purchase Guy Sebastian's (Australia) albums:
    "Beautiful Life"
    "Closer To The Sun"
    "Just As I Am"
    "Twenty Ten"
    , but I keep getting a link "view in iTunes" which doesn't respond so I can purchase the items thru iTunes.
      How can I purchase music that's a few years old?

    Guy's older albums have been on other countries' Itunes in the past.  I don't know why they come and go.  Guy keeps promising to spend more time overseas, releasing and promoting his music.  I'm sure they'll all become available again then.  You could import CDs, of course, but that becomes expensive.  Online, Sanity and JBHiFi in Australia will mail overseas.

  • How can I create symlinks, that it can see users over FTP-.

    Hi,
    I have started FTP on my Mac OS X 10.8 Server. And I need now in the FTP folder to add (link) some other directories, that I need, that the people can reach.
    I try it via symlink, but the FTP doesn't see it. I can see it only over sFTP, but when I try to go to this directory, I have only errors "Can't access it". I try to set permissions too, but nothings helped.
    Please can anybody help me and tell me, how can I add links, that it's seen and accessible over FTP.
    Thanks.

    Better?  Safer?  Sure.  Don't use ftp.  Intercepting ftp traffic is trivial, which means you're basically posting your login credentials.  Who knows what will then gets transferred to the ftp server.
    In general, you're looking for the classic use of a dropbox; a classic lowercase-d dropbox, and not the cloud-based file-sharing service now known by that name.
    For folks that need access to specific folders, I'd set up a login that only has access to the target folder(s), and would then set up the dropbox folder to allow only write-only access for that login, and probably then with a folder action or a local service or a cron or launchd job that moves the arriving files somewhere else.
    Note that this appears more complex than you're probably considering with ftp not because of the use of sftp, but because allowing even remote ftp users read access into the dropbox cab lead to the same problems — exposed credentials meanthat  the other contents of the dropbox are exposed, and remote users can load all sorts of stuff into the dropbox.
    Here's a Google version of the dropbox and a Superuser discussion.  I don't know of a pre-packaged packaged ftp or sftp server or an available set-up script that provides the dropbox features off-hand, but I'd look for third-party clients such as Rumpus, and see if one of those has that feature.

  • I redirected iTunes to an external drive and moved my iTunes library and folder, but my hard drive is still low on space.  How can I be sure that my music is all on the external HD ONLY, especially with the new iCloud technology?

    I redirected iTunes to an external drive and moved my iTunes library and folder, but my hard drive is still low on space.  How can I be sure that my music is all on the external HD ONLY, especially with the new iCloud technology?  It doesn't look like I created any more space by doing this, AND I totally lost all my iTunes playlists.  I'm not sure if because I added old library materials manually if this messed up my playlists, or if the new location is just not reading my moved library.  In any case, I followed step by step instructions and found a few holes and thought I'd just "figure it out" but I guess I'm not as smart as I thought since I'm still scratching my head many hours later.
    Thanks for any support ;-)
    Eaglerocker

    Quick answer if you use iTunes' default preferences settings:  Copy the entire iTunes folder (and in doing so all its subfolders and files) intact to the other drive.  Open iTunes and immediately hold down the option (alt) key (shift on Windows) so you get a prompt to select a library, then guide it to the 'iTunes Library.itl' file in the moved iTunes folder.
    If this is to a new computer and you put the copied iTunes folder in the default location of Macintosh HD > Users > *User Name* > Music  then you don't even need to start with the option key held down, iTunes will automatically look for it there.  (Make sure there isn't anything already in the iTunes folder there that you want to keep since you will be replacing it with the one you are moving.)
    iTunes: How to move [or copy] your music [library] to a new computer [or another drive] - http://support.apple.com/kb/HT4527 - a somewhat bewildering and not always easily understandable set of options.

  • How can I access files that I moved from an older MacBook Pro to a newer one via Firewire and Migration assistant.  The files show up on the new MacBook but cannot be opened.  Thanks!

    How can I access files that I moved from an older MacBook Pro to a newer one via Firewire and Migration assistant?  The files show up on the new MacBook but cannot be opened.  Thanks!

    Get info then check permissions then add your curent user name (it was probably different on old Mac) and give your username full read/write permissions.

  • How can I convince iTunes that this is the same machine to avoid installing all my iPod Touch Apps?

    I've had to rebuild my hard drive and reinstall all the software. What a pain.Now iTunes wants to tell me that I am re-syncing from a new machine and wants to reinstall all of my Apps. It is the same machine, and all the Apps show up in iTunes that are on my iPod Touch. I do not want to have to reinstall all of the iPod Apps and try to restore all of their data. How can I convince iTunes that this is NOT a different machine?

    If you are using iTunes version 7 or later, then you can transfer purchased iTunes store music from the iPod to an authorized computer by using the "file/transfer purchases from iPod" menu. Note that the maximum of 5 authorized computers applies here.
    For all other non purchased music (your own CDs etc) try this method which works on some Windows PCs.
    Enable your iPod for disk use.
    See: iPod Disk Use.
    Open iTunes and select edit/preferences/advanced/general. Put a check mark in the box marked "copy files to iTunes music folder when adding to library" and also "keep iTunes music folder organized", then click 'ok'.
    Connect the iPod whilst holding down the shift/ctrl keys to prevent any auto sync, and if you see the dialogue window asking if you want to sync to this itunes library, click 'no'.
    Then go to file/add folder, open 'my computer', select your iPod and click 'ok'.
    The music files should transfer to your iTunes.
    If this doesn't work (and it may not because officially it's not supposed to), check out the instructions/suggestions here.
    Music from iPod to computer (using option 2). This a manual method using "hidden folders" and although it works, it can be messy.
    Much easier ways are to use one of the many 3rd party programs that copy music from the iPod to the computer.
    One of the most recommended is Yamipod. This is a free program that transfers music from iPod back to the computer. However, it does not transfer playcounts/ratings etc.
    Another free program is Pod Player.

  • How to get a field that using variable in order to create a query

    Hi,
    I found a difficulty when creating a query. so, I would like to ask you some question.
    1. How to get a field that using variable which that field I want to put it in my query?
    For example, I would like to take quantity field in inventory audit report. And when I put my cursor in
    quantity field, there was only variable, item, etc. How to get this and put it in query?
    2. How to combined the invoice quantity with inventory audit report quantity?
    3. I have a query like this:
    SELECT distinct T0.[DocDate] as 'Tanggal', T0.[DocNum] as 'No.Faktur', T1.[ItemCode] as 'Kode Barang',
    T1.[Dscription] as 'Deskripsi', T1.[Quantity] as 'Quantity', ((T1.[LineTotal])/(T1.[Quantity])) as 'Harga
    Satuan', T1.[LineTotal] as 'Harga Total', T3.[CalcPrice] as 'HPP Satuan', ((T3.[CalcPrice]) * (T1.
    [Quantity])) as 'HPP Total', T4.[ItmsGrpNam] as 'Jenis Barang', T5.[SlpName] as 'Nama Sales', T1.
    [WhsCode] as 'Kode Gudang' FROM [dbo].[OINV] T0 INNER JOIN [dbo].[INV1] T1 ON T0.DocEntry =
    T1.DocEntry INNER JOIN OITM T2 ON T1.ItemCode = T2.ItemCode INNER JOIN OINM T3 ON T2.ItemCode
    = T3.ItemCode INNER JOIN OITB T4 ON T2.ItmsGrpCod = T4.ItmsGrpCod INNER JOIN OSLP T5 ON
    T0.SlpCode = T5.SlpCode WHERE T3.[TransType] = '13' and T3.[CreatedBy] = T1.[DocEntry] and T0.
    [DocDate] >=[%0] and T0.[DocDate] <=[%1] and T4.[ItmsGrpNam] =[%2] and T1.[WhsCode] =[%3]
    Is it possible if I just take one invoice with invoice quantity and only show up at once although I have a
    lot item cost for that item? (because I'm using FIFOmethod).
    Please help me.. cause I'm stuck with this thing :l.
    Thank you very much, and I'm waiting your respon soon.
    Regards,
    Sisca

    Try this one:
    SELECT distinct T0.DocDate as 'Tanggal', T0.DocNum as 'No.Faktur', T1.ItemCode as 'Kode Barang',
    T1.Dscription as 'Deskripsi', T1.Quantity as 'Quantity', ((T1.LineTotal)/(T1.Quantity)) as 'Harga
    Satuan', T1.LineTotal as 'Harga Total', T3.CalcPrice as 'HPP Satuan', ((T3.CalcPrice) * (T1.
    Quantity)) as 'HPP Total', T4.ItmsGrpNam as 'Jenis Barang', T5.SlpName as 'Nama Sales', T1.
    WhsCode as 'Kode Gudang'
    FROM dbo.OINV T0 INNER JOIN dbo.INV1 T1 ON T0.DocEntry =T1.DocEntry
    INNER JOIN OITM T2 ON T1.ItemCode = T2.ItemCode
    INNER JOIN OINM T3 ON T2.ItemCode = T3.ItemCode AND T3.TransType = '13' and T3.CreatedBy = T1.DocEntry AND T3.Warehouse = T1.WhsCode
    INNER JOIN OITB T4 ON T2.ItmsGrpCod = T4.ItmsGrpCod
    INNER JOIN OSLP T5 ON T0.SlpCode = T5.SlpCode
    WHERE T0.DocDate >=[%0\] and T0.DocDate <=[%1\] and T4.ItmsGrpNam =[%2\] and T1.WhsCode =[%3\]
    Thanks,
    Gordon

Maybe you are looking for

  • Shipping cost determination is incomplete

    HI to all I am an SD consultant, I am facing the following issue, I request you give some suggestion for solving the issue ISSUE: When I am creating billing document (delivery related) using VF01 - I am getting the ERROR: 0000500095 000010 Shipment 0

  • Safari Crash when opening PDF's

    Safari will intermittently quit when opeing adobe PDF documents from the web. Crash log is below. Any help woud be appreciated. Process: Safari [8690] Path: /Applications/Safari.app/Contents/MacOS/Safari Identifier: com.apple.Safari Version: 4.0.3 (5

  • SAP Sourcing 7.0 upgrade

    Hi, We are planning to upgrade SAP E-Sourcing 5.1 to SAP Sourcing 7.0 Kindly let me know if any one you have completed the upgrade process and pls share your experience and challenges you faced during the upgrade. Came to know that SAP Sourcing 9.0 o

  • Is it prossible to private message a member of this forum?

    I am looking for help in designing a web site and wanted to private message a poster on this forum, but cannot figure out how. Is it prossible to private message a member of this forum?

  • Shared Services drops provisioning on an ID??

    Hi, I have an issue on Shared Services 11.1.1.2. About a month ago one of our users got married and subsequently had a name change in LDAP, but kept the same SAMAccountName ID - Ixxxxxxx Issue: Every few days Shared Services removes elements of her p