I have a GG replication special run on multitenant databases, run it in ggsci
GGSCI (KDCWASDBAPRD01) 8> view params rinitst1
replicat rinitst1
specialrun
end runtime
SETENV (ORACLE_SID = "orcl")
SETENV (ORACLE_HOME = "D:\oracle\product\12.2.0\dbhome_1")
userid c##ggadmin@test2 password password
assumetargetdefs
extfile ./dirdat/tcustord.dat
discardfile ./dirrpt/rinitst1.dsc,purge
map TEST1.*.*, target TEST2.*.*;
GGSCI> start rinitst1
GGSCI> view report rinitst1
。。。
2018-10-03 11:11:48 ERROR OGG-10144 (RINITST1.prm) line 2: Parameter [specia
lrun] is not valid for this configuration.
。。。
because it complains about "specialrun", so I removed the line from parameter file, and run again,
it does not throw any error message in ggserr.log, trace file, and report file,but data is not replicated either.
After tried many things, finally, I run the replicat from command line, it throw error that I can chew on.
D:\oracle\product\GGate12_for_oracle12>replicat paramfile dirprm/rinitst1.prm reportfile dirrpt/rinitst1.rpt
2018-10-03 10:38:55 ERROR OGG-00360 EXT TRAIL/FILE cannot be used with REPLICAT GROUP.
that means that I need to remove replicat keyword, and I can add specialrun back, but after I did that, run in ggsci, no error, no replication...
But if I run using command line outside of ggsci, it works!
### finially get it work with this:
specialrun
end runtime
userid c##ggadmin@test2 password password
assumetargetdefs
extfile ./dirdat/tcustord.dat
discardfile ./dirrpt/rinitst1.dsc,purge
map TEST1.*.*, target TEST2.*.*;
D:\oracle\product\GGate12_for_oracle12>replicat paramfile dirprm/rinitst1.prm reportfile dirrpt/rinitst1.rpt
data is replicated!
#####
Looks like the special run has to run from command line! not inside ggsci.
GGSCI (KDCWASDBAPRD01) 8> view params rinitst1
replicat rinitst1
specialrun
end runtime
SETENV (ORACLE_SID = "orcl")
SETENV (ORACLE_HOME = "D:\oracle\product\12.2.0\dbhome_1")
userid c##ggadmin@test2 password password
assumetargetdefs
extfile ./dirdat/tcustord.dat
discardfile ./dirrpt/rinitst1.dsc,purge
map TEST1.*.*, target TEST2.*.*;
GGSCI> start rinitst1
GGSCI> view report rinitst1
。。。
2018-10-03 11:11:48 ERROR OGG-10144 (RINITST1.prm) line 2: Parameter [specia
lrun] is not valid for this configuration.
。。。
because it complains about "specialrun", so I removed the line from parameter file, and run again,
it does not throw any error message in ggserr.log, trace file, and report file,but data is not replicated either.
After tried many things, finally, I run the replicat from command line, it throw error that I can chew on.
D:\oracle\product\GGate12_for_oracle12>replicat paramfile dirprm/rinitst1.prm reportfile dirrpt/rinitst1.rpt
2018-10-03 10:38:55 ERROR OGG-00360 EXT TRAIL/FILE cannot be used with REPLICAT GROUP.
that means that I need to remove replicat keyword, and I can add specialrun back, but after I did that, run in ggsci, no error, no replication...
But if I run using command line outside of ggsci, it works!
### finially get it work with this:
specialrun
end runtime
userid c##ggadmin@test2 password password
assumetargetdefs
extfile ./dirdat/tcustord.dat
discardfile ./dirrpt/rinitst1.dsc,purge
map TEST1.*.*, target TEST2.*.*;
D:\oracle\product\GGate12_for_oracle12>replicat paramfile dirprm/rinitst1.prm reportfile dirrpt/rinitst1.rpt
data is replicated!
#####
Looks like the special run has to run from command line! not inside ggsci.
Comments
Post a Comment