12c new feature
Sometimes it is necessary to move a Datafile to another Location (eg. Mountpoint, ASM Diskgroup,…) due to Space issues, Hardware Replacement or for Performance Reasons. There are several Possibilities to perform this Task explained below:
Physical Standby Database is mounted:
We can copy and rename the Datafile while Managed Recovery is stopped. If the Physical Standby Database is opened READ ONLY you have to shutdown/startup mount first (and open again after renaming). You can use either using OS-Tools and SQL*PLUS, eg.
SQL> alter database rename file ‘<Source or File#>’ to ‘<Destination>’;
SQL> alter database datavase open; # If Active Data Guard is used
or using RMAN:
RMAN> connect target /
RMAN> run
{
backup as copy datafile <File#> format ‘<Destination>’;
switch datafile <File#> to datafilecopy '<Destination from previous Command>';
}
New in Oracle Database 12c:
Physical Standby Database is in Active Data Guard Mode (opened READ ONLY and Managed Recovery is running):
It is now possible to online move a Datafile while Managed Recovery is running, ie. the Physical Standby Database is in Active Data Guard Mode. You can use this Command to move the Datafile
-> The 'keep'-Option will also keep the original Datafile, without this Option the File gets automatically deleted once the move completed.
The Destination can also be an ASM Diskgroup, of course if you want to move a Datafile to ASM or from one Diskgroup to another.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29337971/viewspace-1816620/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- [20190805]Oracle 12c New Feature – Online Partitioning.txtOracle
- Feature homophily metric
- 7.92 FEATURE_VALUE
- 7.91 FEATURE_SET
- 7.90 FEATURE_ID
- 7.89 FEATURE_DETAILSAI
- 7.88 FEATURE_COMPARE
- new self()與new static()
- Gaming Dongle Feature Application NoteGAMAPP
- New
- 【譯】Android Gradle 外掛 4.0.0 中 Feature-on-Feature 的依賴關係AndroidGradle
- JavaScript中的new map()和new set()使用詳細(new map()和new set()的區別)JavaScript
- A2A (SOUL-Quiz FeatureUI
- 理解new和實現一個new
- new learn
- a new ideaIdea
- a new blog
- in place new
- How to Add a New Disk new partition in centos7CentOS
- PHP new self()和new static()的區別PHP
- allure功能使用-feature&story
- Feature Mask Network for Person Re-identificationIDE
- javascript 中function(){},new function(),new Function(),Function 摘錄JavaScriptFunction
- new static ,new self ,self::, $this的一些理解
- 手寫new
- 【轉】placement new
- D - New Friends
- New Year and Days
- new筆記筆記
- new-Xadmin
- My New GoalGo
- JavaScript new 關鍵詞解析及原生實現 newJavaScript
- jscalpel A small feature library that makes it easier to manipulate objectsJSObject
- Vue3 如何實現 Feature Flags?Vue
- PHP 的 new static 和 new self 具體有什麼?PHP
- new Handler().postDelayed(new Runnable())是否執行在主執行緒?執行緒
- 5.9java-newJava
- JavaScript new 運算子JavaScript
- change ^M to new line