Free Newsletters:
Database Journal  
DBAnews  

DBASupport

 The Knowledge Center for Oracle Professionals

Search DBAsupport:
 
HOME 11g Central 10g Central 9i Central 8i Central Oracle News Scripts FAQ OCP Zone Resources Technical Docs Tools & Utilities Forums
internet.com

» 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.commerce
Be a Commerce Partner












internet.com
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers


   DBAsupport.com > Oracle > Oracle Scripts




Sr Staff Engineer - Oracle
The Computer Merchant, Ltd
US-VA-Arlington

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 : 3638 :: Rating: 10.00 :: Votes: 2


SCRIPT SEARCH


Submit Scripts Here