Script to find default oracle user passwords
SET FEEDBACK 1 SET NUMWIDTH 10 SET LINESIZE 80 SET TRIMSPOOL ON SET TAB OFF SET PAGESIZE 100 SET ESCAPE ON TTITLE “Default Accounts With Default Passwords” SELECT username “Account Name”,...
View ArticleSegment/tablespace growth details script
column “Percent of Total Disk Usage” justify right format 999.99 column “Space Used (MB)” justify right format 9,999,999.99 column “Total Object Size (MB)” justify right format 9,999,999.99 set...
View ArticleTablespace usage history : dba_hist_tbspc_space_usage
select NAME,RTIME,TABLESPACE_SIZE/1024/1024,TABLESPACE_MAXSIZE/1024/1024,TABLESPACE_USEDSIZE/1024/1024 from dba_hist_tbspc_space_usage,v$tablespace where TABLESPACE_ID=TS# order by 1,2; Filed under:...
View ArticleRMAN backup job statistics:
col STATUS format a9 col hrs format 999.99 col TIME_TAKEN_DISPLAY format a10 col INPUT_BYTES_PER_SEC_DISPLAY format a10 col OUTPUT_BYTES_PER_SEC_DISPLAY format a10 select SESSION_KEY, INPUT_TYPE,...
View ArticleDataguard Monitoring Scripts
SET PAGESIZE 124 COL DB_NAME FORMAT A8 COL HOSTNAME FORMAT A12 COL LOG_ARCHIVED FORMAT 999999 COL LOG_APPLIED FORMAT 999999 COL LOG_GAP FORMAT 9999 COL APPLIED_TIME FORMAT A12 SELECT DB_NAME, HOSTNAME,...
View ArticleDataguard Scripts – Monitoring
Note: This query needs to be run on the Primary database. SET PAGESIZE 124 COL DB_NAME FORMAT A8 COL HOSTNAME FORMAT A12 COL LOG_ARCHIVED FORMAT 999999 COL LOG_APPLIED FORMAT 999999 COL LOG_GAP FORMAT...
View ArticleOracle Table and index size
COLUMN TABLE_NAME FORMAT A32 COLUMN OBJECT_NAME FORMAT A32 COLUMN OWNER FORMAT A10 SELECT owner, table_name, TRUNC(sum(bytes)/1024/1024) Meg FROM (SELECT segment_name table_name, owner, bytes FROM...
View ArticlePrimary Database Changes That Require Manual Intervention at a Physical Standby
Primary Database Changes That Require Manual Intervention at a Physical Standby Most structural changes made to a primary database are automatically propagated through redo data to a physical standby...
View Articleunix CPU and Core information
# Count the number of “physical processor(s)” grep “physical id” /proc/cpuinfo | sort -u | wc -l # Count the number of “physical cores per CPU” grep “cpu cores” /proc/cpuinfo |sort -u |cut -d”:” -f2 #...
View ArticlePrimary Database Changes That Require Manual Intervention at a Physical Standby
Primary Database Changes That Require Manual Intervention at a Physical Standby Most structural changes made to a primary database are automatically propagated through redo data to a physical standby...
View Article