当前位置:网站首页>Oracle ASM uses the CP command in asmcmd to perform remote replication
Oracle ASM uses the CP command in asmcmd to perform remote replication
2022-06-22 23:49:00 【cqszpx】
Oracle ASM Use asmcmd Medium cp Command to perform remote replication
cp The syntax of the command is as follows :
cp src_file [--target target_type] [--service service_name] [--port port_num] [connect_str:]tgt_file
--target target_type Is used to specify asmcmd Command to execute the target type of the instance to which the copy operation must be connected . Valid options are ASM,IOS or APX.
--service service_name If the default value is not +ASM, Used to specify Oracle ASM Instance name
--port port_num The default value is 1521, Used to specify the listening port
connect_str Used to specify the connection string to connect to the remote instance .connect_str The replication of local instances does not need to be specified . For remote instance replication , You must specify a connection string and will be prompted for a password . The format is as follows :
[email protected]
user,host and SID All need to be specified . The default port is 1521, You can also use --port Options to modify . Connection permissions (sysasm or sysdba) Is started by asmcmd The command is given by --privilege Options .
src_file The name of the copied source file , It must be a full path file name or a Oracle ASM Alias . In execution asmcmd Replication time ,Oracle ASM Will create a OMF Files such as :
diskgroup/db_unique_name/file_type/file_name.#.#
among db_unique_name Set to ASM,# Is the number . In the process of copying cp The command will create a directory structure for the target address and for the actually created OMF File creation alias .
tgt_file The alias of the target file name or an alias directory name created by the copy operation .
Be careful ,cp The command cannot copy files between two remote instances . In execution cp Command time local Oracle ASM The instance must be a source address or a destination address .
Use cp The command can perform the following three replication operations :
1. Copy files from the disk group to the operating system
2. Copy files from the disk group to the disk group
3. Copy files from the operating system to the disk group
Orders such as :
ASMCMD [+] > cp +data/cs/datafile/[email protected]+ASM1:+TEST/sz.bakEnterpassword: ***********
copying +data/cs/datafile/sz.331.976296525 -> 192.168.133.120:+TEST/sz.bak

边栏推荐
猜你喜欢

2022天梯赛-全国总决赛复盘赛
![[STM32 skill] use the hardware I2C of STM32 Hal library to drive rx8025t real-time clock chip](/img/32/88321db57afb50ccc096d687ff9c41.png)
[STM32 skill] use the hardware I2C of STM32 Hal library to drive rx8025t real-time clock chip

Smart data won two annual awards at the second isig China Industrial Intelligence Conference

DCC888 :SSA (static single assignment form)

Safe and reliable! Tianyi cloud data security management platform passed the evaluation

PHP7.3报错undefined function simplexml_load_string()

flutter外包,承接flutter项目

昆仑分布式数据库独特的变量读写功能介绍

KunlunDB备份和恢复

C sqlsugar, hisql, FreeSQL ORM framework all-round performance test vs. sqlserver performance test
随机推荐
07 项目成本管理
14. 最长公共前缀
Digital data depth | about software self-control, source code left, no code right
OJ daily practice - Verifying substring
Tp5.1 solving cross domain problems
MySQL-Seconds_behind_master 的精度误差
Canvas generate Poster
Leakcanary source code (2)
斐波那契数列合集
js判断浏览器是否打开了控制台
Enjoy high-performance computing! Here comes the Tianyi cloud HPC solution
13. Roman numeral to integer
KunlunDB备份和恢复
剑指 Offer 11. 旋转数组的最小数字
OJ daily practice - word length
Programmers' choice of taking private jobs and part-time jobs
Enterprise digitalization is not a separate development, but a comprehensive SaaS promotion
10 Super VIM plug-ins, I can't put them down
LeakCanary 源码详解(2)
剑指 Offer 07. 重建二叉树