How to remove/drop/decommission a oracle 9i & 10g database?
Up to oracle 9i, we need to manually cleanup the database physical files on OS level. It is very difficult to clean up and may be a chance to accidently delete the some other db files which is using any other oracle database. So be careful before deleting the database physical files.
Steps:
1) Please get the approval from Business/Customer.
2) Send the Notification to Business/Customer -> We are going to decommission the database.
3) Raise a Request to Storage/Tape team for TAPE request with details “ To keep the Backup for next 2 years retention period” …Retention Period may be vary based on your business needs and SLA.
4) Take the list of datafiles/control files/Redo log files and parameter files.
5) Shutdown the database
6) Shutdown the listener
7) Take the complete database backup and make sure this backup is valid backup.
8) To make sure Storage team take the tape backup and keep the retention period rightly.. and also get Signoff mail from Storage/Tape team.
9) Remove the monitoring jobs entry from crontab and also remove the monitoring jobs it is running from third party tool.
10) Remove the archive log files/datafiles/control files/Redo log files/trace & dump files/backup files and respective DB directories – Be careful before deleting the physical files.
11) Remove the Backup schedule job details.
12) Remove the database entry from oratab entry.
13) Send the final notification to Application/Customer “DB was decommissioned” and also share the TAPE retention details to business/Customer.
14) Remove the database details from inventory sheet (DB registry/Server registry)
From Oracle10g onwards, Oracle makes it as physical files removal is very simple. Please follow the below steps for Oracle 10G and 11g databases…
Steps:
1) Please get the approval from Business/Customer.
2) Send the Notification to Business/Customer -> We are going to decommission the database.
3) Raise a Request to Storage/Tape team for TAPE request with details “ To keep the Backup for next 2 years retention period” …Retention Period may be vary based on your business needs and SLA.
4) Take the list of data files/control files/Redo log files and parameter files.
5) Shutdown the database
6) Shutdown the listener
7) Take the complete database backup and make sure this backup is valid backup.
8) To make sure Storage team take the tape backup and keep the retention period rightly.. and also get Signoff mail from Storage/Tape team.
9) Remove the monitoring jobs entry from crontab and also remove the monitoring jobs it is running from third party tool.
10) Startup the database in restrict mode and give drop database command.
SQL> conn / as sysdba
Connected to an idle instance.
SQL> startup restrict mount
ORACLE instance started.
Total System Global Area 3221225472 bytes
Fixed Size 2044072 bytes
Variable Size 1291849560 bytes
Database Buffers 1912602624 bytes
Redo Buffers 14729216 bytes
Database mounted.
SQL> drop database;
Database dropped.
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, Oracle Label Security, OLAP, Data Mining Scoring Engine
and Real Application Testing options
[/fisc/oracle]oracle@:TEST> ps -ef|grep pmon
Oracle 25411 26322 0 03:07:07 pts/8 0:00 grep pmon
11) Remove the archive log files, trace, dump files backup files and respective DB directories – Be careful before deleting the physical files.
12) Remove the Backup schedule job details.
13) Remove the database entry from oratab entry.
14) Send the final notification to Application/Customer “DB was decommissioned” and also share the TAPE retention details to business/Customer.
15) Remove the database details from inventory sheet (DB registry/Server registry)
I Hope this article helped you. Suggestions are welcome.
Best Regards
RajaBaskar Thangaraj
Best Regards
RajaBaskar Thangaraj