Friday, September 20, 2013

Scripts order by Category

      Database:

Concurrent Request (CR):

Oracle Applications Scripts:

Oracle Applications Scripts

Description,Explanation, Execution and Sample OutputDownload Script
Oracle Application Products Version product_status.sql
Applications Relese/Version release.sql
Patch applied or not? patch.sql

Locks/Blocking Session Scripts

Description,Explanation, Execution and Sample OutputDownload Script
Finding Blocking sessions locks.sql
Objects currently Locked locked_obj.sql

User Management Scripts

Description,Explanation, Execution and Sample OutputDownload Script
Privilege associated with a User user_privs.sql

Session Management Scripts

Description,Explanation, Execution and Sample OutputDownload Script
Sql text running that is running by a Session with an SID sql_text.sql
Session information from Process ID pid.sql
Sessions currently connected to Database sess_runnig.sql
Session information from Session ID (SID) sid.sql

Database Info Scripts

Description,Explanation, Execution and Sample OutputDownload Script
Database Information db.sql
Check invalid objects invalids.sql
Particular Table Size tab_size.sql

Dataguard/Standby Info Scripts

Description,Explanation, Execution and Sample OutputDownload Script
Sync status query to be used on Standby Database sync_stdby.sql
Sync status query to be used on Primary Database sync.sql

Tablespace/Datafiles Scripts

Description,Explanation, Execution and Sample OutputDownload Script
Tablespaces Information tsinfo.sql
Tablespace Free Space ts_free.sql

RMAN Info Scripts

Description,Explanation, Execution and Sample OutputDownload Script
RMAN Progress Sofar rman_sofar.sql
RMAN backup information rman_bkp.sql
RMAN Backup Status rman_status.sql

Concurrent Request Scripts

Description,Explanation, Execution and Sample OutputDownload Script
Concurrent Manager Status from Back-end cm_status.sql
Concurrent Request information from Request ID cr_info.sql
Concurrent Requests Currently Running crs.sql
Pending Concurrent Requests Count pend_crs_cnt.sql
Pending Concurrent Requests Count with Conflict Resolution Manager(CRM) pend_crs_cnt_crm.sql
Pending Concurrent Requests Count with Standard Manager pend_crs_cnt_stdm.sql
Pending Concurrent Requests Information with all the Managers pend_cr.sql
Concurrent Requests Information Pending with Conlict Resolution Manager pend_crs_crm.sql
Concurrent Requests Information Pending with Standard Manager pend_crs_stdm.sql

Actual Objects Size in DB

Description Actual size occupied by objects
Download Script db_obj_size.sql
Date 20-Sep-2013

In this example we can find the actual size of the objects i.e., the space occupied by all the physical objects not the space occupied by datafiles.

The objects include the below list

  • LOBINDEX
  • INDEX PARTITION
  • TABLE SUBPARTITION
  • ROLLBACK
  • TABLE PARTITION
  • NESTED TABLE
  • LOB PARTITION
  • INDEX SUBPARTITION
  • CACHE
  • LOBSEGMENT
  • INDEX
  • TABLE
  • TYPE2 UNDO
  • CLUSTER
  • LOB SUBPARTITION

SELECT sum(bytes)/1024/1024 "Used in MB" FROM dba_segments
/

Size occupied by each type of object


select unique segment_type,sum(bytes)/1024/1024 from dba_segments group by segment_type
/
select unique segment_type,sum(bytes)/1024/1024 "Size in MB"from dba_segments group by segment_type /

Sample Execution and Output
SQL> SELECT sum(bytes)/1024/1024 "Size in MB" FROM dba_segments
/
Size in MB
----------
435925.375

SQL> select unique segment_type,sum(bytes)/1024/1024 "Size in MB"from dba_segments group by segment_type
/

SEGMENT_TYPE                 Size in MB
------------------ --------------------
LOBINDEX                      1513.6875
INDEX PARTITION              24582.5625
TABLE SUBPARTITION                  136
ROLLBACK                           .375
TABLE PARTITION              24811.8125
NESTED TABLE                      4.375
LOB PARTITION                   12.5625
INDEX SUBPARTITION                   83
CACHE                             .0625
LOBSEGMENT                   56456.3125
INDEX                        136582.688
TABLE                            186685
TYPE2 UNDO                    4482.5625
CLUSTER                         310.375
LOB SUBPARTITION                    269

15 rows selected.

NLS boot file not found or invalid opmnctl ping – EBS 12.2 ADCFGCLONE FAIL

Error: adcfgclone.pl failed while performing clone of EBS 12.2 instance. This occurred while ohsT2PApply is in progress. INST_TOP/adm...