Reorganize proxmox documentation into subdirectories per LXC/VM
- Create cluster/ for Proxmox cluster infrastructure (SSH guide, HA monitor, UPS) - Create lxc108-oracle/ for Oracle Database documentation and scripts - Create vm201-windows/ for Windows 11 VM docs and SSL certificate scripts - Add SSL certificate monitoring scripts (check-ssl-certificates.ps1, monitor-ssl-certificates.sh) - Remove archived VM107 references (decommissioned) - Update all cross-references between files - Update main README.md with new structure and navigation Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
84
proxmox/scripts/CONTEXT-ORACLE18-IMPORT.md
Normal file
84
proxmox/scripts/CONTEXT-ORACLE18-IMPORT.md
Normal file
@@ -0,0 +1,84 @@
|
||||
# Context pentru Sesiunea Următoare - Import Oracle 18c
|
||||
|
||||
## Rezumat Situație
|
||||
|
||||
### Ce s-a făcut:
|
||||
1. **Oracle 18c XE instalat** pe LXC 108 (port 1522)
|
||||
- Container: `oracle18-xe`
|
||||
- TSTZ Version: **31** (compatibil cu 11g/18c/19c)
|
||||
- Image: `gvenzl/oracle-xe:18`
|
||||
|
||||
2. **Oracle 21c XE** existent (port 1521)
|
||||
- Container: `oracle-xe`
|
||||
- TSTZ Version: **35**
|
||||
- PDB-uri: ROA, ROA2 cu scheme CONTAFIN_ORACLE, FIRMANOUA
|
||||
|
||||
3. **Scripturi actualizate:**
|
||||
- `export-roa2.sh` - suportă export din Oracle 18c sau 21c
|
||||
- `export-roa2.ps1` - meniu PowerShell pentru export/copiere
|
||||
|
||||
4. **DMPDIR** creat pe ambele containere (partajat): `/opt/oracle/oradata/dmpdir`
|
||||
|
||||
### Problema TSTZ:
|
||||
- Oracle 21c are TSTZ 35, Oracle 18c are TSTZ 31
|
||||
- Import direct din 21c în 18c dă eroarea **ORA-39405**
|
||||
- Soluție: folosește DMP-uri mai vechi (TSTZ ≤ 31)
|
||||
|
||||
## Ce rămâne de făcut:
|
||||
|
||||
### 1. Creează DMPDIR în Oracle 18c (dacă nu e deja):
|
||||
```bash
|
||||
docker exec oracle18-xe bash -c "sqlplus -s / as sysdba <<EOF
|
||||
CREATE OR REPLACE DIRECTORY DMPDIR AS '/opt/oracle/oradata/dmpdir';
|
||||
GRANT READ, WRITE ON DIRECTORY DMPDIR TO PUBLIC;
|
||||
EOF"
|
||||
```
|
||||
|
||||
### 2. Import DMP-uri vechi în Oracle 18c:
|
||||
Utilizatorul a copiat fișiere DMP vechi în `/opt/oracle/oradata/dmpdir/`:
|
||||
- `contafin_oracle.dmp`
|
||||
- `firmanoua.dmp`
|
||||
|
||||
```bash
|
||||
# Import CONTAFIN_ORACLE
|
||||
docker exec oracle18-xe impdp system/romfastsoft@localhost:1521/XE \
|
||||
SCHEMAS=CONTAFIN_ORACLE DIRECTORY=DMPDIR \
|
||||
DUMPFILE=contafin_oracle.dmp LOGFILE=import_contafin.log
|
||||
|
||||
# Import FIRMANOUA
|
||||
docker exec oracle18-xe impdp system/romfastsoft@localhost:1521/XE \
|
||||
SCHEMAS=FIRMANOUA DIRECTORY=DMPDIR \
|
||||
DUMPFILE=firmanoua.dmp LOGFILE=import_firmanoua.log
|
||||
```
|
||||
|
||||
### 3. Verifică schemele importate:
|
||||
```sql
|
||||
SELECT owner, COUNT(*) FROM dba_objects
|
||||
WHERE owner IN ('CONTAFIN_ORACLE', 'FIRMANOUA')
|
||||
GROUP BY owner;
|
||||
```
|
||||
|
||||
### 4. Test export compatibil:
|
||||
```bash
|
||||
./export-roa2.sh 18
|
||||
# Sau din PowerShell: .\export-roa2.ps1 → Opțiunea 1 → Oracle 18c
|
||||
```
|
||||
|
||||
## Conexiuni:
|
||||
|
||||
| Container | Port | Conexiune |
|
||||
|-----------|------|-----------|
|
||||
| oracle-xe (21c) | 1521 | `sqlplus sys/romfastsoft@10.0.20.121:1521/XE as sysdba` |
|
||||
| oracle18-xe (18c) | 1522 | `sqlplus sys/romfastsoft@10.0.20.121:1522/XE as sysdba` |
|
||||
|
||||
## Fișiere relevante:
|
||||
- Documentație: `/mnt/e/proiecte/ROMFASTSQL/proxmox/oracle-database-lxc108.md`
|
||||
- Script bash: `/mnt/e/proiecte/ROMFASTSQL/proxmox/scripts/export-roa2.sh`
|
||||
- Script PowerShell: `/mnt/e/proiecte/ROMFASTSQL/proxmox/scripts/export-roa2.ps1`
|
||||
- DMP-uri vechi: `/opt/oracle/oradata/dmpdir/` (pe LXC 108)
|
||||
|
||||
## Scop final:
|
||||
Export DMP din Oracle 18c (TSTZ 31) compatibil cu Oracle 11g, 18c, 19c pentru clienți.
|
||||
|
||||
---
|
||||
Data: 2026-01-27
|
||||
Reference in New Issue
Block a user