Which is better? store files in the database or directly on the O.S.?

Hi,
i´m developing an application to manager files. which is better? store files in the database or directly on the O.S.? If i decide to store on database, i will use the BLOB data type but i have a doubt...the BLOB data type occupies the same space on database regardless of file size? there is another data type better?
Tks,
Fernando.

http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:1011065100346196442
Ask Tom has a bit of info to share on the topic. Have a read of this. :)

Similar Messages

  • Hello Anybody, I have a question. Can any of you please suggest me how to make an xml file from the database table with all the rows? Note:- I am having the XSD Schema file and the resulted XML file should be in that XSD format only.

    Hello Anybody, I have a question. Can any of you please suggest me how to make an xml file from the database table with all the records?
    Note:- I am having the XSD Schema file and the resulted XML file should be in that XSD format only.

    The Oracle documentation has a good overview of the options available
    Generating XML Data from the Database
    Without knowing your version, I just picked 11.2, so you made need to look for that chapter in the documentation for your version to find applicable information.
    You can also find some information in XML DB FAQ

  • Verify that the database is created with the correct path  specification

    Dear All
    When I installed DB2 9.1 with SP4 on windows 2003 64 bit,I use Configuration Assistant tool which is problem
    SQL1031N  The database directory cannot be found on the indicated file system.  SQLSTATE=58031
    Explanation:
    The system database directory or local database directory could
    not be found.  A database has not been created or it was not
    cataloged correctly. 
    The command cannot be processed. 
    User Response:
    Verify that the database is created with the correct path
    specification.  The Catalog Database command has a path parameter
    which specifies the directory where the database resides. 
    sqlcode :  -1031
    sqlstate :  58031
    Thanks

    Hi Phuc,
    Could you please validate, that the database TST is located in driver H: ?
    If the database is there, you find a directory with the name of your instance under the H: drive, inside this directory, you must find a NODE0000 directory and finally inside the NODE0000 directory there must be a SQL0000? directory, where ? is a number.
    You get your instance name from the environment variable DB2INSTANCE or simply by the execution of:
    db2 get instance
    If there is no SQL0000? directory at all, this means the database is located somewhere else.
    If there is SQL0000? directory in that drive, you can perform the following:
    db2 CATALOG DB TST AS TST ON H:
    And provide the error message, if any.
    Hope this helps
    Best regards, Edgardo

  • If the database is shutdown when the applcation is running what is happened

    I am using coneection pool to connect database. If the database is shutdown when the applcation is running what is happened? and how the database will be reconnected.
    I am using MySQL 3.23.52, Tomcat 4.1.12

    Hi,
    Performance of any n-tier system which takes the advantage of connection pooling will be much higher compared to its non-pooled counterpart.
    You have to be very careful while designing/using a connection pool.if u are using pool obtained from a third party,ur control on this pool will be limited - with a few set/get methods.
    A well designed pool wont create much trouble. if u are creating your own pool, basic steps required are
    1.create 'n' number of connections
    2.whenever user requests for a connection, check the validity of the connection- by sendin a simple select query etc- and if its not stale,give this connection to the caller.
    3.if the connection is stale ie it fails the pretest, close all the connections and create the pool afresh.
    4.connections obtained from the pool will be automatically returned back to the pool whenever the applciation call conn.close().
    from ur application, follow the steps for each connection you use (not necessary for a well designed pool)
    1.call ds.getconnection()
    2.check validity of this connection by sending a simple select query.if it works,everything is fine. otherwise something is wrong with connection(not always).
    3.sql exception may occur during the execution of sql query. this can be due to either
    a.database shut down (network related)
    b.database specific - like wrong query,invalid objects etc
    you have to look at the sql state/vendor code (which can be retrieved from the caught exception). the retrieved code will give you a hint why the error (network or database specific).and you can act accordingly.
    Most of the app servers comes with builtin connection pooling module. and handling stale connection is not a difficult task for the programmer. eg: if you are designing applcations for IBM websphere, you can use StaleConnectionException in your code.if this exception is caught,the whole pool is destroyed and created afresh.
    HTH,
    -asharafkk

  • Adstrtal.sh: Database connection could not be established. Either the database is down or the APPS credentials supplied are wrong.

    In our R12.1.3 EBS, on RHEL 5.5, 64-bit, we are getting this error -
    adstrtal.sh: Database connection could not be established. Either the database is down or the APPS credentials supplied are wrong.
    However, neither the db is down nor the APPS password is wrong. I am able to connect from sqlplus from application tier. And also from the 10.1.3 home. I have checked similar threads here but none helped. Raised an SR yesterday but that too hasn't helped yet.
    Any ideas?
    Regards,
    Vinod

    please post he output of
    SQL> show parameter sec_case_sensitive_logon
    $ECHO TWO_TASK
    clean FND NODES
    How to Clean Nonexistent Nodes or IP Addresses From FND_NODES [ID 260887.1]
    Check if all services are down on application node, no process should be running.
    shut down db listener and database
    reboot the server
    start or reload listener on DB node and start the database
    Run autoconfig on db tier -- make sure it completes successfully.
    Run autoconfig on all apps tier -- make sure it completes successfully.
    Now, try to start applications on middle tier.
    ApPsMaStI
    sharing is Caring

  • I am trying to reinstall CS3 from a download I bought several years ago, and it is saying my serial number is invalid.  I am taking the serial number directly from the list of products on my Adobe account.  Please advise

    I am trying to reinstall CS3 from a download I bought several years ago, and it is saying my serial number is invalid.  I am taking the serial number directly from the list of products on my Adobe account.  Please advise

    Uninstall and try the Adobe Creative Suite Cleaner Tool before reinstalling - it helps resolve installation problems for CS3 thru CS6 and for Creative Cloud
    http://www.adobe.com/support/contact/cscleanertool.html

  • Hi! I do not find the option "Character Direction" in the palette "Paragraph"!

    I do not find the option “Character Direction” in the palette “Paragraph”! I use Yosemite for Mac and Indesign CS6, CC and CC2014.

    You have to install additionally a MENA version to your version. You have to change the application language in the CC app and install again.

  • Is it possible listen to the itunes radio directly from the Musica App on iPhone?

    I'v got an iPhone 5 and a MacBook Pro. Is it possible listen to the itunes radio directly from the Music App on iPhone?

    iTunes in the Cloud, iTunes Match, and iTunes Radio availability
    Sorry....  Italy is not on the list.

  • Assigning the cost center directly to the person

    Dear friends
    We have to assign the cost center to position, and when the position is assigned to a person, he inherits the cost center from the position
    But the requirement is to assign the cost center directly to the person, with out assigning to the position, can you suggest any alternate to do this
    Regards
    Kiran

    Hello
    Maintain infotype 0027 from pa30 for the personnel number directly....
    cheers

  • Why the game: Injustice, when play with the challenge will direct close the game? Please fix it.

    Why the game: Injustice, when play with the challenge will direct close the game? Please fix it.

    You need to speak to the developer. They should have some sort of contact link on their iTunes page.  This is just a user to user tech support forum, no one here has any sort of control over apple or what developers do.
    The game developer may also have some sort of fix on their site, so look there.

  • Which is better to install Oracle 11g database based on ASM or Filesystem

    We will install 2 sets of Oracle 11.2.0.3 on Redhat Linix 5.6 and configure Data Guard for them further -- one will be a primary DB server, the other will be a physical standby DB server. The Oracle DB stoage is based on SAN Array Disk with 6TB size. Now there are two options to manage the DB datafiles:
    1. Install Oracle ASM
    2. Create the tranditional OS filesystem
    Which is better? in the past, our 10g data guard environment is not based on Oracle ASM.
    Someone think if we adopt the oracle ASM, the shortcomings are :
    1. as there is one more instance that will consume more memory and resource.
    2. as the ASM file system cannot be shown out on the OS level directly such as "df" command, the disk utilization monitor job will be more difficult. at least it cannot be supervised at OS level.
    3. as the DB bshoule be done the daily incremental backup (Mon-Sat) to Local Backup Drive. the bakup job must be done by RMAN rather than user-managed script.
    Who can provide some advices? Thanks very much in advance.

    user5969983 wrote:
    We will install 2 sets of Oracle 11.2.0.3 on Redhat Linix 5.6 and configure Data Guard for them further -- one will be a primary DB server, the other will be a physical standby DB server. The Oracle DB stoage is based on SAN Array Disk with 6TB size. Now there are two options to manage the DB datafiles:
    1. Install Oracle ASM
    2. Create the tranditional OS filesystem
    Which is better? in the past, our 10g data guard environment is not based on Oracle ASM. ASM provides a host of new features ito data management, and performance - to the extent that you can rip out the entire existing storage system, replace it with a brand new storage system, without a single second of database downtime.
    Someone think if we adopt the oracle ASM, the shortcomings are :
    1. as there is one more instance that will consume more memory and resource.Not really relevant on 64bit h/w architecture that removes limitations such a 4GB of addressable memory. On the CPU side... heck, my game PC at home has a 8 core 64bit CPU. Single die and dual core CPUs belong to the distant past.
    Arguing that an ASM instance has overheads would be silly. And totally ignores the wide range of real and tangible benefits that ASM provides.
    2. as the ASM file system cannot be shown out on the OS level directly such as "df" command, the disk utilization monitor job will be more difficult. at least it cannot be supervised at OS level.That is a A Very Good Thing (tm). Managing database storage from o/s level is flawed in many ways.
    3. as the DB bshoule be done the daily incremental backup (Mon-Sat) to Local Backup Drive. the bakup job must be done by RMAN rather than user-managed script.
    rman supports ASM fully.
    I have stopped using cooked file systems for Oracle - I prefer ASM first and foremost. The only exceptions are tiny servers with a single root disk that needs to be used for kernel, database s/w, and database datafiles. (currently these are mostly Oracle XE systems in my case, and configured that way as XE does not support ASM and is used as a pure cost decision).

  • Which is better for performance Azure SQL Database or SQL Server in Azure VM?

    Hi,
    We are building an ASP.NET app that will be running on Microsoft Cloud which I think is the new name for Windows Azure. We're expecting this app to have many simultaneous users and want to make sure that we provide excellent performance to end users.
    Here are our main concerns/desires:
    Performance is paramount. Fast response times are very very important
    We want to have as little to do with platform maintenance as possible e.g. managing OS or SQL Server updates, etc.
    We are trying to use "out-of-the-box" standard features.
    With that said, which option would give us the best possible database performance: a SQL Server instance running in a VM on Azure or SQL Server Database as a fully managed service?
    Thanks, Sam

    hello,
    SQL Database using shared resources on the Microsft data centre. Microsoft balance the resource usage of SQL Database so that no one application continuously dominates any resource.You can try the 
    Premium Preview
    for Windows Azure SQL Database which offers better performance by guaranteeing a fixed amount of dedicated resources for a database.
    If you using SQL Server instance running in a VM, you control the operating system and database configuration. And the
    performance of the database depends on many factors such as the size of a virtual machine, and the configuration of the data disks.
    Reference:
    Choosing between SQL Server in Windows Azure VM & Windows Azure SQL Database
    Regards,
    Fanny Liu
    If you have any feedback on our support, please click here. 
    Fanny Liu
    TechNet Community Support

  • How to recover the database when some of the archive log file get deleted.

    I am facing a problem with Oracle database, which is related to archivelogs.
    Our development database is running in archivelog mode, but we don't have backups scheduled and have no recovery catalog.
    When the database was in running condition, disk got full, so some archivelogs were deleted manually.
    After this they restarted the DB, and now DB is not coming up. Errors are as follows:
    SQL> startup
    ORACLE instance started.
    Total System Global Area 1444383504 bytes
    Fixed Size 731920 bytes
    Variable Size 486539264 bytes
    Database Buffers 956301312 bytes
    Redo Buffers 811008 bytes
    Database mounted.
    ORA-01589: must use RESETLOGS or NORESETLOGS option for database open
    SQL> alter database open resetlogs;
    alter database open resetlogs
    ERROR at line 1:
    ORA-01113: file 1 needs media recovery
    ORA-01110: data file 1: '/export/home/oracle/dev/ADVFRW/ADVFRW.system'
    SQL> recover datafile '/export/home/oracle/dev/ADVFRW/ADVFRW.system'
    ORA-00283: recovery session canceled due to errors
    ORA-01610: recovery using the BACKUP CONTROLFILE option must be done
    SQL> recover database using backup controlfile;
    ORA-00279: change 215548705 generated at 09/02/2008 17:06:10 needed for thread
    1
    ORA-00289: suggestion :
    /export/home/oracle/dev/ADVFRW/ADVFRW.archivelog1/LOG_ADVFRW_1107_1.ARC
    ORA-00280: change 215548705 for thread 1 is in sequence #1107
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    /export/home/oracle/dev/ADVFRW/ADVFRW.archivelog1/LOG_ADVFRW_1107_1.ARC
    ORA-00308: cannot open archived log
    '/export/home/oracle/dev/ADVFRW/ADVFRW.archivelog1/LOG_ADVFRW_1107_1.ARC'
    ORA-27037: unable to obtain file status
    SVR4 Error: 2: No such file or directory
    Additional information: 3
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    CANCEL
    Media recovery cancelled.
    SQL>
    1. How to recover the database and bring it online
    Any help will be highly appreciated.
    With Regards
    Hemant Joshi
    Edited by: hem_Kec on Sep 7, 2008 9:07 AM

    Hi,
    Archive log files are the copies of redolog files.As redo log files are circularly overwritten,oracle generates archive log file of the corresponding redo logfiles being overwritten.So if you have a backup that dates back to 10 am in the morning and if your database creashed at 3 pm,you cannot use the redo log files alone as they have incomplete information.To completely recover the database upto 3 pm,you need archive log files generated between 10 am to 3 pm. In your case since you are missing one archive log file,you cannot perform complete recovery and hence would suffer data loss.

  • How to store files in mysql database using JSP?

    I'm developing an online recruitment system using JSP in server side. For the users who registers in it, I want them to upload their cv's from the web site so that I can store it in the database..I'm using mysql as the db..
    Can I know how to do it.?..or else is there any better way of doing that?
    Need a quick reply..Tx

    The best way to put data in a database in a JSP is to not do it. Instead, use a Servlet that calls a DataAccessObject. The DAO puts the data in the DB and the servlet gives the data to the DAO. The JSP does nothing but display results.
    Take a google for JSP MVC and DAO. BalusC has a great example of DAO and a JSP that uses one on his blog.

  • How to store file content in database??????

    how to store file in database and retrived

    How to use Google to search for answers to questions that have been asked literally thousands of times previously??????
    How to post into the correct forum???????
    How to use less punctuation??????

Maybe you are looking for