Writting documents to data base or to a file system?

I have this facility to write documents to the database. The DBA wants to change it to a user file systems.
What is the best practice? Where can I find documentation about it?
Thanks in advance.

Using which technology ?
With java it is quite easy and you have lot of example in th JSP/Servlet code that explain how to upload from the browser to a file system.
Within PLSQL it is different since it is running inside the DB so you'll have to use output package to put the content of the blob in a file.
Regards
Tugdual

Similar Messages

  • Create a small data base stored in a file

    I want to create a small data base of about 10 to 20 items. Each item will have an item number, serial number, time stamp and description. I want to store these 10 items in a file and be able to retrieve them by item number. How can I do this with LabView?

    For something this small, use a single VI to manage it in memory:
    It has a FUNCTION input, an enum with values of (INIT, READ FILE, WRITE FILE, ADD ITEM, FIND ITEM).
    It has a CLUSTER input, which is your record type {Item number, serial number, time stamp, description}
    It has a CLUSTER output, of the same type.
    It has an ITEM NUMBER input, which is an integer (assuming your item number is truly a number).
    The code is a WHILE loop with the CONTINUE input wired to FALSE (it never loops).
    Inside the WHILE LOOP is a CASE statement, with the selector wired to the FUNCTION control.
    For case INIT, make an empty array of records (your cluster type) and feed it to a shift register on the WHILE loop.
    For case WRITE FILE, take the shift regis
    ter input and CREATE, WRITE, and CLOSE a file. (pass it thru to the output as well). Wire the cluster to the DATALOG TYPE of the CREATE FILE function to create a datalog file.
    For case READ FILE, use OPEN FILE, READ FILE, and CLOSE FILE functions, with DATALOG TYPE wired to the cluster type.
    For case ADD ITEM, just append the new item (input cluster control) to the array from the shift reg and put the array back in the shift reg.
    For case FIND ITEM, just search thru the array (from the shift reg) until you find the matching item number, then return the whole record in the output.
    You'll have to pass the left shift reg thru the case to the right shift reg in all cases except INIT, READ FILE, and ADD ITEM.
    This means the actual storage is in the shift reg, for max efficiency.
    If you get beyound a hundred items, I would suggest a different FIND ITEM technique (keep a separate list for ITEM NUMBERS and search that, rather than the whole thing).
    This assumes you ha
    ve control of shutdown - any changes you make are lost unless you call WRITE FILE afterwards.
    Steve Bird
    Culverson Software - Elegant software that is a pleasure to use.
    Culverson.com
    Blog for (mostly LabVIEW) programmers: Tips And Tricks

  • Attach document from Data Base Table Document in email attachment Option

    HI Friends,
    i have create an email option in my application .i have a table CRM_DOC_FILE.this table have collection of all document file.
    i want to send an email with attchment but i want to attch file from my table Named CRM_DOC_FILE ,so i have created an report region with list of all documents .i want jus a button in last column in this report when i click on this button then corresponding document should be attch ,i want to attch more then one document .
    How can i attch a button in last column in report where i would be click on this button to attch documents.
    How can i attch documents click on Attch button.
    how can i do this.
    i have ctreated a Dummy Application
    Workspace: SKILLS IMPROVE
    User: [email protected]
    Password :desomu
    Application: 42370
    page No 4 For Sending email .
    Thanks
    Edited by: 805629 on Nov 28, 2010 11:36 PM

    PLEASE DO NOT POST THE SAME QUESTION MULTIPLE TIMES.... Please see the OTHER version of this question for a possible solution. Please close one of these questions, so others do NOT waste their time answering multiple versions of your questions..
    Thank you,
    Tony Miller
    Webster, TX

  • Encrypting Data on part of a file system.

    A few months ago, using hints I found on the internet, I was able to use diskutil command line utililty to create an encrypted partition of the same sort as when turning FileVault on in Security Preferences.  File Vault doe not appear to offer a way to choose some pargt of the disk storage such as an entire drive of a folder on a drive.  I was able to do it and it worked.  When I mount the disk partition to the system (usualy by plugging it in and turning it on), I'm asked for the security pass phrase or key to decrypt it.  Once mounted with the key supplied, I can access it as any other mounted disk with the type of access restrictions that might be present on any disk.Since I want the data to be truly privatem U decline to put the key into the a known place such as the keychain.  I don't want just anyone who has a log on to this iMac to b e able to read this data.  I want them to need to enter a private key to mount the data. 
    My only problem with this is the hoops I needed to go through to do this.  It is complicated and invovlves setting up special partitions for the purpose.
    Searching Finder help for encrypting data it offered a solution for data on a removable drive.  The stepsare very simple and easy to do:
       a) Mount the files to be encrypted if they are not  online.  They also need to be in a folder or even an entire partition.
        b) Open Disk Utility (GUI version)
        c)Choose File > New > Disk Image From Folder (or New-> Disk Image ffrom a Device).
        d) Select the folder or disk you want to encrypt.
        e) A save dialog will pop up.  Select the name of the archive you wish to create and select a location.  I choose a removable disk partition which has enouh space.  Select Compressed if you wish.  Then Select Encryption and choose the key size for encryption from the drop dwon.  When you click Save, Disk Utility begins creating a disk image that is (possibly) compressed and probably encrypted.  Once done, the files in the folder or partiion are hiddent behind the encryption.  To get to them, you much open the DMG file and supply the password to unlock the encryption.  You can save the key in the keychain if you are not worreid about who can get in.  If you wish to restrict access to fewer people, keep the key secret and provide a recovery mechanism that is suitable for you need.
       f)  One the archive is created, the disk partition containing it may b4 mounted on the system (if it is not there already) and by opening the dmg file you will be asked for the key.  The system will validate that the key works and the encryption and comprewssion are working.  The archive will be mounted as a virual disk.  It can be accessed by any useer of that computer unless the file permissions get in the way.  Mounting it only when the computer is being used by authorized people allow you to mount and dismount the archive for use during a limited time.
    I have a couple of questions here.  Is there an easier way to do this?  Is this encryption as strong as that used in FileVault? 

    No. I don't know why it would not be, except it is easier for a person to leave the disk mounted where anyone can then see it. With FileVault forcing a password on wake from sleep, it will likely be encrypted if anyone found it.
    I'm not sure why you went to the trouble you did before, except the instructions might have been to create an encrypted partition as opposed to creating the disk image. Disk images have been around for at least a decade.
    If you plan on backing up the image with Time Machine, use a sparse bundle disk image as it will write the data to small files, called stripes. Only the stripes that change get backed up instead of the entire image.

  • Export Data Base

    Hi,
    I am taking Data base backup using Batch file and that file assign to Schedule.so every day automatically it is executing and saving to file. That batch file contains below script.
    exp pplus/computer@abcd file=e:\bkup\pplus.dmp grants=Y buffer=10000 log=e:\bkup\pplus.log.
    Every day replacing that file.But i want to take everyday backup in folder.So i am giving file=e:\bkup\pplus Concatenate(||) Date.how to concatenate filename with sysdate in Dos. any Command to concatenate sysdate with filename?

    try this, this will add date in MM-DD-YYYY format.
    @echo off
    exp pplus/computer@abcd file=e:\bkup\pplus%date:~4,2%-%date:~7,2%-%date:~10,4%.dmp grants=Y buffer=10000 log=e:\bkup\pplus.log
    rem echo %date:~4,2%-%date:~7,2%-%date:~10,4%
    echo.
    Sachin Chauhan

  • Data base

    Hi all : Issue is data base  Please attach see file , copy this file to desktop ,, then run create table  vi ,,, as you see its will save the data in access . Please see  I took the this example from national instrument example directory C:\Program Files\National Instruments\LabVIEW 8.5\examples\database  but I add some objects My problems are : 1-       Every one can insert to epos.mdb and do changes 2-       I want if I insert same number in  column 1 , massage appeared that say this number is in data base , and don't saved it , if this number doesn't exist then application will saved it   How can I do that?  thanks       
    Attachments:
    database.zip ‏239 KB

    the exemple just cover the creation of a table, but not the insert record.
    I do not have the database add on but I am using a database not connected yet to Labview.
    To answer your question you should first use create table with the database app(like access: simpler)
                    next find the function vi to (findRecord(like query)  and Numberof record  and insert record. 

  • Post BI 7.0 Technical Upgrade warning in Data Basis

    Hi,
    We have carried out technical upgrade to BI 7.0 . After upgrade, there were some inconsistency in Data basis which was removed thru System Synchronization program. Similarly consolidation area and source data basis also are consistent after saving.
    However, when I carry out CHECK (right click and check) on Data Basis, it is throwing warning message for 0BCS_REFYR (master data) and 0BCS_DPER (master data)
    The error message for one of them is re-produced below:
    Critical change in content: InfoObject 0BCS_DPER (master data)
    Message no. UCM0143
    Diagnosis
    Field Life of Depreciation (Amortization) in Periods is used in the data model of data basis Data basis ISB. The corresponding InfoObject 0BCS_DPER belongs to SAP BW Content, which is delivered with the consolidation system. However, the current definition of the InfoObject does not coincide with the delivered version.
    In this case, the attribute With Master Data has been changed in the InfoObject definition. This change puts the consistency of the consolidation data model at risk.
    Procedure
    Adjust the definition of InfoObject 0BCS_DPER accordingly.
    Always avoid changing InfoObjects that are delivered in SAP BW Content.
    We have not made any changes to infoobject whatsoever. Please advise how to reslove this.
    All BCS functions are working normally.
    Best Regards,
    UR

    Warning Message is reproduced below:
    ''Critical change in content: InfoObject 0BCS_DPER (master data)
    Message no. UCM0143
    Diagnosis
    Field Life of Depreciation (Amortization) in Periods is used in the data model of
    data basis Data basis ISB. The corresponding InfoObject 0BCS_DPER belongs
    to SAP BW Content, which is delivered with the consolidation system. However,
    the current definition of the InfoObject does not coincide with the delivered version.
    In this case, the attribute With Master Data has been changed in the
    InfoObject definition. This change puts the consistency of the
    consolidation data model at risk.
    Procedure
    Adjust the definition of InfoObject 0BCS_DPER accordingly.
    Always avoid changing InfoObjects that are delivered in SAP BW Content
    Best Regards,
    UR

  • Writing multiple port data report into single excel file

    I'm working on a STTE automation of an power management unit in which data's from 6 different channels are received from the unit which has to be tested and then verified and co-related with the digital and analog inputs given by the user. So my question is finally how to write all dese six channel's data to a single excel file with multiple work sheets..... Like channel-1 one in sheet1,ch-2 in sheet2 so on.... (these data's from 6 different are received from 6 different serial communication port.)
     pls guide how to forward in the final report generation for abv mentioned requirement in labview

    As nyc mentioned you will have to use ActiveX if you want to do exactly what you discribed but if you're new to LabVIEW that can be a big step.
    In the VI you posted you write your data to xls file but the fact is that you use the write to text file function, so in the end your file is just a simple text file, and of course Excel can open this type of file.
    Maybe you could have your VI to write txt files and then have another bit of code that would transfert the data in each text file to differnt worksheet in a Excel file.
    Or maybe another option would be to write all your data to the same TDMS file (on channel per port) and then use the TDMS Excel Add in to generate an Excel file from the TDMS.
    Feel free to ask more questions :-o
    When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!"

  • Exporting spatial data to SHP or TAB file format

    Hi,
    I have a couple of layers (maps) uploaded as spatial data into an Oracle database. What I'd like to do now is export those maps (data) as standard file format like ESRI Shape or MapInfo TAB file, i.e. write out the data as SHP or TAB file(s) to the disk.
    Is this possible?
    Any hints, reference or third party solution will do.
    Thanks in advance.
    P.S. Here is the original process I followed to upload map data to Oracle.
    1) I had the map data as MapInfo TAB files.
    2) Used the EasyLoader application shipping with MapInfo to upload the data into Oracle.
    All I need now is the reverse engineering.

    If you want to export to ESRI shape and MapInfo and do not have SDE or MapInfo then I would suggest looking into FME (www.safe.com). Look at the Oracle Suite product. You can download an evaluation product. It will export from Oracle Spatial to both formats.
    Thanks
    Dave
    David R. Miller
    Michael Baker Jr., Inc.
    3601 Eisenhower Avenue
    Alexandria, VA 22304
    [email protected]
    www.mbakercorp.com

  • Data Migration tool from legacy file sys to iFS

    Is there an existing tool used for
    data migration from a lagacy file system
    to iFS?
    Thanks in advance for any sugesstions..
    Elvis...

    Hi Elvis,
    Not at the moment, but I'll be happy to log it as an enhancement request for the future, please post your requirements for more details.

  • How do you create data base documents in Pages '09?

    Can you create Data Base documents with Pages, or any of the iWork Apps?

    If you want to create and use true databases, you must use an other app dedicated to this feature.
    There is a powerful database tool in LibreOffice but it requires a serious learn curve.
    There are numerous available apps starting from Bentoy to FileMaker or 4th Dimension.
    Matter of needs and finances.
    Yvan KOENIG (VALLAURIS, France)  dimanche 11 décembre 2011 10:54:27
    iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community

  • Is it possible to combine a address list with a Pages document and a data base in Numbers, the equivalent of "Mail Merge" using Microsoft?

    Is it possible to combine an address list with a Pages 5.1 document and a data base in Numbers 3.1, the equivelent of Microsoft "Mail Merge"?

    It is possible in Pages 09 and Numbers 09 but not in the versions you name.

  • Logical data base

    hi experts!!
    i am working on the LDb  report and i have created a LDB zaxxx in se36 and using the same LDB to code in se38 and in attributes i have mentioned the name of LDB.
    when i code follwoing:
    GET ZAXXXX  FIELDS INVOICE_NUM CUST_NAME CUST_PO_NUM INV_DATE.
    ITS GIVING ERROR THAT ZAXXX IS NOT SPECIFIED FOR FIELD SELECTION.
    when i use only
    GET ZAXXXX  . when i debug valuse are comming but when process the report its giving no valuse.
    plz suggest me on the same..
    mahesh

    hi this may be of some help.
    A logical database is a special ABAP/4 program which combines the contents of certain database tables. You can link a logical database to an ABAP/4 report program as an attribute. The logical database then supplies the report program with a set of hierarchically structured table lines which can be taken from different database tables.
    LDB offers an easy-to-use selection screens. You can modify the pre-generated selection screen to your needs. It offers check functions to check whether user input is complete, correct, and plausible. It offers reasonable data selections. It contains central authorization checks for data base accesses. Enhancements such as improved performance immediately apply to all report programs that use the logical database.
    Less coding s required to retrieve data compared to normal internel tables.
    Tables used LDB are in hierarchial structure.
    Mainly we used LDBs in HR Abap Programming.
    Where all tables are highly inter related so LDBs can optimize the performance there.
    Check this Document. All abt LDB's
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.highlightedcontent?documenturi=%2flibrary%2fabap%2fabap-code-samples%2fldb+browser.doc
    GO THROUGH LINKS -
    http://www.sap-basis-abap.com/saptab.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9bfa35c111d1829f0000e829fbfe/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9b5e35c111d1829f0000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/c6/8a15381b80436ce10000009b38f8cf/frameset.htm
    /people/srivijaya.gutala/blog/2007/03/05/why-not-logical-databases
    Re: **LDB**
    www.sapbrain.com/FAQs/TECHNICAL/SAP_ABAP_Logical_Database_FAQ.html
    www.sap-img.com/abap/abap-interview-question.htm
    www.sap-img.com/abap/quick-note-on-design-of-secondary-database-indexes-and-logical-databases.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9b5e35c111d1829f0000e829fbfe/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db9bb935c111d1829f0000e829fbfe/content.htm
    Gothru the blog which provides info on LDB's:
    /people/srivijaya.gutala/blog/2007/03/05/why-not-logical-databases
    Sample code
    TABLES: SPFLI,
    SFLIGHT,
    SBOOK,
    SCARR.
    START-OF-SELECTION.
    GET SPFLI.
    WRITE:/ ’SPFLI: ’, SPFLI-CARRID, SPFLI-CONNID,
    SPFLI-AIRPFROM, SPFLI-AIRPTO.
    GET SFLIGHT.
    WRITE:/ ’ SFLIGHT: ’, SFLIGHT-CARRID, SFLIGHT-CONNID, SFLIGHT-FLDATE.
    GET SBOOK.
    WRITE:/ ’ SBOOK: ’, SBOOK-CARRID, SBOOK-CONNID,
    SBOOK-FLDATE, SBOOK-BOOKID.
    GET SFLIGHT LATE.
    WRITE:/ ’ GET SFLIGHT LATE: ’, SFLIGHT-FLDATE.
    with regards,
    Hema SUndara.
    pls reward if helpful.

  • Data base is of the server netware

    The Zenworks is installed in a Netware server, can use a server Microsoft
    with Oracle to keep the data base of the inventory?
    Thanks,
    Hugo Blon

    [email protected] wrote:
    > The Zenworks is installed in a Netware server, can use a server
    > Microsoft with Oracle to keep the data base of the inventory?
    > Thanks,
    > Hugo Blon
    Yes, i have never done it but it should work.
    The documentation should explains the steps to set it up.
    Regards, Kai Reichert
    Novell Support Forums Sysop
    Real programmers don't document. If it was hard to write, it should be
    hard to understand.

  • Transfer of xml file elements to data base columns

    hi all,
    i have to store xml file's data(element values) into the data base(table columns).
    i heard that we can acheive this by XSU.
    IS it is mediator between xml and db? if yes how to install it.
    i tried something as below
    with t as (
    select xmltype('<Message-Header>
    <Message-Id>1234</Message-Id>
    <Sender-Company-ID>4569</Sender-Company-ID>
    <Sender-Company-Name>abc company</Sender-Company-Nam
    <Sender-User-ID>AA</Sender-User-ID>
    <Recv-Company-ID>050</Recv-Company-ID>
    <Recv-Company-Name>XYZ pvt.ltd</Recv-Company-Name>
    <Creation-Time>20101019 15:59:39</Creation-Time>
    </Message-Header>') as xml from dual
    )but i am getting following error. can anybody explain about this
    SQL> ed
    Wrote file afiedt.buf
      1  with t as (
      2  select xmltype('<Message-Header>
      3  <Message-Id>1234</Message-Id>
      4  <Sender-Company-ID>4569</Sender-Company-ID>
      5  <Sender-Company-Name>abc company</Sender-Company-Name>
      6  <Sender-User-ID>AA</Sender-User-ID>
      7  <Recv-Company-ID>050</Recv-Company-ID>
      8  <Recv-Company-Name>XYZ pvt.ltd</Recv-Company-Name>
      9  <Creation-Time>20101019 15:59:39</Creation-Time>
    10  </Message-Header>') as xml from dual
    11* )
    SQL> /
    with t as (
    ERROR at line 1:
    ORA-01041: internal error. hostdef extension doesn't existPlease help me..
    my db version is Oracle Database 10g Release 10.2.0.1.0 - Production

    Hi,
    What are you trying to achieve with a single WITH clause and no SELECT?
    Please see this from the documentation if you want to use it properly :
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_10002.htm#i2077142
    Apart from its true purpose of subquery factoring, the WITH clause is often use here and there to simulate a table content, but you'll always need a SELECT.
    Maybe that's what you were trying to do?
    As for your question, starting with release 10.2, Oracle provides XMLTable to shred XML documents into relational structures.
    For example,
    with t as (
    select xmltype('<Message-Header>
    <Message-Id>1234</Message-Id>
    <Sender-Company-ID>4569</Sender-Company-ID>
    <Sender-Company-Name>abc company</Sender-Company-Name>
    <Sender-User-ID>AA</Sender-User-ID>
    <Recv-Company-ID>050</Recv-Company-ID>
    <Recv-Company-Name>XYZ pvt.ltd</Recv-Company-Name>
    <Creation-Time>20101019 15:59:39</Creation-Time>
    </Message-Header>') as xml from dual
    select x.*
    from t,
         XMLTable(
          '/Message-Header'
          passing t.xml
          columns
            message_id          number       path 'Message-Id',
            sender_company_id   number       path 'Sender-Company-ID',
            sender_company_name varchar2(30) path 'Sender-Company-Name',
            sender_user_id      varchar2(30) path 'Sender-User-ID',
            recv_company_id     varchar2(30) path 'Recv-Company-ID',
            recv_company_name   varchar2(30) path 'Recv-Company-Name',
            creation_time       varchar2(30) path 'Creation-Time'
         ) x
    ;If you're working in PL/SQL, and the XML resides in a variable, you can directly do (with necessary datatype conversion in the SELECT) :
    insert into your_table ( <your_columns_list> )
    select <your_columns_list>
    from XMLTable(
          '/Message-Header'
          passing your_xml_var
          columns
            message_id          number       path 'Message-Id',
            sender_company_id   number       path 'Sender-Company-ID',
            sender_company_name varchar2(30) path 'Sender-Company-Name',
            sender_user_id      varchar2(30) path 'Sender-User-ID',
            recv_company_id     varchar2(30) path 'Recv-Company-ID',
            recv_company_name   varchar2(30) path 'Recv-Company-Name',
            creation_time       varchar2(30) path 'Creation-Time'
         ) x
    ;

Maybe you are looking for