20161026__Oracle10g_DataGuard
1、
orcl.__db_cache_size=180355072
orcl.__java_pool_size=4194304
orcl.__large_pool_size=4194304
orcl.__shared_pool_size=96468992
orcl.__streams_pool_size=0
*.audit_file_dest='D:\oracle\product\10.2.0/admin/orcl/adump'
*.background_dump_dest='D:\oracle\product\10.2.0/admin/orcl/bdump'
*.compatible='10.2.0.1.0'
*.control_files='D:\oracle\product\10.2.0\oradata\orcl\control01.ctl','D:\oracle\product\10.2.0\oradata\orcl\control02.ctl','D:\oracle\product\10.2.0\oradata\orcl\control03.ctl'
*.core_dump_dest='D:\oracle\product\10.2.0/admin/orcl/cdump'
*.db_block_size=8192
*.db_domain=''
*.db_file_multiblock_read_count=16
*.db_name='orcl'
*.db_recovery_file_dest='D:\oracle\product\10.2.0/flash_recovery_area'
*.db_recovery_file_dest_size=2147483648
*.dispatchers='(PROTOCOL=TCP) (SERVICE=orclXDB)'
*.job_queue_processes=10
###################modified log_archive_dest_1 add "VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=primary"###############
*.log_archive_dest_1='location=D:\oracle\product\10.2.0\db_1\database\archive\ VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=primary'
*.open_cursors=300
*.pga_aggregate_target=95420416
*.processes=150
*.remote_login_passwordfile='EXCLUSIVE'
*.sga_target=287309824
*.undo_management='AUTO'
*.undo_tablespace='UNDOTBS1'
*.user_dump_dest='D:\oracle\product\10.2.0/admin/orcl/udump'
######################new parameters#####################
DB_UNIQUE_NAME=primary
LOG_ARCHIVE_CONFIG='DG_CONFIG=(primary,standby)'
LOG_ARCHIVE_DEST_2='SERVICE=standby LGWR ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=standby'
LOG_ARCHIVE_DEST_STATE_1=ENABLE
LOG_ARCHIVE_DEST_STATE_2=ENABLE
REMOTE_LOGIN_PASSWORDFILE=EXCLUSIVE
LOG_ARCHIVE_MAX_PROCESSES=4
LOG_ARCHIVE_FORMAT=%t_%s_%r.arc
FAL_CLIENT = primary
FAL_SERVER = standby
DB_FILE_NAME_CONVERT='standby','primary'
STANDBY_FILE_MANAGEMENT =AUTO
log_file_name_convert='D:\oracle\product\10.2.0\oradata\ZHEJIANG','D:\oracle\product\10.2.0\oradata\ZHEJIANG'
2、
2.1、
SQL> create spfile='D:\oracle\product\10.2.0\db_1\dbs\SPFILEORCL.ORA' from pfile='D:\oracle\product\10.2.0\admin\orcl\pfile\init.ora.071205';
改成 (实际情况[tw的机子])
SQL> create spfile='D:\oracle\product\10.2.0\db_1\dbs\SPFILEZHEJIANG.ORA' from pfile='D:\oracle\product\10.2.0\admin\ZHEJIANG\pfile\init.ora.3152016131013';
2.2、
rman nocatalog target 'sys/admin@orcl as sysdba'
实际输入的命令为:
C:\Users\Administrator>rman nocatalog target 'sys/dongruisoft.com@ZHEJIANG as sysdba'
2.3、
run{
allocate channel c1 type disk;
backup format 'd:\db_bakup\full%u_%s_%p' database include current controlfile;
sql 'alter system archive log current';
backup filesperset 10 archivelog all format='d:\db_bakup\log%u_%s.bak';
release channel c1;
}
2.4、报错“PLS-00302: 必须声明 'GETRANGEALBACKUP' 组件”,实际是需要“升级相关包”
http://f.dataguru.cn/thread-112227-1-1.html
RMAN> upgrade catalog;
2.5、
3、我操作rman的步骤:
CMD中“rman catalog "sys/dongruisoft.com as sysdba"”
“rman target /” --> “connect catalog "sys/dongruisoft.com as sysdba"”
都有报错...
4、
“rman target sys/dongruisoft.com@ZJ”
“backup full database format 'D:\db_bakup\backup_%T_%s_%p.bak';” --> 成功
“backup archive log all format='D:\db_bakup\arch_%T_%s_%p.bak';” --> 失败
ZC: 貌似 之前是 我的 “D:\oracle\product\10.2.0\db_1\network\ADMIN\tnsnames.ora”没有正确的配置造成的(没有 指向本机的Oracle...指向的是 201的Oracle)
5、
6、步骤10
zhejiang.__db_cache_size=390070272
zhejiang.__java_pool_size=16777216
zhejiang.__large_pool_size=4194304
zhejiang.__shared_pool_size=192937984
zhejiang.__streams_pool_size=0
*.audit_file_dest='D:\oracle\product\10.2.0\admin\ZHEJIANG\adump'
*.background_dump_dest='D:\oracle\product\10.2.0\admin\ZHEJIANG\bdump'
*.compatible='10.2.0.3.0'
*.control_files='D:\oracle\product\10.2.0\oradata\ZHEJIANG\control01.ctl','D:\oracle\product\10.2.0\oradata\ZHEJIANG\control02.ctl','D:\oracle\product\10.2.0\oradata\ZHEJIANG\control03.ctl'
*.core_dump_dest='D:\oracle\product\10.2.0\admin\ZHEJIANG\cdump'
*.db_block_size=8192
*.db_domain=''
*.db_file_multiblock_read_count=16
*.db_name='ZHEJIANG'
*.db_recovery_file_dest='D:\oracle\product\10.2.0\flash_recovery_area'
*.db_recovery_file_dest_size=2147483648
*.dispatchers='(PROTOCOL=TCP) (SERVICE=ZHEJIANGXDB)'
*.job_queue_processes=10
###*.local_listener='(address=(protocol=tcp)(host=192.168.1.77)(port=1623))'### 网页文章中没有这个,就注释掉了
###################modified log_archive_dest_1 add "VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=primary"###############
*.log_archive_dest_1='location=D:\oracle\product\10.2.0\db_1\database\archive VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=primary'
*.open_cursors=300
*.pga_aggregate_target=203423744
*.processes=150
*.remote_login_passwordfile='EXCLUSIVE'
*.sga_target=612368384
*.undo_management='AUTO'
*.undo_tablespace='UNDOTBS1'
*.user_dump_dest='D:\oracle\product\10.2.0\admin\ZHEJIANG\udump'
######################new parameters#####################
DB_UNIQUE_NAME=standby
LOG_ARCHIVE_CONFIG='DG_CONFIG=(primary,standby)'
LOG_ARCHIVE_DEST_2='SERVICE=primary LGWR ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=primary'
LOG_ARCHIVE_DEST_STATE_1=ENABLE
LOG_ARCHIVE_DEST_STATE_2=ENABLE
REMOTE_LOGIN_PASSWORDFILE=EXCLUSIVE
LOG_ARCHIVE_MAX_PROCESSES=4
LOG_ARCHIVE_FORMAT=%t_%s_%r.arc
FAL_CLIENT = standby
FAL_SERVER = primary
DB_FILE_NAME_CONVERT='primary','standby'
STANDBY_FILE_MANAGEMENT =AUTO
log_file_name_convert='D:\oracle\product\10.2.0\oradata\ZHEJIANG','D:\oracle\product\10.2.0\oradata\ZHEJIANG'
6.1、∵ 我的 Oracle是安装在 F盘的,于是又改成这样:
zhejiang.__db_cache_size=390070272
zhejiang.__java_pool_size=16777216
zhejiang.__large_pool_size=4194304
zhejiang.__shared_pool_size=192937984
zhejiang.__streams_pool_size=0
*.audit_file_dest='F:\oracle\product\10.2.0\admin\ZHEJIANG\adump'
*.background_dump_dest='F:\oracle\product\10.2.0\admin\ZHEJIANG\bdump'
*.compatible='10.2.0.3.0'
*.control_files='F:\oracle\product\10.2.0\oradata\ZHEJIANG\control01.ctl','F:\oracle\product\10.2.0\oradata\ZHEJIANG\control02.ctl','F:\oracle\product\10.2.0\oradata\ZHEJIANG\control03.ctl'
*.core_dump_dest='F:\oracle\product\10.2.0\admin\ZHEJIANG\cdump'
*.db_block_size=8192
*.db_domain=''
*.db_file_multiblock_read_count=16
*.db_name='ZHEJIANG'
*.db_recovery_file_dest='F:\oracle\product\10.2.0\flash_recovery_area'
*.db_recovery_file_dest_size=2147483648
*.dispatchers='(PROTOCOL=TCP) (SERVICE=ZHEJIANGXDB)'
*.job_queue_processes=10
###*.local_listener='(address=(protocol=tcp)(host=192.168.1.77)(port=1623))'### 网页文章中没有这个,就注释掉了
###################modified log_archive_dest_1 add "VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=primary"###############
*.log_archive_dest_1='location=F:\oracle\product\10.2.0\db_1\database\archive VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=primary'
*.open_cursors=300
*.pga_aggregate_target=203423744
*.processes=150
*.remote_login_passwordfile='EXCLUSIVE'
*.sga_target=612368384
*.undo_management='AUTO'
*.undo_tablespace='UNDOTBS1'
*.user_dump_dest='F:\oracle\product\10.2.0\admin\ZHEJIANG\udump'
######################new parameters#####################
DB_UNIQUE_NAME=standby
LOG_ARCHIVE_CONFIG='DG_CONFIG=(primary,standby)'
LOG_ARCHIVE_DEST_2='SERVICE=primary LGWR ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=primary'
LOG_ARCHIVE_DEST_STATE_1=ENABLE
LOG_ARCHIVE_DEST_STATE_2=ENABLE
REMOTE_LOGIN_PASSWORDFILE=EXCLUSIVE
LOG_ARCHIVE_MAX_PROCESSES=4
LOG_ARCHIVE_FORMAT=%t_%s_%r.arc
FAL_CLIENT = standby
FAL_SERVER = primary
DB_FILE_NAME_CONVERT='primary','standby'
STANDBY_FILE_MANAGEMENT =AUTO
log_file_name_convert='F:\oracle\product\10.2.0\oradata\ZHEJIANG','F:\oracle\product\10.2.0\oradata\ZHEJIANG'
6.2、又根据 我机子上面的文件,又配置了一份:
ZC: 本来是文件“F:\oracle\product\10.2.0\admin\orcl\pfile\init.ora.88201594715”,现在 复制一份 叫做“init_1.ora.88201594715”(注意,我的机子里面居然 Oracle实例名 是叫“orcl”...居然不是“ZHEJIANG”...)
7、
8、
9、资料
upgrade catalog; --> http://f.dataguru.cn/thread-112227-1-1.html
oracle数据库版本升级后导致的catalog连接问题 --> http://www.ixdba.net/article/5d/1247.html
resync catalog; --> http://bbs.chinaunix.net/thread-793248-1-1.html
配置catalog --> http://www.itpub.net/thread-1020496-1-1.html
tnsnames.ora 中配置 catalog的连接 --> http://www.programgo.com/article/49583187097/;jsessionid=4FDD1AE3F2D9A3BF1A20294CCE137F37
10、
20161026__Oracle10g_DataGuard的更多相关文章
随机推荐
- JS脚本文件的位置对页面加载性能影响以及无阻塞脚本(javascript)模式
JS的阻塞特性:当<script>出现的时候,页面必须等待脚本文件的加载.解析.执行完毕后才能继续进行页面的渲染.不管脚本文件是以内联形式还是外部引入的形式出现在<script> ...
- Given an array where elements are sorted in ascending order, convert it to a height balanced BST.
/** * Definition for binary tree * public class TreeNode { * int val; * TreeNode left; * TreeNode ri ...
- WebService 学习
WebService是一种跨编程语言和跨操作系统平台的远程调用技术. XML+XSD, SOAP 和 WSDL 是构成WebService平台的三大技术. SOAP = HTTP协议 + XML数据格 ...
- 向ES6看齐,用更好的JavaScript(二)
本文是ES6系列的第二篇,主要介绍ES6中对现有对象方法属性的拓展,先上传送门: 1 变量部分 2 现有对象拓展 3 新增数据类型/数据结构 4 新的异步编程模式 5 类和模块 1 增加了模板字符串 ...
- Leetcode: Number of Segments in a String
Count the number of segments in a string, where a segment is defined to be a contiguous sequence of ...
- iOS-打开word、ppt、pdf、execl文档方式
这里面包括下载和打开文档的操作:需要先导入<AFNetworking>的框架 第一步:创建一个显示文档的view:ReadViewController (1).h的代码如下: @inter ...
- IPC
IPC,全名Inter Process Communication即进程间通讯,在同一台机器上的两个进程就用IPC,不能跨物理机器。IPC包括共享内存、队列、信号量等几种方式,由于IPC通讯效率之高, ...
- 详解 Array.prototype.slice.call(arguments)
首先,slice有两个用法,一个是String.slice,一个是Array.slice,第一个返回的是字符串,第二个返回的是数组 在这里我们看第二个方法 1.在JS里Array是一个类 slice是 ...
- 如何反编译DLL文件
1.利用反编译器,多种工具,本次选用Reflector 8.5. 2.界面如下:
- 在虚拟机发布网站,设置服务器外网访问ip端口号
这是虚机上的发布网站的网站端口号 这一步要在实机设置 做完这一步,在外网就可以访问你刚刚发布的站点了