Create Rman Backup scripts from SQL Query

Create Rman Backup scripts from SQL Query


Step 1 - Create Backup scripts from below SQL Query(Edit the Backup location based on your environments) . this will create Rman_backup.rman.rman file

set echo off pages 0 feed off linesize 5000 TRIM on TRIMS on sqlp #
spool /erp_bkp/oradata/rman/tmp/Rman_backup.rman
select 'configure device type disk parallelism 5 backup type to backupset;' from dual;
select 'configure maxsetsize to '||round((max(bytes)/1024/1024) + 200)||'m;' from dba_data_files;
select 'backup as backupset tag ''RapidClone_RAC'' database format ''/erp_bkp/oradata/rman/bkp_sets/stage/%U'';' from dual;
select 'backup as backupset tag ''RapidClone_RAC'' archivelog all format  ''/erp_bkp/oradata/rman/bkp_sets/stage/%U'';' from dual;
select 'backup tag ''RapidClone_RAC'' as copy current controlfile format ''/erp_bkp/oradata/rman/bkp_sets/backup_controlfile.ctl'';' from dual;
select 'exit' from dual;
spool off;
exit;

Step 2 - Run the Backup scripts with nohup mode which was created from step 1

nohup rman target / nocatalog @/erp_bkp/oradata/rman/tmp/Rman_backup.rman log=/erp_bkp/oradata/rman/log/rman_backup.log &

appsdbahelp

17+ years of experience in Oracle Database, Oracle Cloud Infrastructure(OCI), Oracle EBS on Cloud, Oracle E-Business Suite, DevOps tools, Oracle WebLogic, Oracle Application Server, Oracle Access Manager and various Operating System flavors including Redhat Linux, UNIX (Solaris, HP-UX) and Windows. Expert in Oracle9i/10g/11g/12c/19c database administration, upgrade, configuration and tuning. Experience in Oracle E-Business Suite technological stack, including architecture, installation, configuration, maintenance, tuning, cloning and patching procedures. Expert in Oracle Cloud Infrastructure(OCI), Oracle EBS On Cloud and Oracle EBS Cloud Manager Experience with Oracle Cloud Solution and Expert of Oracle ERP/Oracle HCM Cloud deployment Experience in Terraform, JSON and chef cloud infrastructure automation framework Knowledge of ASM, Data Guard, Real Application Cluster, Exadata and Exalogic Knowledge of Oracle Enterprise Manager(OEM) Grid Control, Oracle WebLogic, Oracle Internet Directory, Oracle Access Manager and Apache Ability to analyze problem, develops solutions and bring program/project execution to completion.

Post a Comment

Previous Post Next Post