我的编程空间,编程开发者的网络收藏夹
学习永远不晚

Database backup

短信预约 -IT技能 免费直播动态提醒
省份

北京

  • 北京
  • 上海
  • 天津
  • 重庆
  • 河北
  • 山东
  • 辽宁
  • 黑龙江
  • 吉林
  • 甘肃
  • 青海
  • 河南
  • 江苏
  • 湖北
  • 湖南
  • 江西
  • 浙江
  • 广东
  • 云南
  • 福建
  • 海南
  • 山西
  • 四川
  • 陕西
  • 贵州
  • 安徽
  • 广西
  • 内蒙
  • 西藏
  • 新疆
  • 宁夏
  • 兵团
手机号立即预约

请填写图片验证码后获取短信验证码

看不清楚,换张图片

免费获取短信验证码

Database backup

[oracle@oracle01 ~]$

[oracle@oracle01 ~]$ rman target /

 

Recovery Manager: Release 11.2.0.4.0 - Production on Fri Jul 13 10:25:19 2018

 

Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.

 

connected to target database: ORA11GR2 (DBID=297877687)

 

RMAN> backup database;

 

Starting backup at 2018-07-13 10:25:28

using target database control file instead of recovery catalog

allocated channel: ORA_DISK_1

channel ORA_DISK_1: SID=38 device type=DISK

channel ORA_DISK_1: starting full datafile backup set

channel ORA_DISK_1: specifying datafile(s) in backup set

input datafile file number=00001 name=/u01/app/oracle/oradata/ora11gr2/system01.dbf

input datafile file number=00002 name=/u01/app/oracle/oradata/ora11gr2/sysaux01.dbf

input datafile file number=00005 name=/u01/app/oracle/oradata/ora11gr2/example01.dbf

input datafile file number=00003 name=/u01/app/oracle/oradata/ora11gr2/undotbs01.dbf

input datafile file number=00004 name=/u01/app/oracle/oradata/ora11gr2/users01.dbf

channel ORA_DISK_1: starting piece 1 at 2018-07-13 10:25:28

channel ORA_DISK_1: finished piece 1 at 2018-07-13 10:26:15

piece handle=/u01/app/oracle/fast_recovery_area/ORA11GR2/backupset/2018_07_13/o1_mf_nnndf_TAG20180713T102528_fnj3dsn6_.bkp tag=TAG20180713T102528 comment=NONE

channel ORA_DISK_1: backup set complete, elapsed time: 00:00:47

channel ORA_DISK_1: starting full datafile backup set

channel ORA_DISK_1: specifying datafile(s) in backup set

including current control file in backup set

including current SPFILE in backup set

channel ORA_DISK_1: starting piece 1 at 2018-07-13 10:26:16

channel ORA_DISK_1: finished piece 1 at 2018-07-13 10:26:17

piece handle=/u01/app/oracle/fast_recovery_area/ORA11GR2/backupset/2018_07_13/o1_mf_ncsnf_TAG20180713T102528_fnj3g8bv_.bkp tag=TAG20180713T102528 comment=NONE

channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01

Finished backup at 2018-07-13 10:26:17

 

RMAN> quit

 

 

Recovery Manager complete.

[oracle@oracle01 ~]$ cd /u01/app/oracle/oradata/ora11gr2/

[oracle@oracle01 ora11gr2]$ rm -rf system01.dbf

[oracle@oracle01 ora11gr2]$ sqlplus / as sysdba

 

SQL*Plus: Release 11.2.0.4.0 Production on Fri Jul 13 10:27:13 2018

 

Copyright (c) 1982, 2013, Oracle.  All rights reserved.

 

 

Connected to:

Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

 

SQL> shutdow abort;

ORACLE instance shut down.

SQL> startup

ORACLE instance started.

 

Total System Global Area 1653518336 bytes

Fixed Size                  2253784 bytes

Variable Size            1006636072 bytes

Database Buffers          637534208 bytes

Redo Buffers                7094272 bytes

Database mounted.

ORA-01157: cannot identify/lock data file 1 - see DBWR trace file

ORA-01110: data file 1: '/u01/app/oracle/oradata/ora11gr2/system01.dbf'

 

 

SQL> startup mount;

ORA-01081: cannot start already-running ORACLE - shut it down first

SQL> shut immediate

ORA-01109: database not open

 

 

Database dismounted.

ORACLE instance shut down.

SQL> startup mount

ORACLE instance started.

 

Total System Global Area 1653518336 bytes

Fixed Size                  2253784 bytes

Variable Size            1006636072 bytes

Database Buffers          637534208 bytes

Redo Buffers                7094272 bytes

Database mounted.

SQL> quit

Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

[oracle@oracle01 ora11gr2]$ rman target /

 

Recovery Manager: Release 11.2.0.4.0 - Production on Fri Jul 13 10:28:24 2018

 

Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.

 

connected to target database: ORA11GR2 (DBID=297877687, not open)

 

RMAN> restore database;   

 

Starting restore at 2018-07-13 10:28:41

using target database control file instead of recovery catalog

allocated channel: ORA_DISK_1

channel ORA_DISK_1: SID=20 device type=DISK

 

channel ORA_DISK_1: starting datafile backup set restore

channel ORA_DISK_1: specifying datafile(s) to restore from backup set

channel ORA_DISK_1: restoring datafile 00001 to /u01/app/oracle/oradata/ora11gr2/system01.dbf

channel ORA_DISK_1: restoring datafile 00002 to /u01/app/oracle/oradata/ora11gr2/sysaux01.dbf

channel ORA_DISK_1: restoring datafile 00003 to /u01/app/oracle/oradata/ora11gr2/undotbs01.dbf

channel ORA_DISK_1: restoring datafile 00004 to /u01/app/oracle/oradata/ora11gr2/users01.dbf

channel ORA_DISK_1: restoring datafile 00005 to /u01/app/oracle/oradata/ora11gr2/example01.dbf

channel ORA_DISK_1: reading from backup piece /u01/app/oracle/fast_recovery_area/ORA11GR2/backupset/2018_07_13/o1_mf_nnndf_TAG20180713T102528_fnj3dsn6_.bkp

channel ORA_DISK_1: piece handle=/u01/app/oracle/fast_recovery_area/ORA11GR2/backupset/2018_07_13/o1_mf_nnndf_TAG20180713T102528_fnj3dsn6_.bkp tag=TAG20180713T102528

channel ORA_DISK_1: restored backup piece 1

channel ORA_DISK_1: restore complete, elapsed time: 00:00:45

Finished restore at 2018-07-13 10:29:28

 

RMAN> recover database;

 

Starting recover at 2018-07-13 10:29:38

using channel ORA_DISK_1

 

starting media recovery

media recovery complete, elapsed time: 00:00:01

 

Finished recover at 2018-07-13 10:29:39

 

RMAN> quit

 

 

Recovery Manager complete.

[oracle@oracle01 ora11gr2]$ sqlplus / as sysdba

 

SQL*Plus: Release 11.2.0.4.0 Production on Fri Jul 13 10:29:53 2018

 

Copyright (c) 1982, 2013, Oracle.  All rights reserved.

 

 

Connected to:

Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

 

SQL> alter database open;


免责声明:

① 本站未注明“稿件来源”的信息均来自网络整理。其文字、图片和音视频稿件的所属权归原作者所有。本站收集整理出于非商业性的教育和科研之目的,并不意味着本站赞同其观点或证实其内容的真实性。仅作为临时的测试数据,供内部测试之用。本站并未授权任何人以任何方式主动获取本站任何信息。

② 本站未注明“稿件来源”的临时测试数据将在测试完成后最终做删除处理。有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341

Database backup

下载Word文档到电脑,方便收藏和打印~

下载Word文档

猜你喜欢

2024-04-02

怎么理解RMAN backup database plus archivelog delete all input命令

本篇文章为大家展示了怎么理解RMAN backup database plus archivelog delete all input命令,内容简明扼要并且容易理解,绝对能使你眼前一亮,通过这篇文章的详细介绍希望你能有所收获。RMAN> r
2023-06-06

ORA-16417: Activation occurred after recovery from standby redo log files; a full database backup is

文档解释ORA-16417: Activation occurred after recovery from standby redo log files; a full database backup is requiredCause:
ORA-16417: Activation occurred after recovery from standby redo log files; a full database backup is
2023-11-05

ORA-16004: backup database required recovery ORACLE 报错 故障修复 远程处理

文档解释ORA-16004: backup database required recoveryCause: The database could not be opened for read-only access by this
ORA-16004: backup database required recovery ORACLE 报错 故障修复 远程处理
2023-11-05

ORA-38872: Cannot perform backup control file recovery if Flashback Database is enabled. ORACLE 报错 故

文档解释ORA-38872: Cannot perform backup control file recovery if Flashback Database is enabled.Cause: RECOVER DATABASE
ORA-38872: Cannot perform backup control file recovery if Flashback Database is enabled. ORACLE 报错 故
2023-11-05

ORA-19943: The current database incarnation changed during backup ORACLE 报错 故障修复 远程处理

文档解释ORA-19943: The current database incarnation changed during backupCause: The backup failed because the current
ORA-19943: The current database incarnation changed during backup ORACLE 报错 故障修复 远程处理
2023-11-05

CA ARCserve Backup系列

step1、将安装光盘挂载mount /dev/cdrom /mnt/ step2、执行安装cd /mnt/DataMoverandAgent/Linux./install##################################
2023-01-31

Veeam backup job(3)

备份工作的配置:                                    有很多配置可以根据自己需求进行设置。
2023-01-31

编程热搜

目录