当前位置:网站首页>Oracle DG physical standby database uses alias data file to change path to OMF path
Oracle DG physical standby database uses alias data file to change path to OMF path
2022-06-11 09:42:00 【cqszpx】
For example, most of my backup database data files are in +DATA/neworcl/datafile/, But there are two data files +data/orcl/datafile/
List of Permanent Datafiles
===========================
File Size(MB) Tablespace RB segs Datafile Name
---- -------- -------------------- ------- ------------------------
1 27720 SYSTEM *** +
DATA/neworcl/datafile/system.302.1104437785
...
82 15360 TSP_ORDADM *** +
DATA/orcl/datafile/tsp_ordadm.01.dbf
83 15360 TSP_OUTPBILL *** +
DATA/orcl/datafile/tsp_outpbill
...
SQL> show parameter db_create_file_dest
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
db_create_file_dest string +DATA
SQL> show parameter db_unique_name
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
db_unique_name string neworcl
Now? I want to put these two files in the same place , You can use the following methods :
1. modify standby_file_management Parameters
alter system set standby_file_management='manual';
2. The standby database starts to mount state
shutdown immediate
startup mount
3. Copy the data file to the target path
backup as copy datafile 82 format ='+data';
backup as copy datafile 83 format ='+data';
4. Switch to new path
switch datafile 82,83 to copy;
5. After migrating some data files, you can open the database
alter database open;
recover managed standby database disconnect from session;
6. View data files
report schema ;
...
82 15360 TSP_ORDADM *** +
DATA/neworcl/datafile/tsp_ordadm.377.1104445045
83 15360 TSP_OUTPBILL *** +
DATA/neworcl/datafile/tsp_outpbill.378.1104445095
...
7. modify standby_file_management Parameters
alter system set standby_file_management='AUTO';

边栏推荐
- The mobile terminal page uses REM for adaptation
- Thread theory
- oracle 11g rac 磁盘组有空间无法增加数据文件?
- Analysis of high frequency interview questions in massive data processing
- Version mismatch between installed deeply lib and the required one by the script
- Monotone stack
- 12.5 concurrent search + violent DFS - [discovery ring]
- P1169 "chessboard making"
- Shandong University project training (IV) -- wechat applet scans web QR code to realize web login
- keyboard entry.
猜你喜欢

DOS command virtual environment

关于原型及原型链

Machine learning notes - in depth Learning Skills Checklist

CVPR 2021: learning continuous image representation with local implicit image function

Version mismatch between installed deeply lib and the required one by the script

Day41 process pool and thread pool

rac expdp导出时报错:ORA-31693、ORA-31617、ORA-19505

ESP8266_SNTP(Simple Network Time Protocol)

ESP8266_ SmartConfig

Simple recommendation based on Euclidean distance
随机推荐
js中的事件
ORA-00059 超过db_files限制
Type-C Bluetooth speaker single port rechargeable OTG solution
Don't use redis list to implement message queue. Stream is designed for queues
Before applying data warehouse ODBC, you need to understand these problems first
CVPR 2021: learning continuous image representation with local implicit image function
LeetCode刷题 —— 手撕二叉树
报错Output image is bigger(1228800B) than maximum frame size specified in properties(1048576B)
How do online app stores of laundry chain stores do?
Openstack explanation (24) -- registration of neutron service
考研數學 【數列極限證明題】題型方法總結
Zhiyun health submitted the statement to HKEx again: the loss in 2021 exceeded 4billion yuan, an increase of 43% year-on-year
Openstack explanation (22) -- neutron plug-in configuration
js基础--Date对象
The mobile terminal page uses REM for adaptation
rac expdp导出时报错:ORA-31693、ORA-31617、ORA-19505
Ecological co construction | 2021 streamnational excellent partner of the year comes out!
Comparison and introduction of OpenCV oak cameras
1400. construct K palindrome strings
1493. the longest subarray with all 1 after deleting an element