当前位置:网站首页>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';

边栏推荐
- Set up redis highly available cluster environment
- Bowen dry goods | Apache inlong uses Apache pulsar to create data warehousing
- Redis transaction details
- 报错[error] input tesnor exceeds available data range [NeuralNetwork(3)] [error] Input tensor ‘0‘ (0)
- 报错device = depthai.Device(““, False) TypeError: _init_(): incompatible constructor arguments.
- Output image is bigger (1228800b) than maximum frame size specified in properties (1048576b)
- 2161. divide the array according to the given number
- Sed explanation of shell script (SED command, sed -e, sed s/ new / old /...)
- Development of PCBA circuit board for small oxygen generator
- When the enterprise makes a decision, which part should lead the ERP project?
猜你喜欢

报错Version mismatch between installed depthai lib and the required one by the scrip.

ArcGIS 10.9.1 geological and meteorological volume metadata processing and service publishing and calling

Analysis of high frequency interview questions in massive data processing

Esp8266 Smartconfig

考研数学 【数列极限证明题】题型方法总结

js中关键字this的理解

oracle 11g rac 磁盘组有空间无法增加数据文件?

Concurrent programming

Set up redis highly available cluster environment

Zhiyun health submitted the statement to HKEx again: the loss in 2021 exceeded 4billion yuan, an increase of 43% year-on-year
随机推荐
Telecommuting best practices and Strategies
Product list display
ESP8266_通过MQTT协议连接阿里云
[TiO websocket] v. TiO websocket server counts the number of online people
Openstack explanation (24) -- registration of neutron service
[image denoising] image denoising based on mean + median + Gauss low pass + various improved wavelet transform, including Matlab source code
ESP8266_ Connect to Alibaba cloud through mqtt protocol
Where is it safer to open an account for soda ash futures? How much does it cost to buy at least one hand?
Device = depthai Device(““, False) TypeError: _init_(): incompatible constructor arguments.
js基础--Date对象
报错[DetectionNetwork(1)][warning]Network compiled for 6 shaves,maximum available 10,compiling for 5 s
报错Output image is bigger(1228800B) than maximum frame size specified in properties(1048576B)
Machine learning notes - convolutional neural network memo list
Concurrent programming
New feature in ES6 -- arrow function
Detailed explanation of the difference between construction method and method
一万字彻底学会堆和二叉树
报错ModularNotFoundError: No module named ‘find_version’
Technical practice of dolphin dispatching in kubernetes system
Simulation of map and set