Alert logs for 100databases

Hi Techies,
we have nearly 100 databases to administrate , as part of our job, need to look alert logs of all the databases.what would be the easiest way to find the last day alert log file( need to navigate the alert log file location of each database and tail -f <Filename 500> to find the alert logs. This process will take time to go thru alert logs of all of our databases.).
I Kindly requesting all you to give the valuable ideas and suggestions.
DB:Oracle 10g (10.2.0.3.0)
OS :Solaris /HP-UX
Count of databases are increasing every 3 months.
Thanks,
Tippu

Hi Tippu/ALL
I am also working on the same type scripts , Where it would fetch the last days (yesterdays)entri from alert_SID.log file and grep -ORA error on that.
But the tricky part is to fetch only yesterdays entry.
For that i am using awk '/BEGIN/,/END/' <filename>
wher it will give you the yesterdays entry.
Take the variable say YESTERDAY and TODAY where it will be the Y'days and T'days date.
But what i am fecing is alert_SID.log has the enrty somethiing like Oct 30 <some time say 15:25:54> 2009
And if your Y'day variable value is something like Oct 29 2009 nad TODAYS is Oct 30 2009.
If you user Y'day=Oct 29 and T'day=Oct 30
then your job will be done....
but the bug is it will fetch the through out year record say if u r ahving 2005,06,07,08,09 entry.
and if you use Y'day=Oct 29 2009 and T'day=Oct 30 2009
it wont give the o/p , because there is a timestamp btn this and which is varaible.
If any way mean if we can skip this "Oct 30 <some time say 15:25:54> 2009" time stamp i.e. hour entry then we can get the girl.
Please input neede

Similar Messages

  • ORA-00205: error in identifying control file, check alert log for more info

    Hi
    I'm creating a database manually,
    I am hitting with the following error :
    SQL> startup mount
    ORACLE instance started.
    Total System Global Area 150667264 bytes
    Fixed Size 1335080 bytes
    Variable Size 92274904 bytes
    Database Buffers 50331648 bytes
    Redo Buffers 6725632 bytes
    ORA-00205: error in identifying control file, check alert log for more info
    Following is the entry in init.ora
    control_files='/u01/oracle/db/oradata/testdb/control01.ctl','/u01/oracle/db/oradata/testdb/control02.ctl'
    and this the owner priviliges of /u01/oracle/db/oradata/testdb directory
    drwxrwx--- 2 oracle dba 4096 Oct 10 12:16 testdb

    Found in $ORACLE_BASE/diag/rdbms/$ORACLE_SID/$ORACLE_SID/trace/alert/log.xml
    ORA-00210: cannot open the specified control fileORA-00202: control file: &apos;/u01/oracle/db/oradata/testdb/control02.ctl&apos;
    ORA-27037: unable to obtain file status
    Linux Error: 2: No such file or directory
    Additional information: 3
    ORA-00210: cannot open the specified control file
    ORA-00202: control file: &apos;/u01/oracle/db/oradata/testdb/control01.ctl&apos;
    ORA-27037: unable to obtain file status
    Linux Error: 2: No such file or directory
    Additional information: 3

  • ORA-00205: error in identifying control file, check alert log for more inf

    Hi All,
    I created my Database on a directory /mydir .The database is created and sucessufyully working then I mounted this directoy to a shared disk on the same /mydir.My database datafile where restored under /mydir .Now When I try to restart my database I m getting
    ORA-00205: error in identifying control file, check alert log for more inf
    I check all my database data files are there including my control files.
    Any idea why this occuring and How to fix it.
    Best Regards.

    user11191992 wrote:
    Hi All,
    I created my Database on a directory /mydir .The database is created and sucessufyully working then I mounted this directoy to a shared disk on the same /mydir.My database datafile where restored under /mydir .Now When I try to restart my database I m getting
    ORA-00205: error in identifying control file, check alert log for more inf
    I check all my database data files are there including my control files.
    Any idea why this occuring and How to fix it.
    Best Regards.Please post the message in the alert-file as stated.
    It can e.g. be that while copying the file permissions have been changed, making the files not readable for the oracle user
    HTH
    FJFranken

  • Error in identifying control file, check alert log for more info

    hi ,
    i have a problem when i try to login to oracle
    i found this messsage
    error
    ora-01033 oracle initialization or shutdown in progressafter i logged on with / as sysdba
    i did the following
    SQL> shutdown immediate;
    ORA-01507: database not mounted
    ORACLE instance shut down.
    SQL> startup mount;
    ORACLE instance started.
    Total System Global Area 293601280 bytes
    Fixed Size 1248600 bytes
    Variable Size 79692456 bytes
    Database Buffers 205520896 bytes
    Redo Buffers 7139328 bytes
    ORA-00205: error in identifying control file, check alert log for more info----------------------------------------------------------------
    O.S = Windows 7 Profissional
    Oracal release= 10 g release 10.2.0.1.0
    the last lines of the alert log file is
    Starting up ORACLE RDBMS Version: 10.2.0.1.0.
    System parameters with non-default values:
    processes = 150
    __shared_pool_size = 71303168
    __large_pool_size = 4194304
    __java_pool_size = 4194304
    __streams_pool_size = 0
    sga_target = 293601280
    control_files = E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\CONTROL01.CTL, E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\CONTROL02.CTL, >E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\CONTROL03.CTL
    db_block_size = 8192
    __db_cache_size = 205520896
    compatible = 10.2.0.1.0
    db_file_multiblock_read_count= 16
    db_recovery_file_dest = e:\oracle\product\10.2.0\db_1/flash_recovery_area
    db_recovery_file_dest_size= 2147483648
    undo_management = AUTO
    undo_tablespace = UNDOTBS1
    remote_login_passwordfile= EXCLUSIVE
    db_domain =
    dispatchers = (PROTOCOL=TCP) (SERVICE=orclXDB)
    job_queue_processes = 10
    audit_file_dest = E:\ORACLE\PRODUCT\10.2.0\DB_1\ADMIN\ORCL\ADUMP
    background_dump_dest = E:\ORACLE\PRODUCT\10.2.0\DB_1\ADMIN\ORCL\BDUMP
    user_dump_dest = E:\ORACLE\PRODUCT\10.2.0\DB_1\ADMIN\ORCL\UDUMP
    core_dump_dest = E:\ORACLE\PRODUCT\10.2.0\DB_1\ADMIN\ORCL\CDUMP
    db_name = orcl
    open_cursors = 15000
    pga_aggregate_target = 96468992
    PMON started with pid=2, OS id=1560
    PSP0 started with pid=3, OS id=208
    MMAN started with pid=4, OS id=972
    DBW0 started with pid=5, OS id=4092
    LGWR started with pid=6, OS id=3812
    CKPT started with pid=7, OS id=344
    SMON started with pid=8, OS id=3492
    RECO started with pid=9, OS id=2272
    CJQ0 started with pid=10, OS id=3276
    MMON started with pid=11, OS id=1832
    MMNL started with pid=12, OS id=1636
    Wed Nov 21 11:44:31 2012
    starting up 1 dispatcher(s) for network address '(ADDRESS=(PARTIAL=YES)(PROTOCOL=TCP))'...
    starting up 1 shared server(s) ...
    Wed Nov 21 11:44:32 2012
    ALTER DATABASE MOUNT
    Wed Nov 21 11:44:32 2012
    ORA-00202: control file: 'E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\CONTROL01.CTL'
    ORA-27041: unable to open file
    OSD-04002: unable to open file
    O/S-Error: (OS 2) can not find the specified file
    Wed Nov 21 11:44:32 2012
    ORA-205 signalled during: ALTER DATABASE MOUNT...Please anyone has any info please share me
    thank you ,
    regards,
    Edited by: ayadsufyan on 21-Nov-2012 01:04
    Edited by: ayadsufyan on 21-Nov-2012 01:30

    ayadsufyan wrote:
    hi ,
    i have a problem when i try to login to oracle
    i found this messsage
    error
    ora-01033 oracle initialization or shutdown in progressafter i logged on with / as sysdba
    i did the following
    SQL> shutdown immediate;
    ORA-01507: database not mounted
    ORACLE instance shut down.
    SQL> startup mount;
    ORACLE instance started.
    Total System Global Area 293601280 bytes
    Fixed Size 1248600 bytes
    Variable Size 79692456 bytes
    Database Buffers 205520896 bytes
    Redo Buffers 7139328 bytes
    ORA-00205: error in identifying control file, check alert log for more info----------------------------------------------------------------
    O.S = Windows 7 Profissional
    Oracal release= 10 g release 10.2.0.1.0
    the last lines of the alert log file is
    Starting up ORACLE RDBMS Version: 10.2.0.1.0.
    System parameters with non-default values:
    processes = 150
    __shared_pool_size = 71303168
    __large_pool_size = 4194304
    __java_pool_size = 4194304
    __streams_pool_size = 0
    sga_target = 293601280
    control_files = E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\CONTROL01.CTL, E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\CONTROL02.CTL, >E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\CONTROL03.CTL
    db_block_size = 8192
    __db_cache_size = 205520896
    compatible = 10.2.0.1.0
    db_file_multiblock_read_count= 16
    db_recovery_file_dest = e:\oracle\product\10.2.0\db_1/flash_recovery_area
    db_recovery_file_dest_size= 2147483648
    undo_management = AUTO
    undo_tablespace = UNDOTBS1
    remote_login_passwordfile= EXCLUSIVE
    db_domain =
    dispatchers = (PROTOCOL=TCP) (SERVICE=orclXDB)
    job_queue_processes = 10
    audit_file_dest = E:\ORACLE\PRODUCT\10.2.0\DB_1\ADMIN\ORCL\ADUMP
    background_dump_dest = E:\ORACLE\PRODUCT\10.2.0\DB_1\ADMIN\ORCL\BDUMP
    user_dump_dest = E:\ORACLE\PRODUCT\10.2.0\DB_1\ADMIN\ORCL\UDUMP
    core_dump_dest = E:\ORACLE\PRODUCT\10.2.0\DB_1\ADMIN\ORCL\CDUMP
    db_name = orcl
    open_cursors = 15000
    pga_aggregate_target = 96468992
    PMON started with pid=2, OS id=1560
    PSP0 started with pid=3, OS id=208
    MMAN started with pid=4, OS id=972
    DBW0 started with pid=5, OS id=4092
    LGWR started with pid=6, OS id=3812
    CKPT started with pid=7, OS id=344
    SMON started with pid=8, OS id=3492
    RECO started with pid=9, OS id=2272
    CJQ0 started with pid=10, OS id=3276
    MMON started with pid=11, OS id=1832
    MMNL started with pid=12, OS id=1636
    Wed Nov 21 11:44:31 2012
    starting up 1 dispatcher(s) for network address '(ADDRESS=(PARTIAL=YES)(PROTOCOL=TCP))'...
    starting up 1 shared server(s) ...
    Wed Nov 21 11:44:32 2012
    ALTER DATABASE MOUNT
    Wed Nov 21 11:44:32 2012
    ORA-00202: control file: 'E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\CONTROL01.CTL'
    ORA-27041: unable to open file
    OSD-04002: unable to open file
    O/S-Error: (OS 2) can not find the specified file
    Wed Nov 21 11:44:32 2012
    ORA-205 signalled during: ALTER DATABASE MOUNT...Please anyone has any info please share me
    thank you ,
    regards,
    Edited by: ayadsufyan on 21-Nov-2012 01:04
    Edited by: ayadsufyan on 21-Nov-2012 01:30I'd say the error message is pretty self-evident:
    ORA-00202: control file: 'E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\CONTROL01.CTL'
    ORA-27041: unable to open file
    OSD-04002: unable to open file
    O/S-Error: (OS 2) can not find the specified fileWhat do you suppose "can not find the specified file" means?
    And what does this have to do with database security?

  • ORA-00205: error in identifying control file, check alert log for more

    I am trying to upgrade database software from 11.2.0.1 to 11.2.0.2 and followed the steps given in the Doc ID 1276368.1 in linux 86 OS environment . I am in step 9 where i need to start up the database in startup upgrade mode. I get the the following error. Please help. This out of box upgrade is quite tricky and my database is stigged version. Not able to trouble shoot further, Please help me to go forward.
    sqlplus " / as sysdba "
    SQL> spool /tmp/upgrade.log
    SQL> startup upgrade
    ORACLE instance started.
    Total System Global Area 1607008256 bytes
    Fixed Size 1344476 bytes
    Variable Size 973081636 bytes
    Database Buffers 620756992 bytes
    Redo Buffers 11825152 bytes
    ORA-00205: error in identifying control file, check alert log for more info
    Do i shutdown and restart again? I need to run @catupgrd.sql; and other.sql to upgrade it and then apply CPU patch.
    Please help...regards

    Fatal NI connect error 12637, connecting to:
    (LOCAL=NO)
    VERSION INFORMATION:
         TNS for Linux: Version 11.2.0.1.0 - Production
         Oracle Bequeath NT Protocol Adapter for Linux: Version 11.2.0.1.0 - Production
         TCP/IP NT Protocol Adapter for Linux: Version 11.2.0.1.0 - Production
    Time: 21-NOV-2011 04:49:04
    Tracing not turned on.
    Tns error struct:
    ns main err code: 12637
    TNS-12637: Packet receive failed
    ns secondary err code: 12532
    nt main err code: 0
    nt secondary err code: 0
    nt OS err code: 0
    opiodr aborting process unknown ospid (3912) as a result of ORA-609
    Mon Nov 21 04:59:02 2011
    Shutting down instance (immediate)
    Stopping background process SMCO
    Shutting down instance: further logons disabled
    Mon Nov 21 04:59:04 2011
    Stopping background process CJQ0
    Stopping background process QMNC
    Stopping background process MMNL
    Stopping background process MMON
    License high water mark = 26
    All dispatchers and shared servers shutdown
    ALTER DATABASE CLOSE NORMAL
    Mon Nov 21 04:59:09 2011
    SMON: disabling tx recovery
    SMON: disabling cache recovery
    Mon Nov 21 04:59:09 2011
    Shutting down archive processes
    Archiving is disabled
    Mon Nov 21 04:59:09 2011
    ARCH shutting down
    Mon Nov 21 04:59:09 2011
    ARCH shutting down
    ARC3: Archival stopped
    ARC1: Archival stopped
    Mon Nov 21 04:59:09 2011
    ARCH shutting down
    ARC0: Archival stopped
    Mon Nov 21 04:59:09 2011
    ARCH shutting down
    ARC2: Archival stopped
    Thread 1 closed at log sequence 1458
    Successful close of redo thread 1
    Mon Nov 21 04:59:51 2011
    Completed: ALTER DATABASE CLOSE NORMAL
    ALTER DATABASE DISMOUNT
    Completed: ALTER DATABASE DISMOUNT
    ARCH: Archival disabled due to shutdown: 1089
    Shutting down archive processes
    Archiving is disabled
    Archive process shutdown avoided: 0 active
    ARCH: Archival disabled due to shutdown: 1089
    Shutting down archive processes
    Archiving is disabled
    Archive process shutdown avoided: 0 active
    Mon Nov 21 04:59:52 2011
    Stopping background process VKTM:
    Mon Nov 21 04:59:56 2011
    Instance shutdown complete
    Mon Nov 21 07:48:43 2011
    Starting ORACLE instance (normal)
    LICENSE_MAX_SESSION = 0
    LICENSE_SESSIONS_WARNING = 0
    Picked latch-free SCN scheme 2
    Using LOG_ARCHIVE_DEST_1 parameter default value as USE_DB_RECOVERY_FILE_DEST
    Autotune of undo retention is turned on.
    IMODE=BR
    ILAT =27
    LICENSE_MAX_USERS = 0
    SYS auditing is enabled
    Starting up:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options.
    Using parameter settings in server-side spfile /u01/app/oracle/product/11.2.0/db_1/dbs/spfilertborcl.ora
    System parameters with non-default values:
    processes = 150
    resource_limit = TRUE
    memory_target = 1536M
    control_files = "/u01/app/oracle/oradata/rtborcl/control01.ctl"
    control_files = "/u02/app/oracle/oradata/control02.ctl"
    db_block_size = 8192
    compatible = "11.2.0.1.0"
    log_archive_format = "%t_%s_%r.dbf"
    db_recovery_file_dest = "/u01/app/oracle/flash_recovery_area"
    db_recovery_file_dest_size= 4977M
    undo_tablespace = "UNDOTBS1"
    recyclebin = "OFF"
    db_securefile = "PERMITTED"
    remote_login_passwordfile= "EXCLUSIVE"
    audit_sys_operations = TRUE
    db_domain = ""
    global_names = TRUE
    dispatchers = "(PROTOCOL=TCP) (SERVICE=rtborclXDB)"
    audit_file_dest = "/u01/app/oracle/admin/rtborcl/adump"
    audit_trail = "DB_EXTENDED"
    db_name = "rtborcl"
    open_cursors = 300
    os_authent_prefix = "SOP$"
    sql92_security = TRUE
    sec_protocol_error_further_action= "drop"
    sec_max_failed_login_attempts= 3
    diagnostic_dest = "/u01/app/oracle"
    Mon Nov 21 07:48:47 2011
    PMON started with pid=2, OS id=4275
    Mon Nov 21 07:48:47 2011
    VKTM started with pid=3, OS id=4280
    VKTM running at (100ms) precision
    Mon Nov 21 07:48:47 2011
    GEN0 started with pid=4, OS id=4287
    Mon Nov 21 07:48:47 2011
    DIAG started with pid=5, OS id=4292
    Mon Nov 21 07:48:47 2011
    DBRM started with pid=6, OS id=4297
    Mon Nov 21 07:48:47 2011
    PSP0 started with pid=7, OS id=4302
    Mon Nov 21 07:48:47 2011
    DIA0 started with pid=8, OS id=4307
    Mon Nov 21 07:48:47 2011
    MMAN started with pid=9, OS id=4312
    Mon Nov 21 07:48:47 2011
    DBW0 started with pid=10, OS id=4317
    Mon Nov 21 07:48:47 2011
    LGWR started with pid=11, OS id=4322
    Mon Nov 21 07:48:48 2011
    CKPT started with pid=12, OS id=4327
    Mon Nov 21 07:48:48 2011
    SMON started with pid=13, OS id=4332
    Mon Nov 21 07:48:48 2011
    RECO started with pid=14, OS id=4337
    Mon Nov 21 07:48:48 2011
    Mon Nov 21 04:59:51 2011
    Completed: ALTER DATABASE CLOSE NORMAL
    ALTER DATABASE DISMOUNT
    Completed: ALTER DATABASE DISMOUNT
    ARCH: Archival disabled due to shutdown: 1089
    Shutting down archive processes
    Archiving is disabled
    Archive process shutdown avoided: 0 active
    ARCH: Archival disabled due to shutdown: 1089
    Shutting down archive processes
    Archiving is disabled
    Archive process shutdown avoided: 0 active
    Mon Nov 21 04:59:52 2011
    Stopping background process VKTM:
    Mon Nov 21 04:59:56 2011
    Instance shutdown complete
    Mon Nov 21 07:48:43 2011
    Starting ORACLE instance (normal)
    LICENSE_MAX_SESSION = 0
    LICENSE_SESSIONS_WARNING = 0
    Picked latch-free SCN scheme 2
    Using LOG_ARCHIVE_DEST_1 parameter default value as USE_DB_RECOVERY_FILE_DEST
    Autotune of undo retention is turned on.
    IMODE=BR
    ILAT =27
    LICENSE_MAX_USERS = 0
    SYS auditing is enabled
    Starting up:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options.
    Using parameter settings in server-side spfile /u01/app/oracle/product/11.2.0/db_1/dbs/spfilertborcl.ora
    System parameters with non-default values:
    processes = 150
    resource_limit = TRUE
    memory_target = 1536M
    control_files = "/u01/app/oracle/oradata/rtborcl/control01.ctl"
    control_files = "/u02/app/oracle/oradata/control02.ctl"
    db_block_size = 8192
    compatible = "11.2.0.1.0"
    log_archive_format = "%t_%s_%r.dbf"
    db_recovery_file_dest = "/u01/app/oracle/flash_recovery_area"
    db_recovery_file_dest_size= 4977M
    undo_tablespace = "UNDOTBS1"
    recyclebin = "OFF"
    db_securefile = "PERMITTED"
    remote_login_passwordfile= "EXCLUSIVE"
    audit_sys_operations = TRUE
    db_domain = ""
    global_names = TRUE
    dispatchers = "(PROTOCOL=TCP) (SERVICE=rtborclXDB)"
    audit_file_dest = "/u01/app/oracle/admin/rtborcl/adump"
    audit_trail = "DB_EXTENDED"
    db_name = "rtborcl"
    open_cursors = 300
    os_authent_prefix = "SOP$"
    sql92_security = TRUE
    sec_protocol_error_further_action= "drop"
    sec_max_failed_login_attempts= 3
    diagnostic_dest = "/u01/app/oracle"
    Mon Nov 21 07:48:47 2011
    PMON started with pid=2, OS id=4275
    Mon Nov 21 07:48:47 2011
    VKTM started with pid=3, OS id=4280
    VKTM running at (100ms) precision
    Mon Nov 21 07:48:47 2011
    GEN0 started with pid=4, OS id=4287
    Mon Nov 21 07:48:47 2011
    DIAG started with pid=5, OS id=4292
    Mon Nov 21 07:48:47 2011
    DBRM started with pid=6, OS id=4297
    Mon Nov 21 07:48:47 2011
    PSP0 started with pid=7, OS id=4302
    Mon Nov 21 07:48:47 2011
    DIA0 started with pid=8, OS id=4307
    Mon Nov 21 07:48:47 2011
    MMAN started with pid=9, OS id=4312
    Mon Nov 21 07:48:47 2011
    DBW0 started with pid=10, OS id=4317
    Mon Nov 21 07:48:47 2011
    LGWR started with pid=11, OS id=4322
    Mon Nov 21 07:48:48 2011
    CKPT started with pid=12, OS id=4327
    Mon Nov 21 07:48:48 2011
    SMON started with pid=13, OS id=4332
    Mon Nov 21 07:48:48 2011
    RECO started with pid=14, OS id=4337
    Mon Nov 21 07:48:48 2011
    MMON started with pid=15, OS id=4342
    starting up 1 dispatcher(s) for network address '(ADDRESS=(PARTIAL=YES)(PROTOCOL=TCP))'...
    Mon C:\Users\MVEMURI 07:48:48 2011
    MMNL started with pid=16, OS id=4347
    starting up 1 shared server(s) ...
    ORACLE_BASE from environment = /u01/app/oracle
    Mon Nov 21 07:48:49 2011
    ALTER DATABASE MOUNT
    Successful mount of redo thread 1, with mount id 2616737889
    Database mounted in Exclusive Mode
    Lost write protection disabled
    Completed: ALTER DATABASE MOUNT
    Mon Nov 21 07:48:54 2011
    ALTER DATABASE OPEN
    LGWR: STARTING ARCH PROCESSES
    Mon Nov 21 07:48:54 2011
    ARC0 started with pid=20, OS id=4398
    ARC0: Archival started
    LGWR: STARTING ARCH PROCESSES COMPLETE
    ARC0: STARTING ARCH PROCESSES
    Mon Nov 21 07:48:55 2011
    ARC1 started with pid=21, OS id=4403
    Mon Nov 21 07:48:55 2011
    ARC2 started with pid=22, OS id=4408
    ARC1: Archival started
    ARC2: Archival started
    ARC2: Becoming the 'no FAL' ARCH
    ARC2: Becoming the 'no SRL' ARCH
    Mon Nov 21 07:48:55 2011
    ARC3 started with pid=23, OS id=4413
    ARC1: Becoming the heartbeat ARCH
    Thread 1 opened at log sequence 1458
    Current log# 3 seq# 1458 mem# 0: /u01/app/oracle/oradata/rtborcl/redo03.log
    Current log# 3 seq# 1458 mem# 1: /u02/app/oracle/oradata/redo03b.log
    Successful open of redo thread 1
    MTTR advisory is disabled because FAST_START_MTTR_TARGET is not set
    SMON: enabling cache recovery
    ARC3: Archival started
    ARC0: STARTING ARCH PROCESSES COMPLETE
    Successfully onlined Undo Tablespace 2.
    Undo initialization finished serial:0 start:977954 end:979234 diff:1280
    Verifying file header compatibility for 11g tablespace encryption..
    Verifying 11g file header compatibility for tablespace encryption completed
    Mon Nov 21 07:48:58 2011
    SMON: enabling tx recovery
    Database Characterset is WE8MSWIN1252
    No Resource Manager plan active
    replication_dependency_tracking turned off (no async multimaster replication found)
    Starting background process QMNC
    Mon Nov 21 07:49:03 2011
    QMNC started with pid=24, OS id=4418
    Mon Nov 21 07:49:10 2011
    db_recovery_file_dest_size of 4977 MB is 13.68% 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.
    Mon Nov 21 07:49:12 2011
    Completed: ALTER DATABASE OPEN
    Mon Nov 21 07:49:12 2011
    Starting background process CJQ0
    Mon Nov 21 07:49:12 2011
    CJQ0 started with pid=25, OS id=4470
    Mon Nov 21 07:54:05 2011
    Starting background process SMCO
    Mon Nov 21 07:54:05 2011
    SMCO started with pid=26, OS id=4515
    Mon Nov 21 10:08:01 2011
    ALTER SYSTEM ARCHIVE LOG
    Mon Nov 21 10:08:01 2011
    Thread 1 advanced to log sequence 1459 (LGWR switch)
    Current log# 1 seq# 1459 mem# 0: /u01/app/oracle/oradata/rtborcl/redo01.log
    Current log# 1 seq# 1459 mem# 1: /u02/app/oracle/oradata/redo01b.log
    Mon Nov 21 10:08:04 2011
    Archived Log entry 1421 added for thread 1 sequence 1458 ID 0x990b1f4c dest 1:
    Mon Nov 21 10:12:53 2011
    ALTER SYSTEM ARCHIVE LOG
    Mon Nov 21 10:12:53 2011
    Thread 1 advanced to log sequence 1460 (LGWR switch)
    Current log# 2 seq# 1460 mem# 0: /u01/app/oracle/oradata/rtborcl/redo02.log
    Current log# 2 seq# 1460 mem# 1: /u02/app/oracle/oradata/redo02b.log
    Mon Nov 21 10:12:53 2011
    Archived Log entry 1422 added for thread 1 sequence 1459 ID 0x990b1f4c dest 1:
    Mon Nov 21 10:14:44 2011
    Shutting down instance (immediate)
    Stopping background process SMCO
    Shutting down instance: further logons disabled
    Mon Nov 21 10:14:45 2011
    Stopping background process CJQ0
    Stopping background process QMNC
    Stopping background process MMNL
    Stopping background process MMON
    License high water mark = 4
    All dispatchers and shared servers shutdown
    ALTER DATABASE CLOSE NORMAL
    Mon Nov 21 10:14:49 2011
    SMON: disabling tx recovery
    SMON: disabling cache recovery
    Mon Nov 21 10:14:54 2011
    Shutting down archive processes
    Archiving is disabled
    Mon Nov 21 10:14:54 2011
    ARCH shutting down
    ARC3: Archival stopped
    Mon Nov 21 10:14:54 2011
    ARCH shutting down
    ARC0: Archival stopped
    Mon Nov 21 10:14:54 2011
    ARCH shutting down
    ARC2: Archival stopped
    Mon Nov 21 10:14:54 2011
    ARCH shutting down
    ARC1: Archival stopped
    Thread 1 closed at log sequence 1460
    Successful close of redo thread 1
    Mon Nov 21 10:15:01 2011
    Completed: ALTER DATABASE CLOSE NORMAL
    ALTER DATABASE DISMOUNT
    Completed: ALTER DATABASE DISMOUNT
    ARCH: Archival disabled due to shutdown: 1089
    Shutting down archive processes
    Archiving is disabled
    Archive process shutdown avoided: 0 active
    ARCH: Archival disabled due to shutdown: 1089
    Shutting down archive processes
    Archiving is disabled
    Archive process shutdown avoided: 0 active
    Mon Nov 21 10:15:02 2011
    Stopping background process VKTM:
    Mon Nov 21 10:15:08 2011
    Instance shutdown complete
    Mon Nov 21 11:52:11 2011
    Starting ORACLE instance (normal)
    LICENSE_MAX_SESSION = 0
    LICENSE_SESSIONS_WARNING = 0
    Shared memory segment for instance monitoring created
    Picked latch-free SCN scheme 2
    Using LOG_ARCHIVE_DEST_1 parameter default value as USE_DB_RECOVERY_FILE_DEST
    Autotune of undo retention is turned on.
    IMODE=BR
    ILAT =27
    LICENSE_MAX_USERS = 0
    SYS auditing is enabled
    Starting up:
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options.
    Using parameter settings in server-side pfile /u01/app/oracle/product/11.2.0/db_2/dbs/initrtborcl.ora
    System parameters with non-default values:
    processes = 150
    memory_target = 1536M
    control_files = "/u01/app/oracle/oradata/rtborcl/control01.ctl"
    control_files = "/u01/app/oracle/flash_recovery_area/rtborcl/control02.ctl"
    db_block_size = 8192
    compatible = "11.2.0.0.0"
    log_archive_format = "%t_%s_%r.dbf"
    db_recovery_file_dest = "/u01/app/oracle/flash_recovery_area"
    db_recovery_file_dest_size= 4977M
    undo_tablespace = "UNDOTBS1"
    remote_login_passwordfile= "EXCLUSIVE"
    audit_sys_operations = TRUE
    db_domain = ""
    global_names = TRUE
    dispatchers = "(PROTOCOL=TCP) (SERVICE=rtborclXDB)"
    audit_file_dest = "/u01/app/oracle/admin/rtborcl/adump"
    audit_trail = "DB_EXTENDED"
    db_name = "rtborcl"
    open_cursors = 300
    os_authent_prefix = "SOP$"
    sql92_security = TRUE
    sec_protocol_error_further_action= "drop"
    sec_max_failed_login_attempts= 3
    diagnostic_dest = "/u01/app/oracle"
    Create Relation DFW_CONFIG_CAPTURE
    Create Relation DFW_CONFIG_ITEM
    Mon Nov 21 11:52:17 2011
    PMON started with pid=2, OS id=7339
    Mon Nov 21 11:52:17 2011
    PSP0 started with pid=3, OS id=7344
    Mon Nov 21 11:52:18 2011
    VKTM started with pid=4, OS id=7349
    VKTM running at (100ms) precision
    Mon Nov 21 11:52:18 2011
    GEN0 started with pid=5, OS id=7356
    Mon Nov 21 11:52:19 2011
    DIAG started with pid=6, OS id=7361
    Mon Nov 21 11:52:19 2011
    DBRM started with pid=7, OS id=7366
    Mon Nov 21 11:52:19 2011
    DIA0 started with pid=8, OS id=7371
    Mon Nov 21 11:52:19 2011
    MMAN started with pid=9, OS id=7376
    Mon Nov 21 11:52:19 2011
    DBW0 started with pid=10, OS id=7381
    Mon Nov 21 11:52:19 2011
    LGWR started with pid=11, OS id=7386
    Mon Nov 21 11:52:19 2011
    CKPT started with pid=12, OS id=7391
    Mon Nov 21 11:52:19 2011
    SMON started with pid=13, OS id=7396
    Mon Nov 21 11:52:19 2011
    RECO started with pid=14, OS id=7401
    Mon Nov 21 11:52:19 2011
    MMON started with pid=15, OS id=7406
    starting up 1 dispatcher(s) for network address '(ADDRESS=(PARTIAL=YES)(PROTOCOL=TCP))'...
    Mon Nov 21 11:52:19 2011
    MMNL started with pid=16, OS id=7411
    starting up 1 shared server(s) ...
    ORACLE_BASE from environment = /u01/app/oracle
    Mon Nov 21 11:52:20 2011
    ALTER DATABASE MOUNT
    ORA-00210: cannot open the specified control file
    ORA-00202: control file: '/u01/app/oracle/flash_recovery_area/rtborcl/control02.ctl'
    ORA-27037: unable to obtain file status
    Linux Error: 2: No such file or directory
    Additional information: 3
    ORA-205 signalled during: ALTER DATABASE MOUNT...
    Mon Nov 21 11:52:21 2011
    Checker run found 1 new persistent data failures

  • Separate alert log for every day

    Hi,
    Apart from regular alert_SID_.log file, can i configure alert log something like :
    alert_SID_StartDateAndTime_EndDateAndTime.log
    I mean can i configure separate aler log for 12.00 AM to 11.59 PM everyday, because :
    1.It will easy to have separate alert log; so that if i have to send it i can send.
    2.It will record all message in separate file, so that we may know that on which date, what db actions have been performed etc.
    Thanks,

    Satish Kandi wrote:
    You could achieve this with a simple cron job, as indicated by CKPT, to rename the existing alert.log to required format.If you please show an exmple, it will help me to understand it
    >
    On a side note,
    1.It will easy to have separate alert log; so that if i have to send it i can send.Where do you need to send the alert log on daily basis?Sometime if client ask it.
    How will you send the alert log for last one month, if required? Wouldn't that be simpler with just one file?
    Ofcourse, sending one file is easy than many, but many have separate info as well.
    2.It will record all message in separate file, so that we may know that on which date, what db actions have been performed etc.Alert log already has a timestamp included, so I don't see how this will benefit you.
    Still, if there is dbms_separate_alert_log (assumed new feature for Oracle 12g), i think it may be helpful to us.
    Its a general practice to review the alert log on daily basis and keep only the "required" (definition changes per individual) information in the file. Personally, I prefer to have a complete backup of the alert log contents in a separate file and stripped out version of alert log as current one.Currently i am using 10.2.0.1 on windows xp.
    Thanks,

  • ORA-00205: error in identifying controlfile, check alert log for more info

    Hello All,
    I am performing my first Collab Suite install in quite some time and I have successfully installed Collaboration Suite on Linux Red Hat AS 4. I first performed an infrastructure installation for the Collab Suite database which completed with no errors, however, it appears that no control files were created in my $ORACLE_HOME/dbs directory during installation. I am also unable to specify their exact location in the initSID.ora file as I am unable to find them in any other directory on my server. The database starts despite the control file error, as you can see from the second SQL*Plus prompt. However, I am unsure how to create the control files or correct this error. Any assistance would be greatly appreciated!
    SQL*Plus: Release 10.1.0.4.2 - Production on Wed Mar 21 09:51:49 2007
    Copyright (c) 1982, 2005, 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 100663296 bytes
    Fixed Size 778024 bytes
    Variable Size 99623128 bytes
    Database Buffers 0 bytes
    Redo Buffers 262144 bytes
    ORA-00205: error in identifying controlfile, check alert log for more info
    ======================================================================
    SQL*Plus: Release 10.1.0.4.2 - Production on Wed Mar 21 11:18:57 2007
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    SQL> connect SYS as SYSDBA
    Enter password:
    Connected.
    SQL> startup nomount
    ORA-01081: cannot start already-running ORACLE - shut it down first
    SQL> exit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.1.0.4.2 - Production
    With the Partitioning, OLAP and Data Mining options

    Control files are database-specific, since they contain information describing the database (location of data files, etc.) You can't copy them from one database to another.
    Do you have a backup?

  • Dead lock detected in alert log for HTMLDB application

    We have a HTMLDB application newly impletemented in our database. One day, I found a ORA-000060 deadlock detected message in database alert log. Our developer said that the application is only for users to query something and will not insert, update or delete anything. I have created a tar but still not found any problem cause this. Can anyone tell why this occur?
    Thanks in advance,
    Antony
    *** SESSION ID:(289.143) 2005-11-17 10:35:48.976
    DEADLOCK DETECTED
    Current SQL statement for this session:
    DELETE FROM WWV_FLOW_DATA WHERE FLOW_INSTANCE = :B1 AND ITEM_ID IN (SELECT ID FROM WWV_FLOW_PAGE_PLUGS WHERE FLOW_ID = :B3 AND PAGE_ID = :B2 AND PLUG_SOURCE_TYPE IN ( 'SIMPLE_CHART', 'UPDATABLE_SQL_QUERY', 'DBMSSQL_CURSOR', 'FUNCTION_RETURNING_DBMSSQL_CURSOR', 'FUNCTION_RETURNING_SQL_QUERY_CACHED', 'FUNCTION_RETURNING_SQL_QUERY', 'STRUCTURED_QUERY', 'SQL_QUERY'))
    ----- PL/SQL Call Stack -----
    object line object
    handle number name
    7000000bb989300 228 package body FLOWS_020000.WWV_FLOW_DISP_PAGE_PLUGS
    7000000bbc922c8 8961 package body FLOWS_020000.WWV_FLOW
    7000000bbd00000 236 procedure FLOWS_020000.F
    7000000bdf1baa0 8 anonymous block
    The following deadlock is not an ORACLE error. It is a
    deadlock due to user error in the design of an application
    or from issuing incorrect ad-hoc SQL. The following
    information may aid in determining the deadlock:
    Deadlock graph:
    ---------Blocker(s)-------- ---------Waiter(s)---------
    Resource Name process session holds waits process session holds waits
    TX-00050005-00756507 308 289 X 295 276 X
    TX-0002000f-006fc0df 295 276 X 308 289 X
    session 289: DID 0001-0134-00000005     session 276: DID 0001-0127-00000002
    session 276: DID 0001-0127-00000002     session 289: DID 0001-0134-00000005

    Rakesh,
    Please see if (ora-600 [12333] / ora-3137 [12333] Troubleshooting [ID 828123.1]) and/or (ORA-600 [12333] "Fatal Two-Task Protocol Violation" [ID 35928.1]) is applicable.
    Did you try to bounce the database and see if you can reproduce the issue?
    If you still encounter the same error, please log a SR.
    Thanks,
    Hussein

  • Errors in DB alert log for distributed transactions

    Hi,
    I am receiving the following type of errors regularly in one of our development databases:
    Errors in file e:\oracle\product\diag\rdbms\agdev10g\agdev10g\trace\agdev10g_reco_16356.trc:
    ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
    ORA-02062: distributed recovery received DBID d672931d, expected 2d7b9dec
    ORA-12154: TNS:could not resolve the connect identifier specified
    ORA-12500: TNS:listener failed to start a dedicated server process
    ORA-12154: TNS:could not resolve the connect identifier specified
    From researching on the net it looks like it may have something to do with distributed transactions and database links however I'm not sure how to proceed to diagnose the problem and find out where the issue is. Can anyone help?
    Thanks
    Adam
    Edited by: Adam J. Sawyer on 27/05/2010 16:57

    SQL*Net typically involves two systems so post following details for both systems
    Post Operating System (OS) name & version for DB server system.
    Post results of
    SELECT * from v$version
    or post Oracle version to 4 decimal places
    oerr ora 12514
    12514, 00000, "TNS:listener does not currently know of service requested in connect descriptor"
    // *Cause:  The listener received a request to establish a connection to a
    // database or other service. The connect descriptor received by the listener
    // specified a service name for a service (usually a database service)
    // that either has not yet dynamically registered with the listener or has
    // not been statically configured for the listener.  This may be a temporary
    // condition such as after the listener has started, but before the database
    // instance has registered with the listener.
    // *Action:
    //  - Wait a moment and try to connect a second time.
    //  - Check which services are currently known by the listener by executing:
    //    lsnrctl services <listener name>
    //  - Check that the SERVICE_NAME parameter in the connect descriptor of the
    //    net service name used specifies a service known by the listener.
    //  - If an easy connect naming connect identifier was used, check that
    //    the service name specified is a service known by the listener.
    //  - Check for an event in the listener.log file.
    bcm@bcm-laptop:~$ oerr ora 2062
    02062, 00000, "distributed recovery received DBID %s, expected %s"
    // *Cause: a database link at a coordinator no longer points to the expected
    //         database.  Link may have been redefined, or a different DB mounted.
    // *Action: restore link definition or remote database.
    bcm@bcm-laptop:~$ oerr ora 12154
    12154, 00000, "TNS:could not resolve the connect identifier specified"
    // *Cause:  A connection to a database or other service was requested using
    // a connect identifier, and the connect identifier specified could not
    // be resolved into a connect descriptor using one of the naming methods
    // configured. For example, if the type of connect identifier used was a
    // net service name then the net service name could not be found in a
    // naming method repository, or the repository could not be
    // located or reached.
    // *Action:
    //   - If you are using local naming (TNSNAMES.ORA file):
    //      - Make sure that "TNSNAMES" is listed as one of the values of the
    //        NAMES.DIRECTORY_PATH parameter in the Oracle Net profile
    //        (SQLNET.ORA)
    //      - Verify that a TNSNAMES.ORA file exists and is in the proper
    //        directory and is accessible.
    //      - Check that the net service name used as the connect identifier
    //        exists in the TNSNAMES.ORA file.
    //      - Make sure there are no syntax errors anywhere in the TNSNAMES.ORA
    //        file.  Look for unmatched parentheses or stray characters. Errors
    //        in a TNSNAMES.ORA file may make it unusable.
    //   - If you are using directory naming:
    //      - Verify that "LDAP" is listed as one of the values of the
    //        NAMES.DIRETORY_PATH parameter in the Oracle Net profile
    //        (SQLNET.ORA).
    //      - Verify that the LDAP directory server is up and that it is
    //        accessible.
    //      - Verify that the net service name or database name used as the
    //        connect identifier is configured in the directory.
    //      - Verify that the default context being used is correct by
    //        specifying a fully qualified net service name or a full LDAP DN
    //        as the connect identifier
    //   - If you are using easy connect naming:
    //      - Verify that "EZCONNECT" is listed as one of the values of the
    //        NAMES.DIRETORY_PATH parameter in the Oracle Net profile
    //        (SQLNET.ORA).
    //      - Make sure the host, port and service name specified
    //        are correct.
    //      - Try enclosing the connect identifier in quote marks.
    //   See the Oracle Net Services Administrators Guide or the Oracle
    //   operating system specific guide for more information on naming.
    bcm@bcm-laptop:~$ oerr ora 12500
    12500, 00000, "TNS:listener failed to start a dedicated server process"
    // *Cause:  The process of starting up a dedicated server process failed.
    // The executable could not be found or the environment may be set up
    // incorrectly.
    // *Action: Turn on tracing at the ADMIN level and reexecute the operation.
    // Verify that the ORACLE Server executable is present and has execute
    // permissions enabled. Ensure that the ORACLE environment is specified
    // correctly in LISTENER.ORA. The Oracle Protocol Adapter that is being
    // called may not be installed on the local hard drive.  Please check that
    // the correct Protocol Adapter are successfully linked.
    // If error persists, contact Oracle Customer Support.What explicit SQL or command trigger these errors?

  • Alert log for apply process

    I am seeing the following:
    AP01: warning -- apply server 13, sid 2707 waiting for event (since 4975 seconds):How can I tell what it's waiting for?

    An apply server is an Oracle Session like any other session. check v$session_wait, v$session or v$lock

  • TCL file for alert.log checking?

    Where can I find a TCL Script for checking the alert.logs for errors?

    You could check <ORACLE_HOME>/network/agent/events/oracle/rdbms/fault/alert.tcl

  • Error in the alert Log

    Hi There,
    Recently I started seeing these errors in the alert log for one of the databases:
    Tue Aug 04 05:05:00 2009
    Errors in file c:\oracle\product\10.2.0\admin\xxxxxx\bdump\xxxxxx_j000_6104.trc:
    ORA-12012: error on auto execute of job 130961
    ORA-27370: job slave failed to launch a job of type EXECUTABLE
    ORA-27300: OS system dependent operation:accessing execution agent failed with status: 109
    ORA-27301: OS failure message: The pipe has been ended.
    ORA-27302: failure occurred at: sjsec 9
    ORA-27303: additional information: The pipe has been ended.
    So, I tried looking at the trace file associated with the error, and here is what I get:
    $ cat ebcd01_j000_6104.trc
    Dump file c:\oracle\product\10.2.0\admin\xxxxxx\bdump\xxxxxx_j000_6104.trc
    Tue Aug 04 05:05:00 2009
    ORACLE V10.2.0.3.0 - Production vsnsta=0
    vsnsql=14 vsnxtr=3
    Oracle Database 10g Release 10.2.0.3.0 - Production
    Windows Server 2003 Version V5.2 Service Pack 1
    CPU : 4 - type 586, 2 Physical Cores
    Process Affinity : 0x00000000
    Memory (Avail/Total): Ph:1095M/4095M, Ph+PgF:7747M/12110M, VA:1367M/2047M
    Instance name: ebcd01
    Redo thread mounted by this instance: 1
    Oracle process number: 53
    Windows thread id: 6104, image: ORACLE.EXE (J000)
    *** ACTION NAME:(DEL_ARCH_EBCP01) 2009-08-04 05:05:00.191
    *** MODULE NAME:(DBMS_SCHEDULER) 2009-08-04 05:05:00.191
    *** SERVICE NAME:(SYS$USERS) 2009-08-04 05:05:00.191
    *** SESSION ID:(871.15642) 2009-08-04 05:05:00.191
    *** 2009-08-04 05:05:00.191
    ORA-12012: error on auto execute of job 130961
    ORA-27370: job slave failed to launch a job of type EXECUTABLE
    ORA-27300: OS system dependent operation:accessing execution agent failed with status: 109
    ORA-27301: OS failure message: The pipe has been ended.
    ORA-27302: failure occurred at: sjsec 9
    ORA-27303: additional information: The pipe has been ended.
    I'm not sure what job is causing this as there is no reference and also not sure how to resolve this issue!! How can I properly trace back these errors? Any ideas or tips to what should I do?
    I'm running 10.2.0.3 database on windows 2003 server.
    Thanks

    I found the problem.. the executable job was referring to a none existing batch file..
    I have refreshed the database from production some time ago and the jobs I have setup are referring to production scripts and paths (which we didnt have on dev)..
    This is now resolved.
    Thanks

  • Not clearable : 1 distinct types of ORA- errors have been found in the alert log.

    ( Correct me if I'm wrong.)
    What could be the reason for the fact that the event "1 distinct types of ORA- errors have been found in the alert log." is not clearable?
    Even if the problem is solved, the ORA- error will still be in the alert.log.
    Therefore the event would eventually only disappear after 7 days.
    Doesn't sound very logical to me.

    - The event page showing a warning event for "Generic Alert Log Error Status" metric,
    - "Generic Alert Log Error Status" event is a statefull metric,
    - On each evaluation of the metric defined as 'Statefull', the Cloud Control Agent recalculates the severity,
    - This means, EM Agent scans the alert log for ORA errors, "Generic Alert Log Error Status" will return the number of ORA error found,
    - Whenever the returned number is grater than the assigned thresholds of "Generic Alert Log Error Status", an alert is raised on EM console,
    - On the next scan of alert log file, this alert will be cleared ONLY if the collected value is less than the assigned threshold,
    - By checking your system, the warning threshold of "Generic Alert Log Error Status" is 0, so whenever a single ORA error is found in alert log, a warning event will be raised and you will not be able to clear it manually as this is a stateful metric.
    There are three cases where this alert can be cleared:
    1. The agent found 0 ORA errors in Alert log, then the alert will be cleared automatically
    2. Manual clear: By disabling/enabling the metric
    3. Manual clear and further not receiving similar alerts frequently: By assigning higher thresholds values
    So, I suggest to disable the metric, then, enable it after some time as follows as follows:
    - Go to the problematic database home page >> open the 'Oracle Database' drop-down menu >> 'Monitoring' >> 'Metric and Collection Settings',
    - Choose 'All metrics' from the 'View' drop-down list >> search for the 'Generic Alert Log Error Status' metric,
    - Click the pencil icon under 'Edit' column opposite to the above metric >> remove the Warning Threshold (make it empty) >> 'Continue' >> 'OK'.
    - Wait for the next collection schedule in order for the warning events to be cleared, then, enable the metric again with the same steps (setting Warning Threshold=0).
    References:
    Note 604385.1 Receiving "Clear" Notifications Unexpectedly for 'Generic Alert Log Error Status' Metric
    Note 733784.1 What are Statefull and Stateless Metrics in Enterprise Manager - Explanation and Example
    HTH
    Mani

  • Alert log monitor help

    Hello,
    I am very new to shell scripting. Our DB is 10g on AIX. And i wanted to setup something that will monitor my alertlog and send me e-mail out. And i found this online. But have very little knowledge on cronjob. I can set one up. But this script dont tell what goes here. Here is the script that i found online. So if anyone could give me what goes where i would be thankfull. it does says put the check_alert.awk someplace. But is that where the cron comes in place. i mean do i schedule check_alert.awk in my cronjob ??? Just wanted to know what parts goes where and how to set this up the right way so i get e-mail alert for my alert log. a step - step process would be good. Thanks
    UNIX shell script to monitor and email errors found in the alert log. Is ran as the oracle OS owner. Make sure you change the "emailaddresshere" entries to the email you want and put the check_alert.awk someplace. I have chosen $HOME for this example, in real life I put it on as mounted directory on the NAS.
    if test $# -lt 1
    then
    echo You must pass a SID
    exit
    fi
    # ensure environment variables set
    #set your environment here
    export ORACLE_SID=$1
    export ORACLE_HOME=/home/oracle/orahome
    export MACHINE=`hostname`
    export PATH=$ORACLE_HOME/bin:$PATH
    # check if the database is running, if not exit
    ckdb ${ORACLE_SID} -s
    if [ "$?" -ne 0 ]
    then
    echo " $ORACLE_SID is not running!!!"
    echo "${ORACLE_SID is not running!" | mailx -m -s "Oracle sid ${ORACLE_SID} is not running!" "
    |emailaddresshere|"
    exit 1
    fi;
    #Search the alert log, and email all of the errors
    #move the alert_log to a backup copy
    #cat the existing alert_log onto the backup copy
    #oracle 8 or higher DB's only.
    sqlplus '/ as sysdba' << EOF > /tmp/${ORACLE_SID}_monitor_temp.txt
    column xxxx format a10
    column value format a80
    set lines 132
    SELECT 'xxxx' ,value FROM v\$parameter WHERE name = 'background_dump_dest'
    exit
    EOF
    cat /tmp/${ORACLE_SID}_monitor_temp.txt | awk '$1 ~ /xxxx/ {print $2}' > /tmp/${ORACLE_SID}_monitor_location.txt
    read ALERT_DIR < /tmp/${ORACLE_SID}_monitor_location.txt
    ORIG_ALERT_LOG=${ALERT_DIR}/alert_${ORACLE_SID}.log
    NEW_ALERT_LOG=${ORIG_ALERT_LOG}.monitored
    TEMP_ALERT_LOG=${ORIG_ALERT_LOG}.temp
    cat ${ORIG_ALERT_LOG} | awk -f $HOME/check_alert.awk > /tmp/${ORACLE_SID}_check_monitor_log.log
    rm /tmp/${ORACLE_SID}_monitor_temp.txt 2>/dev/null
    if [ -s /tmp/${ORACLE_SID}_check_monitor_log.log ]
    then
    echo "Found errors in sid ${ORACLE_SID}, mailed errors"
    echo "The following errors were found in the alert log for ${ORACLE_SID}" > /tmp/${ORACLE_SID}_check_monitor_log.mail
    echo "Alert log was copied into ${NEW_ALERT_LOG}" >> /tmp/${ORACLE_SID}_check_monitor_log.mail
    echo " "
    date >> /tmp/${ORACLE_SID}_check_monitor_log.mail
    echo "--------------------------------------------------------------">>/tmp/${ORACLE_SID}_check_monitor_log.mail
    echo " "
    echo " " >> /tmp/${ORACLE_SID}_check_monitor_log.mail
    echo " " >> /tmp/${ORACLE_SID}_check_monitor_log.mail
    cat /tmp/${ORACLE_SID}_check_monitor_log.log >> /tmp/${ORACLE_SID}_check_monitor_log.mail
    cat /tmp/${ORACLE_SID}_check_monitor_log.mail | mailx -m -s "on ${MACHINE}, MONITOR of Alert Log for ${ORACLE_SID} found errors" "
    |emailaddresshere|"
    mv ${ORIG_ALERT_LOG} ${TEMP_ALERT_LOG}
    cat ${TEMP_ALERT_LOG} >> ${NEW_ALERT_LOG}
    touch ${ORIG_ALERT_LOG}
    rm /tmp/${ORACLE_SID}_monitor_temp.txt 2> /dev/null
    rm /tmp/${ORACLE_SID}_check_monitor_log.log
    rm /tmp/${ORACLE_SID}_check_monitor_log.mail
    exit
    fi;
    rm /tmp/${ORACLE_SID}_check_monitor_log.log > /dev/null
    rm /tmp/${ORACLE_SID}_monitor_location.txt > /dev/null
    The referenced awk script (check_alert.awk). You can modify it as needed to add or remove things you wish to look for. The ERROR_AUDIT is a custom entry that a trigger on DB error writes in our environment.
    $0 ~ /Errors in file/ {print $0}
    $0 ~ /PMON: terminating instance due to error 600/ {print $0}
    $0 ~ /Started recovery/{print $0}
    $0 ~ /Archival required/{print $0}
    $0 ~ /Instance terminated/ {print $0}
    $0 ~ /Checkpoint not complete/ {print $0}
    $1 ~ /ORA-/ { print $0; flag=1 }
    $0 !~ /ORA-/ {if (flag==1){print $0; flag=0;print " "} }
    $0 ~ /ERROR_AUDIT/ {print $0}
    I simply put this script into cron to run every 5 minutes passing the SID of the DB I want to monitor.

    I have a PERL script that I wrote that does exactly what you want and I'll be glad to share that with you along with the CRON entries.
    The script runs opens the current alert_log and searches for key phrases and send e-mail if it finds anything. It then sleeps for 60 sec, wakes up and reads from were it left off to the bottom of the file, searching again and then sleeping. The only down side is it keeps a file handle open on the alert_log, so you have to kill this processes if you want to rename or delete the alert_log.
    My email in my profile is not hidden.
    Tom

  • Database Alert log.

    Hi , I am having release Release 11.2.0.3.0 of oracle. Got database crash tuesday morning, and i am trying to get the reason for the crash. Given below is the alert.log for same. I can see Process RSM0 is getting killed , triggered the crash but could not relate it to the event follwed.
    --------------------------------- ALERT.LOG---------------------------
    Tue Aug 13 00:20:51 2013
    Thread 1 advanced to log sequence 9737 (LGWR switch)
      Current log# 3 seq# 9737 mem# 0: +DATA01/sid1004/onlinelog/group_3.379.817601969
      Current log# 3 seq# 9737 mem# 1: +DATA02/sid1004/onlinelog/group_3.5858.817601983
    Tue Aug 13 00:20:51 2013
    LNS: Standby redo logfile selected for thread 1 sequence 9737 for destination LOG_ARCHIVE_DEST_2
    Tue Aug 13 00:21:11 2013
    Archived Log entry 20595 added for thread 1 sequence 9736 ID 0xe56c03af dest 1:
    Tue Aug 13 00:30:48 2013
    Thread 1 advanced to log sequence 9738 (LGWR switch)
      Current log# 4 seq# 9738 mem# 0: +DATA01/sid1004/onlinelog/group_4.378.817601995
      Current log# 4 seq# 9738 mem# 1: +DATA02/sid1004/onlinelog/group_4.7210.817602007
    Tue Aug 13 00:30:48 2013
    LNS: Standby redo logfile selected for thread 1 sequence 9738 for destination LOG_ARCHIVE_DEST_2
    Tue Aug 13 00:30:55 2013
    Archived Log entry 20597 added for thread 1 sequence 9737 ID 0xe56c03af dest 1:
    Tue Aug 13 00:40:41 2013
    Thread 1 advanced to log sequence 9739 (LGWR switch)
      Current log# 5 seq# 9739 mem# 0: +DATA01/sid1004/onlinelog/group_5.377.817602019
      Current log# 5 seq# 9739 mem# 1: +DATA02/sid1004/onlinelog/group_5.10031.817602031
    Tue Aug 13 00:40:42 2013
    LNS: Standby redo logfile selected for thread 1 sequence 9739 for destination LOG_ARCHIVE_DEST_2
    Tue Aug 13 00:40:47 2013
    Archived Log entry 20599 added for thread 1 sequence 9738 ID 0xe56c03af dest 1:
    Tue Aug 13 00:50:41 2013
    Thread 1 advanced to log sequence 9740 (LGWR switch)
      Current log# 6 seq# 9740 mem# 0: +DATA01/sid1004/onlinelog/group_6.376.817602043
      Current log# 6 seq# 9740 mem# 1: +DATA02/sid1004/onlinelog/group_6.6026.817602057
    Tue Aug 13 00:50:41 2013
    LNS: Standby redo logfile selected for thread 1 sequence 9740 for destination LOG_ARCHIVE_DEST_2
    Tue Aug 13 00:50:46 2013
    Archived Log entry 20601 added for thread 1 sequence 9739 ID 0xe56c03af dest 1:
    Tue Aug 13 01:00:40 2013
    Thread 1 advanced to log sequence 9741 (LGWR switch)
      Current log# 7 seq# 9741 mem# 0: +DATA01/sid1004/onlinelog/group_7.375.817602069
      Current log# 7 seq# 9741 mem# 1: +DATA02/sid1004/onlinelog/group_7.10703.817602081
    Tue Aug 13 01:00:41 2013
    LNS: Standby redo logfile selected for thread 1 sequence 9741 for destination LOG_ARCHIVE_DEST_2
    Tue Aug 13 01:00:46 2013
    Archived Log entry 20603 added for thread 1 sequence 9740 ID 0xe56c03af dest 1:
    Tue Aug 13 01:09:02 2013
    minact-scn: useg scan erroring out with error e:12751
    Tue Aug 13 01:10:38 2013
    Thread 1 advanced to log sequence 9742 (LGWR switch)
      Current log# 8 seq# 9742 mem# 0: +DATA01/sid1004/onlinelog/group_8.374.817602093
      Current log# 8 seq# 9742 mem# 1: +DATA02/sid1004/onlinelog/group_8.12060.817602105
    Tue Aug 13 01:10:39 2013
    LNS: Standby redo logfile selected for thread 1 sequence 9742 for destination LOG_ARCHIVE_DEST_2
    Tue Aug 13 01:10:51 2013
    Archived Log entry 20605 added for thread 1 sequence 9741 ID 0xe56c03af dest 1:
    Tue Aug 13 01:15:55 2013
    Time drift detected. Please check VKTM trace file for more details.
    Tue Aug 13 01:16:27 2013
    Thread 1 advanced to log sequence 9743 (LGWR switch)
      Current log# 1 seq# 9743 mem# 0: +DATA01/sid1004/onlinelog/group_1.381.817601921
      Current log# 1 seq# 9743 mem# 1: +DATA02/sid1004/onlinelog/group_1.5144.817601933
    Tue Aug 13 01:17:51 2013
    Process RSM0, PID = 8562, will be killed
    Tue Aug 13 02:19:38 2013
    Starting ORACLE instance (normal)

    While you're at MetaLink/MyOracle support, you'd probably want to read the following doc id's as well:
    Time Drift Detected. Please Check Vktm Trace File For More Details. (Doc ID 1347586.1)
    Alert log shows: "Minact-scn: Useg Scan Erroring Out With Error E:12751" Warning (Doc ID 1478691.1)

Maybe you are looking for

  • Condition Technique- Tax

    I am having one issue --- please see the example Invoice has the component.. MRP (Base Price) (ZP52) -          1855.00 (after exclusion of 5% tax) Retail price (ZPRP)-                   1766.67 (After Discount of 5%) Price To Retailer (ZPTR)-       

  • Error Compiling Movie  Unknown Error

    Greetings, I have been trying to pinpoint a problem I have been having rendering sequences in CS5.5.1. I am currently shooting AVCHD 1080p/23.976 using Adobe Sequences Settings that match. I get this error on various projects. My workflow preference

  • New Date Picker and JAWS

    I am trying to make my APEX applications more ADA section 508 compliant for the visually impaired without sacrificing functionality for the non-visually impaired. I would prefer to use the new APEX 4.0 Date Picker based on jQuery; however, it is not

  • Refresh BPM

    I have a BPM and it stuck .There a wait step  which it was ok in the past and now it does not work , I assume that with a refresh it may work . If i delete the BPM and import it again in the configuration enviroment is it problem ? Thanks Antonis

  • Keep sleeping with external display

    I just got a brand new samsung syncMaster (730mw to be exact) and went right on to pug it into my 12 inch powerbook, with the help of my minidvi to DVI of course. I followed apple's "correct" procedure. Connecting the power cord, hook up external mon