Fix ROA Windows setup scripts discovered during VM 302 testing
- 03-import-contafin.ps1: Auto-detect DMP file when not specified - 05-import-companies.ps1: Default DumpDirectory to C:\DMPDIR - 08-post-install-config.ps1: Fix SERVER_INFO column names (NAME/VALUE) Tested full installation on VM 302 (Oracle XE 21c): - CONTAFIN_ORACLE: 344 objects imported - CAPIDAVATOUR: 3418 objects imported - 54 ROAUPDATE directories created - Scheduler jobs configured Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
5. Logs progress
|
||||
|
||||
.PARAMETER DumpDirectory
|
||||
Directory containing company DMP files. Required.
|
||||
Directory containing company DMP files. If not specified, defaults to C:\DMPDIR.
|
||||
|
||||
.PARAMETER OracleHome
|
||||
Oracle home directory. If not specified, auto-detects.
|
||||
@@ -53,9 +53,8 @@
|
||||
|
||||
[CmdletBinding()]
|
||||
param(
|
||||
[Parameter(Mandatory = $true)]
|
||||
[ValidateScript({ Test-Path $_ -PathType Container })]
|
||||
[string]$DumpDirectory,
|
||||
[Parameter(Mandatory = $false)]
|
||||
[string]$DumpDirectory = "C:\DMPDIR",
|
||||
|
||||
[Parameter(Mandatory = $false)]
|
||||
[string]$OracleHome,
|
||||
@@ -89,6 +88,12 @@ Initialize-LogFile -LogPath $logPath -ScriptName "05-import-companies.ps1"
|
||||
try {
|
||||
Write-LogSection "Batch Import Company Schemas"
|
||||
|
||||
# Validate DumpDirectory exists
|
||||
if (-not (Test-Path $DumpDirectory -PathType Container)) {
|
||||
throw "DumpDirectory not found: $DumpDirectory"
|
||||
}
|
||||
Write-Log "Using dump directory: $DumpDirectory"
|
||||
|
||||
if ($DryRun) {
|
||||
Write-LogWarning "DRY RUN MODE - No changes will be made"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user