DatabaseName: oracl
$Asset=Get-PPDMassets -type ORACLE_DATABASE -filter 'name eq "orcl"'
$Asset
# Note you can also add the Server name if you have multiple DB Assets with te same Name...
# $Asset=Get-PPDMassets -type ORACLE_DATABASE -filter 'details.database.clusterName eq "oracle01.demo.local" and name eq "orcl"'
To get all Copies of an asset, or use custom filters, use Get-PPDMassetcopies
$Asset | Get-PPDMassetcopies | ft
$CopyObject=$Asset | Get-PPDMlatest_copies
$OraHost=Get-PPDMhosts -type APP_HOST -filter 'name eq "oracle01.demo.local"'
Restore-PPDMOracle_copies -copyobject $CopyObject -appServerID $Asset.details.database.appServerId -HostID $OraHost.id -Verbose -crossCheckBackup -OraCredObject $OraCreds
Restore-PPDMOracle_copies -copyobject $CopyObject -appServerID $Asset.details.database.appServerId -HostID $OraHost.id -crossCheckBackup -OraCredObject $OraCreds
Get-PPDMactivities -id a03216f0-a833-479f-9aec-1119efe395d0
you may want to repeat the Command or create a loop that monitors the activities ( will be handled in an Advanced Session later)
Get-PPDMactivities -id a03216f0-a833-479f-9aec-1119efe395d0
«Module 5 Lesson 2 This Concludes Module 5 Lesson 3 Module 5 Lesson 4»