Reading files from hard disk

hi,
i have a following scenario
I have list of files in a directory. i want to read all those file names and put in a table.
eg. e:\backup\1.sql
e:\backup\2.sql
e:\backup is the directory containing files 1.sql 2.sql etc. I want to get the file names and store those names in a oracle table
any suggestions
thanks
kedar

I believe you would need to write a Java stored procedure that would use the Java Directory object to iterate over the files in a directory for this sort of thing.
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC

Similar Messages

  • Copy a file from hard disk to a jar

    Is there any way to copy a file from hard disk to a jar file?

    hajani wrote:
    No, I want to copy a file into an other jar file (like a zip or a rar file)
    Edited by: hajani on Dec 7, 2008 4:11 AMIf you really do mean 'jar' file an not 'zip' or 'rar' then you can use class java.util.jar.JarFile and write your own code. If you don't feel like writing a load of code then and you can guarantee that the 'jar' executable is going to be available then you could use Runtime.exec() or it's cousin ProcessBuilder. If you mean a 'zip' file then you could use class java.util.zip.ZipFile and write a load of code. If you mean a 'rar' file then you will either have to find a 'rar' class library or again use Runtime.exec().

  • How to recovery the deleted files from hard disk like images,media files

    How to recovery the deleted files from hard disk like images, media files by using c#.net

    It's important to define deleted and recovery. You can recover file from the recycle bin using the Win API. Here's an
    example in C/C++. You need to
    pinvoke SHFileOperation.

  • Cannot delete files from hard disk (after deleting from playlists)!

    all of a sudden itunes stopped allowing me to automatically delete (with the warning) a downloaded podcast so I would have to go to the hard disk manually to delte the posdcast.
    How do I get the system back to what it was where I delete a podcast and then get the warning and say ok to delete from hard disk?
    TIA!

    Hi Chris:
    2 part response:
    I founf the problem--somehow my itunes folder was moved to a different part of my hard drive--once I moved it back I can delete.
    I can delete as follows: when I right click and click on delete, I first delete the file from itunes library--then I get prompted if I want to delete from my hard disk by sending file to recycle bin--There is also a prompt if I do not want to see the warning--which I have on as a safety precaution. So I bet the default could remove from playlist and send file to recycle bin in one move.

  • Delete file from hard disk etc.?

    Can iTunes do the following, and how?
    1. When I ask a file to be deleted from the Library, is there some way of asking for the file to be deleted from the hard disk itself?
    2. If the location of the file has changed, can iTunes update its library and delete the unfound files from its list?

    Boot the computer in Windows Safe mode with network support (press F8 on the boot screen) as a test to see if that helps.
    *http://www.bleepingcomputer.com/tutorials/how-to-start-windows-in-safe-mode/

  • How to recover Deleted file from HARD DISK

    By mistake my entire AVCHD file of 90 Mts  duration was deleted from my Hard Disk, this  I realised after a week., in the meantime I have not added or deleted any file from this hard Disk. I had given my this hard disk to my service engineer to recover the video., he has tried and recover some 40 mb file., but I cant open this recovered video file in Premiere or any other video convertor programme., also I cant get any information about Video.
    Can anybody in the forum help me and suggest how to recover my deleted Video from the Hard disk

    Hi, hard disk data loss is actually a hard task for many users 'cause most of them think this kind of problems is a complicated situation. Here are some tips you need to know after data loss happened.
    1. If you meet the file loss situation, keep calm and stop using your computer to do any read or write operation until you find the way to recover the lost files because any wrong operation.
    2. If you've lost a file, time is of the essence. As new files saved to Mac hard drive or storage devices, the original files gets overwritten. So do not use the drive or disk which your deleted files are stored before at all, until you have completed the scanning and recovery process.
    3. The system crashed or the files loss situation happens occasionally, so remember build a backup for the files periodically is strongly needed.
    4. If you meet the file loss situation again, stop using the Mac or storage device right now, use another computer to process the files recovery.
    5. Remember this, no matter at the normal time or after files recovery, build a backup for the files periodically is the best method to protect your files from data loss situation.
    This post offers you more tips you may need: http://www.uflysoft.com/data-recovery-mac/mac-files-recovery.html

  • I want my AVI files from Hard disk for FMLE

    Is it possible to get AVI files from my Hard disk for FMLE if yes How..?
    Thanks in advance

    Not sure what you mean but if you want to use FMLE to stream video from your harddrive I think you also need Camtwist or Wirecast for that. I use Camtwist and FMLE for that. If you for example stream to Justin.tv remember to mute the sound on your channel there or you get a strange loop. It´s kind of tricky to set up a good stereosound for broadcasting and I use two soundcards and a small cheap Behringer mixer for that.
    I think it´s possible to play them back from another computer too if the videocard on that computer have some sort of video out port you can hook up to your capture card on your broadcasting computer. You ´d need a capturecard that FMLE recognizes.
    You can also just burn a DVD and play it back from an ordinary external DVD player that you hook up to your capturecard. Even works with a VCR if you have one and can get the files over to tape. But as I said you need a good capturecard that FMLE recognizes.

  • Read file from local disk (little bit urgent, thanks)

    Hi all. We're facing a problem using a signed applet. We think it's a matter of versions of the java plugin. The fact is that with version 1.4.0 there's no problem on reading a local file from the applet. Not the same can be said when using version 1.4.2_0X. In fact the applet crashes throwing the following exception:
    java.security.AccessControlException: access denied (java.io.FilePermission C:\Documents and Settings\rgallart\Mis documentos\aaa.rtf read)
         at java.security.AccessControlContext.checkPermission(Unknown Source)
         at java.security.AccessController.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkRead(Unknown Source)
         at java.io.FileInputStream.<init>(Unknown Source)
         at appletupload.AppletUpload.fitxerOk(AppletUpload.java:265)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at sun.plugin.com.MethodDispatcher.invoke(Unknown Source)
         at sun.plugin.com.DispatchImpl.invokeImpl(Unknown Source)
         at sun.plugin.com.DispatchImpl$2.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.plugin.com.DispatchImpl.invoke(Unknown Source)
    java.lang.Exception: java.security.AccessControlException: access denied (java.io.FilePermission C:\Documents and Settings\rgallart\Mis documentos\aaa.rtf read)
         at sun.plugin.com.DispatchImpl.invokeImpl(Unknown Source)
         at sun.plugin.com.DispatchImpl$2.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.plugin.com.DispatchImpl.invoke(Unknown Source)There was no need to configure any policy file in the local system with version 1.4.0 and also writing a file to disk works fine. Is it necessary to do so on higher versions?
    Any help would be appreciated.
    Thanks for your time.

    Hola Ramon!
    java.security.AccessControlException: access denied
    (java.io.FilePermission C:\Documents and Settings\rgallart\Mis documentos\aaa.rtf read)I don't know much about signed applets, but I've seen this exception very
    recently with my own work with unsigned applets.
    If you put this in your policy file, all access problems should go away, whether your
    applet is signed or unsigned. But this would apply to any applet that uses the
    same policy file.
    grant {
    permission java.security.AllPermission;
    If you want something less radical and more sophisticated, check out the syntax here: http://java.sun.com/j2se/1.3/docs/guide/security/PolicyFiles.html
    Another way round the access problem is to locate the file to be accessed on the same
    host as your applet, and open it as an url resource. This works with an unsigned applet
    with default security, so it whould work with a signed applet too. (In my so called logic at least :)
    I can post a code example of this here if you want one.
    There was no need to configure any policy file in the
    local system with version 1.4.0 and also writing a
    file to disk works fine. Is it necessary to do so on
    higher versions?Honestly, I don't know. But it looks that way, doesn't it?
    Matilda

  • HT1338 How do i delate files from hard disk

    I don't know hat is happning, everytime i open programme iMovie it pups up my hard drive is full. But don't know how am i gonna delate. I delate everything that shows up on my destop folders. I delate almost everything that i copied from another devices.

    See Where did my Disk Space go?

  • How to open a html file from hard disk

    Hello everyone,
    i want to display a html file by using java applet.
    This is my current coding:
    package mkbe.pg;
    import java.net.*;
    import java.applet.*;
    public class HtmlReader extends Applet 
    URL userUrl;
    public void start()
    try{
    userUrl = new URL(getDocumentBase(),"FILE:///c://2007/index.htm");
    }catch(MalformedURLException error){
    System.out.println("Error");
    getAppletContext().showDocument(userUrl,"_blank");
    }the program have no error and warning and the applet did run by appletviewer but the html file did'nt open.
    Is it there's mistake in my coding?
    If there is please tell me how to repair it.
    Thanks

    For an applet to read from a client's harddrive it will need permission.
    This can be done by putting the applet in a jar file and signing it,
    or by using the poiclytool to change the java.policy file to give FilePermission.

  • Recover file from hard disk

    I tried to download files to an application-garage band specifically-and I got the msg. 'Installer in trash'. It must have been done by accident, but is there a way to recover it? I'm guessing it might still be on the hard drive...

    Double-click the Trash icon and drag the needed file out of it.

  • Upload file from hard disk button does not work

    I have run in safe mode, reset Firefox, upgraded all Adobe software, etc.

    Boot the computer in Windows Safe mode with network support (press F8 on the boot screen) as a test to see if that helps.
    *http://www.bleepingcomputer.com/tutorials/how-to-start-windows-in-safe-mode/

  • Noise from hard disk

    Hi, everyone.
    I bought a new mackbook pro in this Jan. Recently, I hear some not continuously noise from hard disk, especially when i open a file in hard disk or verify the hard disk. Is something wrong with my hard disk?
    Thanks

    This hard disk clicking is a know problem for many laptops. If you search it on Google, you will find a lot of discussions about it in the Unbuntu Linux forums. In most cases, it is due to the Advanced Power Management (APM) feature of notebook hard drives. The default APM settings of these drives are aggressive so as to extend notebook battery life. As a consequence, the HD tries to park its actuator head to the ramp whenever it judges the system as idle. However, OS X or some third-party applications may access the hard disk quite often, resulting in a park/unpark cycle every few seconds.
    Every of these cycles is counted as one load/unload cycle. Most notebook drives support up to 600,000 load/unload cycles. If a hard drive parks its head every few seconds, it may shorten its life by "using up" the cycles more quickly.
    I had the same problem on my Powerbook with a Hitachi Travelstar 5K160 80GB PATA drive. I heard the frequent clicking sound right after I installed it into the laptop. The SMART status appeared to be Verified, and there was no problem with the drive itself. After searching on Google and Hitachi web site, I found the causes and solved the problem using the Hitachi Feature Tool. For other HD brands, I have no experience at all.
    Basically, Travelstar 5K160 drives have three idle modes, from which a user can set one as the deepest idle state:
    1) Active Idle: the actuator head is parked near the center of the disk, and power usage is 45-55% less than performance level. Recovery time to active mode is about 20ms.
    2) Low Power Idle: this is usually the factory default idle mode. The head is UNLOADED to the ramp and the power consumption is 60-65% less than the performance level. Recovery time is about 300ms.
    3) Low RPM idle: in this idle mode, the hard disk will spin down to a lower RPM speed. More power is saved but recovery time is much longer. (I can hear the disk spin down and spin up again a few times per minute. There is also a lag in system reaction time.)
    To get rid of the hard disk clicking, you need to set Active Idle as the deepest APM idle mode. To do it on a Hitachi hard disk, you need Hitachi Feature Tool, and a Windows laptop with the same HD interface as your drive (PATA or SATA). Sadly, the feature tool is only for Windows and Linux.
    You can download Hitachi Feature Tool 2.10 as an ISO image here: http://www.hitachigst.com/hdd/support/download.htm#FeatureTool and burn it into a bootable CD. The userguide of the tool is available on the same page.
    Then, take out your hard drive from your Macbook and install it into a Windows laptop. Boot the machine using the Feature Tool bootable CD. Choose "Change Advanced Power Mode" from the drop-down menu.
    The default value is 128 (Low Power Idle). Just increase the value toward Performance, until you see the APM mode over the value bar becomes Active Idle (starting from 192). Click OK and Exit the feature tool. Switch off the Windows laptop and take out the hard disk. Install it into your Macbook. You will not hear the clicking sound again when system is idle. The lowest APM mode will be Active Idle and hence the drive will not park its head to the ramp during operions.
    If your hard drive is a Hitachi Travelstar 5K160, you can find the 5K160 specifications version 1.1 from Hitachi web site. On page 69 of the document, it explains the APM idle modes. On page 145 about the register values of the APM modes.
    To set Active Idle as the deepest idle mode may adversely affect battery life. (I haven't yet tested it myself) However, there seem not to be a big difference than the Low Power Idle, according to the datasheet of 5K160. For this model, power consumption of Active Idle is 0.8W, while that of Low Power Idle is 0.6W, on average.
    Hope this is helpful.

  • VirtualBox from hard disk, nvidia glx conflict

    Howdy folks, I recently started getting into arch linux and set it up for dual booting. Being a graphics engine developer for multiple platforms I began to work on adding support for linux.
    What I was trying to set up was so that I can use VirtualBox to load my arch install from hard disk, which I have gotten running, so that I can use virtual box to test if things work when developing simultaneously for windows, and boot over to arch for performance optimization type stuff.
    The problem I am having however is that in VirtualBox I can not get the glx extensions to load, looking at the log file it's definitely trying to load the nvidia glx extensions. My PC has an Nvidia Geforce 9600GT, so for proper support in arch I of course installed the drivers for it.
    As per suggested in the wiki I removed the xorg.conf (actually just renamed it), along with a few other files in /etc/X11/xorg.conf.d that were causing problems in virtual box (mainly the 20-nvidia.conf file). I have verified it does boot into arch with full 3D support as it did when the xorg.conf was in place. But still having the problems getting the glx extension to load when inside VirtualBox.
    I would greatly appreciate any help ya'll can provide, being able to load my arch install from virtual box would make developing this graphics engine of mine so much easier. But I still want to be able to boot into arch. Having to use a VirtualBox instance booting from a virtual hard disk is a real pain since it add to the places I need to sync up source code.

    I think you misunderstood ngoonee. Just trying to get open gl working from within virtual box, I know it's only serving as a layer over the graphics stuff.
    The problem however is that to allow gpu acceleration when I boot into it, the nvidia driver will need to remain there. But it appears the glx in the nvidia driver will not play nice with what virtual box needs.
    Idea is to use the same arch install for both virtual box and the dual boot.
    Last edited by chronosifter (2010-07-21 04:28:54)

  • Unable to update software or upload pics from SD card-how do I remove files from startup disk? Please help!

    Unable to update software or upload pics from SD card-how do I remove files from startup disk? Please help!

    Hello Smile_333
    The article below will assist with finding things and help increase the hard drive space for your computer. The best way is to have an external hard drive to copy things to if you do not want to delete and loose things.
    OS X Mountain Lion: Increase disk space
    http://support.apple.com/kb/PH10677
    Thanks for using Apple Support Communities.
    Regards,
    -Norm G.

Maybe you are looking for