Comparing datafiles from ASM DiskGroup
A long time ago, I had blogged about SQL Versus ASMCMD You may be thinking that I must be crazy for wanting to compare datafiles. Here’s the story. Oracle database is running on Amazon EBS volume. The...
View ArticleTroubleshooting ORA-01017 from DGMGRL validate
I was reviewing new 19c Data Guard implementation. DGMGRL validate is my favorite command to detect any issues. Using validate, shows issue for one of the databases in Data Guard Configuration....
View ArticleUsing emcli to create blackout for rac_database
It’s not possible to create blackout for RAC databases using emctl. Oracle Enterprise Manager Cloud Control 13c Release 4 Copyright (c) 1996, 2020 Oracle Corporation. All rights reserved. Blackout...
View ArticleCreate 19c Database In Archive Mode Using dbca silent
There were discussions on Twitter about BUG for not being able to create database in Archive Mode using dbca silent and piqued my interest. Interesting. What version of dbca?— Cumulus (@mdinh235)...
View ArticleUpgrade DB from 11.2 to 19.8 Using dbua silent
There was a debate as to whether the parameter -useGRP UPGRADE19C for dbua is necessary where UPGRADE19C is the name for the restore point created prior to upgrading the database. Although it’s not...
View ArticleDBSAT Error: Data collection was not successful.
First time running DBSAT for 19.8 RAC CDB and it failed miserably. Create TNS entry for PDB and connect as system@PDB_service failed. Many have tried and failed and thanks to Roy Salazar who came up...
View ArticleRemove Characters From String Using regexp_replace
It’s probably have been half a century since I have coded PL/SQL. So there I was, reviewing PL/SQL code and it looks rather redundant. Did you know there is defined variable USER for PL/SQL code and...
View ArticleUsing sed To Search And Replace
The goal is to replace me@gmail.com with dba@gmail.com for all shell scripts. Fortunately, all shell scripts are located from one directory; otherwise, will need to find all locations. Check crontab...
View ArticleMonitor Linux Host Restart
The application is not RAC-aware and cannot handle ORA-3113, ORA-25402, or ORA-25409 properly. Hence, there is requirement to notify the application team to restart the application when database...
View ArticleNOTE: Failed voting file relocation on diskgroup
After Oracle support performs maintenance for Exadata Cloud, the are many errors from ASM alert log. There have been many discussions whether it’s a BUG or if alert can be ignored. Unfortunately, BUG...
View ArticleMigrating Windows PuTTY private key to Linux
A long, long time ago, I had blog about Migrating Windows PuTTY registry to Linux Since then I have have migrated away from PuTTY with preference for CLI. There are posts for Migrating Windows PuTTY...
View ArticlePurge Database Audit Trail Table
Segment for AUD$/FGA_LOG$ tables reside in SYSAUX tablespace and will be moved AUDIT_TBS before configuring purge. The requirement is to purge audits older than 7 years (366*7=2562) [l_days NUMBER :=...
View ArticleCompress Historical Interval Partitions
There is a requirement to compress monthly interval partition older that 36 months. First, interval partitions were renamed to more intuitive names using Renaming Interval Partitions Even though the...
View ArticleBest To Rename Both Table And Index Partitions
I have been working on compressing table and index partitions. Currently, system generated partition names are the same for tables and indexes. When table and index partitions have different names,...
View ArticleOracle9i Release 2 Data Guard Broker NF
Hopefully, you did not judge blog post by it’s title as this may be a gem. From 12.2, Broker Controlled Database Initialization Parameters and SQL Statements The following database initialization...
View ArticleCleanup Trace Files For Multiple Oracle Homes
I know what you are probably thinking. What’s the big deal and how many homes can there be? For Exadata Cloud, I recalled seeing as many as 18 database homes. As shown below, there are 5 database homes...
View ArticleSimplify Log Management For Backup
Currently, there is a cronjob to delete backup logs older than 7 days. 30 23 * * * find /home/oracle/scripts/logs -name "*.log" -mtime +7 -exec rm {} \; Typically, it not’s a big deal; however, having...
View ArticleLinux Find Week# Of Month
Unfortunately, Linux does not have parameter for Week Number Of Month I found the solution at https://serverfault.com/questions/383666/how-to-determine-number-of-week-of-the-month echo $((($(date...
View ArticleDetect Linux Host Restart
Sometime ago I had blogged about Monitor Linux Host Restart The simple solution: How to email admins automatically after a Linux server starts? Here is the example from root’s cron: # crontab -l...
View ArticleWho Can Access
I had a request to list the users who have read access (or greater) to the APP schema. Base on the results below: User DINH has SELECT on APP.INTERVAL table (view) Role APP_ROLE has SELECT/UPDATE on...
View Article