使用OGG"Loading data from file to Replicat"的方法應該注意的問題:replicat進程是前台進程,oggreplicat

來源:互聯網
上載者:User

使用OGG"Loading data from file to Replicat"的方法應該注意的問題:replicat進程是前台進程,oggreplicat

使用OGG的 "Loading data from file to Replicat"的方法應該注意的問題:replicat進程是前台進程

因此,最好是在vncserver中調用該replicat進程或者以nohup方式放在後台運行。下面的是使用nohup方式放在後台運行。

[oracle@lei1 ~]$ ll rep_backgroud.sh -rwxr-xr-x 1 oracle oinstall 98 Jun  2 03:02 rep_backgroud.sh[oracle@lei1 ~]$ cat rep_backgroud.sh cd /u02/ggs --->注意此行,不可省略,/u02/ggs是OGG的安裝目錄replicat paramfile /u02/ggs/dirprm/repftor.prm reportfile /u02/ggs/dirrpt/REPFTOR.rpt[oracle@lei1 ~]$ [oracle@lei1 ~]$ nohup sh /home/oracle/rep_backgroud.sh  &

 

=====================斷開securecrt,再重新串連securecrt================================

 

[root@lei1 ~]# ps -ef | grep reporacle   22585     1  0 03:03 ?        00:00:00 sh /home/oracle/rep_backgroud.shoracle   22586 22585  5 03:03 ?        00:00:02 replicat paramfile /u02/ggs/dirprm/repftor.prm reportfile /u02/ggs/dirrpt/REPFTOR.rptroot     22628 22603  0 03:04 pts/1    00:00:00 grep rep[root@lei1 ~]# 

 

注意點:
1.若是以前台進程的方式執行的該replicat進程,中途斷開了securecrt,然後在目的表(在/u02/ggs/dirprm/repftor.prm中定義的)中是存在部分記錄的。重新發起replicat進程前,需要truncate該目的表。

2. OGG"Loading data from file to Replicat"方法的核心是:
extract進程--->trail file(落地檔案,在抽取進程的參數檔案中定義位置)-->目的端table(rep進程應用trail file 到目的端table中)

3.此時的extract進程應該也是前台進程,不過我測試時沒有斷開securecrt,沒有實驗過。

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.