Need guidence to store scan pdf in oracle 10g

Hello guru
I have 20000000 (2 corer) A4 size scan pdf containing text and images having
Average size 0f 0.5 mb. please guide me how can i store it in oracle database and what i have to do for same.
I am using oracle 10g forms as a front end for inserting & retriving scan pdf from database.
Regards
Vishal

Vishal,
Here are 2 options , first you can use either procedure or anonymous block to load clob data
First Method -- I loaded alert.log successfully and you can imagine how big this file can be (5MB in my test case), in your case you need to specify your pdf file. CLOB/BLOB can take upto 4GB data
Make sure you have privs to create , read or write to directory
create table t1clob (
clob_data clob  -- you can use blob
CREATE OR REPLACE DIRECTORY DIR AS '/my_path_to_pdf_file/pdf';
DECLARE
   clob_data   CLOB;
   clob_file   BFILE;
BEGIN
   INSERT INTO t1clob
   VALUES (EMPTY_CLOB ())
   RETURNING clob_text INTO clob_data;
   clob_file   := BFILENAME ('DIR', 'wwalert_dss.log');
   DBMS_LOB.fileopen (clob_file);
   DBMS_LOB.loadfromfile (clob_data,
                          clob_file,
                          DBMS_LOB.getlength (clob_file)
   DBMS_LOB.fileclose (clob_file);
   COMMIT;
END;
Second Method: Use of Sqlldr
Example of controlfile
LOAD DATA
INFILE alert.log "STR '|\n'"
REPLACE INTO  table t1clob
   clob_text char(30000000)
)Also check this link for more example
http://www.oracle-base.com/articles/10g/LoadLobDataUsingSqlLoader.php
Hope this helps.
Regards
Edited by: OrionNet on Feb 6, 2009 11:59 PM

Similar Messages

  • TNS configuration needs ocijdbc11.dll : I want to use Oracle 10g client

    I configured apex-config.xml to use a TNSNAME. I deployed the APEX listener in a standalone OC4J 10.1.3.5.
    It asks for ocijdbc11.dll to be in -Djava.library.path.
    This means an Oracle 11g client is required. Why isn't it possible to use an Oracle 10g client installation? Is there a way to use an Oracle 10g installation in combination with the OC4J APEX listener?
    I do'n't want to use the "thin" methode because this cannot be used in an Oracle RAC environment as far as I know (at least not with failover).

    Hello,
    as far as I know, you can use the thin driver to connect to RAC. If I don't remember this wrong, you should be able to configure the URL like this:
    jdbc:oracle:thin:@(DESCRIPTION=(LOAD_BALANCE=on)
    (ADDRESS=(PROTOCOL=TCP)(HOST=host1) (PORT=1521))
    (ADDRESS=(PROTOCOL=TCP)(HOST=host2) (PORT=1521))
    (CONNECT_DATA=(SERVICE_NAME=service)))Just my personal opinion: If you want to use a "fat" client, it shouldn't be too hard to install a 11g client. Of course, this will require additional space on your app server, but I like the thought that Oracle tries to keep the APEX Listener a lightweight application that works pretty good for most scenarios. If you try to make it compatible with every option and every version, this wouldn't stay that way.
    -Udo

  • Help needed to use only SQR reporting with Oracle 10g

    I have very old SQR reports (ver 2.28) that are still being used by connecting SQR to an Oracle7 DB. We have migrated the data from Ora7 to Oracle 10.2.0.4. The issue is that SQR 2.28 is not able to connect to Oracle 10.2.0.4. Hence I want to use the new version of SQR that is part of OBIEE.
    I am not familiar with OBIEE and my interest is only using the SQR portion of it.
    1. Can any one help me as to how to go about installing SQR portion of OBIEE on a Linux Itanium 64-bit box? My Oracle 10.2.0.4 DB is also running on the same box.
    2. What are the minimum components of OBIEE I need to install to make use of SQR ?
    3. Any other relevant information
    Thanks.

    When installing webgate, make sure the Access Server is running. You will get this error if Access Server is down or not reachable. ( Make sure from the machine where you are installing webgate you can ping to Access Server by Name).
    Thanks
    Ram

  • Oracle 10g dba handbook (oracle press) in pdf ?

    Hi,
    does anyone know whether a pdf of oracle 10g dba handbook is available (and where/how I can get it) ?
    thanks in advance.
    Leo

    Thanks,
    but I'm looking for the mcgraw-hill oracle press oracle 10g dba handbook.
    Leo

  • How to install oracle 10g in MAC OS X LION

    Can some one help me in installing oracle 10g in my mac os xlion.. I also need to know where can i download ORACLE 10g for mac ??

    Hi,
    About installing Oracle 10g in OS X Lion, I think you may need to install in other platform such as LINUX. Because Oracle 10g R2 installer packages were removed from OTN site which it may end-of-support.
    Best regards,
    Jeansth

  • Regarding MOSD 454811.1 ( Upgrading OracleAS 10g Forms and Reports in Oracl

    I Installed R12.1.1 and now upgrading it to 12.1.3. I am following document 1080973.1.
    As per MOSD 1080973.1, We need to upgrade Upgrading to the Latest OracleAS 10g 10.1.3.x Patch Set in Oracle E-Business Suite Release 12.
    Currently Version is 10.1.2.3 and in the document it's written that after applying all the patches, Chk that version should be 10.1.2.3
    Do I really need 10G AS form & report upgradation ?

    Hi..10.1.3.X is for IAS ORACLE HOME. I am asking about FORMS & REPORT HOMESorry, I got confused with your line --> "As per MOSD 1080973.1, We need to upgrade Upgrading to the Latest OracleAS 10g 10.1.3.x Patch Set in Oracle E-Business Suite Release 12. "
    Currently Version is 10.1.2.3 and in the document it's written that after applying all the patches, Chk that version should be 10.1.2.3
    Do I really need 10G AS form & report upgradation ?Yes, you need it. As mentioned in the doc "If customers are already on 10.1.2.3.0, follow instructions in Step 3.2 to apply the bundle patch.".
    Thanks,
    Hussein

  • Manipulate databases in Oracle 10g XE R2

    Hi all,
    I need to create and manipulate databases in Oracle 10g XE R2 using perl DBI:1.607
    please can someone help me with some documentation
    thank you in advance

    user10984468 wrote:
    Hi all,
    I need to create and manipulate databases in Oracle 10g XE R2 using perl DBI:1.607
    please can someone help me with some documentation
    thank you in advanceThis does not appear to be an issue with documentation. (Note the title of the forum.)
    It does appear to be a request for documentation. Your question is best asked in the Database category - go to http://forums.oracle.com, scroll down to Databases, expand that category (click on More...), look for Express Edition.
    The XE docs are at http://www.oracle.com/pls/xe102/homepage
    Much more info about XE is at http://www.oracle.com/technology/products/database/xe/index.html

  • Installing Oracle 10g RS2 in Solaris 10

    Hello Guys .. I need a tutorial on "How to Install Oracle 10g RS2" on Solaris 10 .. Please help me ...

    hi
    what do u mean by Oracle 10g RS2 what RS2 stands for
    well
    Oracle installation of 10G Release 2 on solaris
    if its x86 then see this
    http://download.oracle.com/docs/cd/B19306_01/relnotes.102/b15696/toc.htm
    if its sparc64 then see this
    http://download.oracle.com/docs/cd/B19306_01/relnotes.102/b15689/toc.htm
    if this x86-64 then this
    http://download.oracle.com/docs/cd/B19306_01/relnotes.102/b15703/toc.htm
    hope this helps
    CHeers

  • Oracle 10g on VMS

    Guys,
    Need some input on can we install Oracle 10g on VMS OS.
    Actually we have an application running on VMS and DB is RDB.
    Planning for migration to Oracle. Needs to know will Oracle be supported in VMS or do we need to move the scripts too to UNIX or someother OS.
    Thanks in advance for your suggestions.
    Regards,
    S.Muthukumar.

    Here you can find all the certified OS for Oracle 10g:
    http://www.oracle.com/technology/software/products/database/oracle10g/index.html
    And I can see OpenVMS in that....
    Daljit Singh

  • Advantages of Oracle 10g over Sybase

    Hi All,
    I need a quick help on advantages of Oracle 10g that it has over Sybase. Please suggest any good links/docs.
    Thanks in advance
    Aditi

    Here's an old one ...
    http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:1886476148373
    C.

  • Oracle 10g on debian

    Hi every one I need to know if I can install oracle 10g on debian sarge rc2. becouse I can install from oracle repositories oracle 10g express.
    Thanks.

    This occurs because 10g is only supposed to run on enterprise-grade Linux, like RedHat Enterprise or SuSE.
    This workaround worked for me on Fedora, it may or may not on Debian:
    Log in as root. First, we need to fool Oracle into thinking we’re running an “enterprise” version of Red Hat instead of Fedora. Open /etc/redhat-release in a text editor and comment the first line while adding a second one:
    # Fedora Core release 2 (Tettnang)
    Red Hat Enterprise Linux AS release 3
    You can obviously just add the second line in and not worry about commenting the first one (since it doesn't exist).

  • Convert Window Oracle 10g to Linux Oracle 11g

    HI Experts
    My current version is Oracle 10g on Window and i want to convert on Oracle 11g on Linux.
    What will be the best way to convert it ? can possible to direct convert
    or i need to be database migration from window Oracle 10g to Linux Oracle 10g and then covert from Linux Oracle 10g to Linux Oracle 11g.
    If the direct conversion is possible then please let me know the way or if u have document then please share it.
    I searched lot but i didn't get anything.....
    Thanks in advance

    What is the expected downtime duration ?
    What is the database size ?
    For a "small" database with no downtime constraint you could use Data Pump to move data.
    For a "large" database with minimum downtime you could use Oracle Streams (with Enterprise Edition) or Golden Gate (separate product: needs new licensing).
    You can find detailed migration/upgrade recommendations and scenarios on OTN database upgrade page:
    http://www.oracle.com/technetwork/products/upgrade/index.html
    Edited by: P. Forstmann on 22 mars 2013 13:03

  • Error while trying to store PDF in Oracle's BLOB field

    Hi folks!
    I'm having problems while trying to store PDF file in a BLOB field of an Oracle table
    This is the message code:
    Exception in thread "main" java.sql.SQLException: Data size bigger than max size for this type: 169894
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
    at oracle.jdbc.ttc7.TTCItem.setArrayData(TTCItem.java:95)
    at oracle.jdbc.dbaccess.DBDataSetImpl.setBytesBindItem(DBDataSetImpl.java:2414)
    at oracle.jdbc.driver.OraclePreparedStatement.setItem(OraclePreparedStatement.java:1134)
    at oracle.jdbc.driver.OraclePreparedStatement.setBytes(OraclePreparedStatement.java:2170)
    at vgoactualizacion.Main.main(Main.java:84)     
    This is the piece of code i'm using:
    Assuming conn = conection to Oracle 10g Database ( it's working )
    String miProcedimientoAlmacenado = "{ call package_name.update_client(?,?, ?) }";
    CallableStatement miComando = conn.prepareCall(miProcedimientoAlmacenado);
    miComando.setString(1,miClienteID ); //first parameter : IN
                   //second parameter : IN
    File miPDF = new File(pathPDF + "//" + miClienteID + ".pdf");
    byte[] bodyIn = readFully(miPDF); //readFully procedure is shown below
    miComando.setBytes(2, bodyIn); //THIS IS THE LINE WHERE THE ERROR IS PRODUCED
              //3rd parameter: OUT
    miComando.registerOutParameter(3, java.sql.Types.VARCHAR);
    miComando.execute();
    private static byte[] readFully(File miPDF) throws FileNotFoundException, IOException {
    FileInputStream fis = new FileInputStream(miPDF);
    byte[] tmp = new byte[1024];
    byte[] data = null;
    int sz, len = 0;
    while ((sz = fis.read(tmp)) != -1) {
    if (data == null) {
    len = sz;
    data = tmp;
    } else {
    byte[] narr;
    int nlen;
    nlen = len + sz;
    narr = new byte[nlen];
    System.arraycopy(data, 0, narr, 0, len);
    System.arraycopy(tmp, 0, narr, len, sz);
    data = narr;
    len = nlen;
    if (len != data.length) {
    byte[] narr = new byte[len];
    System.arraycopy(data, 0, narr, 0, len);
    data = narr;
    return data;
    }//fin readFully
    This approach indicates that the PDF file is converted into an array of bytes, then is stored as binary in the BLOB field.
    Thanx in advance, and looking forward for your comments.

    You will probably need to use the setBinaryStream() method instead of setBytes().

  • How can I change the file version for scanned PDFs to 1.4 when using the "PDF from Scanner" feature from Acrobat XI? By default it's always saved as 1.5.

    Because our IT system can only handle PDFs with versions up to 1.4, we need to "PDF from scanner" feature to store the scanned PDFs in version 1.4.
    Acrobat 9 always saved it in 1.4, but starting with Acrobat X, the PDFs are saved in 1.5.
    There must be a setting or configuration somewhere where I can change this.
    I already tried modifying the distiller's standard joboptions, but that did not work.
    Thanks for any help

    We use in our software an open-source pdf library that only supports pdf versions up to 1.4. I know it is old, but it's not that simple to exchange it.
    But I just had a look into the Actions as you suggested. This way I get it to work. It costs one additional click, so that's acceptable.
    Thanks for the support.

  • How to store a PDF in a BLOB column, then select/search it using SQL?

    We have a simple requirement.
    (1.) We have an Oracle 10g DB.
    (2.) We want to store PDFs/MS Word docs inside BLOB column in a table.
    (3.) We need to show PDF/MS Word content to the user, without opening the PDFs/MS World like we normally do (i.e. Using PDV reader/ MS Word).
    (4.) i.e. We need to use SQL statements and
          (a.) Get all contents of the PDF/MS WORD doc.
          (b.) Search for specific strings inside these docs in the BLOB columns.How to do this pls? Code sample would be really great.
    Edited by: user12240205 on Jul 18, 2012 9:35 PM
    Edited by: user12240205 on Jul 18, 2012 9:37 PM

    rp0428 wrote:
    >
    We have a simple requirement.
    >
    Really? You mean as opposed to a requirement that might actually be doable?Could be that simple is used as in stupid ? Like in, "+look at this simply idiotic requirement, blah.. blah...+"? ;-)
    @user12240205:
    BLOBs contains binary data. Not text data. How do you propose to search binary data for strings?
    PDF and Word formats include actual text strings and identifiers as part of the formatting. How do you propose that this be identified and ignored when searching for specific strings in the document's content?
    PL/SQL does not have the ability to take a page from a PDF/Word document, highlight the search string, and display that to the client. A format-parser is needed to parse the PDF/Word format and generate that as content (e.g. HTML or XML) that can be rendered by a client. How do you propose PL/SQL serves up search strings that it found, when it cannot interpret the document format? (cannot even say what page, section or paragraph, that search string occurs)
    Documents can be loaded via the DBMS_LOB interface. Either from the db server's file system, or by the client supplying the document as chunks for "write appending" to a BLOB. See Oracle® Database PL/SQL Packages and Types Reference guide for details.
    Text search and document indexing are supported by an Oracle feature called Content Management<a> (which includes interMedia, UltraSearch, Oracle Text, etc).
    Oracle also supports (on Window server platforms), the Microsoft Component Object Model (COM). COM interfaces (such as COM for Word) can be used for specialised processing (e.g. searching Word documents). Oracle's COM feature allows one to interface directly with external s/w (e.g. MS Word) via its COM interface.

Maybe you are looking for

  • Enhancement Pack 3

    Hi All, Has anybody implemented Enhancement Pack 3 and activated the profit center authorization?  We curious to hear about the posting and display of documents based on users' profit center authorization. Also, does Enhancement Pack 3 allow profit c

  • What is Adobe Flash Player Utility

    What is Adobe Flash Player Utility that I see in my Windows 8 Task Manager?? I found a way to disable it by renaming a couple Flash files in the Windows folder. And so far I see no ill effects. Also, when I try to change the Updates in Global Setting

  • How to re install itunes 6.0, itunes 7.0 playback of videos is horrible

    hello~ I updated to itunes 7, only to find out that it requires 500 mghz.. of which i only have 450 mghz.. so the videos are delayed and horrible. now i am trying to install itunes 6.0.. but i can only find itunes 6.05 which is an update. they want m

  • SRM , HR replication and default address

    Hi, HR data is not with address (e.g Organization ). I would like to 'default' an address when I replicate the Organizations. How do I do it ? Please help With regards, Pranav

  • SAPScript RDI output

    Hi, Can anyone help me on this. I've to output the SD documents using a 3rd party tool called AUTOFORM. Does anyone have any white paper or any such kind of information related to RDI in connection with SAPScript. Thanks in advance. regards, Satya [e