How to find out the active sql details
break on sid skip 1 on serial# on username on executions on statuscolumn sid format 9999column username format a12column sql_text form a64select a.sid,a.serial#,a.username,c.executions,status,...
View Articlehow to create sql tuning task
SET LONG 10000;SET PAGESIZE 9999SET LINESIZE 155set verify offcol recommendations for a150accept task_name - prompt 'Task_Name: ' DECLARE ret_val VARCHAR2(4000);BEGINret_val :=...
View Articlehow to check the database health checkup
spool tuning_stats.txt ttitle 'SYSTEM STATISTICS'select 'LIBRARY CACHE STATISTICS:' from dual; ttitle off select 'PINS - # of times an item in the library cache was executed - '|| sum(pins),...
View Articlebuffer_busy_sample
column wait format a15column address noprintcolumn piece noprintbreak on waitselect /*+ ordered */ distinct w.wait, t.address, t.piece, translate(t.sql_text, chr(13), '') sql_textfrom ( select...
View Articledatafile_activity
SELECT d.name file_name,d.blocks,f.phywrts,f.phyrds,f.readtim,f.writetim,t.name tablespace_name,f.phywrts/d.blocks wrts_per_block,f.phyrds/d.blocks rds_per_blockFROM v$filestat f,v$datafile d,sys.ts$...
View ArticleCurrent Database Account
set termout offset head offset termout onselect 'User: '|| user || ' on database ' || global_name, '(Terminal='||USERENV('TERMINAL')|| ', Session-Id='||USERENV('SESSIONID')||')'from...
View ArticleArticle 6
Patch Error while appying 22502456 RDBMS Database Patch Set Update 11.2.0.4.160419Error:---------The patch directory area must be a number.ERROR: OPatch failed because of problems in patch...
View ArticleInvalieds
spool show_summary_invalid_objects.lstset pause offset feed off;set pagesize 10000;set wrap off;set linesize 200;set heading on;set tab on;set scan on;set verify off;ttitle left 'Summary of invalid...
View ArticleLogged on Users
SET linesize 200 PAGESIZE 1000 FEED OFF;COLUMN "sid,serial#" FORMAT A12COLUMN "pid" FORMAT 999COLUMN "status" FORMAT A8COLUMN "schema" FORMAT A10COLUMN "osuser" FORMAT A10COLUMN "box" FORMAT A16COLUMN...
View ArticleRac_balance_delta
col instance_name format a20 heading "Instance|name"col elapsed_seconds format 999,999 Heading "Elapsed|seconds"col cpu_ms_ps format 999,999.99 heading "CPU ms|p.s."col db_ms_ps format 999,999.99...
View ArticleShow_statistics_of_connected_users
col osuser format a10 trunc heading "OSUSER AS"col orauser format a10 trunccol machine format a10 trunccol sprogram format a15 trunccol process format a20 trunccol server format a3 trunccol sess_id...
View ArticleShow_user_with_top_io
SELECT ses.sid, ses.serial#, ses.osuser, ses.process, sio.physical_reads FROM v$session ses, v$sess_io sio WHERE ses.sid = sio.sid AND nvl(ses.username,'SYS') not in ('SYS', 'SYSTEM') AND...
View ArticleArticle 0
Opatch Warning During Patch Apply : "ld: warning: option -YP or -Q appears more than once, first setting takenERROR:-------------You may receive the following warning while applying the patch on...
View ArticleArticle 1
Patch Wizard Configuration and Patch Analysis without accessing the Internet(Without Providing Metalink Credentials) in EBS R121. We can run patch wizard without accessing internet connection by...
View ArticleArticle 0
Error Oracle - 20001When trying to assign responsibility to a user, the following error occurs.ERRORError Oracle - 20001: ORA-20001: FND_CANT_INSERT_USER_ROLE(USERNAME=AKUMAE)...
View ArticleORA-29701: Unable to connect to Cluster Manager
ORA-29701: Unable to connect to Cluster ManagerWhen trying to start the ASM instance in cluster, and getting the below errorORA-29701: Unable to connect to Cluster Manager.Solution :[oracle@racnode1...
View ArticleCRS-0215 & PRKP-1001 when starting RAC database
CRS-0215 & PRKP-1001 when starting RAC databaseSetup is with oracle 11.2.0.3 , 2 node RAC database.I have created a a new spfle and deleted old one.old spfile location...
View ArticleSteps to create database link in other schema
Steps to create db link in other schemaBelow is a method to create private database link in other schemaAs sys user create the following procedure under the schema for which database link has to...
View ArticleSteps to drop a private database link
Steps to drop a private database linkBelow is a step to drop a private database link.As sys user create the following procedure under the schema from which database link has to be droppedCREATE...
View ArticleArticle 0
Steps to remove "DATABASE SYSTEM" target from OEM 12CThe issue is after removing all the targets from a host , database system targets still appears in the oem.So We have to remove this manually using...
View Article