ORA-24333: zero iteration count  Cause: An iteration count of zero was specified for the statement Action: Specify the number of times this statement must be executed

Get the following error from Oracle 
ORA-24333: zero iteration count
Cause: An iteration count of zero was specified for the statement
Action: Specify the number of times this statement must be executed
Any suggestions on whether is this a Oracle bug or if not what should be set to avoid this failure.

Hello get this from executing the following.
Occurs intermitently.
select MAX(LENGTH(lxVal)) from lxString_74501fb6 where lxType=910231053
Find the MaxLenght(LxVal) returned is null for this query.
Did google it but says the iterator not initialized. But not the case here
Thanks

Similar Messages

  • ORA-24333 An iteration count of zero was specified for the statement

    Hi all,
    in example below oracle generate error ORA-24333,
    Cause: An iteration count of zero was specified for the statement
    Action: Specify the number of times this statement must be executed
    On Error GoTo errHandler:
    Dim pOraStmt As OraSqlStmt 'obiekt OO4O
    Dim stat As Long
    aWystapilBlad = False
    gOraDatabase.LastServerErrReset
    gOraDatabase.BeginTrans
    Set pOraStmt = gOraDatabase.CreateSql("begin " & _
    NAZWA_PAKIETU & "." & NAZWA_PROCEDURY & _
    "; END;", ORASQL_NONBLK)
    stat = pOraStmt.NonBlockingState
    While stat = ORASQL_STILL_EXECUTING
    DoEvents
    stat = pOraStmt.NonBlockingState
    Wend
    '>>>>>>>>>>>>>>>>>ERROR ORA-24333 zero iteration count!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1
    If gOraDatabase.LastServerErr > 0 Then
    aWystapilBlad = True
    GenerujKomunikaty BLAD_SYSTEMOWY_NR & Err.Number & vbNewLine & BLAD_OPIS_BLEDU & gOraDatabase.LastServerErrText, WyswietlNaEkran, blad, TYTUL_APLIKACJA
    PrzeniesDanychCODGiK = False
    End If
    gOraDatabase.CommitTrans
    PrzeniesDanych = True
    Exit Function
    errHandler:
    aWystapilBlad = True
    gOraDatabase.Rollback
    PrzeniesDanych = False
    Can anybody help me?
    Regards
    Zbyszek

    Hello get this from executing the following.
    Occurs intermitently.
    select MAX(LENGTH(lxVal)) from lxString_74501fb6 where lxType=910231053
    Find the MaxLenght(LxVal) returned is null for this query.
    Did google it but says the iterator not initialized. But not the case here
    Thanks

  • ORA-24333 on Select Statement

    Last night I attempted to roll a Crystal Reports .NET project to my production web server. This app has 3 new Crystal Reports. The Reports are all based upon the same Oracle Views on the same Oracle Database. Two of the reports work while the third report returns an ORA-24333 error. The exact reports and .NET code, connecting to the same Oracle database work fine in Preview mode and when published to my development IIS web server. The ONLY thing that is different is that the report is now being run on the production IIS web server. (But it is still the same Oracle Database we are connecting to in all environments.)
    Here is the Command used for the Crystal Report that fails. Sorry it is so long. Basically, it is 4 Select statements joined together with Unions. Stuff in {} are parameters that are passed to it.
    SELECT A.Custno as Custno, C.CUST_NAME as Cust_Name, D.CONTACT_NAME as Contact_Name, A.FISCALPRD as FiscalPrd, A.PROJECTNAME as ProjectName, A.INVOICENO as InvoiceNO, A.INVDATE, A.PAYDATE, A.ORDERNO as OrderNo, A.TOTALAMT as TotalAmt, A.ELIGIBLEAMT as EligibleAmt, A.SALESPOINTERD as SalesPointErd, 0 as FORFEIT, 0 as BONUSPOINTERD, 0 as PAYPTSEARNED, P.POINTPERCD as POINTPERCD, case when A.PAYDATE is null and A.INVDATE>SYSDATE-30 then round(P.POINTPERCD*A.ELIGIBLEAMT/100,0) else 0 end as PAYPTSELIG, case when A.PAYDATE is null and A.INVDATE>SYSDATE-30 then TO_CHAR(A.INVDATE+30,'MM/DD/YYYY') else '' end as PAYBYforPAYPTS
    FROM VW_TRIPPOINTS A
    left join VW_POINTS P on A.COMPANY=P.COMPANY and substr(A.FISCALPRD,1,4)=to_char(P.FISCALYEAR) and P.CODE='P'
    join VW_CUSTOMERS C on (C.COMPANY=A.COMPANY or A.custno='313243') and C.CUST_NUMB=A.custno
    join VW_SALESMEN D on C.DIST_MGR=D.CONTACT_NUMBER
    where A.POINTCODE='S' and A.COMPANY='30' and A.ELIGIBLEAMT<>0 and A.custno='{?@Cust_ID}' and A.FISCALPRD>={?@BegPeriod} and A.FISCALPRD<={?@EndPeriod}
    Union --Bonus Points
    SELECT A.Custno as Custno, C.CUST_NAME as Cust_Name, D.CONTACT_NAME as Contact_Name, A.FISCALPRD as FiscalPrd, A.Notes as ProjectName, Cast((Row_Number() over (Order By CustNo, OrderNo, InvoiceNo, IDKey)) as varchar(10)) as InvoiceNO, A.INVDATE, Null as PAYDATE, Cast((Row_Number() over (Order By IDKey)) as varchar(10)) as ORDERNO, Coalesce(A.TOTALAMT,0) as TotalAmt, Coalesce(A.ELIGIBLEAMT,0) as EligibleAmt, Coalesce(A.SALESPOINTERD,0) as SalesPointErd, 0 as FORFEIT, A.BONUSPOINTERD as BonusPointErd, 0 as PAYPTSEARNED, 0 as POINTPERCD, 0 as PAYPTSELIG, '' as PAYBYforPAYPTS
    FROM VW_TRIPPOINTS A
    join VW_CUSTOMERS C on (C.COMPANY=A.COMPANY or A.custno='313243') and C.CUST_NUMB=A.custno
    join VW_SALESMEN D on C.DIST_MGR=D.CONTACT_NUMBER
    where A.POINTCODE='B' and A.COMPANY='30' and A.custno='{?@Cust_ID}' and A.FISCALPRD>={?@BegPeriod} and A.FISCALPRD<={?@EndPeriod}
    Union --Pay Points
    SELECT A.Custno as Custno, C.CUST_NAME as Cust_Name, D.CONTACT_NAME as Contact_Name, A.FISCALPRD as FiscalPrd, A.PROJECTNAME as ProjectName, A.INVOICENO as InvoiceNO, A.INVDATE, A.PAYDATE, A.ORDERNO as OrderNo, 0 as TotalAmt, 0 as EligibleAmt, 0 as SALESPOINTERD, 0 as FORFEIT, 0 as BONUSPOINTERD, coalesce(A.PAYPOINTERD,0) as PAYPTSEARNED, 0 as POINTPERCD, 0 as PAYPTSELIG, '' as PAYBYforPAYPTS
    FROM VW_TRIPPOINTS A
    join VW_CUSTOMERS C on (C.COMPANY=A.COMPANY or A.custno='313243') and C.CUST_NUMB=A.custno
    join VW_SALESMEN D on C.DIST_MGR=D.CONTACT_NUMBER
    where (A.POINTCODE='P' or A.POINTCODE='C') and A.COMPANY='30' and A.PAYPOINTERD<>0 and A.custno='{?@Cust_ID}' and A.FISCALPRD>={?@BegPeriod} and A.FISCALPRD<={?@EndPeriod}
    Union --Sales Points Forfeited
    SELECT A.Custno as Custno, C.CUST_NAME as Cust_Name, D.CONTACT_NAME as Contact_Name, A.FISCALPRD as FiscalPrd, A.PROJECTNAME as ProjectName, A.INVOICENO as InvoiceNO, A.INVDATE, A.PAYDATE, A.ORDERNO as OrderNo, 0 as TotalAmt, 0 as EligibleAmt, 0 as SalesPointErd, Coalesce(A.SalesPointErd,0) as FORFEIT, 0 as BONUSPOINTERD, 0 as PAYPTSEARNED, 0 as POINTPERCD, 0 as PAYPTSELIG, '' as PAYBYforPAYPTS
    FROM VW_TRIPPOINTS A
    join VW_CUSTOMERS C on (C.COMPANY=A.COMPANY or A.custno='313243') and C.CUST_NUMB=A.custno
    join VW_SALESMEN D on C.DIST_MGR=D.CONTACT_NUMBER
    where A.POINTCODE='R' and A.COMPANY='30' and A.SalesPointErd<>0 and A.custno='{?@Cust_ID}' and A.FISCALPRD>={?@BegPeriod} and A.FISCALPRD<={?@EndPeriod}
    order by custno, OrderNo, InvoiceNo

    Because we don't all have the Oracle error numbers and messages memorized:
    ORA-24333: zero iteration count
    Cause: An iteration count of zero was specified for the statement
    Action: Specify the number of times this statement must be executed

  • Report Builder ORA 24333 Zero iteration count

    The following query works fine in SQL environment
    Break on team_name;
    select substr(st.team_name, 1, 20) team_name, sst.team_id, sst.staff_sso
    from
    ssa_staff_team sst, ssa_teams st
    where st.team_id = sst.team_id(+)
    order by team_name;
    But when I cut and paste it into "SQL Query Statement" of Oracle Report it does not work. the error message is ORA-24333 - zero iteration count ==> Break on TEAM_Name
    What did I do wrong"
    How do I fix this?

    Just follow the report wizard and it will ask you on which column(s) to break.
    Don't try to do it afterwards, because that is a pain in the .... You will have to modify your data and layout model yourself if you don't use the wizard.

  • ORA-19202: Error occurred in XML processing  ORA-24333: zero iteration coun

    Hi,
    I have a procedure which craetes a sql v_sql dynamically
    IF v_cnt > 0 THEN
    For c1 in v_curr
    LOOP
    v_sql := ''''||'SELECT * from '|| c1.msg_rcrd_src_tbl_nm||' where rowid = '||''''||''''||c1.msg_rcrd_src_tbl_id||''''||''''||'''';
    select DBMS_XMLGEN.getXMLtype(v_sql) into v_xml from dual ;
    gives me a error
    ORA-19202: Error occurred in XML processing
    ORA-24333: zero iteration count
    ORA-06512: at "SYS.DBMS_XMLGEN", line 288
    ORA-06512: at line 1
    Any help greatly appreciated.
    Thanks,
    Raj

    Answered
    Re: Zero iteration error - when processing dynamic sql in dbms_xmlgen

  • Cause loop iteration to reRender

    First off sorry if this has been asked ... did a quick search and didn't see anything.
    Anyway here's my problem:
    We iterate over a list in JSF to output some controls (which are dynamic determined in Java). This works fine.
    Then it was decided that the controls which this list outputs need to validate 'on-the-fly' as users move through them. Again no problems; used a4j:support.
    The only issue is that the a4j:support we cannot give it a reRender target as all the controls are generated by the loop. We could reRender the entire form or else we can put self-rendered a4j:outputPanels around each parameter ... this works except that in both cases it causes all controls to be reRendered (as expected) and not just the control which sent the ajax update. This makes the behavior of the page controls feel very twitch, especially if the user is moving through them quickly.
    Is there anyway of causes ONLY the particular loop iteration to be reRendered? I've tried messing around with a4j:region for this but have not had any success. Would be really appreciative if anyone has a solution for this.
    Here's the basics of our page code; I've omitted all control types besides h:inputText.
    <ui:repeat value="#{seam-outjected-list}" var="item">
       <a4j:outputPanel ajaxRendered="true">
          <h:inputText value="#{item.value}">
             <a4j:support event="onblur" ajaxSingle="true" />
          </h:inputText>
       <a4j:outputPanel />
    </ui:repeat>

    Shameless bump for new work day ... :[
    Also I've tried giving the output panel an ID and calling rerender on that even though its generated in the loop. I can see the loop index in the series of component IDs so I was hopeful but alas the same issues :(

  • Count specific while iteration

    Greetings ladies and gentleman;
    So, i have the following issue.
    I want to know the exact amount of iterations a while loop is executed. The main problem is that, this while loop, is not always running, and sometimes it jumps to the next step of the program and the comes back to the same while-loop.
    In the attached VI you can see a variable named Y, colored RED that is, in fact, counting this particular while loop. The thing is that, when it meets the condition and moves forward in the program, then it has a possibility to return to this particular loop, but when it returns i lose my account iterations and starts all over again.
    The program is simple, it just takes some random numbers and if it meets the conditions of > or < then it chooses the next path. The Leds are there to know in wich while-loop it is runing. I have changed the wait in the while-loop i would like to measure so it can repeat itseld a lot if times.
    Thanks, if i dont explain it too well, plis let me know.
    Kind Regards,
    stgo.
    Solved!
    Go to Solution.
    Attachments:
    MC Try to count all.vi ‏39 KB

    stgo,
    I would guess that you have programmed in some text-based language and are now learning LabVIEW, right?  The structure of your code looks like a conversion from a text-based language and not one which takes advantages of LabVIEW's dataflow paradigm.
    Try to do this without duplicated code (all of the case structures and several while loops) and without sequence structures.  For the duplicated code create subVIs. The sequence structures can ususllay be eliminated by dataflow.  Your stacked sequence structures might be replaced by for loops.
    You may also want to consider a better way to stop the program. As it presently is constructed the Stopp button is read almost immediately when an iteration of the outer while loop begins. The code inside the sequence structure takes several seconds or longer to execute. Assuming the Stopp button was pressed shortly after (say 100 ms) the iteration started, the loop will not stop until that iteration completes AND the next iteration (when the True Stopp value is read) completes. This makes the user interface seem very unresponsive to the user.  probably something like a state machine architecture could reduce the code to one loop which would respond to the user in ~100 ms.
    To do the count you want Y needs to be on a shift register on the outer loop. After the inner loop where Y now is located completes, add the value of i for that loop to the value in the shift register.
    Lynn

  • Sub-selects in forms causing ora-24333

    We are running in a new 11g environment and are receiving an ora-24333 from forms with sub-selects. The same form works in 10g and the sql statement, itself, works in sqlplus. The following is an example of code
    exec_sql.parse(oracle_handle, oracle_cursor,
    'update vendor a
    set (status, vendor_type) =
    (select decode(rec_sttus,'||''' '''||','||'''ACTIVE'''||',
    '||'''I'''||','||'''INACTIVE'''||',
    '||'''D'''||','||'''DELETE'''||',
    '||'''F'''||','||'''FOREIGN'''||',
    '||'''N'''||','||'''RENUMBERED'''||',
    '||'''K'''||','||'''KEEPER'''||',
    rec_sttus),
    vndr_type
    from prch_vndr b
    where a.vendor_no = b.vndr_num)
    where vendor_no in
    (select vndr_num
    from prch_vndr)');
    t_temp := exec_sql.execute(oracle_handle, oracle_cursor);
    exec_sql.parse(oracle_handle, oracle_cursor, 'commit');
    t_temp := exec_sql.execute(oracle_handle, oracle_cursor);
    Any ideas where we might have a configuration setting missing or what has changed with 11g forms of which we are unaware?
    Edited by: kwalker on Dec 26, 2012 2:00 PM
    Edited by: kwalker on Dec 26, 2012 2:00 PM

    Hi Kelly,
    We are running in a new 11g environment and are receiving an ora-24333 from forms with sub-selects. The same form works in 10g and the sql statement, itself, works in sqlplus. The following is an example of codeAlways post code snippets in &#123;code&#125; tags as explained in FAQ.
    >
    exec_sql.parse(oracle_handle, oracle_cursor,
    'update vendor a
    set (status, vendor_type) =
    (select decode(rec_sttus,'||''' '''||','||'''ACTIVE'''||',
    '||'''I'''||','||'''INACTIVE'''||',
    '||'''D'''||','||'''DELETE'''||',
    '||'''F'''||','||'''FOREIGN'''||',
    '||'''N'''||','||'''RENUMBERED'''||',
    '||'''K'''||','||'''KEEPER'''||',
    rec_sttus),
    vndr_type
    from prch_vndr b
    where a.vendor_no = b.vndr_num)
    where vendor_no in
    (select vndr_num
    from prch_vndr)');
    t_temp := exec_sql.execute(oracle_handle, oracle_cursor);
    exec_sql.parse(oracle_handle, oracle_cursor, 'commit');
    t_temp := exec_sql.execute(oracle_handle, oracle_cursor);Any ideas where we might have a configuration setting missing or what has changed with 11g forms of which we are unaware?>
    a. EXEC_SQL package for simple updates looks like an overkill. EXECUTE IMMEDIATE will meet the requirement.
    b. The ORA-24333 error is related to data. Is the database and schema for 10g, SQLDeveloper and 11g the same? If they are different then check data in the database/schema used with Forms 11g.
    Cheers,

  • ORA-00333: redo log read error block 69855 count 8192

    Hello Guys,
    where importing a dump to newly created database 10gR2 on Linux i got this error:
    ORA-00333: redo log read error block 69855 count 8192
    By searching this error, i found that I need to do recovery, but i don't have any backup of this database.
    Is there any easy solution for this error?
    Regards, Imran

    misterimran wrote:
    Hello Guys,
    where importing a dump to newly created database 10gR2 on Linux i got this error:
    ORA-00333: redo log read error block 69855 count 8192
    By searching this error, i found that I need to do recovery, but i don't have any backup of this database.
    Is there any easy solution for this error?no
    00333, 00000, "redo log read error block %s count %s"
    // *Cause:  An IO error occurred while reading the log described in the
    //          accompanying error.
    // *Action: Restore accessibility to file, or get another copy of the file.what additional clues exist with alert_SID.log file?
    do as below so we can know complete Oracle version & OS name.
    Post via COPY & PASTE complete results of
    SELECT * from v$version;

  • Zeros in reports causing a problem

    Hello All,
    <u><b>Scenario</b></u>
    We have been getting Asterisks in the "results" row in some of the reports. The obvious cause was presence of transactions with different units. On investigation i found the key figures  (columns showing the asterisks in results) had a value '0' in some rows. This value had no unit assigned either. When i looked into that particular cube in the multi-provider that was resulting in these '0' s i found that these transactions had no entries for that key figure in the cube. They were blank. There were other characteristics and key figures for the same transaction that were populated.
    <b>Cause:</b>
    When the query is run this key figure along with others is populated for transactions which are pulled from Cube A. Transactions are also pulled from cube B for the same keys figures and characteristics but cube B has no values for this one particular key figure and all those rows in the report are replaced by a 0 without unit.
    I tried changing the query properties to "Suppress Zeros" and "Do not display Zeros" but this only results in not showing the zeros. The result still has an asterisks.
    I also tried changing the "Calculate result as - from 'summation' to 'not defined'" but this is effecting the query because the query has two conditions defined and using "not defined" causes the query to ignore the conditions and give the 'overall result'. SO it is necessary that we use Summation
    <b>My Question</b>: Is this the case with all queries - blank transactions in the cube showing up as '0' without units and giving an '*' for the results? If not is there any way we can change the settings or define the key figures to avoid getting these zeros and leave the blank transactions as blanks in the report too and get a proper result in the result rows?
    I would really appreciate if someone could please get back to me with solutions/suggestions as soon as possible. Helpful replies will be awarded points.
    Thank You.
    Message was edited by:
            MM

    SSS,
    Excellent suggestion! Made a note to remember this.... however
    Correct me if i am wrong - This setting would result in allowing mixed values in ALL the reports. I am not sure if the reporting team would allow that. Unfortunately being in the development team i am not authorized to set this and test if it works but i will definitely suggest this and see what the reporting team's response is.
    <b>Quick question: Would this setting also solve the '' in the result? I understand that 'mixed currencies' setting outputs numeric value. Would absence of a unit for this numeric value (which in this case is just a '0') still result in '' for the overall result. If it does then i am back to square one.
    </b>
    Deserve 10pts for the suggestion...unfortunately at this time can assign only 6pts!
    Thank You!
    Message was edited by:
            MM

  • Using document() function in xsl - first iteration is OK; second iteration is Empty.

    I am processing an input xml file (say input.xml) via (report.xsl) to generate
    a report.
    report.xsl in turn loads another *xml file (schema.xml) through document() function
    so as to process the input.xml. <schema.xml> contains some look-up information
    dictating how <input.xml> need to be processed.
    Here is how I am referencing the "schema.xml" in the "report.xsl".
    <xsl:variable name="schemaFile" select="document('schema.xml')"/>
    <xsl:variable name="schemaRoot" select="$schemaFile/Schema"/>
    <xsl:variable name="schemaList" select="$schemaRoot/SchemaFactors"/>
    When I run the report first time (my appserver is weblogic 7.0), everything is
    working fine. I see the results I wanted.
    However, when I run the report for the second time during the same session, I
    am getting "schemaList" as empty.
    The values of "schemaFIle" and "schemaRoot" appear to be correctly loaded in both
    the cases. The problem is with "schemaList" variable which is coming out empty
    during the second iteration.
    can any of you please throw some pointers on why this is happening and how to
    resolve this?

    Hello,
    Sounds like a bug. If you have a small test case, could you provide
    that to our outstanding support group (http://support.bea.com or
    [email protected]), it would certainly help tracking this down.
    Thanks,
    Bruce
    venkata wrote:
    >
    I am processing an input xml file (say input.xml) via (report.xsl) to generate
    a report.
    report.xsl in turn loads another *xml file (schema.xml) through document() function
    so as to process the input.xml. <schema.xml> contains some look-up information
    dictating how <input.xml> need to be processed.
    Here is how I am referencing the "schema.xml" in the "report.xsl".
    <xsl:variable name="schemaFile" select="document('schema.xml')"/>
    <xsl:variable name="schemaRoot" select="$schemaFile/Schema"/>
    <xsl:variable name="schemaList" select="$schemaRoot/SchemaFactors"/>
    When I run the report first time (my appserver is weblogic 7.0), everything is
    working fine. I see the results I wanted.
    However, when I run the report for the second time during the same session, I
    am getting "schemaList" as empty.
    The values of "schemaFIle" and "schemaRoot" appear to be correctly loaded in both
    the cases. The problem is with "schemaList" variable which is coming out empty
    during the second iteration.
    can any of you please throw some pointers on why this is happening and how to
    resolve this?

  • What has caused "data error count"  under execution detail on Audit browser

    Hi,
    I have a simple mapping that load data from external table to target fact table. From OWB Runtime Audit browser, the Execution Details page show the status= Complete + <Red error sign>. And the value under Data error count is 2563. Where can I look for information about what has caused this errors or what the data error are? The SQL*Loader log file looks OK and no bad file generated. And I don't see suspecious under WB_RT_AUDIT*, WB_RT_ERROR tables It's owb9ir2 on 9iDB Thanks.

    Solved. I set the audit level to the highest and re-executed and can see the error msg now. It would be nice if audit broser can show the report for all the rejected rows.

  • ORA-00333: redo log read error block 283081 count 8192

    I am starting the database..it mount but after that it gives me this error
    ORA-00333: redo log read error block 283081 count 8192
    Below are the contents of alert Log.._Please advice_
    Completed: ALTER DATABASE MOUNT
    Tue Jan 20 10:24:45 2009
    ALTER DATABASE OPEN
    Tue Jan 20 10:24:45 2009
    Beginning crash recovery of 1 threads
    parallel recovery started with 2 processes
    Tue Jan 20 10:24:45 2009
    Started redo scan
    Tue Jan 20 10:25:00 2009
    Errors in file /d01/oracle/PROD1/db/tech_st/10.2.0/admin/PROD1_prod1/udump/prod1_ora_32356.trc:
    ORA-00333: redo log read error block 283081 count 8192
    ORA-00312: online log 2 thread 1: '/d01/oracle/PROD1/db/apps_st/data/log02a.dbf'
    ORA-27072: File I/O error
    Linux-x86_64 Error: 2: No such file or directory
    Additional information: 4
    Additional information: 283081
    Additional information: 257536
    Tue Jan 20 10:25:16 2009
    Errors in file /d01/oracle/PROD1/db/tech_st/10.2.0/admin/PROD1_prod1/udump/prod1_ora_32356.trc:
    ORA-00333: redo log read error block 283081 count 8192
    ORA-00312: online log 2 thread 1: '/d01/oracle/PROD1/db/apps_st/data/log02a.dbf'
    ORA-27091: unable to queue I/O
    ORA-27072: File I/O error
    Linux-x86_64 Error: 2: No such file or directory
    Additional information: 4
    Additional information: 283081
    Additional information: 257536
    Tue Jan 20 10:25:31 2009

    I did what Prabhu told me..But i recovered using backup controlfile and when i was asked to apply logs..i applied my oldest logs and it worked
    Like i have two groups with two members each
    I applied log1a.dbf and it said media recovery completee
    I opened the database But then it started giving me errors for undo tablespace
    I made another undo tablespace..tried dropping the old one but it did not permitted as it had some segments with status "needs recovery"
    Than i added this parameter in pfile with the correupted segment and than tried to drop the segment but it still did not permit
    corruptedrollback_segments =(corrupted_undo segment_name)
    Next what i did was I mounted the database, ran another session of media recovery and opened the databse using resetlogs
    Than i dropped the old undo and it went through successfully..
    If you think anything i did wrong than please advice..
    I hope this action plans helps you in case you come across same errors some day
    I would be very thankful if you can refer me a document of recovery which covers all kinds of recoveries and scenarios and commands too
    Thanks alot

  • ORA-00333: redo log read error block 65538 count 8192

    Hi,
    I wanted to alter user hr's password, but I couldn't open the database first. What should I do? Here is my demo: Thank you for your response.
    C:\>sqlplus /nolog
    SQL*Plus: Release 9.2.0.1.0 - Production on Sun May 16 12:12:43 2004
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    SQL> connect sys/oracle as sysdba
    Connected.
    SQL> show user
    USER is "SYS"
    SQL> select * from v$controlfile;
    STATUS
    NAME
    C:\ORACLE\ORADATA\SARAH\CONTROL01.CTL
    C:\ORACLE\ORADATA\SARAH\CONTROL02.CTL
    C:\ORACLE\ORADATA\SARAH\CONTROL03.CTL
    SQL> select * from dba_users;
    select * from dba_users
    ERROR at line 1:
    ORA-01219: database not open: queries allowed on fixed tables/views only
    SQL> alter database open;
    alter database open
    ERROR at line 1:
    ORA-00333: redo log read error block 65538 count 8192
    SQL> desc v$instance
    Name Null? Type
    INSTANCE_NUMBER NUMBER
    INSTANCE_NAME VARCHAR2(16)
    HOST_NAME VARCHAR2(64)
    VERSION VARCHAR2(17)
    STARTUP_TIME DATE
    STATUS VARCHAR2(12)
    PARALLEL VARCHAR2(3)
    THREAD# NUMBER
    ARCHIVER VARCHAR2(7)
    LOG_SWITCH_WAIT VARCHAR2(11)
    LOGINS VARCHAR2(10)
    SHUTDOWN_PENDING VARCHAR2(3)
    DATABASE_STATUS VARCHAR2(17)
    INSTANCE_ROLE VARCHAR2(18)
    ACTIVE_STATE VARCHAR2(9)
    SQL> select instance_name, status from v$instance;
    INSTANCE_NAME STATUS
    sarah MOUNTED
    SQL>
    *******************************

    I did what Prabhu told me..But i recovered using backup controlfile and when i was asked to apply logs..i applied my oldest logs and it worked
    Like i have two groups with two members each
    I applied log1a.dbf and it said media recovery completee
    I opened the database But then it started giving me errors for undo tablespace
    I made another undo tablespace..tried dropping the old one but it did not permitted as it had some segments with status "needs recovery"
    Than i added this parameter in pfile with the correupted segment and than tried to drop the segment but it still did not permit
    corruptedrollback_segments =(corrupted_undo segment_name)
    Next what i did was I mounted the database, ran another session of media recovery and opened the databse using resetlogs
    Than i dropped the old undo and it went through successfully..
    If you think anything i did wrong than please advice..
    I hope this action plans helps you in case you come across same errors some day
    I would be very thankful if you can refer me a document of recovery which covers all kinds of recoveries and scenarios and commands too
    Thanks alot

  • Any reason Iterator does not extend Iterable?

    This has been knawing at me for a few weeks now (like a spinter in my mind). Is there any reason Sun did not have Iterator extend Iterable in 1.5? It seems to me that the for-each loop would operate perfectly on an Iterator. Yet, since Iterator is in no way related to Iterable (which even from a linguistic standpoint seems downright odd), I can't do it. I did write the following:
    public final class SimpleIterator<E> extends Object implements Iterable<E>, Iterator<E> {
         private final Iterator<E> nested;
         public SimpleIterator(final Collection<E> nested) {
              super();
              this.nested = Collections.unmodifiableCollection(nested).iterator();
         public final boolean hasNext() {
              return nested.hasNext();
         public final E next() {
              return nested.next();
         public final void remove() {
              throw new UnsupportedOperationException("SimpleIterator is immutable");
         public final Iterator<E> iterator() {
              return nested;
    }But IMO the above seems like a hack. I have two questions:
    Is the above safe (e.g., am I breaking some hidden rule in generics)?
    Why didn't Sun have Iterator extend Iterable?- Saish

    I think we should also consider that an Iterator has state. Generally when we talk about an Iterable we're referring to something like a Collection which may return an Iterator to iterate over the Collection. If Iterator implemented Iterable it would indeed be able to iterate, but not over itself and not even necessarily over the Collection (or whatever it is) that the Iterator was supposed to iterate over to begin with. Instead it would be relegated to iterating over something else and potentially only from the position where it started with a fun side effect of silently interfering with it's use elsewhere. My personal opinion is that aside from the fact that it just doesn't make much sense for an Iterator to be Iterable since the Iterator is not usually what's being iterated over to begin with, it would also likely lead to various annoying bugs when the same iterator is being iterated over in more than one place with little apparent benefit. After all, how often to you have a reference to an Iterator but not an Iterable where you want to use a for-each loop? I've never had that happen.
    Besides all of that, it would break backward compatibility. Sun making mistakes elsewhere does not justify it here.

Maybe you are looking for