@@ -318,6 +318,11 @@ sub getConfig
318318 $config = join ($joinsep ,($config , $tde ));
319319 }
320320
321+ my $datapatch = $self -> getDataPatch();
322+ if (defined ($datapatch )) {
323+ $config = join ($joinsep ,($config , " -datapatch $datapatch " ));
324+ }
325+
321326
322327 } else {
323328 # dSource config for Oracle
@@ -1066,6 +1071,47 @@ sub setMountPoint {
10661071 $self -> {" NEWDB" }-> {" source" }-> {" mountBase" } = $mountpoint ;
10671072}
10681073
1074+
1075+ # Procedure getDataPatch
1076+ # parameters:
1077+ # Get mountpoint of DB.
1078+
1079+ sub getDataPatch {
1080+ my $self = shift ;
1081+ logger($self -> {_debug }, " Entering OracleVDB_obj::getDataPatch" ,1);
1082+ my $ret ;
1083+ if (version-> parse($self -> {_dlpxObject }-> getApi()) >= version-> parse(1.11.26)) {
1084+ if ($self -> {" source" }-> {" invokeDatapatch" }) {
1085+ $ret = " yes" ;
1086+ } else {
1087+ $ret = " no" ;
1088+ }
1089+ }
1090+ return $ret ;
1091+ }
1092+
1093+ # Procedure setDataPatch
1094+ # parameters:
1095+ # - mountpoint - mount point
1096+ # Set mountpoint for new db.
1097+
1098+ sub setDataPatch {
1099+ my $self = shift ;
1100+ my $datapatch = shift ;
1101+ logger($self -> {_debug }, " Entering OracleVDB_obj::setDataPatch" ,1);
1102+
1103+ if (version-> parse($self -> {_dlpxObject }-> getApi()) >= version-> parse(1.11.26)) {
1104+ # only for 15 and higher
1105+ if (lc $datapatch eq ' no' ) {
1106+ $self -> {" NEWDB" }-> {" source" }-> {" invokeDatapatch" } = JSON::false;
1107+ }
1108+ elsif (lc $datapatch eq ' yes' ) {
1109+ $self -> {" NEWDB" }-> {" source" }-> {" invokeDatapatch" } = JSON::true;
1110+ }
1111+ }
1112+ }
1113+
1114+
10691115# Procedure setArchivelog
10701116# parameters:
10711117# - archivelog - type
0 commit comments