当前位置:首页 > 生活百科

oralce是什么软件(oracle数据库菜鸟教程)

栏目:生活百科日期:2025-02-21浏览:0

Oracle 数据库一个大企业经常使用的一种数据.下面我们来学习一下Oralce的RMAN备份

操作环境:CentOS 6.5

Oralce 版本:Oracle 11g

一、Oracle 数据库的归档

1、查看是否归档

SQL&> archive log list;

Database log mode No Archive Mode

Automatic archival Disabled

Archive destination USE_DB_RECOVERY_FILE_DEST

Oldest online log sequence 61

Current log sequence 63

2、开启归档

SQL&> shutdown immediate;

Database closed.

Database dismounted.

ORACLE instance shut down.

SQL&> startup mount;

ORACLE instance started.

Total System Global Area 780824576 bytes

Fixed Size 2257312 bytes

Variable Size 511708768 bytes

Database Buffers 264241152 bytes

Redo Buffers 2617344 bytes

Database mounted.

SQL&> alter database archivelog;

Database altered.

SQL&> archive log list;

Database log mode Archive Mode

Automatic archival Enabled

Archive destination USE_DB_RECOVERY_FILE_DEST

Oldest online log sequence 61

Next log sequence to archive 63

Current log sequence 63

SQL&> alter database open;

Database altered.

SQL&>

二、开启rman 备份

[oracle@dbaul01 rman]$ rman target /

Recovery Manager: Release 11.2.0.4.0 &– Production on Fri OCT 9 00:06:54 2017

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

connected to target database: ORCL (DBID=1457544464)

RMAN&> show all;

using target database control file instead of recovery catalog

RMAN configuration parameters for database with db_unique_name ORCL are:

CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default

CONFIGURE BACKUP OPTIMIZATION OFF; # default

CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default

CONFIGURE CONTROLFILE AUTOBACKUP OFF; # default

CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO &‘%F&’; # default

CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default

CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default

CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default

CONFIGURE MAXSETSIZE TO UNLIMITED; # default

CONFIGURE ENCRYPTION FOR DATABASE OFF; # default

CONFIGURE ENCRYPTION ALGORITHM &‘AES128&’; # default

CONFIGURE COMPRESSION ALGORITHM &‘BASIC&’ AS OF RELEASE &‘DEFAULT&’ OPTIMIZE FOR LOAD TRUE ; # default

CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default

CONFIGURE SNAPSHOT CONTROLFILE NAME TO &‘/u01/app/product/db/dbs/snapcf_orcl.f&’; # default

RMAN&> backup database;

Starting backup at 09-OCT-17

allocated channel: ORA_DISK_1

channel ORA_DISK_1: SID=36 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=00006 name=/u01/app/oradata/rman/an.dbf

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

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

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

input datafile file number=00005 name=/u01/app/oradata/rm/rm02.dbf

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

channel ORA_DISK_1: starting piece 1 at 09-OCT-17

channel ORA_DISK_1: finished piece 1 at 09-OCT-17

piece handle=/u01/app/fast_recovery_area/ORCL/backupset/2017_10_09/o1_mf_nnndf_TAG20171009T000843_d4m1dgsq_.bkp tag=TAG20171009T000843 comment=NONE

channel ORA_DISK_1: backup set complete, elapsed time: 00:04:21

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 09-OCT-17

channel ORA_DISK_1: finished piece 1 at 09-OCT-17

piece handle=/u01/app/fast_recovery_area/ORCL/backupset/2017_10_09/o1_mf_ncsnf_TAG20171009T000843_d4m1nqrf_.bkp tag=TAG20171009T000843 comment=NONE

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

Finished backup at 09-OCT-17

三、备份完毕

“oralce是什么软件(oracle数据库菜鸟教程)” 的相关文章

如何使用微信公众号平台,公众号新手教程

在如今新媒体浪潮的推动下,自媒体的出现是时代的召唤。作为自媒体营销的领头羊,微信公众号凭借自身的传播特性与营销优势,正以意想不到的速度向前发展。微信公众号的营销...

大学生创业贷款条件是什么,-大学生免息贷款流程

大学生创业无息贷款申请资料1、身份证复印件(核查原件)2、创业计划书3、工商营业执照4、税务登记证(没有税务登记证的提供税务登记机关出具的有关证明)5、毕业生就...

分类信息网站推广的秘诀(有关分类信息网站推广和应用)

什么是分类信息网推广?知道58同城与赶集网就明白什么是分类信息网了。今天,小小课堂网为大家带来的是分类信息网推广的要点与注意事项。希望对大家有所帮助。一、什么是...

圆方设计软件怎么样(5款室内设计软件简评)

在便捷、快节奏的生活背景下,任何事情都提倡高效。所以各种操作方便的简易化软件应运而生,例如美图秀秀、爱剪辑这类的软件,你并不需要多少的专业知识一样可以满足你日常...

h5推广是什么意思,常见的h5有效推广方式

零成本打破H5推广窘境做H5的新媒体运营通常有两种结局1.想创意呀想创意10天后…卒死因:脑洞不够大,被创意憋死2.好不容易有了创意,做H5呀做H510天后…卒...

linux定时器的使用(linux定时器函数)

Linux下的cron是用来定期执行程序任务的一组命令,包含了cron和crontab两个命令。crontab,用于维护每个用户定时任务文件的命令。cron,是...

大学生自主创业项目有哪些(大河大学生在校园的创业商机

大学生人数的增加,除了与近几年大学生人数增加等因素有一定关系外,与一系列政策支持也有密切关系,政府正在努力解决大学生就业资金难的问题。不少大四毕业生开始忙着找工...

健康产业个人如何创业,新手做健康行业的须知要项

健康是每一个人都关注的问题,随着人们健康意识的不断提高,人们对于生活质量的要求也越来越高。但是随着近年来生活环境和生活方式的不断变化,人们的健康所面临的挑战也越...

双11价保服务为何反成割韭菜(正在翻船)

媒体报道,利用第三方平台刷单、通过“好评返现”虚构好评、利用伪装成真实快递的“空包”刷单……近年来,“刷单炒信”行为日益花样翻新。“正规平台,诚邀刷单,按条结算...

dnf装备镶嵌栏怎么开,dnf镶嵌栏开启装置获取攻略_1

在DNF移动版手游中最近被爆料出也是有徽章系统的,徽章系统中的徽章怎么操作呢?有小伙伴在问,要如何来镶嵌,下面就跟随小编一起来看一下徽章镶嵌方法吧。徽章镶嵌方法...