SlideShare uma empresa Scribd logo
1 de 33
 17+ Years of Experience in Oracle, SQLServer Database Technologies
 Have experience on wide range of products such as Oracle Agile, Hyperion, SAP Basis, MySQL,
SQLServer, BOXI ,DS, HANA, Tableau,…etc.
Written articles for major publications
Oracle Certified Professional Oracle 8i,9i,10g
Oracle Certified Expert Oracle 10g RAC
Oracle ACE
http://www.oracleracexpert.com
http://www.sqlserver-expert.com
Presented by
Satishbabu Gunukula
Disclaimer
 This content/views in this slides are those of the author and do
not reflect that of Oracle corporation and/or its affiliates,
employer, ex-employer, clients. The material in this document
is for information purpose only and is published with no
warranty, guarantee or implied.
 This material should not be reproduced or used with out the
author’s written permission.
Agenda
 Oracle RAC and its Benefits
 Overview of different RAC conversion methods
 Overview of different Storage options
 Convert Single instance to Oracle RAC Using RMAN
 Overview
 Prerequisites
 Demonstration
 Check the logs
 Post Conversion Steps
 References
 Contact Info
 Q&A
Why Oracle RAC & Benefits?
The Oracle RAC removes the ability of a single point of failure of server
in any database application environment.
 Scalability
 High Availability
 Reliability
 Recoverability
 Continue Operations
 Error Detection
 Lower in Cost
 Ease of Administration
 Grid Computing
 Oracle Provides different conversion methods
1. DBCA
2. RCONFIG (From 10g R2)
3. Enterprise Manager
4. Manual (Using RMAN)
Different RAC Conversion Methods
 Different storage options available in Oracle RAC
 ASM – Automatic Storage Management
 RAW – Raw devices
 CFS – Vendor Cluster file System (OCFS,QFS,GXFs…Etc.)
 NFS - Network File system (Certificated NAS)
Refer Oracle documentation for more information
http://docs.oracle.com/cd/E11882_01/server.112/e18951/toc.htm
Different Storage Options
RMAN is one of the best practice to convert single instance to RAC
We are using two phase approach for conversion
1. Duplicate single instance Non-ASM database to ASM - Using RMAN
DUPLICATE command copy the single instance database to RAC Server
2. Manually Convert single-instance to RAC – Create undo, redo, init.ora with
cluster parameters and start the instances on all the nodes in the cluster
Overview: Convert Single instance to RAC
RMAN is a command-line and Enterprise Manager based tool
 Advantages
 Full control over the conversion process
 Optimize the performance of Database duplication
 Ability to migration Non-ASM to ASM storage
 Disadvantages
 Database downtime required.
 Manual conversion process
Overview: Advantages/Disadvantages
 Oracle RAC
 Hardware and Operating System architecture must be same.
 Clustware is installed & configured on all the nodes in the cluster.
 Same Oracle version installed as source (Single instance).
 ASM is installed & configured with required ASM Diskgroups
Note: If you want to upgrade to higher version, then the preferred
method is fist upgrade your existing single instance database to
higher version, test and migrate to RAC.
Pre-requisites:
Hostname Database Name Instance Name Database Storage
orasrv DBORA DBORA ext3
Demonstration:
Overview of Non-RAC environment
Overview of RAC environment
Hostname Database Name Instance Name Database Storage
orarac1 RACDB RACDB1 ASM
orarac2 RACDB RACDB2 ASM
Oracle Version: 11.2.0. 1
O/S: REHL: 5.4
ASM Disk Groups: +DATA, +FLASH
Estimate used space for Non-RAC Database
Run the Query on Non-RAC instance to estimate the used space
Select DF.TOTAL/1073741824 "DataFile Size GB",
LOG.TOTAL/1073741824 "Redo Log Size GB",
CONTROL.TOTAL/1073741824 "Control File Size GB",
(DF.TOTAL + LOG.TOTAL + CONTROL.TOTAL)/ 1073741824 "Total Size GB"
from dual, (select sum(a.bytes) TOTAL from dba_data_files a) DF,
(select sum(b.bytes) TOTAL from v$log b) LOG,
(select sum((cffsz+1)*cfbsz) TOTAL from x$kcccf c) CONTROL;
Create init.ora and password file for RAC
Take a copy of init.ora parameter from single instance to Node1 on RAC and add update
the ASM Disk group information as per your requirement
For ex:-
# set the location of the duplicate clone control file.
control_files =‘+DATA’, ‘+FLASH’
#set the below parameters for default location of data files
db_create_file_dest='+DATA'
#set the below parameters for default location of recovery area
db_recovery_file_dest='+FLASH'
# set below parameter to create two members for each redo
db_create_online_dest_1=’+DATA’
db_create_online_dest_2=’+FLASH’
# set two destinations if you want to multiplex the archive logs
log_archive_dest_1='location=+DATA'
log_archive_dest_2='location=+FLASH'
Note: Here we are not using e are not using DB_FILE_NAME_CONVERT,
LOG_FILE_NAME_CONVERT parameters. If your data/redo files are not spread
across multiple directories then I would recommend to use this option.
Create password file
[oracle@orarac1]$ export ORACLE_SID=RACDB
[oracle@orarac1]$ export ORACLE_HOME=/home/oracle/product/v11201
[oracle@orarac1]$ orapwd file= $ORACLE_HOME/dbs/orapwRACDB
password=xxxxxxx
Create init.ora and password file for RAC
Create a static listener for on RAC node1 under $ORACLE_HOME/network/admin
and reload, because auxiliary database will not register itself with the listener.
[oracle@orarac1]$ cat $ORACLE_HOME/network/admin/listener.ora
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = RACDB)
(ORACLE_HOME = /home/oracle/product/v11201)
(SID_NAME = RACDB)
)
)
Configure listener on RAC node1
Add TNS entry in $ORACLE_HOME/network/admin/tnsnames.ora file on Non-
RAC Server to connect to Auxiliary instance.
[oracle@orasrv]$ cat $ORACLE_HOME/network/admin/tnsnames.ora
RACDB=
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = orarac1)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = RACDB)
)
)
Add TNS Entry on Non-RAC
Take a backup of Non-RAC Database
Take a backup of Non-RAC database and archive logs.
[oracle@orasrv]$ rman TARGET / CATALOG rman/xxxxx@rmancat
RMAN> run{
allocate channel d1 type disk;
allocate channel d2 type disk;
backup
tag 'full_online_backup'
database format
'/backup/rman/ORADB/dbsdf_online_%d_t%t_s%s_p%p.rmn';
sql "alter system archive log current";
backup archivelog all delete input format
'/backup/rman/ORADB/archdf_%d_t%t_s%s_p%p.rmn';
release channel d1;
release channel d2;
}
Here we are backing the database to a NFS file system/ backup/rman/ORADB.
Mount this file system on RAC node1 for duplication process.
Start the auxiliary database in NOMOUNT mode on RAC node1
[oracle@orarac1]$ export ORACLE_SID=RACDB
[oracle@orarac1]$ exportORACLE_HOME=/home/oracle/product/v11201
[orcle@orarac1] $ sqlplus /nolog
SQL*Plus: Release 11.2.0.1.0 Production on Tue Mar 3 12:59:28 2012
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
SQL> connect / as sysdba
Connected to an idle instance.
SQL> startup nomount
Start the Database in NOMOUNT on RAC
Duplicate Database to RAC Server
In order to duplicate you should connect to target database and auxiliary database
started in NOMOUNT mode and also RMAN catalog, if using.
RMAN restores the data files and performs the recovery using all available backups and
archive logs . After recovery is completed RMAN restarts the duplicate database
(auxiliary database) and opens with the RESETLOGS option and generates a new DBID
for duplicate database.
Duplicate Database to RAC Server
Duplicate Database script contents
connect catalog rman/xxxxxxxx@rmancat
connect target /
connect auxiliary sys/xxxxxxx@RACDB
run{
allocate channel d1 device type disk;
allocate channel d2 device type disk;
allocate auxiliary channel a1 device type disk;
allocate auxiliary channel a2 device type disk;
duplicate target database to RACDB
pfile=/home/oracle/product/v11201/dbs/initRACDB.ora
logfile
group 1 ('+DATA','+FLASH') SIZE 50M reuse,
group 2 ('+DATA','+FLASH') SIZE 50M reuse;
release channel d1;
release channel d2; }
Convert Single Instance to RAC
We have duplicated single instance Non-ASM database to ASM on
RAC Server. Review Database alert_RACDB.log on RAC node1
We need to Convert single-instance to RAC
Create redo and undo for second instance
Create second thread of online redo logs in order to start instance 2
SYS@RACDB> alter database add logfile thread 2 group 3 ('+DATA’,'+FLASH’) size 50m;
SYS@RACDB > alter database add logfile thread 2 group 4 ('+DATA’,'+FLASH’) size 50m;
enable thread 2
SYS@RACDB > alter database enable public thread 2;
Create undo tablesapce for second instance.
SYS@RACDB> create undo tablespace UNDOTBS2 datafile '+DATA' size 500M;
Add cluster parameters
Add Cluster related parameters based on your configuration to parameter file
*.cluster_database_instances=2
*.cluster_database=true
*.remote_listener='LISTENERS_RACDB’
RACDB1.instance_number=1
RACDB2.instance_number=2
RACDB1.thread=1
RACDB2.thread=2
RACDB1.undo_tablespace='UNDOTBS1'
RACDB2.undo_tablespace='UNDOTBS2‘
update the actual controlfile path
*.control_files='+DATA/RACDB/controlfile/current.256.654542941','+FLASH/RACDB/c
ontrolfile/current.256.6232312941'
Starts instances on all the nodes in RAC
Set the environment variable for each instance, recreate the password & parameter file
and start the instances individually on two different nodes
[oracle@orarac1]$ export ORACLE_SID=RACDB1
[oracle@orarac1]$ export ORACLE_HOME=/home/oracle/product/v11201
[oracle@orarac1]$ orapwd file= $ORACLE_HOME/dbs/orapwRACDB1 password=xxxxx
[oracle@orarac1]$ sqlplus /nolog
SQL> Startup
[oracle@orarac2]$ export ORACLE_SID=RACDB2
[oracle@orarac2]$ export ORACLE_HOME=/home/oracle/product/v11201
[oracle@orarac2]$ orapwd file= $ORACLE_HOME/dbs/orapwRACDB2 password=xxxxx
oracle@orarac2]$ sqlplus /nolog
SQL> Startup
Register the RAC instances with CRS
Register the database instances with CRS framework
[oracle@orarac1]$ srvctl add database -d RACDB -o /home/oracle/product/v11201
[oracle@orarac1]$ srvctl add instance -d RACDB -i RACDB1 -n orarac1
[oracle@orarac1]$ srvctl add instance -d RACDB -i RACDB2 -n orarac2
CRS should able to manage the instances and also it should automatically startup
the instances when the servers are rebooted
Start/ Stop database using srvctl
After registering the database/instances with CRS, we should able to
manage using srvctl.
Stop the database
[oracle@orarac1]$ srvctl stop database -d RACDB
Start the database
[oracle@orarac1]$ srvctl start database -d RACDB
Check the logs
Check the log files to see the issues/errors, if any.
Database
ADR_BASE/diag/product_type/product_id/instance_id/alert_RACDB1.log
ADR_BASE/diag/product_type/product_id/instance_id/alert_RACDB2.log
Cluster
CRS_HOME/log/hostname/crsd/ - The log files for the CRS daemon
CRS_HOME/log/hostname/cssd/ - The log files for the CSS daemon
CRS_HOME/log/hostname/evmd/ - The log files for the EVM daemon
CRS_HOME/log/hostname/client/ - The log files for the Oracle Cluster Registry
CRS_HOME/log/hostname/racg/ - The log files for the Oracle RAC high availability
CRS_HOME/log/hostname/racg - The log files for the Oracle RAC high availability
CRS_HOME/log/hostanme/alert.log – The alert.log for Clusterware issues.
Note:- CRS_HOME is the directory in which the Oracle Clusterware software was installed
and hostname is the name of the node.
Post conversion Steps
 Drop the static listener and used for duplication
 Configure the listener and tnsnames using NETCA, refer below link
http://docs.oracle.com/cd/E11882_01/network.112/e10836/listenercfg.htm
 Configure TAF & Load balancing according to application requiement
 Setup Database Backup and OCR Backup
 More SGA recommended for RAC and size according to work load
Best Practices, Tips & Hints
 If you install software in shared Oracle home you cannot able to perform rolling
upgrade, So avoid using shared Oracle home
 For redundancy Multiplex controlfile, redo logs and archive logs across the disk groups
 Use RMAN incrementally updated feature to reduce restoration time especially when
Recovery time Objective (RTO) is set for mission critical database.
 Prior to installing oracle software validate the cluster infrastructure, it will save
considerable time and potential headaches.
 Avoid a cross-over cable and use Fastest possible interconnect
 Auto backup feature will enable RMAN to recover the database even if the controlfile,
catalog and spfile are lost.
References
Oracle RAC & ASM
1. Oracle high availability Solutions
http://www.oracle.com/technetwork/database/features/availability/index.html
2. Oracle Documentation for OS specific Installation and Configuration
http://www.oracle.com/pls/db1112/portal.portal_db?selected=16
3. Oracle Documentation on Convert single instance to RAC
http://docs.oracle.com/cd/E11882_01/install.112/e24660/cvrt2rac.htm#RILIN1137
4. Oracle Documentation on ASM
http://docs.oracle.com/cd/E11882_01/server.112/e18951/toc.htm
5. ASM Technical Best Practices Metalink Note ID: 265633.1
References
Oracle RMAN
1. Oracle Documentation on Oracle Recovery Manager
http://docs.oracle.com/cd/E11882_01/rac.112/e16795/rman.htm
2. Oracle RMAN New Features in Oracle 11g
http://www.oracleracexpert.com/2011/12/oracle-recovery-managerrman-new.html
3. Understand Oracle RMAN Reporting
http://www.oracleracexpert.com/2011/06/understand-oracle-rman-reporting.html
Contact info
Thanks for attending the Webinar
You can reach me at SatishbabuGunukula@gmail.com
Visit MyBlog http://www.oracleracexpert.com
Thank you.

Mais conteúdo relacionado

Mais procurados

Oracle db performance tuning
Oracle db performance tuningOracle db performance tuning
Oracle db performance tuning
Simon Huang
 
Christo kutrovsky oracle, memory & linux
Christo kutrovsky   oracle, memory & linuxChristo kutrovsky   oracle, memory & linux
Christo kutrovsky oracle, memory & linux
Kyle Hailey
 
[Oracle DBA & Developer Day 2016] しばちょう先生の特別講義!!ストレージ管理のベストプラクティス ~ASMからExada...
[Oracle DBA & Developer Day 2016] しばちょう先生の特別講義!!ストレージ管理のベストプラクティス ~ASMからExada...[Oracle DBA & Developer Day 2016] しばちょう先生の特別講義!!ストレージ管理のベストプラクティス ~ASMからExada...
[Oracle DBA & Developer Day 2016] しばちょう先生の特別講義!!ストレージ管理のベストプラクティス ~ASMからExada...
オラクルエンジニア通信
 
What's new in Oracle 19c & 18c Recovery Manager (RMAN)
What's new in Oracle 19c & 18c Recovery Manager (RMAN)What's new in Oracle 19c & 18c Recovery Manager (RMAN)
What's new in Oracle 19c & 18c Recovery Manager (RMAN)
Satishbabu Gunukula
 

Mais procurados (20)

My First 100 days with an Exadata (PPT)
My First 100 days with an Exadata (PPT)My First 100 days with an Exadata (PPT)
My First 100 days with an Exadata (PPT)
 
Oracle db performance tuning
Oracle db performance tuningOracle db performance tuning
Oracle db performance tuning
 
Oracle RAC 12c Overview
Oracle RAC 12c OverviewOracle RAC 12c Overview
Oracle RAC 12c Overview
 
Oracle RAC Virtualized - In VMs, in Containers, On-premises, and in the Cloud
Oracle RAC Virtualized - In VMs, in Containers, On-premises, and in the CloudOracle RAC Virtualized - In VMs, in Containers, On-premises, and in the Cloud
Oracle RAC Virtualized - In VMs, in Containers, On-premises, and in the Cloud
 
Oracle RAC - New Generation
Oracle RAC - New GenerationOracle RAC - New Generation
Oracle RAC - New Generation
 
ORACLE 12C DATA GUARD: FAR SYNC, REAL-TIME CASCADE STANDBY AND OTHER GOODIES
ORACLE 12C DATA GUARD: FAR SYNC, REAL-TIME CASCADE STANDBY AND OTHER GOODIESORACLE 12C DATA GUARD: FAR SYNC, REAL-TIME CASCADE STANDBY AND OTHER GOODIES
ORACLE 12C DATA GUARD: FAR SYNC, REAL-TIME CASCADE STANDBY AND OTHER GOODIES
 
Oracle_Multitenant_19c_-_All_About_Pluggable_D.pdf
Oracle_Multitenant_19c_-_All_About_Pluggable_D.pdfOracle_Multitenant_19c_-_All_About_Pluggable_D.pdf
Oracle_Multitenant_19c_-_All_About_Pluggable_D.pdf
 
New Generation Oracle RAC Performance
New Generation Oracle RAC PerformanceNew Generation Oracle RAC Performance
New Generation Oracle RAC Performance
 
MySQL Database Architectures - InnoDB ReplicaSet & Cluster
MySQL Database Architectures - InnoDB ReplicaSet & ClusterMySQL Database Architectures - InnoDB ReplicaSet & Cluster
MySQL Database Architectures - InnoDB ReplicaSet & Cluster
 
Data Guard Architecture & Setup
Data Guard Architecture & SetupData Guard Architecture & Setup
Data Guard Architecture & Setup
 
Oracle RAC 19c - the Basis for the Autonomous Database
Oracle RAC 19c - the Basis for the Autonomous DatabaseOracle RAC 19c - the Basis for the Autonomous Database
Oracle RAC 19c - the Basis for the Autonomous Database
 
MySQL InnoDB Cluster - New Features in 8.0 Releases - Best Practices
MySQL InnoDB Cluster - New Features in 8.0 Releases - Best PracticesMySQL InnoDB Cluster - New Features in 8.0 Releases - Best Practices
MySQL InnoDB Cluster - New Features in 8.0 Releases - Best Practices
 
MySQL InnoDB Cluster - A complete High Availability solution for MySQL
MySQL InnoDB Cluster - A complete High Availability solution for MySQLMySQL InnoDB Cluster - A complete High Availability solution for MySQL
MySQL InnoDB Cluster - A complete High Availability solution for MySQL
 
Christo kutrovsky oracle, memory & linux
Christo kutrovsky   oracle, memory & linuxChristo kutrovsky   oracle, memory & linux
Christo kutrovsky oracle, memory & linux
 
AIOUG-GroundBreakers-Jul 2019 - 19c RAC
AIOUG-GroundBreakers-Jul 2019 - 19c RACAIOUG-GroundBreakers-Jul 2019 - 19c RAC
AIOUG-GroundBreakers-Jul 2019 - 19c RAC
 
The Oracle RAC Family of Solutions - Presentation
The Oracle RAC Family of Solutions - PresentationThe Oracle RAC Family of Solutions - Presentation
The Oracle RAC Family of Solutions - Presentation
 
[Oracle DBA & Developer Day 2016] しばちょう先生の特別講義!!ストレージ管理のベストプラクティス ~ASMからExada...
[Oracle DBA & Developer Day 2016] しばちょう先生の特別講義!!ストレージ管理のベストプラクティス ~ASMからExada...[Oracle DBA & Developer Day 2016] しばちょう先生の特別講義!!ストレージ管理のベストプラクティス ~ASMからExada...
[Oracle DBA & Developer Day 2016] しばちょう先生の特別講義!!ストレージ管理のベストプラクティス ~ASMからExada...
 
ProxySQL High Avalability and Configuration Management Overview
ProxySQL High Avalability and Configuration Management OverviewProxySQL High Avalability and Configuration Management Overview
ProxySQL High Avalability and Configuration Management Overview
 
What's new in Oracle 19c & 18c Recovery Manager (RMAN)
What's new in Oracle 19c & 18c Recovery Manager (RMAN)What's new in Oracle 19c & 18c Recovery Manager (RMAN)
What's new in Oracle 19c & 18c Recovery Manager (RMAN)
 
All of the Performance Tuning Features in Oracle SQL Developer
All of the Performance Tuning Features in Oracle SQL DeveloperAll of the Performance Tuning Features in Oracle SQL Developer
All of the Performance Tuning Features in Oracle SQL Developer
 

Destaque

Time for Change: Migrate your Non-RAC Database to RAC
Time for Change: Migrate your Non-RAC Database to RACTime for Change: Migrate your Non-RAC Database to RAC
Time for Change: Migrate your Non-RAC Database to RAC
Satishbabu Gunukula
 
GEAR UP Final Report UPDATE 4 13 15
GEAR UP Final Report UPDATE 4 13 15GEAR UP Final Report UPDATE 4 13 15
GEAR UP Final Report UPDATE 4 13 15
Brian Risi
 
Air refrigeration system by Bell Coleman cycle and Vortex tube
Air refrigeration system by Bell Coleman cycle and Vortex tubeAir refrigeration system by Bell Coleman cycle and Vortex tube
Air refrigeration system by Bell Coleman cycle and Vortex tube
aparnamalyala
 
Refrigeration and air conditioning system
Refrigeration and air conditioning systemRefrigeration and air conditioning system
Refrigeration and air conditioning system
bikramstalion
 
refrigeration and air conditioning
refrigeration and air conditioningrefrigeration and air conditioning
refrigeration and air conditioning
Gear Abohar
 

Destaque (20)

Time for Change: Migrate your Non-RAC Database to RAC
Time for Change: Migrate your Non-RAC Database to RACTime for Change: Migrate your Non-RAC Database to RAC
Time for Change: Migrate your Non-RAC Database to RAC
 
Oracle RAC One Node 12c Overview
Oracle RAC One Node 12c OverviewOracle RAC One Node 12c Overview
Oracle RAC One Node 12c Overview
 
Install oracle binaris or clonse oracle home
Install oracle binaris or clonse oracle homeInstall oracle binaris or clonse oracle home
Install oracle binaris or clonse oracle home
 
GEAR UP Final Report UPDATE 4 13 15
GEAR UP Final Report UPDATE 4 13 15GEAR UP Final Report UPDATE 4 13 15
GEAR UP Final Report UPDATE 4 13 15
 
Anil nair rac_internals_sangam_2016
Anil nair rac_internals_sangam_2016Anil nair rac_internals_sangam_2016
Anil nair rac_internals_sangam_2016
 
What's New with 12c ASM
What's New with 12c ASMWhat's New with 12c ASM
What's New with 12c ASM
 
Gear and Gear trains
Gear and Gear trainsGear and Gear trains
Gear and Gear trains
 
Gears
GearsGears
Gears
 
VAM ppt
VAM  pptVAM  ppt
VAM ppt
 
Air refrigeration system used in aircraft
Air refrigeration system used in aircraftAir refrigeration system used in aircraft
Air refrigeration system used in aircraft
 
Boot strap air cooling system
Boot strap air cooling systemBoot strap air cooling system
Boot strap air cooling system
 
Air refrigeration system by Bell Coleman cycle and Vortex tube
Air refrigeration system by Bell Coleman cycle and Vortex tubeAir refrigeration system by Bell Coleman cycle and Vortex tube
Air refrigeration system by Bell Coleman cycle and Vortex tube
 
Refrigeration and air conditioning system
Refrigeration and air conditioning systemRefrigeration and air conditioning system
Refrigeration and air conditioning system
 
Kinematics of machines - Gear and Gear trains
Kinematics of machines - Gear and Gear trainsKinematics of machines - Gear and Gear trains
Kinematics of machines - Gear and Gear trains
 
153 Oracle dba interview questions
153 Oracle dba interview questions153 Oracle dba interview questions
153 Oracle dba interview questions
 
Oracle Flex ASM - What’s New and Best Practices by Jim Williams
Oracle Flex ASM - What’s New and Best Practices by Jim WilliamsOracle Flex ASM - What’s New and Best Practices by Jim Williams
Oracle Flex ASM - What’s New and Best Practices by Jim Williams
 
Gear and Gear trains ppt
Gear and Gear trains pptGear and Gear trains ppt
Gear and Gear trains ppt
 
refrigeration and air conditioning
refrigeration and air conditioningrefrigeration and air conditioning
refrigeration and air conditioning
 
Study of Gear Technology
Study of Gear TechnologyStudy of Gear Technology
Study of Gear Technology
 
Oracle RAC 12c (12.1.0.2) Operational Best Practices - A result of true colla...
Oracle RAC 12c (12.1.0.2) Operational Best Practices - A result of true colla...Oracle RAC 12c (12.1.0.2) Operational Best Practices - A result of true colla...
Oracle RAC 12c (12.1.0.2) Operational Best Practices - A result of true colla...
 

Semelhante a Convert single instance to RAC

Muhammad Hameed Chaudhry
Muhammad Hameed ChaudhryMuhammad Hameed Chaudhry
Muhammad Hameed Chaudhry
Aamir Chaudhry
 
2011 384 hackworth_ppt
2011 384 hackworth_ppt2011 384 hackworth_ppt
2011 384 hackworth_ppt
maclean liu
 
Upgrade 10204-to-10205 on-2-node_rac_linux_x86_64_detail-steps_v0.1
Upgrade 10204-to-10205 on-2-node_rac_linux_x86_64_detail-steps_v0.1Upgrade 10204-to-10205 on-2-node_rac_linux_x86_64_detail-steps_v0.1
Upgrade 10204-to-10205 on-2-node_rac_linux_x86_64_detail-steps_v0.1
Raheel Syed
 
Adventures in Dataguard
Adventures in DataguardAdventures in Dataguard
Adventures in Dataguard
Jason Arneil
 
oracle upgradation
oracle upgradationoracle upgradation
oracle upgradation
influxbob
 
Oracle applications 11i hot backup cloning with rapid clone
Oracle applications 11i hot backup cloning with rapid cloneOracle applications 11i hot backup cloning with rapid clone
Oracle applications 11i hot backup cloning with rapid clone
Deepti Singh
 

Semelhante a Convert single instance to RAC (20)

Sun oracle-maa-060407
Sun oracle-maa-060407Sun oracle-maa-060407
Sun oracle-maa-060407
 
oracle dba
oracle dbaoracle dba
oracle dba
 
Muhammad Hameed Chaudhry
Muhammad Hameed ChaudhryMuhammad Hameed Chaudhry
Muhammad Hameed Chaudhry
 
Oracle data guard configuration in 12c
Oracle data guard configuration in 12cOracle data guard configuration in 12c
Oracle data guard configuration in 12c
 
Oracle Fleet Patching and Provisioning Deep Dive Webcast Slides
Oracle Fleet Patching and Provisioning Deep Dive Webcast SlidesOracle Fleet Patching and Provisioning Deep Dive Webcast Slides
Oracle Fleet Patching and Provisioning Deep Dive Webcast Slides
 
2011 384 hackworth_ppt
2011 384 hackworth_ppt2011 384 hackworth_ppt
2011 384 hackworth_ppt
 
gDBClone - Database Clone “onecommand Automation Tool”
gDBClone - Database Clone “onecommand Automation Tool”gDBClone - Database Clone “onecommand Automation Tool”
gDBClone - Database Clone “onecommand Automation Tool”
 
Physical_Standby_Database_R12.2.4
Physical_Standby_Database_R12.2.4Physical_Standby_Database_R12.2.4
Physical_Standby_Database_R12.2.4
 
Rac&asm
Rac&asmRac&asm
Rac&asm
 
What we unlearned_and_learned_by_moving_from_m9000_to_ssc_ukoug2014
What we unlearned_and_learned_by_moving_from_m9000_to_ssc_ukoug2014What we unlearned_and_learned_by_moving_from_m9000_to_ssc_ukoug2014
What we unlearned_and_learned_by_moving_from_m9000_to_ssc_ukoug2014
 
Data Guard on EBS R12 DB 10g
Data Guard on EBS R12 DB 10gData Guard on EBS R12 DB 10g
Data Guard on EBS R12 DB 10g
 
Upgrade 10204-to-10205 on-2-node_rac_linux_x86_64_detail-steps_v0.1
Upgrade 10204-to-10205 on-2-node_rac_linux_x86_64_detail-steps_v0.1Upgrade 10204-to-10205 on-2-node_rac_linux_x86_64_detail-steps_v0.1
Upgrade 10204-to-10205 on-2-node_rac_linux_x86_64_detail-steps_v0.1
 
RMAN in 12c: The Next Generation (WP)
RMAN in 12c: The Next Generation (WP)RMAN in 12c: The Next Generation (WP)
RMAN in 12c: The Next Generation (WP)
 
Oracle 12cR2 RAC Database Software Installation and Create Database
Oracle 12cR2 RAC Database Software Installation and Create DatabaseOracle 12cR2 RAC Database Software Installation and Create Database
Oracle 12cR2 RAC Database Software Installation and Create Database
 
les04.pdf
les04.pdfles04.pdf
les04.pdf
 
Adventures in Dataguard
Adventures in DataguardAdventures in Dataguard
Adventures in Dataguard
 
DEEPAK
DEEPAKDEEPAK
DEEPAK
 
How oracle 12c flexes its muscles against oracle 11g r2 final
How oracle 12c flexes its muscles against oracle 11g r2 finalHow oracle 12c flexes its muscles against oracle 11g r2 final
How oracle 12c flexes its muscles against oracle 11g r2 final
 
oracle upgradation
oracle upgradationoracle upgradation
oracle upgradation
 
Oracle applications 11i hot backup cloning with rapid clone
Oracle applications 11i hot backup cloning with rapid cloneOracle applications 11i hot backup cloning with rapid clone
Oracle applications 11i hot backup cloning with rapid clone
 

Mais de Satishbabu Gunukula

Understand oracle real application cluster
Understand oracle real application clusterUnderstand oracle real application cluster
Understand oracle real application cluster
Satishbabu Gunukula
 

Mais de Satishbabu Gunukula (13)

Oracle Database 23c Security New Features.pptx
Oracle Database 23c Security New Features.pptxOracle Database 23c Security New Features.pptx
Oracle Database 23c Security New Features.pptx
 
Oracle Data Pump Enhancements in Oracle 21c.pptx
Oracle Data Pump Enhancements in Oracle 21c.pptxOracle Data Pump Enhancements in Oracle 21c.pptx
Oracle Data Pump Enhancements in Oracle 21c.pptx
 
Cloning an Oracle Home or Oracle Install.pptx
Cloning an Oracle Home or Oracle Install.pptxCloning an Oracle Home or Oracle Install.pptx
Cloning an Oracle Home or Oracle Install.pptx
 
What’s New in Oracle Database 19c - Part 1
What’s New in Oracle Database 19c - Part 1What’s New in Oracle Database 19c - Part 1
What’s New in Oracle Database 19c - Part 1
 
Why oracle data guard new features in oracle 18c, 19c
Why oracle data guard new features in oracle 18c, 19cWhy oracle data guard new features in oracle 18c, 19c
Why oracle data guard new features in oracle 18c, 19c
 
Oracle database upgrade to 12c and available methods
Oracle database upgrade to 12c and available methodsOracle database upgrade to 12c and available methods
Oracle database upgrade to 12c and available methods
 
One database solution for your enterprise business - Oracle 12c
One database solution for your enterprise business - Oracle 12cOne database solution for your enterprise business - Oracle 12c
One database solution for your enterprise business - Oracle 12c
 
What’s new in oracle 12c recovery manager (rman)
What’s new in oracle 12c recovery manager (rman)What’s new in oracle 12c recovery manager (rman)
What’s new in oracle 12c recovery manager (rman)
 
Why virtual private catalog?
Why virtual private catalog?Why virtual private catalog?
Why virtual private catalog?
 
Oracle golden gate 12c New Features
Oracle golden gate 12c New FeaturesOracle golden gate 12c New Features
Oracle golden gate 12c New Features
 
Sql server mission_critical_performance_tdm_white_paper
Sql server mission_critical_performance_tdm_white_paperSql server mission_critical_performance_tdm_white_paper
Sql server mission_critical_performance_tdm_white_paper
 
Ioug tip book11_gunukula
Ioug tip book11_gunukulaIoug tip book11_gunukula
Ioug tip book11_gunukula
 
Understand oracle real application cluster
Understand oracle real application clusterUnderstand oracle real application cluster
Understand oracle real application cluster
 

Último

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 

Último (20)

Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Cyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfCyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdf
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 

Convert single instance to RAC

  • 1.  17+ Years of Experience in Oracle, SQLServer Database Technologies  Have experience on wide range of products such as Oracle Agile, Hyperion, SAP Basis, MySQL, SQLServer, BOXI ,DS, HANA, Tableau,…etc. Written articles for major publications Oracle Certified Professional Oracle 8i,9i,10g Oracle Certified Expert Oracle 10g RAC Oracle ACE http://www.oracleracexpert.com http://www.sqlserver-expert.com Presented by Satishbabu Gunukula
  • 2. Disclaimer  This content/views in this slides are those of the author and do not reflect that of Oracle corporation and/or its affiliates, employer, ex-employer, clients. The material in this document is for information purpose only and is published with no warranty, guarantee or implied.  This material should not be reproduced or used with out the author’s written permission.
  • 3. Agenda  Oracle RAC and its Benefits  Overview of different RAC conversion methods  Overview of different Storage options  Convert Single instance to Oracle RAC Using RMAN  Overview  Prerequisites  Demonstration  Check the logs  Post Conversion Steps  References  Contact Info  Q&A
  • 4. Why Oracle RAC & Benefits? The Oracle RAC removes the ability of a single point of failure of server in any database application environment.  Scalability  High Availability  Reliability  Recoverability  Continue Operations  Error Detection  Lower in Cost  Ease of Administration  Grid Computing
  • 5.  Oracle Provides different conversion methods 1. DBCA 2. RCONFIG (From 10g R2) 3. Enterprise Manager 4. Manual (Using RMAN) Different RAC Conversion Methods
  • 6.  Different storage options available in Oracle RAC  ASM – Automatic Storage Management  RAW – Raw devices  CFS – Vendor Cluster file System (OCFS,QFS,GXFs…Etc.)  NFS - Network File system (Certificated NAS) Refer Oracle documentation for more information http://docs.oracle.com/cd/E11882_01/server.112/e18951/toc.htm Different Storage Options
  • 7. RMAN is one of the best practice to convert single instance to RAC We are using two phase approach for conversion 1. Duplicate single instance Non-ASM database to ASM - Using RMAN DUPLICATE command copy the single instance database to RAC Server 2. Manually Convert single-instance to RAC – Create undo, redo, init.ora with cluster parameters and start the instances on all the nodes in the cluster Overview: Convert Single instance to RAC
  • 8. RMAN is a command-line and Enterprise Manager based tool  Advantages  Full control over the conversion process  Optimize the performance of Database duplication  Ability to migration Non-ASM to ASM storage  Disadvantages  Database downtime required.  Manual conversion process Overview: Advantages/Disadvantages
  • 9.  Oracle RAC  Hardware and Operating System architecture must be same.  Clustware is installed & configured on all the nodes in the cluster.  Same Oracle version installed as source (Single instance).  ASM is installed & configured with required ASM Diskgroups Note: If you want to upgrade to higher version, then the preferred method is fist upgrade your existing single instance database to higher version, test and migrate to RAC. Pre-requisites:
  • 10. Hostname Database Name Instance Name Database Storage orasrv DBORA DBORA ext3 Demonstration: Overview of Non-RAC environment Overview of RAC environment Hostname Database Name Instance Name Database Storage orarac1 RACDB RACDB1 ASM orarac2 RACDB RACDB2 ASM Oracle Version: 11.2.0. 1 O/S: REHL: 5.4 ASM Disk Groups: +DATA, +FLASH
  • 11. Estimate used space for Non-RAC Database Run the Query on Non-RAC instance to estimate the used space Select DF.TOTAL/1073741824 "DataFile Size GB", LOG.TOTAL/1073741824 "Redo Log Size GB", CONTROL.TOTAL/1073741824 "Control File Size GB", (DF.TOTAL + LOG.TOTAL + CONTROL.TOTAL)/ 1073741824 "Total Size GB" from dual, (select sum(a.bytes) TOTAL from dba_data_files a) DF, (select sum(b.bytes) TOTAL from v$log b) LOG, (select sum((cffsz+1)*cfbsz) TOTAL from x$kcccf c) CONTROL;
  • 12. Create init.ora and password file for RAC Take a copy of init.ora parameter from single instance to Node1 on RAC and add update the ASM Disk group information as per your requirement For ex:- # set the location of the duplicate clone control file. control_files =‘+DATA’, ‘+FLASH’ #set the below parameters for default location of data files db_create_file_dest='+DATA' #set the below parameters for default location of recovery area db_recovery_file_dest='+FLASH' # set below parameter to create two members for each redo db_create_online_dest_1=’+DATA’ db_create_online_dest_2=’+FLASH’ # set two destinations if you want to multiplex the archive logs log_archive_dest_1='location=+DATA' log_archive_dest_2='location=+FLASH'
  • 13. Note: Here we are not using e are not using DB_FILE_NAME_CONVERT, LOG_FILE_NAME_CONVERT parameters. If your data/redo files are not spread across multiple directories then I would recommend to use this option. Create password file [oracle@orarac1]$ export ORACLE_SID=RACDB [oracle@orarac1]$ export ORACLE_HOME=/home/oracle/product/v11201 [oracle@orarac1]$ orapwd file= $ORACLE_HOME/dbs/orapwRACDB password=xxxxxxx Create init.ora and password file for RAC
  • 14. Create a static listener for on RAC node1 under $ORACLE_HOME/network/admin and reload, because auxiliary database will not register itself with the listener. [oracle@orarac1]$ cat $ORACLE_HOME/network/admin/listener.ora SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (GLOBAL_DBNAME = RACDB) (ORACLE_HOME = /home/oracle/product/v11201) (SID_NAME = RACDB) ) ) Configure listener on RAC node1
  • 15. Add TNS entry in $ORACLE_HOME/network/admin/tnsnames.ora file on Non- RAC Server to connect to Auxiliary instance. [oracle@orasrv]$ cat $ORACLE_HOME/network/admin/tnsnames.ora RACDB= (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = orarac1)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = RACDB) ) ) Add TNS Entry on Non-RAC
  • 16. Take a backup of Non-RAC Database Take a backup of Non-RAC database and archive logs. [oracle@orasrv]$ rman TARGET / CATALOG rman/xxxxx@rmancat RMAN> run{ allocate channel d1 type disk; allocate channel d2 type disk; backup tag 'full_online_backup' database format '/backup/rman/ORADB/dbsdf_online_%d_t%t_s%s_p%p.rmn'; sql "alter system archive log current"; backup archivelog all delete input format '/backup/rman/ORADB/archdf_%d_t%t_s%s_p%p.rmn'; release channel d1; release channel d2; } Here we are backing the database to a NFS file system/ backup/rman/ORADB. Mount this file system on RAC node1 for duplication process.
  • 17. Start the auxiliary database in NOMOUNT mode on RAC node1 [oracle@orarac1]$ export ORACLE_SID=RACDB [oracle@orarac1]$ exportORACLE_HOME=/home/oracle/product/v11201 [orcle@orarac1] $ sqlplus /nolog SQL*Plus: Release 11.2.0.1.0 Production on Tue Mar 3 12:59:28 2012 Copyright (c) 1982, 2007, Oracle. All Rights Reserved. SQL> connect / as sysdba Connected to an idle instance. SQL> startup nomount Start the Database in NOMOUNT on RAC
  • 18. Duplicate Database to RAC Server In order to duplicate you should connect to target database and auxiliary database started in NOMOUNT mode and also RMAN catalog, if using. RMAN restores the data files and performs the recovery using all available backups and archive logs . After recovery is completed RMAN restarts the duplicate database (auxiliary database) and opens with the RESETLOGS option and generates a new DBID for duplicate database.
  • 19. Duplicate Database to RAC Server Duplicate Database script contents connect catalog rman/xxxxxxxx@rmancat connect target / connect auxiliary sys/xxxxxxx@RACDB run{ allocate channel d1 device type disk; allocate channel d2 device type disk; allocate auxiliary channel a1 device type disk; allocate auxiliary channel a2 device type disk; duplicate target database to RACDB pfile=/home/oracle/product/v11201/dbs/initRACDB.ora logfile group 1 ('+DATA','+FLASH') SIZE 50M reuse, group 2 ('+DATA','+FLASH') SIZE 50M reuse; release channel d1; release channel d2; }
  • 20. Convert Single Instance to RAC We have duplicated single instance Non-ASM database to ASM on RAC Server. Review Database alert_RACDB.log on RAC node1 We need to Convert single-instance to RAC
  • 21. Create redo and undo for second instance Create second thread of online redo logs in order to start instance 2 SYS@RACDB> alter database add logfile thread 2 group 3 ('+DATA’,'+FLASH’) size 50m; SYS@RACDB > alter database add logfile thread 2 group 4 ('+DATA’,'+FLASH’) size 50m; enable thread 2 SYS@RACDB > alter database enable public thread 2; Create undo tablesapce for second instance. SYS@RACDB> create undo tablespace UNDOTBS2 datafile '+DATA' size 500M;
  • 22. Add cluster parameters Add Cluster related parameters based on your configuration to parameter file *.cluster_database_instances=2 *.cluster_database=true *.remote_listener='LISTENERS_RACDB’ RACDB1.instance_number=1 RACDB2.instance_number=2 RACDB1.thread=1 RACDB2.thread=2 RACDB1.undo_tablespace='UNDOTBS1' RACDB2.undo_tablespace='UNDOTBS2‘ update the actual controlfile path *.control_files='+DATA/RACDB/controlfile/current.256.654542941','+FLASH/RACDB/c ontrolfile/current.256.6232312941'
  • 23. Starts instances on all the nodes in RAC Set the environment variable for each instance, recreate the password & parameter file and start the instances individually on two different nodes [oracle@orarac1]$ export ORACLE_SID=RACDB1 [oracle@orarac1]$ export ORACLE_HOME=/home/oracle/product/v11201 [oracle@orarac1]$ orapwd file= $ORACLE_HOME/dbs/orapwRACDB1 password=xxxxx [oracle@orarac1]$ sqlplus /nolog SQL> Startup [oracle@orarac2]$ export ORACLE_SID=RACDB2 [oracle@orarac2]$ export ORACLE_HOME=/home/oracle/product/v11201 [oracle@orarac2]$ orapwd file= $ORACLE_HOME/dbs/orapwRACDB2 password=xxxxx oracle@orarac2]$ sqlplus /nolog SQL> Startup
  • 24. Register the RAC instances with CRS Register the database instances with CRS framework [oracle@orarac1]$ srvctl add database -d RACDB -o /home/oracle/product/v11201 [oracle@orarac1]$ srvctl add instance -d RACDB -i RACDB1 -n orarac1 [oracle@orarac1]$ srvctl add instance -d RACDB -i RACDB2 -n orarac2 CRS should able to manage the instances and also it should automatically startup the instances when the servers are rebooted
  • 25. Start/ Stop database using srvctl After registering the database/instances with CRS, we should able to manage using srvctl. Stop the database [oracle@orarac1]$ srvctl stop database -d RACDB Start the database [oracle@orarac1]$ srvctl start database -d RACDB
  • 26. Check the logs Check the log files to see the issues/errors, if any. Database ADR_BASE/diag/product_type/product_id/instance_id/alert_RACDB1.log ADR_BASE/diag/product_type/product_id/instance_id/alert_RACDB2.log Cluster CRS_HOME/log/hostname/crsd/ - The log files for the CRS daemon CRS_HOME/log/hostname/cssd/ - The log files for the CSS daemon CRS_HOME/log/hostname/evmd/ - The log files for the EVM daemon CRS_HOME/log/hostname/client/ - The log files for the Oracle Cluster Registry CRS_HOME/log/hostname/racg/ - The log files for the Oracle RAC high availability CRS_HOME/log/hostname/racg - The log files for the Oracle RAC high availability CRS_HOME/log/hostanme/alert.log – The alert.log for Clusterware issues. Note:- CRS_HOME is the directory in which the Oracle Clusterware software was installed and hostname is the name of the node.
  • 27. Post conversion Steps  Drop the static listener and used for duplication  Configure the listener and tnsnames using NETCA, refer below link http://docs.oracle.com/cd/E11882_01/network.112/e10836/listenercfg.htm  Configure TAF & Load balancing according to application requiement  Setup Database Backup and OCR Backup  More SGA recommended for RAC and size according to work load
  • 28. Best Practices, Tips & Hints  If you install software in shared Oracle home you cannot able to perform rolling upgrade, So avoid using shared Oracle home  For redundancy Multiplex controlfile, redo logs and archive logs across the disk groups  Use RMAN incrementally updated feature to reduce restoration time especially when Recovery time Objective (RTO) is set for mission critical database.  Prior to installing oracle software validate the cluster infrastructure, it will save considerable time and potential headaches.  Avoid a cross-over cable and use Fastest possible interconnect  Auto backup feature will enable RMAN to recover the database even if the controlfile, catalog and spfile are lost.
  • 29. References Oracle RAC & ASM 1. Oracle high availability Solutions http://www.oracle.com/technetwork/database/features/availability/index.html 2. Oracle Documentation for OS specific Installation and Configuration http://www.oracle.com/pls/db1112/portal.portal_db?selected=16 3. Oracle Documentation on Convert single instance to RAC http://docs.oracle.com/cd/E11882_01/install.112/e24660/cvrt2rac.htm#RILIN1137 4. Oracle Documentation on ASM http://docs.oracle.com/cd/E11882_01/server.112/e18951/toc.htm 5. ASM Technical Best Practices Metalink Note ID: 265633.1
  • 30. References Oracle RMAN 1. Oracle Documentation on Oracle Recovery Manager http://docs.oracle.com/cd/E11882_01/rac.112/e16795/rman.htm 2. Oracle RMAN New Features in Oracle 11g http://www.oracleracexpert.com/2011/12/oracle-recovery-managerrman-new.html 3. Understand Oracle RMAN Reporting http://www.oracleracexpert.com/2011/06/understand-oracle-rman-reporting.html
  • 31. Contact info Thanks for attending the Webinar You can reach me at SatishbabuGunukula@gmail.com Visit MyBlog http://www.oracleracexpert.com
  • 32.