rewrite aurora

This commit is contained in:
2025-09-24 21:40:55 +02:00
parent 05bd96e8b2
commit d3d7307076
3 changed files with 125 additions and 120 deletions

View File

@@ -1,31 +1,39 @@
# Configuration for the HANA Aurora Refresh Script
# Place this file in the same directory as the aurora.sh script.
# Configuration for the Aurora Refresh Script (aurora_refresh.sh)
# Place this file in the same directory as the script.
# --- Main Settings ---
# The source production schema to be copied.
SCHEMA="SBO_DEMO"
# Example: "SBO_COMPANY_PROD"
SOURCE_SCHEMA="SBODEMOHU"
# The user who will be granted privileges on the new Aurora schema.
AURORA_SCHEMA_USER="B1_53424F5F4348494D5045585F4155524F5241_RW"
# The HANA user that will be granted read/write access to the new Aurora schema.
# This is typically a technical user for the application.
# Example: "B1_..._RW"
AURORA_USER="B1_XXXXXXXXX_RW"
# The database user for performing backup and administrative tasks.
BACKOP_USER="CRONKEY"
# The secure user store key for the HANA database user with privileges to
# perform EXPORT, IMPORT, DROP SCHEMA, and GRANT commands (e.g., SYSTEM).
# Using a key (hdbuserstore) is more secure than hardcoding a password.
# Example: "CRONKEY"
DB_ADMIN_KEY="CRONKEY"
# --- Paths and Files ---
# --- Paths ---
# The base directory for storing the temporary schema export.
BACKUP_DIR="/hana/shared/backup/schema"
# The base directory where the temporary schema export folder will be created.
# Ensure the <sid>adm user has write permissions here.
BACKUP_BASE_DIR="/hana/shared/backup/schema"
# The full path to the HANA hdbsql executable.
HDBSQL="/usr/sap/NDB/HDB00/exe/hdbsql"
# The root directory where post-import SQL scripts are located.
SQL_SCRIPTS_ROOT="/usr/sap/NDB/home/tools/sql"
# --- Post-Import Scripts ---
# --- Post-Import Scripts (Optional) ---
# The root directory where the SQL script and its associated files are located.
SQL_ROOT="/usr/sap/NDB/home/tools"
# A space-separated list of SQL script files to run after the import is complete.
# These scripts should be located in the SCRIPT_ROOT directory.
POST_SQL=""
# A space-separated list of SQL script filenames to run after the import is complete.
# The script will look for these files inside the SQL_SCRIPTS_ROOT directory.
# Leave empty ("") if no scripts are needed.
# Example: "update_user_emails.sql cleanup_tables.sql"
POST_IMPORT_SQL=""