Persist document into BLOB column problem

Hi all

I have a problem with persistence of document in the BLOB column.

Using debuger I checked that document.doc contains the file successfully downloaded before persist. There are other attributes of the document and they are kept properly, but when I check the size of the blob in the database it size is 1 byte, which is incorrect.
Once I still the second file, first to get its value of good size and the second size is 1 byte.
If I stop the weblogic server, the second value will never fill. If I restart only request without restarting the server and then third transfer document, size of a second is corrected.


Oracle JDeveloper 11g R1 11.1.1.2.0
Oracle DataBase 10 g 2
The use of EJB and ADF 11 g RC

I put id manually.

Document.Java of the entity:
...
@Entity
@NamedQueries({
  @NamedQuery(name = "Document.findAll", query = "select o from Document o")
})
public class Document implements Serializable {
    @Id
    private Long id;
    @Lob
    private byte[] doc;
    private String title;
    private String type;
...
}
Here's persistence.xml:
<?xml version="1.0" encoding="UTF-8" ?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence" 
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
             version="1.0">
  <persistence-unit name="Model">
    <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
    <jta-data-source>jdbc/FileUDS</jta-data-source>
    <class>fu.model.entity.Document</class>
    <properties>
      <property name="eclipselink.target-server" value="WebLogic_10"/>
      <property name="javax.persistence.jtaDataSource" value="jdbc/FileUDS"/>
    </properties>
  </persistence-unit>
</persistence>
Here is the example project with the DDL for platen: [url http://uploading.com/files/52m65757/TestFileUpload.zip] TestFileUpload.zip

Very strange, seems to be a database issue. Maybe try the jdbc/database forum, or another version of the database/driver.

It is probably related to the use of job locator, you can try not to use the Locator (use OraclePlatform instead of Oracle10Platform).

---
James: http://www.eclipselink.org

Tags: Fusion Middleware

Similar Questions

  • Stored in the BLOB column display PDF problem

    Hello everyone.

    I tried to follow this tutorial http://asktom.oracle.com/pls/asktom/f?p=100:11:0:p11_question_id:232814159006 on the display of PDF files stored in BLOB columns. This is done on Apex 4.2, with my DB 11 g running. I have my procedure, which I will post below:
    create or replace procedure "PDF" (p_id IN gvo_documents.doc_id%type)
    is
        l_lob    blob;
        l_amt    number default 30;
        l_off   number default 1;
        l_raw   raw(4096);
    begin
        select contents into l_lob
            from gvo_documents 
             where doc_id = p_id;
    
     -- make sure to change this for your type!
        owa_util.mime_header( 'application/pdf' );
    
    
        begin
            loop
              dbms_lob.read( l_lob, l_amt, l_off, l_raw );
              htp.prn( utl_raw.cast_to_varchar2( l_raw ) );
              l_off := l_off+l_amt;
              l_amt := 4096;            
        end loop;
            exception
               when no_data_found then 
                  NULL;
            end;
    
    end;
    
    I am trying to run this through a region dynamic PL/SQL, and even if I don't get any error, the content displayed is a huge mess of truncated text and strange characters. I tried to run this procedure on many other types of documents, including word and jpeg image files, all with the necessary changes in my inside, and regardless of what I use, I always get a big mess of strange characters. Does anyone have information or ideas why this is happening?

    If I understand correctly, your needs must be broken down into two problems:
    1) click the link that opens a window showing a new APEX page
    (2) an APEX page displays the document, download it not.

    I did not (yet) #1.
    However, you can generate a URL that points to the new page in the select for the report.

    It's a related issue, but no response yet:
    Open the pdf file in the browser window

    The key is to target = "_blank" to the anchor tag.
    To generate the URL, you must use the APEX_UTIL.prepare_URL () function.

    If this does not work, a dynamic Action that makes magical things of JavaScript may be necessary.

    # 2, I lost the URL that showed how to display a PDF file in a page "form.
    From what I remember:
    Start with a blank page with a pristine area of HTML (all items will in the HTML area)
    Add an element to the PK/annual
    part I forgot Create a Data Manipulation process
    -Automated row Fetch
    -By loading - after the header
    -(stuff for your table/view)
    part I forgot Create a (I think) "File browser" item type. For the parameters:
    -Storage of Type "BLOB column specified in the Source element" (and put the name of the BLOB column)
    -MIME Type column: (column name) - since there are several types, this is a MUST HAVE
    -Filename column: (column name) - I highly recommend you have this.
    -Provision of content is INLINE<-- this="" is="" the="">

    In addition, you will need a browser for each of the Types MIME Plugin (if not, the browser may try to "Download" the file)
    Browsers can manage the types of images internally. Plugin Adobe can handle PDF files. I do not know Word/Excel.

    Yet once again, I don't remember the exact details, but that should cover most of it.

    MK

  • APEX - opening World document (and other files) stored in a blob column?

    Hello

    I have an application developed in Oracle Apex 3.2.1 and RDBMS Oracle 9.2.0.8 (SUN SOLARIS SPARC 64-BIT).

    I have a table called BAC_ARQUIVO, with the following structure:

    CREATE TABLE BAC_ARQUIVO
    (NAME VARCHAR2 (4000), / * name of the file stored in a BLOB column * /)
    TOPIC VARCHAR2 (4000), / * a brief presentation of this file stored * /.
    Identification NUMBER, / * an identification of this file - it s a PK of this table column * /.
    BLOB BLOB_CONTENT, / * Blob field to store different types of files - XLS, DOC, PPT, PDF, EXE, ZIP, etc.) ;
    Mime_type VARCHAR2 (4000) / * Identification whose file type is stored in BLOB field * /.
    )


    The field BLOB_CONTENT in this table can store:

    -Executable files;
    -MS-world Documents (DOC);
    -Zip Files (ZIP).
    -Ms-Excel (XLS) files;
    -Ms-Powerpoint files (PPT);
    -Adobe (PDF) documents.

    In fact, in this application, APEX, I developed an interactive report in which the user can download these files to the desktop without problem.

    But now, my user I would like to know if it s possible ask APEX can OPEN some of these files stored on this download of WITHOUT BLOB column.

    My user would like to see a hiperlink (or button) that, if you press on/accessed, can open a new page (or page within the application) with the document. Doesn´t need to edit this file oppened. He wants only to see.

    For example, if the file stored in the blob column is type ms word, so the application opens an MS-WINDOWS application with these files.

    Is this possible?

    In this forum, I saw this it possible s to open a file stored on the directory "/ i /", but I need to open the file stored in the BLOB column. I Don t want to store the file in the operating system of the server.

    Could someone show me how it could be done?

    Best regards

    Sergio Coutinho

    Hi Sergio,

    You might find this link useful:

    http://www.Oracle.com/WebFolder/technetwork/tutorials/OBE/DB/Apex/R31/apex31nf/apex31blob.htm

    See also the Mask of Format download BLOB :

    {message: id = 9716335}

    Here I gave the format mask for APEX 4.0, which will be slightly different for 3.2.1 and proposed changes
    in the format of mask are:
    (1) mask format: DOWNLOAD
    (2) content-disposition: Inline

    This will be achieved with her:
    >
    But now, my user I would like to know if it s possible ask APEX can OPEN some of these files stored on this download of WITHOUT BLOB column.

    My user would like to see a hiperlink (or button) that, if you press on/accessed, can open a new page (or page within the application) with the document. Doesn´t need to edit this file oppened. He wants only to see.
    >

    I hope that helps!
    Kind regards
    Kiran

  • How to insert data into a BLOB column using sql

    Hi all

    How to insert data into the BLOB column directly using sql.
    create  table temp
    (
      a blob,
      b clob);
    
    SQL> /
    Insert into temp  values ('32aasdasdsdasdasd4e32','adsfbsdkjf') ;
                                      *
    ERROR at line 1:
    ORA-01465: invalid hex number
    
    Please help in this.
    Thank you
    Prakash P

    Insert into temporary values (UTL_RAW. CAST_TO_RAW ('32aasdasdsdasdasd4e32'), 'adsfbsdkjf');

  • How to insert a pdf or jpeg image into a column of type blob of a table

    How to insert a pdf or jpeg image into a column of type blob of a table

    Hello
    Try this

    Loading an image into a BLOB column and showing through OAS
    -------------------------------------------------------------

    The steps are:

    Step 1.
    -------

    Create a table to store BLOBs:

    create BLOB table objects
    (id VARCHAR2 (255),)
    blob_col blob
    );

    Step 2.
    -------

    Create a logical directory in the database to the physical file system:

    create or replace the MY_FILES directory as "c:\images";

    Step 3.
    -------

    Create a procedure to load the BLOB from the file system by using the logic
    Directory. Gif 'aria.gif' must exist in c:\images.

    create or replace procedure insert_img as
    f_lob bfile.
    b_lob blob.
    Start
    insert into BLOB ("MyGif", empty_blob()) values
    return blob_col in b_lob;

    f_lob: = bfilename ("MY_FILES', 'aria.gif');
    DBMS_LOB. FileOpen (f_lob, dbms_lob.file_readonly);
    DBMS_LOB. LoadFromFile (b_lob, f_lob, dbms_lob.getlength (f_lob));
    DBMS_LOB. FileClose (f_lob);
    commit;
    end;
    /

    Step 4.
    -------

    Create a procedure that is called via Oracle Application Server to display the
    image.

    create or replace procedure get_img as
    vblob blob.
    raw buffer (32000);
    buffer_size integer: = 32000;
    offset of an integer: = 1;
    length of number;
    Start
    owa_util.mime_header('image/gif');
    Select blob_col from vblob of blobs where id = 'MyGif. "
    Length: = dbms_lob.getlength (vblob);
    While offset< length="">
    DBMS_LOB. Read (vblob, buffer_size, offset, buffer);
    HTP. PRN (utl_raw.cast_to_varchar2 (buffer));
    offset: = offset + buffer_size;
    end loop;
    exception
    while others then
    HTP.p (SQLERRM);
    end;
    /

    Step 5.
    -------

    Use the PL/SQL cartridge to call the get_img procedure

    OR

    Create this procedure in function and call it your PL/SQL code for
    correctly place the images on your HTML page through the PL/SQL Toolbox.

    from a html form

    1. create an HTML form where the image will be. You too
    need the file MIME type.
    2. create a procedure receives the form parameters. The file field will be a Varchar2
    parameter, because you receive the path of the image is not the image itself.
    3 insert the image file into the table by using 'Create a directory NAME as chemin_image' and
    Then use ' insert into the TABLE (row, BLOB_OBJECT, MIME_OBJECT) values (sequence.nextval, '.
    EMPTY_BLOB() 'GIF' or 'JPEG') BLOB_OBJECT, in the variable_blob, back
    variable_consecutive.
    4 load the file into the table using:
    DBMS_LOB. LoadFromFile (variable_blob, variable_file_name, dbms_lob.getlength (variable_file_name));
    DBMS_LOB. FileClose (variable_file_name);
    engage.

    Kind regards
    Simma...

  • How to insert data into the BLOB column

    Hi all

    Can someone help me to insert data in the BLOB data type column?

    The structure of the table is
    CREATE TABLE XXATFL_DM_FORCAST_STG
    (
    TASK_ID NUMBER,
    USER_ID NUMBER,
    CREATED_BY NUMBER (15),
    CREATION_DATE DATE,
    LAST_UPDATED_BY NUMBER (15),
    DATE OF LAST_UPDATE_DATE,
    LAST_UPDATE_LOGIN NUMBER (15),
    RECORD_STATUS VARCHAR2 (1 BYTE),
    ERROR_MESSAGE VARCHAR2 (4000 BYTE),
    DATA_FILE BLOB
    )

    I want to insert data into the column DATA_FILE. and this insert statement inside a procedure.

    Please help me as soon as possible because it is very urgent for me

    Thank you and best regards,
    Charrier

    Charrier,

    If you form the string yourself, you can use the function utl_raw.cast_to_raw on your channel.

    http://download.Oracle.com/docs/CD/B12037_01/AppDev.101/b10802/u_raw.htm#997086

    sql> create table t(
      2    id number,
      3    l_blob blob
      4  );
    
    sql> insert into t values(1, utl_raw.cast_to_raw('SampleString'));
    
    1 row created.
    
    sql> commit;
    
    Commit complete.
    
  • Prepare a document to insert a row that contains the Blob column. Is what sense this correct?

    When we prepare the statement to insert a row that contains the Blob column. Is what sense this correct? And what is the difference? Does anyone know?

    1 Preparestatement.setBlob(parameter number, blob type object)

    2 Preparestatement.setBlob(parameter number, inputstream type object)

    This link shows the test I did.

    https://community.Oracle.com/thread/3680185?SR=Inbox & customTheme = OTN

    When we prepare the statement to insert a row that contains the Blob column. Is what sense this correct? And what is the difference? Anyone know?

    1 Preparestatement.setBlob(parameter number, blob type object)

    2 Preparestatement.setBlob(parameter number, inputstream type object)

    I answered in your other thread and provided a link to the JDBC Dev Guide section, which explains how to work with type LOB and BFILE data.

    Have you read this article from doc?

    Did you read my response to your other thread?

    In java, a BLOB is just the index that gives you access to the content. In your case, you access by selecting a locator BLOB existing and getting his inputstream. This inputstream is what allows you to access the content real blob.

    The Locator is just that; It specifies the LOCATION of the blob content, but NOT the content.

  • How to select the csv data stored in a BLOB column as if it were an external table?

    Hi all

    (Happy to be back after a while! )

    Currently I am working on a site where users should be able to load the data of csv (comma is the separator) of their client machines (APEX 3.2 application) in the Oracle 11.2.0.4.0 EE database.

    My problem is:

    I can't use an external table (for the first time in my life ) so I'm a little clueless what to do as the csv data is stored by the application of the APEX in a BLOB column, and I'm looking for an elegant way (at least SQL PL/SQL/maximization) to insert the data into the destination table (run validations by a MERGER would be the most effective way to do the job).

    I found a few examples, but I think they are too heavy and there could be a more elegant way in Oracle DB 11.2.

    Simple unit test:

    drop table CBC purge;

    drop table dst serving;

    create table src

    (myblob blob

    );

    create table dst

    (num number

    , varchar2 (6) str

    );

    Insert in src

    Select utl_raw.cast_to_raw (1; AAAAAA ;'|| Chr (10) |

    2; BATH; »

    )

    Double;

    Desired (of course) output based on the data in table SRC:

    SQL > select * DST;

    NUM STR

    ---------- ------

    1 ABDELKRIM

    2 BATH

    Does anybody know a solution for this?

    Any ideas/pointers/links/examples are welcome!

    / * WARNING: I was 'off' for about 3 months, then the Oracle - the part of my brain has become a bit "rusty and I feel it should not be so complicated as the examples I've found sofar ' * /"

    Haha, wonder about regexp is like the blind leading the blind!

    However, it's my mistake: I forgot to put the starting position setting (so 1, 2, 3,... was in fact the starting position, not the nth occurrence. duh!)

    So, it should actually be:

    select x.*
    ,      regexp_substr(x.col1, '[^;]+', 1, 1)
    ,      regexp_substr(x.col1, '[^;]+', 1, 2)
    ,      regexp_substr(x.col1, '[^;]+', 1, 3)
    ,      regexp_substr(x.col1, '[^;]+', 1, 4)
    ,      regexp_substr(x.col1, '[^;]+', 1, 5)
    ,      regexp_substr(x.col1, '[^;]+', 1, 6)
    from  src
    ,      xmltable('/a/b'
                  passing xmltype(''||replace(conv_to_clob(src.myblob), chr(10), '')||'')
                  columns
                    col1 varchar2(100) path '.') x;
    

    Note: that's assuming that all the "columns" passed in the string won't be lame.

    If one of them might be null, then:

    select x.*
    ,      regexp_substr(ltrim(x.col1, ';'), '[^;]+', 1, 1)
    ,      regexp_substr(ltrim(x.col1, ';'), '[^;]+', 1, 2)
    ,      regexp_substr(ltrim(x.col1, ';'), '[^;]+', 1, 3)
    ,      regexp_substr(ltrim(x.col1, ';'), '[^;]+', 1, 4)
    ,      regexp_substr(ltrim(x.col1, ';'), '[^;]+', 1, 5)
    ,      regexp_substr(ltrim(x.col1, ';'), '[^;]+', 1, 6)
    from   src
    ,      xmltable('/a/b'
                  passing xmltype(replace(';'||replace(conv_to_clob(src.myblob), chr(10), ';')||'', ';;', '; ;'))
                  columns
                    col1 varchar2(100) path '.') x;
    
  • blob column field index

    SQL > select * from v version $;

    BANNER

    Oracle Database 10g Release 10.2.0.4.0 - Production
    PL/SQL Release 10.2.0.4.0 - Production
    CORE 10.2.0.4.0 Production
    AMT for Mac OS X Server: release 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production

    SQL > documents desc;
    Name Null? Type
    IDENTIFICATION NUMBER
    TITLE VARCHAR2 (100)
    FILENAME VARCHAR2 (200)
    BLOB OF DOCUMENT

    SQL > create index idx_documents
    2 documents (document)
    3 indextype is ctxsys.context;

    The index is created.

    SQL > exec ctx_ddl.sync_index ('IDX_DOCUMENTS');

    PL/SQL procedure successfully completed.

    SQL > Select token_text of Dr.$ idx_documents$ i;

    no selected line

    SQL > Select file name of documents;

    FILE NAME
    --------------------------------------------------------------------------------
    Axiom.txt
    test.txt

    SQL >

    Axiom.txt:
    ----------
    Nach der Installation wird als Axiom MIDI-Gerät mit zwei MIDI-Eingangen und einem MIDI-exit auf Ihrem Computer gefuhrt.
    Fur den Einsatz von axiom mit will host application must the first der Sie in der Eingangsliste aufgefuhrten noon-Eingange
    von Axiom MIDI-Eingabegerat als Park. Erst nach dieser Einstellung kann Ihre host application MIDI - und Notenbefehle
    -Controllerbefehle von Axiom only.

    Falls Sie ein external MIDI-Gerät (Drum Machine oder equipped keyboard) a MIDI-digitization den von Axiom angeschlossen haben.
    können Sie Axiom als simply MIDI-USB-Interface, indem Sie den second wins der in der list aufgefuhrten Axiom-Eingange als MIDI -.
    Eingabegerat aktivieren.
    Like können Sie ein external, a MIDI-exit dem von Axiom angeschlossenes MIDI-Gerät über die application-host ansteuern und
    ALS axiom MIDI-USB-Interface benefits. There must Sie Axiom MIDI-Ausgabegerat als Park. Further notices zu diesen
    Is find in den nachfolgenden Handbuchs Kapiteln sharps.

    Die EuGHMR der to hear MIDI-Ein-und von Axiom unter den individual functionality sind der nachstehenden Tabelle unit
    aufgefuhrt. Calendar Sie Bitte, dass sharp positions you can hear, I depending on ob Sie am PC oder am Mac arbeiten bzw. den
    Windows-Multi-Client-Treiber installed haben oder nicht. (Information zur Treiber-Installation und - configuration items
    Sie in den nachfolgenden Kapiteln.)

    Select Dr. token_text $ idx_documents$, I am not returned no line! The same text stored in a clob column works fine.

    Thanks in advance

    The filter has failed.

    Because you use a BLOB column, it will try to invoke the filter of binary document (INSO_FILTER or AUTO_FILTER depending on the version).

    The filter SHOULD be able to deal with plain text documents, but who knows what kind of problems of translation of characters you'll have when writing a document in plain text in a binary container.

    If you only use plain text documents, you must use a CLOB column. Alternatively, you can try specifying the FILTER CTXSYS. NULL_FILTER in a parameters clause, but there still may be problems of translation.

    If you need to index a combination of binary and plain text documents, then try this again with a file binary document - a PDF or DOC file for example. If those who fail this way then it is probably your method of loading that is at fault.

  • Can the hp 2710 all-in-one scan a document into a pdf file?

    Pouvez all-in-one printer from HP 2710 scan a document into a pdf file?

    Pouvez all-in-one printer from HP 2710 scan a document into a pdf file?

    Hi Michael29464,

    It says here that it's possible...

    If you have a problem scanning to PDF, this can solve the problem for you:
    Hope this helps
    Martin
  • compress the blob column to save space on the server

    Hi friends,

    I have a problem with the blob column, in the oracle 11.2.0.4 on aix Server database

    I have a table with a blob of column (containing a jpg file). This table is in a tablespace of 300 GB and storage space is full. There is no space on the server (asm).

    I need to load the jpg more in this table, but there is no space.

    I've read a few articles on tha compress blob type column, but I'm not sure what I should do.

    Is it possible to compress the blob column without going to a different tablespace (because the server has no more space to create a new one).

    The table and column have been created in a traditional way.

    Please, advice?

    Best regards

    Dbape.

    But this method requires add-on EA "Adv. Compression" ($$$).

    OP he wanted to compress .jpg files.

    BUDOKAI

    It is not possible.

    the .jpg files are already compressed.

    IIRC (of my Compression Adv. test) - SecureFile "knows best" and will not try to compress BLOBs identified as JPGs or any other known formats of files (such as .zip files)

    In other words - SecureFile is not the OP no good for the type of data, it is try to compress them.

    Are the only solutions that the OP has to enable it to store more JPG images

    • get rid of the old pictures
    • Add more disks
    • resize images (ordimage)
    • recompress the image by reducing the quality as long as the resulting image is unusable (ordimage)

    MK

  • File Image store in BLOB column Oracle 6i form

    Hi all

    I want to save the image file into the BLOB column using oracle forms 6i. I used READ_IMAGE_FILE to retrieve image at the point of the image on the forms, but all save the image file recording is not in the type BLOB in a corresponding table column.

    Please help and guide me in this regard.

    Atif Zafar

    Here's a code example

    declare
        filename varchar2(256);
        VNAME varchar2(100);
    begin
        SELECT LIC_SERVER_NAME INTO VNAME --- DESTINATION SERVER / PC NAME START WITH "//". eXAMPLE //SERVER-NAME
        FROM PATH_TABLE;
    
        filename:=GET_FILE_NAME(File_Filter=> 'JPG Files (*.jpg)|*.jpg|');
        read_image_file(filename, '', 'CUST.TXT_VOTER_ID_CARD');
        host ('cmd /c copy "'||filename||'" "'||VNAME||'/CNG_SOFT/voter_id_card/'||'\'||:CUST.AD_CODE||'.jpg',NO_SCREEN);
    end;
    

    Hope this helps

    Hamid

  • Divide the line into several columns

    Hi all

    I have a question where I want to divide the line into multiple columns based on the delimiter ' |'.

    Staging of Table structure: People_STG, I have people in it.

    Create table People_STG(col1 varchar2(4000));


    Insert into People_STG(Emp_id|) User name | FirstName. LastName. JobTitle | hire_date | Location_id)


    SELECT REGEXP_SUBSTR ( COL1, '[^,|]+', 1, 1) EMP_ID,
           REGEXP_SUBSTR ( COL1, '[^|]+', 1, 2) USERNAME,
           REGEXP_SUBSTR ( COL1, '[^,|]+', 1, 3) FIRSTNAME,
           REGEXP_SUBSTR ( COL1, '[^,|]+', 1, 4) LASTNAME,
           REGEXP_SUBSTR ( COL1, '[^,|]+', 1, 5) JOBTITLE,
           REGEXP_SUBSTR ( COL1, '[^,|]+', 1, 6) HIRE_DATE,
           REGEXP_SUBSTR ( COL1, '[^,|]+', 1, 7) LOCATION_ID
    FROM PEOPLE_STG
    WHERE length(regexp_replace(COL1, '[^|]', '')) = 14;
    

    But I am facing a problem here, as in some lines, function is null, but when I run the above query, it is not recognizing the empty element and inserting Hire_date values of function and location_id in Hire_date where function is null.

    for example: 1 | akash51 | Akaksh | C | 22/11/14 | 15

    Here the function is null, so when I run top to divide query it will insert 11/22/14 in the function column and 15 in Hire_Date.

    Please need help on this one.

    Oracle Version: 11.2 g

    Thanks in advance,

    Akash.

    There are different techniques to cope with this.  Is a simple...

    SQL > ed
    A written file afiedt.buf

    1 with t as (select 1 | akash51 |) Akaksh | C | 22/11/14 | 15' as col1 of union double all the
    2 Select 2 | akash52 | Akaksh | C | Jobs jobs | 23/11/14 | 15' of the double
    3            )
    4  --
    5. end of test data
    6  --
    7 select trim (REGEXP_SUBSTR (COL1, ' [^, |] +', 1, 1)) EMP_ID,.
    8 toppings (REGEXP_SUBSTR (COL1, ' [^, |] +', 1, 2)) USERNAME,.
    9 garnish (REGEXP_SUBSTR (COL1, ' [^, |] +' 1, 3)) FIRSTNAME,
    10 pads (REGEXP_SUBSTR (COL1, ' [^, |] +' 1, 4)) LASTNAME,.
    11 garnish (REGEXP_SUBSTR (COL1, ' [^, |] +' 1, 5)) JOBTITLE,.
    12 pads (REGEXP_SUBSTR (COL1, ' [^, |] +', 1, 6)) HIRE_DATE,.
    13 garnish (REGEXP_SUBSTR (COL1, ' [^, |] +' 1, 7)) location_id
    14 * from (select replace (col1, ' |)) ',' | as col1 of t)
    SQL > /.

    EMP_ID USERNAME FIRSTNAME LASTNAME, JOBTITLE HIRE_DATE LOCATION_I
    ---------- ---------- ---------- ---------- ---------- ---------- ----------
    1 akash51 Akaksh C 22/11/14 15
    2 akash52 Akaksh C Job 23/11/14 15

  • How to insert a BLOB column to a schema to another schema using proc of PL/SQL.

    Hello

    I want to know is there a simpler method to insert data of BLOB column in a table would like to insert into another table that is in a different schema.

    Table: TARGET (col1 number, varchar2 (100) col2, col3 BLOB) (SCHEME A)

    Table: SOURCE (col1 number, col2 varchar2 (100), col3 BLOB) (SCHEME B)

    I tried with the logic of following insertion.

    INSERT INTO < TAB2 > AS SELECT * FROM < TAB1 >;

    But the inset above has not copied the BLOB data, which are shwoing empty blob in the column in the target.

    Concerning

    Suresh

    Ask Tom how to reproduce one BLOB field to another

  • Update a BLOB column

    Hello

    I have Oracle XE 11.2.0 loaded on a Windows Server.  It works very well.  I use Apex 4.1 on break as well.

    In a table, I have a column (LIST_FILE) that contains the name of a file and does not include the file extension.  Recently, I added a BLOB (LIST_PDF) column to this table.

    I would like to create SQL to update each row of this table by inserting PDF file into the blob.  For each row in the table, there is a file beginning with value in LIST_FILE and followed by a period and PDF (.) (PDF).  File1.PDF, File2, PDF, etc.  The windows directory that contains the PDF files can be moved anywhere on the windows server.

    How to build the SQL to update the BLOB column?

    Thanks for your help.

    Hi, PhilMan2

    You cannot load the PDF by single SQL. It must be the script on PL/SQL. Visit this link to find out how you can make your task How to insert blob in the database file

    ---

    English is not my mother tongue; Please forgive my faults

Maybe you are looking for

  • suddenly iTunes can't see/play existing TV series and movies (m4v files)

    Day before yesterday, I could see and watch different episodes to see the TV and movies that I had previously purchased on the iTunes store - some downloaded some last week, a month or two ago. I'm literally in half way through some of these TV shows

  • Pls I need help to reset my bios of my computer compaq mini CQ10

    Pls I need help to reset my bios of my computer compaq mini CQ10-130se error fatal problem with CNU0014WZF TNX!

  • 4 GB SDHC

    my 4 GB SDHC card does not work on my laptop which has windows XP, but will work on my desktop which has Vista

  • Email system diverted.

    Something is sending viagra adds to everyone in my address book! need help.

  • Map Microsoft ISATAP

    I have an error with ms # 2 ISATAP adapter, 4,7,8,11,12,13,14,15, 17n and 18?  I read to do not take into account, but why do I have so much and all in error?  At the same time my touchpad works revesre as left handed.   I reinstalled and tried to re