Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Storing Binary Data in varchar2 fields

Storing Binary Data in varchar2 fields

From: Ed Barker <barkeref_at_sigcomp.com>
Date: 12 Jun 2003 12:32:51 -0700
Message-ID: <85674179.0306121132.367be07c@posting.google.com>


We have a need to define a table that will store a variable amount of binary data in a column. The length will be less than 4000 bytes.

I have been told that there is overhead involved when using blob fields. This is an OLTP app with heavy traffic (select, update). Performance in updating and selecting this data is critical. This binary data will never be part of our selection criteria, but we will always be returning it in our queries and we will be updating it.

Since the length of our data is small, we were hoping to avoid that overhead by making the column varchar2. However, I have read some information that indicates that I can not store binary data in a varchar2 field because Oracle will perform translations.

I have also read that the raw datatype is merely varchar2 without any translation, which sounds like what I want. However, the docs indicate that blobs should be used as of 8i (we are using 9.2).

My questions are:

Thanks for any help. Received on Thu Jun 12 2003 - 14:32:51 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US