The fifth day of Oracle learning [RMAN]

Source: Internet
Author: User

Two methods to Start RMAN

1

C: \ Documents ents and Settings \ Administrator>RMAN

Recovery MANAGER: Version 10.1.0.2.0-Production

Copyright (c) 1995,200 4, Oracle.
All rights reserved.

RMAN>Connect target/

Connect to the target database: orcl (dbid = 1268391944)

RMAN>

2

C: \ Documents ents and Settings \ Administrator>RMAN
Target/

Recovery MANAGER: Version 10.1.0.2.0-Production

Copyright (c) 1995,200 4, Oracle.
All rights reserved.

Connect to the target database: orcl (dbid = 1268391944)

Change the password of SYS and system users

SQL> Conn/As sysdba

Connected.

SQL>Alter user system identified by Feng;

The user has changed.

SQL> conn system/Feng;

Connected.

SQL>Alter user SYS identified by Feng;

The user has changed.

3. connect to a remote database

C: \ Documents ents and Settings \ Administrator>RMAN
Target System/Feng @ orcl

Recovery MANAGER: Version 10.1.0.2.0-Production

Copyright (c) 1995,200 4, Oracle.
All rights reserved.

Connect to the target database: orcl (dbid = 1268391944)

RMAN>

 

Execute operating system commands

RMAN>Host;

Microsoft Windows XP [version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C: \ Documents ents and Settings \ Administrator>

 

Execute SQL commands

RMAN>SQL'Alter system archive log all';

RMAN>Backup database;

RMAN>Backup database format 'J: \ oracle \ Bak _ % U ';

RMAN>Backup tablespace system;

SQL>Select file_id, file_name from dba_data_files;

RMAN>Backup datafile 'J: \ oracle \ bak_0qmdi87g ';

RMAN>Backup current controlfile;

RMAN>Backup archivelog all;

RMAN>Backup spfile;

RMAN>Backup backupset all;

RMAN>Backup backupset N;

RMAN>List backup of database;

RMAN>List backup of tablespace users;

RMAN>Delete backupset N;

RMAN>Show all;

RMAN>List backup;

RMAN>List backup of controlfile;

RMAN> Report need backup;

RMAN>Report obsolete;

RMAN>Crosscheck archivelog all;

RMAN>Crosscheck backup;

RMAN>Change backup of tablespace system unavailable;

RMAN>


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.