Monday, May 20, 2013

ORA-19809: limit exceeded for recovery files

I often happen when the The Fast Recovery Area (FRA) is full with old archive log file  and so need to be emptied.
   Let's get in the RMAN
  1. rman> connect target /
  2. rman> crosscheck archivelog ALL;
  3. rman> list expired archivelog ALL;
  4. rman>DELETE expired archivelog ALL;
  5. rman>delete archivelog all completed before 'SYSDATE-1';
  6. rman>exit;

You may also like to adjust the size of the FRA:

 SQL> alter system set db_recovery_file_dest_size=10G;
 output:  system altered

You will be able to archive
SQL> archive log all;
output: 2 logs archived.

ORA-01033: ORACLE initialization or shutdown in progress

I am sure you reading this post because you've got this ORA-01033 error message.
Quickly without wasting time here is the solution:

I have noticed this error happened when the database has not been properly shutdown .
  1. Go to the command prompt CMD:
  2. > set oracle_sid= your_sid_name
  3. > sqlplus /nolog
  4. SQL> connect / as sysdba
  5. output: connected
  6. SQL> shutdown abort
  7. output: ORACLE instance shut down
  8. SQL> startup nomount
  9. output: ORACLE instance started
  10. SQL> alter database mount
  11. output: Database altered
  12. SQL> alter database open
  13. output: Database altered
  14.  Done !


Wednesday, May 8, 2013

java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to com.sun.faces.application.view.StateHolderSaver

I have faced this problem while navigating back and forth in my project
using netbeans 7.1 , glassfish 3+ , primefaces 2.1 and openfaces 3.0;

After some minutes of headache I finally solve by adding <redirect/> under the navigation case in web.xml file:
e.g:

<navigation-rule>
        <from-view-id>/student/SearchEdit.xhtml</from-view-id>
        <navigation-case>
            <from-outcome>back</from-outcome>
            <to-view-id>/student/Search.xhtml</to-view-id>
            <redirect/>
        </navigation-case>
    </navigation-rule>

hope you rock!!!