设为首页 加入收藏

TOP

配置ORACLE11GADG(二)
2014-11-23 21:38:49 来源: 作者: 【 】 浏览:46
Tags:配置 ORACLE11GADG
0
orcl.__shared_pool_size=92274688
orcl.__streams_pool_size=0
*.audit_file_dest='/export/11g/admin/orcl/adump'
*.audit_trail='db'
*.compatible='11.2.0.0.0'
*.control_files='/export/11g/oradata/orcl/control01.ctl','/export/11g/flash_recovery_area/orcl/control02.ctl'
*.db_block_size=8192
*.db_domain=''
*.db_name='orcl'
*.db_recovery_file_dest='/export/11g/flash_recovery_area'
*.db_recovery_file_dest_size=4070572032
*.diagnostic_dest='/export/11g'
*.dispatchers='(PROTOCOL=TCP) (SERVICE=orclXDB)'
*.log_archive_format='%t_%s_%r.dbf'
*.memory_target=417333248
*.open_cursors=300
*.processes=150
*.remote_login_passwordfile='EXCLUSIVE'
*.undo_tablespace='UNDOTBS1'
*.fal_client='orcl2'
*.fal_server='orcl1'
*.log_archive_config='DG_CONFIG=(orcl1,orcl2)'
*.log_archive_dest_1='LOCATION=USE_DB_RECOVERY_FILE_DEST valid_for=(all_logfiles,primary_role) db_unique_name=orcl2'
*.log_archive_dest_2='SERVICE=orcl1 lgwr async valid_for=(online_logfile,primary_role) db_unique_name=orcl1'
*.remote_login_passwordfile='EXCLUSIVE'
*.standby_file_management='AUTO'
*.db_unique_name='orcl2'

四、在备库上创建相应的目录

如udump/,oradate/

五、将备库启动到nomount状态,然后连接主库进行duplicate操作

  • [oracle@dg2 ~]$ lsnrctl start [oracle@dg2 ~]$ orapwd file=$ORACLE_HOME/dbs/orapworclpassword=oracle entries=5
  • [oracle@dg2 ~]$ sqlplus /nolog SQL*Plus: Release 11.2.0.1.0 Production on Sun Apr 22 13:36:53 2012
  • Copyright (c) 1982, 2011, Oracle. All rights reserved.
  • SQL> conn /as sysdba Connected to an idle instance.
  • SQL> create spfile frompfile='/export/11g/product/dbs/initorcl.ora'; File created.
  • SQL> startup nomount
  • ORACLE instance started.
  • Total System Global Area 417546240 bytes Fixed Size 2228944 bytes
  • Variable Size 285216048 bytes Database Buffers 121634816 bytes
  • Redo Buffers 8466432 bytes

[oracle@st dbs]rman targetsys/oracle@orcl1 auxiliarysys/oracle@orcl2

RMAN> duplicate target database for standby from activedatabase nofilenamecheck;

Starting Duplicate Db at 10-NOV-14

using target databasecontrol file instead of recovery catalog

allocated channel:ORA_AUX_DISK_1

channel ORA_AUX_DISK_1:SID=20 device type=DISK

contents of MemoryScript:

{

backup as copy reuse

targetfile '/export/11g/product/dbs/orapworcl' auxiliary format

'/export/11g/product/dbs/orapworcl' ;

}

executing Memory Script

Starting backup at 10-NOV-14

allocated channel:ORA_DISK_1

channel ORA_DISK_1:SID=43 device type=DISK

Finished backup at10-NOV-14

contents of MemoryScript:

{

backup as copy current controlfile forstandby auxiliary format '/export/11g/oradata/orcl/control01.ctl';

restore clone controlfile to '/export/11g/flash_recovery_area/orcl/control02.ctl' from

'/export/11g/oradata/orcl/control01.ctl';

}

executing Memory Script

Starting backup at 10-NOV-14

using channel ORA_DISK_1

channel ORA_DISK_1:starting datafile copy

copying standby controlfile

output filename=/export/11g/product/dbs/snapcf_orcl.f tag=TAG20141110T094600 RECID=5STAMP=863257560

channel ORA_DISK_1:datafile copy complete, elapsed time: 00:00:03

Finished backup at10-NOV-14

Starting restore at 10-NOV-14

using channelORA_AUX_DISK_1

channel ORA_AUX_DISK_1:copied control file copy

Finished restore at10-NOV-14

contents of MemoryScript:

{

sql clone 'alter database mount standbydatabase';

}

executing Memory S

首页 上一页 1 2 3 4 下一页 尾页 2/4/4
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇Oracle11g新特性系统分区表 下一篇oracle触发器产生单据号

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: