Query to find day by day redo generation
select trunc(completion_time) rundate ,count(*) logswitch ,round((sum(blocks*block_size)/1024/1024)) "REDO PER DAY (MB)" from v$archived_log group by trunc(completion_time) order by 1;
View ArticleScript for moving sql profile
set sqlblanklines ondeclarear_profile_hints sys.sqlprof_attr;cl_sql_text clob;version varchar2(3);l_category varchar2(30);l_force_matching varchar2(3);b_force_matching boolean;begin select...
View ArticleScript to find statements that have significantly different elapsed time than...
set lines 155col execs for 999,999,999col before_etime for 999,990.99col after_etime for 999,990.99col before_avg_etime for 999,990.99 head AVG_ETIME_BEFOREcol after_avg_etime for 999,990.99 head...
View ArticleScript to Flush sql
set serveroutput onset pagesize 9999set linesize 155var name varchar2(50)accept sql_id - prompt 'Enter value for sql_id: 'BEGINselect address||','||hash_value into :namefrom v$sqlareawhere sql_id...
View ArticleScript to find the child process and all details of an sql
col sql_text for a60 wrapset verify offset pagesize 999set lines 155col username format a13col prog format a22col sid format 999col child_number format 99999 heading CHILDcol ocategory format a10col...
View ArticleQuery to find the High CPU utilizing sessions
SET LINESIZE 145SET PAGESIZE 9999COLUMN sid FORMAT 9999 HEADING 'SID'COLUMN serial_id FORMAT 999999 HEADING 'Serial#'COLUMN session_status FORMAT a9...
View ArticleQuery to check when the profile was updated
select p.profile_option_name SHORT_NAME, n.user_profile_option_name "PROFILE NAME",decode(v.level_id, 10001, 'Site', 10002, 'Application',10003, 'Responsibility', 10004, 'User', 10005, 'Server',10007,...
View ArticleSteps to create SSL for apex
Refer Doc idHow To Configure SSL For Oracle XML DB ( Doc ID 942976.1 )How to Configure APEX to Use SSL ( Doc ID 740491.1 )**********************************************************************Step 1:A...
View ArticleCreate Self-signed certificate using orapki
orapki wallet create -wallet /ndevdb/oracle/TEST/self_signedorapki wallet add -wallet /devdb/oracle/TEST/self_signed -dn 'CN=TEST,C=US' -keysize 2048 -self_signed -validity 3650orapki wallet display...
View ArticleGrant ACL to user for sending mail
Step – 1 :: create ACL scrip change “principal” name(Schema/User name).begin dbms_network_acl_admin.create_acl( acl => 'utl_smtp.xml', description => 'Allow mail to be send',...
View ArticleTCPS Configuration for oracle database
Server side wallet--------------------======================================================Server wallet location :...
View ArticleOpatch lsinventory or Apply Output Issue Because of Lock File
When performing command "opatch lsinventory or opatch apply" in oracle RDBMS or FMW home you getting below errors like.,OracleHomeInventory was not able to create a lock file, probably due to a failed...
View ArticleWeblogic Patching Error Using BSU - "java.lang.OutOfMemoryError: GC overhead...
While applying Weblogic bsu patch manually, we frequently get below error like.,Exception in thread "main" java.lang.OutOfMemoryError: GC overhead limit exceeded at...
View ArticleADOP Fails With Error "PLS-00201: identifier 'AD_JAR.GET_JRIPASSWORDS' must...
When applying ADOP patch getting below error.,AutoPatch error:ORA-06550: line 3, column 1:PLS-00201: identifier 'AD_JAR.GET_JRIPASSWORDS' must be declaredORA-06550: line 3, column 1:PL/SQL: Statement...
View ArticleArticle 4
Script to Enable Plan Baseline set long 32767set pages 9999set lines 200set serveroutput on size 1000000accept SQL_Handle prompt "Enter the SQL handle: ";accept plan_name prompt "Enter the SQL plan...
View ArticleArticle 3
Script to Disable Plan Baseline set long 32767set pages 9999set lines 200set serveroutput on size 1000000accept SQL_Handle prompt "Enter the SQL handle: ";accept plan_name prompt "Enter the SQL plan...
View ArticleArticle 2
Script to Drop Plan Baseline set long 32767set pages 9999set lines 200set serveroutput on size 1000000accept SQL_Handle prompt "Enter the SQL handle: ";accept plan_name prompt "Enter the SQL plan name...
View ArticleArticle 1
Script to Show Plan Baseline set long 32767set pages 9999set lines 140set verify offaccept sql_id prompt "Enter the SQL ID : ";variable sql_id varchar2COLUMN sql_id FORMAT A13COLUMN sql_handle...
View ArticleArticle 0
Script to check the Data Guard statusset feedb offset pages 99set lines 200column dbid format 9999999999 heading "DbId"column name format a9 heading "Name"column open_mode...
View Article