You are on page 1of 2

COLD BACKUP(OFFLINE BACKUP)

Posted by Narashim Reddy .R on August 16, 2009

Rate This

[oracle@reddy ~]$ export ORACLE_SID=rub


[oracle@reddy ~]$ sqlplus sys as sysdba
SQL*Plus: Release 10.2.0.1.0 Production on Fri Oct 31 11:17:25 2008
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Enter password:
Connected to an idle instance.
SQL> startup;
ORACLE instance started.
Total System Global Area 348127232 bytes
Fixed Size 1219328 bytes
Variable Size 289408256 bytes
Database Buffers 50331648 bytes
Redo Buffers 7168000 bytes
Database mounted.
Database opened.
SQL> select name from v$datafile;
NAME

/home/oracle/rub/datafiles/system01.dbf
/home/oracle/rub/datafiles/undotbs1.dbf
/home/oracle/rub/datafiles/sysaux01.dbf
/home/oracle/rub/datafiles/users01.dbf
SQL> select name from v$controlfile;
NAME

/home/oracle/rub/control/c1.ctl
SQL> show parameter pfile;
NAME TYPE VALUE

spfile string /home/oracle/oracle/product/10


.2.0/db_1/dbs/spfilerub.ora
SQL> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> !
[oracle@reddy ~]$ mkdir backup
[oracle@reddy ~]$ ls
oracle Desktop oraInventory backup rub
[oracle@reddy ~]$ cd rub/
[oracle@reddy rub]$ cd datafiles/
[oracle@reddy datafiles]$ ls
redo01.log redo02.log sysaux01.dbf system01.dbf temp01.dbf undotbs1.dbf
users01.dbf
[oracle@reddy datafiles]$ cp * /home/oracle/backup/
[oracle@reddy datafiles]$ cd ..
[oracle@reddy rub]$ cd control/
[oracle@reddy control]$ ls
c1.ctl
[oracle@reddy control]$ cp c1.ctl /home/oracle/backup/
[oracle@reddy control]$ cd ..
[oracle@reddy rub]$ cd $ORACLE_HOME/dbs
[oracle@reddy dbs]$ ls
initrub.ora spfilerub.ora
[oracle@reddy dbs]$ cp initrub.ora /home/oracle/backup/
[oracle@reddy dbs]$ cp spfilerub.ora /home/oracle/backup/
[oracle@reddy dbs]$ cd
[oracle@reddy ~]$ cd backup/
[oracle@reddy backup]$ ls
c1.ctl spfilerub.ora system01.dbf undotbs1.dbf redo01.log redo02.log
initrub.ora sysaux01.dbf temp01.dbf users01.dbf

You might also like