18.4 manage physical backup Databases

Source: Internet
Author: User

1. Start the physical backup database

2. Start application redo

3. Close the physical backup database

4. Open the physical standby database in read-only mode

5. Activate the physical backup database

C: \> sqlplus sys/orcl @ standby2 as sysdba

SQL * Plus: Release 10.2.0.1.0-production on Tuesday February 17 14:55:37 2009

Copyright (c) 1982,200 5, Oracle. All rights reserved.

Already connected to the idle routine.

SQL> startup Mount
The Oracle routine has been started.

Total system global area 603979776 bytes
Fixed size 1250380 bytes
Variable Size 163580852 bytes
Database buffers 432013312 bytes
Redo buffers 7135232 bytes
The database has been loaded.
SQL> alter database recover managed standby database disconnect from session;

The database has been changed.

SQL> select process, status from V $ managed_standby;

Process status
---------------------
Arch connected
Arch connected
Mrp0 applying_log

SQL> select process, status from V $ managed_standby;

Process status
---------------------
Arch connected
Arch connected
Mrp0 wait_for_log

SQL> alter database recover managed standby database cancel;

The database has been changed.

SQL> shutdown immediate
ORA-01109: the database is not open

The database has been detached.
The Oracle routine has been disabled.
SQL> startup
The Oracle routine has been started.

Total system global area 603979776 bytes
Fixed size 1250380 bytes
Variable Size 163580852 bytes
Database buffers 432013312 bytes
Redo buffers 7135232 bytes
The database has been loaded.
The database has been opened.
SQL> select * from test;

C
----------
1
3

SQL> insert into test values (4 );
Insert into test values (4)
*
Row 3 has an error:
ORA-16000: Open the database for read-only access

SQL> alter database open;
Alter database open
*
Row 3 has an error:
ORA-01531: Instance opened database

SQL> alter database Activate standby database;
Alter database Activate standby Database
*
Row 3 has an error:
ORA-01577: unable to add Log File 'd: \ standby2 \ redo01.log'-the file is part of the database

SQL> shutdown immediate
ORA-01109: the database is not open

The database has been detached.
The Oracle routine has been disabled.

SQL> startup
The Oracle routine has been started.

Total system global area 603979776 bytes
Fixed size 1250380 bytes
Variable Size 163580852 bytes
Database buffers 432013312 bytes
Redo buffers 7135232 bytes
The database has been loaded.
The database has been opened.
SQL> alter database Activate standby database;

The database has been changed.

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.