`

Steps To Migrate/Move a Database From Non-ASM to ASM And Vice-Versa [ID 252219.1

阅读更多

Applies to:

Oracle Server - Enterprise Edition - Version: 10.1.0.2 to 11.1.0.7
Information in this document applies to any platform.

Purpose

This article describes the steps to migrate a database from Non-ASM to ASM and vice-versa.

To setup ASM, please follow

Note 452924.1 - How to Prepare Storage for ASM
Note 265633.1 - ASM Technical Best Practices
Note 249992.1 - New Feature on ASM (Automatic Storage Manager).

Scope and Application

A scheduled downtime is needed.

Steps To Migrate/Move a Database From Non-ASM to ASM And Vice-Versa

Step 1: Edit the pfile/spfile of DB to point the new control_file location on ASM

E.g. : if your disk group name is '+DATA'

control_files='+DATA/<dbid>/control01.ctl'

 The setting here is actually an alias for the controlfile.

For 10gR1 or you don't want to use an alias for controlfile, please set control_files='+DATA' and use the following note to update the parameter again in the pfile/spfile after the controlfile is created at step #3.

Note 468458.1 - How To Move Controlfile To ASM

If you later want to duplicate an extra copy of control file, please see

Note 345180.1 - How to duplicate a controlfile when ASM is involved

 

Step 2: Startup the database in nomount state

SQL> Startup nomount

 

Step 3: From RMAN session, copy the control file from old location to new location

RMAN> CONNECT TARGET

RMAN> RESTORE CONTROLFILE FROM '/u01/TST/control01.ctl';

Here /u01/TST/control01.ctl is the old location of control file.


Step 4: From SQL session, mount the database

SQL> ALTER DATABASE MOUNT;

 

Step 5: Using RMAN, copy the datafile from NON-ASM to ASM

RMAN>BACKUP AS COPY DATABASE FORMAT '+DATA';

 

Step 6: Using RMAN, rename the datafile , using the following command

RMAN> SWITCH DATABASE TO COPY;

 

Step 7: Switch tempfile and open database.

RMAN> run {
set newname for tempfile 1 to '+DATA';
set newname for tempfile 2 to '+DATA';
...
switch tempfile all;
}

RMAN> ALTER DATABASE OPEN;

 

Step 8: Do the following maintenance

SQL> SELECT a.group#, b.member, a.status FROM v$log a, v$logfile b WHERE a.group#=b.group#;
SQL> ALTER DATABASE ADD LOGFILE MEMBER '+ASM_Disk_group' TO GROUP 1;
SQL> ALTER DATABASE ADD LOGFILE MEMBER '+ASM_Disk_group' TO GROUP 2;
SQL> ALTER DATABASE DROP LOGFILE MEMBER '';
SQL> ALTER SYSTEM SWITCH LOGFILE;
SQL> ALTER DATABASE DROP LOGFILE MEMBER '';
SQL> ALTER SYSTEM SWITCH LOGFILE;

... repeat for *all* online redo log members.
A redo log member can only be dropped after being archived and being in INACTIVE mode. If needed, switch logfile multiple times until the logfile is ready for dropping. 

 

STEP of MIGRATION from ASM to NON-ASM

1. Start your database with ASM.

2. Create pfile from spfile.

3. Edit pfile/spfile to reflect controlfile name in file system location.

4. Startup nomount the DB.

SQL> Startup nomount

5. Use RMAN to copy the control file from ASM to NON-ASM.

RMAN> RESTORE CONTROLFILE FROM '';

6. Mount the DB.

SQL> alter database mount;

7. Use RMAN to copy the database from ASM to NON-ASM.

RMAN> BACKUP AS COPY DATABASE format '/u01/oradata/nonasmdb/datafile/%U';

8. From RMAN.

RMAN> SWITCH DATABASE TO COPY;

9. Recreate the tempfile and redo logs as before. See step 7 and 8 above.

分享到:
评论

相关推荐

    jQuery版本迁移辅助插件jquery-migrate-1.2.1.min.js

    jQuery版本迁移辅助插件,如果您使用的低版本jQuery改为高版本后出现错误,可以试试这个插件。用来检测和恢复在jQuery1.9版本中已删除或已过时的API。jquery-migrate-1.2.1.js,jquery-migrate-1.2.1.min.js

    jquery-migrate-3.0.0.min.js+js+jquery+兼容

    jQuery-Migrate 是一个过渡插件让你在原来代码上升级 jQuery 不用修改代码。cdn:https://code.jquery.com/jquery-migrate-3.0.0.min.js

    jquery-migrate-3.0.0.js

    &lt;script src="path/to/jquery-migrate-3.0.0.js"&gt;&lt;/script&gt; ``` - **检查控制台**:运行后,开发者应在浏览器控制台看到Migrate发出的相关警告信息。 - **修复代码**:根据控制台的警告,找到并更新旧的jQuery...

    jquery-migrate-3.4.0.min.js

    jquery-migrate.min.js是一个过渡插件,让你在不修改原有代码的基础上升级或降级jQuery版本,使其自动匹配代码所需要的jquery版本

    jquery-migrate-3.0.1.js jar包

    &lt;script src="path/to/jquery-migrate-3.0.1.js"&gt;&lt;/script&gt; ``` 这里的`path/to`应该替换为实际的文件路径。 **四、迁移策略** 使用jQuery Migrate并不是长久之计,它只是一种过渡手段。开发者应根据控制台的警告...

    jquery-migrate-1.2.1.js文件

    1. **下载与引用**:首先,从官方网站或者其他可靠的源下载`jquery-migrate-1.2.1.js` 或者其压缩版本`jquery-migrate-1.2.1.min.js`。 2. **在HTML中引入**:在引用新版本的jQuery之后,紧接着引入`jquery-migrate-...

    Oracle SQL Developer 2.1.0.63.73 for 32bit-windows-no-jre.part1

    You can migrate your settings from Oracle SQL Developer 1.2.1. or Oracle SQL Developer 1.5.x. See the Release Notes 2.1 for more details. JDK Support Oracle SQL Developer 2.1 is shipped with JDK1.6...

    Oracle SQL Developer 2.1.0.63.73 for 32bit-windows-no-jre.part2

    You can migrate your settings from Oracle SQL Developer 1.2.1. or Oracle SQL Developer 1.5.x. See the Release Notes 2.1 for more details. JDK Support Oracle SQL Developer 2.1 is shipped with JDK1.6...

    jquery-migrate-3.0.0.zip

    &lt;script src="path/to/jquery-migrate-3.0.0.min.js"&gt;&lt;/script&gt; ``` 这样,当jQuery运行时,jQuery Migrate会自动检测并修复不兼容的问题。 需要注意的是,虽然jQuery Migrate可以暂时解决兼容性问题,但它并不...

    jquery-migrate-1.2.1.min.js

    `jQuery Migrate` 是一个非常重要的工具,尤其对于那些依赖旧版 jQuery 功能或插件的开发者来说。在本文中,我们将深入探讨 `jQuery Migrate 1.2.1.min.js` 的作用、如何解决 `jQuery` 和 `jqPrint` 兼容性问题,...

    jquery-migrate-3.0.0.min.js 含源码

    jquery-migrate-3.0.0.min.js 含源码 包含以下文件: jquery-migrate-3.0.0.min.js jquery-migrate-3.0.0.js // 这个是源码哦 截至2017.11.21, jQuery3.x 最新最稳定版本

    Oracle SQL Developer 2.1.0.63.73 for 64bit-windows-no-jre.part1

    You can migrate your settings from Oracle SQL Developer 1.2.1. or Oracle SQL Developer 1.5.x. See the Release Notes 2.1 for more details. JDK Support Oracle SQL Developer 2.1 is shipped with JDK1.6...

    Paragon.Migrate.OS.to.SSD.v4.0.x64.HAPPY.NEW.YEAR-DVT.zip

    标题中的“Paragon Migrate OS to SSD v4.0 x64”是一款专门用于操作系统迁移的软件工具,由Paragon Software公司开发。该版本号“v4.0”表明这是该软件的第四次主要更新,而“x64”则表示它支持64位操作系统。后缀...

    Oracle SQL Developer 1.5.5.59.69-with-jdk6.part2

    You can migrate your settings from Oracle SQL Developer 1.2.1. or Oracle SQL Developer 1.5.x. See the Release Notes 2.1 for more details. JDK Support Oracle SQL Developer 2.1 is shipped with JDK1.6...

    3364574-2_1645_How to Migrate from On-premises to Office 365.pdf

    How to Migrate from On-premises to Office 365, https://docs.microsoft.com/zh-cn/sharepointmigration/introducing-the-sharepoint-migration-tool

    Oracle SQL Developer 1.5.5.59.69-with-jdk6.part1

    You can migrate your settings from Oracle SQL Developer 1.2.1. or Oracle SQL Developer 1.5.x. See the Release Notes 2.1 for more details. JDK Support Oracle SQL Developer 2.1 is shipped with JDK1.6...

    Oracle SQL Developer 2.1.0.63.73 for mac-osx-no-jre.part1

    You can migrate your settings from Oracle SQL Developer 1.2.1. or Oracle SQL Developer 1.5.x. See the Release Notes 2.1 for more details. JDK Support Oracle SQL Developer 2.1 is shipped with JDK1.6...

    Oracle SQL Developer 2.1.0.63.73 for other-platform-no-jre.part1

    You can migrate your settings from Oracle SQL Developer 1.2.1. or Oracle SQL Developer 1.5.x. See the Release Notes 2.1 for more details. JDK Support Oracle SQL Developer 2.1 is shipped with JDK1.6...

Global site tag (gtag.js) - Google Analytics