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.

Similar Messages

  • 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.

  • 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

  • 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

  • ORA-01741: illegal zero-length identifier

    Hi Friends,
    I am facing a weird situation while creating a report with region having type as SQL Query(PL/SQL function body returning SQL Query).
    I have a package function which takes 4 parameters and returns a SQL query in a varchar2 variable.
    Now when I have the following code in my region source and on applying changes is showing ORA-01741: illegal zero-length identifier
    DECLARE
    l_query VARCHAR2 (5000);
    BEGIN
    SELECT apx_dashboard_pkg.f_int_monthly_grid (:p5_1, :p5_2, :p5_3, :p5_4)
    INTO l_query
    FROM DUAL;
    RETURN l_query;
    END;
    If I change my code as below by passing values and run, then it does the job perfect.
    DECLARE
    l_query VARCHAR2 (5000);
    BEGIN
    SELECT apx_dashboard_pkg.f_int_monthly_grid(200712,
    'IC',
    3,
    'AVARO'
    INTO l_query
    FROM DUAL;
    RETURN l_query;
    END;
    I have no clue where I am doing wrong.
    Please help me.
    Thanks,
    Raj.

    Thanks guys for your responses.
    Varad,
    I have tried with 'Generic Column Names' and it worked wonderfully.
    Scott,
    I would definitely consider your point because it might be the reason for erroring out in some of my pages in the application.
    Thanks a lot.

  • 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

  • Cannot move the Project length marker! GB 10.0.2

    Hi, I'm having problems moving the project length marker in my GarageBand 10.0.2 file.  I need to export 2 short tracks, and so I need to move the project length marker to the end of the short tracks before I export them.  But the project length marker stops at the end of the longest track even though the track is muted out...and this means I cannot move the project length marker to the proper position.  It worked fine and then it stopped working.  Please help! 

    Then mark the section of the song that you want to export with the cycle region. The end-of-song marker does not matter, if the yellow cycle region is active.  Only the cycle region will be exported.

  • 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

  • [ 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.

  • 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!

  • Runtime error ORA-01741after upgrade

    Hi,
    I got the error ORA-01741 : illegal zero-length identifier for many target tables, after upgrading to 9.0.3. The running is successfull, but I get this error when I look at the target table audit.
    Any tips what could cause that ?
    Thank's

    Could it be that any of your object names or attributes names are empty? Could you take a look at a generated script that causes this problem (I would expect 2 double quotes with nothing in between)?
    Thanks,
    Mark.

  • Create user APEX_030200 identified by ""

    My first attempt to install APEX into a new Oracle11g database on Windows XP. I noticed the following error:
    I. O R A C L E S Y S I N S T A L L P R O C E S S
    ...create flows user
    create user APEX_030200 identified by ""
    ERROR at line 1:
    ORA-01741: illegal zero-length identifier
    Why did the installation process not have an identifier? I tried to issue the same statement in sqlplus and got the same result.
    Thanks for your help.

    Hello Vernon,
    You did run
    @apexins tablespace_apex tablespace_files tablespace_temp images
    Where:
    * tablespace_apex is the name of the tablespace for the Oracle Application Express application user.
    * tablespace_files is the name of the tablespace for the Oracle Application Express files user.
    * tablespace_temp is the name of the temporary tablespace.
    * images is the virtual directory for Oracle Application Express images. To support future Oracle Application Express upgrades, define the virtual image directory as /i/.
    Example: @apexins SYSAUX SYSAUX TEMP /i/
    And provided a password for the ADMIN user when the script asks for it?
    Greetings,
    Roel
    http://roelhartman.blogspot.com/
    You can reward this reply by marking it as either Helpful or Correct ;-)

Maybe you are looking for

  • FF currently limits the number of open sessions

    I currently programmatically launch FF on linux using an execl command. In the run string I use the -P option and launch my application by right clicking on the file that has its own mime type and that is opened by my app before the execl call. (my a

  • Alert for XI messages in a Holding status

    Is there a way to trigger an alert in XI 3.0 sp20 for messages that are in a holding status. Right now I am manually checking using the RWB but I would like to trigger an alert if messages are holding for an extended period of time. I have setup Emai

  • How do I uninstall and then reinstall Lightroom 4?

    My Lightroom 4 is acting up (edit options grayed out...it wonʻt let me delete photos...itʻs saying photos are missing when I havenʻt renamed or relocated them, etc.).  So I want to UNinstall, then REinstall it to see if that helps.  I ordered LR onli

  • Apple Cinema Display 24inch USB Issues

    I recently purchased the new apple cinema display 24" to use on my macbook pro 13"inch. the Display work flawlessly until yesterday, i came to my office as usual connected my macbook pro the display turned on but I couldn't get my keyboard to work. (

  • HyS9EPMServer service automatically stops after starting

    Dear All, I m presently facing some issue with Hyperion EPM Server - Web Application (HyS9EPMServer service). I made a compact installation of HFM 11.1.2.2 components only (as advised on Oracle manuals). I m starting the services as normal, this part