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

原网站

版权声明
本文为[cqszpx]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/173/202206222123228911.html