Migration Non - Asm To Asm
- First Add 4 Hard Disk in VMware.
- Start Machine.
- Then Go to Disk Management.
- Right Click on Unallocated Disk list. Then Click on initialize disk.
- Right Click on unallocated disk 1. Then Click on New Partition Then Next. Select option External Partition Button then Next --> Next --> Finish(Note:Repeat Step 5 for all Unallocated HDD).
- Unallocated HDD is a free space and color is Green.
- Right click on 1st HDD Then Click on new logical drive Then Next -> Next --> Next
- Click on do not Assign drive letter or Drive path option button Then Next
- Click on do not Format this partition option button Then Next ---> Finish.(Note: Repeat Step 5 for all Healthy HDD)
- Then free space HDD is healthy and color is Blue.
- Close Computer Management Window And Go to Command prompt.
- C:\>Documents And Settings\Administrator>Asmtoolg
- Asmtoolg Operation Window open.
- Click on Add or change label option. And then Next
- Then check status or ASM link name.These status is candidate device or ASM link name not set.
- Select All these Device Then Next-->Next-->Finish.
- Go to Command prompt.
- C:\>Documents And Settings\Administrator>DBCA
- Database Configuration Assistant Window open. Then Next
- Select Create database option button. Then Next -->Next
- Enter Global Database Name and SID = ASM
- Then Next -->Next
- Enter Password for all Accounts.(ADMIN)
- Select Automatic Storage Management (ASM).
- Then Next
- Error Message Show.
- Run this command in command prompt and install CSS.
- Then Next.
- Set ASM SYS Password-(ADMIN).
- Then Next.
- Click create new ( Create Diskgroup Window Open ).
- Enter Disk group Name.
- Select Any Redudency
- High
- Normal
- External
- Select Disk path and enter Disk group name and Failgroup.
- Then OK. Then Next -->Next -->Next.
- Click on check box sample schemas.
- Then Next -->Next -->Next --> Finish.
- Asm Instance Installation Started.
- After the installation password window is open.
- Click on password management button.Set SCOTT, HR, OE, SH etc. user Password.
- Then ok. --->Click on Exit.
- After The Installation
- Go to Command prompt.
- C:\>Documents And Settings\Administrator>Set Oracle_Sid=+ASM
- Sqlplus Sys as sysdba
- Desc V$asm_disk.
- Select failgroup,name,path from V$asm_disk.
- Select failgroup,name,path,total_mb,free_mb from V$asm_disk.
- Create Normal Disk group and Failgroup(Add 2 Failgroup (2 way Mirroring)
- Create High Disk group and Failgroup(Add 3 Failgroup (3 way Mirroring)
- Create External Disk group and Failgroup(Add only 1 Failgroup (No Mirroring)
- Go to non ASM window.
- Show parameter db_create_file_dest.
- Set normal diskgroup data to db_create_file_dest.
- Alter system set db_create_file_dest='+Data' scope=spfile sid='*';
- show parameter Db_recovery_file_dest.
- Set High diskgroup Fra to Db_recovery_file_dest.
- Alter system set Db_recovery_file_dest='+Fra' scope=spfile sid='*';
- show parameter Db_recovery_file_dest_size.
- Alter system set Db_recovery_file_dest_size=5g scope=spfile sid='*';
- Shut immediate
- Startup
- Show parameter db_create_file_dest. --> Value= +Data
- Show parameter Db_recovery_file_dest -->Value= +Fra
- Show parameter Db_recovery_file_dest_size -->Value= 5g
- Select failgroup,name,path,total_mb,free_mb from V$asm_disk.
- Go to Non ASM window
- Shut immediate
- Startup Mount
- Alter database Archivelog;
- Alter Database Open;
- Open Rman Session ( Rman target / )
- Rman Auto Backup On;
- Take Copy Backup
run { Backup as copy Incremental Level 0 database Format '+Data' Tag 'Ora_Asm_Migration' }
- Shut Immediate
- exit
- Host Rman Target /
- Startup Nomount
- Restore spfile to '+Data/Spfileorcl' from '+Data/orcl/2015_01_14/Nnsnn0_ora_Asm_Migration_00.266.868942521';
- Go to C:\Oracle\Product\10.2.0\Db_1\dbs
- Drop spfileorcl.ora
- Go to C:\Oracle\Product\10.2.0\Db_1\database
- Open file initorcl.ora and set path SPFILE='+Data/Spfileorcl'
- Shut Immediate
- Startup Nomount
- Alter system set control_files='+Data' scope=spfile sid='*';
- Shut immediate
- Startup Nomount
- Show parameter Control_files.
- Host Rman target /
- Restore controlfile from '+Data/Orcl/controlfile/backup.265.868942517';
- ( Note: // Path Was Brought From The RMAN Backup Which You Have Takes Just Now! )
- Alter Database Mount;
- Show Parameter Control_file.
- Shut Immediate
- Startup Nomount
- Alter Database Mounr;
- Show parameter spfile;
- Show parameter control_file;
- Go ti Rman Target /
- Switch Database to Copy;
- Recover Database;
- Alter Database open Resetlogs; Or Alter database Open;
- Go to Sql Prompt -- Select Name From V$datafile;
- Select Member From v$logfile;
- Select * From V$log;
- Do not Drop current logfile Group;
- Alter database drop logfile Group 2 ;
- Alter database Add logfile Group 2 '+Data' ;
- Alter database drop logfile Group 3 ;
- Alter database Add logfile Group 3 '+Data' ;
- Alter System switch logfile;
- Alter system checkpoint;
- Alter database drop logfile Group 1 ;
- Alter database Add logfile Group 1 '+Data' ;
- Select Member from v$logfile;
- Show Parameter Spfile.
- Show Parameter Control_file.
- Select Name From V$datafile;
- Shut Immediate
- Startup
Create Diskgroup Data Normal Redundancy
Failgroup A Disk '\\.\ORCLDISKHDD10' Name Disk_A_1
Failgroup A Disk '\\.\ORCLDISKHDD20' Name Disk_A_2
Failgroup B Disk '\\.\ORCLDISKHDD30' Name Disk_B_1
Failgroup B Disk '\\.\ORCLDISKHDD40' Name Disk_B_2;
Create Diskgroup Fra High Redundancy
Failgroup X Disk '\\.\ORCLDISKHDD10' Name Disk_X_1
Failgroup X Disk '\\.\ORCLDISKHDD20' Name Disk_X_2
Failgroup Y Disk '\\.\ORCLDISKHDD30' Name Disk_Y_1
Failgroup Y Disk '\\.\ORCLDISKHDD40' Name Disk_Y_2
Failgroup Z Disk '\\.\ORCLDISKHDD50' Name Disk_Z_1
Failgroup Z Disk '\\.\ORCLDISKHDD60' Name Disk_Z_2;
Create Diskgroup Ext External Redundancy
Failgroup EX1 Disk '\\.\ORCLDISKHDD10' Name Disk_X_1
Failgroup EX2 Disk '\\.\ORCLDISKHDD20' Name Disk_X_1;
Comments
Post a Comment