dbTalk Databases Forums  

Blobs vs Bfile in 10g. Pros and Cons?

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss Blobs vs Bfile in 10g. Pros and Cons? in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Rich
 
Posts: n/a

Default Blobs vs Bfile in 10g. Pros and Cons? - 11-07-2009 , 01:08 PM






Our department is uses 10g.

We will be loading PDF files and/or pictures into our database.

What are the pros and cons verses Bfile and Blobs. What has been your
experience?

Regards

Reply With Quote
  #2  
Old   
Shakespeare
 
Posts: n/a

Default Re: Blobs vs Bfile in 10g. Pros and Cons? - 11-08-2009 , 01:40 PM






Rich schreef:
Quote:
Our department is uses 10g.

We will be loading PDF files and/or pictures into our database.

What are the pros and cons verses Bfile and Blobs. What has been your
experience?

Regards
LOBS reside inside your database, and thus are included in your backup,
securtity etc. Uploading will take some time.
BFiles are pointers to objects outside your database, and will not be
backed up with regular database backups. But on the other hand, are
easier to read/write woth tools outside the database.


It all depends on your business requirements...

Shakespeare

Reply With Quote
  #3  
Old   
Jeremy
 
Posts: n/a

Default Re: Blobs vs Bfile in 10g. Pros and Cons? - 11-09-2009 , 04:03 AM



In article <4af71e92$0$83251$e4fe514c (AT) news (DOT) xs4all.nl>, whatsin (AT) xs4all (DOT) nl
says...>
Quote:
Rich schreef:
Our department is uses 10g.

We will be loading PDF files and/or pictures into our database.

What are the pros and cons verses Bfile and Blobs. What has been your
experience?

Regards

LOBS reside inside your database, and thus are included in your backup,
securtity etc. Uploading will take some time.
BFiles are pointers to objects outside your database, and will not be
backed up with regular database backups. But on the other hand, are
easier to read/write woth tools outside the database.


It all depends on your business requirements...
BFILE method of course also means no db-enforced referential integrity -
you have no means of knowing that the BFILE is still present, it has
been altered etc.

--
jeremy

Reply With Quote
  #4  
Old   
Rich
 
Posts: n/a

Default Re: Blobs vs Bfile in 10g. Pros and Cons? - 11-09-2009 , 01:45 PM



On Nov 8, 2:40*pm, Shakespeare <what... (AT) xs4all (DOT) nl> wrote:
Quote:
Rich schreef:

Our department is uses 10g.

We will be loading PDF files and/or pictures into our database.

What are the pros and cons verses Bfile and Blobs. What has been your
experience?

Regards

LOBS reside inside your database, and thus are included in your backup,
securtity etc. Uploading will take some time.
BFiles are pointers to objects outside your database, and will not be
backed up with regular database backups. But on the other hand, are
easier to read/write woth tools outside the database.

It all depends on your business requirements...

Shakespeare
Thanks for the reply.

I read that LOB's can store 4GB of data. Is that a grand total for the
database? Or is that per record? For example, if I have 10 records in
the database does that mean that I can have 40GB of data in the BLOB?

Reply With Quote
  #5  
Old   
Shakespeare
 
Posts: n/a

Default Re: Blobs vs Bfile in 10g. Pros and Cons? - 11-09-2009 , 04:13 PM



Rich schreef:
Quote:
On Nov 8, 2:40 pm, Shakespeare <what... (AT) xs4all (DOT) nl> wrote:
Rich schreef:

Our department is uses 10g.
We will be loading PDF files and/or pictures into our database.
What are the pros and cons verses Bfile and Blobs. What has been your
experience?
Regards
LOBS reside inside your database, and thus are included in your backup,
securtity etc. Uploading will take some time.
BFiles are pointers to objects outside your database, and will not be
backed up with regular database backups. But on the other hand, are
easier to read/write woth tools outside the database.

It all depends on your business requirements...

Shakespeare

Thanks for the reply.

I read that LOB's can store 4GB of data. Is that a grand total for the
database? Or is that per record? For example, if I have 10 records in
the database does that mean that I can have 40GB of data in the BLOB?

It's per LOB. But LOB's can be up to 128Tb since 10g.
See
http://download.oracle.com/docs/cd/B...ob.htm#i444306
But only with the OCI interface.

See also

http://download.oracle.com/docs/cd/B...e.htm#i1012579

but that article is full of errors and looks like it's written in a hurry.

Shakespeare

Reply With Quote
  #6  
Old   
Vladimir M. Zakharychev
 
Posts: n/a

Default Re: Blobs vs Bfile in 10g. Pros and Cons? - 11-12-2009 , 09:14 AM



On Nov 9, 10:45*pm, Rich <richma... (AT) earthlink (DOT) net> wrote:
Quote:
On Nov 8, 2:40*pm, Shakespeare <what... (AT) xs4all (DOT) nl> wrote:



Rich schreef:

Our department is uses 10g.

We will be loading PDF files and/or pictures into our database.

What are the pros and cons verses Bfile and Blobs. What has been your
experience?

Regards

LOBS reside inside your database, and thus are included in your backup,
securtity etc. Uploading will take some time.
BFiles are pointers to objects outside your database, and will not be
backed up with regular database backups. But on the other hand, are
easier to read/write woth tools outside the database.

It all depends on your business requirements...

Shakespeare

Thanks for the reply.

I read that LOB's can store 4GB of data. Is that a grand total for the
database? Or is that per record? For example, if I have 10 records in
the database does that mean that I can have 40GB of data in the BLOB?
For the sake of manageability, consistency, security, reliability,
portability, etc. don't even think about using BFILEs (they have their
uses but storing binary data in an Oracle database is not one of
them.) LOBs are the way to go as they provide for all of the above and
a lot more. Initially loading existing files into the database will
take some time, but your effort will surely be rewarded. and it won't
take long anyway. There are many ways to accomplish this: SQL*Loader,
XML DB, PL/SQL using DBMS_LOB interfaces, some ETL tool that supports
LOB mass-loading. Getting them out is easy, too.

My $0,02.

Vladimir M. Zakharychev
N-Networks, makers of Dynamic PSP(tm)
http://www.dynamicpsp.com

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.