Lob length

Hello experts
I am trying to get lob length for sdo_geometry. I have posted a thread in spatial forum and they have directed me to here. The link is below.
https://community.oracle.com/thread/3647077?customTheme=otn
When i try to get lob length for sdo_geometry, i am getting ora 00904 error "invalid identifier".
SELECT NVL((SUM(DBMS_LOB.GETLENGTH(GEOMETRY.SDO_ORDINATES))),0) AS BYTES
FROM ROADS;
SELECT NVL((SUM(DBMS_LOB.GETLENGTH(GEOMETRYSDO_ELEM_INFO.SDO_ELEM_INFO))),0) AS BYTES
FROM ROADS;
How to get lob length ?

Hi,
I have made a test with BLOB column ...
legatti@icaro:/tmp> ls -l test.jpg
-rw-r--r--  1 oracle oinstall 1502720 2008-05-29 16:58 test.jpg
SQL> create table my_image_table (
  id number,
  name varchar2(20),
  image blob
Table created.
SQL> create or replace directory images as '/tmp';
Directory created.
SQL> create or replace procedure load_file_to_my_table (p_file_name in my_image_table.name%type) as
  v_bfile bfile;
  v_blob blob;
begin
  insert into my_image_table (id,name,image)
  values (1,p_file_name,empty_blob())
  return image into v_blob;
  v_bfile := bfilename('IMAGES',p_file_name);
  dbms_lob.fileopen(v_bfile, dbms_lob.file_readonly);
  dbms_lob.loadfromfile(v_blob,v_bfile,dbms_lob.getlength(v_bfile));
  dbms_lob.fileclose(v_bfile);
  commit;
end;
Procedure created.
SQL> execute load_file_to_my_table('test.jpg');
PL/SQL procedure successfully completed.
SQL> select dbms_lob.getlength(image) from my_image_table;
DBMS_LOB.GETLENGTH(IMAGE)
                  1502720In this context, I suppose that one character is one byte ...
Cheers
Legatti

Similar Messages

  • Illegal lob length marker

    hi every body ,
    i do not know why i am face this problem:
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    Export file created by EXPORT:V08.01.07 via conventional path
    Warning: the objects were exported by BIGDATA, not by you
    import done in AR8MSWIN1256 character set and AL16UTF16 NCHAR character set
    export server uses AR8MSWIN1256 NCHAR character set (possible ncharset conversion)
    . importing BIGDATA's objects into TEST
    . importing BIGDATA's objects into TEST
    . . importing table "FUNDIMINTAL" 3686498 rows imported
    illegal lob length marker 60897
    bytesread = 00000000000
    TABLE = FUNDIMINTAL4
    IMP-00098: INTERNAL ERROR: impgst2
    IMP-00008: unrecognized statement in the export file:
    IMP-00008: unrecognized statement in the export file:
    IMP-00032: SQL statement exceeded buffer length
    IMP-00008: unrecognized statement in the export file:
    IMP-00008: unrecognized statement in the export file:
    IMP-00008: unrecognized statement in the export file:
    IMP-00008: unrecognized statement in the export file:
    ےے
    IMP-00008: unrecognized statement in the export file:
    IMP-00008: unrecognized statement in the export file:
    IMP-00008: unrecognized statement in the export file:
    IMP-00008: unrecognized statement in the export file:
    ےے
    IMP-00008: unrecognized statement in the export file:
    IMP-00008: unrecognized statement in the export file:
    IMP-00008: unrecognized statement in the export file:
    IMP-00008: unrecognized statement in the export file:
    ےے
    IMP-00008: unrecognized statement in the export file:
    ےے
    IMP-00008: unrecognized statement in the export file:
    IMP-00008: unrecognized statement in the export file:
    IMP-00008: unrecognized statement in the export file:
    ےے
    IMP-00008: unrecognized statement in the export file:
    IMP-00008: unrecognized statement in the export file:
    IMP-00008: unrecognized statement in the export file:
    IMP-00008: unrecognized statement in the export file:
    IMP-00008: unrecognized statement in the export file:
    IMP-00008: unrecognized statement in the export file:
    IMP-00008: unrecognized statement in the export file:
    IMP-00008: unrecognized statement in the export file:
    IMP-00008: unrecognized statement in the export file:
    IMP-00008: unrecognized statement in the export file:
    IMP-00008: unrecognized statement in the export file:
    IMP-00008: unrecognized statement in the export file:
    any help please.
    Message was edited by:
    mshaqalaih

    $ oerr imp 00008
    00008, 00000, "unrecognized statement in the export file: \n %s"
    // *Cause:  Import did not recognize a statement in the export file. Either
    // the export file was corrupted, or an Import internal error has
    // occurred.
    // *Action: If the export file was corrupted, retry with a new export file.
    // Otherwise, report this as an Import internal error and submit
    // the export file to customer support.

  • Problems with import CLOBs - illegal lob length marker

    Hi All !!
    I tried to import table with CLOB, I get the following message:
    illegal lob length marker 55086
    bytesread = 00030955520
    TABLE =
    IMP-00098: INTERNAL ERROR: impgst2
    Any ideas?
    Thanks.

    Export was made on oracle 9.2.0.6
    Import - oracle 10.1.0.4
    Import listing:
    Import: Release 10.1.0.4.0 - Production on ...
    Copyright (c) 1982, 2004, Oracle. All rights reserved.
    Connected: Oracle Database 10g Enterprise Edition Release 10.1.0.4.0 - Production
    With the Partitioning, OLAP and Data Mining options
    Экспоpт-файл создан EXPORT:V09.02.00 чеpез обычный маpшpут
    Вним.: объекты были экспортированы не Вами, а польз. SYSTEM
    импорт выполнен в кодировке CL8MSWIN1251 и AL16UTF16 кодировке NCHAR
    IMP-00046: используется значение FILESIZE из файла экспорта для 2147483648
    . объекты, принадлежащие user_name, импортируются в user_name
    illegal lob length marker 55086
    bytesread = 00030955520
    TABLE =
    IMP-00098: INTERNAL ERROR: impgst2
    When I tried to import on 9.2.0.6 the process halted but there was no error message on the screen.

  • Import error lob length

    When I do import I got the below error
    illegal lob length marker 65279

    Hi,
    The action associated with this error message is "Contact Oracle Support" [see here|http://download.oracle.com/docs/cd/B19306_01/server.102/b14219/impus.htm#sthref10696]
    I don't know what to suggest to you other than following the advise above or perhaps you have a corrupt dump file.
    IMP-00008: unrecognized statement in the export file: string
    Cause: Import did not recognize a statement in the export file. Either the export file was corrupted, or an Import internal error has occurred.
    Action: If the export file was corrupted, retry with a new export file. Otherwise, report this as an Import internal error and submit the export file to customer support.
    Cheers,
    Francisco Munoz Alvarez
    http://www.oraclenz.com
    Edited by: F. Munoz Alvarez on Sep 13, 2008 8:48 PM

  • IMP-00098 / INTERNAL ERROR / illegal lob length marker

    Hi all,
    i've been working for too long in the last 2 days and maybe don't think straight anymore. I'm having some strange import problem. Here the facts:
    Error:
    . . importing table "TAB"
    illegal lob length marker 55011
    bytesread = 00000000000
    TABLE = TAB
    IMP-00098: INTERNAL ERROR: impgst2
    IMP-00028: partial import of previous table rolled back: 559411 rows rolled back
    Source: 9.2.0.4 Sun Solaris 64Bit UTF8
    target: 10.2.0.4 Windows 2003 64Bit UTF8
    NLS_LANG have been checked and re-checked
    file was compressed on fly with gzip
    file was transfered via FTP
    uncompress (WinRAR) on Windows box succeeded
    importing any table after this raises same error although TAB iteself is not being imported
    import runs fine (of the same gzip file) into a 10.2.0.4 on another server running 32bit XP
    previous 4 exports between same systems succeeded without any issues
    Some inspiration would deeply appreciated at the moment.
    Cheers

    Pl see if MOS Doc 578616.1 (IMP-00098: INTERNAL ERROR: impgst2Segmentation Fault - core dumped) can help
    HTH
    Srini

  • How to save pdf file in database

    Dear All,
    my application is forms 6i and database is 8i,requirement is that how to save pdf file in database and users can view through forms

    I'll apologize up front for the length of this post. I have a few database procedures I created that write a file to a BLOB column in a table as well as retrieve the BLOB from the column after it stored there. I have successfully stored many different types of binary file to the database using these procedures - including PDF files. I have not used these procedures in a Form so I can confirm that they will work, but theoretically they should work. I'm including the code for each procedure in this posting - hence the apology for the long post! :-)
    Also, since these procedures reside on the database you will need to use Forms TEXT_IO built-in package to write your file to the server before you can use these procedures to store and retrieve the file from the database.
    These procedures reads and writes a binary file to a table called "LOB_TABLE." You will need to modify the procedure to write to your table.
    -- Author :  Craig J. Butts (CJB)
    -- Name   :  load_file_to_blob.sql
    --        :  This procedure uses an Oracle Directory called "IN_FILE_LOC".  If you
    --           already have a directory defined in the database or would prefer to use
    --           a different Directory name, make sure you modify line 21 to reflect the
    --           new Directory name.
    -- ==================================================================================
    -- History
    -- DATE        WHO         DESCRIPTION
    -- 12/11/07    CJB         Created.
    CREATE OR REPLACE PROCEDURE load_file_to_blob (p_filename IN VARCHAR2) IS
       out_blob    BLOB;
       in_file     BFILE;
       blob_length INTEGER;
       vErrMsg     VARCHAR2(2000);
    BEGIN
       -- set the in_file
       in_file := BFILENAME('IN_FILE_LOC',p_filename);
       -- Get the size of the file
       dbms_lob.fileopen(in_file, dbms_lob.file_readonly);
       blob_length := dbms_lob.getlength(in_file);
       dbms_lob.fileclose(in_file);
       -- Insert a new Record into the tabel containing the
       -- filename specified in P_FILENAME and a LOB_LOCATOR.
       -- Return the LOB_LOCATOR and assign it to out_blob.
       INSERT INTO lob_table (filename, blobdata)
          VALUES (p_filename, EMPTY_BLOB())
          RETURNING blobdata INTO out_blob;
       -- Load the file into the database as a blob.
       dbms_lob.open(in_file, dbms_lob.lob_readonly);
       dbms_lob.open(out_blob, dbms_lob.lob_readwrite);
       dbms_lob.loadfromfile(out_blob, in_file, blob_length);
       -- Close handles to blob and file
       dbms_lob.close(out_blob);
       dbms_lob.close(in_file);
       commit;
       -- Confirm insert by querying the database
       -- for Lob Length information and output results
       blob_length := 0;
       BEGIN
          SELECT dbms_lob.getlength(blobdata) into blob_length
            FROM lob_table
           WHERE filename = p_filename;
       EXCEPTION WHEN OTHERS THEN
          vErrMsg := 'No data Found';
       END;
       vErrMsg := 'Successfully inserted BLOB '''||p_filename||''' of size '||blob_length||' bytes.';
       dbms_output.put_line(vErrMsg);
    END;
    -- Author   :  Craig J. Butts (CJB)
    -- Name     :  write_blob_to_file.sql
    -- Descrip  :  This procedure takes a BLOB object from a database table and writes it
    --             to the file system
    -- ==================================================================================
    -- History
    -- DATE        WHO         DESCRIPTION
    -- 12/11/07    CJB         Created.
    CREATE OR REPLACE PROCEDURE write_blob_to_file ( p_filename IN VARCHAR2 ) IS
       v_blob      BLOB;
       blob_length INTEGER;
       out_file    UTL_FILE.FILE_TYPE;
       v_buffer    RAW(32767);
       chunk_size  BINARY_INTEGER := 32767;
       blob_position INTEGER := 1;
       vErrMsg     VARCHAR2(2000);
    BEGIN
       -- Retrieve the BLOB for reading
       BEGIN
          SELECT blobdata
            INTO v_blob
            FROM lob_table
           WHERE filename = p_filename;
       EXCEPTION WHEN OTHERS THEN
          vErrMsg := 'No data found';
       END;
       -- Retrieve the SIZE of the BLOB
       blob_length := DBMS_LOB.GETLENGTH(v_blob);
       -- Open a handle to the location where you are going to write the blob
       -- Note:  The 'WB' parameter means "Write in Byte Mode" and is only
       --          available in the UTL_FILE pkg with Oracle 10g or later.
       --        USE 'W' instead for pre Oracle 10q databases.
       out_file := UTL_FILE.FOPEN('OUT_FILE_LOC',p_filename, 'wb', chunk_size);
       -- Write the BLOB to the file in chunks
       WHILE blob_position <= blob_length LOOP
          IF ( ( blob_position + chunk_size - 1 ) > blob_length ) THEN
             chunk_size := blob_length - blob_position + 1;
          END IF;
          dbms_lob.read(v_blob, chunk_size, blob_position, v_buffer );
          UTL_FILE.put_raw ( out_file, v_buffer, TRUE);
          blob_position := blob_position + chunk_size;     
       END LOOP;  
    END;Hope this helps.
    Craig...
    -- If my response or the response of another is helpful or answers your question please mark the response accordingly. Thanks!

  • ORA-22275 error when running a USER_DATASTORE index on CLOB column

    Running Oracle 9.2.0.8
    Getting the following errors thrown for every row in the table when creating the index:
    DRG-12604: execution of user datastore procedure has failed
    DRG-50857: oracle error in drsinopen
    ORA-06502: PL/SQL: numeric or value error: invalid LOB locator specified: ORA-22275
    ORA-06512: at "SYS.DBMS_LOB", line 347
    ORA-06512: at "CRT_DEV.MULTI_INDEX_EN_PRC", line 27
    ORA-06512: at "CTXSYS.CTXSYS_MULTI_INDEX_EN_PRC", line 7
    ORA-06512:
    Index scripts:
    ctx_ddl.create_preference( 'crt_user_datastore_en', 'user_datastore' );
    ctx_ddl.set_attribute( 'crt_user_datastore_en', 'procedure', 'ctxsys_multi_index_en_prc' );
    ctx_ddl.set_attribute('crt_user_datastore_en', 'output_type', 'CLOB');
    CTX_DDL.create_preference('CRT_PREF_EN','BASIC_WORDLIST');
    ctx_ddl.set_attribute('CRT_PREF_EN','FUZZY_MATCH','ENGLISH');
    ctx_ddl.set_attribute('CRT_PREF_EN','STEMMER','ENGLISH');
    ctx_ddl.set_attribute('CRT_PREF_EN','SUBSTRING_INDEX','TRUE');
    CTX_DDL.create_section_group('CRT_HTML_SECTION','HTML_SECTION_GROUP');
    CTX_DDL.add_zone_section('CRT_HTML_SECTION', 'title', 'TITLE');
    ctx_ddl.create_preference('CRT_LEXER_EN', 'BASIC_LEXER');
    ctx_ddl.set_attribute('CRT_LEXER_EN', 'skipjoins', '-');
    ctx_ddl.set_attribute ( 'CRT_LEXER_EN', 'index_text', 'YES');
    ctx_ddl.set_attribute ( 'CRT_LEXER_EN', 'base_letter', 'YES');
    ctx_ddl.set_attribute ( 'CRT_LEXER_EN', 'index_stems', 'ENGLISH');
    ctx_ddl.set_attribute ( 'CRT_LEXER_EN', 'index_themes', 'YES');
    ctx_ddl.set_attribute ( 'CRT_LEXER_EN', 'theme_language', 'ENGLISH');
    CREATE INDEX MULTI_CONTENT_EN_IDX ON CONTENTS
    (top_content_html_en)
    INDEXTYPE IS CTXSYS.CONTEXT
    parameters ('filter ctxsys.null_filter DATASTORE crt_user_datastore_en LEXER CRT_LEXER_EN wordlist CRT_PREF_EN section group CRT_HTML_SECTION');I have issued the following grants:
    grant execute on CTXSYS.ctxsys_multi_index_fr_prc to CRT;
    grant execute on CTXSYS.ctxsys_multi_index_en_prc to CRT;
    grant execute on CRT_DEV.multi_index_fr_prc to CTXSYS;
    grant execute on CRT_DEV.multi_index_en_prc to CTXSYS;CRT is the index owner schema
    CRT_DEV is the schema owning the user_datastore procedure. (Could this be the problem?) Should the procedure reside in the same schema as index owner?
    Here are my procedures:
    CTXSYS stub:
    CREATE OR REPLACE PROCEDURE ctxsys_multi_index_en_prc (
       rid    IN       ROWID,
       tlob   IN OUT   CLOB
    IS
    BEGIN
       crt_dev.multi_index_en_prc (rid, tlob);
    END;Actual procedure:
    CREATE OR REPLACE PROCEDURE multi_index_en_prc (rid IN ROWID, tlob IN OUT CLOB)
    IS
    BEGIN
       FOR c1 IN (SELECT    '<TITLE>'
                         || cc.content_category_name_en
                         || '</TITLE>' content_title,
                         c.content_html_content_en, c.top_html_content_en
                    FROM content_categories cc, CONTENTS c
                   WHERE cc.content_category_id = c.content_category_id
                     AND c.ROWID = rid)
       LOOP
          DBMS_LOB.writeappend (tlob, LENGTH (c1.content_title),
                                c1.content_title);
          DBMS_LOB.append (dest_lob => tlob, src_lob => c1.top_html_content_en);
          DBMS_LOB.append (dest_lob      => tlob,
                           src_lob       => c1.content_html_content_en
       END LOOP;
    END multi_index_en_prc;I can run the following test script, and get no errors:
       declare
    rid rowid;
    tlob clob;
       begin
       dbms_lob.CREATETEMPORARY(tlob,false);
       CRT_DEV.multi_index_en_prc('AAAC0UAAMAAAAMAAA2',tlob);
       dbms_output.put_line(dbms_lob.GETLENGTH(tlob));
       dbms_output.put_line(dbms_lob.substr(tlob,25));
       dbms_lob.FREETEMPORARY(tlob);
       end;Output:
    25
    <TITLE>References</TITLE>
    I'm at a total loss on the cause of the error.
    Any help/tips is appreciated!
    Thanks
    Edited by: pl_sequel on Feb 9, 2010 11:25 AM

    Thanks Roger.
    I did add those in... DBA insists that didn't matter, since explicit "select" privs were granted to CRT_DEV to select CRT tables. He did say that a length check was required on the CLOBS before appedning them to the destination lob (tlob) to prevent NULL lob locators being appended and raising the exception.
    In any case, it works now... however, unsure if it's due to the schema prefix on the tables, or the lob length checks...

  • Dbms_lob.loadfromfile help

    sorry in advance if this is basic - SQL developer virgin here . . .
    Using the examples in this document
    http://download-west.oracle.com/docs/cd/B14117_01/appdev.101/b10840/mm_uses.htm
    specifically the code:
    INSERT INTO soundtable(id, sound) VALUES (1, EMPTY_BLOB());
    COMMIT;
    DECLARE
    f_lob BFILE := BFILENAME('AUDDIR','chimes.wav');
    b_lob BLOB;
    Lob BLOB;
    Length INTEGER;
    BEGIN
    SELECT sound INTO b_lob FROM soundtable WHERE id=1 FOR UPDATE;
    -- Open the LOBs.
    dbms_lob.open(f_lob, dbms_lob.file_readonly);
    dbms_lob.open(b_lob, dbms_lob.lob_readwrite);
    dbms_lob.loadfromfile
    (b_lob, f_lob, dbms_lob.getlength(f_lob));
    -- Close the LOBs.
    dbms_lob.close(b_lob);
    dbms_lob.close(f_lob);
    COMMIT;
    -- Select the LOB:
    SELECT sound INTO Lob FROM soundtable
    WHERE ID = 1;
    -- Opening the LOB is optional.
    DBMS_LOB.OPEN (Lob, DBMS_LOB.LOB_READONLY);
    -- Get the length of the LOB.
    length := DBMS_LOB.GETLENGTH(Lob);
    IF length IS NULL THEN
    DBMS_OUTPUT.PUT_LINE('LOB is null.');
    ELSE
    DBMS_OUTPUT.PUT_LINE('The length is '|| length);
    END IF;
    -- Closing the LOB is mandatory if you have opened it.
    DBMS_LOB.CLOSE (Lob);
    END;
    2 questions for anyone who has done this before or has an opinion:
    1) In the initial insert -- INSERT INTO soundtable(id, sound) VALUES (1, EMPTY_BLOB()); -- if the value for the column "id" is sequence.next_val I could end up with an "id" of 3012 for example:
    so how would I find out what value the "id" is before doing the next step:
    SELECT sound INTO b_lob FROM soundtable WHERE id=1 FOR UPDATE;
    I would have to do:
    SELECT sound INTO b_lob FROM soundtable WHERE id=<whatever_was_generated_by_the_sequence> FOR UPDATE;
    and if there are 10 people inserting at about the same time, how the heck am I supposed to know which "id" goes with which content file?
    any help is appreciated

    You can use the returning clause to store the generated sequence value that was inserted into id into a variable, then reference that variable in the rest of your code, as demonstrated below.
    SCOTT@10gXE> CREATE TABLE soundtable
      2    (id    NUMBER,
      3       sound BLOB DEFAULT EMPTY_BLOB ())
      4  /
    Table created.
    SCOTT@10gXE> CREATE SEQUENCE your_sequence
      2  /
    Sequence created.
    SCOTT@10gXE> VARIABLE g_id_seq NUMBER
    SCOTT@10gXE> INSERT INTO soundtable (id)
      2  VALUES (your_sequence.NEXTVAL)
      3  RETURNING id INTO :g_id_seq
      4  /
    1 row created.
    SCOTT@10gXE> COMMIT
      2  /
    Commit complete.
    SCOTT@10gXE> CREATE OR REPLACE DIRECTORY auddir AS 'C:\WINDOWS\Media'
      2  /
    Directory created.
    SCOTT@10gXE> SET SERVEROUTPUT ON
    SCOTT@10gXE> DECLARE
      2    f_lob  BFILE := BFILENAME ('AUDDIR', 'chimes.wav');
      3    b_lob  BLOB;
      4    Lob    BLOB;
      5    Length INTEGER;
      6  BEGIN
      7 
      8    SELECT sound
      9    INTO   b_lob
    10    FROM   soundtable
    11    WHERE  id = :g_id_seq
    12    FOR UPDATE;
    13 
    14    dbms_lob.open (f_lob, dbms_lob.file_readonly);
    15    dbms_lob.open (b_lob, dbms_lob.lob_readwrite);
    16    dbms_lob.loadfromfile
    17        (b_lob, f_lob, dbms_lob.getlength (f_lob));
    18    dbms_lob.close(b_lob);
    19    dbms_lob.close(f_lob);
    20    COMMIT;
    21 
    22    SELECT sound
    23    INTO   Lob
    24    FROM   soundtable
    25    WHERE  ID = :g_id_seq;
    26    length := DBMS_LOB.GETLENGTH (Lob);
    27    IF length IS NULL THEN
    28        DBMS_OUTPUT.PUT_LINE ('LOB is null.');
    29    ELSE
    30        DBMS_OUTPUT.PUT_LINE ('The length is '|| length);
    31    END IF;
    32  END;
    33  /
    The length is 55776
    PL/SQL procedure successfully completed.
    SCOTT@10gXE>

  • Importing 9.2 to 10.2

    Hi All,
    I'm trying to import a full dump from 9.2 to 10.2 for days now and cannot figure out what the problem is. 10.2 is on a different server but also windows 2003 SP2.
    NLS_LANG of both machines are the same for client and server:
    AMERICAN_AMERICA.WE8ISO8859P1
    UFAT is also same on the server.
    Every time i try to import it fail after a while, tried to export again with diffeent files and splitting up files but getting the same error over and over.:
    This is the error:
    . . importing table "HOLDSUBLEDGER"
    illegal lob length marker 49664
    bytesread = 00000000000
    TABLE = HOLDSUBLEDGER
    IMP-00098: INTERNAL ERROR: impgst2
    IMP-00018: partial import of previous table completed: 181470 rows imported
    IMP-00008: unrecognized statement in the export file:
    IMP-00008: unrecognized statement in the export file:
    IMP-00008: unrecognized statement in the export file:
    f
    IMP-00008: unrecognized statement in the export file:
    f
    IMP-00008: unrecognized statement in the export file:
    IMP-00008: unrecognized statement in the export file:
    IMP-00008: unrecognized statement in the export file:
    IMP-00008: unrecognized statement in the export file:
    IMP-00008: unrecognized statement in the export file:
    S+_5
    IMP-00008: unrecognized statement in the export file:
    I get a lot of IMP-00008:
    When it goes trough it goes fine for a while and tha again the import stops and end
    IMP-00009: abnormal end of export file
    IMP-00018: partial import of previous table completed: 5084344 rows imported
    Thanx for answering

    IMP-00098: INTERNAL ERROR: impgst2
    IMP-00018: partial import of previous table completed: 181470 rows imported
    IMP-00008: unrecognized statement in the export file: You may need to file a SR for this in metalink.
    Also check if Metalink Doc 278980.1 helps.

  • While importing on redhat oracle 10.2.x segmentation error

    oracle 10g on redhat
    while importing from dmp the errors are
    1.
    IMP-00008: unrecognized statement in the export file:
    illegal lob length marker 65070
    bytesread = 00000000000
    TABLE =
    IMP-00098: INTERNAL ERROR: impgst2Segmentation fault
    2.[oracle@appsrv3 u01]$ imp system/orcl file=expsys.dmp fromuser=y touser=peradm log=log1
    Import: Release 10.2.0.1.0 - Production on Wed Oct 29 14:01:35 2008
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    Export file created by EXPORT:V10.02.01 via conventional path
    Warning: the objects were exported by Y, not by you
    import done in US7ASCII character set and AL16UTF16 NCHAR character set
    import server uses WE8ISO8859P9 character set (possible charset conversion)
    export client uses WE8MSWIN1252 character set (possible charset conversion)
    . importing Y's objects into PERADMSegmentation fault
    [oracle@appsrv3 u01]$
    how can I solve the problem
    Edited by: user592553 on 29.Eki.2008 12:41

    Hi Ercument
    Have you read that note on metalink:
    Subject:      Bug 3772092 - Exporting with some NLS_LANG settings can produce corrupt export file
         Doc ID:      Note:3772092.8
    Error: IMP 8
    Text: unrecognized statement in the export file: n %s
    Cause: Unrecognized statement in export file. This could be due to
    corrupted export file or Import internal bug.
    Action: If the export file is corrupted, retry with a new export file.
    Else report this as Import internal error
    the solution seems to be
    export NLS_LANG='AMERICAN_AMERICA.WE8ISO8859P15'
    Are you using 10.2-0.1 that quite old, is it possible to upgrade to 10.2.0.4 ?

  • Oracle Import errors  IMP-00098,   IMP-00028 , IMP-00008

    Hi all
    I have successfully exported a schema called ahc from Database 10g Enterprise Edition Release 10.2.0.1.0 on linux.
    but when i imported in test db server running the same OS and Oracle Versions.it returnd errors .
    i took the export three times but got the same error while importing.
    here is out put
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    Export file created by EXPORT:V10.02.01 via conventional path
    import done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
    export client uses US7ASCII character set (possible charset conversion)
    . . importing table "ADM_DTL" 0 rows imported
    . . importing table "ADVANCES" 1 rows imported
    . . importing table "BANK" 10 rows imported
    . . importing table "BASIC" 2 rows imported
    . . importing table "DESIGN" 240 rows imported
    . . importing table "DISTRICT" 26 rows imported
    . . importing table "EMPLOYEEMAIN" 3 rows imported
    . . importing table "GRADES" 185 rows imported
    . . importing table "ICD" 15413 rows imported
    . . importing table "MAINCODES" 336 rows imported
    . . importing table "QUALIFICATION" 15 rows imported
    . . importing table "SALARY" 2 rows imported
    . . importing table "SPALLOWANCE" 16 rows imported
    . . importing table "TBL_LAB_GROUP" 470 rows imported
    . . importing table "TBL_LAB_MAIN_DTL" 231992 rows imported
    . . importing table "TBL_LAB_MAIN_MAS" 79552 rows imported
    . . importing table "TBL_LAB_OPINION" 856 rows imported
    . . importing table "TBL_LAB_RESULT"
    illegal lob length marker 32770
    bytesread = 00000000000
    TABLE = TBL_LAB_RESULT
    IMP-00098: INTERNAL ERROR: impgst2
    IMP-00028: partial import of previous table rolled back: 137170 rows rolled back
    IMP-00008: unrecognized statement in the export file:
    IMP-00008: unrecognized statement in the export file:
    IMP-00008: unrecognized statement in the export file:
    *¿4¿¿¿E¿N¿*
    *#¿U="¿1¿¿¿¿;¿~¿O¿¿¿w4H¿¿¿"¿"¿>`N¿¿G¿¿¿¿¿¿¿¿'¿$V¿¿¿¿¿6¿i¿2Xn¿.¿¿_<5H¿¿q¿¿¿¿¿<c¿¿#U07¿¿¿n¿Uh¿*¿¿¿¿¿N¿¿¿v+2db¿9¿¿#jd¿¿¿7¿At¿(*
    *IMP-00008: unrecognized statement in the export file:*
    *¿¿¿V )((*
    *IMP-00008: unrecognized statement in the export file:*
    *¿H¿m¿¿*
    *IMP-00008: unrecognized statement in the export file:*
    *IMP-00008: unrecognized statement in the export file:*
    *IMP-00008: unrecognized statement in the export file:*
    c¿1
    IMP-00008: unrecognized statement in the export file:
    *¿¿¿¿¿PIz¿o/¿¿o¿O¿\¿7¿¿f¿¿¿(¿¿@     @*
    IMP-00008: unrecognized statement in the export file:
    *¿¿¿"¿¿G¿0¿U¿v¿¿1!¿J¿f>¿¿¿44s¿RYD¿j¿¿¿c¿!¿*
    *IMP-00008: unrecognized statement in the export file:*
    *¿¿v)<¿¿i¿:f¿A@*
    *IMP-00008: unrecognized statement in the export file:*
    *IMP-00008: unrecognized statement in the export file:*
    *IMP-00008: unrecognized statement in the export file:*
    *IMP-00008: unrecognized statement in the export file:*
    *IMP-00008: unrecognized statement in the export file:*
    *IMP-00008: unrecognized statement in the export file:*
    *¿%¿1¿¿¿K@*
    *IMP-00008: unrecognized statement in the export file:*
    *IMP-00008: unrecognized statement in the export file:*
    *:BLAN.TERMID:=:GLOBAL.TERMID;*
    *IMP-00008: unrecognized statement in the export file:*
    *:BLAN.SHIFT:=:GLOBAL.SHIFT;*
    *IMP-00008: unrecognized statement in the export file:*
    *IMP-00008: unrecognized statement in the export file:*
    *END;*
    *IMP-00008: unrecognized statement in the export file:*
    *IMP-00008: unrecognized statement in the export file:*
    *r100g0b100¿¿*
    *IMP-00008: unrecognized statement in the export file:*
    *00r25g100b75@*
    *IMP-00008: unrecognized statement in the export file:*
    *00r50g100b75¿*
    *IMP-00008: unrecognized statement in the export file:*
    *00r75g100b75¿*
    *IMP-00008: unrecognized statement in the export file:*
    *00r88g100b75¿*
    *IMP-00008: unrecognized statement in the export file:*
    *IMP-00008: unrecognized statement in the export file:*
    Import terminated successfully with warnings.
    Edited by: farnaw4u on Feb 26, 2010 10:17 AM

    Hello,
    You may experience a bug or a corruption in the "dump". If it's a corruption you may retry your export/import.
    But, anyway, the classical Export/Import is not recommended. Starting with 10.1 you should use Datapump
    (expdp/impdp).
    Please, find enclosed a link about this utility:
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14215/part_dp.htm#i436481
    Hope this help.
    Best regards,
    Jean-Valentin

  • SDO_GEOR.importFrom : Unable to render RenderedOp for this operation

    Contributors,
    I have trouble in loading a persistent LOB into a georaster :
    - I use sdo_geor.getRasterSubset to get whole cells (512x512) of band 0 of a 8BIT_U georaster, into a BLOB
    - dbms_lob.getLength of the blob gives me correct length : 262144 (=512x512)
    - i stored this blob into a persistent LOB (LOB in table)
    - just to check, i did dbms_lob.getLength for the BLOB column. gives me 262144
    - but when i used SDO_GEOR.importFrom to load the BLOB from the blob table into the georaster table, error occured :
    ERROR at line 1:
    ORA-13464: error loading GeoRaster data: - Unable to render RenderedOp for this operation.
    ORA-06512: at "MDSYS.MD", line 1723
    ORA-06512: at "MDSYS.MDERR", line 17
    ORA-06512: at "MDSYS.SDO_GEOR", line 2966
    ORA-06512: at line 7
    =========
    --this is the code for loading (aboove is the error raised; line 7 is the .importFrom below)
    1   DECLARE
      2   geor SDO_GEORASTER;
      3   pBLOB BLOB;
      4  BEGIN
      5   select myBLOBcol into pBLOB from myBLOBtab where blob_id=1 for update;
      6   select image into geor from experiment where image_id=1 for update;
      7   SDO_GEOR.importFrom(geor,'','TIFF',pBLOB,null,null);
      8   update experiment set image = geor where image_id=1;
      9   commit;
    10  end;
    11  /
    --this is my blob table
    spatial@ORCL>desc myBLOBtab
    Name                                                                    Null?    Type
    BLOB_ID                                                                          NUMBER
    DESCRIPTION                                                                      VARCHAR2(80)
    MYBLOBCOL                                                                        BLOB
    --this is SQL to check the LOB length
    spatial@ORCL>select blob_id,
      2  dbms_lob.getlength(myBLOBcol)
      3  from myblobtab;
       BLOB_ID DBMS_LOB.GETLENGTH(MYBLOBCOL)
             1                        262144
    --this is my georaster table
    spatial@ORCL>desc experiment
    Name                                                                    Null?    Type
    IMAGE_ID                                                                         NUMBER
    DESCRIPTION                                                                      VARCHAR2(100)
    IMAGE                                                                            SDO_GEORASTERThanks for reading and sharing solutions.

    Jeffrey
    All right now am in 11g; after some error in installing 11g, failure in data moving when upgrading from 10gR2 to 11gR1 so i lost all my data (did not backup coz little space left).
    Then i decided to get rid all the installed 11g and 10gR2, cleaning up the registry keys, for clean installation of 11g.
    The 11g is now installed. I didnot have data backup but for georaster backup i can rely on the raster file and table creation sql i stored in text files. When i use the GeoRasterViewer tool (now version 11) for importing these raster files, the "OK" button in 'Import to DB' dialog does not give me anything. It does not works. Nothing loaded. The raster file is 8 bit TIFF, 512 rows x 512 cols x 15 layers. (i tried different images but no luck).
    Here is my table definition :
    CREATE TABLE multilayer
    (image_id NUMBER,
    raster_description VARCHAR2(70),
    image SDO_GEORASTER);
    CREATE TABLE multilayer_RDT OF SDO_RASTER
    (PRIMARY KEY (rasterID, pyramidLevel, bandBlockNumber,
    rowBlockNumber, columnBlockNumber));
    INSERT INTO multilayer
    VALUES(1, 'Raster trial KALISYA! 512x512x15', MDSYS.SDO_GEOR.init('multilayer_rdt', 1));
    (the createDMLtrigger is not necessary anymore in 11g, right?)Another problem is : i created a georaster table for raster of 4 rows x 4 cols x 4 layers, with my specific value for every cells (64 cells all) specified by .changeCellValue. Here is : CREATE TABLE four (image_ID NUMBER, description VARCHAR2(50), image SDO_GEORASTER);     
    CREATE TABLE four_RDT OF SDO_RASTER (PRIMARY KEY (rasterID, pyramidLevel, bandBlockNumber,rowBlockNumber, columnBlockNumber));
    INSERT INTO four VALUES (
    1,'A 4rows x 4columns x 4bands image',
    sdo_geor.createBlank(
    21001,                              --raster type 3D
    SDO_NUMBER_ARRAY(0,0,0),     --origin
    SDO_NUMBER_ARRAY(4,4,4),      --dimension sizes 4x4x4 cells cube
    0,                                    --cell values
    'four_rdt', 1)                    --RDT and rasterID
    DECLARE
    gr sdo_georaster;
    BEGIN
    SELECT image INTO gr FROM four WHERE image_id=1 FOR UPDATE;
    SDO_GEOR.changeCellValue(gr,SDO_NUMBER_ARRAY(0,0,0,0),'0',1);
    SDO_GEOR.changeCellValue(gr,SDO_NUMBER_ARRAY(0,1,0,1),'0',2);
    SDO_GEOR.changeCellValue(gr,SDO_NUMBER_ARRAY(0,2,0,2),'0',3);
    SDO_GEOR.changeCellValue(gr,SDO_NUMBER_ARRAY(0,3,0,3),'0',4);
    SDO_GEOR.changeCellValue(gr,SDO_NUMBER_ARRAY(3,2,3,2),'3',63);
    SDO_GEOR.changeCellValue(gr,SDO_NUMBER_ARRAY(3,3,3,3),'3',64);
    UPDATE four SET image=gr WHERE image_id=1;
    COMMIT;
    END;
    /The console says everything ok but GeoRaster viewer does not show the data AND metadata (metadata tab is blank white). In console i can get the .getCellValue as well (see the value of cell at 4th row 4th col 4th layer is 64).
    select sdo_geor.getCellValue(image,0,3,3,3) from four where image_id=1;
    SDO_GEOR.GETCELLVALUE(IMAGE,0,3,3,3)
                                      64? These were simple and smooth in 10gR2 but i found them weird in 11g. any suggestion ? i tried validate but no luck as well.
    Cheers,
    =damon

  • [ IMPエラー ] IMP-00098: INTERNAL ERROR: impgst2

    はじめまして。
    Oracleに関する初心者ですが、よろしくお願いします。
    ◆インポート中に以下エラーメッセージが発生しました。
    < version情報 >
      ・インポート元ファイル : 9.2.0.1.0
      ・インポート先環境 : 10.2.0.2.0
    < エラーメッセージ >
    . . 表 "PRCH2WRK"をインポートしています
    illegal lob length marker 65279
    bytesread = 00000000000
    TABLE = PRCH2WRK
    IMP-00098: INTERNAL ERROR: impgst2
    IMP-00028: 表のインポート部分がロールバックされました: 1727475行ロールバックされました
    IMP-00008: エクスポート・ファイルで不明な文が見つかりました。
    ◆再度、やり直した際、バッファサイズが足りない可能性も考え、
     SI Object Browserインポート画面にて、
     バッファ長(バイト)100,000 と指定して実行してみましたが、
     上記エラーメッセージが発生しました。
    ◆考えられる原因は何になりますでしょうか?
     ご存知の方がいらっしゃいましたら、ご返答賜りたく、お願い申し上げます。

    コマンドは問題なさそうですね。
    状況の切り分けをしてみるといいかもしれません。
     ・9.2.0.1.0のDBサーバー上、もしくは同じバージョンのClientでファイルを出力したか?
     ・10.2.0.2.0のDBサーバー上、もしくは同じバージョンのClientでファイルをインポートしたか?
     ・少量のデータでも問題が起きるか?
     ・別のテーブルではどうか?
     ・別のユーザーのテーブルではどうか?
     ・もう一度取り直したエクスポートファイルではどうか?
     ・両方のデータベースの文字コードは同じか?
    # よくあるチェック内容の箇条書きで申し訳ないです。
    # 他にもいろいろあるかと思いますが・・・
    元ファイルが壊れている、なんてことも
    ごく稀にあるかと思いますので
    ちょっと確認してみてください。
    サポート契約があるのであれば
    サイトでバグの可能性はないかどうかも
    検索してみるといいかもしれません。

  • Importing from backup

    hi everyone,
    i took backup and when trying to recover got this error while importing
    illegal lob length marker 65279
    unrecognized stat in export file

    First of all, you should be posting the exact stack of error messages and not your own custom shortcut messages.
    I think "illegal lob length marker 65279" is followed by (guessing here) "IMP-00008: unrecognized statement in the export file: " and not "unrecognized *stat* in export file".
    This indicates that your dump file itself is corrupt (either during the transfer or some other reason). You will need to re-export the data before attempting the import again.

  • OrdDoc.getMimeType() null

    The following doc is loaded successfully and later added to the database successfully, but for some reason the mime type is always null. Any ideas?
    OrdDoc doc = (OrdDoc) rset.getORAData(1, OrdDoc.getORADataFactory());
    doc.loadDataFromFile(path + mf.getRef());
    System.out.println(doc.getMimeType()); // null

    Hi Mavris
    Thanks for the reply.
    In my example the reason i did not invoke setProperties() method is because the setProperties method exposed in OrdDoc class is not same as the setProperties method in OrdAudio or OrdImage.
    In OrdDoc class setProperties(byte[][] ctx,boolean setComments) takes two arguments where as setProperties() in OrdAudio and OrdImage does not take any arguments.
    byte[ ] ctx[ ] = new byte [4000][1];
    When i tried to use setProperties(ctx,true) in OrdDoc i was getting an error.
    Can you please tell if this is the correct way to invoke setProperties on OrdDoc in Java Program?
    Regarding the list of format that Intermedia Understands, the Appendices A, B and C in Intermedia Refererence talks only about Audio, Image and Video. It doesnt have any details about Document (pdf, txt, doc) files. Can you please tell where can i look for the list of formats that intermedia understands for OrdDoc?
    Since the dataType is OrdDoc in my table. How do i check the LOB length?
    I tried it using Intermedia Java API by calling getContentLength method after retreiving the OrdDoc column from resultset but it has a value of '0'. So am not sure why the document is not getting loaded.
    Please help me resolve this issue.
    Thanks

Maybe you are looking for

  • Cannot install Windows 8 Consumer Preview on MacBook Air 11" (Late 2010)

    Hi, I'm trying to install Windows 8 Consumer Preview on my MacBook Air 11" (Late 2010 model) via Boot Camp assistant. I've hacked the Info.plist of the Boot Camp Assistant to allow it to create a bootable USB installer drive. After successfully creat

  • How to show pivot total in value only, and column in percentage only

    Hi All, I want to show pivot table by column percentage only (no value), but total in value only without showing percentage. How to do that? Thank you, Ling

  • EDIFACT Converter for SAP XI 3.0.

    Hello, I have heard that there is no own or out-of-the-box EDI converter/adapter available for SAP XI 3.0. that has been developed by SAP itself. Is this true? Do you have an overview over resellers/suppliers who deliver EDI converters and maybe also

  • Calculator  Widget - CPU and Memory

    Here's a fun one... Type in 99999999 into Calculator, click "times", click "equals" until overflow (exponent will read +128, I think), and then try to click "clear".... nothing happens, or wait... look at Activity Monitor, and watch your CPU go to ma

  • Urgent... LSMW ..for tcode CR01...

    Hi..   In LSMW ..for tcode CR01...while creating work center....'m not able to populate the data in KOSTL ( cost center ) field... Please help... Thanks Rudresh