Error in block

Hi all,
I have written a block that would drop each table from recyclebin.
But this block is given be an error
ORA-00933: SQL command not properly ended
ORA-06512: at line 11
DECLARE
   CURSOR c1
   IS
      SELECT object_name
        FROM recyclebin
       WHERE type = 'TABLE';
BEGIN
   FOR tname_record IN c1
   LOOP
      EXECUTE IMMEDIATE ' purge table ' || tname_record.object_name;
   END LOOP;
END;
/could someone please relpy me
rgds
saaz

As already mentioned, use ORIGINAL_NAME instead of OBJECT_NAME:
SQL> select * from recyclebin;
OBJECT_NAME                    ORIGINAL_NAME                    OPERATION TYPE                 
BIN$lLSA5VSLDv7gQGQKKFp7kQ==$0 T                                DROP      TABLE                
1 row selected.
SQL> BEGIN
  2     FOR tname_record IN ( SELECT object_name
  3                           FROM recyclebin
  4                           WHERE type = 'TABLE'
  5                         )
  6     LOOP
  7        EXECUTE IMMEDIATE ' purge table ' || tname_record.object_name;
  8     END LOOP;
  9  END;
10  /
BEGIN
ERROR at line 1:
ORA-00933: SQL command not properly ended
ORA-06512: at line 7
SQL> BEGIN
  2     FOR tname_record IN ( SELECT original_name
  3                           FROM recyclebin
  4                           WHERE type = 'TABLE'
  5                         )
  6     LOOP
  7        EXECUTE IMMEDIATE ' purge table ' || tname_record.original_name;
  8     END LOOP;
  9  END;
10  /
PL/SQL procedure successfully completed.
SQL> select * from recyclebin;
no rows selected

Similar Messages

  • Select-option in Module Pool-Error-Include block not specified .........

    Hi,
    I am trying to define a select-option at Module Pool level.
    In the program
    SELECTION-SCREEN BEGIN OF SCREEN 1010 AS SUBSCREEN.
    SELECT-OPTIONS: V_BWTAR FOR MSEG-BWTAR.
    SELECTION-SCREEN END OF SCREEN 1010.
    In the Screen flow logic it is as follows
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_0600.
    CALL SUBSCREEN sub_1010 INCLUDING sy-repid '1010'.
    PROCESS AFTER INPUT.
    CALL SUBSCREEN sub_1010.
    MODULE USER_COMMAND_0600.
    At SE51 it is showing an error
    "Include block not specified,not defined or spelt incorrectly.".
    Please let me know how to correct this.
    Thanks,
    K.Kiran.

    HI Emre
    I am having the same issue.  there is not possible to create a subscreen by se51 since I already define the subscreen by selection-screen begin of screen *** as subscreen.
    regards TP

  • Error in Block step in BPM.

    Hi all,
    I am getting the error in block step, my design follows like this i defined one transformation before block step, the transformation step will splits the input bunch of records into equal no of record packets and sent to block step.. while defining block step i used foreach mode, in block step we kept one sync send step which will send message and gets response ....
    but my block step is getting error once message enters into the block...
    Thanks in advance for your valuable  suggestions and solutions...
    Srinivas

    Hello...
    >>the transformation step will splits the input bunch of records into equal no of record packets and sent to block step
    The transformation splits the message into bunch.. Put  the output in a multiline container and use this in the block step...
    >>but my block step is getting error once message enters into the block...
    What error are you getting??
    >>Thanks in advance for your valuable suggestions and solutions...
    Great to know that you are happy with the responses from the community member in this forum.. So I wish to point one more thing here.. Some of the recent threads closed by you were having closing comment as solved.. it will be better if you point out the problem and the solution which you have adopted to solve the same, so that other community member having the same problem will get a speedy solution... This is just a suggetsion from my end...
    Thanks
    Suraj

  • Export with Table Splitting : ORA-01115: IO error reading block from file

    Hello,
    We are in perfroming the last dryrun of our CU&UC conversion.
    The are now in the process of exporting the ECC6 system (Oracle 10.2.0.4.0, HPUX ia64) using sapinst features, "table splitting preparation"
    When doing so, we are facing critical errors :
    Creating file /export_uni/sapinst_splitting/ora_query3_tmp3_1.sql.
    ERROR 2010-08-11 10:27:28.881
    CJS-00084  SQL statement or script failed. DIAGNOSIS: Error message: ORA-12801: error signaled in parallel query server P002
    ORA-01115: IO error reading block from file 90 (block # 16640)
    ORA-27072: File I/O error
    HPUX-ia64 Error: 22: Invalid argument
    Additional information: 4
    Additional information: 16640
    Additional information: -1
    ORA-01115: IO error reading block from file 90 (block # 16640)
    ORA-27072: File I/O error
    HPUX-ia64 Error: 22: Invalid argument
    ORA-06512: at "SAPR3.TABLE_SPLITTER", line 775
    ORA-06512: at line 1
    I have therefore perfmed a dbverify ; no corruption has been recorded.
    When trying to perfrom the EXPORT, without table splitting ; it works fine ...but the processing time is extremely long, as you can imagine. Any help would be highly appreciated.Regards.
    Raoul

    Thank you Stefan,
    Our HPUX Release seems to be indeed 11v3,
    [root@:/root]# uname -a
    HP-UX B.11.31 U ia64 2566039091 unlimited-user license
    I'll check the installation of the  patch and keep you informed
    Thank you
    Raoul
    Edited by: Raoul Shiro on Aug 11, 2010 11:57 AM

  • ORA-01114: IO error writing block

    What is the best way to recover from error :
    Wed Nov 22 21:44:01 2006
    Errors in file c:\oracle\admin\orcl\bdump\orcl_dbw0_3932.trc:
    ORA-01242: data file suffered media failure: database in NOARCHIVELOG mode
    ORA-01114: IO error writing block to file 65 (block # 260237)
    ORA-01110: data file 65: 'C:\ORADATA\ORCL\RG_IDX_16.ORA'
    ORA-27072: skgfdisp: I/O error
    OSD-04008: WriteFile() failure, unable to write to file
    O/S-Error: (OS 1) Incorrect function.
    DBW0: terminating instance due to error 1242
    Instance terminated by DBW0, pid = 3932

    The basic meaning of this error stack is DB writer is unable to write to the mentioned datafile. There could be logical or physical corruption (hardware failure) or another process blocks this datafile. In the latter case the problem should be temporarily,
    1) shutdown the database
    2) run chkdsk (to check for disk failures)
    3) startup the database
    If the error persists you have to restore/recover from a backup. Since the database is running in noarchivelog mode this can only be done from a cold backup, which means probably loss of data.
    Werner

  • SQL Error: 1114: ORA-01114: IO error writing block to file (block # )

    hi
    When I run report in rsrt it is throwing me following error..
    Messages:
    ORA-01114: IO error writing block to file (block # )
    SQL Error: 1114
    Error while reading data; navigation is possible
    >> Row: 71 Inc: NEXT_PACKAGE Prog: CL_SQL_RESULT_SET
    we have tried all the options
    increased the table space of temp files but still the issue is not resolved
    one thing we have observed is
    1 case which we are seeing (not sure if this is only because of the below case)
    we see this error specifically when we run query on our infocube ZWBS_C11 (CUSTOMIZED CUBE) which has MANDATORY VARIABLE ON 0PROJECT
    do this variable has anything to do with the error..
    because in other cases where we have like 5 reports on same infocube..
    we dont see this error in other 2 cases where we dont have this mandatory variable on project
    also we see this error in several other cases like when we are doing compression of info cube zic_c03
    absolutely no clue of why this is happening..and when this is happening
    Regards

    Hi,
    This issue is related Oracle database issue, check with Basis/Dba team. Oce they resolved you can run the report with selections.
    If you know the table name you can check in SE14 (Data base Utility) and adjust the table. Some times it will work out.
    Hope it helps you.
    Riyez

  • ORA-01114: IO error writing block to file

    I am trying to create an index on a RAC database. I have tried this in two different schemas with two different tablespaces. I am not getting the standard "unable to extend segment" when you are out of space. I get:
    Tried creating an index:
    ERROR at line 1:
    ORA-00603: ORACLE server session terminated by fatal error
    I actually lose connection to the database.
    I checked udump and I get:
    ksedmp: internal or fatal error
    ORA-01114: IO error writing block to file 500 (block # 625225)
    ORA-27072: File I/O error
    Linux-x86_64 Error: 28: No space left on device
    Additional information: 4
    Additional information: 625225)
    Additional information: -1
    1. I have 525 GBs of free space in one of my tablespace which is plenty
    2. I was able to create a new table and copy the data from the existing table. Just getting the problem with creating indexes.
    I do not have a file_id 500, so I guess that is an OS file number.

    Hi,
    Your temporary tablespaces datafiles are ok? sometimes this kind of errors arise from those files:
    1) Index creation , implies sorting ...therefore temporary usage
    2) Cannot find the file number within dba_data_files
    The (possible) reason for this, resides at the way temporary datafiles are structured: they don't allocate all disk space at creation time, like other datafiles.
    For instance, you have a filesystem with 300Mb free, and you declared a 200Mb temporary datafile, check if it will have 100Mb or 300Mb freespace (Unix bdf/Linux df -k)? ... it's puzzling... if you later redefine size for temporary , adding 150Mb , the database will allow you to do that... cause it's not allocating the space, it will use the space when temporary space is required, and you'll be in troubles passing the 300Mb barrier... just at 300 Mb + 512bytes you're out of space.
    Regards
    Ignacio
    http://oracledisect.blogspot.com

  • ORA-01114: IO error writing block to file %s (block # %s)

    One of my large query (has a large amount of sort) fails with the following error.
    ORA-01114: IO error writing block to file %s (block # %s).
    Uses Oracle 9.2 on windows 2000 server. The size of the TEMPORARY file increases and stops at 4.2 GB. This was the default TEMP file created by oracle at the time of installation. I have another 10GB of free space available on this drive (where the TEMP file exists). Information in DBA_TEMP_FILES table is given below.
    Thanks in advance for helps.
    Paul.
    FILE_ID TABLESPACE_NAME BYTES BLOCKS STATUS RELATIVE_FNO AUT MAXBYTES MAXBLOCKS INCREMENT_BY USER_BYTES USER_BLOCKS
    1 TEMP 4294967296 524288 AVAILABLE 1 YES 34359721984 4194302 1 4293918720 524160

    Filesystem 1k-blocks Used Available Use% Mounted on
    /dev/sda2 4127108 200124 3717336 6% /
    /dev/sda1 46636 14166 30062 33% /boot
    none 513884 0 513884 0% /dev/shm
    /dev/sda3 11052880 5697800 4793612 55% /usr
    /dev/sda6 256667 37742 205673 16% /var
    /dev/sdb1 35001508 33223516 0 100% /u01
    /dev/sdc1 35001508 137340 33086176 1% /u02
    /dev/sdd1 35001508 19748484 13475032 60% /u03
    /dev/sde1 35001508 32844 33190672 1% /u04
    In the /u01 are temp01.dbf (11.039.416.320) and undotbs01.dbf (2.422.218.752) located. Can I delete or truncate the temp01 file to make space on the device or not?

  • IO error writing block to file  (Apex 4.01, 11gR2, RH 64 bit & Using Gatew

    I have Apex 4.01 running on a Linux Red Hat 64 bit server and the database is 11gR2. I'm using the gateway and receiving numerous io errors on files that do not exist in the database. Has any one else experienced this? Should I scrape the gateway and load https ?
    File 201 does not exists in the database (error below). I have verified this the files do not exists using ( dba_data_files or dba_temp_files) . Is this a Gateway issue?
    I have run dbverify and there are not corruptions within in the database. We have run a disk check on the SAN and there are not issues either.
    Example of Error:
    ===========
    </msg>
    <msg time='2010-11-09T16:18:25.446-06:00' org_id='oracle' comp_id='rdbms'
    client_id='ADMIN:1753485708135952' type='UNKNOWN' level='16'
    host_id='houlnxora01d.nblenergy.com' host_addr='10.10.200.26' module='APEX:APPLICATION 4500'
    pid='26431'>
    <txt>Errors in file /u01/app/oracle/diag/rdbms/bdapx01d/bdapx01d/trace/bdapx01d_s000_26431.trc:
    ORA-01114: IO error writing block to file 201 (block # 36609)
    ORA-27072: File I/O error
    Linux-x86_64 Error: 9: Bad file descriptor
    Additional information: 4
    Additional information: 36609
    Additional information: -1
    </txt>
    </msg>

    Hello,
    I think this is a database-related problem which also occurs when using APEX, but I don't think it's caused by APEX.
    The error basically says that something is wrong with your filesystem.
    I suggest you post this error description to the forum where the experienced dbas could help you more: {forum:id=61}
    From what I know, these errors may occur when your filesystem is full or the file was deleted/moved or set offline for some other reason.
    You could get a hint for troubleshooting by locating the file on your filesystem:
    select file_name
    from dba_data_files
    where file_id=201;If it actually doesn't exist, something has messed up your data dictionary. You could then try to find out which tablespace and object/s have a hold on that file:
    select
       owner,
       tablespace_name,
       segment_type,
       segment_name
    from
       dba_extents
    where
       file_id = 201
    and
       block_id = 36609;I hope it's just the "disk full"-case.
    -Udo

  • ORA-01114: IO error writing block to file 101 (block # 376038) in create in

    Hi
    I have srange problem with create index
    I have database 10.2.0.4 on HPUX
    I tried to create index :
    CREATE INDEX "MIGRACE"."R111800_IX1" ON "MIGRACE"."R111800" ("SPARTE", "KONR")
    5 TABLESPACE "MIGR" ;
    ORA-01114: IO error writing block to file 101 (block # 376038)
    ORA-27072: File I/O error
    HPUX-ia64 Error: 5: I/O error
    Additional information: 4
    Additional information: 376038
    Additional information: -1
    ORA-01114: IO error writing block to file 101 (block # 376038)
    table "MIGRACE"."R111800" is ok , is readable and doesn't have any LOB
    SPARTE                                                                                                                              VARCHAR2(4)
    KTONR                                                                                                                                  VARCHAR2(11)
    SUBNR                                                                                                                                  VARCHAR2(1)
    TXTGRP                                                                                                                              VARCHAR2(8)
    PRODMON                                                                                                                             VARCHAR2(6)
    WERT                                                                                                                                  NUMBER(13,2)
    I don't have in database file number 101 , all datafile are noextensible , can You help me where could be peoblwm ?
    Thank You
    Brano

    branislav.dobrotka wrote:
    Hi
    I have srange problem with create index
    I have database 10.2.0.4 on HPUX
    I tried to create index :
    CREATE INDEX "MIGRACE"."R111800_IX1" ON "MIGRACE"."R111800" ("SPARTE", "KONR")
    5 TABLESPACE "MIGR" ;
    ORA-01114: IO error writing block to file 101 (block # 376038)
    ORA-27072: File I/O error
    HPUX-ia64 Error: 5: I/O error
    Additional information: 4
    Additional information: 376038
    Additional information: -1
    ORA-01114: IO error writing block to file 101 (block # 376038)
    table "MIGRACE"."R111800" is ok , is readable and doesn't have any LOB
    SPARTE                                                                                                                              VARCHAR2(4)
    KTONR                                                                                                                                  VARCHAR2(11)
    SUBNR                                                                                                                                  VARCHAR2(1)
    TXTGRP                                                                                                                              VARCHAR2(8)
    PRODMON                                                                                                                             VARCHAR2(6)
    WERT                                                                                                                                  NUMBER(13,2)
    I don't have in database file number 101 , all datafile are noextensible , can You help me where could be peoblwm ?
    Thank You
    BranoOracle is victim; not culprit.
    OS error.
    is disk volume full?
    any clues in OS messages file?

  • I can't open video on the internet, the error is Block-Out plug-in

    I can't open video on the internet, the error is Block-Out plug-in.

    likely you need to update your adobe flash plugin if you havent installed it then you will have to

  • Cogi error User Blocks Reservation

    Dear All,
    Cogi error user blocks reservation is coming in all the pending entries in COGI & all entries are of different reservation nos of the different production orders pls. suggest why it is happening.
    Regards
    R Sehgal

    HI
    Make sure you are not processing the document in another window.
    Try to process the document again in a few minutes. The other user may by then have saved the document.
    If the document is still blocked after you have made several attempts to access it, try checking the entries in the locking  table, or inform someone who is authorized to do so.(check this from SM12 t-code
    -ashok

  • Not able to record web navigation(URL/Certificate Error : Navigation Blocked) part of oracle application in open script !

    Hi,
    I am trying to record script in using Functional Oracle EBS/Form in open script but only Oracle Forms actions are got captured.
    I am not able to record first web navigation(URL/Certificate Error : Navigation Blocked) part, only i am getting "web.window(7, "/web:window[@index='0' or @title='about:blank']"). close()" code for   navigation of URL part.
    I tried with changing Capture Screen in Recorder but doesn't work. 
    How to resolve this.
    Please help me out.
    Here is some info :
    OATS version  : Version: 12.3.0.1 Build 376
    Browser : Internet Explorer 9
    Operating System : Windows 7
    I am using VPN connection to open oracle application. 

    try adding ur url in secured site list

  • Error when blocking a vendor in source list

    We are trying to block a vendor from the Source list (Tcode ME01), however this vendor was created in a different system and imported into our current system.
    The error message we receive states "Source list record created in a different system".  We are unable to save the change, so it is not a warning message, but an error.
    Any help would be appreciated.
    Thank you

    your source list records get created in a central system. if you delete an entry you create inconsistencies to your central system (and you may get this record back soon undeleted).
    Contact the guys who create the source list in this different system and let they maintain the block and distribute it to your system again with ALE.

  • Error in Block Structure

    Hi all,
    I have defined new Block Structure But system giving Error while creating TO by LT06.
    Error
    "Storage unit type T01 not compatible with current block definition
    Edited by: dev .. on Aug 6, 2008 12:08 PM

    only  Sol is to empty all the bins & chenge the structure

  • System error in block parforEach: Exception why is process finished?

    Hi everybody,
    we split a message in BPM. Then we loop the multiline-container element.
    For each line-item we call a WebService synchrounous.
    We got a exception branch for system errors.
    Now we got the following problem:
    Our produces abount 3000 line-items.
    While processing e.g. item 1000 we got a system error and the BPM jumped into the execption branch. After processing the exception branch the process FINISHED!
    We assumed that the process would go on processing the remaining items!
    Is there a workaroud, that the process does go on with processing the remaining items?
    Regards Mario

    Hi,
    After handling the exception, the process will be continuing after that block. So you can try to put the block within a loop until all the line items get over.
    Regards,
    P.Venkat

Maybe you are looking for

  • Internet Connect doesn't like me...

    Hi. Normally I can figure out what's wrong with my computer on my own, but this time I've been thrown for a loop and I need help. And I apologize in advance for the lack of useful information about my computer. :/ I've got a G4, tower of some sort, b

  • A few NANO related questions...

    ok, first of all, is there a way to remove contacts? second, my battery life is somewhat bad. i listen to it probably about 4 hours every day and the battery is empty (or atleast at red) by the end of the day. part1, is my battery faulty or is this n

  • Shuffle not working properly

    My Itunes library is not working properly. The main problem is the shuffle function. Clicking the shuffle icon to turn it blue and shuffle the play order of the songs does not work. If I sort by name, some of the songs are shuffled where as others wi

  • Attn moderators

    my malwarebytes ( anti malware program) is kicking up a fuss over the thread " issue in cs3 for mac "...due to the link to postimage.org ....  cant reply to the message after I stop the attempted DL from postimage.org... to let the poster know theres

  • How to find the structure in this user exit

    My requirement is add new field to Delivery due list ALV report(VL10G).For enhance this report i will append one field(LIKP-SDABW) in this structure SHP_VL10_ITEM.This structure is not showing in the include LV50R_VIEWG05 USEREXIT_PREPARE_LAYOUT_FILL