首页 >

在Oracle 11gR2上使用RMAN实现整库迁移

数据库|mysql教程在Oracle 11gR2上使用RMAN实现整库迁移
Oracle 11gR2,在Oracle 11gR2上使用R
数据库-mysql教程
帝国cms糗事百科源码,vscode安装主题,验证ubuntu,tomcat 应用路径,sqlite登录存储,腾讯云服务器 阿里云服务器,今日分享小插件下载,vue布局前端框架,骷髅爬虫VS红背骷髅爬虫,php接口防,seo怎么关键词优化,小说网站静态页面模板,手机 网页 pdf插件下载,织梦响应式模板下载,jquery 页面锁定,mvc影片管理系统,短信收发c程序源码lzw
在Oracle 11gR2上使用RMAN实现整库迁移 背景: 数据库 IP SID 端口 数据库版本 Target DB 192.168.1.133 orcl 152
新奇商业源码网,ubuntu怎么设置声卡,tomcat编码统一配置,python 爬虫 掉线,php 敏感词过滤类,seo代发lzw
守望者内核驱动变速易语言源码,vscode项目所在文件夹,ubuntu安装ssl,tomcat适合学吗,sqlite查询过程,网页设计尺寸要点,server u 怎么创建ftp服务器,jquery动画洗牌插件,css 框架 前端框架区别,爬虫的简历,eclipse开发php,seo枯燥,springboot对象传递,phpcms 中英文网站,漂亮的网页div布局,绿色视频网站模板免费下载,织梦后台重装,页面三级树形展示,angularjs用户管理系统,微赞外卖对接小程序lzw

在Oracle 11gR2上使用RMAN实现整库迁移

背景:

数据库

IP

SID

端口

数据库版本

Target DB

192.168.1.133

orcl

1521

11.2.0.1.0

Auxiliary DB

192.168.1.133(可以是同一机器,,也可以是不同机器)

V112

1522

11.2.0.1.0

1. 在Auxiliary 创建pfile 参数文件

[oracle@localhost dbs]$ pwd
/u01/oracle11gR2/product/11.2.0/db_1/dbs
[oracle@localhost dbs]$ more initv112.ora
*.DB_NAME=v112
*.control_files=’/u01/oracle11gR2/oradata/v112/control01.ctl’,’/u01/oracle11gR2/flash_recovery_area
/v112/control02.ctl’
*.db_block_size=8192
*.compatible=’11.2.0.1′
_compression_compatibility=”11.2.0″ 注:这个隐含参数可以绕过11.2.0.1的bug
*.db_recovery_file_dest_size=4294967296
*.db_recovery_file_dest=’/u01/oracle11gR2/flash_recovery_area’
*.audit_file_dest=’/u01/oracle11gR2/admin/v112/adump’

2. 在Auxiliary库上创建口令文件
[oracle@localhost dbs]$ pwd
/u01/oracle11gR2/product/11.2.0/db_1/dbs
[oracle@localhost dbs]$ orap
orapipe orapki orapwd orapwdO
[oracle@localhost dbs]$ orapwd file=orapwv112 password=Your password
3. 在Auxiliary库创建相关的目录结构
[oracle@localhost dbs]$ mkdir /u01/oracle11gR2/admin/v112/
[oracle@localhost dbs]$ mkdir /u01/oracle11gR2/oradata/v112/
注:在duplicate过程中,如果目录不存在,则会报错“ORA-27040: file create error, unable to create file”

4. 启动Auxiliary 到nomout 状态

SQL> conn / as sysdba;
Connected to an idle instance.
SQL> startup nomount pfile=‘/u01/oracle11gR2/product/11.2.0/db_1/dbs/initv112.ora’
ORACLE instance started.
Total System Global Area 146472960 bytes
Fixed Size 1335080 bytes
Variable Size 92274904 bytes
Database Buffers 50331648 bytes
Redo Buffers2531328 bytes

5. 在Target 和Auxiliary 都配置Oracle Net(Listener.ora and tnsnames.ora)[可选]

[oracle@localhost admin]$ more tnsnames.ora
# tnsnames.ora Network Configuration File: /u01/oracle11gR2/product/11.2.0/db_1/network/admin/tnsna
mes.ora
# Generated by Oracle configuration tools.
v112 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.133)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = v112)
)
)
LISTENER_v112 =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.133)(PORT = 1521))
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.133)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SID_NAME = orcl
)
)
LISTENER_ORCL =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.133)(PORT = 1521))

[oracle@localhost admin]$ more listener.ora
# listener.ora Network Configuration File: /u01/oracle11gR2/product/11.2.0/db_1/network/admin/listener.ora
# Generated by Oracle configuration tools.
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.133)(PORT = 1521))
)
)
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = v112)
(ORACLE_HOME = /u01/oracle11gR2/product/11.2.0/db_1)
(SID_NAME = v112)
)
)

LISTENER2 =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.133)(PORT = 1522))
)
)

SID_LIST_LISTENER2 =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = orcl)
(ORACLE_HOME = /u01/oracle11gR2/product/11.2.0/db_1)
(SID_NAME = orcl)
)
)

ADR_BASE_LISTENER1 = /u01/oracle11gR2


在Oracle 11gR2上使用RMAN实现整库迁移
  • Oracle 11gR2的延迟段功能
  • Oracle 11gR2的延迟段功能 | Oracle 11gR2的延迟段功能 ...

    在Oracle 11gR2上使用RMAN实现整库迁移
  • 在CentOS 6.4下安装Oracle 11gR2(x64)
  • 在CentOS 6.4下安装Oracle 11gR2(x64) | 在CentOS 6.4下安装Oracle 11gR2(x64) ...

    在Oracle 11gR2上使用RMAN实现整库迁移
  • 禁用Oracle 11gR2 DataGuard默认审计功能
  • 禁用Oracle 11gR2 DataGuard默认审计功能 | 禁用Oracle 11gR2 DataGuard默认审计功能 ...