[Experiment-Video process] Simple and useful backup-oracle physical cold backup operation

Source: Internet
Author: User

[Experiment-Video process] Simple and useful backup-oracle physical cold backup operation

Mainly to the database to use the important files for targeted backup, data files, control files, online log files, archive log files, parameter files, password files, etc.

Cold backup requires an offline backup, that is, to shut down the database, more suitable for the business scenario can be shut down, such as supermarket stores server, 12 o'clock to 5 in the morning to shut down the database, then can be in this time period to do database cold backup.

The main is the following three steps

1 shut down the database normally
2 Back up all important files to the backup directory (data files, control files, redo log files, etc.)
3 Start the database after completing the backup

When recovering with a cold backup, you can start the database by simply restoring all the files to the original location.

1 Entering the database

[oracle@el48 xuejiayue]$ "/as sysdba"

2 Querying the directory where the data file DataFile is located:

SQL>SELECTFROM v$datafile;     查询控制文件controlfile的所在目录:SQL>SELECTFROM v$controlfile;     查询重做日志文件的所在目录:SQL>SELECTFROM v$logfile;

3 Closing the database

 SQL>shutdown immediate;

4 Backing up files to a backup directory

/u01/app/oracle/oradata/orcl/*.dbf  /home/backup/xuejiayue//u01/app/oracle/oradata/orcl/*.ctl  /home/backup/xuejiayue//u01/app/oracle/oradata/orcl/*.log  /home/backup/xuejiayue/

5 then start the database

 [oracle@el48 xuejiayue]$ "/as sysdba"
   SQL>startup

The video is as follows:

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced. If there is a need to reprint please contact [email protected]

[Experiment-Video process] Simple and useful backup-oracle physical cold backup operation

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.