Steps for performing filtering the data between two oracle databases through initial load
2. Enable supplemental redo logging on the tables to be replicated
3. Sample Table structure:
Create table sender.University
(studcode number(10),
studname varchar2(10),
country varchar2(10) ,
constraint uty_key unique(studcode));
Create table receiver.University
(studcode number(10),
studname varchar2(10),
country varchar2(10) ,
constraint uty_key unique(studcode));
On Source Machine
Step 1 :GGSCI> add extract fillter, sourceistable
Userid ogg@goldengate:1521/source,password ****
Rmthost goldengate, mgrport 7810
Rmttask replicat,Group repl2
Table sender.university, FILTER ( @STRFIND ( city, “UAE” > 0));
Step 3 :GGSCI > start extract fillter
Step 1 :GGSCI> add replicat repl2, specialrun
userid ogg@goldengate:1521/target,password ****
assumetargetdefs
MAP sender. university, TARGET receiver.university;
Test/Verification:
The output of the filter condition:
Sample insert statements for checking the replication
Insert into sender.university values ( 101,’SAM’,’UK’);
commit;
SQL> select * from receiver.university;
Studcode Studname Country
100 SAM UAE
What is FILTER Keyword?
The FILTER clause offers us more functionality than the WHERE clause because you can employ any of GoldenGate’s column conversion functions to filter data, whereas the WHERE clause accepts basic WHERE operators.
For example we can use standard arithmetic operators like ‘+’,'-’,'/’,'*’ or comparison operators like ‘>’,’<', '=' as well as GoldenGate functions like @COMPUTE, @DATE, @STRFIND, @STRNUM etc
For example we can use the STRFIND function as part of the Extract parameter file to only extract records from the table that match a particular string value as shown below.
TABLE sender.university,FILTER (@STRFIND (city, “LONDON”) > 0)
----------------------------All the best------------------------------------------------
Fine description about Oracle Application. Technical aspects are covered in perfect manner..
ReplyDeleteSample Statements
Hey there! I just wanted to ask if mega888 apk download for android you ever have any problems with hackers? My last blog (wordpress) was hacked and I ended up losing many months of hard work due to no back up. Do you have any methods to stop hackers?
ReplyDelete