1. 程式人生 > >Oracle RAC 到單機 OGG 配置測試

Oracle RAC 到單機 OGG 配置測試

1.     測試環境:

源端:

OS:Centos 6.8

資料庫:11.2.0.4 

例項: rac1 rac2 rac3

Goldengate:fbo_ggs_Linux_x64_shiphome.zip

Rac與單例項不同之處在於rac上的goldengate 需要安裝在共享儲存上

目的端:

OS:Centos 6.8

資料庫:11.2.0.4  

例項:test

2.     源端配置步驟

1) 配置ACFS,

這裡就直接用asmca 進行建立(也可以用命令進行操作)

[[email protected] ~]# su - grid

+ASM1:/home/[email protected]

>export DISPLAY=192.168.180.186:0.0

+ASM1:/home/[email protected]>asmca


這裡已經建立資料磁碟組的名字為“ACFS”,這裡就省略建立磁碟組的步驟

 磁碟組建立完成後,再點選Volumes標籤頁,建立卷:

卷建立完成後,為該卷建立ACFS檔案系統,點選ASM Cluster File System:

 


至此ACFS就建立完了

在各個節點檢視是否掛載上:


2)下載安裝ogg

下載可以直接到Oracle 官網上下載即可


將下載好的ogg安裝包上傳到剛才建立的/ogg 共享磁碟下

注意這裡我們將以oracle

使用者安裝(之前測試用grid安裝,遇到P程序起不來,也沒找到好的方法解決)

rac1:/[email protected]>unzip fbo_ggs_Linux_x64_shiphome.zip

rac1:/home/[email protected]>cd /ogg/

rac1:/[email protected]>cd fbo_ggs_Linux_x64_shiphome/Disk1/

rac1:/ogg/fbo_ggs_Linux_x64_shiphome/[email protected]>exportDISPLAY=192.168.180.186:0.0

rac1:/ogg/fbo_ggs_Linux_x64_shiphome/[email protected]>./runInstaller

Starting Oracle Universal Installer...

Checking Temp space: must be greater than 120 MB.   Actual 28177 MB    Passed

Checking swapspace: must be greater than 150 MB.  Actual 3258 MB    Passed

Checking monitor: must be configuredto display at least 256 colors.    Actual16777216    Passed

Preparing to launch Oracle Universal Installer from/tmp/OraInstall2017-03-12_12-59-46PM. Please wait ...



注意這裡提示我的/ogg/install 下不為空,可以直接選擇忽略就可以了,不會有影響的


安裝好以後,進入ogg安裝目錄執行:ggsci

rac1:/[email protected]>cd /ogg/install/

rac1:/ogg/[email protected]>./ggsci

OracleGoldenGate Command Interpreter for Oracle

Version12.2.0.1.1 OGGCORE_12.2.0.1.0_PLATFORMS_151211.1401_FBO

Linux,x64, 64bit (optimized), Oracle 11g on Dec 12 2015 00:54:38

Operatingsystem character set identified as UTF-8.

Copyright(C) 1995, 2015, Oracle and/or its affiliates. All rights reserved.

GGSCI (rac1) 1>

注意這裡一定配置: LD_LIBRARY_PATH,否則會報以下的錯誤:

/ggsci ./ggsci: error while loading shared libraries: libnnz11.so:cannot open shared object file: No such file or directory

只要在.bash_profile 裡設定LD_LIBRARY_PATH就行了,如下:

exportLD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/lib32/:/usr/lib:/usr/lib64:/usr/local/lib:/lib:/lib64

3)開啟DB歸檔以及最小附加日誌(在其中任意一個節點上執行就可以了)

rac1:/home/[email protected]>sqlplus/ as sysdba

SQL*Plus:Release 11.2.0.4.0 Production on Sat Mar 11 09:01:31 2017

Copyright(c) 1982, 2013, Oracle.  All rightsreserved.

Connectedto:

OracleDatabase 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production

With thePartitioning, Real Application Clusters, Automatic Storage Management, OLAP,

DataMining and Real Application Testing options

SQL>archive log list;

Databaselog mode       Archive Mode

Automaticarchival         Enabled

Archivedestination        +FRA_ARC

Oldestonline log sequence     85

Next logsequence to archive   86

Currentlog sequence             86

SQL>select force_logging from v$database;

FOR

---

NO

SQL>select supplemental_log_data_min from v$database;

SUPPLEME

--------

NO

SQL>alter database force logging;

Databasealtered.

SQL>alter database add supplemental log data;

Databasealtered.

SQL>select force_logging from v$database;

FOR

---

YES

SQL>select supplemental_log_data_min from v$database;

SUPPLEME

--------

YES

SQL>select log_mode,supplemental_log_data_min,force_logging from v$database;

LOG_MODE     SUPPLEME FOR

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

ARCHIVELOG   YES      YES

SQL> altersystem set enable_goldengate_replication = true scope=both;

System altered.

注意:這裡要重啟資料庫,使引數生效

4) 建立表空間以及使用者(在其中任意一個節點上執行)

rac1:/home/[email protected]>sqlplus/ as sysdba

SQL*Plus:Release 11.2.0.4.0 Production on Sat Mar 11 09:18:58 2017

Copyright(c) 1982, 2013, Oracle.  All rightsreserved.

Connectedto:

OracleDatabase 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production

With thePartitioning, Real Application Clusters, Automatic Storage Management, OLAP,

DataMining and Real Application Testing options

SQL>create tablespace ogg;

Tablespacecreated.

SQL>create user ogg identified by ogg default tablespace ogg;

Usercreated.

SQL>grant connect,resource,dba to ogg;

Grantsucceeded.

SQL> grant execute on utl_file to ogg;

Grant succeeded.

SQL>  execdbms_streams_auth.grant_admin_privilege('ogg');

PL/SQL procedure successfully completed.

SQL> grant insert on system.logmnr_restart_ckpt$ to ogg;

Grant succeeded.

SQL> grant update on sys.streams$_capture_process to ogg;

Grant succeeded.

SQL>  grant becomeuser to ogg;

Grant succeeded.

SQL> grant flashback any table to ogg;

Grant succeeded.

注意:紅色標記的可以不用執行,

5)配置TNS(各節點都要執行)

RAC =

 (DESCRIPTION =

   (ADDRESS = (PROTOCOL = TCP)(HOST = rac-scan)(PORT = 1521))

   (CONNECT_DATA =

     (SERVER = DEDICATED)

     (SERVICE_NAME = rac)

   )

 )

ASM =

 (DESCRIPTION =

   (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.180.2)(PORT = 1521))

   (CONNECT_DATA =

     (SERVER = DEDICATED)

     (SERVICE_NAME = +ASM)

     (SID_NAME = +ASM1)

   )

  )

6)安裝ddl同步支援

rac1:/home/[email protected]>cd /ogg/install/     --進入ogg安裝目錄

rac1:/ogg/[email protected]>sqlplus/ as sysdba

SQL*Plus:Release 11.2.0.4.0 Production on Sun Mar 12 08:56:20 2017

Copyright(c) 1982, 2013, Oracle.  All rightsreserved.

Connectedto:

OracleDatabase 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production

With thePartitioning, Real Application Clusters, Automatic Storage Management, OLAP,

DataMining and Real Application Testing options

SQL> @marker_setup  --該指令碼用於建立DDLmarkerGGS_MARKER,用於儲存DDL資訊,該表只進行insert操作

Markersetup script

You willbe prompted for the name of a schema for the Oracle GoldenGate databaseobjects.

NOTE: Theschema must be created prior to running this script.

NOTE:Stop all DDL replication before starting this installation.

EnterOracle GoldenGate schema name:ogg

Markersetup table script complete, running verification script...

Pleaseenter the name of a schema for the GoldenGate database objects:

Settingschema name to OGG

MARKERTABLE

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

OK

MARKERSEQUENCE

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

OK

Scriptcomplete.

SQL> @ddl_setup    --該指令碼建立了進行DDL複製抽取和複製所需的物件

OracleGoldenGate DDL Replication setup script

Verifyingthat current user has privileges to install DDL Replication...

You willbe prompted for the name of a schema for the Oracle GoldenGate databaseobjects.

NOTE: Foran Oracle 10g source, the system recycle bin must be disabled. For Oracle 11gand later, it can be enabled.

NOTE: Theschema must be created prior to running this script.

NOTE:Stop all DDL replication before starting this installation.

EnterOracle GoldenGate schema name:ogg

Working,please wait ...

Spoolingto file ddl_setup_spool.txt

Checkingfor sessions that are holding locks on Oracle Golden Gate metadata tables ...

Checkcomplete.

Using OGGas a Oracle GoldenGate schema name.

Working,please wait ...

DDLreplication setup script complete, running verification script...

Pleaseenter the name of a schema for the GoldenGate database objects:

Settingschema name to OGG

CLEAR_TRACESTATUS:

Line/pos                               Error

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

No errors                             No errors

CREATE_TRACESTATUS:

Line/pos                               Error

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

No errors                             No errors

TRACE_PUT_LINESTATUS:

Line/pos                               Error

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

No errors                             No errors

INITIAL_SETUPSTATUS:

Line/pos                               Error

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

No errors                             No errors

DDLVERSIONSPECIFICPACKAGE STATUS:

Line/pos                               Error

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

No errors                             No errors

DDLREPLICATIONPACKAGE STATUS:

Line/pos                               Error

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

No errors                             No errors

DDLREPLICATIONPACKAGE BODY STATUS:

Line/pos                               Error

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

No errors                             No errors

DDLIGNORE TABLE

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

OK

DDLIGNORE LOG TABLE

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

OK

DDLAUX     PACKAGE STATUS:

Line/pos                               Error

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

No errors                             No errors

DDLAUXPACKAGE BODY STATUS:

Line/pos                               Error

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

No errors                             No errors

SYS.DDLCTXINFO      PACKAGE STATUS:

Line/pos                               Error

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

No errors                             No errors

SYS.DDLCTXINFO      PACKAGE BODY STATUS:

Line/pos                               Error

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

No errors                             No errors

DDLHISTORY TABLE

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

OK

DDLHISTORY TABLE(1)

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

OK

DDL DUMPTABLES

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

OK

DDL DUMPCOLUMNS

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

OK

DDL DUMPLOG GROUPS

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

OK

DDL DUMPPARTITIONS

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

OK

DDL DUMPPRIMARY KEYS

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

OK

DDLSEQUENCE

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

OK

GGS_TEMP_COLS

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

OK

GGS_TEMP_UK

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

OK

DDLTRIGGER CODE STATUS:

Line/pos                               Error

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

No errors                             No errors

DDLTRIGGER INSTALL STATUS

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

OK

DDLTRIGGER RUNNING STATUS

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

ENABLED

STAYMETADATAIN TRIGGER

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

OFF

DDLTRIGGER SQL TRACING

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

0

DDLTRIGGER TRACE LEVEL

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

NONE

LOCATIONOF DDL TRACE FILE

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

/u01/app/oracle/diag/rdbms/rac/rac1/trace/ggs_ddl_trace.log

Analyzinginstallation status...

VERSIONOF DDL REPLICATION

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

OGGCORE_12.2.0.1.0_PLATFORMS_151211.1401

STATUS OFDDL REPLICATION

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

SUCCESSFULinstallation of DDL Replication software components

Scriptcomplete.

SQL> @role_setup   --建立DDL複製所需的物件

GGS Rolesetup script

Thisscript will drop and recreate the role GGS_GGSUSER_ROLE

To use adifferent role name, quit this script and then edit the params.sql script tochange the gg_role parameter to the preferred name. (Do not run the script.)

You willbe prompted for the name of a schema for the GoldenGate database objects.

NOTE: Theschema must be created prior to running this script.

NOTE:Stop all DDL replication before starting this installation.

EnterGoldenGate schema name:ogg

Wrotefile role_setup_set.txt

PL/SQLprocedure successfully completed.

Rolesetup script complete

Grantthis role to each user assigned to the Extract, GGSCI, and Manager processes,by using the following SQL command:

GRANTGGS_GGSUSER_ROLE TO <loggedUser>

where<loggedUser> is the user assigned to the GoldenGate processes.

SQL> GRANT GGS_GGSUSER_ROLE TO ogg;

Grantsucceeded.

SQL> @ddl_enable  -- 啟用DDL複製,實質上是建立觸發器,用以想MARKERHISTORY表插入DDL資訊

Triggeraltered.

SQL>exit

安裝效能優化工具 (可選項)

要提高DDL觸發器的效能,可以通過ddl_pin指令碼,該指令碼會將觸發器使用的包載入到記憶體,以此提高效率。該指令碼執行時需要引用dbms_shared_pool系統包,因此在使用ddl_pin指令碼前需要確保dbms_shared_pool可用。

SQL>@?/rdbms/admin/dbmspool.sql

Packagecreated.

Grantsucceeded.

Viewcreated.

Packagebody created.

執行ddl_pin指令碼需要指定GoldenGate管理員schema名稱,例如:

SQL>@ddl_pin ogg

PL/SQLprocedure successfully completed.

PL/SQLprocedure successfully completed.

PL/SQLprocedure successfully completed.

7) 開啟表級別、日誌傳輸,建立檢查點表

  開啟歸檔,最小附加日誌和強制歸檔之後,ogg可以同步insert,delete等部分操作,但遇到update 時將會掛掉,報錯說找不到相關記錄,因此,還需要再對每一個table都在源端開啟表級日誌傳輸。(必須要登陸ogg才可以執行)

rac1:/home/[email protected]>cd/ogg/install/

rac1:/ogg/[email protected]>./ggsci

OracleGoldenGate Command Interpreter for Oracle

Version12.2.0.1.1 OGGCORE_12.2.0.1.0_PLATFORMS_151211.1401_FBO

Linux,x64, 64bit (optimized), Oracle 11g on Dec 12 2015 00:54:38

Operatingsystem character set identified as UTF-8.

Copyright(C) 1995, 2015, Oracle and/or its affiliates. All rights reserved.

GGSCI(rac1) 1> dblogin userid [email protected],password ogg

Successfullylogged into database.

GGSCI(rac1 as [email protected]) 19> add trandata TEST.TEST

2017-03-1209:13:41  WARNING OGG-06439  No unique key is defined for table TEST. Allviable columns will be used to represent the key, but may not guaranteeuniqueness. KEYCOLS may be used to define the key.

Loggingof supplemental redo log data is already enabled for table TEST.TEST.

TRANDATA for instantiation CSN has been added on table'TEST.TEST'.

注意:這裡只是做測試,就只有一張test的表,如果有其他的表,都要執行。

再執行如下命令建立檢查點表

GGSCI (oracle11g as [email protected])118> add checkpointtable ogg.chkpt

Successfully created checkpointtable ogg.chkpt.

8)配置OGG 程序

rac1:/ogg/[email protected]>./ggsci

Oracle GoldenGate CommandInterpreter for Oracle

Version 12.2.0.1.1OGGCORE_12.2.0.1.0_PLATFORMS_151211.1401_FBO

Linux, x64, 64bit (optimized),Oracle 11g on Dec 12 2015 00:54:38

Operating system character setidentified as UTF-8.

Copyright (C) 1995, 2015, Oracleand/or its affiliates. All rights reserved.

GGSCI (rac1) 3> dblogin useridogg,password ogg

Successfully logged into database.

GGSCI (rac1) 1> view params mgr

PORT 7809

GGSCI (rac1) 2> edit params mgr

PORT7809

DYNAMICPORTLIST7810-7850   //動態埠號,7809被佔用時會動態使用

PURGEOLDEXTRACTS/ogg/install/extlt/rac/lt*,USECHECKPOINTS,MINKEEPDAYS 7//自動管理刪除 local trail檔案,保留7天

PURGEOLDEXTRACTS/ogg/install/replt/rac/lt*,USECHECKPOINTS, MINKEEPDAYS 7

裡面新增上面的內容

新增抽取程序:

GGSCI (rac1 as [email protected])4> add extract E_RAC,tranlog,threads 3 begin now

EXTRACT added.

GGSCI (rac1 as [email protected]) 6> add exttrail /ogg/install/dirdat/extlt/rac/lt,extract E_RAC

EXTTRAIL added.

配置E_RAC引數檔案

GGSCI (rac1 as [email protected])7> edit params E_RAC

EXTRACT E_RAC

SETENV (ORACLE_HOME ="/u01/app/oracle/product/11.2.0/db_1")

SETENV (ORACLE_SID = "rac")

USERID [email protected],PASSWORD ogg

EXTTRAIL /ogg/install/dirdat/extlt/rac/lt

DISCARDFILE/ogg/install/dirrpt/e_rac.dsc,APPEND,MEGABYTES 5

TRANLOGOPTIONS ALTARCHIVELOGDEST +FRA_ARC

TRANLOGOPTIONS ALTARCHIVEDLOGFORMAT '%t_%s_%r.arc'

TRANLOGOPTIONS DBLOGREADER

DDL INCLUDE MAPPED

DDLOPTIONS ADDTRANDATA

FETCHOPTIONS, USESNAPSHOT, NOUSELATESTVERSION,MISSINGROW REPORT

STATOPTIONS REPORTFETCH

WARNLONGTRANS 1H, CHECKINTERVAL 5M

OBEY /ogg/install/dirprm/ogg_tables_RAC.txt  --載入所要抽取的table list裡面內容為: table TEST.TEST;

新增傳送到目標端的p程序 P_TEST

注意關於目的端oggRAC安裝一樣,按上面的操作在目標端安裝ogg,這裡就不再贅述。

GGSCI (rac1 as [email protected]) 9> add extract P_TEST,exttrailsource /ogg/install/dirdat/extlt/rac/lt

EXTRACT added.

GGSCI (rac1 as [email protected])10> add rmttrail /ogg/dirdat/replt/rac/lt, extract P_TEST

配置P_TEST的引數檔案

GGSCI (rac1 as [email protected]) 13> edit paramsP_TEST

EXTRACT P_TEST

rmthost 192.168.180.14, mgrport 7809   --目的端的IP

rmttrail /ogg/dirdat/replt/rac/lt    --trail檔案傳送過去的存放路徑

dynamicresolution    --動態解析表名,為預設引數,可不顯示指定

passthru   --使用該引數告訴ogg同步的兩端表結構一致

OBEY /ogg/install/dirprm/ogg_tables_RAC.txt  --載入所要傳送的table list,和上面的同一個

3.     目的端操作:

關於目的端ogg的安裝可以參考上述步驟,這裡不在贅述。以下是幾個注意點

1)     開啟歸檔,最小附件日誌

2)     建立表空間及授權

3)     配置TNS

4)     安裝ddl同步支援

5)     開啟表級日誌傳輸(如果是單向的就不要執行)

6)     建立檢查點表

7)     執行alter system set enable_goldengate_replication = true scope=both;

目標端安裝完ogg之後,開始配置ogg程序

test:/[email protected]>cd/ogg/   --這裡ogg安裝目錄為/ogg

test:/[email protected]>./ggsci

OracleGoldenGate Command Interpreter for Oracle

Version12.2.0.1.1 OGGCORE_12.2.0.1.0_PLATFORMS_151211.1401_FBO

Linux, x64,64bit (optimized), Oracle 11g on Dec 12 2015 00:54:38

Operating systemcharacter set identified as UTF-8.

Copyright (C)1995, 2015, Oracle and/or its affiliates. All rights reserved.

GGSCI(oracle11g) 1> edit params mgr

PORT 7809

DYNAMICPORTLIST 7840-7914

PURGEOLDEXTRACTS /ogg/dirdat/extlt/lt*, USECHECKPOINTS,MINKEEPFILES 10

AUTORESTART ER *, RETRIES 3, WAITMINUTES 5

USERID [email protected], PASSWORD ogg

PURGEDDLHISTORY MINKEEPDAYS 3, MAXKEEPDAYS 5,FREQUENCYMINUTES 30

PURGEMARKERHISTORY MINKEEPDAYS 3, MAXKEEPDAYS 5,FREQUENCYMINUTES 30

GGSCI(oracle11g) 2>

新增rep程序R_RAC

GGSCI (oracle11gas [email protected]) 63> add replicat R_RAC, exttrail/ogg/dirdat/replt/rac/lt,checkpointtable ogg.chkpt

REPLICAT added.

配置R_RAC 的引數檔案

GGSCI (oracle11g) 2> edit paramsR_RAC

REPLICAT R_RAC

SETENV(ORACLE_HOME = "/u01/app/oracle2/product/11.2.0/db_1")

SETENV (ORACLE_SID= "test")

ASSUMETARGETDEFS

USERID ogg,PASSWORD ogg

DISCARDFILE/ogg/dirrpt/r_rac.dec,APPEND,MEGABYTES 5

DDL INCLUDE MAPPED

DDLOPTIONS REPORT

DBOPTIONSDEFERREFCONST

DBOPTIONSLOBWRITESIZE 102400

OBEY /ogg/dirprm/ogg_tables_RAC_REP.txt    –該裡面的內容為:map TEST.TEST,target TEST.TEST;

GGSCI (oracle11g) 3>

以上配置結束執行,依次開啟剛才配置的E_RAC,P_TEST,R_RAC三個程序

源端開啟E_RAC,P_TEST程序:

GGSCI (rac1 as [email protected]) 16> start E_RAC

Sending START request to MANAGER ...

EXTRACT E_RAC starting

GGSCI(rac1) 27> start P_TEST

SendingSTART request to MANAGER ...

EXTRACT P_TEST starting

目的端開啟R_RAC 程序

GGSCI (oracle11g as [email protected]) 82> start R_RAC

Sending START request to MANAGER ...

REPLICAT R_RAC starting

4.     測試

在源端3個節點分別在test裡插入一筆資料

注意:這裡要在目的端也要有相同結構的test表

節點1:

SQL> insert into test.testvalues(1,'rac1');

1 row created.

SQL> commit;

Commit complete

節點2:

SQL> insert into test.test values(2,'rac2');

1 row created.

SQL> commit;

Commit complete

節點3:

SQL> insert into test.test values(3,'rac3');

1 row created.

SQL> commit;

Commit complete

再目的端檢視:

test:/ogg/dirdat/replt/[email protected]>sqlplus/ as sysdba

SQL*Plus: Release 11.2.0.4.0 Production onThu Mar 16 16:48:27 2017

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

Connected to:

Oracle Database 11g Enterprise EditionRelease 11.2.0.4.0 - 64bit Production

With the Partitioning, OLAP, Data Miningand Real Application Testing options

SQL> select * from test.test;

         IDNAME

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

          1 rac1

          3 rac3

          2 rac2

SQL>

至此RAC 到單機的OGG 配置完成。

注意這裡提示我的/ogg/install 下不為空,可以直接選擇忽略就可以了,不會有影響的

相關推薦

Oracle RAC單機 OGG 配置測試

1.     測試環境: 源端: OS:Centos 6.8 資料庫:11.2.0.4  例項: rac1 rac2 rac3 Goldengate:fbo_ggs_Linux_x64_shiphome.zip Rac與單例項不同之處在於rac上的goldengate 需

Oracle RAC的機制與測試方法

Oracle RAC是Oracle Real Application Cluster的簡寫,官方中文文件一般翻譯為“真正應用叢集”。RAC叢集是由若干物理機組成,每個物理機為一個節點,這些節點間通過網線連線(也叫心跳網路)。每個節點上都執行一個例項,這些例項通過CRS(CRS通過一系列的程序和服務來保證叢集的

Oracle RAC+DG實驗】Oracle RAC+ASM+DataGuard配置實驗記錄+常見問題

【Oracle RAC+DG實驗】Oracle RAC+ASM+DataGuard配置實驗記錄+常見問題 1、環境規劃: ---RAC環境介紹(primary database)            rac1       rac2 ____________________

ORACLE RAC安裝-性能與高可用測試

RAC性能測試 RAC高可用測試 從11G開始,安裝RAC已經變成了一個體力活兒,但是RAC安裝完成後,如何保證系統的穩定運行,如何得到系統的性能,這個對後期在線系統的穩定運行影響巨大。下面是總結了最近1年多來工程實施中的一些經驗。###################################

oracle ogg配置

oracle ogghttp://www.dataguru.cn/thread-171156-1-1.htmlGoldenGate幾個重要進程介紹:1、Manager管理進程在兩端開啟,監控和重啟其他進程;分配數據存儲和報告錯誤及事件;2、Extract進程從日誌中抓取並傳輸到target端事務數據;3、Se

基於Apollo實現.NET Core微服務統一配置(測試環境-單機) .NET Core微服務之基於Apollo實現統一配置中心

一、前言 注:此篇只是為測試環境下的快速入門。後續會給大家帶來生產環境下得實戰開發。 具體的大家可以去看官方推薦。非常的簡單明瞭。以下介紹引用官方內容: Apollo(阿波羅)是攜程框架部門研發的分散式配置中心,能夠集中化管理應用不同環境、不同叢集的配置,配置修改後能夠實時推送到應用端,並且具

Spring Boot 初級入門教程(十六) —— 配置 Oracle 資料庫和使用 MyBatis 測試

日常專案開發除了 MySQL 資料庫之外,用的最多的還有 Oracle 資料庫,所以這邊來說說如何在專案中配置 Oracle 資料庫,並測試是否配置成功。 一、引入依賴的 jar 包 檢視 pom.xml 檔案中是否引入了 ojdbc 的 jar 包,如果沒有引用,則需要引用才

OGG配置sqlserver2005到oracle單向複製

一、概述 實現SQLServer庫到Oracle庫的資料實時同步功能; 源端資料庫型別:sqlserver 2005 目標端資料庫型別:oracle 11gR2 二、OGG實現原理圖 三、源端配置 1、環境準備 作業系統管理許可權使用者登入,安裝vcredist

Oracle RAC failover 測試 TAF方式

                    Oracle RAC 客戶端故障轉移(failover),當採用TAF方式時,對於已經建立連線的客戶端,在連線的例項或節點出現故障時,客戶端無需再次發出連線請求,仍然可以繼續之前的資料庫操作,此稱之為透明故障轉移。本文描述基於Oracle 10g rac,客戶端TAF方

Oracle 11g rac 新增新節點測試

[轉]https://blog.csdn.net/shiyu1157758655/article/details/60877076 前期準備: 作業系統設定OS版本必須相同,檢查核心引數,系統記憶體、CPU、檔案系統大小、swap空間等。建立必要的使用者及組使用者及使用者組UID及GID必須跟其他節點相同

Oracle RAC負載均衡 客戶端配置

RAC的負載均衡主要是指新會話連線到RAC資料庫時,如何判定這個新的連線要連到哪個節點進行工作。在RAC中,負載均衡分為兩種,一種是基於客戶端連線的,另外一種是基於伺服器端的。 客戶端的負載均衡配置相對簡單,只需要在tnsnames.ora中新增LOAD_BALANCE=ON這麼一個選項即可。比如下面的T

oracle rac 安裝驗收測試

       對於一個客戶安裝完oracle rac,客戶不知道測試什麼,但是如果沒有經過一個嚴格測試,又不知道安裝的是否存在問題,下面是我們給一個客戶做rac後的安裝測試驗收報告,大家可以進行參考: TEST# 測試項 測試過程 期待結果 測試結果

Oracle RAC 負載均衡測試(結合伺服器端與客戶端)

原文地址:http://blog.csdn.net/leshami/article/details/8072367        Oracle RAC 負載均衡使得從客戶端發起的連線能夠有效地分配到監聽器負載較小的例項上。有兩種方式實現客戶端負載均衡,一是通過配置客戶端的lo

ORACLE RAC 配置好了,用起來還是挺方便的,但是很擔心它的可靠性

ORACLE RAC 配置好了,節點數好多的哦。用的是CRS ASM,全部都是ORACLE的自己東西ORACLE確實有實力,把雙機軟體,磁碟管理軟體都自己做了這個過程搞了好多天,碰到了幾個問題,有些是oracle指令碼的問題費了不少的精力和時間ORACLE RAC  用起來還

oracle rac 轉化為單機資料庫

1. Stop database and CRS on both node $ srvctl stop database -d mydb # crsctl stop crs 2. Turn Off RAC SQL> startup ORA-29702 error occ

Oracle 叢集】Linux下Oracle RAC叢集搭建之基本測試與使用(九)

概述:寫下本文件的初衷和動力,來源於上篇的《oracle基本操作手冊》。oracle基本操作手冊是作者研一假期對oracle基礎知識學習的彙總。然後形成體系的總結,一則進行回顧複習,另則便於查詢使用。本圖文文件亦源於此。閱讀Oracle RAC安裝與使用教程前,筆者先對這篇文章整體構思和形成進行梳理。

Linux下Oracle GoldenGate(OGG)的配置

返回YES或IMPLICIT表示附加日誌被開啟。 3. 回收站 在gg 11之前版本需要關閉回收站才能完成DDL同步 在gg 11 版本開始可以開啟回收站也能完成DDL同步 SQL> select value from v$parameter where name='recyclebin'; VALUE

oracle rac單機環境下各種不同

1.表空間 (1)建立,因為oracle rac 使用ocf (oracle 控制檔案系統)一般是asm,所以不用制定檔案的路徑。 語法為:create tablespace name datafile size 30G auto extend on ,extent man

ORACLE RAC TAF 配置(透明故障轉移)

原文地址:http://blog.itpub.net/17086096/viewspace-1872783/TAF(Transparent Application Failover)即透明應用程式故障轉移技術。當初始化連接出現問題無法連線時,該功能可以保證應用程式重新連線到可

Oracle RAC failover 測試(TAF方式)

    Oracle RAC 客戶端故障轉移(failover),當採用TAF方式時,對於已經建立連線的客戶端,在連線的例項或節點出現故障時,客戶端無需再次發出連線請求,仍然可以繼續之前的資料庫操作,此稱之為透明故障轉移。本文描述基於Oracle 10g rac,客戶端TAF