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

边栏推荐
- Various schemes for lazy loading of pictures
- 从类、API、框架三个层面学习设计可复用软件的具体技术学习心得
- OJ daily practice - class dining
- [go] go modules GETTING STARTED
- Tianyi cloud takes advantage of the new infrastructure to build a "4+2" capability system for digital transformation
- Canvas generate Poster
- Webrtc series - 4connection sorting of network transmission
- Sword finger offer 11 Minimum number of rotation array
- canvas生成海报
- flink同步mysql数据到ES
猜你喜欢
随机推荐
Is it safe to make an appointment to pay new debts? Is it reliable?
LeetCode_ Backtracking_ Dynamic programming_ Medium_ 131. split palindrome string
OJ daily practice - spanning 2020
Redis缓存
Future alternatives to IPv4! Read the advantages, features and address types of IPv6
使用smart-doc自动生成接口文档
Customize multi-level list styles in word
Stop using system Currenttimemillis() takes too long to count. It's too low. Stopwatch is easy to use!
OJ每日一练——验证子串
Is it difficult to turn weak current into professional network worker? Huawei pre-sales engineers share their own experience
three.js模拟驾驶游览艺术展厅---打造超级相机控制器
c# sqlsugar,hisql,freesql orm框架全方位性能测试对比 sqlserver 性能测试
OJ每日一练——找第一个只出现一次的字符
OJ每日一练—— 班级就餐
【PHP】php多态
周国华 读书随记
2. interface (calculator)
Unity:利用 射线Ray 检测物体
js读取剪切板的图片
RedisTemplate使用遇到\x00的問題









