Showing posts with label Quick Reference for Oracle Apps DBA. Show all posts
Showing posts with label Quick Reference for Oracle Apps DBA. Show all posts

Sunday, February 24, 2019

AWR Concepts and details

Hiya Friends, Topic: AWR (Automatic Workload Repository) understanding…
Damn sure you all are doing well in your life… If you have any problem means you are doing something big in your life.

Today, we would like to share regarding AWR (Automatic Workload Repository) which is a very important in oracle DBA’s life. And also, it is designed especially for oracle internal purpose.

Actually, we are collecting main points and trying to make it easy to understand.
Hope it may useful also we will put some more points here as days goes…

AWR:
In 11.2 spawrrac.sql is replaced by the AWR Global RAC report (awrgrpt.sql) report, a Server Performance AWR RAC report.

$ORACLE_HOME/rdbms/admin/awrgrpt.sql (for RAC)

$ORACLE_HOME/rdbms/admin/awrrpt.sql ( for single instance)

When we need AWR report:
We need the AWR when the performance is slow or degraded over time due to increased user activity.
When the performance of the database over time has been slow-down or degraded due to the changing or increased content in the database.
AWR helps in the performance of DB has become slower if the either patchset applied or app server version has changed.
Also, it helps to when the performance of DB has become slower after either database patchset applied or the database version has changes.

We need to check in AWR:

At top 3rd line, we will see
Begin Snap, End snap, Elapsed and DB time

So, here if the “DB Time” value is higher than “Elapsed” value , it means session is waiting for something…

DB Time > Elapsed = Session is waiting for something.

Sessions: Here value is 00:47 start and End at 00:31, it means before running AWR, Database was busy. So we need to calculate after the 10 min of start time and before 10 min end time.

2. You will see Load Profile:
It shows the brief description about the database uses and workload.

For example if the values of “Redo Size” per second is 194 K and per Transaction is 45 K, it means the average transaction generates about 45 K of redo data and the Database produces 194K redo per second.

3. Cache load profile (Interconnect traffic in kb = 5 mb)

4. Buffer Cache Section (data block should access from local cache, % should be high. ie. cache fusion)

5. Global Cache and Enqueue Services (global cache operation should be less (milisec) -- if more than 5ms then we need to check cluster interconnections.

6. GCS and GES messages across the private network. (It should be less.)

To be continued…

Some more useful links:

Regards,

Sunday, February 17, 2019

ASM alert log file location

Dear All,

In Unix the location of central inventory (oraInventory) can be found from the oraInst.loc file, which exists in the /var/opt/oracle or /etc/ (By default).

 

[oracle@database etc]$ pwd

/etc

[oracle@etc]$ cat oraInst.loc

#Oracle Installer Location File Location

 

inst_group=oracle

inventory_loc=/etc/oraInventory

 

Here, the inventory_loc is ‘/etc/oraInventory’

 

The log files are below:

 

/logs/InstallActions.log

/logs/oraInstall.out

/logs/oraInstall.err

/logs/silentInstall.log   (only for Silent installations)

 

For 10.2.0.X.X to 11.2.0.X.X only

 

/cfgtoollogs/oui/InstallActions.log

/cfgtoollogs/oui/oraInstall.out

/cfgtoollogs/oui/oraInstall.err

/cfgtoollogs/oui/silentInstall.log   (only for Silent installations)

 

2. Database alert log: Database Alter log are files, where every database related activities are recorded like instance start, stop, redo log switching, ORA error etc.

 

A DBA need to check this file for two reasons.

 

    a. To check health of Database.

b. Check details of any error in Database.

 

In Oracle 11g Default path for Alter log files is

 

$ORACLE_BASE/diag/rdbms/{DBNAME}/{sid}/trace/alert_{sid}.log

 

Ex: /u01/app/oracle/diag/rdbms/db01/db001/trace/alert_db001.log

 

In Oracle 10g Environment, use below command to find path for alter log files.

 

SQL> show parameter background_dump_dest

 

NAME                                 TYPE        VALUE

———————————— ———– ——————————

background_dump_dest                 string      /etc/oracle/diag/rdbms/testdb/testdb/trace

 

3. Automatic Storage Management alert log files: ASM is used for providing redundancy and balancing data and load across different disks. Any issue related to ASM below is the path for alter log files (Oracle 11g).

 

$ORACLE_BASE/diag/asm/+asm/+ASM{instance number}/trace/ alert_+ASM {instance number}.log

Ex: /u01/app/oracle/diag/asm/+asm/+ASM2/trace/alert_+ASM2.log

 

4. Clusterware CRS alert log: Real application Cluster is used for high availability and work load distribution among diff-2 servers. To check health of cluster and trouble shooting below is path for alter log file.

 

The following sections describe the locations of the clusterware log files in Database Software Oracle 10g Release 1.

 

Cluster Ready Services Log Files

Cluster Ready Services (CRS) has daemon processes that generate log information. Log files for the CRS daemon (crsd) can be found in the following directories:

 

/crs/init

/crs/.log

 

Oracle Cluster Registry Log Files

The Oracle Cluster Registry (OCR) records log information in the following location:

 

/srvm/log/

 

Cluster Synchronization Services (CSS) Log Files

You can find CSS information that the OCSSD generates in log files in the following locations:

 

/css/log/ocssd.log

/css/init/.log

 

Event Manager Log Files

Event Manager (EVM) information generated by evmd is recorded in log files in the following locations:

 

/evm/log/evmdaemon.log

/evm/init/.log

 

Oracle High Availability Log Files

The Oracle RAC high availability trace files are located in:

 

$ORACLE_BASE//admin/hdump

 

Where $ORACLE_BASE is configured and $ORACLE_HOME/racg/log when $ORACLE_BASE is not available.

 

In Oracle 11g Release 1 onwards logs can be found at this location.

 

$GRID_HOME/log/{node name}/alert{node name}.log

Ex: /u01/app/11.2.0/grid/log/db02/alertdb02.log

 

5. Diskmon log files : Disk mon log are basically to check any issue with the disk in the system.

 

$GRID_HOME/log/{node name}/diskmon/diskmon.lo*

Ex: /u01/app/11.2.0/grid/log/dmorldb02/diskmon/diskmon.log

6. OS Watcher output files : OS watcher logs are helpful for remote DBA when Database Server is hang or reboot automatically. Below is path for Linux/Unix env.

 

/opt/oracle.oswatcher/osw/archive/

 

To get OS watcher data of specific date :

cd /opt/oracle.oswatcher/osw/archive

find . -name ‘*12.01.13*’ -print -exec zip /tmp/osw_`hostname`.zip {} \;

where 12- year 01- Month 13-day

 

7. Os message logfile: OS message log file are logs related to OS related messages. Path for Linux/Unix syatem is below.

 

/var/log/messages

Friday, December 7, 2018

Quick Reference for Oracle Apps DBA

Hiya Buddies,
Hope you all are rocking either tech or Nontech skilles… If not please visits here we would like to share the skills which may useful either in tech or nontech lifes…

Here we would like to share the very important technical stuff which is useful and helpful in daily tasks.

These will be useful for Quick accees and use it. To make some query and tips handy we thought to share here…

We will keep update whenever we feel that this is important and useful for others here and also it should be handy then would like to share and update here…

How to take CM list details front-end

1. Go to front-end --> Administrator Concurrent manager --> File (at top menu) --> Export.

How to check Archive log Gap in Standby Database:
SQL> select * from v$archive_gap;

Where the log Apply stuck:
SQL> select sequence#,process,status from v$managed_standby;


How to take sql output file in xml format:
set feed off markup html on spool on
SET PAGESIZE 50000
SPOOL file_name.xls
select * from fnd_profile_options ;
SPOOL OFF

ASM alert log file Location:
oracle@ora-data:/sku/app/oracle/diag/asm/+asm/+ASM1/trace$ pwd
/sku/app/oracle/diag/asm/+asm/+ASM1/trace

oracle@ora-data:/sku/app/oracle/diag/asm/+asm/+ASM1/trace$ tail -100f alert_+ASM1.log

How to check Database size:
select sum(bytes)/1024/1024 size_in_mb from dba_data_files;

select sum(bytes)/1024/1024 size_in_mb from dba_segments;

To be continued...

Some more useful links:




Regards,
TechOrNontech Team