ND
Сейчас сетевик проверяет порты, возможно они просто закрыты.
Size: a a a
ND
VR
YZ
YZ
YZ
G
SO
VR
YZ
YZ
VR
ID
Add-PSSnapin -Name VeeamPSSnapIn
$VeeamUser = "User"
$VeeamPassword = "Password" | ConvertTo-SecureString -AsPlainText -Force
$ORA12TSTCreds = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $VeeamUser, $VeeamPassword
$SecurePassword = "Password" | ConvertTo-SecureString -AsPlainText -Force
$RestorePoint = Get-VBRApplicationRestorePoint -Oracle -Name "AIS-ORA12-01" | Sort-Object -Property CreationTime -Descending | Select -First 1
$Session = Start-VEORRestoreSession -RestorePoint $RestorePoint[0]
$Database = Get-VEORDatabase -Session $Session[0] -Name "MAINDB.Intourist.local"
$NewDBPath = "D:\WORKDB\ORADATA\"
$NewDBPathFRA = "D:\WORKDB\FAST_RECOVERY_AREA\"
$FilesPath = Get-VEORDatabaseFile -Database $Database
$NewFilesPath = $FilesPath -replace "^\w:\\.+\\(\w+\.\w+)","$NewDBPath`$1"
$NewFilesPath = $NewFilesPath -replace ".+\\(CONTROL02.CTL)","$NewDBPathFRA`$1"
Restore-VEORDatabase -Database $Database -Server "AIS-ORA12TST-01" -OracleSid "WORKDB" -GlobalDatabaseName "WORKDB.Intourist.local" -OracleHome "C:\Oracle\product\12.1.0\dbhome_1" -OracleHomePassword $SecurePassword -WindowsCredentials $ORA12TSTCreds -File $FilesPath -TargetPath $NewFilesPath -Force
Stop-VEORRestoreSession -Session $Session[0]
A
EE
ID
S
ID