feat(clienti): add Oracle XE PDB recreare scripts and audit cleanup
- Complete PDB export/import workflow (16 scripts in clienti/oracle-xe-21c/import/) - Recreare PDB script with step-by-step guide (recreare_pdb.sql) - Universal audit cleanup script for Oracle XE 11g-21c (cleanup_audit.sql) - Troubleshooting guide with all lessons learned (depanare-ora-12954-spatiu.md) - Fixed: DIRECTORY grant syntax, DBMS_LOCK grant, remap_tablespace USERS:ROA, impdp quoted AS SYSDBA for Windows, AWR retention 8 days, datafile full path - Updated roa-windows-setup docs with XE prevention steps and gotchas table Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -396,10 +396,32 @@ ALTER PLUGGABLE DATABASE XEPDB1 SAVE STATE;
|
||||
impdp ... REMAP_TABLESPACE=ROA:USERS
|
||||
```
|
||||
|
||||
**ORA-00959: tablespace 'USERS' does not exist (pe PDB nou):**
|
||||
```cmd
|
||||
REM PDB-ul nou din PDB$SEED nu are tablespace USERS. Remapeaza la ROA:
|
||||
impdp "sys/pass@XEPDB1 AS SYSDBA" ... remap_tablespace=USERS:ROA
|
||||
```
|
||||
|
||||
**ORA-39405: Oracle Data Pump does not support importing from a source database with TSTZ version newer:**
|
||||
|
||||
Use DMP files exported from Oracle 18c (TSTZ 31) instead of Oracle 21c (TSTZ 35).
|
||||
|
||||
### ORA-12954: Database exceeds 12 GB (XE only)
|
||||
|
||||
See `clienti/oracle-xe-21c/depanare-ora-12954-spatiu.md` for full troubleshooting guide.
|
||||
|
||||
**Prevention (run on every new XE installation):**
|
||||
```sql
|
||||
-- Connect to XEPDB1 as SYS
|
||||
EXEC DBMS_AUTO_TASK_ADMIN.DISABLE(client_name => 'sql tuning advisor', operation => NULL, window_name => NULL);
|
||||
EXEC DBMS_AUTO_TASK_ADMIN.DISABLE(client_name => 'auto space advisor', operation => NULL, window_name => NULL);
|
||||
NOAUDIT POLICY ORA_SECURECONFIG;
|
||||
NOAUDIT POLICY ORA_LOGON_FAILURES;
|
||||
EXEC DBMS_WORKLOAD_REPOSITORY.MODIFY_SNAPSHOT_SETTINGS(retention => 8*24*60, interval => 60);
|
||||
EXEC DBMS_STATS.ALTER_STATS_HISTORY_RETENTION(7);
|
||||
GRANT EXECUTE ON SYS.DBMS_LOCK TO CONTAFIN_ORACLE;
|
||||
```
|
||||
|
||||
### Service Not Starting
|
||||
|
||||
Check Windows Services:
|
||||
|
||||
Reference in New Issue
Block a user