Fix ROA Windows setup scripts for Oracle XE deployment
Key fixes: - Add Run.cmd/RunAll.cmd wrappers with ExecutionPolicy Bypass - Add Get-ListenerHost() to auto-detect listener IP address - Fix impdp connection using EZConnect format (host:port/service) - Add parallel=1 for Oracle XE compatibility - Fix Write-Log to accept empty strings with [AllowEmptyString()] - Fix Get-SchemaObjectCount regex for Windows line endings (\r\n) - Fix path comparison for DMP file copy operation - Add GRANT EXECUTE ON SYS.AUTH_PACK TO PUBLIC for PACK_DREPTURI - Fix VAUTH_SERII view to use SYN_NOM_PROGRAME (has DENUMIRE column) - Add sections 10-11 to grants-public.sql for SYS object grants Tested on VM 302 (10.0.20.130) with Oracle XE 21c. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -31,14 +31,41 @@ Scripts and documentation for setting up ROA Oracle Database on Windows servers:
|
||||
4. Copy `config.example.ps1` to `config.ps1` and edit values
|
||||
5. Run scripts in order: `01` -> `07`
|
||||
|
||||
### Option A: Use Batch Wrappers (Recommended)
|
||||
|
||||
The batch wrappers handle PowerShell execution policy automatically:
|
||||
|
||||
```cmd
|
||||
# Complete installation (all scripts in order)
|
||||
RunAll.cmd
|
||||
|
||||
# Or run individual scripts
|
||||
Run.cmd 01-setup-database.ps1
|
||||
Run.cmd 02-create-sys-objects.ps1
|
||||
Run.cmd 03-import-contafin.ps1
|
||||
Run.cmd 04-create-synonyms-grants.ps1
|
||||
Run.cmd 05-import-companies.ps1
|
||||
Run.cmd 07-verify-installation.ps1
|
||||
```
|
||||
|
||||
### Option B: PowerShell Direct (requires Bypass)
|
||||
|
||||
If running PowerShell directly, use `-ExecutionPolicy Bypass`:
|
||||
|
||||
```powershell
|
||||
# Example workflow
|
||||
.\01-setup-database.ps1
|
||||
.\02-create-sys-objects.ps1
|
||||
.\03-import-contafin.ps1
|
||||
.\04-create-synonyms-grants.ps1
|
||||
.\05-import-companies.ps1
|
||||
.\07-verify-installation.ps1
|
||||
# From PowerShell
|
||||
powershell -ExecutionPolicy Bypass -File .\scripts\01-setup-database.ps1
|
||||
powershell -ExecutionPolicy Bypass -File .\scripts\07-verify-installation.ps1 -Detailed
|
||||
```
|
||||
|
||||
### Option C: Set Execution Policy (Admin required)
|
||||
|
||||
```powershell
|
||||
# Run as Administrator (one-time setup)
|
||||
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachine
|
||||
|
||||
# Then run scripts normally
|
||||
.\scripts\01-setup-database.ps1
|
||||
```
|
||||
|
||||
---
|
||||
@@ -61,6 +88,8 @@ Copy `config.example.ps1` to `config.ps1` and edit:
|
||||
roa-windows-setup/
|
||||
├── README.md # This file
|
||||
├── config.example.ps1 # Configuration template
|
||||
├── Run.cmd # Script runner (handles ExecutionPolicy)
|
||||
├── RunAll.cmd # Complete installation runner
|
||||
│
|
||||
├── docs/ # Installation guides
|
||||
│ ├── 00-INSTALL-ORACLE-XE.md # Oracle 21c XE installation
|
||||
|
||||
Reference in New Issue
Block a user