Linux Locking using flock
I am faced with a situation on how to create locking mechanism for RMAN backup. Script dbf.sh backups database and can be run simutaneously if it’s not for the same database. Hence dbf.sh sh running...
View ArticleX-Window Fun
When ssh -X to another host, I am able to use X-Windows. [dinh@ca01ts~]$ ssh -X dinh@192.168.1.137 dinh@192.168.1.137's password: Last login: Fri Aug 21 11:55:47 2015 from 10.237.102.38 /usr/bin/xauth:...
View ArticleMonitoring RMAN Operations
Just a reference to source and my version of the script. This is for restore since there are OUTPUTS. Script to monitor RMAN Backup and Restore Operations (Doc ID 1487262.1) $ sqlplus / as sysdba...
View ArticleScaling Export and Import Tables Residing in Different Schemas 10gR2
Our team was tasked to unpartion all partition tables. Import: Release 11.2.0.4.0 has PARTITION_OPTIONS=DEPARTITION but we are on Release 10.2.0.4.0 The first step was to find all schemas with...
View ArticleSQL Profile and Plan Baseline Notes
Optimizer with Oracle Database 12c Oracle White Paper – June 2013 http://www.oracle.com/technetwork/database/bi-datawarehousing/twp-optimizer-with-oracledb-12c-1963236.pdf What is the difference...
View ArticleUsing sed to format controlfile trace
Do you find it cumbersome having to format controlfile trace? For the most part, it’s a manual and tedious process. Using sed, it may be possible to automate task. RESUSE overwrites existing...
View ArticleUsing dynamic variables for shell scripting
So you may ask, why go through all the trouble? Have you ever had to move scripts from one directory to another to find out the script is now broken? This is due to the hard coding of the location for...
View ArticleLearning opatch
For most of you, this is probably trivial. Needed to get a list of patches for 4-nodes Exadata. I saw co-worker ssh to each node, source ASM, database environment, run opatch command. Thinking out...
View ArticleUsing emctl to Create Blackout
When it comes to using EM12c, I do not like using GUI, especially in the environment I am working with. Aside from the rant, it’s more difficult to document steps using GUI and to reproduce or automate...
View ArticleNot Another dbms_redefinition Post
If you follow me on twitter at all, then you will realize I often rant about how demos are too simplistic and do not represent real world issues. Please allow me to demonstrate how to partitioning an...
View ArticleLinux Locking using flock
I am faced with a situation on how to create locking mechanism for RMAN backup. Script dbf.sh backups database and can be run simutaneously if it’s not for the same database. Hence dbf.sh sh running...
View ArticleX-Window Fun
When ssh -X to another host, I am able to use X-Windows. [dinh@ca01ts~]$ ssh -X dinh@192.168.1.137 dinh@192.168.1.137's password: Last login: Fri Aug 21 11:55:47 2015 from 10.237.102.38 /usr/bin/xauth:...
View ArticleMonitoring RMAN Operations
Just a reference to source and my version of the script. This is for restore since there are OUTPUTS. Script to monitor RMAN Backup and Restore Operations (Doc ID 1487262.1) $ sqlplus / as sysdba...
View ArticleScaling Export and Import Tables Residing in Different Schemas 10gR2
Our team was tasked to unpartion all partition tables. Import: Release 11.2.0.4.0 has PARTITION_OPTIONS=DEPARTITION but we are on Release 10.2.0.4.0 The first step was to find all schemas with...
View ArticleSQL Profile and Plan Baseline Notes
Optimizer with Oracle Database 12c Oracle White Paper – June 2013 http://www.oracle.com/technetwork/database/bi-datawarehousing/twp-optimizer-with-oracledb-12c-1963236.pdf What is the difference...
View ArticleUsing sed to format controlfile trace
Do you find it cumbersome having to format controlfile trace? For the most part, it’s a manual and tedious process. Using sed, it may be possible to automate task. RESUSE overwrites existing...
View ArticleUsing dynamic variables for shell scripting
So you may ask, why go through all the trouble? Have you ever had to move scripts from one directory to another to find out the script is now broken? This is due to the hard coding of the location for...
View ArticleLearning opatch
For most of you, this is probably trivial. Needed to get a list of patches for 4-nodes Exadata. I saw co-worker ssh to each node, source ASM, database environment, run opatch command. Thinking out...
View ArticleUsing emctl to Create Blackout
When it comes to using EM12c, I do not like using GUI, especially in the environment I am working with. Aside from the rant, it’s more difficult to document steps using GUI and to reproduce or automate...
View ArticleExtent Allocation
Some references on extents dealing with extent trimming, initial extent for parallel load, tablespace fragmentation, etc… ASM AU Size And LMT AUTOALLOCATE...
View Article