Lesson 4 | Informational and task termination messages |
Objective | Identify specific informational and task termination messages. |
The alert log is a log file that records significant database events, such as startup, shutdown, errors, and non-default parameters. To identify messages related to task termination:
DIAGNOSTIC_DEST
directory under the path:
DIAGNOSTIC_DEST/diag/rdbms/<db_name>/<instance_name>/trace/alert_<instance_name>.log
Non-default initialization parameters detected
Starting background process ... Terminating background process ...
When an Oracle background process fails or there are issues, detailed information is usually written to trace files.
trace
directory:
DIAGNOSTIC_DEST/diag/rdbms/<db_name>/<instance_name>/trace
If you have Oracle Enterprise Manager configured, you can view alerts and diagnostic information through the OEM interface:
You can also use SQL queries to check for issues:
SELECT name, value, isdefault FROM v$parameter WHERE isdefault = 'FALSE';
SELECT spid, program FROM v$process WHERE program LIKE '%(J%|P%)%';
Starting ORACLE instance (normal) LICENSE_MAX_SESSION = 0 LICENSE_SESSIONS_WARNING = 0 LICENSE_MAX_USERS = 0 Starting up ORACLE RDBMS Version: 7.3.3.5.0. System parameters with non-default values: processes = 200 timed_statistics = TRUE shared_pool_size = 27214400 shared_pool_reserved_size = 1000000 shared_pool_reserved_min_alloc= 10000 nls_date_format = DD-MON-RR control_files = /u1-3-5/cust_01.ctl, /u2-3-5/cust_02.ctl, /u3-3-5/cust_03.ctl compatible = 7.3.2.4.1.0 log_buffer = 262144 log_checkpoint_interval = 10000000 db_files = 1000 checkpoint_process = TRUE rollback_segments = r02, r03, r04, r05, r06, r07, r08, r09, r10 sequence_cache_entries = 30 sequence_cache_hash_buckets = 23 remote_os_authent = TRUE remote_login_passwordfile = NONE global_names = TRUE mts_service = cust mts_servers = 0 mts_max_servers = 0 mts_max_dispatchers = 0 audit_trail = NONE sort_area_size = 30000000 sort_area_retained_size = 30000000 sort_direct_writes = AUTO db_name = cust open_cursors = 200 optimizer_mode = RULE partition_view_enabled = TRUE job_queue_processes = 2 optimizer_percent_parallel = 100 parallel_min_percent = 25 parallel_min_servers = 4 parallel_max_servers = 32 parallel_server_idle_time = 10 hash_area_size = 60000000 db_writers = 4 PMON started DBWR started LGWR started CKPT started RECO started SMON started SNP1 started DB01 started DB02 started DB03 started DB04 started Sun Apr 25 01:22:11 1999 alter database mount exclusive Sun Apr 25 01:22:12 1999 Successful mount of redo thread 1. Sun Apr 25 01:22:12 1999 Completed: alter database mount exclusive Sun Apr 25 01:22:12 1999 alter database open
Mon Jun 7 02:50:40 1999 Completed: ALTER DATABASE CLOSE NORMAL Mon Jun 7 02:50:40 1999 ALTER DATABASE DISMOUNT Completed: ALTER DATABASE DISMOUNT
Mon Jun 7 09:52:04 1999 Thread 1 advanced to log sequence 27332 Current log# 2 seq# 27332 mem# 0: /lu4.1-2/tom_log_02.dbf Mon Jun 7 09:55:32 1999 Thread 1 advanced to log sequence 27333 Current log# 3 seq# 27333 mem# 0: /lu1.1-2/tom_log_03.dbf Mon Jun 7 09:58:39 1999 Thread 1 advanced to log sequence 27334 Current log# 1 seq# 27334 mem# 0: /lu3.1-2/tom_log_01.dbf
ORA-01555: snapshot too old: rollback segment number 3 with name "R02" too small
ALTER DATABASE DATAFILE 'undo_tablespace_datafile' RESIZE 2G;
UNDO_RETENTION
Parameter:
UNDO_RETENTION
setting to retain undo data for a longer duration. This parameter is specified in seconds.ALTER SYSTEM SET UNDO_RETENTION = 3600 SCOPE=BOTH;
UNDO_RETENTION
setting but might still overwrite data if the undo tablespace runs out of space.
SELECT tablespace_name, file_name, autoextensible FROM dba_data_files WHERE tablespace_name = 'UNDOTBS1';