STORE A COMPLETE FILE SYSTEM IN THE DATABASE 11GR2

Hi everyone
I have the following issue:
I tried to store in an oracle database TABLE the completre file structure
of a file system that includes the follwing:
-Name of the file
-Date of last modification
-Location
-The entire content of the phisical file BLOB datatype
I have the following piece of code to archieve this, but i still have a
problem...
When i tried to add the records to the database by implememting all
the connecttions stuffs, oracle and java classes required the program
inserts a FEW RECORDS and after that:
¡¡¡hangs up!!!.
The main problem is that i cant release the connection and get another new when i using
JDBC POOL so the server full their available connections.
Please tell me what is the best approach or programming practice on order to
meet this goal.
Thanks from Colombia - Latin America..
HERE IS THE CODE:
import java.io.* ;
* A simple class to demonstrate a recursive directory traversal
* in Java.
* Error handling was left out to make the code easier to understand.
* In production code, you should check if the arguments from the
* command line are really file files or directories.
public class RecursiveTraversal
* Works on a single file system entry and
* calls itself recursively if it turns out
* to be a directory.
* @param file A file or a directory to process
public void traverse( File file )
// Print the name of the entry
//System.out.println( file ) ;
// Check if it is a directory
if( file.isDirectory() )
// Get a list of all the entries in the directory
String entries[] = file.list() ;
// Ensure that the list is not null
if( entries != null )
// Loop over all the entries
for( String entry : entries )
// Recursive call to traverse
traverse( new File(file,entry) ) ;
else
if(file.isFile())
System.out.println( file.getParent() ) ;
System.out.println( file.getName() ) ;
else
System.out.println("*** WRONG VALUE ***");
* The program starts here.
* @param args The arguments from the command line
public static void main( String args[] )
// Create an object of this class
RecursiveTraversal rt = new RecursiveTraversal() ;
if( args.length == 0 )
// If there are no arguments, traverse the current directory
rt.traverse( new File(".") ) ;
else
// Else process every argument sequentially
for( String arg : args )
rt.traverse( new File(arg) ) ;
}

Thanks for the reply, the implementation that you refer is useful for another type of application i need to stored the file system in a TABLE of a database
in order to make a part of an information system integration and can use SQL statements to acomplish this.
I follow the recomendation and post it in the SQL/JDBC forum because when i try to release de active connection i can't acomplish this.
And i need to know how to use JDBC connection poolling to open a connection just once, release and use it again.

Similar Messages

  • What is the best way to copy aperture library on to external hard drive? I am getting a message that say's "There was an error opening the database. The library could not be opened because the file system of the library's volume is unsupported".

    What is the best way to copy aperture library on to external hard drive? I am getting a message that say's "There was an error opening the database. The library could not be opened because the file system of the library's volume is unsupported". What does that mean? I am trying to drag libraries (with metadata) to external HD...wondering what the best way to do that is?

    Kirby Krieger wrote:
    Hi Shane.  Not much in the way of thoughts - - but fwiw:
    How is the drive attached?
    Can you open large files on the drive with other programs?
    Are you running any drive compression or acceleration programs (some drives arrive with these installed)?
    Can you reformat the drive and try again?
    Hi Kirby,
    I attached the UltraMax Plus with a USB cable. The UltraMax powers the cable so power is not an issue. I can open other files. Also, there is 500GB of files on the drive so I cannot re-format it. Although, I noted I could import the entire Aperture Library. However, I do not want to create a duplicate on my machine because that would be defeating the purpose of the external drive.
    Thanks,
    Shane

  • Error while reading file entries from the database

    Hi there,
    We are running a instance of xmii 12 in a VM (VMware) and after somebody shutdown the host machine without shutting down the VM (great idea isn't it?) we keep getting this message when trying to access xMII:
    "Application cannot be started.
      Details:   com.sap.engine.services.deploy.container.ExceptionInfo: Error while reading file entries from the database."
    Any clue? Any suggestion on how we can recover from that?
    Thanks a whole lot,
    Dom
    Server log:
    #1.5 #000C29A3B1F20002000000C400000F2800044829A35270F8#1205243578005#/System/Server##com.sap.engine.services.dbpool.deploy.ContainerImpl####n/a##60152160ef7211dcb7a5000c29a3b1f2#SAPEngine_System_Thread[impl:5]_17##0#0#Info#1#com.sap.engine.services.dbpool.deploy.ContainerImpl#Plain###DataSources or DataSource aliases of 'sap.com/tcmonitoringsysteminfo' application started successfully.#
    #1.5 #000C29A3B1F20002000000C500000F2800044829A3527A6C#1205243578005#/System/Server##com.sap.engine.services.servlets_jsp.server.container.WebContainer####n/a##60152160ef7211dcb7a5000c29a3b1f2#SAPEngine_System_Thread[impl:5]_17##0#0#Info#1#com.sap.engine.services.servlets_jsp.server.container.WebContainer#Plain###application [] Start of application [sap.com/tcmonitoringsysteminfo] finished successfully on Web Container.#
    #1.5 #000C29A3B1F20002000000C600000F2800044829A3527DB5#1205243578005#/System/Server##com.sap.engine.services.deploy####n/a##60152160ef7211dcb7a5000c29a3b1f2#SAPEngine_System_Thread[impl:5]_17##0#0#Info#1#com.sap.engine.services.deploy#Plain###
    Operation startApp over application sap.com/tcmonitoringsysteminfo finished successfully on server 305221750#
    #1.5 #000C29A3B1F20002000000C700000F2800044829A3527E03#1205243578005#/System/Server##com.sap.engine.services.deploy####n/a##60152160ef7211dcb7a5000c29a3b1f2#SAPEngine_System_Thread[impl:5]_17##0#0#Info#1#com.sap.engine.services.deploy#Plain###
    Operation startApp on application sap.com/tcmonitoringsysteminfo finished on current cluster node for 221 ms.#
    #1.5 #000C29A3B1F20002000000C800000F2800044829A3528B49#1205243578005#/System/Server##com.sap.engine.services.deploy####n/a##60152160ef7211dcb7a5000c29a3b1f2#SAPEngine_System_Thread[impl:5]_17##0#0#Error#1#com.sap.engine.services.deploy#Plain###Error occurred while initially starting application sap.com/xappsxmiiear:Error while reading file entries from the database.#
    #1.5 #000C29A3B1F20002000000CA00000F2800044829A352922B#1205243578015#/System/Server##com.sap.engine.services.deploy####n/a##60152160ef7211dcb7a5000c29a3b1f2#SAPEngine_System_Thread[impl:5]_17##0#0#Info#1#com.sap.engine.services.deploy#Plain###The synchronization of applications with DB completed for 39304 ms.#
    #1.5 #000C29A3B1F200040000000200000F2800044829B290A4F8#1205243834341#/System/Server/SLDService##com.sap.sldserv.DataCollector####n/a##0da42150ef7311dcb908000c29a3b1f2#SAPEngine_System_Thread[impl:5]_7##0#0#Warning#1#com.sap.sldserv.DataCollector#Plain###Communication configuration is incomplete. No data transfer possible until corrected.#

    Well thanks for the hint. Actually, the DB was up but corrupted. I managed to solve the bug by re-deploying xMII (using the SDM tool) which kept all my data but redeployed both the config db of (x)mii and the class files.

  • IPhoto9: "library could not be opened because the file system of the library's volume is unsupported."

    Can please anyone help me with this issue.
    After upgrading from iPhoto8 to iPhoto9 my library won't open anymore. I have stored all my pictures on a NAS (Buffalo Link Station Duo). It all worked fine but since upgrading to iPhoto9 I do have the following problem:
    When opening iPhoto I receive a message that the library needs to be updated. I assume that iPhoto should just do this sort of automatically in order to upgrade to iPhoto9.However, next message I receive then is
    "The library could not be opened because the file system of the library's volume is unsupported."
    Apple support so far does not seem to be able to solve my issue. Anyone else having had the same issue and having a solution to this?
    Thanks a lot for your help.

    There is no solution.
    IPhoto needs to have the Library sitting on disk formatted Mac OS Extended (Journaled). Users with the Library sitting on disks otherwise formatted regularly report issues including, but not limited to, importing, saving edits and sharing the photos.While you have been lucky to date, many folks with a library on a NAS found that it worked for a while and then the problems started.
    Workaround: Put the Library on a Disk Image formatted Mac OS Extended (Journaled) and store that on the NAS. But the real solution is to use a properly formatted disk for the Library.
    Regards
    TD

  • Best ways to view/display PDF/Excel files stored in the Database

    What are best ways to display/view PDF/Excel files stored in the Database? thanks L

    Thanks tom, sorry let me explain. Currently we have oracle forms screen, using webutil to store/view files into DB. client won't like the interface, they want us to make it more friendly, drag and drop if possible, load multiple files, as possible.. So I am exploring different ways to improve may be java (or jdev/any any other), different screen designs, different features for fileupload/download/view options.

  • How to store preferences in file system on Windows?

    I have 2 questions related to preferences using.
    1. How to store preferences in file system (not in registry) on Windows? I see file system implementation of Preferences (java.util.prefs.FileSystemPreferences). But this implementation is linux-specific (use native methods). Does universal implementation exist?
    2. How to store custom files in preferences? I need to store some user-specific files (XML files, for example) somewhere. These files are naturally user preferences. So my idea is to store it using Preferences. But it seems like there is no such posibility in standard preferences. I believe many peoples have the same problem. Does anyone have solution?
    Please help me!
    Thank you in advance.

    Preferences is supposed to keep all this data
    handling away from you, so you shouldn't bother. If
    you'd like to write a file, just write a file. You
    could create a "Settings" object and serialize it.I understand your reasonings. But unfortunately I have requirements to use file system preferences both on Linux and Windows. My bosses think there are many problems because of registry. Don't ask what problems, they didn't say. I cannot change their requirements. I must to implement it.
    Maybe somebody already solved this proplem. I will very grateful for help.
    Once again: simply write and read a custom file. Why
    do you use Preferences at all costs when they don't
    do what you want to?I have requirements to implement saving of files in the same manner as saving of preferences. It may be different code from Preferences. But it will be the best to have the same code if it possible.
    Any way I believe the need to save user-specific files as preferences is quite widespread.

  • Displaying complete file names on the desktop

    I think there was a way to get the finder to display the complete file names on the desktop. Some terminal command. Can anybody help?

    I have files on the Desktop that don't have that issue. But when I add characters to them I eventually reach the breaking point -- 37 characters is fine; 38 characters causes the file name to truncate. I suppose there may be a way to set a secret pref to show a larger number of characters using Terminal.
    Anyone know how many characters the OS file system is limited to -- ignoring display issues, I mean?
    Rob

  • What is the best method for saving the client sequence file revision in the database \ report?

    I'm trying to figure out the best way to store the sequence file Revision in the database. That is, if I have the Revision (SequenceFile.AsPropertyObjectFile.Version), where (e.g. what table / field) should I put it if I'm using the SQL Server schema that ships with TestStand?  How do I get it there?
    Certified LabVIEW Architect
    Wait for Flag / Set Flag
    Separate Views from Implementation for Strict Type Defs
    Solved!
    Go to Solution.

    Ok LabBEAN,
    Here is my tutorial.  It is actually easier than I thought:
    Step 1: Configure>>Database Options and uncheck the Disable Database Logging.
    Step 2: Click the Data Link tab
    Step 3: Make sure the Connection String Expression is pointing to the right location.  Should be a public directory with a .mdb file if you are using TestStand defaults.  Click the View Data button to verify.  It should open the Database Viewer so you can look at the tables.  Leave the Database Viewer open.
    Step 4: Click the Schemas tab
    Step 5: With the Generic Recordset (NI) selected click the Duplicate button.
    Step 6: You should now see a copy of that schema.  In the Name box name it MyRecordset and make sure it is checked
    Step 7: Click the Statements tab and highlight STEP_SEQCALL.  NOTE: you must always do this before clicking on the Columns/Parameters tab
    Step 8: Click the Columns/Parameters tab
    Step 9: Highlight the SEQUENCE_FILE_PATH item and click the Copy Button
    Step 10:  Highlight the new entry and change the Name to SEQUENCE_FILE_VERSION
    Step 11: MOST CRITICAL STEP: Change the Expression to RunState.Engine.GetSequenceFileEx(Logging.StepResu​lt.TS.SequenceCall.SequenceFile, 107, ConflictHandler_Error).AsPropertyObjectFile.Versio​n  It is better to do it this way because you never now where a sequence file call will be made and not all sequence calls are made to the model client sequence.
    Step 12: Hopefully you left the Database Viewer open from Step 3. Go to it.
    Step 13: Right click the STEP_SEQCALL and select Add Column..  Name the new column: SEQUENCE_FILE_VERSION.  Basically you need a column that matches the one you created back in the Columns/Parameters tab.  Set it up with the same type and size.  NOTE: there is an alternate way to do this using the Execute SQL View in the Database Options but you need to create it.  You can create it from the Schemas tab back in TS by clicking the Build .sql File.. button.
    Step 14: Back in TestStand click OK to save and close the Database Options.
    Now run your sequence and you will see the new data in your database.
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • How/Where are Financial Reports Saved on the File System of the Server?

    We've recently lost a large chunk of our reports on our server. We can't figure out which directory location to restore in order to get those reports back. Where is the default directory for 11.1.2.2 Financial Reports? And in what format are those reports saved?

    The FR reports themselves are found in the Operating System (O/S) file system, but the EPM Workspace heirarchy (folders, tree, etc) are stored in the Hyperion BI+ repository database.
    On the O/S file system, the reports are stored in RM1 folder under "C:\oracle\Middleware\user_projects\epmsystem1\ReportingAnalysis\data\RM1\root" folder.
    The names of the reports located here are UUID (long identifiers - not the actual names).
    For example:
            when a report is created with the name"My report" in the Financial Reporting Studio, when logging into EPM Workspace it will be accessible within Financial Reports/folder name where it was saved.
            the actual report will be stored in a sub-folder of the RM1\root folder on file system.
                The name of the file will be a unique identifier (not the actual name of the report i.e. "My report")
                It will be generated "on the fly" based on various things such as the current date and time on the server (i.e 0000012f5af72b1a-0000-ec71-c0a8006c.00000130510b77bb-0000-5133-c0a8006c.1)
    The meta-data for that report ("My report", that is in the folder in Workspace, the modification date of the report, the permissions on that report, etc.) will be stored in the Hyperion BI+ DB as an object in an encrypted table. Financial Reporting knows what meta-data is in the Hyperion BI+ DB that matches the report, in the "RM1\root" folder because all the rows in the table for this object in the Hyperion BI+ DB that are related to "My report" will be referenced using the UUID of the file (e.g. 0000012f5af72b1a-0000-ec71-c0a8006c.00000130510b77bb-0000-5133-c0a8006c.1)
    Note: The location of RM1 folder differs with each installations' operating system.

  • File system error: The record ID is incorrect. Physical file: . Logical file:

    Hi,
    I face this error message when I try to 'process update' a dimention, sometime it works but sometime it failed with the error below:
    Description: File system error: The record ID is incorrect. Physical file: . Logical file: . 
    My environment: Window Server 2008 R2+SQL Server 2008 R2.
    Note: this issue can be resolved by full cube process, but I can't to that every time if it failed, just want to know what happen at backend of SSAS, It block me neary 2 week without any finding, really appreciate that someone can help on this.
    I have do some research with google, I think the root cause here is not TopCount function(It may be a problem with SQL Server2005), also not the size limitation of 4GB size of .astore file.(I check the size of my cube under 'Data\XXX.db\' folder, which only
    have few MB size).
    Thanks,
    Tom

    Hi Tom,
    Here is a microsoft fix
    FIX: "File system error" occurs when you try to run a process update operation on a dimension in Microsoft SQL Server 2008 Analysis Services and in Microsoft SQL Server 2008 R2 Analysis Services
    In your acenario, in order to fix this issue, please apply the latest Cumulative update and Service Pack according to your SQL Server version. Besides, there are two workarounds in that fix, plese try it and check if it works or not.
    http://support.microsoft.com/default.aspx?scid=kb;en-US;2276495
    Regards,
    Charlie Liao
    TechNet Community Support

  • ORA-27054: NFS file system where the file is created or resides is not mounted with correct options

    Hi,
    i am getting following error, while taking RMAN backup.
    ORA-01580: error creating control backup file /backup/snapcf_TST.f
    ORA-27054: NFS file system where the file is created or resides is not mounted with correct options
    DB Version:10.2.0.4.0
    while taking datafiles i am not getting any errors , i am using same mount points for both (data&control files)

    [oracle@localhost dbs]$ oerr ora 27054
    27054, 00000, "NFS file system where the file is created or resides is not mounted with correct options"
    // *Cause:  The file was on an NFS partition and either reading the mount tab
    //          file failed or the partition wass not mounted with the correct
    //          mount option.
    // *Action: Make sure mount tab file has read access for Oracle user and
    //          the NFS partition where the file resides is mounted correctly.
    //          For the list of mount options to use refer to your platform
    //          specific documentation.

  • Download of files stored in the database

    I am using FireFox and my users IE. Download of files stored in the database worked for me but not for my users. I recieve a choice of downloading the file or opening it with a full file name and file type. IE users have some strange behaviour - no name of the file and they can only save it to their local drive - some kind of weird microsoft security option. I was searching for it but couldn't find. Anyone here who would know where to search for it?
    Denes Kubicek

    Hello Jens,
    I am using the standard procedure from the manual:
    CREATE OR REPLACE PROCEDURE download_my_file_pr (p_file IN NUMBER)
    AS
    v_mime VARCHAR2 (255);
    v_length NUMBER;
    v_file_name VARCHAR2 (2000);
    lob_loc BLOB;
    BEGIN
    SELECT mime_type, blob_content, NAME, DBMS_LOB.getlength (blob_content)
    INTO v_mime, lob_loc, v_file_name, v_length
    FROM my_file_table
    WHERE ID = p_file;
    -- set up HTTP header
    -- use an NVL around the mime type and
    -- if it is a null set it to application/octect
    -- application/octect may launch a download window from windows
    OWA_UTIL.mime_header (NVL (v_mime, 'application/octet'), FALSE);
    -- set the size so the browser knows how much to download
    HTP.p ('Content-length: ' || v_length);
    -- the filename will be used by the browser if the users does a save as
    HTP.p ('Content-Disposition: attachment; filename="' || v_file_name || '"');
    -- close the headers
    OWA_UTIL.http_header_close;
    -- download the BLOB
    wpg_docload.download_file (lob_loc);
    END download_my_file_pr;
    Denes Kubicek

  • Oracle reports to display PDF/Excel files stored in the Database

    can we use Oracle reports to view/display PDF/Excel files stored in the Database? Thanks Lalitha

    A document stored in the database can be easily retrieved in or via the browser using mod_plsql. Simplified:
    select content, mime_type
    into v_blob, v_mime_type
    from ...
    owa_util.mime_header(nvl(v_mimetype,'application/octet'),false);
    htp.p('Content-length: ' || dbms_lob.getlength(v_blob));
    owa_util.http_header_close;
    wpg_docload.download_file(v_blob);So, the link in your report should point to this database procedure.
    Edited by: InoL on Mar 1, 2011 4:17 PM

  • ORA-27054: NFS file system where the file is created or resides is not moun

    Linux Red Hat 4
    10.2.0.4
    Had this issue since someone unplugged the san on Monday, and the servers were rebooted. Trying to do a duplpicate to Reporting Server from Production. The error returned, once the backupsets are being copied, is
    ORA-27054: NFS file system where the file is created or resides is not mounted with correct options
    I have edited fstab in the way that the Doc 781349.1 suggests. I have unmounted the mount point and remounted. Themount is set up this way:
    /backup/PROD on /backup/PROD type nfs (rw,bg,hard,rsize=32768,wsize=32768,nfsvers=3,nointr,timeo=600,proto=tcp,addr=172.16.2.92)
    I have checked fstab and it has write permissions for the oracle user with which I run the duplicate command.
    I am able to browse, and create files on the /backup/PROD area.
    Edited by: user11981168 on May 3, 2010 1:02 PM

    It is my understanding that the NFS mouting options necessary to support Oracle vary based on the hardware/OS in use.
    I have the following recored for a NetApp appliance
    hard,bg,rw,vers=3,proto=tcp,intr,rsize=32768,wsize=32768,forcedirectio
    and this for a Linux Client
    rw,bg,hard,nointr,tcp,vers=3,timeo=300,rsize=32768,wsize=32768,actimeo=0
    I suggest your review your platform specific documentationa and any record you have from the origonal set up.
    You might just want to open a SR where you provide the specific hardware info and see if support can help after making another search for documents of interest.
    HTH -- Mark D Powell --

  • IPhoto The library could not be opened because the file system of the library's volume is unsupported.

    Have Yosemite installed on both my MBA and Mac Pro. iPhoto 9.0 running well on the MBA but when I tried opening iPhoto on my Mac pro get the message "The library could not be opened because the file system of the library's volume is unsupported." This is after I upgraded iPhoto.
    Any help would be greatly appreciated.

    While holding down the command & option keys boot into iPhoto and have it repair the Library.  If that does not work then download "Library Manager" and have that program work.  I found that better than the Apple program.

Maybe you are looking for

  • DOWN 10G ORACEL PROBLEM

    Now in oracle official website why not oracle 10g address ? what's wrong ? How to download the oracle 10g?

  • Configuring Remote Front Panels on a Real-Time Target,smart camera,but there is no image in the web page.

    I do see the web page, but the image  itself is not loading.i know a problem is with the installation of the LabVIEW ActiveX plug-in or the IMAQ ActiveX plug-in.  The LabVIEW ActiveX plug-in is required for ALL remote front panel viewing, and the IMA

  • RDBMSRealm Oracle lessons learned

    I have been trying to research an ORACLE RDBMSRealm implementation on WL6.1 for the last few days and realized based on newsgroup postings that this type of implementation is done by trial and error. I have not completed a full implementation yet, bu

  • DHCP switches itself off

    In the last month, the DHCP service of our xserve switched itself off twice, without any reason. When I switch it back on, I've seen that the subnet is also disabled in the 'Subnets' tab. Since I am the only person with access to the server, it is a

  • Messed up menu button with Libreoffice 4.4.0 and Plasma 5.2

    Libreoffice 4.4 menus look like this when using Plasma 5.2: http://imgur.com/CJ9hKIL It does not depend on the libreoffice icon theme. Is there something I can do to fix this or should I report a bug (to whom? KDE or Libreoffice?) Last edited by Wu (