Cold backup and recovery of Oracle database in Windows environment

Source: Internet
Author: User
Tags sqlplus

1. Click "Run" on the Start menu and enter Sqlplus/nolog

2. In the popup command line window login as SYSDBA, to enter: System username/Login Password @ DB instance name, such as sys/[email protected]

3. Enter ALTER DATABASE backup Controlfile to trace Resetlogs, and then locate the file that you just executed under D:\oracle\product\10.1.0\admin\orcl\udump. Copy the following paragraph:

STARTUP Nomount
CREATE controlfile SET DATABASE "ORCL" Resetlogs ARCHIVELOG
Maxlogfiles 16
Maxlogmembers 3
Maxdatafiles 100
Maxinstances 8
Maxloghistory 454
LOGFILE
GROUP 1 ' D:\oracle\product\10.1.0\ORADATA\ORCL\REDO01. LOG ' SIZE 10M,
GROUP 2 ' D:\oracle\product\10.1.0\ORADATA\ORCL\REDO02. LOG ' SIZE 10M,
GROUP 3 ' D:\oracle\product\10.1.0\ORADATA\ORCL\REDO03. LOG ' SIZE 10M
DataFile
' D:\oracle\product\10.1.0\ORADATA\ORCL\SYSTEM01. DBF ',
' D:\oracle\product\10.1.0\ORADATA\ORCL\UNDOTBS01. DBF ',
' D:\oracle\product\10.1.0\ORADATA\ORCL\SYSAUX01. DBF ',
' D:\oracle\product\10.1.0\ORADATA\ORCL\USERS01. DBF ',
' D:\oracle\product\10.1.0\ORADATA\ORCL\USERS02. DBF ',
' D:\oracle\product\10.1.0\ORADATA\ORCL\TOOLS01. DBF '
CHARACTER SET ZHS16GBK;

4. Enter shutdown immediate to stop the current DB instance.

The 5.d:\oracle\product\10.1.0\db_1\database folder and the 3rd step show those logfile and datafile files are copied out.

6. Stop the new DB instance (the new DB instance has the same name as the source DB instance), and overwrite the files and folders you copied in step 5th with the corresponding files and folders under the New Database installation folder.

7. If the installation directory of the new DB instance is different from the installation directory of the source DB instance, you need to modify the section of the 3rd step copy to the path that matches the new DB instance and execute this statement with the SYS user login in Sqlplus, and the backup is complete.

Cold backup and recovery of Oracle database in Windows environment

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.