Error while retrieving data

I try to extract the data from a cursor in the nested table. But I get the error below.

Error on line 15: PL/SQL: statement ignored

create or replace procedure p1
 is
cursor c1 is select ACCOUNT_NO from daily_amount  ;
type nest_tbl is table of NUMBER(24);
t1 nest_tbl;
begin
open c1;
loop
fetch c1 bulk collect into t1 ;
EXIT WHEN C1%NOTFOUND;
END LOOP;
close c1;
for i in 1..t1.count
loop
DBMS_output.put_line( T1(i).ACCOUNT_NO ); --- ERROR HERE ( Error at line 15: PL/SQL: Statement ignored  )
end loop;
END;



I should get 4 rows but I get 10 output lines. (use the limit 4).

When we GATHER in BULK, we can consume a lot of memory PGA by extract all lines in a single cycle, if the data table is huge. To do this, extract us the data into segments using the Limit clause.

  1. FETCH c1 into BULK COLLECT WITHIN the limits of the t1 4;

The statement above means that fetch only at max 4 rows in a single cycle. Extract the remaining lines in the next cycle.

Tags: Database

Similar Questions

  • Error while loading data file with using a file of rules through a MAXL.

    I think that the functionality to generate a. Records error during loading data in the ERR file is supported only if there is a. RUL file being used.

    Is this good?

    I tried to get. ERR files to generate by using the following statement:
    Import database PL_RPT. Reprting data data_file
    "E:\Hyperion\AnalyticServices\APP\PL\PL.txt" to load_buffer with buffer_id 17
    Error writing to "E:\Hyperion\Scripts\Pln\Logs\LoadlData.err."

    When I run this, if there are errors, it is not generated any file errors and stops the load.

    I saw the technical reference Essbase ASO MAXL data loading and code syntax diagram indicates that it is supported.

    Any suggestions will be greatly appreciated.

    Thank you

    Hello

    Here are a few suggestions for trapping errors. I hope that one of them will meet your needs:

    1._____________________________________________

    spool to 'D:\logs\maxlresults.out ';

    function SIERREUR 'WRITE_ERRORS ';

    / * do stuff * /.

    Define the label 'WRITE_ERRORS ';
    spool off;
    spool to 'D:\logs\maxlerrors.out ';
    "exit";

    2._____________________________________________

    coil stdout to "D:\logs\maxlresults.out."
    coil stderr to "D:\logs\maxlerrors.out."

    3._____________________________________________

    essmsh script.msh 2 > D:\logs\maxlresults.out

    Robb

  • Getting error while inserting data from source to the target in the procedures?

    Hello

    I want to insert the data from the source to the target in the procedures, have the same schema.

    For this, I did as follows

    Command on the source:

    Technologies: oracle

    Schema: EDWHCMB

    Command:

    SELECT COMPANY_NAME, COMPANY_CODE OF

    EDWHCMB. DWT_COMAPNY

    Command on the target:

    Technologies: oracle

    Schema: EDWHCMB

    command:

    INSERT INTO EDWHCMB. TEMP

    VALUES)

    COMPANY_CODE,

    COMPANY_NAME)

    I have run the procudere then I got error as follows

    ODI-1228: SAMPLE1 (procedure) task fails on ORACLE EDWH connection target.

    Caused by: java.sql.BatchUpdateException: ORA-00984: column not allowed here.


    How to insert the data from the source to the target in the proceedings?

    Please send any document to this...

    Please help me.

    Thanks in advance,

    A.Kavya.

    Hi Bruno.

    If your tables are on the same schema then why do you use command on the source and the command on the target? You can simply do the following on the command on the target

    INSERT INTO EDWHCMB. TEMP

    SELECT COMPANY_NAME, COMPANY_CODE OF

    EDWHCMB. DWT_COMAPNY


    If you really want at all to use the command on the source and target both then I think you need to change the following code on your order on the target

    INSERT INTO EDWHCMB. TEMP

    VALUES)

    : COMPANY_CODE,.

    (: COMPANY_NAME)

    Hope your TEMP table has only these 2 columns.

    Thank you

    Ajay

  • Error while loading data in Planning

    Failed to load the data in the planning of the 11.1.2.3.200 using ODI 11.1.1.7

    Please find the errors at the bottom of newspapers:

    INFO [SimpleAsyncTaskExecutor-2]: Oracle Data Integrator adapter for Hyperion Planning

    INFO [SimpleAsyncTaskExecutor-2]: Connection to the planning your application [xxxxxxx] on [xxxxxxxxxxx]: [xxxx] using [admin] username.

    [SimpleAsyncTaskExecutor-2] INFO: Successfully connected to the planning application.

    INFO [SimpleAsyncTaskExecutor-2]: Loading for the charge of planning options

    Name of the dimension: account type Parent child: false

    Order By entry charge: forgery

    Update the database: false

    INFO [SimpleAsyncTaskExecutor-2]: Beginning of the loading process.

    DEBUG [SimpleAsyncTaskExecutor-2]: number of columns in the result set of source does not match the number of columns planning targets.

    INFO [SimpleAsyncTaskExecutor-2]: Type of load is a [member of the load dimension].

    ERROR [SimpleAsyncTaskExecutor-2]: file [[A603010, null, null, null, null, null, null, null, null, null, null, null, xxxxx,-100, F3E0, C011, E7172_93275, FY17, Stage 1, level of current Service, Jul, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null]] was rejected by Planning Server.

    ERROR [SimpleAsyncTaskExecutor-2]: file [[A601060, null, null, null, null, null, null, null, null, null, null, null, xxxxx,-250, F3E0, C011, E7172_93275, FY17, Stage 1, level of current Service, Jul, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null]] was rejected by Planning Server.

    log. Err

    Account, name of Cube to load data, Budget, Point of view, Error_Reason

    A603010, xxxxx,-100, F3E0, C011, E7172_93275, FY17, Stage 1, current service level, Jul, cannot load the dimension member, error message is: RemoteException occurred in the server thread; nested exception is:

    java.rmi.UnmarshalException: not recognized hash method: method not supported by the remote object

    A601060, xxxxx,-250, F3E0, C011, E7172_93275, FY17, Stage 1, current service level, Jul, cannot load the dimension member, error message is: RemoteException occurred in the server thread; nested exception is:

    java.rmi.UnmarshalException: not recognized hash method: method not supported by the remote object

    Journal FDMEE:

    : [AIF] error: no record exists for period "Pd 2 - 01-08-2014".

    : [AIF] error: no record exists for period "Pd 3-2014-09-01"

    FDMEE logging level is set to 5

    The PES of planning that you applied contains a new version of the HspJS.jar so that could be a possible way of this error could have surfaced. For me personally, I think you'd better get everything patched up to the 11.1.2.3.500 PSU continuing at least before that it is a known problem in this version and there are the notes I have mentioned previously, to help patching.

    It is clear from the error that there is a mismatch in versions of the Agent of ODI FDMEE with the Planning Server jar files. One thing you might be able to try on this front would be to save the current file HspJS.jar in the C:\Oracle\Middleware\odi\oracledi.sdk\lib House FDMEE ODI and place a copy of the same file of your planning server in the C:\Oracle\Middleware\EPMSystem11R1\products\Planning\lib folder (or equivalent).

    I've not personally seen this error before where the 500 patch had not been implemented well. Decide which approach you take will be up to you really, but I suggest to patch to 500 as best as possible and go from there.

    Concerning

    Craig

  • Get the error while loading data

    Hello

    I get an error when loading the data in the database demo Application based on Essbase 11.1.1.3. I used the format during the loading of the data below
    'Stereo"-Tab-"Boston"-Tab-"Actual"-Tab-"Jan"-Tab-"Sales"-Tab-"100 '.
    But when I try to open this text file in the rule file it said - empty character in the name. No idea what's wrong I do.

    The hierarchy of the Demo.Basic database as below:
    Year
    -T1
    -Jan
    Market
    -East
    -Boston
    Product
    -Audio
    -Stereo
    Account
    -Profit
    -Margin
    -Sales
    Scenerio
    -Real

    Thank you

    Where is saved the file? I believe that this is the error message you get if you save the files in a folder such as My Documents, in which you will notice a space between my and Documents. Try to save your file in a directory where there is no space such as C:\Hyperion.

    See you soon,.
    Mehmet

  • Help with 14400 ORA error while inserting data

    Hi all

    I am facing an error ora-14400 in the following scenario, please help.

    I created a table using the syntax:

    CREATE TABLE insert_table
    (
    NUMBER OF GRPKEY (20, 0) NOT NULL,
    N NUMBER (10, 0),
    JOVAN VARCHAR2 (250 BYTE),
    APC VARCHAR2 (2 BYTE),
    SID VARCHAR2 (65 BYTE),
    RDATETIME VARCHAR2 (BYTE 19),
    NUMBER OF CKEY (20, 0),
    AVER VARCHAR2 (25 BYTE),
    VARCHAR2 (250 BYTE) CVER,
    TNOM VARCHAR2 (50 BYTE),
    SCODE VARCHAR2 (30 BYTE),
    PTAPEZ VARCHAR2 (50 BYTE),
    NUMBER OF FILENUMB (10, 0),
    NUMBER OF LINENUMB (10, 0),
    DATE OF ENTRY_CREATEDDATE
    CONSTRAINT temp_table_PK PRIMARY KEY (GRPKEY))
    PARTITION OF RANGE (ENTRY_CREATEDDATE)
    (PARTITION P0 VALUES LESS THAN (TO_DATE (' 2009-01-01 00:00:00 ',' SYYYY-MM-DD HH24:MI:SS ',' NLS_CALENDAR = GREGORIAN ')))
    );


    When I try to insert data using the:


    insert into insert_table values
    (1, null, null, null, null, null, null, null, null, null, null, null, null, null, November 1, 2010 "");

    I get the following error output:
    Error report:
    SQL error: ORA-14400: inserted partition key is not mapped with any partition
    14400 00000 - "inserted partition key is not mapped to any partition.
    * Cause: An attempt was made to insert a record into a beach or a Composite
    Range object, with a concatenated partition key that overflows
    the concatenated partition bound list of the last partition - or-
    An attempt was made to insert a record into a list object with
    a partition key that does not match the specified literal values
    for all partitions.
    * Action: Do not insert the key. Add a partition capable of accepting
    the key, or add values corresponding to the key a partition specification

    Hi Chaitanya,

    Change your table script to

    CREATE TABLE temp_table
    (
    GRPKEY NUMBER(20, 0) NOT NULL,
    UKEY NUMBER(10, 0),
    ANUM VARCHAR2(250 BYTE),
    APC VARCHAR2(2 BYTE),
    SID VARCHAR2(65 BYTE),
    RDATETIME VARCHAR2(19 BYTE),
    CKEY NUMBER(20, 0),
    AVER VARCHAR2(25 BYTE),
    CVER VARCHAR2(250 BYTE),
    TNAME VARCHAR2(50 BYTE),
    SCODE VARCHAR2(30 BYTE),
    PTYPE VARCHAR2(50 BYTE),
    FILENUMB NUMBER(10, 0),
    LINENUMB NUMBER(10, 0),
    ENTRY_CREATEDDATE DATE
    , CONSTRAINT temp_table_PK PRIMARY KEY (GRPKEY))
    PARTITION BY RANGE(ENTRY_CREATEDDATE)
    (PARTITION P0 VALUES LESS THAN(TO_DATE(' 2009-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')),
    PARTITION P1 VALUES LESS THAN(MAXVALUE)
    );
    
    insert into temp_table values
    (1,null,null,null,null,null,null,null,null,null,null,null,null,null,'01-NOV-2010');
    1 row inserted
    

    or refer the question about the "Date of partitioning of a table"
    * 009 *.

    Published by: 009 November 3, 2010 23:29

  • Error while inserting data with DBMS_RANDOM

    Hello
    I tried the following insert command in the link http://www.oracle-base.com/articles/misc/RollupCubeGroupingFunctionsAndGroupingSets.php
    BANNER
    ----------------------------------------------------------------
    Oracle Database 10g Release 10.2.0.1.0 - Production
    PL/SQL Release 10.2.0.1.0 - Production
    CORE    10.2.0.1.0      Production
    TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    
    SQL> INSERT INTO dimension_tab
      2  SELECT TRUNC(DBMS_RANDOM.value(low => 1, high => 3)) AS fact_1_id,
      3         TRUNC(DBMS_RANDOM.value(low => 1, high => 6)) AS fact_2_id,
      4         TRUNC(DBMS_RANDOM.value(low => 1, high => 11)) AS fact_3_id,
      5         TRUNC(DBMS_RANDOM.value(low => 1, high => 11)) AS fact_4_id,
      6         ROUND(DBMS_RANDOM.value(low => 1, high => 100), 2) AS sales_value
      7  FROM   dual
      8  CONNECT BY level <= 1000;
    SELECT TRUNC(DBMS_RANDOM.value(low => 1, high => 3)) AS fact_1_id,
                                       *
    ERROR at line 2:
    ORA-00907: missing right parenthesis
    Could you please advice me to get the correct records

    >
    You cannot use named parameters for the function/procedure calls in SQL up to version 11.
    >

    You cannot use a procedure in SQL even in version 11.

    For the OP,.

    The named parameters in the functions not suitable for versions of oracle less than 11 in what Tubby said.

    Try the following.

    INSERT INTO dimension_tab
    SELECT TRUNC(DBMS_RANDOM.value( 1,  3)) AS fact_1_id,
           TRUNC(DBMS_RANDOM.value( 1,  6)) AS fact_2_id,
           TRUNC(DBMS_RANDOM.value( 1,  11)) AS fact_3_id,
           TRUNC(DBMS_RANDOM.value( 1,  11)) AS fact_4_id,
           ROUND(DBMS_RANDOM.value( 1,  100), 2) AS sales_value
    FROM   dual
    CONNECT BY LEVEL <= 1000;
    

    G.

  • Error while loading data Hyperion essbase 11.1.2.2 ODI-1228

    ODI-1228:

    Caused by: java.sql.SQLException: sentencia SQL don't get runs en modo 'batch '.

    at org.hsqldb.jdbc.Util.sqlException (unknown Source)

    at org.hsqldb.jdbc.Util.sqlException (unknown Source)

    at org.hsqldb.jdbc.Util.sqlExceptionSQL (unknown Source)

    at org.hsqldb.jdbc.JDBCPreparedStatement.executeBatch (unknown Source)

    at oracle.odi.runtime.agent.execution.sql.SQLCommand.end(SQLCommand.java:267)

    at oracle.odi.runtime.agent.execution.sql.SQLExecutor.endExecution(SQLExecutor.java:156)

    at oracle.odi.runtime.agent.execution.sql.SQLExecutor.endExecution(SQLExecutor.java:1)

    at oracle.odi.runtime.agent.execution.DataMovementTaskExecutionHandler.handleTask(DataMovementTaskExecutionHandler.java:113)

    Thank you.

    Hello

    Please find the Sub forum archived for consultation.

    https://community.Oracle.com/thread/2588822

    Thank you

    ~ KKT ~.

  • sqlplus: error while loading shared libraries: /opt/oracle/lib/libclntsh.so.11.1: ELF file data encoding not little-endian not

    Hello

    I get the error message below.

    We have made the correction but the suite spot not be able to start the database.

    sqlplus: error while loading shared libraries: /opt/oracle/u01/app/oracle/product/11.2.0.3/lib/libclntsh.so.11.1: ELF file data encoding not little-endian not

    Need your help in resolving this issue.

    Thank you

    Srinivasan R wrote:

    Hello

    FYI,.

    We have applied the fix for database only and there's OS patching.

    Thank you

    Srinivasan R

    Realize that Oracle provides the PATCH of the DATABASE for different versions of the OS & if you apply the patch to the database for the version of Solaris on a HP version.

    then the problems will result.

    If sqlplus worked without error before applying the patch & now ENDIAN error reports, problem exists between keyboard and Chair!

  • Retrieve data after a certain line

    Hi guys,.

    Any advice or assistance would be appreciated

    Question: How do I retrieve data after a certain line of a string of delimited by commas that are read from a port series?

    More info: to have a map which includes data values and can be read in the computer via a serial port. Example of a string of acquired data as below:

    Data = 1 bit/s = sensor tool
    ; Label, time, voltage, pressure, temperature, current
    A, 01:33, 5.1, 18.1, 31.2, -.
    B, 01:34, 5.5, 19.2, 30.5, -.
    Data = 1 bit/s = sensor tool
    ; Label, time, voltage, pressure, temperature, current
    A, 01:35, 5.3, 18.3, 30.1, -.
    B, 01:36, 5.1, 19.0, 30.5, -.

    Data = 1 bit/s = sensor tool
    ; Label, time, voltage, pressure, temperature, current
    A, 01:37, 5.1, 18.1, 30.8, -.
    B, 01:38, 5.3, 19.2, 30.1, -.

    The value of these data is kept up-to-date line by line. I would like to start to extract data only on the 3rd block of incoming data. I would not that the first 2 blocks incoming data.

    More info: currently, my idea to do this is to analyse the '; '. data"and put it in a counter. If there are 2 '; data' scanner, then woud counter set to True in a case to start structure to extract the output data. Please see my attached picture.

    However, I'm not able to create also a counter using a table that I can't use a while loop and register shift. You have an idea? Thank you very much.

    Hi pokerprof,

    If you plan to get the data individually, have you tried the following:

    Put the output of the select.vi (where it is used as part of the counter) to a comparison so that when we tell: counter-online 3, begin to extract.

    Alternatively, you can use the below:

    The number of iterations that you plan to run? My concern would be the overflow of integer of the meter (http://en.wikipedia.org/wiki/Integer_overflow).

    You can try like vi, illustrated by johnsold (if you get all the data in a single iteration).

    Thank you

    Warm greetings,

    Lennard.C

  • Issue to receive the error message "the system has recovered from a serious error" while working on the computer and the computer restarts automatically.

    Original title: The system has recovered from a serious error-

    The system has recovered from a serious error-

    When you work in windows xp home edition, whenever this programe message and stop running and some auto restart machine.

    What is the solution for this?

    Hi Sandeep,

    Thanks for posting your question in the Microsoft Community forum.
    It seems that you have a problem with the error message "the system has recovered from a serious error," while working on the computer, and the computer restarts automatically.
    I imagine the inconvenience that you are experiencing. We are here to help and guide you in the right direction.
    I may need a few more details to better understand the issue.
    Method 1: I suggest following the steps listed in the article and check if it works.
    Error message: the system has recovered from a serious problem

    Method 2:
    I suggest you analyze your computer by using the Microsoft Security Scanner, which would help us to get rid of viruses, spyware and other malicious software.

    The Microsoft Security Scanner is a downloadable security tool for free which allows analysis at the application and helps remove viruses, spyware and other malware. It works with your current antivirus software.
    Note: The Microsoft Safety Scanner ends 10 days after being downloaded. To restart a scan with the latest definitions of anti-malware, download and run the Microsoft Safety Scanner again.
    Important: During the scan of the hard drive if bad sectors are found, the scanner tries to repair this sector, all available on which data may be lost.
    You can see the article for more information:
    A "System has recovered from a serious error" message after every restart.

    Get back to us and let us know the State of the question, I'll be happy to help you. We, at tender Microsoft to excellence.

  • Retrieve data from a data Bitlocker Drive lost like BRUT space

    original title: MBR error? BitLocker data reader lost as RAW space... help get it back me? (Please...)

    OK I was experimenting with a system dual boot and naively assumes that it would protect my system Windows 7 of all the problems to have 2 separate drives. Everything was fine for a while - although I had to make some changes in the bios and boot in AHCI instead of IDE mode, which meant a small registry change... I managed to get Win7 to start with ACHI just fine, if something happened to my drive D: (data) and it has now only show as space GROSS, it was a Bitlocker-protected drive, so something has gone wrong with the MBR or partition tables or something. I need a way to recover the files in the Bitlocker partition... (need to SEE the bitlocker partition can still help)

    Any help would be greatly appreciated - I'll have a terrible run of luck with computers at the moment!

    Thanks in advance... =)

    [I tried this logging with good support from Microsoft query, but he repeated 'network error, try again later' when entering my serial number... They offer free support for legitimate users of Win7?]

    Hi Larry_Jackson,

    Take a look at thisdocument. The Technet Forum is better suited to help with your problem.

    Dena
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Error while executing script root.sh on the nodes at the RAC 11 g installation

    Hello friends,

    Here, I face an error while I run the root.sh script. During the installation of grid RAC, he asked a few dependencies of prereq. There are several .rpm files that were the prerequisites for this installation. I ignore them and I continued the installation. Now, he finally threw an error when running root.sh script. I tried to install several .rpms acquisition of information from the internet, but always this script does not work here.

    Please, suggest what should I do at this point.

    stuck.png

    You guys could help me out here, how I need to go further.

    Simple google search will give you missing RPM. try to install and see if that solves the problem

    https://gruffdba.WordPress.com/2012/11/06/11gr2-grid-install-clscfg-bin-error-while-loading-shared-libraries-libcap-so-1-cannot-open-shared-object-file/

    Don't forget, you need up-to-date existing deconfig install and run root.sh as mentioned below article

    https://desaitaral.WordPress.com/2011/06/13/Oracle-Linux-6-1-and-libcap-so-1-cannot-open-shared-object/

    Another article with the same question - https://taliphakanozturken.wordpress.com/2013/03/02/clscfg-bin-error-while-loading-shared-libraries-libcap-so-1-cannot-open-shared-object-file/

  • Issue while loading data using the file Rules Essbase

    Hi all

    I am facing problem while loading data using the Rules file. In the rules file, I rejected several members in two areas (two dimensions). Now if I load the data using the rules file I'm getting errors for all members in the dataload.err file. If I reject mutiple members of a single field, the data load without settling errors in the dataload.err file.

    I want to know how rmany members of several fields of ejection for loading data using the file Rules Essbase? Is it possible?

    Okay, okay... I think that you must assign Global Select / reject Boolean in the parameters of loading data as 'Or':

  • ORA-02354: Error exporting/importing data, ORA-01555: snapshot too old: rollback segment number with the name "" too small

    Hello

    I am getting below error while taking expdp backup table of BLOB.

    ORA-31693: Data Table object 'HCLM_ADMIN '. "' SCAN_UPLOADEDFILES_TEMP ' failed to load/unload and being ignored because of the error:

    ORA-02354: Error exporting/importing data

    ORA-01555: snapshot too old: rollback segment number with the name "" too small

    ORA-22924: snapshot too old

    ORA-31693: Data Table object 'HCLM_ADMIN '. "' TPA_FAXWATCHER ' failed to load/unload and being ignored because of the error:

    ORA-02354: Error exporting/importing data

    ORA-01555: snapshot too old: rollback segment number with the name "" too small

    ORA-22924: snapshot too old

    We have already set aside retention to 50000 .table structure are:

    SQL > show Cancel parameter

    VALUE OF TYPE NAME

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

    UNDO_MANAGEMENT string AUTO

    UNDO_RETENTION integer 50000

    undo_tablespace string UNDOTBS1

    SQL > alter table hclm_admin. SCAN_UPLOADEDFILES_TEMP modify lob (FILE_BLOB) (RETENTION);

    Modified table.

    SQL > select nom_de_colonne, pctversion and retention

    from dba_lobs where owner = 'HCLM_ADMIN' and table_name = "SCAN_UPLOADEDFILES_TEMP";

    COLUMN_NAME

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

    PCTVERSION RETENTION

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

    FILE_BLOB

    50000

    SQL > alter table hclm_admin. TPA_FAXWATCHER modify lob (FILEDATA_BLOB) (RETENTION);

    Modified table.

    SQL > select column_name, pctversion and retention of dba_lobs where owner = 'HCLM_ADMIN' and table_name = "SCAN_UPLOADEDFILES_TEMP";

    Column_name PCTVERSION RETENTION

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

    FILE_BLOB

    50000

    CREATE TABLE HCLM_ADMIN. TPA_FAXWATCHER

    (

    FILENAME_VAR VARCHAR2 (50 BYTE),

    DATE OF CREATED_DATE_DTE,

    FILEPATH_VAR VARCHAR2 (100 BYTE),

    DATE OF TIMESTAMP_DTE,

    FAXNO_VAR VARCHAR2 (15 BYTE),

    DEPARTMENT_VAR VARCHAR2 (50 BYTE),

    REQUESTTYPE_VAR VARCHAR2 (50 BYTE),

    TAGTO_VAR VARCHAR2 (50 BYTE),

    REMARK_VAR VARCHAR2 (1000 BYTE),

    DOCTYPE_VAR VARCHAR2 (50 BYTE),

    TAGTOVALUE_VAR VARCHAR2 (50 BYTE),

    DOCTYPE_OTHER_VAR VARCHAR2 (50 BYTE),

    HEGIC_NO_VAR VARCHAR2 (50 BYTE),

    RECORDNO_NUM NUMBER OF NON-NULL,

    FILEDATA_BLOB BLOB,

    DATE OF FAXLOCKDATE_DTE,

    NUMBER OF FAXLOCKSTATUS_VAR

    FAXLOCKBYUSER_VAR VARCHAR2 (50 BYTE)

    )

    (STORE AS) LOB (FILEDATA_BLOB)

    TABLESPACE HCLM_ALERTSVC

    ALLOW ONLINE STORAGE

    8192 CHUNK

    RETENTION

    NOCACHE

    LOGGING

    INDEX)

    TABLESPACE HCLM_ALERTSVC

    STORAGE)

    64K INITIALS

    ACCORDING TO 1 M

    MINEXTENTS 1

    MAXEXTENTS UNLIMITED

    PCTINCREASE 0

    DEFAULT USER_TABLES

    ))

    STORAGE)

    64K INITIALS

    ACCORDING TO 1 M

    MINEXTENTS 1

    MAXEXTENTS UNLIMITED

    PCTINCREASE 0

    DEFAULT USER_TABLES

    ))

    TABLESPACE HCLM_ALERTSVC

    PCTUSED 0

    PCTFREE 10

    INITRANS 1

    MAXTRANS 255

    STORAGE)

    64K INITIALS

    ACCORDING TO 1 M

    MINEXTENTS 1

    MAXEXTENTS UNLIMITED

    PCTINCREASE 0

    DEFAULT USER_TABLES

    )

    LOGGING

    NOCOMPRESS

    NOCACHE

    NOPARALLEL

    MONITORING;

    ALTER TABLE HCLM_ADMIN. (ADD) TPA_FAXWATCHER

    KEY ELEMENTARY SCHOOL

    (RECORDNO_NUM)

    USING INDEX

    TABLESPACE HCLM_ALERTSVC

    PCTFREE 10

    INITRANS 2

    MAXTRANS 255

    STORAGE)

    64K INITIALS

    ACCORDING TO 1 M

    MINEXTENTS 1

    MAXEXTENTS UNLIMITED

    PCTINCREASE 0

    ));

    CREATE TABLE HCLM_ADMIN. SCAN_UPLOADEDFILES_TEMP

    (

    NUMBER OF TEMPID_NUM

    SESSION_ID VARCHAR2 (200 BYTE),

    NUMBER OF UPLOADFILE_NUM

    NUMBER OF DOCNO_NUM

    NUMBER OF SCANJOB_NUM

    FILENAME_VAR VARCHAR2 (200 BYTE),

    FILETYPE_VAR VARCHAR2 (200 BYTE),

    FILE_BLOB BLOB,

    VARCHAR2 (200 BYTE) FLAG,

    NUMBER OF USERID_NUM

    CREATED_DATE DATE

    )

    (STORE AS) LOB (FILE_BLOB)

    TABLESPACE PHCLMDBTBS

    ALLOW ONLINE STORAGE

    8192 CHUNK

    RETENTION

    NOCACHE

    LOGGING

    INDEX)

    TABLESPACE PHCLMDBTBS

    STORAGE)

    64K INITIALS

    ACCORDING TO 1 M

    MINEXTENTS 1

    MAXEXTENTS UNLIMITED

    PCTINCREASE 0

    DEFAULT USER_TABLES

    ))

    STORAGE)

    64K INITIALS

    ACCORDING TO 1 M

    MINEXTENTS 1

    MAXEXTENTS UNLIMITED

    PCTINCREASE 0

    DEFAULT USER_TABLES

    ))

    TABLESPACE PHCLMDBTBS

    PCTUSED 0

    PCTFREE 10

    INITRANS 1

    MAXTRANS 255

    STORAGE)

    64K INITIALS

    ACCORDING TO 1 M

    MINEXTENTS 1

    MAXEXTENTS UNLIMITED

    PCTINCREASE 0

    DEFAULT USER_TABLES

    )

    LOGGING

    NOCOMPRESS

    NOCACHE

    NOPARALLEL

    MONITORING;

    Kind regards

    Hello

    First check the lob corrupt as:

    SQL > create table corrupted_lob_data (corrupted_rowid rowid);

    Table created.

    SQL > set off concat

    SQL >

    declare

    SQL > error_1555 exception;

    pragma exception_init (error_1555,-1555);

    number num.

    Start

    for cursor_lob in (select rowid r, & lob_column of table_owner. & table_with_lob) loop

    Start

    NUM: = dbms_lob.instr (. cursor_lob & lob_column, hextoraw ('889911'));

    exception

    When error_1555 then

    insert into corrupted_lob_data values (cursor_lob.r);

    commit;

    end;

    end loop;

    end;

    2 3 4 5 6 7 8 9 10 11 12 13 14 15 16

    17.

    Enter the value of lob_column: FILE_BLOB

    Enter the table_owner value: hclm_admin

    Enter the value of table_with_lob: SCAN_UPLOADEDFILES_TEMP

    former 6: for cursor_lob in (select rowid r, & lob_column of table_owner. & table_with_lob) loop

    6 news: for cursor_lob (select rowid r, FILE_BLOB of hclm_admin loop SCAN_UPLOADEDFILES_TEMP.)

    old 8: num: = dbms_lob.instr (. cursor_lob & lob_column, hextoraw ('889911'));

    8 new: num: = dbms_lob.instr (cursor_lob. FILE_BLOB, hextoraw ('889911'));

    PL/SQL procedure successfully completed.

    SQL > select * from corrupted_lob_data;

    CORRUPTED_ROWID

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

    AAASF/AAKAABacyAAA

    To resolve this problem, we have 3 options

    (1) to restore and recover the LOB segment using physical backup.

    (2) empty LOBs affected using the UPDATE, as mentioned in the Note 787004.1statement:

    SQL > update SCAN_UPLOADEDFILES_TEMP

    Set FILE_BLOB = empty_blob()

    where rowid in (select corrupted_rowid

    of corrupted_lob_data);

    SQL > commit;

    (3) perform the export, excluding the corrupt ROWID. by adding the following to export command parameter

    Query =------"where rowid not in (\'AAASF/AAKAABacyAAA\'\) \ \" "

    Kind regards

    Alok Dwivedi

Maybe you are looking for