Add ROA Oracle Database Windows setup scripts with old client support

PowerShell scripts for setting up Oracle 21c/XE with ROA application:
- Automated tablespace, user creation and imports
- sqlnet.ora config for Instant Client 11g/ODBC compatibility
- Oracle 21c read-only Home path handling (homes/OraDB21Home1)
- Listener restart + 10G password verifier for legacy auth
- Tested on VM 302 with CONTAFIN_ORACLE schema import

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Marius
2026-01-28 17:08:02 +02:00
parent 665c2b5d37
commit 989477f7a4
26 changed files with 8972 additions and 0 deletions

View File

@@ -0,0 +1,104 @@
# =============================================================================
# Oracle Data Pump Import Parameter File - CONTAFIN_ORACLE Schema
# =============================================================================
#
# Purpose: Import CONTAFIN_ORACLE schema (common schema with rights, updates)
#
# Usage:
# impdp system/password@service parfile=import-contafin.par
#
# Or with explicit password prompt:
# impdp system@service parfile=import-contafin.par
#
# Prerequisites:
# 1. DMPDIR directory exists: CREATE DIRECTORY DMPDIR AS 'C:\DMPDIR';
# 2. contafin_oracle.dmp file is in C:\DMPDIR
# 3. CONTAFIN_ORACLE user created (or will be created by import)
#
# =============================================================================
# -----------------------------------------------------------------------------
# Source and Destination
# -----------------------------------------------------------------------------
# Oracle directory object containing DMP files
DIRECTORY=DMPDIR
# Source dump file name
DUMPFILE=contafin_oracle.dmp
# Import log file (will be created in DMPDIR)
LOGFILE=import_contafin_oracle.log
# -----------------------------------------------------------------------------
# Schema Configuration
# -----------------------------------------------------------------------------
# Schema to import
SCHEMAS=CONTAFIN_ORACLE
# -----------------------------------------------------------------------------
# Import Behavior
# -----------------------------------------------------------------------------
# Action when table already exists:
# SKIP - Skip existing tables (preserves data)
# APPEND - Add rows to existing tables
# TRUNCATE - Delete existing rows, then import
# REPLACE - Drop and recreate tables
TABLE_EXISTS_ACTION=REPLACE
# Transform OID to avoid conflicts
# Required when importing between different databases
TRANSFORM=OID:N
# -----------------------------------------------------------------------------
# Performance Settings
# -----------------------------------------------------------------------------
# Number of parallel worker processes
# Adjust based on CPU cores available
PARALLEL=2
# -----------------------------------------------------------------------------
# Exclusions (Optional)
# -----------------------------------------------------------------------------
# Exclude specific object types if needed
# EXCLUDE=STATISTICS
# EXCLUDE=INDEX:"='IDX_TEMP%'"
# -----------------------------------------------------------------------------
# Remapping (Optional)
# -----------------------------------------------------------------------------
# Remap tablespace if source uses different tablespace name
# REMAP_TABLESPACE=SOURCE_TS:ROA
# Remap schema if importing to different schema name
# REMAP_SCHEMA=CONTAFIN_ORACLE:CONTAFIN_ORACLE
# -----------------------------------------------------------------------------
# Advanced Options
# -----------------------------------------------------------------------------
# Continue import even if some objects fail
# CONTENT=ALL
# Import metadata only (no data)
# CONTENT=METADATA_ONLY
# Import data only (no DDL)
# CONTENT=DATA_ONLY
# =============================================================================
# Expected Objects in CONTAFIN_ORACLE:
#
# - Tables: NOM_FIRME, NOM_USERI, NOM_DREPTURI, etc. (~50 tables)
# - Views: Various application views (~20 views)
# - Packages: PACK_MIGRARE, AUTH_PACK, etc. (~10 packages)
# - Procedures/Functions: Various utilities (~50)
# - Triggers: Various (~20)
#
# Total: ~300+ objects
# =============================================================================