Skip to content

Commit 93be24c

Browse files
author
Marcin Przepiorowski
committed
staging push support
1 parent d60703b commit 93be24c

File tree

3 files changed

+294
-85
lines changed

3 files changed

+294
-85
lines changed

bin/dx_ctl_dsource.pl

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@
8585
'postsync=s@' =>\(my $postsync),
8686
'hooks=s' => \(my $hooks),
8787
'stagingpush' => \(my $stagingpush),
88+
'instname=s' => \(my $instname),
89+
'uniqname=s' => \(my $uniqname),
90+
'template=s' => \(my $template),
91+
'oracledbtype=s' => \(my $oracledbtype),
8892
'dever=s' => \(my $dever),
8993
'debug:n' => \(my $debug),
9094
'all' => (\my $all),
@@ -368,7 +372,11 @@
368372
$ret = $ret + 1;
369373
last;
370374
}
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+
}
372380
}
373381
elsif ($type eq 'sybase') {
374382
my $db = new SybaseVDB_obj($engine_obj,$debug);
@@ -451,7 +459,7 @@ sub addhooks {
451459
};
452460
close $FD;
453461

454-
if ($loadedHooks->{type} ne 'LinkedSourceOperations') {
462+
if (($loadedHooks->{type} ne 'LinkedSourceOperations') && ($loadedHooks->{type} ne 'OracleLinkedSourceOperations') ){
455463
print '$hooks is not a export file from dx_get_dbhooks\n' ;
456464
return 1;
457465
}
@@ -499,6 +507,7 @@ =head1 SYNOPSIS
499507
[-presync [hookname,]template|filename[,OS_shell] ]
500508
[-postsync [hookname,]template|filename[,OS_shell] ]
501509
[-stagingpush]
510+
[-oracledbtype nonmt|cdb|pdb]
502511
[-debug ]
503512
[-version ]
504513
[-help|? ]
@@ -630,6 +639,13 @@ =head2 dSource arguments
630639
=item B<-stagingpush>
631640
Create dsource using staging push technology ( current support MS SQL )
632641
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+
633649
=item B<-hadr hadrPrimarySVC:XXX,hadrPrimaryHostname:hostname,hadrStandbySVC:YYY>
634650
Add DB2 dSource with HADR support
635651
Parameter hadrTargetList is optional.

0 commit comments

Comments
 (0)