-
ORA-01111: name for data file 129 is unknown – rename to correct file
Continue reading →: ORA-01111: name for data file 129 is unknown – rename to correct fileRecently i was working on moving some data file on the primary server and i have set the standby_file_management=’MANUAL’. and then I saw the following error on my standby server. ALTER DATABASE RECOVER managed standby database disconnect from sessionAttempt to…
-
Script to delete archive logs on standby server (oracle)
Continue reading →: Script to delete archive logs on standby server (oracle)Frist Create file vi rman_script.sh then add the following lines in rman_script.sh file #!/bin/bash#################################################################### this script will delete the archive and obsolete file on standby server ############################################################################# ORACLE_HOME=/u01/app/oracle/product/11.2/db_1;export ORACLE_HOME;ORACLE_SID=ORCL;export ORACLE_SID; rman msglog ” now.log ” <<EOFconnect target /;CONFIGURE CONTROLFILE AUTOBACKUP ON;CONFIGURE…
-
Count All the Rows in all tables in a schema
Continue reading →: Count All the Rows in all tables in a schemaCount All the Rows in all tables in a schema you can do it various options Option 1. you can write a sql to get the out output an the then run the output to get the count for all…
-
Purging a Database Audit Trail AUD$
Continue reading →: Purging a Database Audit Trail AUD$Purging a Subset of Records from the Database Audit Trail You can manually remove records from the database audit trail tables. This method can be useful if you want to remove a specific subset of records. You can use this…
-
Create a sample schema with 1millions rows in Oracle
Continue reading →: Create a sample schema with 1millions rows in OracleWe always to test the database for various reasons we will need to create a tables with a lot of data in it.We can use below script that will allow us to create a table and populate the table with…
-
How to Add/Drop/Rename Standby Redolog file
Continue reading →: How to Add/Drop/Rename Standby Redolog fileHow to Drop/Rename Standby Redolog file in Oracle 11gWhile performing the dataguard Broker, we need to drop the standby database while switchover the standby . As it seems an easy task but it is bit tricky . Below are the…
-
Oracle Active Data Guard Or Oracle GoldenGate
Continue reading →: Oracle Active Data Guard Or Oracle GoldenGateOracle Active Data Guard and Oracle GoldenGate Oracle Active Data Guard and Oracle Golden Gate are strategic capabilities within Oracle’s software portfolio. While they generally fall into the category of replication technologies, each has a very different area of focus.Oracle…
-
TOAD USER SCRIPT
Continue reading →: TOAD USER SCRIPTSCRIPT TO CREATE TOAD USER : I really had to struggle a lot to get this script.Creating these objects as toad user will allow u to gathers stats for disk ,data file and table spaces growth and trending. This scipt…
-
Monitoring standby database made easy
Continue reading →: Monitoring standby database made easywe can use a simple trick to check if the standby database is up to date or not : The trick is we are going to create a table and populate it every minute on primary server with a scheduled…
-
ORA-00301: error in adding log file ‘stdby02.log’ – file cannot be created
Continue reading →: ORA-00301: error in adding log file ‘stdby02.log’ – file cannot be createdSQL> alter database add standby logfile ‘/u02/oracle/oradata/stdby01.log’ size 512M; Database altered. SQL> alter database add standby logfile ‘/u02/oracle/oradata/stdby02.log’ size 512M; Database altered. SQL> alter database drop standby logfile ‘/u02/oracle/oradata/stdby01.log’; Database altered. SQL> SELECT GROUP#,THREAD#,SEQUENCE#,ARCHIVED,STATUS FROM V$STANDBY_LOG; GROUP# THREAD# SEQUENCE# ARC…



