Considering the built-in 'Backup Database' script (backup.bat) that comes with a new installation of the Oracle Express 11g Edition, after finishing the script execution, what folders/files should be copied to an external media (XCOPY
backup) so the database could be fully restored the database after a new install?
Environment:
Windows Server 2003
Database is in ARQCHIVELOG
Datafiles/Tablespaces are set-up as default (user data is being allocated in USERS Tbs)
I have a guess that the folder [InstallDir]\oraclexe\app\oracle\fast_recovery_area
should contain all of what I need, but I'm afraid it isn't enough.
PS: Question moved from ServerFault: https://serverfault.com/questions/413762/oracle-database-11g-express-edition-built-in-backup-files-to-be-saved (too old to migrate)
Best Answer
The included
backup.bat
(windows) orbackup.sh
(all other platforms) script found under$ORACLE_HOME/config/scripts
will do the following:FAST_RECOVERY_AREA
parameter configured.XE/backupset
(online/warm backup using RMAN)$ORACLE_HOME/XE/dbs/spfile2init.ora
control file
andSPFILE
to the fast recovery area underXE/autobackup/
The archive logs are already located in the fast recovery area under
XE/archivelog
Note that the PFILE is created in the oracle home, but it is not required to restore the database, not even to a new server. Everything you do need is located in the Fast Recovery Area.
That's not to say that it's not a good idea to additionally back up the oracle home.