DBASupport

 The Knowledge Center for Oracle Professionals
HOME 11g Central 10g Central 9i Central 8i Central Oracle News Scripts FAQ OCP Zone Resources Technical Docs Tools & Utilities Forums

» HOME
» FEATURES
    11g Central
    10g Central
    9i Central
    8i Central
    Oracle News
» COMMUNITY
    Scripts
    Forums
    FAQ
    OCP Zone
» RESOURCES
    Resources
    Technical Docs
    Tools & Utilities
    Tech Jobs
Marketplace Partners
Become a Marketplace Partner






Internet News
Small Business

Advertise
Newsletters
Tech Jobs
E-mail Offers


   DBAsupport.com > Oracle > Oracle Scripts



 

Oracle Developer Jr - READY TO HIRE!
Next Step Systems
US-CA-Thousand Oaks

Justtechjobs.com Post A Job | Post A Resume

Description:    WILL TAKE COLD BACKUP OF WHOLE DATABASE.
WILL PERFORM SHUTDOWN/STARTUP AUTOMATICALLY.

Code:

Following script should be executed by dba account.
This script will create batch file and will take a cold backup of your database.
Shutdown and Startup will be handeled by Script.

Save following script as a "COLDBK.SQL"


Before executing this script please create DBBACKUP folder on C: drive.

--------------COLDBK.SQL---------------
set term off
set head off
set feedback off
set verify off
spool c:\startcopy.bat
select 'copy '||name||' c:\DBBACKUP' from v$datafile;
select 'copy '||name||' c:\DBBACKUP' from v$controlfile;
select 'copy '||name||' c:\DBBACKUP' from v$tempfile;
select 'copy '||member||' c:\DBBACKUP' from v$logfile;
spool off
shutdown IMMEDIATE
host c:\startcopy.bat
startup
host del c:\startcopy.bat
set term on
set head on
set feedback on
set verify on
-------------------------------

          submitted by: Dnyaneshwar Shriramrao Pasange Hits : 3863 :: Rating: 10.00 :: Votes: 2


SCRIPT SEARCH


Submit Scripts Here





[an error occurred while processing this directive]