设为首页 加入收藏

TOP

最简单的11g Active DataGuard(ADG)搭建配置过程(项目步骤)(二)
2015-07-25 12:07:01 来源: 作者: 【 】 浏览:137
Tags:简单 11g Active DataGuard ADG 搭建 配置 过程 项目 步骤
r/db02/listener/alert/log.xml


Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))


Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=db02)(PORT=1521)))


Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))


STATUS of the LISTENER


------------------------


Alias LISTENER


Version TNSLSNR for Linux: Version 11.2.0.4.0 - Production


Start Date 17-JUN-2015 21:29:57


Uptime 0 days 0 hr. 0 min. 1 sec


Trace Level off


Security ON: Local OS Authentication


SNMP OFF


Listener Parameter File /DBSoft/oracle/product/11.2.4/dbhome_1/network/admin/listener.ora


Listener Log File /DBSoft/oracle/diag/tnslsnr/db02/listener/alert/log.xml


Listening Endpoints Summary...


? (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))


? (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=db02)(PORT=1521)))


Services Summary...


Service "PLSExtProc" has 1 instance(s).


? Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...


Service "woo" has 1 instance(s).


? Instance "woo", status UNKNOWN, has 1 handler(s) for this service...


The command completed successfully


--查看监听状态


[oracle@db02 dbs]$ lsnrctl status


LSNRCTL for Linux: Version 11.2.0.4.0 - Production on 17-JUN-2015 21:30:02


Copyright (c) 1991, 2013, Oracle. All rights reserved.


Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))


STATUS of the LISTENER


------------------------


Alias LISTENER


Version TNSLSNR for Linux: Version 11.2.0.4.0 - Production


Start Date 17-JUN-2015 21:29:57


Uptime 0 days 0 hr. 0 min. 4 sec


Trace Level off


Security ON: Local OS Authentication


SNMP OFF


Listener Parameter File /DBSoft/oracle/product/11.2.4/dbhome_1/network/admin/listener.ora


Listener Log File /DBSoft/oracle/diag/tnslsnr/db02/listener/alert/log.xml


Listening Endpoints Summary...


? (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))


? (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=db02)(PORT=1521)))


Services Summary...


Service "PLSExtProc" has 1 instance(s).


? Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...


Service "woo" has 1 instance(s).


? Instance "woo", status UNKNOWN, has 1 handler(s) for this service...


The command completed successfully


[oracle@db02 dbs]$


--修改参数文件


[oracle@db02 ~]$ sqlplus / as sysdba


SQL*Plus: Release 11.2.0.4.0 Production on Wed Jun 17 21:35:54 2015


Copyright (c) 1982, 2013, Oracle. All rights reserved.


Connected to an idle instance.


SQL> startup nomount;


ORACLE instance started.


Total System Global Area 1188511744 bytes


Fixed Size 1364228 bytes


Variable Size 754978556 bytes


Database Buffers 419430400 bytes


Redo Buffers 12738560 bytes


SQL> create spfile from pfile='/DBSoft/oracle/product/11.2.4/dbhome_1/dbs/initwoo.ora';


File created.


SQL>


SQL> shutdown abort;


ORACLE instance shut down.


SQL> startup nomount;


ORACLE instance started.


Total System Global Area 1188511744 bytes


Fixed Size 1364228 bytes


Variable Size 754978556 bytes


Database Buffers 419430400 bytes


Redo Buffers 12738560 bytes


SQL>


alter system set db_unique_name=sty scope=spfile;


alter system set log_archive_config='DG_CONFIG=(pri,dg)' scope=spfile;


alter system set log_archive_dest_1 ='LOCATION=/DBBackup/Archive VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=sty' scope=spfile;


alter system set log_archive_dest_2 ='SERVICE=pri LGWR SYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=pri' scope=spfile

首页 上一页 1 2 3 4 下一页 尾页 2/4/4
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇Oracle 11g统计信息收集--多列统.. 下一篇Linux的Docker上如何安装MySQL

评论

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