Oracle Solaris System Administration (MOSC)

MOSC Banner

Generate New name of backup file

edited May 29, 2010 9:18PM in Oracle Solaris System Administration (MOSC) 4 commentsAnswered ✓
Hi,

I'm taking a backup of Oracle DB controlfile through script that working file. When I run this script second time it's given error file already exists.

I want to know that how I can make a time stamp of backup file? so every time no need to change the backup file name.  

sqlplus /nolog <<@

connect /as sysdba

alter database backup controlfile to '/ora/crs/oracle/product/10/contrlbinary.bk';

sqlplus /nolog <<@

connect /as sysdba

alter database backup controlfile to '/ora/crs/oracle/product/10/contrlbinary.bk';

Regs

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