DROP DB_LINKS of a PRIVATE user from “SYS”
DROP DB_LINKS of a PRIVATE user from “SYS” Create a procedure named “DROP_DBLINK” which will call values from “dba_users”, also which parse a cursor in it and it calls an inbuilt package also. To drop...
View ArticleRestore SPFILE no AUTOBACKUP found RMAN-06172
The backup database command will include the spfile and controlfile. When controlfile autobackup is set to ON, and only when it is set to ON, then RMAN will make additional copies of the controlfile...
View ArticleDatabase Bounce History by Triggers
Database Bounce History Whenever Instance was started or shutdown, These information not stored in Oracle Views/Tables. In this case used to refer Alert Log file when it was bounced. Instead of...
View ArticleDrop User with ORA-26500
Drop User with ORA-26500 When trying to Replicate the data from one machine to another machine, After getting latest dump from PROD, Before Import in process of cleanup all the schema using “Drop user”...
View ArticleDatabase Administration
Tablespace Usage Database Bounce History by Triggers Table Fragmentation Tracking Alert Log file by x$dbgalertext Estimating TBS size before Refresh from Source DB Current SQL’s running on Instance The...
View ArticleTable Fragmentation
Table Fragmentation To get Actual, Optimal, Reclaimable Size from the tables of a specific user. set linesize 200 trimspool on col owner for a22 col table_name for a30 col tablespace_name for a20...
View ArticleUser Administration scripts
User session Monitor from Shell Script [oracle@superlinux ~]$ cat user_session_monitor.sh #!/bin/sh if [ $# -ne 1 ] then echo "Usage: $0 pass the pid" exit 1 fi HOSTNAME=`hostname` U=$1 export U...
View ArticleTracking Alert Log file by x$dbgalertext
Instead of reviewing whole alert log file for any Particular information, We can search using that key word from X$DBGALERTEXT Table. Grep The word “Starting Up” of Alert log file from Instance. col...
View ArticleTroubleshooting DataGuard Environment – Snapper
Troubleshooting DataGuard Environment Helping in the OTN forums – Data Guard (OTN) , They used to post without proper information which is related to Data Guard. I often face help requests without...
View ArticleIndex failed to create with ORA-01450
Index failed to create with ORA-01450 Trying to create an Index when the tablespace is of 8k block size SQL> CREATE INDEX PSOPSPMTRANSHIST ON PSPMTRANSHIST (PM_TRANS_DEFN_ID, PM_CONTEXT_VALUE1,...
View ArticleHow to Shrink Datafiles – Adjusting HWM
Shrink Datafiles – Adjusting HWM This below example is derived from “Shrinking datafiles” scripts from asktom.oracle.com Scenario:- Lets suppose the datafile size is 100m with autoexted upto maxsize...
View ArticleAdvanced Table Compression with Oracle Database 11g for OLTP
Advanced Compression with Oracle Database 11g for OLTP Oracle introduced Table Compression from version 9i, to compress data for bulk loaded. Its been introduced from 11gR1 with OLTP Table Compression...
View ArticleEstimate tablespaces usage before database refresh
Estimate tablespaces usage before database refresh We have been facing missing tablespaces/inadequate space in tablespaces issue while performing database refresh. The import jobs are failed or...
View ArticleMRP0: Background Media Recovery terminated with error ORA-00600
Media recovery Terminated with ORA-00600 Recently worked on huge transactional production database of 11.2.0.2, It has Standby database with Real-time Apply, In part of journal archiving the data will...
View ArticleUnable to start Enterprise Manager – Fatal error with server.xml
Unable to start Enterprise Manager – Fatal error with server.xml One of SAND box of SAP of Oracle Database on windows platform, where both the ORACLE_HOME and Archive log location are located in same...
View ArticleBug With “enq: DX – contention” in wait class “Other”
Bug With “enq: DX – contention” in wait class “Other” Recently got a request as database responding slow and operations are unusual, As a part of database slowness first reviewed OS level what is the...
View ArticleMisconception of Archive Log Sequences in Data Guard
Misconception of Archive Log Sequences in Data Guard I have read in OTN forums and personally went though such misconception of archive log sequences in primary, We will go in detail to understand why...
View ArticleI/O details of Data files Mount Point
How to check I/O of Data files Device This morning, There was a question from Free-Lists, To find out device names of a specific mount point where datafiles resides. There may be many mount points...
View ArticleInstance crashed with ORA-600[15709] in 11.2.0.3
Instance crashed with ORA-600[15709] in 11.2.0.3 Recently instance was crashed several times with Internal errors(ORA-00600). This below practice is based on “11.2.0.3”, Below work around provided...
View ArticlePDB is Painful to CDB any cost – 12c ?
PDB may be Painful to CDB It’s been just late to start my 12cjourney with Multitenant, Container, Pluggable database concepts. I started testing PDB concept how it works in restore, recovery and how...
View Article