ogg_安装配置12Cgg 由ADG抽取数据

标签:
adgogg12cmine |
分类: goldengate |
[ora11@prim ogg]$ ./ggsci
Oracle GoldenGate Command Interpreter for Oracle
Version 12.1.2.1.0
OGGCORE_12.1.2.1.0_PLATFORMS_140727.2135.1_FBO
Linux, x64, 64bit (optimized), Oracle 11g on Aug
7 2014 09:14:25
Operating system character set identified as UTF-8.
Copyright (C) 1995, 2014, Oracle and/or its affiliates. All
rights reserved.
GGSCI (prim) 1> info all
Program Status
Group
Lag at
Chkpt Time Since Chkpt
MANAGER STOPPED
GGSCI (prim) 2> create subdirs
Creating subdirectories under current directory /u01/ogg
Parameter files
/u01/ogg/dirprm: already exists
Report files
/u01/ogg/dirrpt: created
Checkpoint files
/u01/ogg/dirchk:
created
Process status files
/u01/ogg/dirpcs: created
SQL script files
/u01/ogg/dirsql:
created
Database definitions files
/u01/ogg/dirdef: created
Extract data files
/u01/ogg/dirdat: created
Temporary files
/u01/ogg/dirtmp: created
Credential store files
/u01/ogg/dircrd:
created
Masterkey wallet files
/u01/ogg/dirwlt:
created
Dump files
/u01/ogg/dirdmp:
created
至此12.1.2.1.0安装完毕,可以进行配置,进行同步。
升级12.1.2.1.0到12.1.2.1.5,
发现现在的升级步骤和oracle数据库的如此的相似,之前都是覆盖文件来升级。
$unzip PATCH.zip
$cd
[ora11@prim 20704740]$ /u01/ogg/OPatch/opatch apply
-oh /u01/ogg/
Invoking OPatch 11.2.0.1.7
Oracle Interim Patch Installer version 11.2.0.1.7
Copyright (c) 2011, Oracle Corporation. All
rights reserved.
Oracle Home
: /u01/ogg
Central Inventory : /u01/app/oracle/oraInventory
OPatch version :
11.2.0.1.7
OUI version
: 11.2.0.3.0
Log file location :
/u01/ogg/cfgtoollogs/opatch/opatch2015-07-06_22-51-44PM.log
Applying interim patch '20704740' to OH '/u01/ogg'
Verifying environment and performing prerequisite
checks...
Do you want to proceed? [y|n]
y
User Responded with: Y
All checks passed.
Please shutdown Oracle instances running out of this
ORACLE_HOME on the local system.
(Oracle Home = '/u01/ogg')
Is the local system ready for patching? [y|n]
y
User Responded with: Y
Backing up files...
Patching component oracle.oggcore.ora11g, 12.1.2.1.0...
Patch 20704740 successfully applied
Log file location:
/u01/ogg/cfgtoollogs/opatch/opatch2015-07-06_22-51-44PM.log
OPatch succeeded.
[ora11@prim 20704740]$ /u01/ogg/OPatch/opatch lsinventory
-oh /u01/ogg/
Invoking OPatch 11.2.0.1.7
Oracle Interim Patch Installer version 11.2.0.1.7
Copyright (c) 2011, Oracle Corporation. All
rights reserved.
Oracle Home
: /u01/ogg
Central Inventory : /u01/app/oracle/oraInventory
OPatch version :
11.2.0.1.7
OUI version
: 11.2.0.3.0
Log file location :
/u01/ogg/cfgtoollogs/opatch/opatch2015-07-06_22-53-14PM.log
Lsinventory Output file location :
/u01/ogg/cfgtoollogs/opatch/lsinv/lsinventory2015-07-06_22-53-14PM.txt
--------------------------------------------------------------------------------
Installed Top-level Products (1):
Oracle GoldenGate Core
12.1.2.1.0
There are 1 products installed in this Oracle Home.
Interim patches (1) :
Patch 20704740
: applied on Mon Jul 06 22:52:36 CST 2015
Unique Patch ID: 18899382
--------------------------------------------------------------------------------
OPatch succeeded.
[ora11@prim 20704740]$ cd ../../
[ora11@prim u01]$ cd ogg
[ora11@prim ogg]$ ./ggsci
Oracle GoldenGate Command Interpreter for Oracle
Version 12.1.2.1.5 20635622
OGGCORE_12.1.2.1.0OGGBP_PLATFORMS_150320.0454_FBO
Linux, x64, 64bit (optimized), Oracle 11g on Apr 22 2015
02:38:13
Operating system character set identified as UTF-8.
Copyright (C) 1995, 2015, Oracle and/or its affiliates. All
rights reserved.
GGSCI (prim) 1>
配置简单获取本地extract文件:
--local extract file
Extract ep_fme1
SetEnv (NLS_LANG = AMERICAN_AMERICA.ZHS16GBK)
UserID ggs, Password 123456
ExtTrail ./dirdat/f1
TranlogOptions RawDeviceOffset 0
TranlogOptions ALTARCHIVEDLOGFORMAT
yj1a-%r-%t-%S.arc
TranlogOptions
MINEFROMACTIVEDG
DynamicResolution
NoCompressUpdates
NoCompressDeletes
ReportCount Every 30 Minutes, Rate
Report at 01:00
ReportRollover at 01:15
DiscardFile ./dirrpt/ep_fme1.dsc, Purge
DiscardRollover at 02:00 ON SUNDAY
TABLE SUN.*
GGSCI>add extract ep_fme1,tranlog
,threads 2,begin now
GGSCI>add exttrail ./dirdat/f1, extract ep_fme1, megabytes
100
现在就可以收取ADG中的日志文件啦。