Skip to content

Commit 77924d2

Browse files
author
Marcin Przepiorowski
committed
pdb/cdb fixes
1 parent 7357b36 commit 77924d2

File tree

3 files changed

+21
-3
lines changed

3 files changed

+21
-3
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
## 2.4.19
2+
3+
### Changes:
4+
- [bug #227](https://github.com/delphix/dxtoolkit/issues/227) - snapshot order fixed
5+
- [bug #226](https://github.com/delphix/dxtoolkit/issues/226) - link / unlink (attach / detech) works for vPDB and CDB
6+
- build fixes
7+
8+
### Added
9+
- [bug #225](https://github.com/delphix/dxtoolkit/issues/225) - support for vPDB/vCDB with TDE
10+
11+
112
## 2.4.18
213

314
### Added

bin/dx_ctl_dsource.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@
346346
if ( $type eq 'oracle' ) {
347347
my $db = new OracleVDB_obj($engine_obj,$debug);
348348

349-
if (defined($cdbcont)) {
349+
if (defined($cdbcont) && defined($cdbuser)) {
350350
if ($db->discoverPDB($sourceinst,$sourceenv,$cdbcont,$cdbuser,$cdbpass)) {
351351
print "There was an error with PDB discovery \n";
352352
$ret = $ret + 1;
@@ -357,7 +357,7 @@
357357
$ret = $ret + 1;
358358
last;
359359
}
360-
$jobno = $db->addSource($sourcename,$sourceinst,$sourceenv,$source_os_user,$dbuser,$password,$dsourcename,$group,$logsync);
360+
$jobno = $db->addSource($sourcename,$sourceinst,$sourceenv,$source_os_user,$dbuser,$password,$dsourcename,$group,$logsync, $cdbcont);
361361
}
362362
elsif ($type eq 'sybase') {
363363
my $db = new SybaseVDB_obj($engine_obj,$debug);

lib/OracleVDB_obj.pm

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1627,6 +1627,12 @@ sub setConfig {
16271627

16281628
logger($self->{_debug}, "Entering OracleVDB_obj::setConfig",1);
16291629

1630+
logger($self->{_debug}, "name: " . Dumper $name, 2);
1631+
logger($self->{_debug}, "source_inst: " . Dumper $source_inst, 2);
1632+
logger($self->{_debug}, "source_env: " . Dumper $source_env, 2);
1633+
logger($self->{_debug}, "cdbcont: " . Dumper $cdbcont, 2);
1634+
1635+
16301636
my $dlpxObject = $self->{_dlpxObject};
16311637
my $debug = $self->{_debug};
16321638

@@ -1977,11 +1983,12 @@ sub addSource {
19771983
my $dsource_name = shift;
19781984
my $group = shift;
19791985
my $logsync = shift;
1986+
my $cdbcont = shift;
19801987

19811988

19821989
logger($self->{_debug}, "Entering OracleVDB_obj::addSource",1);
19831990

1984-
my $config = $self->setConfig($source, $source_inst, $source_env);
1991+
my $config = $self->setConfig($source, $source_inst, $source_env, $cdbcont);
19851992

19861993
if (! defined($config)) {
19871994
print "Source database $source not found\n";

0 commit comments

Comments
 (0)