Repair Replicat after mount point name change
Working on Oracle GoldenGate can be an interesting adventure. In such a case, I have been doing some migration work for a client. Half way though the migration, the target system ran out of resources need to create the tablespaces and store files export and trail files (i.e. disk space and a story for another time). The impact to the migration was that everything had to stop until resources were allocated.
Part of the allocation of resources was to change the mount point name. If you know anything about Oracle GoldenGate Replicats, using a static mount point is not the best approach (slipped my mind at the time); however, I made this mistake. When the mount point name changed, all the replicats broke because they couldn’t locate the trail files where specified.
Initial:
When I initially setup the replicat I used a static mount point. Let’s take a look at the create replicat statement I used initially:
--Add Replicat Process ADD REPLICAT REPM01, EXTTRAIL /orabackup/ggate/trail/ars/ra, DESC "Replicat process for a schema” START REPLICAT REPM01, ATCSN
As you can see the replicat is looking for the “ra” trail files on the “/orabackup” mount point.
Problem:
During the allocation of space the mount point “/orabackup” was changed to “/orabkup”. How does this affect the replicat? Simple, the replicat will through an OGG-01091 error stating that it coudn’t find the trail file.
ERROR OGG-01091 Unable to open file “/orabackup/ggate/trail/ars/ra000000” (error 2, No such file or directory).
Solution:
The solution to fixing this problem is to capture the last CSN number from the Checkpoint table.
SQL> select group_name, rba, seqno, log_cmplt_csn from checkpoint where group_name = 'REPM01'; GROUP_NA RBA SEQNO LOG_CMPLT_CSN -------- ---------- ---------- ----------------------------------- REPM01 544013 1 11108080706671
Once the last completed CSN has been identified, then the replicat can be dropped, recreated with the new path to the trail file.
GGSCI> dblogin userid ggate password GGSCI> delete replicat REPM01 GGSCI> add replicat REPM01, EXTTRAIL /orabkup/ggate/trail/ars/ra, DESC "Replicat process for a schema” GGSCI> start replicat REPM01, atcsn 11108080706671 GGSCI> info all Program Status Group Lag at Chkpt Time Since Chkpt MANAGER RUNNING REPLICAT RUNNING REPM01 00:00:00 00:00:06
Lesson Learned:
When setting up locations for your trail files make sure they are not static locations. Realitve locations should be used. In most Oracle GoldenGate architectures the “dirdat” directory under $OGG_HOME is used for trails files; however, if you need more space for trail files the “dirdat” directory can be linked to a directory on a larger mount point. This will keep the replicat consistant for trail file purposes and make it easier to manage the names of the mount point if the static name changes.
Enjoy!
about.me: http://about.me/dbasolved
Current Oracle Certs

Bobby Curtis
I’m Bobby Curtis and I’m just your normal average guy who has been working in the technology field for awhile (started when I was 18 with the US Army). The goal of this blog has changed a bit over the years. Initially, it was a general blog where I wrote thoughts down. Then it changed to focus on the Oracle Database, Oracle Enterprise Manager, and eventually Oracle GoldenGate.
If you want to follow me on a more timely manner, I can be followed on twitter at @dbasolved or on LinkedIn under “Bobby Curtis MBA”.

I could not refrain from commenting. Very well written! http://boyarka-Inform.com
It’s reaply very complex in this full of activity life to listen news oon TV, thus I only use web for that reason, and obtain the hottest
news.
Feel free to surf to mmy web blog :: Pergola Tente
My family members all the time say that I am wasting my time here at
net, exceept I know I am getting experience dakly by reading thes nice articles or reviews.
Stop by my web-site: xslot yeni giriş adresi
Hello my family member! I want to say that
this post is awesome, great written and come with approximately all important infos.
I would like to see more postys like this . https://ejaw.net/what-is-aaa-game-development/
I’m excited to disover this page. I need to to thank you
for ones time due to this wonderful read!! I definitely enjoyed every little bit of it andd
I have you book-marked tto check out new information on your web site.
Feel frewe to visit my homepage – x livestream
I ppay a quick visit every day a few web sites and sites to read content, however this web site gives qualijty based content.
my web page: temp mail
Hi there friends, nice piece of writing and ood urging
commented here, I aam genuinely enjoying by these.
mysite Chat
great points altogether, you simply received a brand new reader.
What could yyou suggest in egards to your publish
that you just made a few days ago? Any positive?
My webpabe – Lidyabet güncel
I think the admin of this weeb site is actually working hard
in favor of his web site, for the reason that here every stuff
is quality based data.
Here is my page Solid Edge Nedir
I’m not sure exactly wwhy but ths website is loading very slow for me.
Is anyone else having this issue or is it a issue on my end?
I’ll check back later and see if the problem still
exists.
Here is my web-site bel fıtığı
Ahaa, its pleasant discussion aboiut this article here at
this weblog, I have read all that, so now mme also commenting here.
My page – Depo çadırı
I pay a isit each day some web sites and information sites to read posts,
however this webpage offers quality based content.
Here iss my homepage Zibilyonbet
Thanks on your marvelous posting! I actually enjoyed reading
it, you will be a great author.I will remember to
bookmark your blog and mmay come back in the future. I want to encourage you continue your great work, have a nice
weekend!
My site Başakşehi̇r evden eve nakli̇yat
I constantly spent my half ann hour to read this web site’s poosts
every day along with a cup of coffee.
Also viseit my blog :: Betmatik
First off I would like to say excellent blog! I had a quick
qujestion in which I’d like to ask if you do not mind. I was interested to find out hhow you center yourself and clear your head prior to writing.
I have had trouble clearing my mibd in getting my thoughts out
there. I truly do enjoy writing however it just seems like the first 10 to 15 minutes are generally lost just trying to figure out
how to begin. Anyy suggestions or hints? Appreciate it!
Also visit my web-site; Manavgat Escort
I have been exploring for a little for any high-quality articles or weblog posts on this kind
of house . Exploring in Yahoo I finally stumble upon this site.
Reading this information So i am satisfied to convey that I
have an incredbly just right uncanny feeling I came uppon just what I needed.
I such a lot unquestionably will make sure to don?t omit this sikte and
provcides it a glance on a relentless basis.
Stop by my web page: Vdcasino yeni giriş
You could definitely see your skills within the article you write.
The wold hopes for even more passionate writers such aas you who aren’t afraid to say
how they believe. Always go after your heart.
Feel free to visiot my homepage – Piabet Giriş
This is the perfect site for anybody wwho hopes to understand this topic.
You understand a whole lot its almoxt hard to argue with you (not that I really woulld want to…HaHa).
You definitely put a fresh spin on a subject that has been written about
for ages. Wonderful stuff, just great!
my blog :: Deneme bonusu veren siteler