Skip to content

Commit e488d87

Browse files
author
Marcin Przepiorowski
committed
Merge branch 'issue#114' into develop
2 parents a677c74 + 82e0a08 commit e488d87

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

lib/OracleVDB_obj.pm

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1647,7 +1647,7 @@ sub addSource {
16471647
$dsource_params{"type"} = 'OraclePDBLinkParameters';
16481648
}
16491649

1650-
} elsif (version->parse($self->{_dlpxObject}->getApi()) < version->parse(1.11.0)) {
1650+
} elsif (version->parse($self->{_dlpxObject}->getApi()) < version->parse(1.11.0)) {
16511651
# all above 1.8 below 1.11
16521652
%dsource_params = (
16531653
"type" => "LinkParameters",
@@ -1702,7 +1702,7 @@ sub addSource {
17021702
if ($config->{type} eq 'OraclePDBConfig') {
17031703
$dsource_params{"linkData"}{"type"} = "OraclePDBLinkFromExternal";
17041704
}
1705-
1705+
17061706
}
17071707

17081708

@@ -1849,8 +1849,15 @@ sub createVDB {
18491849
# source was RAC but target enviroment is not RAC
18501850
$configtype = "OracleSIConfig";
18511851
} elsif ($configtype eq 'N/A') {
1852-
# detached - set OracleSI
1853-
$configtype = "OracleSIConfig";
1852+
# detached - check source DB container type
1853+
logger($self->{_debug}, "SourceDB container type " . Dumper $self->{_sourcedb}->{container}->{contentType});
1854+
if ($self->{_sourcedb}->{container}->{contentType} eq "NON_CDB") {
1855+
$configtype = "OracleSIConfig";
1856+
} else {
1857+
# set to PDB
1858+
$configtype = "OraclePDBConfig";
1859+
}
1860+
18541861
}
18551862
$self->{"NEWDB"}->{"sourceConfig"}->{"type"} = $configtype;
18561863

0 commit comments

Comments
 (0)