File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed
Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments