Oracle Cold Backup

Source: Internet
Author: User


Cold Backup Prerequisites:
The operating system is the same, you can Win32 to Win64,win32 to Win64 to execute the script.
Operation Steps:
A, view two instances of control files, data files, log files
b, close two instances
c, overwrite the corresponding file
D, open the instance

Problems:
A, if the number of control files is inconsistent.
A: Reduce the number of control files of the instance control files.
Alter system set control_files= '/u02/flash_recovery_area/bkt/control02.ctl ' scope=spfile;
b, the number of data files is inconsistent.
A: There are fewer instances of the data File New (tablespace), you can also delete more data files table space.
C, the number of log files is inconsistent.
For:
Method One: Log files with fewer instances increase the log file
ALTER DATABASE Add logfile Group 4 ' E:\APP\ADMINISTRATOR\ORADATA\YANTAI2\REDO01. LOG ' size 100m;
Method Two: Log file multiple instances delete the log file.
Toggle Log
alter system switch logfile;
If the log you want to delete is inactive, delete
Select Group#,status from V$log;
ALTER DATABASE drop logfile Group 1;

In order to avoid unnecessary trouble, I often keep two instances of the data files, control files, log files and the number of exactly the same location. The instance name is the same.

View SQL statements for data files, control files, and log files.
Select name from V$datafile;
Select name from V$controlfile;
Select member from V$logfile;

Oracle Cold Backup

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.