RMan

Oracle RMAN 备份控制文件/恢复控制文件

天涯浪子 提交于 2019-12-24 18:09:58
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> --备份控制文件 rman target / RMAN> startup RMAN> configure controlfile autobackup on; --启动自动备份 RMAN> show CONTROLFILE AUTOBACKUP; --显示是否自动备份控制文件 RMAN> configure controlfile autobackup format for device type disk to '/backup/%F'; --设置控制文件备份路径 RMAN> show controlfile autobackup format; --显示自动备份控制文件路径 RMAN> list backup of controlfile;--显示备份信息 ----手动备份控制文件 RMAN> backup as backupset current controlfile; --------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------

oracle:使用delete expired backup报ORA-19606错

≡放荡痞女 提交于 2019-12-24 17:57:48
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 报错现象: 解决办法: 就是把SNAPSHOT CONTROLFILE的配置路径改变,然后删除控制文件快照 具体步骤: 解决: --1. Set new name (or location) for RMAN to use for snapshot controlfile: RMAN> CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/app/ora11g/product/11.2.0/db_1/dbs/snapcf_wxxqccdb.f.new'; 新的 RMAN 配置参数: CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/app/ora11g/product/11.2.0/db_1/dbs/snapcf_wxxqccdb.f.new'; 已成功存储新的 RMAN 配置参数 --2. Remove the snapshot controlfile from the RMAN information as a controlfile copy. delete '/u01/app/ora11g/product/11.2.0/db_1/dbs/snapcf_wxxqccdb.f' on operating system. --3.

登录RMAN 报ORA-12162:TNS:net service name is incorrectly specified错误

我与影子孤独终老i 提交于 2019-12-24 17:13:12
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> oracle @localhost admin]$ rman target / Recovery Manager: Release 11.2.0.4.0 - Production on Tue Apr 22 18:08:11 2018 Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved. RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-00554: initialization of internal recovery manager package failed RMAN-04005: error from target database: ORA-12162: TNS:net service name is

How to import a Oracle 11g RMAN backupset on a new database server?

旧时模样 提交于 2019-12-22 17:39:54
问题 I have got a backupset of an Oracle 11g database which was created with RMAN. Now I want to import/restore the backupset onto a new and empty database server. I know that the command to create the backupset was run { backup as compressed backupset database tag "FULLBACKUP" format "/orabackup/rman/backup/FULL_%d_%T_%U"; backup as compressed backupset archivelog all tag "ARCHIVELOGS" format "/orabackup/rman/backup/ARCH_%d_%T_%U" delete all input; } but I cannot find out how to make the files

[Oracle] RMAN中backup archivelog all 和plus archivelog的区别

允我心安 提交于 2019-12-19 17:08:24
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 备份归档日志方式: 单独备份归档日志:backup archivelog all 在执行备库时一起备份归档日志:backup database plus archivelog; 这两种方式有什么区别呢? 运行backup archivelog all 命令时执行的步骤: 1.alter system archive log current; 归档当前日志 2.backup archivelog all ; 备份所有归档日志 而运行backup database plus archivelog,的运行步骤: 1.alter system archive log current; 归档当前日志 2.backup archivelog all; 备份所有归档日志 3.backup database; 备份数据库 4.alter system archive log current; 归档当前日志 5.backup archivelog recently generated ; 备份刚生成的归档日志 删除归档日志一般在备份归档日志同时加上一个参数:delete all input, 例如:backup database plus archivelog delete all input

How to connect to RMAN in Java?

只谈情不闲聊 提交于 2019-12-11 19:23:06
问题 I don't know how to connect to RMAN in Java. Simple request don't work when I use command non-SQL, like RMAN etc... I'm gonna to make program like "ORACLE Secure BackUP", but how they connected to RMAN?? 回答1: I don't believe that there is a published API for interacting with RMAN other than the command line. So if you wanted to create a program like Oracle Secure Backup that used RMAN, you'd probably have to invoke the RMAN executable from Java. Which means that you'd probably also have to

CentOS7.5 install Oracle12.1 and update

左心房为你撑大大i 提交于 2019-12-10 05:20:26
CentOS7.5 install Oracle12.1 and update 1.1 、 install centos7.5 1.2 、 vi etc/sysctl.conf add row: fs.aio-max-nr = 1048576 fs.file-max = 6815744 kernel.shmmni = 4096 kernel.shmall = 1073741824 kernel.shmmax = 4398046511104 kernel.sem = 250 32000 100 128 net.ipv4.ip_local_port_range = 1024 65500 net.core.rmem_default = 262144 net.core.rmem_max = 4194304 net.core.wmem_default = 262144 net.core.wmem_max = 1048576 vm.swappiness = 0 vm.vfs_cache_pressure = 62 # net.core.default_qdisc = fq # net.ipv4.tcp_congestion_control = bbr net.ipv4.tcp_fin_timeout = 30 net.ipv4.tcp_keepalive_time = 1800 net

巧用Rman 来管理裸设备上的数据库

夙愿已清 提交于 2019-12-10 03:16:26
我们知道, Unix 上面的 Oracle 数据库 大多都存放在 裸设备 上面,以利于磁盘IO 性能的提升。但是裸设备的管理比较麻烦,尤其是把数据文件从文件系统转换到裸设备,或者从裸设备把数据文件转换到文件系统,这些给dba 带来很头疼的事情。 本文介绍一个办法,可以用 Rman 来轻松搞定裸设备/文件系统之间数据文件的迁移。 在传统方法里面,我们必须对于每个Unix 不同的Block 大小, OS 卷管理的overhead 的值作计算,才能非常小心的用dd 来做这些拷贝和移动,但是现在在Rman 的帮助下,我们可以完全忽略这些不同的地方,在所有 Unix 平台/NT 平台上直接在Oracle 内部实现这种数据 一. 把数据文件从文件系统转移到裸设备 比如我们现在有一个数据库,其rbs.dbf 数据文件的IO 量非常大,造成比较大的IO 等待,我们希望把它转移到裸设备上,以提升性能。可以看到,我们这个rbs.dbf 的大小为60M,所以我们需要创建一个61M 的裸设备(1M 空间用来让 操作系统 使用,管理卷组信息,其实不用1M 也可以,我们方便起见,给1M)。 s80_svc:oraprd 22> ls -l rbs.dbf -rw-r----- 1 oraprd dba 62916608 Jan 20 21:48 rbs.dbf 我们先要知道 操作系统 的一个PP

DataGuardPhysicalStandbySetupinOracleDatabase11gR2

喜欢而已 提交于 2019-12-09 21:33:27
Home » Articles » 11g » Here Data Guard Physical Standby Setup in Oracle Database 11g Release 2 Data Guard is the name for Oracle's standby database solution, used for disaster recovery and high availability. This article contains an updated version of the 9i physical standby setup method posted here . You should probably be using the Data Guard Broker to configure and manage your standby database, as described here . Assumptions Primary Server Setup Logging Initialization Parameters Service Setup Backup Primary Database Create Standby Controlfile and PFILE Standby Server Setup (Manual) Copy

Dataguard

放肆的年华 提交于 2019-12-09 21:15:39
部署dataguard时需要利用主库的备份创建容灾库,对于小库可以采用冷备方式,而对于大库,因做冷备导致过长的停机时间是很多企业无法容忍的。下面介绍在主库不关闭的情况下,做利用热备创建容灾库的方法。(不描述dg实施的细节,只针对主库热备及在容灾主机上做库恢复的方式) 1、主库热备 主库已开启归档功能,在数据库open状态下做全备: Rman> run { Sql ‘alter system archive log current’; backup full database format '/data/backup/full_db_%U.bpk'; } 注:这里不备份在线归档日志,后面做容灾库恢复时,直接从主库copy归档文件。 2、容灾库创建 启动容灾库到mount状态: sql> startup mount; 利用之前主库热备文件还原数据文件: rman> restore database; 由于目前容灾库状态落后于主库,需要利用主库归档日志文件做recover,以实现状态一致。 需要确定要从主库复制哪些用于恢复的归档文件。 检查还原后datafile的checkpoint_change# sql> select checkpoint_change# from v$datafile_header; 513326