New Feature of Oracle11g: a new feature is provided in the RMAN script using the replace variable Oracle11g, which is used in the RMAN script. Today, I did a small experiment on the server and tried this feature. Although some errors have been made, all of them have been solved! I feel that this feature is still good. Let's start with the question below. 1. create a directory for storing scripts and backup files $ cd/u01 $ mkdir-p oraclescripts/backup/dynamic $ mkdir/u01/backupfiles 2. create related scripts $ cd/u01/oraclescripts/backup/dynamic $ vi backup. cmd Add the following command: [python] # backup. cmd connect target/run {backup datafile 5 tag = & 1 format' & 2';} exit; this is an RMAN command, which will be called using a shell script later. The following creates a shell script: $ vi nightly_backup.sh Add the following command: [python] #! /Bin/bash tag = $1 format = $2 rman @ backup. cmd using $ tag $ format OK. Let's execute this shell script. $ sh nightly_backup.sh testtag \ '/u01/backupfiles/file5.bk \' I use two parameters. The first one is Tag, the second is the path to be backed up. After obtaining two parameters, the shell script executes @ backup. when cmd is used, the two parameters are passed in to & 1 and & 2. In this experiment, we back up the data file no. 5. You can customize the backup policy.