Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

RMAN Backup Query

Status
Not open for further replies.

Kevinillingw

Technical User
Aug 2, 2004
15
GB
Hi Guys

New user to Oracle here, I have an application that uses an Oracle (11g) database on a Windows Server 2012, I need to be able to backup the database whilst it is online the application is critical and cant be taken down to backup the database.

How do I specify where my backups are wrote to ?

How do I backup the database whilst online I have been reading and Backup archivelog seems the way but can anyone tell me how ?
 
Read up on RMAN. It's oracles backup manager and can do a hot backup if the database is in archivelog mode.

Bill
Lead Application Developer
New York State, USA
 
1) Configure rman (just once):
Code:
CONFIGURE DEFAULT DEVICE TYPE TO DISK; 
CONFIGURE DEVICE TYPE DISK PARALLELISM 2 BACKUP TYPE TO BACKUPSET;
CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT 'Y:\orabackup\ORCL\%d_%U'; #<= location of backups
#  Other configuration statements . . .
2) Code backup scripts:
Code:
# rman_full_bkp -- Full backup (base for incrementals)
RUN
{
  BACKUP AS COMPRESSED BACKUPSET
    INCREMENTAL LEVEL 0
    DATABASE
    INCLUDE CURRENT CONTROLFILE
    PLUS ARCHIVELOG DELETE INPUT
  ;
}
Code:
# rman_incr_bkp -- Incremental backup
RUN
{
  BACKUP AS COMPRESSED BACKUPSET
    INCREMENTAL LEVEL 1
    DATABASE
    INCLUDE CURRENT CONTROLFILE
    PLUS ARCHIVELOG DELETE INPUT
  ;
}
Code:
# rman_arch_bkp -- Archive logs backup
RUN {
  BACKUP AS COMPRESSED BACKUPSET
  ARCHIVELOG ALL DELETE INPUT
  ;
}
Code:
# Execute backup script
#!/bin/ksh
ORAENV_ASK=NO
. /usr/local/bin/oraenv 'ORCL'

rman target / {catalog rman/rman4bkup@rcat} @C:\oracle/scripts\rman_full_bkp.rmn LOG=C:\oracle\logs\full_bkp.log
Good luck!




----------------------------------------------------------------------------
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
 
As posted above:
Beilstwh said:
Read up on RMAN. It's oracles backup manager and can do a hot backup if the database is in archivelog mode.

----------------------------------------------------------------------------
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top