Quantcast
Channel: Doyensys Allappsdba Blog..
Browsing all 1640 articles
Browse latest View live

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 Article


Script 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 Article


Script 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 Article

Script 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 Article

Script 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 Article


Query 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 Article

Query to find fast recovery area usage

SELECT...

View Article

Query 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 Article


Steps 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 Article


Create 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 Article

Grant 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 Article

TCPS Configuration for oracle database

Server side wallet--------------------======================================================Server wallet location :...

View Article

Opatch 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 Article


Weblogic 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 Article

ADOP 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 Article


Article 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 Article

Article 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 Article


Article 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 Article

Article 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 Article

Article 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
Browsing all 1640 articles
Browse latest View live