重庆思庄Oracle、KingBase、PostgreSQL、Redhat认证学习论坛

标题: 使用 nohup 命令创建物理备用数据库 [打印本页]

作者: ZhangQi    时间: 2025-6-20 19:12
标题: 使用 nohup 命令创建物理备用数据库
使用 DUPLICATE TARGET DATABASE FOR STANDBY FROM ACTTVE DATABASE NOFILENAMECHECK 命令创建物理备用数据库(Physical Standby Database) 时,主库数据量越大,创建所需要的时间越多,如果放前台运行该命令的话,容易中断,因此可以考虑将其放在后台

下面进行举例说明

1.创建hup.txt文件(或者hup.rcv文件,名字随便取)

run
{
allocate channel primy1 device type disk;
allocate channel primy2 device type disk ;
allocate channel primy3 device type disk ;
allocate channel primy4 device type disk ;
allocate auxiliary channel aux1 device type disk ;
allocate auxiliary channel aux2 device type disk ;
allocate auxiliary channel aux3 device type disk ;
allocate auxiliary channel aux4 device type disk ;
duplicate target database for standby from active database nofilenamecheck;
}

197646855412d34992.png
登录/注册后可看大图