SlideShare a Scribd company logo
Database Decommission Process
 Please note below activity is reference to 2 node RAC.
 Verify recent backup of the database (Latest Backup). If exist, please ignore otherwise run RMAN full backup
 Connect to EM Console (sysman/***) and Block out Database cluster
 Comment/Remove all entries in CronTab belongs to the database which will under-go decommission process
 Connect to Oracle Node1
-bash-3.2$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Mon Nov 26 22:28:28 2012
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 – 64bit Production
With the Partitioning, Real Application Clusters, OLAP, Data Mining and Real Application Testing options
Use the below commands to verify database and instance details.
 Ensure to check the DB name which will be processed for decommission
SQL> select dbid, name from v$database;
SQL> select INSTANCE_NUMBER, INSTANCE_NAME from v$instance;
 Shutdown the Database on node-2
-bash-3.2$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Mon Nov 26 22:31:05 2012
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 – 64bit Production
With the Partitioning, Real Application Clusters, OLAP, Data Mining
and Real Application Testing options
 Ensure to check the DB name which will be processed for decommission
SQL> select dbid, name from v$database;
SQL> select INSTANCE_NUMBER, INSTANCE_NAME from v$instance;
SQL> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
 Startup database in restricted mode on node-1 to avoid any new connections to DB
 Connect to Node -1
SQL> select dbid, name from v$database;
SQL> select INSTANCE_NUMBER, INSTANCE_NAME from v$instance;
SQL> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup mount RESTRICT;
ORACLE instance started.
Total System Global Area 263049216 bytes
Fixed Size 2212448 bytes
Variable Size 201330080 bytes
Database Buffers 54525952 bytes
Redo Buffers 4980736 bytes
Database mounted.
 Drop database from node-1
SQL> alter system set cluster_database=FALSE scope=spfile;
System altered.
 Create pfile from spfile
SQL> create pfile from spfile;
File created.
 Connect to DB in same node, now if we observe we will be connected to “idle” instance
-bash-3.2$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Mon Nov 26 22:48:38 2012
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to an idle instance.
Database Decommission Process
 Start up the DB in mount stage with created PFILE by providing its location as below shown
SQL> STARTUP pfile=$ORACLE_HOME/dbs/initdbname.ora MOUNT RESTRICT;
ORACLE instance started.
Total System Global Area 263049216 bytes
Fixed Size 2212448 bytes
Variable Size 201330080 bytes
Database Buffers 54525952 bytes
Redo Buffers 4980736 bytes
Database mounted.
 Cross verify the instance name before drop
SQL> show parameter instance_name from v$database;
SQL> drop database;
Database dropped
 Now that DB is dropped, let us remove the services & instances, from OS level using below commands.
$srvctl remove instance -d <database name> -i <instance name> -f
$srvctl remove instance -d <database name> -i <instance name> -f
 As we removed instances, let us remove services associated with them, before removing check the services running in the server
$ crs_stat.sh |grep -i <DB name>(to check CRS services)
ora.<DB_Name>.<DB_Name>_app.svc OFFLINE OFFLINE <hostname> STABLE
ora.<DB_Name>.<DB_Name>_app.svc OFFLINE OFFLINE <hostname> STABLE
ora.<DB_Name>.<DB_Name>_bat.svc OFFLINE OFFLINE <hostname> STABLE
ora.<DB_Name>.<DB_Name>_bat.svc OFFLINE OFFLINE <hostname> STABLE
ora.<DB_Name>.db OFFLINE OFFLINE <hostname> Instance Shutdown,ST
 Above is the output expected from “grep” command Now, let’s remove these services to complete DB decommission by using below commands at server
level
$srvctl remove service -d <DB_Name> -s <DB_Name>_app
$srvctl remove service -d <DB_Name> -s <DB_Name>_bat
$srvctl remove database -d <DB_Name>
 Finally, remove the target from Oracle Enterprise Management
Done!!!
Ad

More Related Content

What's hot (16)

Cloud stack troubleshooting
Cloud stack troubleshooting Cloud stack troubleshooting
Cloud stack troubleshooting
AlexTian
 
Lab3-DB_Neo4j
Lab3-DB_Neo4jLab3-DB_Neo4j
Lab3-DB_Neo4j
Lilia Sfaxi
 
Less10 Undo
Less10 UndoLess10 Undo
Less10 Undo
vivaankumar
 
DB12c: All You Need to Know About the Resource Manager
DB12c: All You Need to Know About the Resource ManagerDB12c: All You Need to Know About the Resource Manager
DB12c: All You Need to Know About the Resource Manager
Andrejs Vorobjovs
 
SQLServer Database Structures
SQLServer Database Structures SQLServer Database Structures
SQLServer Database Structures
Antonios Chatzipavlis
 
Windows Server Community Meetup#3:Windows RDMA Networking for Windows Server ...
Windows Server Community Meetup#3:Windows RDMA Networking for Windows Server ...Windows Server Community Meetup#3:Windows RDMA Networking for Windows Server ...
Windows Server Community Meetup#3:Windows RDMA Networking for Windows Server ...
wind06106
 
20221117_クラウドネイティブ向けYugabyteDB活用シナリオ
20221117_クラウドネイティブ向けYugabyteDB活用シナリオ20221117_クラウドネイティブ向けYugabyteDB活用シナリオ
20221117_クラウドネイティブ向けYugabyteDB活用シナリオ
Masaki Yamakawa
 
MySQL Scalability and Reliability for Replicated Environment
MySQL Scalability and Reliability for Replicated EnvironmentMySQL Scalability and Reliability for Replicated Environment
MySQL Scalability and Reliability for Replicated Environment
Jean-François Gagné
 
DDDのモデリングとは何なのか、 そしてどうコードに落とすのか
DDDのモデリングとは何なのか、 そしてどうコードに落とすのかDDDのモデリングとは何なのか、 そしてどうコードに落とすのか
DDDのモデリングとは何なのか、 そしてどうコードに落とすのか
Koichiro Matsuoka
 
Zabbixに手の届かない所は無い expect
Zabbixに手の届かない所は無い expectZabbixに手の届かない所は無い expect
Zabbixに手の届かない所は無い expect
隼人 渡邉
 
Entityrelationshipmodel
EntityrelationshipmodelEntityrelationshipmodel
Entityrelationshipmodel
Enes Bolfidan
 
Maven build for 멀티프로젝트 in jenkins
Maven build for 멀티프로젝트 in jenkins Maven build for 멀티프로젝트 in jenkins
Maven build for 멀티프로젝트 in jenkins
Choonghyun Yang
 
MongoDB vs Scylla: Production Experience from Both Dev & Ops Standpoint at Nu...
MongoDB vs Scylla: Production Experience from Both Dev & Ops Standpoint at Nu...MongoDB vs Scylla: Production Experience from Both Dev & Ops Standpoint at Nu...
MongoDB vs Scylla: Production Experience from Both Dev & Ops Standpoint at Nu...
ScyllaDB
 
Phantom Type in Scala
Phantom Type in ScalaPhantom Type in Scala
Phantom Type in Scala
Yasuyuki Maeda
 
FreeBSD jail+vnetと戯れた話
FreeBSD jail+vnetと戯れた話FreeBSD jail+vnetと戯れた話
FreeBSD jail+vnetと戯れた話
Masaru Oki
 
片手間MySQLチューニング戦略
片手間MySQLチューニング戦略片手間MySQLチューニング戦略
片手間MySQLチューニング戦略
yoku0825
 
Cloud stack troubleshooting
Cloud stack troubleshooting Cloud stack troubleshooting
Cloud stack troubleshooting
AlexTian
 
DB12c: All You Need to Know About the Resource Manager
DB12c: All You Need to Know About the Resource ManagerDB12c: All You Need to Know About the Resource Manager
DB12c: All You Need to Know About the Resource Manager
Andrejs Vorobjovs
 
Windows Server Community Meetup#3:Windows RDMA Networking for Windows Server ...
Windows Server Community Meetup#3:Windows RDMA Networking for Windows Server ...Windows Server Community Meetup#3:Windows RDMA Networking for Windows Server ...
Windows Server Community Meetup#3:Windows RDMA Networking for Windows Server ...
wind06106
 
20221117_クラウドネイティブ向けYugabyteDB活用シナリオ
20221117_クラウドネイティブ向けYugabyteDB活用シナリオ20221117_クラウドネイティブ向けYugabyteDB活用シナリオ
20221117_クラウドネイティブ向けYugabyteDB活用シナリオ
Masaki Yamakawa
 
MySQL Scalability and Reliability for Replicated Environment
MySQL Scalability and Reliability for Replicated EnvironmentMySQL Scalability and Reliability for Replicated Environment
MySQL Scalability and Reliability for Replicated Environment
Jean-François Gagné
 
DDDのモデリングとは何なのか、 そしてどうコードに落とすのか
DDDのモデリングとは何なのか、 そしてどうコードに落とすのかDDDのモデリングとは何なのか、 そしてどうコードに落とすのか
DDDのモデリングとは何なのか、 そしてどうコードに落とすのか
Koichiro Matsuoka
 
Zabbixに手の届かない所は無い expect
Zabbixに手の届かない所は無い expectZabbixに手の届かない所は無い expect
Zabbixに手の届かない所は無い expect
隼人 渡邉
 
Entityrelationshipmodel
EntityrelationshipmodelEntityrelationshipmodel
Entityrelationshipmodel
Enes Bolfidan
 
Maven build for 멀티프로젝트 in jenkins
Maven build for 멀티프로젝트 in jenkins Maven build for 멀티프로젝트 in jenkins
Maven build for 멀티프로젝트 in jenkins
Choonghyun Yang
 
MongoDB vs Scylla: Production Experience from Both Dev & Ops Standpoint at Nu...
MongoDB vs Scylla: Production Experience from Both Dev & Ops Standpoint at Nu...MongoDB vs Scylla: Production Experience from Both Dev & Ops Standpoint at Nu...
MongoDB vs Scylla: Production Experience from Both Dev & Ops Standpoint at Nu...
ScyllaDB
 
FreeBSD jail+vnetと戯れた話
FreeBSD jail+vnetと戯れた話FreeBSD jail+vnetと戯れた話
FreeBSD jail+vnetと戯れた話
Masaru Oki
 
片手間MySQLチューニング戦略
片手間MySQLチューニング戦略片手間MySQLチューニング戦略
片手間MySQLチューニング戦略
yoku0825
 

Viewers also liked (16)

Linux for Librarians
Linux for LibrariansLinux for Librarians
Linux for Librarians
ADINET Ahmedabad
 
Meeting Your Angels
Meeting Your AngelsMeeting Your Angels
Meeting Your Angels
Health Education Library for People
 
13.project core banking system
13.project core banking system 13.project core banking system
13.project core banking system
Birjesh Kumar
 
Como disenar un data center adc
Como disenar un data center adcComo disenar un data center adc
Como disenar un data center adc
Daniel Ayosa
 
ASK EHS Safety Services and Consultancy
ASK EHS Safety Services and ConsultancyASK EHS Safety Services and Consultancy
ASK EHS Safety Services and Consultancy
ASK EHS Engineering & Consultants
 
4239 Misys Bank Fusion Presentation
4239 Misys Bank Fusion Presentation4239 Misys Bank Fusion Presentation
4239 Misys Bank Fusion Presentation
sudha_20
 
Core Banking
Core BankingCore Banking
Core Banking
Roy Thomas
 
Weblogic server administration
Weblogic server administrationWeblogic server administration
Weblogic server administration
bispsolutions
 
Nlp in your daily life
Nlp in your daily lifeNlp in your daily life
Nlp in your daily life
UTOPIA LEARNINGS & DEVELOPMENT ACADEMY
 
ISO 22301, ISO 31000, TIA 942 e ISO 27005
ISO 22301, ISO 31000, TIA 942 e ISO 27005ISO 22301, ISO 31000, TIA 942 e ISO 27005
ISO 22301, ISO 31000, TIA 942 e ISO 27005
Melvin Jáquez
 
System architecture for central banks
System architecture for central banksSystem architecture for central banks
System architecture for central banks
Jean-Marc Lepain
 
Storage Consumption and Chargeback
Storage Consumption and ChargebackStorage Consumption and Chargeback
Storage Consumption and Chargeback
brettallison
 
Core Banking Solution PPT of TCS and SBI
Core Banking Solution PPT of TCS and SBICore Banking Solution PPT of TCS and SBI
Core Banking Solution PPT of TCS and SBI
Rajesh Kumar
 
Core banking
Core bankingCore banking
Core banking
Vishal Singla (Agile Practitioner, Senior Scrum Master)
 
Core banking
Core bankingCore banking
Core banking
Rajin Rajan
 
Datacenter
DatacenterDatacenter
Datacenter
veronicaserpa
 
Ad

Similar to Database decommission process (20)

Enable archivelod mode in oracle rac12cR1 with asm location
Enable archivelod mode  in oracle rac12cR1 with asm locationEnable archivelod mode  in oracle rac12cR1 with asm location
Enable archivelod mode in oracle rac12cR1 with asm location
Debasish Nayak
 
12c db upgrade from 11.2.0.4
12c db upgrade from 11.2.0.412c db upgrade from 11.2.0.4
12c db upgrade from 11.2.0.4
uzzal basak
 
Pluggable database tutorial 2
Pluggable database tutorial 2Pluggable database tutorial 2
Pluggable database tutorial 2
Osama Mustafa
 
Physical_Standby_Database_R12.2.4
Physical_Standby_Database_R12.2.4Physical_Standby_Database_R12.2.4
Physical_Standby_Database_R12.2.4
mohammed shahnawaz ahmed
 
Oracle data guard configuration in 12c
Oracle data guard configuration in 12cOracle data guard configuration in 12c
Oracle data guard configuration in 12c
uzzal basak
 
Pluggable database tutorial
Pluggable database tutorialPluggable database tutorial
Pluggable database tutorial
Osama Mustafa
 
br_test_lossof-datafile_10g.doc
br_test_lossof-datafile_10g.docbr_test_lossof-datafile_10g.doc
br_test_lossof-datafile_10g.doc
Lucky Ally
 
oracle dba
oracle dbaoracle dba
oracle dba
uday jampani
 
les04.pdf
les04.pdfles04.pdf
les04.pdf
VAMSICHOWDARY61
 
Data Guard New Features
Data Guard New FeaturesData Guard New Features
Data Guard New Features
xiangrong
 
Oracle ORA Errors
Oracle ORA ErrorsOracle ORA Errors
Oracle ORA Errors
Manish Mudhliyar
 
Convert single instance to RAC
Convert single instance to RACConvert single instance to RAC
Convert single instance to RAC
Satishbabu Gunukula
 
Steps for upgrading the database to 10g release 2
Steps for upgrading the database to 10g release 2Steps for upgrading the database to 10g release 2
Steps for upgrading the database to 10g release 2
nesmaddy
 
How To Control IO Usage using Resource Manager
How To Control IO Usage using Resource ManagerHow To Control IO Usage using Resource Manager
How To Control IO Usage using Resource Manager
Alireza Kamrani
 
Rac nonrac clone
Rac nonrac cloneRac nonrac clone
Rac nonrac clone
stevejones167
 
Less04 Instance
Less04 InstanceLess04 Instance
Less04 Instance
vivaankumar
 
RAC.docx
RAC.docxRAC.docx
RAC.docx
ssuser02862c
 
Liquibase for java developers
Liquibase for java developersLiquibase for java developers
Liquibase for java developers
Illia Seleznov
 
Change DB Name
Change DB NameChange DB Name
Change DB Name
Anar Godjaev
 
oracle upgradation
oracle upgradationoracle upgradation
oracle upgradation
influxbob
 
Enable archivelod mode in oracle rac12cR1 with asm location
Enable archivelod mode  in oracle rac12cR1 with asm locationEnable archivelod mode  in oracle rac12cR1 with asm location
Enable archivelod mode in oracle rac12cR1 with asm location
Debasish Nayak
 
12c db upgrade from 11.2.0.4
12c db upgrade from 11.2.0.412c db upgrade from 11.2.0.4
12c db upgrade from 11.2.0.4
uzzal basak
 
Pluggable database tutorial 2
Pluggable database tutorial 2Pluggable database tutorial 2
Pluggable database tutorial 2
Osama Mustafa
 
Oracle data guard configuration in 12c
Oracle data guard configuration in 12cOracle data guard configuration in 12c
Oracle data guard configuration in 12c
uzzal basak
 
Pluggable database tutorial
Pluggable database tutorialPluggable database tutorial
Pluggable database tutorial
Osama Mustafa
 
br_test_lossof-datafile_10g.doc
br_test_lossof-datafile_10g.docbr_test_lossof-datafile_10g.doc
br_test_lossof-datafile_10g.doc
Lucky Ally
 
Data Guard New Features
Data Guard New FeaturesData Guard New Features
Data Guard New Features
xiangrong
 
Steps for upgrading the database to 10g release 2
Steps for upgrading the database to 10g release 2Steps for upgrading the database to 10g release 2
Steps for upgrading the database to 10g release 2
nesmaddy
 
How To Control IO Usage using Resource Manager
How To Control IO Usage using Resource ManagerHow To Control IO Usage using Resource Manager
How To Control IO Usage using Resource Manager
Alireza Kamrani
 
Liquibase for java developers
Liquibase for java developersLiquibase for java developers
Liquibase for java developers
Illia Seleznov
 
oracle upgradation
oracle upgradationoracle upgradation
oracle upgradation
influxbob
 
Ad

More from K Kumar Guduru (8)

Oms upgrade from 11.1 to 12.1 by Guduru
Oms upgrade from 11.1 to 12.1 by GuduruOms upgrade from 11.1 to 12.1 by Guduru
Oms upgrade from 11.1 to 12.1 by Guduru
K Kumar Guduru
 
12c (12.1) Database installation on Solaris 11(11.2)
12c (12.1) Database  installation on Solaris 11(11.2)12c (12.1) Database  installation on Solaris 11(11.2)
12c (12.1) Database installation on Solaris 11(11.2)
K Kumar Guduru
 
Log shipping pdf
Log shipping pdfLog shipping pdf
Log shipping pdf
K Kumar Guduru
 
Oracle soa suite 12c upgrade types
Oracle soa suite 12c upgrade typesOracle soa suite 12c upgrade types
Oracle soa suite 12c upgrade types
K Kumar Guduru
 
Fusion Middleware 12c Upgrade - Standalone server
Fusion Middleware 12c Upgrade - Standalone serverFusion Middleware 12c Upgrade - Standalone server
Fusion Middleware 12c Upgrade - Standalone server
K Kumar Guduru
 
Oracle Web logic 12c on docker
Oracle Web logic 12c  on dockerOracle Web logic 12c  on docker
Oracle Web logic 12c on docker
K Kumar Guduru
 
Soa bpm standalone_installation
Soa bpm standalone_installationSoa bpm standalone_installation
Soa bpm standalone_installation
K Kumar Guduru
 
WebLogic, 12C SOA Standalone installation
WebLogic, 12C SOA Standalone installation WebLogic, 12C SOA Standalone installation
WebLogic, 12C SOA Standalone installation
K Kumar Guduru
 
Oms upgrade from 11.1 to 12.1 by Guduru
Oms upgrade from 11.1 to 12.1 by GuduruOms upgrade from 11.1 to 12.1 by Guduru
Oms upgrade from 11.1 to 12.1 by Guduru
K Kumar Guduru
 
12c (12.1) Database installation on Solaris 11(11.2)
12c (12.1) Database  installation on Solaris 11(11.2)12c (12.1) Database  installation on Solaris 11(11.2)
12c (12.1) Database installation on Solaris 11(11.2)
K Kumar Guduru
 
Oracle soa suite 12c upgrade types
Oracle soa suite 12c upgrade typesOracle soa suite 12c upgrade types
Oracle soa suite 12c upgrade types
K Kumar Guduru
 
Fusion Middleware 12c Upgrade - Standalone server
Fusion Middleware 12c Upgrade - Standalone serverFusion Middleware 12c Upgrade - Standalone server
Fusion Middleware 12c Upgrade - Standalone server
K Kumar Guduru
 
Oracle Web logic 12c on docker
Oracle Web logic 12c  on dockerOracle Web logic 12c  on docker
Oracle Web logic 12c on docker
K Kumar Guduru
 
Soa bpm standalone_installation
Soa bpm standalone_installationSoa bpm standalone_installation
Soa bpm standalone_installation
K Kumar Guduru
 
WebLogic, 12C SOA Standalone installation
WebLogic, 12C SOA Standalone installation WebLogic, 12C SOA Standalone installation
WebLogic, 12C SOA Standalone installation
K Kumar Guduru
 

Recently uploaded (20)

Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptxIncreasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Anoop Ashok
 
Drupalcamp Finland – Measuring Front-end Energy Consumption
Drupalcamp Finland – Measuring Front-end Energy ConsumptionDrupalcamp Finland – Measuring Front-end Energy Consumption
Drupalcamp Finland – Measuring Front-end Energy Consumption
Exove
 
Technology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data AnalyticsTechnology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data Analytics
InData Labs
 
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
BookNet Canada
 
What is Model Context Protocol(MCP) - The new technology for communication bw...
What is Model Context Protocol(MCP) - The new technology for communication bw...What is Model Context Protocol(MCP) - The new technology for communication bw...
What is Model Context Protocol(MCP) - The new technology for communication bw...
Vishnu Singh Chundawat
 
Quantum Computing Quick Research Guide by Arthur Morgan
Quantum Computing Quick Research Guide by Arthur MorganQuantum Computing Quick Research Guide by Arthur Morgan
Quantum Computing Quick Research Guide by Arthur Morgan
Arthur Morgan
 
Electronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploitElectronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploit
niftliyevhuseyn
 
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc
 
IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...
IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...
IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...
organizerofv
 
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep DiveDesigning Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
ScyllaDB
 
Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025
Splunk
 
How analogue intelligence complements AI
How analogue intelligence complements AIHow analogue intelligence complements AI
How analogue intelligence complements AI
Paul Rowe
 
Complete Guide to Advanced Logistics Management Software in Riyadh.pdf
Complete Guide to Advanced Logistics Management Software in Riyadh.pdfComplete Guide to Advanced Logistics Management Software in Riyadh.pdf
Complete Guide to Advanced Logistics Management Software in Riyadh.pdf
Software Company
 
Procurement Insights Cost To Value Guide.pptx
Procurement Insights Cost To Value Guide.pptxProcurement Insights Cost To Value Guide.pptx
Procurement Insights Cost To Value Guide.pptx
Jon Hansen
 
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdfSAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
Precisely
 
Build Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For DevsBuild Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For Devs
Brian McKeiver
 
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath MaestroDev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
UiPathCommunity
 
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager APIUiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPathCommunity
 
Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)
Ortus Solutions, Corp
 
Big Data Analytics Quick Research Guide by Arthur Morgan
Big Data Analytics Quick Research Guide by Arthur MorganBig Data Analytics Quick Research Guide by Arthur Morgan
Big Data Analytics Quick Research Guide by Arthur Morgan
Arthur Morgan
 
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptxIncreasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Anoop Ashok
 
Drupalcamp Finland – Measuring Front-end Energy Consumption
Drupalcamp Finland – Measuring Front-end Energy ConsumptionDrupalcamp Finland – Measuring Front-end Energy Consumption
Drupalcamp Finland – Measuring Front-end Energy Consumption
Exove
 
Technology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data AnalyticsTechnology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data Analytics
InData Labs
 
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
BookNet Canada
 
What is Model Context Protocol(MCP) - The new technology for communication bw...
What is Model Context Protocol(MCP) - The new technology for communication bw...What is Model Context Protocol(MCP) - The new technology for communication bw...
What is Model Context Protocol(MCP) - The new technology for communication bw...
Vishnu Singh Chundawat
 
Quantum Computing Quick Research Guide by Arthur Morgan
Quantum Computing Quick Research Guide by Arthur MorganQuantum Computing Quick Research Guide by Arthur Morgan
Quantum Computing Quick Research Guide by Arthur Morgan
Arthur Morgan
 
Electronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploitElectronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploit
niftliyevhuseyn
 
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc
 
IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...
IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...
IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...
organizerofv
 
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep DiveDesigning Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
ScyllaDB
 
Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025
Splunk
 
How analogue intelligence complements AI
How analogue intelligence complements AIHow analogue intelligence complements AI
How analogue intelligence complements AI
Paul Rowe
 
Complete Guide to Advanced Logistics Management Software in Riyadh.pdf
Complete Guide to Advanced Logistics Management Software in Riyadh.pdfComplete Guide to Advanced Logistics Management Software in Riyadh.pdf
Complete Guide to Advanced Logistics Management Software in Riyadh.pdf
Software Company
 
Procurement Insights Cost To Value Guide.pptx
Procurement Insights Cost To Value Guide.pptxProcurement Insights Cost To Value Guide.pptx
Procurement Insights Cost To Value Guide.pptx
Jon Hansen
 
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdfSAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
Precisely
 
Build Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For DevsBuild Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For Devs
Brian McKeiver
 
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath MaestroDev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
UiPathCommunity
 
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager APIUiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPathCommunity
 
Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)
Ortus Solutions, Corp
 
Big Data Analytics Quick Research Guide by Arthur Morgan
Big Data Analytics Quick Research Guide by Arthur MorganBig Data Analytics Quick Research Guide by Arthur Morgan
Big Data Analytics Quick Research Guide by Arthur Morgan
Arthur Morgan
 

Database decommission process

  • 1. Database Decommission Process  Please note below activity is reference to 2 node RAC.  Verify recent backup of the database (Latest Backup). If exist, please ignore otherwise run RMAN full backup  Connect to EM Console (sysman/***) and Block out Database cluster  Comment/Remove all entries in CronTab belongs to the database which will under-go decommission process  Connect to Oracle Node1 -bash-3.2$ sqlplus / as sysdba SQL*Plus: Release 11.2.0.1.0 Production on Mon Nov 26 22:28:28 2012 Copyright (c) 1982, 2009, Oracle. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 – 64bit Production With the Partitioning, Real Application Clusters, OLAP, Data Mining and Real Application Testing options Use the below commands to verify database and instance details.  Ensure to check the DB name which will be processed for decommission SQL> select dbid, name from v$database; SQL> select INSTANCE_NUMBER, INSTANCE_NAME from v$instance;  Shutdown the Database on node-2 -bash-3.2$ sqlplus / as sysdba SQL*Plus: Release 11.2.0.1.0 Production on Mon Nov 26 22:31:05 2012 Copyright (c) 1982, 2009, Oracle. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 – 64bit Production With the Partitioning, Real Application Clusters, OLAP, Data Mining and Real Application Testing options  Ensure to check the DB name which will be processed for decommission SQL> select dbid, name from v$database; SQL> select INSTANCE_NUMBER, INSTANCE_NAME from v$instance; SQL> shutdown immediate; Database closed. Database dismounted. ORACLE instance shut down.  Startup database in restricted mode on node-1 to avoid any new connections to DB  Connect to Node -1 SQL> select dbid, name from v$database; SQL> select INSTANCE_NUMBER, INSTANCE_NAME from v$instance; SQL> shutdown immediate; Database closed. Database dismounted. ORACLE instance shut down. SQL> startup mount RESTRICT; ORACLE instance started. Total System Global Area 263049216 bytes Fixed Size 2212448 bytes Variable Size 201330080 bytes Database Buffers 54525952 bytes Redo Buffers 4980736 bytes Database mounted.  Drop database from node-1 SQL> alter system set cluster_database=FALSE scope=spfile; System altered.  Create pfile from spfile SQL> create pfile from spfile; File created.  Connect to DB in same node, now if we observe we will be connected to “idle” instance -bash-3.2$ sqlplus / as sysdba SQL*Plus: Release 11.2.0.1.0 Production on Mon Nov 26 22:48:38 2012 Copyright (c) 1982, 2009, Oracle. All rights reserved. Connected to an idle instance.
  • 2. Database Decommission Process  Start up the DB in mount stage with created PFILE by providing its location as below shown SQL> STARTUP pfile=$ORACLE_HOME/dbs/initdbname.ora MOUNT RESTRICT; ORACLE instance started. Total System Global Area 263049216 bytes Fixed Size 2212448 bytes Variable Size 201330080 bytes Database Buffers 54525952 bytes Redo Buffers 4980736 bytes Database mounted.  Cross verify the instance name before drop SQL> show parameter instance_name from v$database; SQL> drop database; Database dropped  Now that DB is dropped, let us remove the services & instances, from OS level using below commands. $srvctl remove instance -d <database name> -i <instance name> -f $srvctl remove instance -d <database name> -i <instance name> -f  As we removed instances, let us remove services associated with them, before removing check the services running in the server $ crs_stat.sh |grep -i <DB name>(to check CRS services) ora.<DB_Name>.<DB_Name>_app.svc OFFLINE OFFLINE <hostname> STABLE ora.<DB_Name>.<DB_Name>_app.svc OFFLINE OFFLINE <hostname> STABLE ora.<DB_Name>.<DB_Name>_bat.svc OFFLINE OFFLINE <hostname> STABLE ora.<DB_Name>.<DB_Name>_bat.svc OFFLINE OFFLINE <hostname> STABLE ora.<DB_Name>.db OFFLINE OFFLINE <hostname> Instance Shutdown,ST  Above is the output expected from “grep” command Now, let’s remove these services to complete DB decommission by using below commands at server level $srvctl remove service -d <DB_Name> -s <DB_Name>_app $srvctl remove service -d <DB_Name> -s <DB_Name>_bat $srvctl remove database -d <DB_Name>  Finally, remove the target from Oracle Enterprise Management Done!!!