Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
oracle_rac_database_migration_to_rac [2020/10/18 15:00] – created andonovj | oracle_rac_database_migration_to_rac [2020/10/22 12:45] (current) – [Migration] andonovj | ||
---|---|---|---|
Line 7: | Line 7: | ||
In our case we will use the RConfig tool. So let's get going | In our case we will use the RConfig tool. So let's get going | ||
+ | |||
+ | {{ : | ||
=====Prepare the environemnt===== | =====Prepare the environemnt===== | ||
- | First, be sure to take an offline backup of the single instance database, preferably with RMAN: | + | Firstly we can check how the database is configured: |
+ | |||
+ | < | ||
+ | [oracle@enode01 ~]$ srvctl config database -db eastdb | ||
+ | Database unique name: eastdb | ||
+ | Database name: eastdb | ||
+ | Oracle home: / | ||
+ | Oracle user: oracle | ||
+ | Spfile: +DATA/ | ||
+ | Password file: | ||
+ | Domain: example.com | ||
+ | Start options: open | ||
+ | Stop options: immediate | ||
+ | Database role: PRIMARY | ||
+ | Management policy: AUTOMATIC | ||
+ | Server pools: | ||
+ | Disk Groups: DATA,FRA | ||
+ | Mount point paths: | ||
+ | Services: | ||
+ | Type: SINGLE | ||
+ | OSDBA group: dba | ||
+ | OSOPER group: oper | ||
+ | Database instance: eastdb | ||
+ | Configured nodes: enode01 | ||
+ | Database is administrator managed | ||
+ | [oracle@enode01 ~]$ | ||
+ | </ | ||
+ | |||
+ | |||
+ | Be sure to take an offline backup of the single instance database, preferably with RMAN: | ||
< | < | ||
Line 17: | Line 48: | ||
$ backup database; | $ backup database; | ||
$ alter database open; | $ alter database open; | ||
- | </Code< | + | </Code> |
In case the database has a standby increase archivelog apply gap: | In case the database has a standby increase archivelog apply gap: | ||
Line 48: | Line 79: | ||
<!-- Verify does a precheck to ensure all pre-requisites are met, before the | <!-- Verify does a precheck to ensure all pre-requisites are met, before the | ||
conversion is attempted. Allowable values are: YES|NO|ONLY --> | conversion is attempted. Allowable values are: YES|NO|ONLY --> | ||
- | **< | + | < |
< | < | ||
- | < | + | < |
< | < | ||
same as SourceDBHome --> | same as SourceDBHome --> | ||
- | < | + | < |
< | < | ||
required to perform conversion --> | required to perform conversion --> | ||
Line 61: | Line 92: | ||
< | < | ||
< | < | ||
- | < | + | < |
< | < | ||
</ | </ | ||
< | < | ||
installed with Secure User option --> | installed with Secure User option --> | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | --> | ||
+ | </ | ||
+ | < | ||
+ | Admin Managed Cluster Database. LocalNode should be the first node in this | ||
+ | nodelist. --> | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | Node --> | ||
+ | < | ||
+ | < | ||
+ | derived from db_unique_name.--> | ||
+ | < | ||
+ | <!-- Listener details are no longer needed starting 11.2. Database is | ||
+ | registered with default listener and SCAN listener running from Oracle Grid | ||
+ | Infrastructure home. --> | ||
+ | < | ||
+ | are CFS|ASM. The non-rac database should have same storage type. ASM | ||
+ | credentials are no needed for conversion. --> | ||
+ | < | ||
+ | < | ||
+ | field is left empty, current storage will be used for rac database. For CFS, | ||
+ | this field will have directory path. --> | ||
+ | < | ||
+ | < | ||
+ | is left empty, current recovery area of non-rac database will be configured for | ||
+ | rac database. If current database is not using recovery Area, the resulting rac | ||
+ | database will not have a recovery area. --> | ||
+ | |||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | :wq! | ||
+ | [oracle@enode01 sampleXMLs]$ | ||
</ | </ | ||
+ | ====Test the conversion==== | ||
+ | With that, we can test if the conversion will succeed as follows: | ||
+ | |||
+ | < | ||
+ | [oracle@enode01 sampleXMLs]$ rconfig ConvertToRAC_AdminManaged.xml | ||
+ | <?xml version=" | ||
+ | <RConfig version=" | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | | ||
+ | </ | ||
+ | </ | ||
+ | < | ||
+ | There is no return value for this step </ | ||
+ | </ | ||
+ | </ | ||
+ | [oracle@enode01 sampleXMLs]$ | ||
+ | </ | ||
+ | |||
+ | After we are sure that the operation will succed we can modify the parameter as follows: | ||
+ | |||
+ | < | ||
+ | [oracle@enode01 sampleXMLs]$ vi ConvertToRAC_AdminManaged.xml | ||
+ | < | ||
+ | :wq! | ||
+ | [oracle@enode01 sampleXMLs]$ | ||
+ | </ | ||
+ | |||
+ | =====Migration===== | ||
+ | Finally, run the migration as follows: | ||
+ | |||
+ | < | ||
+ | [oracle@enode01 sampleXMLs]$ rconfig ConvertToRAC_AdminManaged.xml | ||
+ | Converting Database " | ||
+ | / | ||
+ | Setting Data Files and Control Files | ||
+ | Adding Database Instances | ||
+ | Adding Redo Logs | ||
+ | Enabling threads for all Database Instances | ||
+ | Setting TEMP tablespace | ||
+ | Adding UNDO tablespaces | ||
+ | Adding Trace files | ||
+ | Setting Fast Recovery Area | ||
+ | Updating Oratab | ||
+ | Creating Password file(s) | ||
+ | Configuring Listeners | ||
+ | Configuring related CRS resources | ||
+ | Starting Cluster Database | ||
+ | <?xml version=" | ||
+ | <RConfig version=" | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | | ||
+ | </ | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | / | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | </ | ||
+ | / | ||
+ | </ | ||
+ | </ | ||
+ | [oracle@enode01 sampleXMLs]$ | ||
+ | </ | ||
+ | |||
+ | Once that is done, we can test the database configuration: | ||
+ | |||
+ | < | ||
+ | [oracle@enode01 sampleXMLs]$ srvctl config database -db eastdb | ||
+ | Database unique name: eastdb | ||
+ | Database name: eastdb | ||
+ | Oracle home: / | ||
+ | Oracle user: oracle | ||
+ | Spfile: +DATA/ | ||
+ | Password file: +DATA/ | ||
+ | Domain: example.com | ||
+ | Start options: open | ||
+ | Stop options: immediate | ||
+ | Database role: PRIMARY | ||
+ | Management policy: AUTOMATIC | ||
+ | Server pools: | ||
+ | Disk Groups: DATA, | ||
+ | Mount point paths: | ||
+ | Services: | ||
+ | Type: RAC <- Changed to RAC Database | ||
+ | Start concurrency: | ||
+ | Stop concurrency: | ||
+ | OSDBA group: dba | ||
+ | OSOPER group: oper | ||
+ | Database instances: eastdb1, | ||
+ | Configured nodes: enode01, | ||
+ | Database is administrator managed | ||
+ | [oracle@enode01 sampleXMLs]$ | ||
+ | </ |