|
85 | 85 | 'postsync=s@' =>\(my $postsync), |
86 | 86 | 'hooks=s' => \(my $hooks), |
87 | 87 | 'stagingpush' => \(my $stagingpush), |
| 88 | + 'instname=s' => \(my $instname), |
| 89 | + 'uniqname=s' => \(my $uniqname), |
| 90 | + 'template=s' => \(my $template), |
| 91 | + 'oracledbtype=s' => \(my $oracledbtype), |
88 | 92 | 'dever=s' => \(my $dever), |
89 | 93 | 'debug:n' => \(my $debug), |
90 | 94 | 'all' => (\my $all), |
|
368 | 372 | $ret = $ret + 1; |
369 | 373 | last; |
370 | 374 | } |
371 | | - $jobno = $db->addSource($sourcename,$sourceinst,$sourceenv,$source_os_user,$dbuser,$password,$dsourcename,$group,$logsync, $cdbcont, $stagingpush); |
| 375 | + if (defined($stagingpush)) { |
| 376 | + $jobno = $db->addSource($sourcename,$stageinst,$stageenv,$stage_os_user,undef, undef, $dsourcename, $group, $logsync, $cdbcont, $stagingpush, $instname, $uniqname, $template, $oracledbtype, $mountbase); |
| 377 | + } else { |
| 378 | + $jobno = $db->addSource($sourcename,$sourceinst,$sourceenv,$source_os_user,$dbuser,$password,$dsourcename,$group,$logsync, $cdbcont, $stagingpush); |
| 379 | + } |
372 | 380 | } |
373 | 381 | elsif ($type eq 'sybase') { |
374 | 382 | my $db = new SybaseVDB_obj($engine_obj,$debug); |
@@ -451,7 +459,7 @@ sub addhooks { |
451 | 459 | }; |
452 | 460 | close $FD; |
453 | 461 |
|
454 | | - if ($loadedHooks->{type} ne 'LinkedSourceOperations') { |
| 462 | + if (($loadedHooks->{type} ne 'LinkedSourceOperations') && ($loadedHooks->{type} ne 'OracleLinkedSourceOperations') ){ |
455 | 463 | print '$hooks is not a export file from dx_get_dbhooks\n' ; |
456 | 464 | return 1; |
457 | 465 | } |
@@ -499,6 +507,7 @@ =head1 SYNOPSIS |
499 | 507 | [-presync [hookname,]template|filename[,OS_shell] ] |
500 | 508 | [-postsync [hookname,]template|filename[,OS_shell] ] |
501 | 509 | [-stagingpush] |
| 510 | + [-oracledbtype nonmt|cdb|pdb] |
502 | 511 | [-debug ] |
503 | 512 | [-version ] |
504 | 513 | [-help|? ] |
@@ -630,6 +639,13 @@ =head2 dSource arguments |
630 | 639 | =item B<-stagingpush> |
631 | 640 | Create dsource using staging push technology ( current support MS SQL ) |
632 | 641 |
|
| 642 | +=item B<-oracledbtype nonmt|cdb|pdb> |
| 643 | +Oracle staging push database type: |
| 644 | +
|
| 645 | + - nonmt - for Oracle non multitenant |
| 646 | + - cdb - for Oracle Container ( required before PDB ) |
| 647 | + - pdb - for Oracle Pluggable database |
| 648 | +
|
633 | 649 | =item B<-hadr hadrPrimarySVC:XXX,hadrPrimaryHostname:hostname,hadrStandbySVC:YYY> |
634 | 650 | Add DB2 dSource with HADR support |
635 | 651 | Parameter hadrTargetList is optional. |
|
0 commit comments