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的更多相关文章

随机推荐

  1. tensorflow 学习(一)

    改系列只为记录我学习 udacity 中深度学习课程!! 1. 整个课程分为四个部分,如上图所示. 第一部分将研究逻辑分类器,随机优化以及实际数据训练. 第二部分我们将学习一个深度网络,和使用正则化技 ...

  2. iOS/OS X线程安全的基础知识

    处理多并发和可重入性问题,是每个库发展过程中面临的比较困难的挑战之一.在Parse平台上,我们尽最大的努力保证你在使用我的SDKs时所做的操作都是线程安全的,保证不会出现性能问题. 在这篇文章中我们将 ...

  3. zabbix的一些优化参数随笔

    StartDBSyncers=12  如果proxy过多 可以适当加大这个参数 ProxyConfigFrequency=60ProxyDataFrequency=60 这两个参数很重要,一个是ser ...

  4. 去bom头

    function rewrite ($filename, $data) { $filenum = fopen($filename, "w"); flock($filenum, LO ...

  5. js日期字符串增加天数的函数

    //日期加天数的方法 //dataStr日期字符串 //dayCount 要增加的天数 //return 增加n天后的日期字符串 function dateAddDays(dataStr,dayCou ...

  6. Android drawText获取text宽度的三种方式

    String str = "Hello";canvas.drawText( str , x , y , paint); //1. 粗略计算文字宽度Log.d(TAG, " ...

  7. mysql中engine=innodb和engine=myisam的区别

    最开始用MySQL Administrator建数据库的时候,表缺省是InnoDB类型,也就没有在意.后来用Access2MySQL导数据的时候发现只能导成 MyISAM类型的表,不知道这两种类型有什 ...

  8. .net MVC简介、项目中每个文件夹的功能

    MVC是微软2009对外公布的第一个开源的表示层框架,这是微软的第一个开源项目 M:viewmodel  V:视图  c:控制器 App_Data:一个比较特殊的文件夹,把文件放到这个文件夹,通过地址 ...

  9. iOS10权限声明国际化

    iOS 10要求用户声明隐私访问用途,而且不能为空,否则将会被拒.被拒邮件如下: 解决办法是在Info.plist中添加Privacy - Camera Usage Description和Priva ...

  10. jquery通过name,id名称获取当前value值

    name是input标签的属性值,jQuery提供了attr() 方法用于设置/改变属性值 $("input:text").attr("name");$(&qu ...