GG Replicat process using sys vs ggadmin [message #623603] |
Thu, 11 September 2014 14:11 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
![](//www.gravatar.com/avatar/d69813b0cc21df1b4fda11221c0ba386?s=64&d=mm&r=g) |
pwisman
Messages: 4 Registered: September 2014
|
Junior Member |
|
|
I have GoldenGate 12c on Windows 2012 server, using Oracle 12.1.0.1. I have successfully setup bi-directional replication between my 2 systems. I need to have triggers firing so NOSUPPRESSTRIGGER is in the replicat parameter file.
The problem I have is that we have some after update or after insert triggers that need to do some processing when it is NOT a replication event. I have a check for sys_context('userenv','current_user') and sys_context('userenv','session_user'), none of these get set to the ggadmin user. The current_user = the owner of the trigger, and the session_user = sys.
According to documentation, we should be able to check the user for ggadmin so we can filter processing. But this doesn't work, or at least what I did, using sys_context hasn't worked.
Does anyone know what is going on? Any suggestions would be greatly appreciated.
Thank you.
|
|
|
Re: GG Replicat process using sys vs ggadmin [message #623612 is a reply to message #623603] |
Thu, 11 September 2014 20:17 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
John Watson
Messages: 8964 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
Are you committed to using Golden Gate? This would be trivial with Streams, you use dbms_ddl.set_trigger_firing_property to detect whether the action is from a replication event or not.
Yes, I know there is that comment in the docs about Streams being deprecated with release 12.1. Utter rubbish, is all there, it works as well as ever. It is also free, unlike Golden Gate.
|
|
|
|
Re: GG Replicat process using sys vs ggadmin [message #623618 is a reply to message #623613] |
Thu, 11 September 2014 22:27 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) |
John Watson
Messages: 8964 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
Well, it is your database. Adv Rep is fully functional in 12.x. Like Streams, that comment in the docs is only to push you towards a more expensive but less functional solution. I certainly wouldn't do it. Sorry, I can't assist.
|
|
|