Customise Consent Preferences

We use cookies to help you navigate efficiently and perform certain functions. You will find detailed information about all cookies under each consent category below.

The cookies that are categorised as "Necessary" are stored on your browser as they are essential for enabling the basic functionalities of the site. ... 

Always Active

Necessary cookies are required to enable the basic features of this site, such as providing secure log-in or adjusting your consent preferences. These cookies do not store any personally identifiable data.

No cookies to display.

Functional cookies help perform certain functionalities like sharing the content of the website on social media platforms, collecting feedback, and other third-party features.

No cookies to display.

Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics such as the number of visitors, bounce rate, traffic source, etc.

No cookies to display.

Performance cookies are used to understand and analyse the key performance indexes of the website which helps in delivering a better user experience for the visitors.

No cookies to display.

Advertisement cookies are used to provide visitors with customised advertisements based on the pages you visited previously and to analyse the effectiveness of the ad campaigns.

No cookies to display.

How to Drop or Remove or Decommission a Database in Oracle.

Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
  • User AvatarKiran Dalvi
  • 26 Oct, 2023
  • 0 Comments
  • 1 Min Read

How to Drop or Remove or Decommission a Database in Oracle.

Database Decommission steps for Oracle 10G and 11g databases are as follows : 
  1. Every organization has its own documented way of removing or decommissioning the active/running database that is supporting an Enterprise’s Application.
  2. Please get the required approval from Business/Customer to proceed for database decommissioning.
  3. Send the Notification to Business/Customer that we are going to decommission the database. (if required).
  4. Raise a Request for Storage and Backup team to take the required backup (provide all the details in the raised request) and to keep the Backup for a specified period of time, say for next 2 years, (That is called the backup retention period). Retention Period may be varied based on your business needs and SLA. The backup can be on disk or tape. Backup can be of database only or it can also include the non-Database files like parameter file, dump file etc.
  5. If you want,  you can take the list of Data files/Control files/Redo log files and Parameter files that constitute the database.
  6.   Shutdown the database. also shutdown listener (if required).
  7. Take the complete database backup and make sure this backup is a valid backup.
  8. Make sure Storage team has taken the backup as specified in the raised ticket against them and has set the retention period correctly. You can take a Signoff mail from Storage/Backup team in case it is required.
  9. Remove the monitoring jobs entry from crontab and also remove the monitoring jobs (if any) running from third party tool(s) in the database.
  10. Startup the database in restrict mode and give drop database command.
  11. 1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    SQL> conn / as sysdba
    Connected to an idle instance.
     
    SQL> startup restrict mount
     
    ORACLE instance started.
    Total System Global Area xxxxxxxxxx bytes
    Fixed Size                  xxxxxxx bytes
    Variable Size            xxxxxxxxxx bytes
    Database Buffers         xxxxxxxxxx bytes
    Redo Buffers               xxxxxxx bytes
    Database mounted.
     
    SQL> drop database;
     Database dropped.

11. Check if the instance is running or not, shutdown the instance if required.

12. Remove the archive log files, trace files, dump files, backup files and respective Database directories. (if required)

Be careful before deleting the physical files.

13.  Remove the Backup schedule job or any other job applied on the database.

14.  Remove the database entry from /etc/oratab.

15. Remove the database details from inventory sheet or any other record(s). (if required)

Hope it Helps!