欧美一区二区三区老妇人-欧美做爰猛烈大尺度电-99久久夜色精品国产亚洲a-亚洲福利视频一区二区

OracleGoldenGate學(xué)習(xí)之--AIX系統(tǒng)安裝配置-創(chuàng)新互聯(lián)

Oracle GoldenGate學(xué)習(xí)之--AIX 系統(tǒng)安裝配置

成都創(chuàng)新互聯(lián)公司長(zhǎng)期為上千余家客戶提供的網(wǎng)站建設(shè)服務(wù),團(tuán)隊(duì)從業(yè)經(jīng)驗(yàn)10年,關(guān)注不同地域、不同群體,并針對(duì)不同對(duì)象提供差異化的產(chǎn)品和服務(wù);打造開放共贏平臺(tái),與合作伙伴共同營(yíng)造健康的互聯(lián)網(wǎng)生態(tài)環(huán)境。為微山企業(yè)提供專業(yè)的網(wǎng)站設(shè)計(jì)制作、成都網(wǎng)站制作,微山網(wǎng)站改版等技術(shù)服務(wù)。擁有10余年豐富建站經(jīng)驗(yàn)和眾多成功案例,為您定制開發(fā)。

系統(tǒng)環(huán)境

操作系統(tǒng):AIX5.3-09

DB Soft:  Oracle 10gR2

如下圖所示:

Oracle GoldenGate學(xué)習(xí)之--AIX系統(tǒng)安裝配置

 系統(tǒng)環(huán)境實(shí)在AIX系統(tǒng)上構(gòu)建單向OGG

下載OGG:

http://www.oracle.com/technetwork/cn/middleware/goldengate/downloads/index.html

Oracle GoldenGate學(xué)習(xí)之--AIX系統(tǒng)安裝配置

一、安裝OGG

1、解壓安裝ogg

在AIX211主機(jī)配置安裝ogg:

[root@aix21ogg]#ls

                              ogg112101_ggs_AIX_ppc_ora10.2_64bit.zip

[root@aix211 ogg]#unzip ogg112101_ggs_AIX_ppc_ora10.2_64bit.zip

Archive:  ogg112101_ggs_AIX_ppc_ora10.2_64bit.zip   inflating: ggs_AIX_ppc_ora10.2_64bit.tar     inflating: OGG_WinUnix_Rel_Notes_11.2.1.0.1.pdf     inflating: Oracle GoldenGate 11.2.1.0.1 README.doc     inflating: Oracle GoldenGate 11.2.1.0.1 README.txt

[root@aix211 ogg]#ls

OGG_WinUnix_Rel_Notes_11.2.1.0.1.pdf     ggs_AIX_ppc_ora10.2_64bit.tar Oracle GoldenGate 11.2.1.0.1 README.doc  lost+found Oracle GoldenGate 11.2.1.0.1 README.txt  ogg112101_ggs_AIX_ppc_ora10.2_64bit.zip

[root@aix211 ogg]#tar xvf ggs_AIX_ppc_ora10.2_64bit.tar

x . x ./mgr, 4421047 bytes, 8635 tape blocks x ./ggsci, 5779790 bytes, 11289 tape blocks x ./ggcmd, 2871133 bytes, 5608 tape blocks x ./ggMessage.dat, 1257280 bytes, 2456 tape blocks x ./help.txt, 169753 bytes, 332 tape blocks x ./tcperrs, 759 bytes, 2 tape blocks x ./bcrypt.txt, 1725 bytes, 4 tape blocks x ./libxml2.txt, 1668 bytes, 4 tape blocks x ./zlib.txt, 1476 bytes, 3 tape blocks x ./freeBSD.txt, 1968 bytes, 4 tape blocks x ./notices.txt, 213535 bytes, 418 tape blocks x ./libxerces-c.a, 9209080 bytes, 17987 tape blocks x ./libicui18n38.a, 9302329 bytes, 18169 tape blocks x ./libicuuc38.a, 6302602 bytes, 12310 tape blocks x ./libicudata38.a, 15580952 bytes, 30432 tape blocks x ./libantlr3c.so, 260012 bytes, 508 tape blocks ......

2、創(chuàng)建ogg缺省目錄

[root@aix211 ogg]#./ggsci

Could not load program ./ggsci:

    Dependent module libclntsh.so could not be loaded.

Could not load module libclntsh.so.

System error: No such file or directory

出現(xiàn)以上錯(cuò)誤!

[root@aix211 /]#chown -R oracle:dba /ogg

[root@aix211 ogg]#su - oracle

[oracle@aix211 ~]$cd /ogg

[oracle@aix211 ogg]$./ggsci

Oracle GoldenGate Command Interpreter for Oracle Version 11.2.1.0.1 OGGCORE_11.2.1.0.1_PLATFORMS_120423.0230 AIX 5L, ppc, 64bit (optimized), Oracle 10.2 on Apr 23 2012 07:27:46 Copyright (C) 1995, 2012, Oracle and/or its affiliates. All rights reserved. GGSCI (aix211) 2> help GGSCI Command Summary:  Object:          Command:  SUBDIRS          CREATE  ER               INFO, KILL, LAG, SEND, STATUS, START, STATS, STOP  EXTRACT          ADD, ALTER, CLEANUP, DELETE, INFO, KILL,                   LAG, REGISTER, SEND, START, STATS, STATUS, STOP                   UNREGISTER  EXTTRAIL         ADD, ALTER, DELETE, INFO  GGSEVT           VIEW  MANAGER          INFO, SEND, START, STOP, STATUS  MARKER           INFO  PARAMS           EDIT, VIEW  REPLICAT         ADD, ALTER, CLEANUP, DELETE, INFO, KILL, LAG, SEND,                   START, STATS, STATUS, STOP  REPORT           VIEW  RMTTRAIL         ADD, ALTER, DELETE, INFO  TRACETABLE       ADD, DELETE, INFO  TRANDATA         ADD, DELETE, INFO  SCHEMATRANDATA   ADD, DELETE, INFO  CHECKPOINTTABLE  ADD, DELETE, CLEANUP, INFO    Commands without an object:  (Database)       DBLOGIN, LIST TABLES, ENCRYPT PASSWORD, FLUSH SEQUENCE                   MININGDBLOGIN  (DDL)            DUMPDDL  (Miscellaneous)  FC, HELP, HISTORY, INFO ALL, OBEY, SET EDITOR, SHELL,                    SHOW, VERSIONS, ! (note: you must type the word                   COMMAND after the ! to display the ! help topic.)                   i.e.: GGSCI (sys1)> help ! command                For help on a specific command, type HELP <command> <object>. Example: HELP ADD REPLICAT GGSCI (aix211) 3> create subdirs Creating subdirectories under current directory /ogg Parameter files                /ogg/dirprm: already exists Report files                   /ogg/dirrpt: created Checkpoint files               /ogg/dirchk: created Process status files           /ogg/dirpcs: created SQL script files               /ogg/dirsql: created Database definitions files     /ogg/dirdef: created Extract data files             /ogg/dirdat: created Temporary files                /ogg/dirtmp: created Stdout files                   /ogg/dirout: created

在AIX212安裝配置ogg:

[root@aix212@ /]#chown oracle:dba /ogg [root@aix212@ /]#su - oracle [u@h@ W]$cd /ogg [u@h@ W]$bash [oracle@aix212@ ogg]$./ggsci Oracle GoldenGate Command Interpreter for Oracle Version 11.2.1.0.1 OGGCORE_11.2.1.0.1_PLATFORMS_120423.0230 AIX 5L, ppc, 64bit (optimized), Oracle 10.2 on Apr 23 2012 07:27:46 Copyright (C) 1995, 2012, Oracle and/or its affiliates. All rights reserved. GGSCI (aix212) 1> help GGSCI Command Summary:   Object:          Command:  SUBDIRS          CREATE  ER               INFO, KILL, LAG, SEND, STATUS, START, STATS, STOP  EXTRACT          ADD, ALTER, CLEANUP, DELETE, INFO, KILL,                   LAG, REGISTER, SEND, START, STATS, STATUS, STOP                   UNREGISTER  EXTTRAIL         ADD, ALTER, DELETE, INFO  GGSEVT           VIEW  MANAGER          INFO, SEND, START, STOP, STATUS  MARKER           INFO  PARAMS           EDIT, VIEW  REPLICAT         ADD, ALTER, CLEANUP, DELETE, INFO, KILL, LAG, SEND,                   START, STATS, STATUS, STOP  REPORT           VIEW  RMTTRAIL         ADD, ALTER, DELETE, INFO  TRACETABLE       ADD, DELETE, INFO  TRANDATA         ADD, DELETE, INFO  SCHEMATRANDATA   ADD, DELETE, INFO  CHECKPOINTTABLE  ADD, DELETE, CLEANUP, INFO    Commands without an object:  (Database)       DBLOGIN, LIST TABLES, ENCRYPT PASSWORD, FLUSH SEQUENCE                   MININGDBLOGIN  (DDL)            DUMPDDL  (Miscellaneous)  FC, HELP, HISTORY, INFO ALL, OBEY, SET EDITOR, SHELL,                    SHOW, VERSIONS, ! (note: you must type the word                   COMMAND after the ! to display the ! help topic.)                   i.e.: GGSCI (sys1)> help ! command                 For help on a specific command, type HELP <command> <object>. Example: HELP ADD REPLICAT GGSCI (aix212) 2>

二、數(shù)據(jù)庫(kù)配置

源端(AIX212)

1、建立數(shù)據(jù)的歸檔模式
SQL> alter database archivelog;
Database altered.

SQL> alter database force logging;
Database altered.

SQL> archive log list;
Database log mode              Archive Mode
Automatic archival             Enabled
Archive destination            /u01/arch_orcl
Oldest online log sequence     2
Next log sequence to archive   4
Current log sequence           4

2、創(chuàng)建ogg用戶并授權(quán)

[oracle@aix212@ ~]$sqlplus '/as sysdba'

SQL*Plus: Release 10.2.0.1.0 - Production on Tue Sep 23 14:46:43 2014
Copyright (c) 1982, 2005, Oracle.  All rights reserved.
Connected to an idle instance.

SQL> create tablespace oggtbs
  2  datafile 
  3  '/u01/app/oracle/oradata/orcl/oggtbs1.dbf' size 100m;
Tablespace created.

SQL> create user ogg identified by ogg default tablespace oggtbs;
User created.

SQL> grant connect,resource to ogg;
Grant succeeded.

SQL> grant create session,alter session to ogg;
Grant succeeded.

SQL> grant select any dictionary,select any table to ogg;
Grant succeeded.

SQL> grant alter any table to ogg;
Grant succeeded.

SQL> grant flashback any table to ogg;
Grant succeeded.

SQL> grant execute on dbms_flashback to ogg;
Grant succeeded.

3、創(chuàng)建傳輸?shù)膶?duì)象(table)
SQL> conn scott/tiger
Connected.

SQL> create table emp_ogg as select * from emp;
Table created.

SQL> alter table emp_ogg add constraint pk_ogg primary key (empno);
Table altered.

目標(biāo)端(AIX211)

1、創(chuàng)建ogg用戶并授權(quán) SQL> create tablespace oggtbs   2  datafile    3  '/u01/app/oracle/oradata/prod/oggtbs1.dbf' size 100m; Tablespace created. SQL> create user ogg identified by ogg default tablespace oggtbs; User created. SQL> grant dba to ogg; Grant succeeded. 創(chuàng)建測(cè)試對(duì)象 SQL> conn scott/tiger Connected. SQL> create table emp_ogg as select * from emp where 1=2; Table created.

三、配置OGG

源端配置(AIX212)

  1、配置mgr

[oracle@ogg aix212]$ ./ggsci Oracle GoldenGate Command Interpreter for Oracle Version 11.2.1.0.1 OGGCORE_11.2.1.0.1_PLATFORMS_120423.0230 AIX 5L, ppc, 64bit (optimized), Oracle 10.2 on Apr 23 2012 07:27:46 Copyright (C) 1995, 2012, Oracle and/or its affiliates. All rights reserved.   添加用于capture data change的table GGSCI (aix212) 4> add trandata scott.emp_ogg Logging of supplemental redo data enabled for table SCOTT.EMP_OGG.   GGSCI (aix212) 8> delete trandata scott.emp_ogg Logging of supplemental redo log data disabled for table SCOTT.EMP_OGG.   GGSCI (aix212) 9> add trandata scott.emp_ogg Logging of supplemental redo data enabled for table SCOTT.EMP_OGG.   查看在table上是否啟用了supplemental log GGSCI (aix212) 11> info trandata scott.emp_ogg Logging of supplemental redo log data is enabled for table SCOTT.EMP_OGG. Columns supplementally logged for table SCOTT.EMP_OGG: EMPNO.   GGSCI (aix212) 13> edit params mgr port 7809 dynamicportlist 7800-8000 autorestart extract *,waitminutes 2,resetminutes 5 編輯mgr參數(shù)文件,并寫入以上信息!   GGSCI (ogg) 14> start mgr Manager started.   GGSCI (ogg) 16> info all Program     Status      Group       Lag at Chkpt  Time Since Chkpt MANAGER     RUNNING

配置Extract并初始化:

另外有需要云服務(wù)器可以了解下創(chuàng)新互聯(lián)cdcxhl.cn,海內(nèi)外云服務(wù)器15元起步,三天無(wú)理由+7*72小時(shí)售后在線,公司持有idc許可證,提供“云服務(wù)器、裸金屬服務(wù)器、高防服務(wù)器、香港服務(wù)器、美國(guó)服務(wù)器、虛擬主機(jī)、免備案服務(wù)器”等云主機(jī)租用服務(wù)以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡(jiǎn)單易用、服務(wù)可用性高、性價(jià)比高”等特點(diǎn)與優(yōu)勢(shì),專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應(yīng)用場(chǎng)景需求。

標(biāo)題名稱:OracleGoldenGate學(xué)習(xí)之--AIX系統(tǒng)安裝配置-創(chuàng)新互聯(lián)
URL標(biāo)題:http://www.chinadenli.net/article30/dcdpso.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站排名網(wǎng)站營(yíng)銷軟件開發(fā)動(dòng)態(tài)網(wǎng)站定制網(wǎng)站網(wǎng)站設(shè)計(jì)公司

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)

網(wǎng)站建設(shè)網(wǎng)站維護(hù)公司