Oracle DR: Complete cleanup and restore scripts with Proxmox integration
- Remove outdated planning documents and implementation guides - Update README with comprehensive DR procedures and monitoring - Enhance rman_restore_from_zero.cmd with SPFILE creation and auto-start - Add Proxmox monitoring and weekly test scripts - Archive old implementation documentation Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
This commit is contained in:
@@ -143,8 +143,7 @@ echo } >> %RMAN_SCRIPT%
|
||||
echo. >> %RMAN_SCRIPT%
|
||||
echo ALTER DATABASE OPEN RESETLOGS; >> %RMAN_SCRIPT%
|
||||
echo. >> %RMAN_SCRIPT%
|
||||
echo ALTER TABLESPACE TEMP ADD TEMPFILE 'C:\Users\oracle\oradata\ROA\temp01.dbf' SIZE 567M REUSE AUTOEXTEND ON NEXT 640K MAXSIZE 32767M; >> %RMAN_SCRIPT%
|
||||
echo. >> %RMAN_SCRIPT%
|
||||
REM Note: TEMP tablespace is automatically restored - no need to add manually
|
||||
echo EXIT; >> %RMAN_SCRIPT%
|
||||
|
||||
echo [OK] RMAN script created: %RMAN_SCRIPT%
|
||||
@@ -183,6 +182,33 @@ echo EXIT; >> D:\oracle\temp\verify.sql
|
||||
|
||||
sqlplus -s / as sysdba @D:\oracle\temp\verify.sql
|
||||
|
||||
echo.
|
||||
echo [3.2] Creating SPFILE for database persistence...
|
||||
echo CREATE SPFILE FROM PFILE='C:\Users\oracle\admin\ROA\pfile\initROA.ora'; > D:\oracle\temp\create_spfile.sql
|
||||
echo EXIT; >> D:\oracle\temp\create_spfile.sql
|
||||
sqlplus / as sysdba @D:\oracle\temp\create_spfile.sql
|
||||
if %errorlevel% neq 0 (
|
||||
echo WARNING: Failed to create SPFILE - database may not persist after connections close
|
||||
) else (
|
||||
echo [OK] SPFILE created successfully
|
||||
|
||||
REM Recreate service with auto-start and SPFILE
|
||||
echo [3.3] Recreating Oracle service with auto-start mode...
|
||||
oradim -delete -sid ROA 2>nul
|
||||
timeout /t 2 /nobreak > nul
|
||||
oradim -new -sid ROA -startmode auto -spfile
|
||||
if %errorlevel% neq 0 (
|
||||
echo WARNING: Failed to recreate service with auto-start
|
||||
) else (
|
||||
echo [OK] Service recreated with auto-start mode
|
||||
)
|
||||
|
||||
REM Register with listener
|
||||
echo ALTER SYSTEM REGISTER; > D:\oracle\temp\register.sql
|
||||
echo EXIT; >> D:\oracle\temp\register.sql
|
||||
sqlplus / as sysdba @D:\oracle\temp\register.sql
|
||||
)
|
||||
|
||||
echo.
|
||||
echo ============================================
|
||||
echo Database Restore FROM ZERO Complete!
|
||||
|
||||
Reference in New Issue
Block a user