Database Administration (MOSC)

MOSC Banner

problem with rman duplicate database

edited Sep 15, 2016 5:01AM in Database Administration (MOSC) 3 commentsAnswered

Oracle 11.2.0.4 SE-One, 64bit

Oracle Linux 5 and 6

I don't know if this is an rman issue, or a shell script issue . . .

Given this script (with line numbers)

      1 #!/bin/sh      2 # active duplicate of fssys      3 #      4 #--      5 #-- Set basic enviornment variables      6 #--      7 export NLS_DATE_FORMAT='dd-Mon-yyyy hh24:mi:ss'      8 ORAENV_ASK=NO      9 echo =======================================================     10 echo Begin job at `date`     11 echo =======================================================     12 #--     13 #-- Insure that the aux (destination) instance is shut down     14 #--     15 ORACLE_SID=fssys     16 . oraenv     17 sqlplus / as sysdba <<EOF     18 shutdown immediate     19 EOF     20 # ----------------------------------------------------------------------        --     21 echo =======================================================     22 echo `date +%Y-%m-%d" "%H:%M:%S` - begin delete of data files.     23 echo from /oradata/$ORACLE_SID     24 echo     25 #=====================================================     26 #--   delete the

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center