Recovery  z table

Hello Friends,
Due To change in primary key, my some data has been lost,from ztable
and these Data are related to Finance ,
Is there any way to get back these data,
and in backup can i recover particular table??????
Regards: Hemant

Hi,
Whenever you change any keys of a Database Table, always use the ABAP Database Utility tool to make changes while keeping the exisitng data intact. Transaction Code : SE14. - Database Utility.
As you have mentioned that this table got activated, there must be a temporary database table where this data resided and then once the new changes are done the old data is brought back to the table and old tables are deleted. But again the changes are not downward compatible. For example, if you change the Field Length from 10 to 8 characters, then there will be data loss.
Is there any data backup policy in your organization or the customer organization? Is the data archiving is enabled ? Check this with the Admin people as they will be able to tell you and guide you.
Hope this helps.
Thanks,
Samantak.

Similar Messages

  • Does any one have good idea about the backup and recovery georaster table?

    Does any one have good idea about the backup and recovery georaster table?
    Best Regards,
    Lin
    Edited by: ylin on 2009-10-10 上午2:07

    for backup and recovery, please follow the standard procedure of general database backup and recovery. you need to backup both the georaster table and all related RDT tables.

  • Making data in tables online and offline - Backup/Recovery for tables.

    Hi All,
    I'm working on a project where the functionality is similar to 'Backup and Recovery' for database tables.
    Lets say we have a set of 6 tables T1, T2.... T6. They do have relationship between them. The tables in questions are simple standard tables, which are not table partitioned.
    - I want remove the records from live tables based on user entered date ranges and store it in some offline medium.
    - I might want make the data online again from the offline medium; Application should be able use that data without any modifications.
    - Different offline mediums can be
    a) Flat file
    b) Different table space
    c) Any other secondary medium (like XML, tape..Etc,)
    The total number of records will run in millions.
    The proposed solution should consider,
    1. Performance - Java solutions not feasible. Anything in SQL, PL/SQL or runs in DB itself(tools) are OK.
    2. Reliability - Should be highly reliable, Data corruption simply unacceptable.
    3. Security - Users should not be able to make out of the file.
    Few options include:
    1. Use partition
    2. Use SQL*Loader
    3. Export and import of tables.
    My main targets:
    1. Reduce space.
    2. Increase performance for queries.
    Please pass on your suggestions, any help is highly appreciated!
    Thanks In Advance!

    If you truely need to get the data out of the Oracle database into flat files, partitioning is pretty useless. Partitioning the table, though, strikes me as by far the most efficient, reliable, and secure solution.
    What sort of security do you need with the flat file? Do you need the data in the file to be encrypted, or is the binary file format of an Oracle export file sufficiently obfuscated?
    I'd stay away from UTL_FILE here, just because performance is rather poor.
    I always get pretty nervous about recoverability when people start moving data out of the database to flat files for long-term archival.
    - If you ever change the data model, even slightly, you may not be able to move the data back into the database without modifying your loader. A few years down the line, after a few data model changes, it can be almost impossible to find the documentation to make that change.
    - If you do things like change lookup tables over time, reloading data can cause major problems. When you load the data back in, your applications and reports may not treat the old codes properly.
    - Making sure that the flat files get stored and tagged properly can be a challenge. When the database gets moved to new system, you have to make sure that all the flat files also get moved around and the the loader scripts are modified appropriately.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Recovery of table without archive file no 1,2 and 3

    Hi all,
    long back I had created a table. Recently one user has dropped the table by mistake. When I am looking for the archived file, I saw that, I have only file no 5,6 and 7 but file no. 1 and 2 are missing. Because of that reason, I am unable to recover that table. If anyone knows any method by which I can recover the table then please let me know.
    Thanks and Warm Regards,
    Baishali

    Hi,
    What is the database version?
    How did you know that the table is stored in files 1, 2 and 3? If you have no backup of those files and/or a recent database backup (assuming that the table is stored in those files), then it is not possible to recover the data.
    Oracle® Database Backup and Recovery Basics
    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14192/toc.htm
    Oracle® Database Backup and Recovery Advanced User's Guide
    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/toc.htm
    Do you have flashback enabled? If yes, then please refer to:
    Using Flashback Drop and Managing the Recycle Bin
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/tables.htm#ADMIN01511
    Regards,
    Hussein

  • Recovery of table with deleted archived file

    Hi all,
    long back I had created a table. Recently one user has dropped the table by mistake. When I am looking for the archived file, I saw that, I have only file no 5,6 and 7 but file no. 1 and 2 are missing. Because of that reason, I am unable to recover that table. If anyone knows any method by which I can recover the table then please let me know.
    Thanks and Warm Regards,
    Baishali

    Hi,
    What is the database version?
    How did you know that the table is stored in files 1, 2 and 3? If you have no backup of those files and/or a recent database backup (assuming that the table is stored in those files), then it is not possible to recover the data.
    Oracle® Database Backup and Recovery Basics
    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14192/toc.htm
    Oracle® Database Backup and Recovery Advanced User's Guide
    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/toc.htm
    Do you have flashback enabled? If yes, then please refer to:
    Using Flashback Drop and Managing the Recycle Bin
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/tables.htm#ADMIN01511
    Regards,
    Hussein

  • Single table recovery from hotbackup?

    In oracle 9i, accidently one of table has dropped, is it possible to recovery single table from the hotbackup without any downtime, to the user session..

    Hi
    No, you can't make it possible , you have to restore your whole database and perform the incomplete recovery to get your table back.however you can go for tablespace point in time recovery , where you only need to restoter the perticular tablespace datafile , without distrurbing the rest of the operation. hi alok,you should verify ur answer before posting here.because we can use TSPITR for recovery of drop table.
    As per Oracle Documentation
    User-managed TSPITR is most useful for recovering the following:
    An erroneous DROP TABLE or TRUNCATE TABLE operation
    An erroneous DROP TABLESPACE operation
    A table that is logically corrupted
    An incorrect batch job or other DML statement that has affected only a subset of the database
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96572/ostspitr.htm#421341
    Thanks and Regards
    Kuljeet Pal Singh

  • ORA-01092: ORACLE instance terminated. Disconnection forced ORA-00942: table or view does not exist on 12C RAC

    Hi Geeks,
    I have encountered an issue while starting up my database on 12c RAC.
    Till mount it goes fine but when i attempt to open it throws me an error.
    Total System Global Area 1.5400E+10 bytes
    Fixed Size                  4737560 bytes
    Variable Size            2952791528 bytes
    Database Buffers         1.2415E+10 bytes
    Redo Buffers               26857472 bytes
    Database mounted.
    SQL> alter database open;
    alter database open
    ERROR at line 1:
    ORA-01092: ORACLE instance terminated. Disconnection forced
    ORA-00942: table or view does not exist
    Process ID: 11338068
    Session ID: 1429 Serial number: 3
    Here is the trace file output...
    ORACLE_HOME = /oracle_home/app/orahome
    System name:    AIX
    Node name:      INS1
    Release:        1
    Version:        7
    Machine:        00C8CCA74C00
    Instance name: INST1
    Redo thread mounted by this instance: 1
    Oracle process number: 7
    Unix process pid: 20381876, image: oracle@ins1 (TNS V1-V3)
    *** 2014-11-27 22:49:20.892
    *** SESSION ID:(197.5) 2014-11-27 22:49:20.892
    *** CLIENT ID:() 2014-11-27 22:49:20.892
    *** SERVICE NAME:() 2014-11-27 22:49:20.892
    *** MODULE NAME:(sqlplus@ins1 (TNS V1-V3)) 2014-11-27 22:49:20.892
    *** ACTION NAME:() 2014-11-27 22:49:20.892
    2014-11-27 22:49:20.889716 : Start recovery for domain=0, valid=0, flags=0x4
    *** 2014-11-27 22:49:24.580
    Successfully allocated 32 recovery slaves
    Using 3 overflow buffers per recovery slave
    *** 2014-11-27 22:49:24.740
    Thread 1 checkpoint: logseq 15, block 2, scn 3510749
      cache-low rba: logseq 15, block 3
        on-disk rba: logseq 15, block 72, scn 3510824
      start recovery at logseq 15, block 3, scn 0
    *** 2014-11-27 22:49:24.981
    Started resilvering redo thread 1 seq 15 blocks 72-73
    *** 2014-11-27 22:49:24.994
    Completed resilvering redo thread 1 seq 15
    *** 2014-11-27 22:49:24.994
    Started writing zeroblks thread 1 seq 15 blocks 74-81
    *** 2014-11-27 22:49:24.994
    Completed writing zeroblks thread 1 seq 15
    ==== Redo read statistics for thread 1 ====
    Total physical reads (from disk and memory): 4096Kb
    -- Redo read_disk statistics --
    Read rate (ASYNC): 35Kb in 0.25s => 0.14 Mb/sec
    Longest record: 0Kb, moves: 0/104 (0%)
    Longest LWN: 2Kb, moves: 0/33 (0%), moved: 0Mb
    Last redo scn: 0x0000.0035922b (3510827)
    ----- Recovery Hash Table Statistics ---------
    Hash table buckets = 262144
    Longest hash chain = 1
    Average hash chain = 25/25 = 1.0
    Max compares per lookup = 1
    Avg compares per lookup = 151/176 = 0.9
    *** 2014-11-27 22:49:25.007
    KCRA: start recovery claims for 25 data blocks
    *** 2014-11-27 22:49:25.039
    KCRA: blocks processed = 25/25, claimed = 25, eliminated = 0
    *** 2014-11-27 22:49:25.054
    Recovery of Online Redo Log: Thread 1 Group 6 Seq 15 Reading mem 0
    *** 2014-11-27 22:49:25.060
    Completed redo application of 0.02MB
    *** 2014-11-27 22:49:25.235
    Completed recovery checkpoint
    ----- Recovery Hash Table Statistics ---------
    Hash table buckets = 262144
    Longest hash chain = 1
    Average hash chain = 25/25 = 1.0
    Max compares per lookup = 1
    Avg compares per lookup = 176/176 = 1.0
    Recovery sets nab of thread 1 seq 15 to 74 with 8 zeroblks
    *** 2014-11-27 22:49:26.000
    2014-11-27 22:49:26.000433 : Validate domain 0
    2014-11-27 22:49:26.001348 : Validated domain 0, flags = 0x0
    *** 2014-11-27 22:49:28.315
    Count of ofsmtab$: 0 entries
    *** 2014-11-27 22:49:28.732
    ORA-00942: table or view does not exist
    ORA-00942: table or view does not exist
    *** 2014-11-27 22:49:28.738
    USER (ospid: 20381876): terminating the instance due to error 942

    In my case the issue has fixed by executing the following..
    grant SELECT on SYS.USER$ to XDB;
    grant SELECT on SYS.USER$ to CTXSYS;
    grant SELECT on SYS.USER$ to DVSYS;
    grant SELECT on SYS.USER$ to LBACSYS;
    grant SELECT on SYS.USER$ to APEX_040200;
    grant SELECT on SYS.USER$ to DV_SECANALYST; 
    Refer the above screen shot...

  • Database startup showing ORA-00942: table or view does not exist in trace

    Hi Friends,
    SunOS 5.10 Generic_137112-06 i86pc i386 i86pc , 64 Bit
    Oracle 10.2.0.1.0
    While I am doing a startup, getting following error.
    SQL> startup;
    ORACLE instance started.
    Total System Global Area 3221225472 bytes
    Fixed Size 2122544 bytes
    Variable Size 410819792 bytes
    Database Buffers 2801795072 bytes
    Redo Buffers 6488064 bytes
    Database mounted.
    ORA-01092: ORACLE instance terminated. Disconnection forcedThe alert log shows the following
    Errors in file /applns/oracle/admin/CTSD1/udump/ctsd1_ora_11486.trc:
    ORA-00942: table or view does not exist
    Error 942 happened during db open, shutting down database
    USER: terminating instance due to error 942
    Instance terminated by USER, pid = 11486
    ORA-1092 signalled during: ALTER DATABASE OPEN...A look at the trace file shows this
    /applns/oracle/admin/CTSD1/udump/ctsd1_ora_11486.trc
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    ORACLE_HOME = /applns/oracle
    System name: SunOS
    Node name: N890
    Release: 5.10
    Version: Generic_137112-06
    Machine: i86pc
    Instance name: CTSD1
    Redo thread mounted by this instance: 1
    Oracle process number: 23
    Unix process pid: 11486, image: oracle@N890 (TNS V1-V3)
    *** SERVICE NAME:() 2011-02-16 19:24:50.188
    *** SESSION ID:(325.3) 2011-02-16 19:24:50.188
    Successfully allocated 3 recovery slaves
    Using 367 overflow buffers per recovery slave
    Thread 1 checkpoint: logseq 45929, block 2, scn 310788795>cache-low rba: logseq 45929, block 3
    >on-disk rba: logseq 45929, block 52, scn 310788832
    >start recovery at logseq 45929, block 3, scn 0
    ----- Redo read statistics for thread 1 -----
    Read rate (ASYNC): 24Kb in 0.31s => 0.08 Mb/sec
    Total physical reads: 4096Kb
    Longest record: 0Kb, moves: 0/61 (0%)
    Longest LWN: 16Kb, moves: 0/3 (0%), moved: 0Mb
    Last redo scn: 0x0000.128642df (310788831)
    ----- Recovery Hash Table Statistics ---------
    Hash table buckets = 32768
    Longest hash chain = 1
    Average hash chain = 4/4 = 1.0
    Max compares per lookup = 1
    Avg compares per lookup = 117/121 = 1.0
    *** 2011-02-16 19:24:50.515
    KCRA: start recovery claims for 4 data blocks
    *** 2011-02-16 19:24:50.515
    KCRA: blocks processed = 4/4, claimed = 4, eliminated = 0
    *** 2011-02-16 19:24:50.516
    Recovery of Online Redo Log: Thread 1 Group 1 Seq 45929 Reading mem 0
    ----- Recovery Hash Table Statistics ---------
    Hash table buckets = 32768
    Longest hash chain = 1
    Average hash chain = 4/4 = 1.0
    Max compares per lookup = 1
    Avg compares per lookup = 121/121 = 1.0
    ORA-00942: table or view does not existI have searched MOS and Google, but didn;'t get any relevant results.
    Also flushed my shared_pool as mentioned in (http://www.tanelpoder.com/files/oracle_rowcache.pdf) after mount and started , still no luck
    Any help is appreciated
    Thanks
    SSN

    Hi,
    Thanks.
    Tried log mining, but still couldn't find the culprit. I think now, I have to drop and create this db.Still wondering what might have happened.
    select group#,status from v$log;
        GROUP# STATUS
             1 INACTIVE
             3 INACTIVE
             2 CURRENT
    SQL> select group#,MEMBER from v$logfile where group#=2;
        GROUP#
    MEMBER
             2
    /applns/oracle/oradata/CTSD1/redo02.log
    SQL> EXECUTE sys.DBMS_LOGMNR.ADD_LOGFILE( LOGFILENAME => '/applns/oracle/oradata/CTSD1/redo02.log',OPTIONS => sys.DBMS_LOGMNR.NEW);
    PL/SQL procedure successfully completed.
    SQL> EXECUTE sys.DBMS_LOGMNR.START_LOGMNR;
    PL/SQL procedure successfully completed.
    SQL> SELECT COUNT (*) FROM   v$logmnr_contents WHERE  operation = 'DDL';
      COUNT(*)
             0
    SQL> EXECUTE sys.DBMS_LOGMNR.END_LOGMNR();
    PL/SQL procedure successfully completed.
    SQL> select group#,MEMBER from v$logfile where group#=1;
        GROUP#
    MEMBER
             1
    /applns/oracle/oradata/CTSD1/redo01.log
             1
    /applns/oracle/oradata/CTSD1/redolog001.log
    SQL> EXECUTE sys.DBMS_LOGMNR.ADD_LOGFILE( LOGFILENAME => '/applns/oracle/oradata/CTSD1/redo01.log',OPTIONS => sys.DBMS_LOGMNR.NEW);
    PL/SQL procedure successfully completed.
    SQL> EXECUTE sys.DBMS_LOGMNR.START_LOGMNR;
    PL/SQL procedure successfully completed.
    SQL> SELECT COUNT (*) FROM   v$logmnr_contents WHERE  operation = 'DDL';
      COUNT(*)
             0
    SQL> EXECUTE sys.DBMS_LOGMNR.END_LOGMNR();
    PL/SQL procedure successfully completed.
    SQL> EXECUTE sys.DBMS_LOGMNR.ADD_LOGFILE( LOGFILENAME => '/applns/oracle/oradata/CTSD1/redolog001.log',OPTIONS => sys.DBMS_LOGMNR.NEW);
    PL/SQL procedure successfully completed.
    SQL> EXECUTE sys.DBMS_LOGMNR.START_LOGMNR;
    PL/SQL procedure successfully completed.
    SQL> SELECT COUNT (*) FROM   v$logmnr_contents WHERE  operation = 'DDL';
      COUNT(*)
             0
    SQL> EXECUTE sys.DBMS_LOGMNR.END_LOGMNR();
    PL/SQL procedure successfully completed.
    SQL> select group#,MEMBER from v$logfile where group#=3
        GROUP#
    MEMBER
             3
    /applns/oracle/oradata/CTSD1/redo03.log
    SQL> EXECUTE sys.DBMS_LOGMNR.ADD_LOGFILE( LOGFILENAME => '/applns/oracle/oradata/CTSD1/redo03.log',OPTIONS => sys.DBMS_LOGMNR.NEW);
    PL/SQL procedure successfully completed.
    SQL>  EXECUTE sys.DBMS_LOGMNR.START_LOGMNR;
    PL/SQL procedure successfully completed.
    SQL> SELECT COUNT (*) FROM   v$logmnr_contents WHERE  operation = 'DDL';
      COUNT(*)
             0
    SQL> EXECUTE sys.DBMS_LOGMNR.END_LOGMNR();
    PL/SQL procedure successfully completed.SSN

  • Partial recovery in RMAN 8i

    Hi,
    I'm looking for an example of partial recovery (a table only, or a tablespace or some rows in a table) in RMAN 8i.
    I deleted some rows from a table and I recovered its tablespace I did not find the rows.
    Many thanks.

    What you actually performed was a complete recovery of a tablespace. You must perform a TSPITR (TableSpace Point In Time Recovery):
    http://www.csee.umbc.edu/help/oracle8/server.815/a67773/rmantspi.htm

  • How to get customers overdue payment recovery in t-sql

    hi
    i have developed a software for my customer. leasing software for leasing business. my customer has sell goods to their customers and recover payment on monthly installment basis. now my customer has required a report of none recovered customers payment
    list how i can do in query. i mean how can i trace those customers which has not made monthly installment within any selected two dates
    following is my recovery table structure which is master/detail
    Customers table
    CREATE TABLE [dbo].[Parties](
    [PartyID] [int] NOT NULL,
    [PartyName] [nvarchar](255) NULL,
    [AreaID] [nvarchar](255) NULL,
    [NameProduct] [nvarchar](255) NULL,
    [TotalCost] [real] NULL,
    [MonthlyInstallment] [real] NULL,
    [InstallmentDate] [nvarchar](50) NULL,
     CONSTRAINT [PK_Parties] PRIMARY KEY CLUSTERED 
    [PartyID] ASC
    )WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
    ) ON [PRIMARY]
    RECOVERY MASTER TABLE
    CREATE TABLE [dbo].[Recovery](
    [TransID] [nvarchar](255) NOT NULL,
    [TransDate] [datetime] NULL,
    [AreaID] [nvarchar](50) NULL,
    [Description] [nvarchar](255) NULL,
    [NetRecovery] [decimal](18, 0) NULL,
    [ProgramID] [int] NULL,
    CONSTRAINT [Recovery$PrimaryKey] PRIMARY KEY CLUSTERED
    [TransID] ASC
    )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
    ) ON [PRIMARY]
    GO
    and detail table structure is as under
    CREATE TABLE [dbo].[RecoveryDetail](
    [TransID] [nvarchar](255) NULL,
    [PartyID] [int] NULL,
    [PartyName] [nvarchar](255) NULL,
    [AmountRecover] [float] NULL,
    ) ON [PRIMARY]
    GO

    Mmmhmm.
    DDL: http://en.wikipedia.org/wiki/Data_definition_language a description of your data structures.
    DML: http://en.wikipedia.org/wiki/Data_manipulation_language a description of how the data set is used or altered
    Example:
    DECLARE @customers TABLE (customerID INT IDENTITY, customerName VARCHAR(30))
    DECLARE @leases TABLE (leaseID INT IDENTITY, customerID INT, totalAmount NUMERIC(10,4), paymentAmount NUMERIC(10,4), termMonths INT, paymentHistory VARCHAR(12), firstpaymentDate DATE, nextPaymentDate DATE, finalPaymentDate DATE)
    INSERT INTO @customers (customerName)
    VALUES ('Tinkywinky'),('Dipsy'),('La La'),('Po')
    INSERT INTO @leases (customerID, totalAmount, paymentAmount, termMonths, paymentHistory, firstpaymentDate, nextPaymentDate, finalPaymentDate)
    VALUES (1, 10000, 833.34, 12, 'NNNNNNN00000', '2014-7-1', '2014-12-1', '2015-6-1'),(2, 15000, 1000, 15, 'N01200000000', '2014-1-1', '2014-12-1', '2015-3-1'),
    (3, 24000, 1000, 24, '000000000000', '2013-1-1', '2013-1-1', '2015-12-1'),(4, 48000, 1000, 48, '000000000000', '2013-1-1', '2013-1-1', '2017-12-1')

  • Return Current month Data:Help needed in modifying this code of a Procedure

    Hello Folks i have this scenario where i need to modify this code so that it has to return data from the Current month First Day to the previous Day if its a daily report and previous month data if its a monthly report.
    I have no clue how to modify this code below. Currently the code is returning data for Monthly reports for the previous month. Does anyone have any idea how to modify so that the code meets the requirements of both daily and monthly reprts.
    BEGIN
    if v_lowdate is null or v_highdate is null then
    select to_number(to_char(sysdate, 'DD')) into v_cur_day from dual;
    if v_cur_day < 25 then
    -- this is for the previous month run
    Select Add_Months(trunc(sysdate, 'MONTH'), -1)
    INTO V_LOWDATE
    FROM DUAL;
    SELECT Last_Day(ADD_Months(Sysdate, -1)) INTO V_Highdate From Dual;
    else
    -- this is for the current month run
    Select trunc(sysdate, 'MONTH') INTO V_LOWDATE FROM DUAL;
    SELECT Last_Day(Sysdate) INTO V_Highdate From Dual;
    end if;
    end if;
    Thanks
    Edited by: user11961230 on Sep 30, 2009 8:34 PM

    Hi Frank, This is code till the "modifying Code" which we were working. I will post the code after the "modifying Code" in the next reply. Thanks
    CREATE OR REPLACE PROCEDURE "POPULATE_RECOVERY_ACTIVITYHN"(p_lowdate date,
    p_highdate date) IS
    v_lowdate date := p_lowdate;
    v_highdate date := p_highdate;
    v_error_code NUMBER(20);
    v_error_text VARCHAR2(300);
    v_recovery_id Recovery.Recovery_ID%type;
    v_loop_control Number(20);
    v_settlement_id recovery.settlement_id%type;
    V_Event_ID Event.Event_ID%Type;
    V_Event_Case_ID Event_Case.Event_Case_ID%Type;
    V_Recovery_Month Varchar2(100);
    V_Major_Company Major_Client.Major_Client_Name%Type;
    V_Company Client.Client_Name%Type;
    V_Client_Policy_Identifier Varchar2(100);
    V_Lan_ID Varchar2(10) := 'TROVERIS';
    V_Recovery_Account Client.Account_Number%Type;
    V_AccountA Number(2) := 0;
    V_AccountB Number(2) := 0;
    V_Unit Event_Client_Field.Client_Field_Data%Type;
    V_Market Event_Client_Field.Client_Field_Data%Type;
    V_case_open_date Event_case.Open_Date%type;
    V_Employer_Group_Code Employer_Group.Employer_Group_Code%Type;
    V_Unknown1 Number(2) := 0;
    V_Fee_Schedule_Code Event_Case.Fee_Schedule_Code%Type;
    V_Total_Fee_Percent Number(20, 2) := 0.00;
    V_Subrogation_Fee_Percent Number(20, 2) := 0.00;
    V_Unknown2 Number(2) := NULL;
    V_Unknown3 Number(2) := NULL;
    V_TOTAL_MEDICAL Number(20, 2) := 0.00;
    V_Recovery_Amount Number(20, 2) := 0.00;
    V_Total_Tax Number(20, 2) := 0.00;
    V_Administrative_Tax Number(20, 2) := 0.00;
    V_Total_NonCash_Fee Number(20, 2) := 0.00;
    V_Total_NonCash_Positive Number(20, 2) := 0.00;
    V_Total_NonCash_Negative Number(20, 2) := 0.00;
    V_Total_Recovery Number(20, 2) := 0.00;
    V_Total_NonCash_Fee_Positive Number(20, 2) := 0.00;
    V_Total_NonCash_Fee_Negative Number(20, 2) := 0.00;
    V_Total_Admin_Fee Number(20, 2) := 0.00;
    V_Total_Fee Number(20, 2) := 0.00;
    V_Total_NonCash_Tax_Positive Number(20, 2) := 0.00;
    V_Total_NonCash_Tax_Negative Number(20, 2) := 0.00;
    report_type                  Varchar2(2);
    v_gl_num client.gl_num%type; -- *002*
    v_net_billable client.net_billable%type; -- *003*
    vevent_id event.event_id%type; -- *006*
    v_prev_event event.event_id%type; -- *006*
    v_prev_case event_case.event_case_id%type; -- *006*
    v_tot_recovery recovery.amount%type; -- *006*
    v_rec_amount recovery.amount%type; -- *006*
    v_prev_rec_amt recovery.amount%type; -- *006*
    v_prev_rec_month recovery_activity.recovery_month%type; -- *006*
    v_tot_fee recovery_activity.total_fee%type; --*006*
    v_mth_rev unbundled_recoveries.monthly_revenue%type; -- *006*
    v_diff number(18, 2); -- *006*
    v_nc_count number := 0; -- *006*
    v_c_count number := 0; -- *006*
    v_nc_tot recovery.amount%type; -- *006*
    v_used_rev recovery_activity.total_fee%type; -- *006*
    v_use_mth_rev unbundled_recoveries.monthly_revenue%type := 0; -- *006*
    v_use_nc_mth_rev unbundled_recoveries.monthly_revenue%type := 0; -- *006*
    v_prev_netbill client.net_billable%type; -- *006*
    v_event_type event.event_type_code%type;
    v_date_typed event.date_typed%type;
    v_acc_client_id client.acc_client_id%Type;
    v_Recovery_Revenue_GL_Num client.recovery_revenue_gl_num%Type;
    v_Funds_Due_GL_num client.funds_due_gl_num%Type;
    v_lob Varchar2(20);
    v_nc_recovery_id recovery.recovery_id%Type;
    /*Changed the Client_Policy_Identifier to concatenate the Retlation to insured code instead of the description
    which was exceeding the column size in the table. SWL 09/03/02. Checked with the Design Doc.*/
    CURSOR RECOVERY_INFO IS
    SELECT Event.Event_ID,
    Event_Case.Event_Case_ID,
    TO_CHAR(Recovery.Recovery_Date, 'FMMONTHYYYY') As Recovery_Month,
    Major_Client.Major_Client_Name AS Major_Company,
    -- Client.Client_Name AS Company,
    -- nvl(client.legacy_client_id,'DC')||'-'||substr(Client.Client_Name,1,55) AS Company, -- SWL 04/01/04 52653
    substr(nvl(client.legacy_client_id,
    decode(client.client_id, 1, 'DC', client.client_code)) || '-' ||
    Client.Client_Name,
    1,
    60) AS Company,
    Event.Client_Policy_Identifier ||
    Event_Case.Relation_To_Insured_code as Client_Policy_Identifier,
    Client.Account_Number as Recovery_Account,
    Employer_Group.Employer_Group_Code,
    Event_Case.Fee_Schedule_Code,
    Recovery_ID,
    Event_case.Open_Date,
    '(' || recovery.recovery_transaction_internal || ')' ||
    l.recovery_transaction_descripti, --fml 110276
    recovery.settlement_id,
    trim(client.gl_num), -- *002*
    nvl(trim(client.net_billable), 'N'), -- *003*
    recovery.amount, -- *006*,
    event.event_type_code,
    event.date_typed,
    recovery_id,
    Client.ACC_CLIENT_ID,
    Recovery_Revenue_GL_Num,
    Funds_Due_GL_num
    FROM Recovery,
    Settlement,
    Event_Case,
    Event,
    Employer_Group,
    Client,
    Major_Client,
    recovery_transaction_lookup l
    Where to_date(Recovery.Recovery_Date, 'DD-MON-RR') between
    TO_DATE(v_lowdate, 'DD-MON-RR') and
    TO_DATE(v_highdate, 'DD-MON-RR')
    AND Settlement.Settlement_id = Recovery.Settlement_id
    AND Settlement.Event_Case_ID = Event_Case.Event_Case_id
    AND Event_Case.Event_ID = Event.Event_ID
    AND Event.Employer_Group_ID = Employer_Group.Employer_Group_ID(+)
    AND Event.Client_ID = Client.Client_ID
    AND Client.Major_Client_id = Major_Client.Major_Client_ID(+)
    and recovery.settlement_id not in
    (select settlement_id
    from recovery
    where to_date(Recovery.Recovery_Date, 'DD-MON-RR') between
    TO_DATE(v_lowdate, 'DD-MON-RR') and
    TO_DATE(v_highdate, 'DD-MON-RR')
    AND recovery_transaction_internal in
    ('05', '50', '52', '51'))
    --001
    and    client.invoice_flag = 'N'            *005* commenting
    -- SWL 05/03/05 #71231
    and event.event_id in
    (select event_id
    from event_end_user eeu
    where eeu.active_flag = 'Y'
    and eeu.owner_flag = 'Y'
    and eeu.end_user_id in
    (select end_user_id
    from end_user
    where end_user.research_internal_user = 'Y'))
    and recovery.recovery_transaction_internal =
    l.recovery_transaction_internal --fml 110276
    order by event.event_id, recovery.amount; -- *006*
    -- SWL 05/03/05 #71231
    -- end of 001
    -- SWL 11/10/03 # 52743
    -- *006*
    CURSOR get_recovery(vevent_id event.event_id%type) IS
    SELECT sum(r.amount)
    FROM Recovery r
    Where to_date(r.Recovery_Date, 'DD-MON-RR') between
    TO_DATE(v_lowdate, 'DD-MON-RR') and
    TO_DATE(v_highdate, 'DD-MON-RR')
    and r.event_id = vevent_id
    and r.settlement_id not in
    (select settlement_id
    from recovery
    where to_date(Recovery.Recovery_Date, 'DD-MON-RR') between
    TO_DATE(v_lowdate, 'DD-MON-RR') and
    TO_DATE(v_highdate, 'DD-MON-RR')
    AND recovery_transaction_internal in
    ('05', '50', '52', '51'))
    and r.event_id in
    (select event_id
    from event_end_user eeu
    where eeu.active_flag = 'Y'
    and eeu.owner_flag = 'Y'
    and eeu.end_user_id in
    (select end_user_id
    from end_user
    where end_user.research_internal_user = 'Y'));
    CURSOR RECOVERY_INFO_NC IS
    SELECT distinct Event.Event_ID,
    Event_Case.Event_Case_ID,
    TO_CHAR(Recovery.Recovery_Date, 'FMMONTHYYYY') As Recovery_Month,
    Major_Client.Major_Client_Name AS Major_Company,
    -- Client.Client_Name AS Company,
    -- nvl(client.legacy_client_id,'DC')||'-'||substr(Client.Client_Name,1,55) AS Company, /* SWL 04/01/04 52653 */
    substr(nvl(client.legacy_client_id,
    decode(client.client_id,
    1,
    'DC',
    client.client_code)) || '-' ||
    Client.Client_Name,
    1,
    60) AS Company,
    Event.Client_Policy_Identifier ||
    Event_Case.Relation_To_Insured_code as Client_Policy_Identifier,
    Client.Account_Number as Recovery_Account,
    Employer_Group.Employer_Group_Code,
    Event_Case.Fee_Schedule_Code,
    '(' || recovery.recovery_transaction_internal || ')' ||
    l.recovery_transaction_descripti, --fml 110276
    recovery.settlement_id,
    trim(client.gl_num), -- *002*
    nvl(trim(client.net_billable), 'N'), -- *003*
    recovery.amount,-- *006*
    recovery.recovery_id,
    event.event_type_code,
    event.date_typed,
    Client.ACC_CLIENT_ID,
    Recovery_Revenue_GL_Num,
    Funds_Due_GL_num
    FROM Recovery,
    Settlement,
    Event_Case,
    Event,
    Employer_Group,
    Client,
    Major_Client,
    recovery_transaction_lookup l
    Where to_date(Recovery.Recovery_Date, 'DD-MON-RR') between
    TO_DATE(v_lowdate, 'DD-MON-RR') and
    TO_DATE(v_highdate, 'DD-MON-RR')
    AND Settlement.Settlement_id = Recovery.Settlement_id
    AND Settlement.Event_Case_ID = Event_Case.Event_Case_id
    AND Event_Case.Event_ID = Event.Event_ID
    AND Event.Employer_Group_ID = Employer_Group.Employer_Group_ID(+)
    AND Event.Client_ID = Client.Client_ID
    AND Client.Major_Client_id = Major_Client.Major_Client_ID(+)
    and recovery.settlement_id in
    (select settlement_id
    from recovery
    where to_date(Recovery.Recovery_Date, 'DD-MON-RR') between
    TO_DATE(v_lowdate, 'DD-MON-RR') and
    TO_DATE(v_highdate, 'DD-MON-RR')
    --001
    AND recovery.recovery_transaction_internal in
    ('05', '50', '52', '51')
    and    client.invoice_flag = 'N'   *005* commenting
    /* SWL 05/03/05 #71231 */
    and event.event_id in
    (select event_id
    from event_end_user eeu
    where eeu.active_flag = 'Y'
    and eeu.owner_flag = 'Y'
    and eeu.end_user_id in
    (select end_user_id
    from end_user
    where end_user.research_internal_user = 'Y'))
    and recovery.recovery_transaction_internal =
    l.recovery_transaction_internal --fml 110276
    order by event.event_id, recovery.amount; -- *006*
    /* SWL 05/03/05 #71231 */
    --end of 001
    -- *006*
    CURSOR get_recovery_nc(vevent_id event.event_id%type) IS
    SELECT sum(r.amount)
    FROM Recovery r
    Where to_date(r.Recovery_Date, 'DD-MON-RR') between
    TO_DATE(v_lowdate, 'DD-MON-RR') and
    TO_DATE(v_highdate, 'DD-MON-RR')
    AND r.event_id = vevent_id
    and r.settlement_id in
    (select settlement_id
    from recovery
    where to_date(Recovery.Recovery_Date, 'DD-MON-RR') between
    TO_DATE(v_lowdate, 'DD-MON-RR') and
    TO_DATE(v_highdate, 'DD-MON-RR'))
    AND recovery_transaction_internal in ('05', '50', '52', '51')
    and r.event_id in
    (select event_id
    from event_end_user eeu
    where eeu.active_flag = 'Y'
    and eeu.owner_flag = 'Y'
    and eeu.end_user_id in
    (select end_user_id
    from end_user
    where end_user.research_internal_user = 'Y'));
    CURSOR Recovery_Totals_Nc IS
    Select Recovery_Detail.Recovery_Id, /* SWL 07/01/04 59016 */
    max(NVL(Recovery_Detail.Fees_Percent, 0) +
    NVL(Recovery_Detail.Admin_Percent, 0)) as Total_Fee_Percent,
    max(NVL(Recovery_Detail.Fees_Percent, 0)) as Subrogation_Fee_Percent,
    max(NVL(Recovery.Amount, 0)) as Recovery_Amount, /* SWL 04/01/04 52653 */
    Sum(NVL(Recovery_detail.Fees, 0) + NVL(Recovery_Detail.Admin, 0)) as Total_Fee,
    Sum(NVL(Recovery_Detail.Fees_Taxes, 0) +
    NVL(Recovery_Detail.Admin_Taxes, 0)) as Total_Tax,
    Sum(NVL(Recovery_Detail.Admin_Taxes, 0)) as Administrative_tax,
    Sum(NVL(Recovery_Detail.Admin, 0)) as Total_Admin_Fee,
    sum(recovery.retained_by_client) as Non_cash_fee, --fml 110276
    sum(recovery.allocation_check_amount) as cash --fml 110276
    From Settlement, Recovery, Recovery_Detail
    Where Recovery.settlement_id = v_settlement_id
    And recovery.recovery_id = v_recovery_id
    And Settlement.Settlement_id = Recovery.Settlement_id
    And Recovery.Recovery_id = Recovery_detail.Recovery_id(+)
    and to_date(Recovery.Recovery_Date, 'DD-MON-RR') between
    TO_DATE(v_lowdate, 'DD-MON-RR') and
    TO_DATE(v_highdate, 'DD-MON-RR') /*SWL 12/03/04 */
    -- Group by Recovery_Detail.Fees_Percent; /* SWL 04/01/04 52653 */
    Group by Recovery_Detail.recovery_id;
    v_cash_recovery recovery_activity.cash_recovery%type;
    CURSOR Recovery_Totals_Positive_Nc IS
    -- Select Sum(Recovery.Amount) as Total_NonCash_Positive, /* SWL 04/01/04 52653 */
    Select max(Recovery.Amount) as Total_NonCash_Positive,
    Sum(NVL(Recovery_Detail.Fees_Taxes, 0) +
    NVL(Recovery_Detail.Admin_Taxes, 0)) as Total_NonCash_Tax_Positive
    From Settlement, Recovery, Recovery_detail
    Where Recovery.settlement_id = v_settlement_id
    And Settlement.Settlement_id = Recovery.Settlement_id
    and recovery.recovery_id = v_recovery_id /* SWL 07/01/04 59016 */
    And Recovery.Amount >= 0
    And Recovery.Recovery_id = Recovery_detail.Recovery_id(+)
    And Recovery.Recovery_Transaction_Internal in
    ('05', '50', '52', '51')
    -- Group by Recovery_Detail.Fees_Percent; /* SWL 04/01/04 52653 */
    Group by Recovery_Detail.recovery_id;
    CURSOR Recovery_Totals_Negative_Nc IS
    -- Select Sum(Recovery.Amount) as Total_NonCash_Negative, /* SWL 04/01/04 52653 */
    Select max(Recovery.Amount) as Total_NonCash_Negative,
    Sum(NVL(Recovery_Detail.Fees_Taxes, 0) +
    NVL(Recovery_Detail.Admin_Taxes, 0)) as Total_NonCash_Tax_Negative
    From Settlement, Recovery, Recovery_Detail
    Where Recovery.settlement_id = v_settlement_id
    And Settlement.Settlement_id = Recovery.Settlement_id
    and recovery.recovery_id = v_recovery_id /* SWL 07/01/04 59016 */
    And Recovery.Amount < 0
    And Recovery.Recovery_id = Recovery_detail.Recovery_id(+)
    And Recovery.Recovery_Transaction_Internal in
    ('05', '50', '52', '51')
    Group by Recovery_Detail.recovery_id;
    -- Group by Recovery_Detail.Fees_Percent; /* SWL 04/01/04 52653 */
    /* SWL 11/10/03 # 52743 */
    CURSOR Event_Client_Unit IS
    Select e.Client_Field_Data as Unit
    From Event_Client_Field e, recovery r
    Where r.Event_ID = e.Event_ID
    AND r.Recovery_ID = V_Recovery_ID
    AND e.Client_Field_Name = 'UNIT';
    CURSOR Bill_totals IS
    Select mv_billdetail_case_sum.sum_paid as TOTAL_MEDICAL
    From mv_billdetail_case_sum
    where mv_billdetail_case_sum.event_id = V_Event_ID;
    CURSOR NonCash_Fee IS
    Select NVL(Sum(Recovery.Amount), 0) as Total_NonCash_Fee
    From Settlement, Recovery
    Where Recovery.Recovery_ID = V_Recovery_ID
    And Settlement.Settlement_id = Recovery.Settlement_id
    And Recovery.
    Recovery_Transaction_Internal in ('05', '50', '52', '51');
    /* SWL 04/01/04 52653 */
    CURSOR Recovery_Totals IS
    Select round(avg(NVL(Recovery_Detail.Fees_Percent, 0) +
    NVL(Recovery_Detail.Admin_Percent, 0)),
    2) as Total_Fee_Percent,
    round(avg(NVL(Recovery_Detail.Fees_Percent, 0)), 2) as Subrogation_Fee_Percent,
    max(NVL(Recovery.Amount, 0)) as Recovery_Amount,
    Sum(NVL(Recovery_detail.Fees, 0) + NVL(Recovery_Detail.Admin, 0)) as Total_Fee,
    Sum(NVL(Recovery_Detail.Fees_Taxes, 0) +
    NVL(Recovery_Detail.Admin_Taxes, 0)) as Total_Tax,
    Sum(NVL(Recovery_Detail.Admin_Taxes, 0)) as Administrative_tax,
    Sum(NVL(Recovery_Detail.Admin, 0)) as Total_Admin_Fee
    From Settlement, Recovery, Recovery_Detail
    Where Recovery.Recovery_ID = V_Recovery_ID
    And Settlement.Settlement_id = Recovery.Settlement_id
    And Recovery.Recovery_id = Recovery_detail.Recovery_id(+)
    Group by Recovery_Detail.recovery_id;
    CURSOR Recovery_Totals_Positive IS
    /* Select Sum(Recovery.Amount) as Total_NonCash_Positive,
    Sum(NVL(Recovery_Detail.Fees_Taxes,0)+ NVL(Recovery_Detail.Admin_Taxes,0)) as Total_NonCash_Tax_Positive
    */ /* SWL 04/01/04 52653 */
    Select max(Recovery.Amount) as Total_NonCash_Positive,
    Sum(NVL(Recovery_Detail.Fees_Taxes, 0) +
    NVL(Recovery_Detail.Admin_Taxes, 0)) as Total_NonCash_Tax_Positive
    From Settlement, Recovery, Recovery_detail
    Where Recovery.Recovery_ID = V_Recovery_ID
    And Settlement.Settlement_id = Recovery.Settlement_id
    And Recovery.Amount >= 0
    And Recovery.Recovery_id = Recovery_detail.Recovery_id(+)
    And Recovery.Recovery_Transaction_Internal in ('04', '17', '15') /*SWL 10/05/04 #63919*/--*009* added 15
    Group by Recovery_Detail.recovery_id;
    -- Group by Recovery_Detail.Fees_Percent; /* SWL 04/01/04 52653 */
    CURSOR Recovery_NonFEE_Positive IS
    Select Sum(NVL(Recovery_Detail.Fees, 0) + NVL(Recovery_Detail.Admin, 0)) as Total_NonCash_Fee_Positive
    From Settlement, Recovery, Recovery_detail
    Where Recovery.Recovery_ID = V_Recovery_ID
    And Settlement.Settlement_id = Recovery.Settlement_id
    And Recovery.Amount >= 0
    And Recovery.Recovery_id = Recovery_detail.Recovery_id(+)
    And Recovery.Recovery_Transaction_Internal in
    ('05', '50', '52', '51')
    Group by Recovery_Detail.recovery_id;
    -- Group by Recovery_Detail.Fees_Percent; /* SWL 04/01/04 52653 */
    CURSOR Recovery_Totals_Negative IS
    /* Select Sum(Recovery.Amount) as Total_NonCash_Negative,*/ /* SWL 04/01/04 52653 */
    Select max(Recovery.Amount) as Total_NonCash_Negative,
    Sum(NVL(Recovery_Detail.Fees_Taxes, 0) +
    NVL(Recovery_Detail.Admin_Taxes, 0)) as Total_NonCash_Tax_Negative
    From Settlement, Recovery, Recovery_Detail
    Where Recovery.Recovery_ID = V_Recovery_ID
    And Settlement.Settlement_id = Recovery.Settlement_id
    And Recovery.Amount < 0
    And Recovery.Recovery_id = Recovery_detail.Recovery_id(+)
    And Recovery.Recovery_Transaction_Internal in ('04', '17', '15') /*SWL 10/05/04 #63919*/--*009* added 15
    Group by Recovery_Detail.recovery_id;
    -- Group by Recovery_Detail.Fees_Percent; /* SWL 04/01/04 52653 */
    CURSOR Recovery_NonFEE_Negative IS
    Select Sum(NVL(Recovery_Detail.Fees, 0) + NVL(Recovery_Detail.Admin, 0)) as Total_NonCash_Fee_Negative
    From Settlement, Recovery, Recovery_Detail
    Where Recovery.Recovery_ID = V_Recovery_ID
    And Settlement.Settlement_id = Recovery.Settlement_id
    And Recovery.Amount < 0
    And Recovery.Recovery_id = Recovery_detail.Recovery_id(+)
    And Recovery.Recovery_Transaction_Internal in
    ('05', '50', '52', '51')
    Group by Recovery_Detail.recovery_id;
    -- Group by Recovery_Detail.Fees_Percent; /* SWL 04/01/04 52653 */
    --This is a generic cursor which will be used to control the number of rows inserted into the recovery_activity table
    --There has to be 1 row inserted into the recovery_activity table for each detail record in the recovery_detail table.
    --However, if no recovery_detail record exists there will be only 1 insert into the recovery_activity table.
    CURSOR Control_Detail_Loop
    IS
    Select 1
    FROM Recovery,
    Recovery_Detail
    Where Recovery.Recovery_ID = Recovery_Detail.Recovery_ID(+)
    And Recovery.Recovery_ID = V_Recovery_ID;
    /* SWL 04/01/04 Commented since the only time there were more entries in rd for a recovery is when there is a split fees */
    /* accounting does not want this to be displayed in detail. They need this aggregated as a single fee entry so the recovery */
    /* activity table will now have a single entry corresponding to each recovery in the recovery table. (#52653) */
    CURSOR Control_Detail_Loop IS
    Select 1 FROM Recovery where Recovery.Recovery_ID = V_Recovery_ID;
    /* DJ 10/25/04 # 64633 start*/
    CURSOR Event_Client_Market IS
    Select e.Client_Field_Data as Market
    From Event_Client_Field e, recovery r
    Where r.Event_ID = e.Event_ID
    AND r.Recovery_ID = V_Recovery_ID
    AND e.Client_Field_Name = 'MARKET';
    /* DJ 10/25/04 # 64633 end*/
    v_cur_day integer := 0;
    -----dj
    v_vendor_fee_wh number;
    v_total_vendor_fee_wh number;
    v_rec_itc recovery_activity.recovery_transaction_internal%type;
    --v_settlement_id settlement.settlement_id%type;
    --*004* start
    function unbundled_fee(pevent_id event.event_id%type,
    plowdate date,
    phighdate date) return number is
    -- function variables
    v_fee number(18, 2) := 0;
    v_month_revenue unbundled_recoveries.monthly_revenue%type := 0;
    v_cum_revenue unbundled_recoveries.cum_revenue%type := 0;
    v_contract_fee_per unbundled_recoveries.contractual_fee_per%type := 0;
    v_prev_cum_revenue unbundled_recoveries.cum_revenue%type := 0;
    v_cum_ub_rec unbundled_recoveries.cum_ub_recoveries%type := 0;
    v_cum_inv_paid unbundled_recoveries.cum_inv_paid%type := 0;
    v_month_rec unbundled_recoveries.monthly_recoveries%type := 0;
    v_cum_rec unbundled_recoveries.cum_recoveries%type := 0;
    v_event_id event.event_id%type;
    begin
    --v_month_rec and v_cum_inv_paid
    begin
    select event_id,
    (select sum(r.amount)
    from recovery r
    where r.event_id = e.event_id
    and trunc(r.recovery_date) between plowdate and phighdate) as monthly_recoveries,
    -- *006* added cum_rec
    (select nvl(sum(r.amount), 0)
    from recovery r
    where r.event_id = e.event_id
    and trunc(r.recovery_date) <= trunc(phighdate)) as cum_recoveries,
    (select sum(decode(nvl(ex.client_invoice_closed, 'N'),
    'N',
    ex.paid_amount,
    ex.client_invoice_received))
    from expense ex
    where ex.event_id = e.event_id
    and upper(ex.status) = 'PAID'
    and trunc(ex.check_date) <= phighdate
    and trim(ex.orig_client_invoice_date) is not null
    and nvl(ex.client_invoice_dispute, 'Y') = 'N') as cum_invoiced_paid
    into v_event_id, v_month_rec, v_cum_rec, v_cum_inv_paid
    from event e
    where e.event_id = pevent_id;
    exception
    when no_data_found then
    v_event_id := 0;
    v_month_rec := 0;
    v_cum_rec := 0;
    v_cum_inv_paid := 0;
    when others then
    v_event_id := 0;
    v_month_rec := 0;
    v_cum_rec := 0;
    v_cum_inv_paid := 0;
    end;
    -- *007* start
    -- if event previously written to table, get values from table
    begin
    select nvl(ub.cum_revenue, 0)
    into v_prev_cum_revenue
    from unbundled_recoveries ub
    where ub.event_id = pevent_id
    and ub.month_id =
    (select max(a.month_id)
    from unbundled_recoveries a
    where a.event_id = pevent_id
    and a.month_id < to_char(v_lowdate, 'YYYYMM'));
    exception
    when no_data_found then
    v_prev_cum_revenue := 0;
    when others then
    v_prev_cum_revenue := 0;
    end;
    -- *007* end
    --v_contract_fee_per
    begin
    select nvl(max(rd.fees_percent), 0)
    into v_contract_fee_per
    from recovery_detail rd
    where rd.recovery_id in
    (select r.recovery_id
    from recovery r,
    (select a.event_id, max(amount) as amount
    from recovery a
    where a.event_id = pevent_id
    and trunc(a.recovery_date) between plowdate and
    phighdate
    group by a.event_id) max_r
    where r.event_id = max_r.event_id
    and trunc(r.recovery_date) between plowdate and phighdate
    and r.amount = max_r.amount);
    exception
    when no_data_found then
    v_contract_fee_per := 0;
    when others then
    v_contract_fee_per := 0;
    end;
    v_cum_ub_rec := nvl(v_cum_rec, 0) - nvl(v_cum_inv_paid, 0);
    if ((nvl(v_cum_ub_rec, 0) > 0) and (nvl(v_month_rec, 0) <> 0)) then
    -- latest cumulative unbundled recoveries > 0
    v_cum_revenue := round(((v_contract_fee_per / 100) * v_cum_ub_rec),
    2);
    v_month_revenue := v_cum_revenue - v_prev_cum_revenue;
    end if;
    v_fee := v_month_revenue;
    return v_fee;
    exception
    when others then
    raise_application_error(-20106,
    substr('populate_recovery_activity.undebundled_fee: ' ||
    Sqlcode || Sqlerrm,
    1,
    500));
    return v_fee;
    end;

  • USER: terminating instance due to error 472 (Oracle 10g)

    Hi folks,
    We come across a problem that our instance was down suddenly. When checking with the alert log file, it shows that the instance was terminated due to error 472. Did you come across such situation before? Any suggestions would be welcomed.
    Following are some information about our Oracle and the log file, trace file.
    Oracle Database 10g Release 10.2.0.2.0 - Production
    ORACLE_HOME = /app/oracle/lmes
    System name: Linux
    Node name: lmes-oracle2.ust.hk
    Release: 2.4.21-32.ELsmp
    Version: #1 SMP Fri Apr 15 21:17:59 EDT 2005
    Machine: i686
    Alert Log File
    Fri Feb 23 09:11:07 2007
    Shutting down archive processes
    Fri Feb 23 09:11:12 2007
    ARCH shutting down
    ARC2: Archival stopped
    Fri Feb 23 15:16:09 2007
    The value (30) of MAXTRANS parameter ignored.
    kupprdp: master process DM00 started with pid=32, OS id=1072
    to execute - SYS.KUPM$MCP.MAIN('SYS_EXPORT_SCHEMA_01', 'SYSTEM', 'KUPC$C_1_20070223151610', 'KUPC$S_1_20070223151610', 0);
    kupprdp: worker process DW01 started with worker id=1, pid=33, OS id=1077
    to execute - SYS.KUPW$WORKER.MAIN('SYS_EXPORT_SCHEMA_01', 'SYSTEM');
    Fri Feb 23 15:16:28 2007
    Thread 1 advanced to log sequence 1309
    Current log# 3 seq# 1309 mem# 0: /app/oracle/oradata/elop/redo03.log
    Fri Feb 23 15:20:29 2007
    The value (30) of MAXTRANS parameter ignored.
    kupprdp: master process DM00 started with pid=32, OS id=1526
    to execute - SYS.KUPM$MCP.MAIN('SYS_EXPORT_SCHEMA_01', 'SYSTEM', 'KUPC$C_1_20070223152029', 'KUPC$S_1_20070223152029', 0);
    kupprdp: worker process DW01 started with worker id=1, pid=33, OS id=1528
    to execute - SYS.KUPW$WORKER.MAIN('SYS_EXPORT_SCHEMA_01', 'SYSTEM');
    Fri Feb 23 22:15:35 2007
    Thread 1 advanced to log sequence 1310
    Current log# 1 seq# 1310 mem# 0: /app/oracle/oradata/elop/redo01.log
    Fri Feb 23 23:04:10 2007
    USER: terminating instance due to error 472
    Instance terminated by USER, pid = 7779
    Trace File - elop_lgwr_2312.trc
    /app/oracle/admin/elop/bdump/elop_lgwr_2312.trc
    Oracle Database 10g Release 10.2.0.2.0 - Production
    ORACLE_HOME = /app/oracle/lmes
    System name: Linux
    Node name: lmes-oracle2.ust.hk
    Release: 2.4.21-32.ELsmp
    Version: #1 SMP Fri Apr 15 21:17:59 EDT 2005
    Machine: i686
    Instance name: elop
    Redo thread mounted by this instance: 1
    Oracle process number: 6
    Unix process pid: 2312, image: [email protected] (LGWR)
    *** SERVICE NAME:() 2007-02-23 09:10:07.372
    *** SESSION ID:(331.1) 2007-02-23 09:10:07.372
    LGWR: Archivelog for thread 1 sequence 1308 will NOT be compressed
    tkcrrsarc: (WARN) Failed to find ARCH for message (message:0x1)
    tkcrrpa: (WARN) Failed initial attempt to send ARCH message (message:0x1)
    Maximum redo generation record size = 156160 bytes
    Maximum redo generation change vector size = 150672 bytes
    tkcrrsarc: (WARN) Failed to find ARCH for message (message:0x10)
    tkcrrpa: (WARN) Failed initial attempt to send ARCH message (message:0x10)
    *** 2007-02-23 15:16:27.116
    LGWR: Archivelog for thread 1 sequence 1309 will NOT be compressed
    *** 2007-02-23 22:15:35.383
    LGWR: Archivelog for thread 1 sequence 1310 will NOT be compressed
    Trace File - elop_ora_2336.trc
    /app/oracle/admin/elop/udump/elop_ora_2336.trc
    Oracle Database 10g Release 10.2.0.2.0 - Production
    ORACLE_HOME = /app/oracle/lmes
    System name: Linux
    Node name: lmes-oracle2.ust.hk
    Release: 2.4.21-32.ELsmp
    Version: #1 SMP Fri Apr 15 21:17:59 EDT 2005
    Machine: i686
    Instance name: elop
    Redo thread mounted by this instance: 1
    Oracle process number: 15
    Unix process pid: 2336, image: [email protected]
    *** SERVICE NAME:() 2007-02-23 09:10:05.988
    *** SESSION ID:(324.3) 2007-02-23 09:10:05.988
    Thread 1 checkpoint: logseq 1307, block 2, scn 27684035
    cache-low rba: logseq 1307, block 30724
    on-disk rba: logseq 1307, block 33205, scn 27699991
    start recovery at logseq 1307, block 30724, scn 0
    ----- Redo read statistics for thread 1 -----
    Read rate (ASYNC): 1240Kb in 0.03s => 40.38 Mb/sec
    Total physical reads: 4096Kb
    Longest record: 21Kb, moves: 0/1975 (0%)
    Change moves: 1/24 (4%), moved: 0Mb
    Longest LWN: 285Kb, moves: 0/245 (0%), moved: 0Mb
    Last redo scn: 0x0000.01a6ab16 (27699990)
    ----- Recovery Hash Table Statistics ---------
    Hash table buckets = 32768
    Longest hash chain = 2
    Average hash chain = 346/345 = 1.0
    Max compares per lookup = 1
    Avg compares per lookup = 4783/5281 = 0.9
    *** 2007-02-23 09:10:06.132
    KCRA: start recovery claims for 346 data blocks
    *** 2007-02-23 09:10:07.153
    KCRA: blocks processed = 346/346, claimed = 346, eliminated = 0
    *** 2007-02-23 09:10:07.154
    Recovery of Online Redo Log: Thread 1 Group 1 Seq 1307 Reading mem 0
    ----- Recovery Hash Table Statistics ---------
    Hash table buckets = 32768
    Longest hash chain = 2
    Average hash chain = 346/345 = 1.0
    Max compares per lookup = 2
    Avg compares per lookup = 3424/5126 = 0.7
    tkcrrsarc: (WARN) Failed to find ARCH for message (message:0x1)
    tkcrrpa: (WARN) Failed initial attempt to send ARCH message (message:0x1)
    Error in executing triggers on database startup
    *** 2007-02-23 09:10:11.557
    ksedmp: internal or fatal error
    ORA-00604: error occurred at recursive SQL level 1
    ORA-12663: Services required by client not available on the server
    ORA-36961: Oracle OLAP is not available.
    ORA-06512: at "SYS.OLAPIHISTORYRETENTION", line 1
    ORA-06512: at line 15
    Thanks & Regards,
    Liona

    Hi,
    I have the same error:
    I have gridcontrol 10gR3 installed on VM / Linux 4 AS box. This is second time down time:
    finally I found the DB tiers is down.
    I have the following message:
    Private_strands 18 at log switch
    Thread 1 advanced to log sequence 215
    Current log# 2 seq# 215 mem# 0: /u02/ora/gridcontrol10g/oradata/emrep/redo02.log
    Thu Apr 19 14:30:33 2007
    Private_strands 18 at log switch
    Thread 1 advanced to log sequence 216
    Current log# 3 seq# 216 mem# 0: /u02/ora/gridcontrol10g/oradata/emrep/redo03.log
    Thu Apr 19 15:42:34 2007
    Private_strands 18 at log switch
    Thread 1 advanced to log sequence 217
    Current log# 4 seq# 217 mem# 0: /u02/ora/gridcontrol10g/oradata/emrep/redo04.log
    Thu Apr 19 16:52:05 2007
    LGWR: terminating instance due to error 472
    Instance terminated by LGWR, pid = 26049
    Thu Apr 19 17:27:08 2007
    I have no idea why this happen. is it because DB is ona VM machine?
    I remember one time whe I took a snapshot on VM server, grid control services are down for a moment, 4 minutes, WebCache seemed cleaned, this page is gone, after 3 minutes, it comes back.
    Anyone has the same issue, please share your experience.
    Thanks a lot,
    Hank
    Message was edited by:
    Hank@AHM

  • Update problems, no space left on device (ZTE Open)

    I just received a ZTE Open device in the mail today, and after playing around with it a bit, I noticed that every time I tried to check for system updates, it would show me one 13.xx MB update, which I downloaded, apparently applied, and the phone seemed to restart itself, but then I would be shown the same (??) update available. The phone is without a SIM card, just playing with it connected via Wifi, with the 4GB microSD card installed. Then, this evening, I got an error message, which apparently was recorded on the SD card, a file called recovery.log (contents follow):
    <pre><nowiki>Starting recovery on Fri Aug 23 07:29:21 2013
    framebuffer: fd 4 (320 x 480)
    recovery filesystem table
    =========================
    0 /tmp ramdisk (null) (null) 0
    1 /boot mtd boot (null) 0
    2 /amss mtd amss (null) 0
    3 /appsbl mtd appsbl (null) 0
    4 /mibib mtd mibib (null) 0
    5 /qcsbl mtd qcsbl (null) 0
    6 /oemsbl1 mtd oemsbl1 (null) 0
    7 /oemsbl2 mtd oemsbl2 (null) 0
    8 /splash mtd splash (null) 0
    9 /cache yaffs2 cache (null) 0
    10 /data yaffs2 userdata (null) 0
    11 /misc mtd misc (null) 0
    12 /recovery mtd recovery (null) 0
    13 /sdcard vfat /dev/block/mmcblk0p1 /dev/block/mmcblk0 0
    14 /system yaffs2 system (null) 0
    I:Got arguments from /cache/recovery/command
    mtd: successfully wrote block at 0
    I:Set boot command "boot-recovery"
    Command: "/sbin/recovery"
    ro.secure=1
    ro.allow.mock.location=0
    ro.debuggable=0
    ro.build.id=IMM76D
    ro.build.display.id=OPEN_US_DEV_FFOS_V1.0.0B01
    ro.build.version.incremental=eng..20130724.030603
    ro.build.version.sdk=15
    ro.build.version.codename=REL
    ro.build.version.release=4.0.4
    ro.build.sw_internal_version=US_DEV_FFOS_V1.0.0B01
    ro.build.baseband_version=P752D04B02
    ro.build.firmware_revision=V1.01.00.01.019.144
    ro.build.date=2013年 07月 24日 星期三 03:06:47 CST
    ro.build.date.utc=1374606407
    ro.build.type=user
    ro.build.user=
    ro.build.host=ThinkCentre2-XXXX
    ro.build.tags=test-keys
    ro.product.model=roamer2
    ro.product.external_model=ZTE OPEN
    ro.product.brand=ZTE
    ro.product.name=roamer2
    ro.product.device=roamer2
    ro.product.board=roamer2
    ro.product.cpu.abi=armeabi-v7a
    ro.product.cpu.abi2=armeabi
    ro.product.manufacturer=ZTE
    ro.product.locale.language=en
    ro.product.locale.region=US
    ro.wifi.channels=
    ro.board.platform=msm7627a
    ro.build.product=roamer2
    ro.build.description=roamer2-user 4.0.4 IMM76D eng..20130724.030603 test-keys
    ro.build.fingerprint=ZTE/roamer2/roamer2:4.0.4/IMM76D/eng..20130724.030603:user/test-keys
    ro.build.characteristics=default
    rild.libpath=/system/lib/libril-qc-1.so
    rild.libargs=-d /dev/smd0
    persist.rild.nitz_plmn=
    persist.rild.nitz_long_ons_0=
    persist.rild.nitz_long_ons_1=
    persist.rild.nitz_long_ons_2=
    persist.rild.nitz_long_ons_3=
    persist.rild.nitz_short_ons_0=
    persist.rild.nitz_short_ons_1=
    persist.rild.nitz_short_ons_2=
    persist.rild.nitz_short_ons_3=
    ril.subscription.types=NV,RUIM
    DEVICE_PROVISIONED=1
    debug.sf.hw=1
    debug.composition.7x27A.type=mdp
    debug.composition.7x25A.type=mdp
    dalvik.vm.heapsize=128m
    persist.cne.UseCne=none
    persist.cne.bat.range.low.med=30
    persist.cne.bat.range.med.high=60
    persist.cne.loc.policy.op=/system/etc/OperatorPolicy.xml
    persist.cne.loc.policy.user=/system/etc/UserPolicy.xml
    persist.cne.bwbased.rat.sel=false
    persist.cne.snsr.based.rat.mgt=false
    persist.cne.bat.based.rat.mgt=false
    persist.cne.rat.acq.time.out=30000
    persist.cne.rat.acq.retry.tout=0
    persist.cne.fmc.mode=false
    persist.cne.fmc.init.time.out=30
    persist.cne.fmc.comm.time.out=130
    persist.cne.fmc.retry=false
    media.stagefright.enable-player=true
    media.stagefright.enable-meta=false
    media.stagefright.enable-scan=true
    media.stagefright.enable-http=true
    media.stagefright.enable-fma2dp=true
    media.stagefright.enable-aac=true
    media.stagefright.enable-qcp=true
    ro.opengles.version=131072
    ro.use_data_netmgrd=true
    persist.data.ds_fmc_app.mode=0
    persist.ims.regmanager.mode=0
    ro.bluetooth.request.master=true
    ro.qualcomm.bluetooth.sap=false
    ro.bluetooth.remote.autoconnect=true
    persist.sys.strictmode.visual=false
    persist.omh.enabled=1
    ro.config.ehrpd=true
    ro.qualcomm.cabl=1
    ro.fm.analogpath.supported=true
    ro.fm.transmitter=false
    ro.fm.mulinst.recording.support=false
    ro.hw_plat=7x27a
    ro.emmc.sdcard.partition=18
    ro.screen.layout=normal
    debug.enabletr=false
    debug.camcorder.disablemeta=0
    persist.fuse_sdcard=false
    debug.camera.landscape=true
    ro.max.fling_velocity=4000
    hwui.render_dirty_regions=false
    httplive.enable.discontinuity=true
    power.webview.DM=false
    dalvik.vm.heapstartsize=5m
    dalvik.vm.heapgrowthlimit=36m
    org.bluez.device.conn.type=boolean
    keyguard.no_require_sim=true
    ro.com.android.dataroaming=false
    ro.com.android.dateformat=MM-dd-yyyy
    ro.config.ringtone=Ring_Synth_04.ogg
    ro.config.notification_sound=pixiedust.ogg
    ro.config.alarm_alert=Alarm_Classic.ogg
    ro.vendor.extension_library=/system/lib/libqc-opt.so
    ro.display.colorfill=1
    ro.moz.ril.emergency_by_default=true
    ro.moz.omx.hw.max_width=640
    ro.moz.omx.hw.max_height=480
    ro.moz.cam.0.sensor_offset=270
    ro.moz.ril.simstate_extra_field=true
    persist.sys.ztelog.enable=1
    persist.radio.add_power_save=1
    ro.sensor.arch.type=new
    net.bt.name=Android
    net.change=net.bt.name
    dalvik.vm.stack-trace-file=/data/anr/traces.txt
    ro.factorytest=0
    ro.serialno=ROAMER2
    ro.bootmode=unknown
    ro.baseband=msm
    ro.carrier=unknown
    ro.bootloader=unknown
    ro.hardware=roamer2
    ro.revision=0
    ro.emmc=0
    init.svc.recovery=running
    E:Error in /cache/recovery/log
    (No space left on device)
    E:Error in /cache/recovery/last_log
    (No space left on device)
    mtd: successfully wrote block at 0
    I:Set boot command ""
    E:Error in /cache/recovery/log
    (No space left on device)
    E:Error in /cache/recovery/last_log
    (No space left on device)</nowiki></pre>
    The SD card also contains a zip file in updates/fota/update.zip, which in turn contains patch/system/P752D04_DEV_US_20130726.zip, which contains: amss.mbn (about 20 meg) and boot.img (about 4 meg).

    Just jumping in here, I received mine on the 23rd and I am also seeing the same problem, but the logs are a bit different. Although, I am running OPEN_US_DEV_FFOS_V1.0.0'''B02'''. While the recovery log states B01.
    I'll toss my log up as well so trends can be examined.
    Starting recovery on Sun Aug 25 07:04:10 2013
    framebuffer: fd 4 (320 x 480)
    recovery filesystem table
    =========================
    0 /tmp ramdisk (null) (null) 0
    1 /boot mtd boot (null) 0
    2 /amss mtd amss (null) 0
    3 /appsbl mtd appsbl (null) 0
    4 /mibib mtd mibib (null) 0
    5 /qcsbl mtd qcsbl (null) 0
    6 /oemsbl1 mtd oemsbl1 (null) 0
    7 /oemsbl2 mtd oemsbl2 (null) 0
    8 /splash mtd splash (null) 0
    9 /cache yaffs2 cache (null) 0
    10 /data yaffs2 userdata (null) 0
    11 /misc mtd misc (null) 0
    12 /recovery mtd recovery (null) 0
    13 /sdcard vfat /dev/block/mmcblk0p1 /dev/block/mmcblk0 0
    14 /system yaffs2 system (null) 0
    I:Got arguments from /cache/recovery/command
    mtd: successfully wrote block at 0
    I:Set boot command "boot-recovery"
    Command: "/sbin/recovery" "--update_package=/sdcard/updates/fota/update.zip"
    ro.secure=1
    ro.allow.mock.location=0
    ro.debuggable=0
    ro.build.id=IMM76D
    ro.build.display.id=OPEN_US_DEV_FFOS_V1.0.0B01
    ro.build.version.incremental=eng..20130724.030603
    ro.build.version.sdk=15
    ro.build.version.codename=REL
    ro.build.version.release=4.0.4
    ro.build.sw_internal_version=US_DEV_FFOS_V1.0.0B01
    ro.build.baseband_version=P752D04B02
    ro.build.firmware_revision=V1.01.00.01.019.144
    ro.build.date=2013年 07月 24日 星期三 03:06:47 CST
    ro.build.date.utc=1374606407
    ro.build.type=user
    ro.build.user=
    ro.build.host=ThinkCentre2-XXXX
    ro.build.tags=test-keys
    ro.product.model=roamer2
    ro.product.external_model=ZTE OPEN
    ro.product.brand=ZTE
    ro.product.name=roamer2
    ro.product.device=roamer2
    ro.product.board=roamer2
    ro.product.cpu.abi=armeabi-v7a
    ro.product.cpu.abi2=armeabi
    ro.product.manufacturer=ZTE
    ro.product.locale.language=en
    ro.product.locale.region=US
    ro.wifi.channels=
    ro.board.platform=msm7627a
    ro.build.product=roamer2
    ro.build.description=roamer2-user 4.0.4 IMM76D eng..20130724.030603 test-keys
    ro.build.fingerprint=ZTE/roamer2/roamer2:4.0.4/IMM76D/eng..20130724.030603:user/test-keys
    ro.build.characteristics=default
    rild.libpath=/system/lib/libril-qc-1.so
    rild.libargs=-d /dev/smd0
    persist.rild.nitz_plmn=
    persist.rild.nitz_long_ons_0=
    persist.rild.nitz_long_ons_1=
    persist.rild.nitz_long_ons_2=
    persist.rild.nitz_long_ons_3=
    persist.rild.nitz_short_ons_0=
    persist.rild.nitz_short_ons_1=
    persist.rild.nitz_short_ons_2=
    persist.rild.nitz_short_ons_3=
    ril.subscription.types=NV,RUIM
    DEVICE_PROVISIONED=1
    debug.sf.hw=1
    debug.composition.7x27A.type=mdp
    debug.composition.7x25A.type=mdp
    dalvik.vm.heapsize=128m
    persist.cne.UseCne=none
    persist.cne.bat.range.low.med=30
    persist.cne.bat.range.med.high=60
    persist.cne.loc.policy.op=/system/etc/OperatorPolicy.xml
    persist.cne.loc.policy.user=/system/etc/UserPolicy.xml
    persist.cne.bwbased.rat.sel=false
    persist.cne.snsr.based.rat.mgt=false
    persist.cne.bat.based.rat.mgt=false
    persist.cne.rat.acq.time.out=30000
    persist.cne.rat.acq.retry.tout=0
    persist.cne.fmc.mode=false
    persist.cne.fmc.init.time.out=30
    persist.cne.fmc.comm.time.out=130
    persist.cne.fmc.retry=false
    media.stagefright.enable-player=true
    media.stagefright.enable-meta=false
    media.stagefright.enable-scan=true
    media.stagefright.enable-http=true
    media.stagefright.enable-fma2dp=true
    media.stagefright.enable-aac=true
    media.stagefright.enable-qcp=true
    ro.opengles.version=131072
    ro.use_data_netmgrd=true
    persist.data.ds_fmc_app.mode=0
    persist.ims.regmanager.mode=0
    ro.bluetooth.request.master=true
    ro.qualcomm.bluetooth.sap=false
    ro.bluetooth.remote.autoconnect=true
    persist.sys.strictmode.visual=false
    persist.omh.enabled=1
    ro.config.ehrpd=true
    ro.qualcomm.cabl=1
    ro.fm.analogpath.supported=true
    ro.fm.transmitter=false
    ro.fm.mulinst.recording.support=false
    ro.hw_plat=7x27a
    ro.emmc.sdcard.partition=18
    ro.screen.layout=normal
    debug.enabletr=false
    debug.camcorder.disablemeta=0
    persist.fuse_sdcard=false
    debug.camera.landscape=true
    ro.max.fling_velocity=4000
    hwui.render_dirty_regions=false
    httplive.enable.discontinuity=true
    power.webview.DM=false
    dalvik.vm.heapstartsize=5m
    dalvik.vm.heapgrowthlimit=36m
    org.bluez.device.conn.type=boolean
    keyguard.no_require_sim=true
    ro.com.android.dataroaming=false
    ro.com.android.dateformat=MM-dd-yyyy
    ro.config.ringtone=Ring_Synth_04.ogg
    ro.config.notification_sound=pixiedust.ogg
    ro.config.alarm_alert=Alarm_Classic.ogg
    ro.vendor.extension_library=/system/lib/libqc-opt.so
    ro.display.colorfill=1
    ro.moz.ril.emergency_by_default=true
    ro.moz.omx.hw.max_width=640
    ro.moz.omx.hw.max_height=480
    ro.moz.cam.0.sensor_offset=270
    ro.moz.ril.simstate_extra_field=true
    persist.sys.ztelog.enable=1
    persist.radio.add_power_save=1
    ro.sensor.arch.type=new
    net.bt.name=Android
    net.change=net.bt.name
    dalvik.vm.stack-trace-file=/data/anr/traces.txt
    ro.factorytest=0
    ro.serialno=ROAMER2
    ro.bootmode=unknown
    ro.baseband=msm
    ro.carrier=unknown
    ro.bootloader=unknown
    ro.hardware=roamer2
    ro.revision=0
    ro.emmc=0
    init.svc.recovery=running
    Finding update package...
    I:Update location: /sdcard/updates/fota/update.zip
    Opening update package...
    I:1 key(s) loaded from /res/keys
    Verifying update package...
    I:comment is 1746 bytes; signature 1728 bytes from end
    I:whole-file signature verified against key 0
    I:verify_file returned 0
    Installing update...
    try_update_binary(path(/sdcard/updates/fota/update.zip))
    radio.diff not found
    Verifying current system...Failed to mount /dev/block/mtdblock4 on /cache: Device or resource busy
    mtd mount of cache failed: Device or resource busy
    51191808 bytes free on /cache (5714 needed)
    applying patch to /system/build.prop
    "/system/build.prop" is already target; no patch needed
    Removing unneeded files...
    Patching system files...
    Symlinks and permissions...
    script result was [/system]

  • Oracle DB offline after server reboot / hardware failure

    Hi,
    We have a server that crashed due to hardware failure and although brought back up OK Oracle DB's are no longer mounting. I am not a DBA but it looks bad to me and it seems there are no backups. Can anyone suggest a course of action? This is Oracle 11G XE running on Centos 6. I have put as much detail in as I can and could really do with some advice.
    [root@627963 trace]# sqlplus /nolog
    SQL*Plus: Release 11.2.0.2.0 Production on Thu Sep 12 23:18:26 2013
    Copyright (c) 1982, 2011, Oracle.  All rights reserved.
    SQL> connect sys as sysdba;
    Enter password:
    Connected to an idle instance.
    SQL> startup
    ORACLE instance started.
    Total System Global Area 1068937216 bytes
    Fixed Size                  2233344 bytes
    Variable Size             893389824 bytes
    Database Buffers          167772160 bytes
    Redo Buffers                5541888 bytes
    Database mounted.
    ORA-03113: end-of-file on communication channel
    Process ID: 10571
    Session ID: 62 Serial number: 3
    SQL> startup /nomount
    SP2-0714: invalid combination of STARTUP options
    SQL> startup nomount
    ORA-24324: service handle not initialized
    ORA-01041: internal error. hostdef extension doesn't exist
    SQL>
    Alert_XE.log:
    Thu Sep 12 21:26:18 2013
    Starting ORACLE instance (normal)
    LICENSE_MAX_SESSION = 0
    LICENSE_SESSIONS_WARNING = 0
    Picked latch-free SCN scheme 3
    Using LOG_ARCHIVE_DEST_1 parameter default value as USE_DB_RECOVERY_FILE_DEST
    Autotune of undo retention is turned on.
    IMODE=BR
    ILAT =19
    LICENSE_MAX_USERS = 0
    SYS auditing is disabled
    Starting up:
    Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production.
    Using parameter settings in server-side spfile /u01/app/oracle/product/11.2.0/xe/dbs/spfileXE.ora
    System parameters with non-default values:
      sessions                 = 180
      memory_target            = 1G
      control_files            = "/u01/app/oracle/oradata/XE/control.dbf"
      compatible               = "11.2.0.0.0"
      db_recovery_file_dest    = "/u01/app/oracle/fast_recovery_area"
      db_recovery_file_dest_size= 20G
      undo_management          = "AUTO"
      undo_tablespace          = "UNDOTBS1"
      remote_login_passwordfile= "EXCLUSIVE"
      dispatchers              = "(PROTOCOL=TCP) (SERVICE=XEXDB)"
      shared_servers           = 4
      job_queue_processes      = 4
      audit_file_dest          = "/u01/app/oracle/admin/XE/adump"
      db_name                  = "XE"
      open_cursors             = 300
      diagnostic_dest          = "/u01/app/oracle"
    Thu Sep 12 21:26:20 2013
    PMON started with pid=2, OS id=21388
    Thu Sep 12 21:26:20 2013
    "alert_XE.log" 342L, 17231C
    Thu Sep 12 21:26:20 2013
    PSP0 started with pid=3, OS id=21390
    Thu Sep 12 21:26:21 2013
    VKTM started with pid=4, OS id=21392
    VKTM running at (100ms) precision
    Thu Sep 12 21:26:21 2013
    GEN0 started with pid=5, OS id=21396
    Thu Sep 12 21:26:21 2013
    DIAG started with pid=6, OS id=21398
    Thu Sep 12 21:26:21 2013
    DBRM started with pid=7, OS id=21400
    Thu Sep 12 21:26:21 2013
    DIA0 started with pid=8, OS id=21402
    Thu Sep 12 21:26:21 2013
    MMAN started with pid=9, OS id=21404
    Thu Sep 12 21:26:21 2013
    DBW0 started with pid=10, OS id=21406
    Thu Sep 12 21:26:21 2013
    DBW1 started with pid=11, OS id=21408
    Thu Sep 12 21:26:21 2013
    DBW2 started with pid=12, OS id=21410
    Thu Sep 12 21:26:21 2013
    LGWR started with pid=13, OS id=21412
    Thu Sep 12 21:26:21 2013
    CKPT started with pid=14, OS id=21414
    Thu Sep 12 21:26:21 2013
    SMON started with pid=15, OS id=21416
    Thu Sep 12 21:26:21 2013
    RECO started with pid=16, OS id=21418
    Thu Sep 12 21:26:21 2013
    RECO started with pid=16, OS id=21418
    Thu Sep 12 21:26:21 2013
    MMON started with pid=17, OS id=21420
    starting up 1 dispatcher(s) for network address '(ADDRESS=(PARTIAL=YES)(PROTOCOL=TCP))'...
    Thu Sep 12 21:26:21 2013
    MMNL started with pid=18, OS id=21422
    starting up 4 shared server(s) ...
    ORACLE_BASE not set in environment. It is recommended
    that ORACLE_BASE be set in the environment
    Reusing ORACLE_BASE from an earlier startup = /u01/app/oracle
    Thu Sep 12 21:26:21 2013
    ALTER DATABASE   MOUNT
    Thu Sep 12 21:26:24 2013
    Sweep [inc][21794]: completed
    Sweep [inc][21793]: completed
    Sweep [inc2][21794]: completed
    Successful mount of redo thread 1, with mount id 2707110077
    Database mounted in Exclusive Mode
    Lost write protection disabled
    Completed: ALTER DATABASE   MOUNT
    Thu Sep 12 21:26:25 2013
    ALTER DATABASE OPEN
    Beginning crash recovery of 1 threads
    Started redo scan
    Completed redo scan
    read 93 KB redo, 34 data blocks need recovery
    Started redo application at
    Thread 1: logseq 241, block 21190
    Recovery of Online Redo Log: Thread 1 Group 1 Seq 241 Reading mem 0
      Mem# 0: /u01/app/oracle/fast_recovery_area/XE/onlinelog/o1_mf_1_8kxhwjco_.log
    Exception [type: SIGBUS, Non-existent physical address] [ADDR:0x76FFFFF8] [PC:0x319A88A1B8, _wordcopy_bwd_dest_aligned()+280] [flags: 0x0, count: 1]
    Errors in file /u01/app/oracle/diag/rdbms/xe/XE/trace/XE_ora_21440.trc  (incident=22593):
    ORA-07445: exception encountered: core dump [_wordcopy_bwd_dest_aligned()+280] [SIGBUS] [ADDR:0x76FFFFF8] [PC:0x319A88A1B8] [Non-existent physical address] []
    Incident details in: /u01/app/oracle/diag/rdbms/xe/XE/incident/incdir_22593/XE_ora_21440_i22593.trc
    Use ADRCI or Support Workbench to package the incident.
    See Note 411.1 at My Oracle Support for error and packaging details.
    Exception [type: SIGSEGV, Address not mapped to object] [ADDR:0x7C7FD5E7FFEC] [PC:0x444FE70, kcbs_dump_adv_state()+946] [flags: 0x0, count: 2]
    Errors in file /u01/app/oracle/diag/rdbms/xe/XE/trace/XE_ora_21440.trc  (incident=22594):
    ORA-07445: exception encountered: core dump [kcbs_dump_adv_state()+946] [SIGSEGV] [ADDR:0x7C7FD5E7FFEC] [PC:0x444FE70] [Address not mapped to object] []
    ORA-07445: exception encountered: core dump [_wordcopy_bwd_dest_aligned()+280] [SIGBUS] [ADDR:0x76FFFFF8] [PC:0x319A88A1B8] [Non-existent physical address] []
    Incident details in: /u01/app/oracle/diag/rdbms/xe/XE/incident/incdir_22594/XE_ora_21440_i22594.trc
    Use ADRCI or Support Workbench to package the incident.
    See Note 411.1 at My Oracle Support for error and packaging details.
    Dumping diagnostic data in directory=[cdmp_20130912212627], requested by (instance=1, osid=21440), summary=[incident=22593].
    Errors in file /u01/app/oracle/diag/rdbms/xe/XE/incident/incdir_22593/XE_ora_21440_i22593.trc:
    ORA-00607: Internal error occurred while making a change to a data block
    ORA-00602: internal programming exception
    ORA-07445: exception encountered: core dump [kcbs_dump_adv_state()+946] [SIGSEGV] [ADDR:0x7C7FD5E7FFEC] [PC:0x444FE70] [Address not mapped to object] []
    ORA-07445: exception encountered: core dump [_wordcopy_bwd_dest_aligned()+280] [SIGBUS] [ADDR:0x76FFFFF8] [PC:0x319A88A1B8] [Non-existent physical address] []
    PMON (ospid: 21388): terminating the instance due to error 397
    System state dump requested by (instance=1, osid=21388 (PMON)), summary=[abnormal instance termination].
    System State dumped to trace file /u01/app/oracle/diag/rdbms/xe/XE/trace/XE_diag_21398.trc
    Dumping diagnostic data in directory=[cdmp_20130912212628], requested by (instance=1, osid=21388 (PMON)), summary=[abnormal instance termination].
    Instance terminated by PMON, pid = 21388
    Thu Sep 12 21:39:03 2013
    Starting ORACLE instance (normal)
    LICENSE_MAX_SESSION = 0
    LICENSE_SESSIONS_WARNING = 0
    Picked latch-free SCN scheme 3
    Using LOG_ARCHIVE_DEST_1 parameter default value as USE_DB_RECOVERY_FILE_DEST
    Autotune of undo retention is turned on.
    IMODE=BR
    ILAT =19
    LICENSE_MAX_USERS = 0
    SYS auditing is disabled
    Starting up:
    Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production.
    Using parameter settings in server-side spfile /u01/app/oracle/product/11.2.0/xe/dbs/spfileXE.ora
    System parameters with non-default values:
      sessions                 = 180
      memory_target            = 1G
      control_files            = "/u01/app/oracle/oradata/XE/control.dbf"
      compatible               = "11.2.0.0.0"
      db_recovery_file_dest    = "/u01/app/oracle/fast_recovery_area"
      db_recovery_file_dest_size= 20G
      undo_management          = "AUTO"
      undo_tablespace          = "UNDOTBS1"
      remote_login_passwordfile= "EXCLUSIVE"
      dispatchers              = "(PROTOCOL=TCP) (SERVICE=XEXDB)"
      shared_servers           = 4
      job_queue_processes      = 4
      audit_file_dest          = "/u01/app/oracle/admin/XE/adump"
      db_name                  = "XE"
      open_cursors             = 300
      diagnostic_dest          = "/u01/app/oracle"
    Thu Sep 12 21:39:05 2013
    PMON started with pid=2, OS id=2483
    Thu Sep 12 21:39:05 2013
    PSP0 started with pid=3, OS id=2489
    Thu Sep 12 21:39:06 2013
    VKTM started with pid=4, OS id=2546
    VKTM running at (100ms) precision
    Thu Sep 12 21:39:06 2013
    GEN0 started with pid=5, OS id=2550
    Thu Sep 12 21:39:06 2013
    DIAG started with pid=6, OS id=2552
    Thu Sep 12 21:39:06 2013
    DBRM started with pid=7, OS id=2554
    Thu Sep 12 21:39:06 2013
    DIA0 started with pid=8, OS id=2556
    And the tracefile:
    Trace file /u01/app/oracle/diag/rdbms/xe/XE/trace/XE_ora_21440.trc
    Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production
    ORACLE_HOME = /u01/app/oracle/product/11.2.0/xe
    System name:    Linux
    Node name:      <blah>
    Release:        2.6.32-358.14.1.el6.x86_64
    Version:        #1 SMP Tue Jul 16 23:51:20 UTC 2013
    Machine:        x86_64
    Instance name: XE
    Redo thread mounted by this instance: 1
    Oracle process number: 24
    Unix process pid: 21440, image: <blah>(TNS V1-V3)
    *** 2013-09-12 21:26:25.858
    *** SESSION ID:(62.3) 2013-09-12 21:26:25.858
    *** CLIENT ID:() 2013-09-12 21:26:25.858
    *** SERVICE NAME:() 2013-09-12 21:26:25.858
    *** MODULE NAME:(<Blah> (TNS V1-V3)) 2013-09-12 21:26:25.858
    *** ACTION NAME:() 2013-09-12 21:26:25.858
    Thread 1 checkpoint: logseq 241, block 2, scn 8960531
      cache-low rba: logseq 241, block 21190
        on-disk rba: logseq 241, block 21377, scn 8979221
      start recovery at logseq 241, block 21190, scn 0
    *** 2013-09-12 21:26:25.869
    Started writing zeroblks thread 1 seq 241 blocks 21377-21384
    *** 2013-09-12 21:26:25.870
    Completed writing zeroblks thread 1 seq 241
    ==== Redo read statistics for thread 1 ====
    Total physical reads (from disk and memory): 4096Kb
    -- Redo read_disk statistics --
    Read rate (ASYNC): 93Kb in 0.01s => 9.13 Mb/sec
    Longest record: 2Kb, moves: 0/242 (0%)
    Change moves: 2/26 (7%), moved: 0Mb
    Longest LWN: 8Kb, moves: 0/57 (0%), moved: 0Mb
    Last redo scn: 0x0000.00890313 (8979219)
    ----- Recovery Hash Table Statistics ---------
    Hash table buckets = 262144
    Longest hash chain = 1
    Average hash chain = 34/34 = 1.0
    Max compares per lookup = 1
    Avg compares per lookup = 377/542 = 0.7
    *** 2013-09-12 21:26:25.872
    KCRA: start recovery claims for 34 data blocks
    *** 2013-09-12 21:26:25.873
    KCRA: blocks processed = 34/34, claimed = 34, eliminated = 0
    *** 2013-09-12 21:26:25.874
    Recovery of Online Redo Log: Thread 1 Group 1 Seq 241 Reading mem 0
    *** 2013-09-12 21:26:26.055
    Exception [type: SIGBUS, Non-existent physical address] [ADDR:0x76FFFFF8] [PC:0x319A88A1B8, _wordcopy_bwd_dest_aligned()+280] [flags: 0x0, count: 1]
    Incident 22593 created, dump file: /u01/app/oracle/diag/rdbms/xe/XE/incident/incdir_22593/XE_ora_21440_i22593.trc
    ORA-07445: exception encountered: core dump [_wordcopy_bwd_dest_aligned()+280] [SIGBUS] [ADDR:0x76FFFFF8] [PC:0x319A88A1B8] [Non-existent physical address] []
    Incident 22594 created, dump file: /u01/app/oracle/diag/rdbms/xe/XE/incident/incdir_22594/XE_ora_21440_i22594.trc
    ORA-07445: exception encountered: core dump [kcbs_dump_adv_state()+946] [SIGSEGV] [ADDR:0x7C7FD5E7FFEC] [PC:0x444FE70] [Address not mapped to object] []
    ORA-07445: exception encountered: core dump [_wordcopy_bwd_dest_aligned()+280] [SIGBUS] [ADDR:0x76FFFFF

    Hi Guys,
    I have copied a backup script below that it turns out has been running every night at midnight. Where does this go, how do I know if it has worked and how can I use it to restore?
    #!/bin/sh
    # The script assumes that user can connect using "/ as sysdba" and Flash
    # Recovery Area is enabled.
    # =================
    # Backup procedure
    # =================
    #    For database in NoArchiveLog mode, database is shutdown and an offline
    #    backup is done;
    #    For database in Archive log mode, online backup is done.
    #    During the backup procedure, the script stores flash recovery area
    #    location by saving complete initialization parameter to
    #    ?/dbs/spfile2init.ora file. This will be used during restore operation
    #    to find Flash Recovery Area location. If this file is lost, then user must
    #    enter Flash Recovery Area location during restore operation.
    #    Two backups are maintained in Flash Recovery Area and the corresponding
    #    log files for last two backup job are saved in
    #    $HOME/oxe_backup_current.log and $HOME/oxe_backup_previous.log
    user=`/usr/bin/whoami`
    group=`/usr/bin/groups $user | grep dba`
    if test -z "$group"; then
       if [ -f /usr/bin/zenity ]
       then
            /usr/bin/zenity --error --text="$user must be in the DBA OS group to backup the database."
       elif [ -f /usr/bin/kdialog ]
       then
            /usr/bin/kdialog --error "$user must be in the DBA OS group to backup the database."
       elif [ -f /usr/bin/xterm ]
       then
           echo "Operation failed. $user must be in the DBA OS group to backup the database."
           echo -n "Press any key to exit"
           read userinp
       fi
       exit 0
    fi
    export ORACLE_HOME=/u01/app/oracle/product/11.2.0/xe
    export ORACLE_SID=XE
    export PATH=$ORACLE_HOME/bin:$PATH
    TMPDIR=/tmp
    rman_normlog=${TMPDIR}/rman_normlog$$.log
    #Fix a logfile for current, previous run and spfile2init.ora
    sqlplus /nolog > $rman_normlog << EOF
       connect / as sysdba;
       set echo off;
       set head off;
       set serveroutput on;
       set linesize 515;
       declare
          l1 varchar2(512);
       begin
          l1 := dbms_backup_restore.normalizeFilename('spfile2init.ora');
          dbms_output.put_line('-----------------');
          dbms_output.put_line(l1);
          dbms_output.put_line('-----------------');
       end;
    EOF
    rman_spfile2init=`grep "spfile2init.ora$" $rman_normlog`
    rm -f $rman_normlog
    rman_backup_current=$HOME/oxe_backup_current.log
    rman_backup_prev=$HOME/oxe_backup_previous.log
    #Choose a temporary log for this run
    rman_backup=${TMPDIR}/rman_backup$$.log
    echo XE Backup Log > $rman_backup
    #Check if flash recovery area is enabled
    rman_fra=${TMPDIR}/rman_fra$$.log
    sqlplus /nolog > $rman_fra << EOF
       connect / as sysdba;
       set head off;
       set echo off;
       set trimspool on;
       set linesize 512;
       select '$' || count(*) || '$' from v\$parameter
        where upper(name)='DB_RECOVERY_FILE_DEST'
          and value is not null;
    EOF
    fra=`grep "^$.*$" $rman_fra`
    rm -f $rman_fra
    if [ X$fra = X\$1\$ ]; then
       failed=false;
    else
       failed=true
       errstr="flash recovery area is not enabled"
    fi;
    if [ $failed = 'false' ] ; then
       #Check the mode of database
       rman_log_mode=${TMPDIR}/rman_log_mode$$.log
       sqlplus /nolog > $rman_log_mode << EOF
          connect / as sysdba;
          set head off;
          set echo off;
          set trimspool on;
          set linesize 512;
          select '$' || log_mode || '$' from v\$database;
    EOF
       mode=`grep "^$.*$" $rman_log_mode`
       rm -f $rman_log_mode
       case $mode in
          \$ARCHIVELOG\$)
          echo "Doing online backup of the database."
          rman target / >> $rman_backup << EOF
             set echo on;
             configure retention policy to redundancy 2;
             configure controlfile autobackup format for device type disk clear;
             configure controlfile autobackup on;
             sql "create pfile=''$rman_spfile2init'' from spfile";
             backup as backupset device type disk database;
             configure controlfile autobackup off;
             delete noprompt obsolete;
    EOF
          if [ $? = 0 ]; then
             failed=false;
          else
             failed=true
             errstr="RMAN error: See log for details"
          fi;
          rman target / >> $rman_backup << EOF
             sql 'alter system archive log current';
    EOF
          \$NOARCHIVELOG\$)
          echo "Warning: Log archiving (ARCHIVELOG mode) is currently disabled. If"
          echo "you restore the database from this backup, any transactions that take"
          echo "place between this backup and the next backup will be lost. It is"
          echo "recommended that you enable ARCHIVELOG mode before proceeding so "
          echo "that all transactions can be recovered upon restore. See the section"
          echo "'Enabling ARCHIVELOG Mode...' in the online help for instructions."
          echo "Backup with log archiving disabled will shut down and restart the"
          echo -n "database. Are you sure [Y/N]?"
          gotit=false
          while ! $gotit; do
            read userinp
            if [ "$userinp" = "Y" -o "$userinp" = "y" -o \
                 "$userinp" = "n" -o "$userinp" = "N" ]; then
              gotit=true
            fi
          done
          if [ "$userinp" = "n" -o "$userinp" = "N" ]; then
             rm -f $rman_backup
             exit -1;
          fi
          echo "Backup in progress..."
          rman target / >> $rman_backup << EOF
             set echo on;
             shutdown immediate;
             startup mount;
             configure retention policy to redundancy 2;
             configure controlfile autobackup format for device type disk clear;
             configure controlfile autobackup on;
             sql "create pfile=''$rman_spfile2init'' from spfile";
             backup as backupset device type disk database;
             configure controlfile autobackup off;
             alter database open;
             delete noprompt obsolete;
    EOF
          if [ $? = 0 ]; then
             failed=false;
          else
             failed=true
             errstr="RMAN error: See log for details"
          fi;
          errstr="Unknown database mode $mode"
          failed=true;
       esac;
    fi;
    #Save the error string in the log
    if [ $failed = 'true' ]; then
       echo ${errstr}. >> $rman_backup
    fi;
    #Save the last run as previous
    if [ -f $rman_backup_current ]; then
       mv -f $rman_backup_current $rman_backup_prev
    fi;
    #Save the current run
    mv -f $rman_backup $rman_backup_current
    #Display the result to user
    if [ $failed = 'true' ] ; then
       echo '==================== ERROR ========================='
       echo '             Backup of the database failed          '
       echo '==================== ERROR ========================='
       echo ${errstr}.
       echo Log file is at $rman_backup_current.
    else
       echo Backup of the database succeeded.
       echo Log file is at $rman_backup_current.
    fi
    #Wait for user to press any key
    echo -n "Press ENTER key to exit"
    read userinp

  • Oracle 10G Db Starts-up After Server Reboot, BUT Goes DOWN After Some Time

    Hi All,
    I am really puzzled over this one. I have couple of servers running DB on them and I have used scripts to auto-enable them when server(s) reboot.
    But there is one server where I see this funny behavior.
    The DB comes-up after server reboot.
    I can verify that in the startup logs and some more logs that I created.
    I can see that LISTENER is able to communicate also.
    But after a while, the DB shuts-down....!!
    I have checked all the places I could. I have also tried to see the difference between this server and others (I did not install this one), but can not see any difference.
    Is there anyway to find out (log) what is shutting down the DB??
    Any help will be much appreciated as I am at my wits end.
    Following is snap-shot from my logs:
    Fri Mar 16 20:42:29 EDT 2007
    Running dbstart.
    Done with starting all, let's check status...
    Fri Mar 16 20:42:42 EDT 2007
    LSNRCTL for Solaris: Version 10.2.0.1.0 - Production on 16-MAR-2007 20:42:42
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Solaris: Version 10.2.0.1.0 - Production
    Start Date 16-MAR-2007 00:46:56
    Uptime 0 days 19 hr. 55 min. 46 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /oracle/product/10.2.0/Db_1/network/admin/listener.ora
    Listener Log File /oracle/product/10.2.0/Db_1/network/log/listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.103.253.50)(PORT=1521)))
    Services Summary...
    Service "orcl" has 2 instance(s).
    Instance "orcl", status UNKNOWN, has 1 handler(s) for this service...
    Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "orclXDB" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "orcl_XPT" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    The command completed successfully
    Current Status:
    # date
    Fri Mar 16 21:30:40 EDT 2007
    # su - oracle -c "lsnrctl status"
    Sun Microsystems Inc. SunOS 5.10 Generic January 2005
    LSNRCTL for Solaris: Version 10.2.0.1.0 - Production on 16-MAR-2007 21:30:53
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
    TNS-12541: TNS:no listener
    TNS-12560: TNS:protocol adapter error
    TNS-00511: No listener
    Solaris Error: 146: Connection refused
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=10.103.253.50)(PORT=1521)))
    TNS-12541: TNS:no listener
    TNS-12560: TNS:protocol adapter error
    TNS-00511: No listener
    Solaris Error: 146: Connection refused

    I was just looking at that.. Thanks for the tip.
    Following is what I see. But not sure what does it tell me?? Please help......
    From alert_orcl.log:
    <snip>
    db_recovery_file_dest_size of 2048 MB is 0.00% used. This is a
    user-specified limit on the amount of space that will be used by this
    database for recovery-related files, and does not reflect the amount of
    space available in the underlying filesystem or ASM diskgroup.
    Fri Mar 16 20:42:41 2007
    Errors in file /oracle/product/10.2.0/Db_1/admin/orcl/udump/orcl_ora_7700.trc:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-12663: Services required by client not available on the server
    ORA-36961: Oracle OLAP is not available.
    ORA-06512: at "SYS.OLAPIHISTORYRETENTION", line 1
    ORA-06512: at line 15
    Fri Mar 16 20:42:42 2007
    Completed: ALTER DATABASE OPEN
    From /oracle/product/10.2.0/Db_1/admin/orcl/udump/orcl_ora_7700.trc
    # cat /oracle/product/10.2.0/Db_1/admin/orcl/udump/orcl_ora_7700.trc
    /oracle/product/10.2.0/Db_1/admin/orcl/udump/orcl_ora_7700.trc
    Oracle Database 10g Release 10.2.0.1.0 - 64bit Production
    ORACLE_HOME = /oracle/product/10.2.0/Db_1
    System name: SunOS
    Node name: gcars0j6
    Release: 5.10
    Version: Generic_118833-24
    Machine: sun4u
    Instance name: orcl
    Redo thread mounted by this instance: 1
    Oracle process number: 15
    Unix process pid: 7700, image: oracle@gcars0j6 (TNS V1-V3)
    *** SERVICE NAME:() 2007-03-16 20:42:37.548
    *** SESSION ID:(159.3) 2007-03-16 20:42:37.548
    Thread 1 checkpoint: logseq 255, block 2, scn 8602014
    cache-low rba: logseq 255, block 3
    on-disk rba: logseq 255, block 767, scn 8602399
    start recovery at logseq 255, block 3, scn 0
    ----- Redo read statistics for thread 1 -----
    Read rate (ASYNC): 382Kb in 0.16s => 2.33 Mb/sec
    Total physical reads: 4096Kb
    Longest record: 3Kb, moves: 0/1066 (0%)
    Change moves: 1/8 (12%), moved: 0Mb
    Longest LWN: 308Kb, moves: 0/29 (0%), moved: 0Mb
    Last redo scn: 0x0000.0083431e (8602398)
    ----- Recovery Hash Table Statistics ---------
    Hash table buckets = 32768
    Longest hash chain = 1
    Average hash chain = 149/149 = 1.0
    Max compares per lookup = 1
    Avg compares per lookup = 1925/2083 = 0.9
    *** 2007-03-16 20:42:37.702
    KCRA: start recovery claims for 149 data blocks
    *** 2007-03-16 20:42:37.705
    KCRA: blocks processed = 149/149, claimed = 149, eliminated = 0
    *** 2007-03-16 20:42:37.706
    Recovery of Online Redo Log: Thread 1 Group 2 Seq 255 Reading mem 0
    ----- Recovery Hash Table Statistics ---------
    Hash table buckets = 32768
    Longest hash chain = 1
    Average hash chain = 149/149 = 1.0
    Max compares per lookup = 1
    Avg compares per lookup = 2054/2074 = 1.0
    Error in executing triggers on database startup
    *** 2007-03-16 20:42:41.963
    ksedmp: internal or fatal error
    ORA-00604: error occurred at recursive SQL level 1
    ORA-12663: Services required by client not available on the server
    ORA-36961: Oracle OLAP is not available.
    ORA-06512: at "SYS.OLAPIHISTORYRETENTION", line 1
    ORA-06512: at line 15

Maybe you are looking for