From f1b982794b85b77683bd57a0e5ba51c54aa5b863 Mon Sep 17 00:00:00 2001 From: Marius Date: Wed, 19 Nov 2025 12:58:22 +0200 Subject: [PATCH] Reorganize Oracle and Proxmox documentation structure MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Move oracle/CONEXIUNI-ORACLE.md → proxmox/oracle-database-lxc108.md - Create proxmox/README.md as documentation index - Update proxmox-ssh-guide.md: * Remove VM 107 references (decommissioned) * Update LXC and VM tables with IP addresses * Add IP address map for all services * Simplify Oracle section (detailed info in oracle-database-lxc108.md) * Update backup job configuration Benefits: - All infrastructure docs in proxmox/ directory - Clear separation: general Proxmox (proxmox-ssh-guide.md) vs Oracle-specific (oracle-database-lxc108.md) - No duplicate information between files - Easy navigation with README.md index 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- oracle/CONEXIUNI-ORACLE.md | 250 ----------------- proxmox/README.md | 125 +++++++++ proxmox/oracle-database-lxc108.md | 435 ++++++++++++++++++++++++++++++ proxmox/proxmox-ssh-guide.md | 167 ++++++++++-- 4 files changed, 705 insertions(+), 272 deletions(-) delete mode 100644 oracle/CONEXIUNI-ORACLE.md create mode 100644 proxmox/README.md create mode 100644 proxmox/oracle-database-lxc108.md diff --git a/oracle/CONEXIUNI-ORACLE.md b/oracle/CONEXIUNI-ORACLE.md deleted file mode 100644 index d768fee..0000000 --- a/oracle/CONEXIUNI-ORACLE.md +++ /dev/null @@ -1,250 +0,0 @@ -# Conexiuni Oracle - ROMFASTSQL - -## 🐳 Oracle XE 21c - Docker în LXC 108 (Proxmox) - -### Informații Server -- **Host**: 10.0.20.105 (LXC 108 pe Proxmox 10.0.20.201) -- **Port**: 1521 -- **Container Docker**: oracle-xe -- **Versiune**: Oracle Database 21c Express Edition -- **CDB**: XE -- **User SYS**: sys / romfastsoft (CONTAINER=ALL) -- **User SYSTEM**: system / romfastsoft (CONTAINER=ALL) - -### PDB-uri Disponibile - -#### 1. PDB: ROA (Producție) -```bash -# Connection String -Host: 10.0.20.105 -Port: 1521 -Service Name: roa -``` - -**Useri:** -- **SYS**: sys / romfastsoft (as SYSDBA) -- **SYSTEM**: system / romfastsoft -- **CONTAFIN_ORACLE**: CONTAFIN_ORACLE / OraclePass123 -- **MARIUSM_AUTO**: MARIUSM_AUTO / OraclePass123 - -**SQL*Plus:** -```bash -sqlplus sys/romfastsoft@10.0.20.105:1521/roa as sysdba -sqlplus system/romfastsoft@10.0.20.105:1521/roa -sqlplus CONTAFIN_ORACLE/OraclePass123@10.0.20.105:1521/roa -sqlplus MARIUSM_AUTO/OraclePass123@10.0.20.105:1521/roa -``` - -**JDBC:** -``` -jdbc:oracle:thin:@10.0.20.105:1521/roa -``` - -**TNS:** -``` -ROA = - (DESCRIPTION = - (ADDRESS = (PROTOCOL = TCP)(HOST = 10.0.20.105)(PORT = 1521)) - (CONNECT_DATA = - (SERVER = DEDICATED) - (SERVICE_NAME = roa) - ) - ) -``` - ---- - -#### 2. PDB: ROA2 (Template pentru export DMP) -```bash -# Connection String -Host: 10.0.20.105 -Port: 1521 -Service Name: roa2 -``` - -**Useri:** -- **SYS**: sys / romfastsoft (as SYSDBA) -- **SYSTEM**: system / romfastsoft -- **CONTAFIN_ORACLE**: CONTAFIN_ORACLE / ROMFASTSOFT -- **FIRMANOUA**: FIRMANOUA / ROMFASTSOFT - -**SQL*Plus:** -```bash -sqlplus sys/romfastsoft@10.0.20.105:1521/roa2 as sysdba -sqlplus system/romfastsoft@10.0.20.105:1521/roa2 -sqlplus CONTAFIN_ORACLE/ROMFASTSOFT@10.0.20.105:1521/roa2 -sqlplus FIRMANOUA/ROMFASTSOFT@10.0.20.105:1521/roa2 -``` - -**JDBC:** -``` -jdbc:oracle:thin:@10.0.20.105:1521/roa2 -``` - -**TNS:** -``` -ROA2 = - (DESCRIPTION = - (ADDRESS = (PROTOCOL = TCP)(HOST = 10.0.20.105)(PORT = 1521)) - (CONNECT_DATA = - (SERVER = DEDICATED) - (SERVICE_NAME = roa2) - ) - ) -``` - -**Caracteristici ROA2:** -- Template pentru scheme noi (export DMP) -- Tablespace ROA: 2GB (pentru teste/template) -- Profil DEFAULT: parole nelimitate (PASSWORD_LIFE_TIME UNLIMITED) -- Obiecte SYS custom: AUTH_PACK, UPDATESQLPLUS, EXECUTESCRIPTOS, UTL_MAIL -- 232 sinonime publice CONTAFIN_ORACLE -- 149 grant-uri către PUBLIC - ---- - -### Acces SSH/Docker - -**SSH Proxmox:** -```bash -ssh root@10.0.20.201 -``` - -**Acces LXC 108:** -```bash -# Din Proxmox -pct exec 108 -- bash - -# Acces direct Oracle container -pct exec 108 -- docker exec -it oracle-xe bash - -# SQL*Plus direct în container -pct exec 108 -- docker exec oracle-xe sqlplus sys/OraclePass123@localhost:1521/roa as sysdba -``` - -**Comenzi utile:** -```bash -# Status PDB-uri -echo "SELECT name, open_mode FROM v\$pdbs;" | sqlplus -s sys/romfastsoft@localhost:1521/XE as sysdba - -# Verificare tablespace-uri ROA2 -echo "SELECT tablespace_name, bytes/1024/1024 as MB FROM dba_data_files WHERE tablespace_name='ROA';" | sqlplus -s sys/romfastsoft@localhost:1521/roa2 as sysdba - -# Status obiecte -echo "SELECT owner, COUNT(*), SUM(CASE WHEN status='VALID' THEN 1 ELSE 0 END) as valid FROM dba_objects WHERE owner IN ('CONTAFIN_ORACLE', 'FIRMANOUA') GROUP BY owner;" | sqlplus -s sys/romfastsoft@localhost:1521/roa2 as sysdba -``` - ---- - -## 🖥️ Oracle 10g - VM 107 (Windows 7) - -### Informații Server -- **Host**: 10.0.20.122 (VM Windows 7) -- **Port**: 1521 -- **Versiune**: Oracle Database 10g Release 10.2.0.1.0 -- **SID**: ORCL -- **User SYS**: sys / oracle (as SYSDBA) - -### Conexiuni - -**SQL*Plus:** -```bash -sqlplus sys/oracle@10.0.20.122:1521/ORCL as sysdba -sqlplus CONTAFIN_ORACLE/OraclePass123@10.0.20.122:1521/ORCL -``` - -**JDBC:** -``` -jdbc:oracle:thin:@10.0.20.122:1521:ORCL -``` - -**TNS:** -``` -ORCL_VM107 = - (DESCRIPTION = - (ADDRESS = (PROTOCOL = TCP)(HOST = 10.0.20.122)(PORT = 1521)) - (CONNECT_DATA = - (SERVER = DEDICATED) - (SID = ORCL) - ) - ) -``` - -**Note:** -- Sursă pentru export DMP Oracle 10g → Oracle 21c -- Archive DMP exportate: `firmanoua.zip` (contafin_oracle.dmp + firmanoua.dmp) -- Folosit pentru migrare către Oracle XE 21c - ---- - -## 📝 Notițe Importante - -### Diferențe Oracle 10g vs 21c -- Oracle 10g folosește **SID** (ORCL) -- Oracle 21c folosește **SERVICE_NAME** (roa, roa2) -- Migrare: Export DMP Oracle 10g → Import Data Pump Oracle 21c (`impdp`) - -### Profile Parole -- **ROA**: Parolele pot expira (setări default Oracle) -- **ROA2**: Parolele NU expiră (PASSWORD_LIFE_TIME UNLIMITED) - -### Backup și Export -```bash -# Export schema FIRMANOUA din ROA2 -expdp system/romfastsoft@10.0.20.105:1521/roa2 \ - SCHEMAS=FIRMANOUA \ - DIRECTORY=DATA_PUMP_DIR \ - DUMPFILE=firmanoua_template_%U.dmp \ - LOGFILE=firmanoua_template.log \ - PARALLEL=2 - -# Export schema CONTAFIN_ORACLE din ROA2 -expdp system/romfastsoft@10.0.20.105:1521/roa2 \ - SCHEMAS=CONTAFIN_ORACLE \ - DIRECTORY=DATA_PUMP_DIR \ - DUMPFILE=contafin_template_%U.dmp \ - LOGFILE=contafin_template.log \ - PARALLEL=2 -``` - ---- - -## 🔧 Troubleshooting - -### Verificare conexiune -```bash -# Test ping -ping 10.0.20.105 - -# Test port Oracle -nc -zv 10.0.20.105 1521 - -# Test SQL*Plus -sqlplus sys/romfastsoft@10.0.20.105:1521/roa as sysdba -``` - -### Restart Oracle Container -```bash -ssh root@10.0.20.201 -pct exec 108 -- docker restart oracle-xe - -# Verificare status -pct exec 108 -- docker ps -pct exec 108 -- docker logs oracle-xe --tail 50 -``` - -### Verificare PDB status -```bash -# Open PDB dacă este MOUNTED -pct exec 108 -- docker exec oracle-xe sqlplus -s sys/romfastsoft@localhost:1521/XE as sysdba < **IMPORTANT:** Nu ai nevoie de user/parolă pentru LXC 108! +> Accesul se face prin Proxmox folosind comenzile `pct`. + +### Metoda 1: Intrare în LXC 108 +```bash +# SSH în Proxmox +ssh root@10.0.20.201 + +# Intrare în LXC 108 +pct enter 108 + +# Acum poți folosi comenzi Docker direct +docker ps +docker logs oracle-xe --tail 50 +``` + +### Metoda 2: Execuție Directă din Proxmox +```bash +# Verificare PDB-uri +ssh root@10.0.20.201 'pct exec 108 -- docker exec oracle-xe bash -c "echo \"SELECT name, open_mode FROM v\\\$pdbs;\" | sqlplus -s sys/romfastsoft@localhost:1521/XE as sysdba"' + +# Restart Oracle container +ssh root@10.0.20.201 "pct exec 108 -- docker restart oracle-xe" +``` + +### Metoda 3: SQL*Plus Direct în Container +```bash +# Intrare în container Oracle +pct exec 108 -- docker exec -it oracle-xe bash + +# SQL*Plus din container +docker exec oracle-xe sqlplus sys/romfastsoft@localhost:1521/roa as sysdba +``` + +--- + +## 📦 Export și Import Data Pump + +### Export Schema FIRMANOUA din ROA2 +```bash +# Export complet schema +ssh root@10.0.20.201 'pct exec 108 -- docker exec oracle-xe expdp system/romfastsoft@localhost:1521/roa2 \ + SCHEMAS=FIRMANOUA \ + DIRECTORY=DATA_PUMP_DIR \ + DUMPFILE=firmanoua_template_%U.dmp \ + LOGFILE=firmanoua_template.log \ + PARALLEL=2' +``` + +### Export Schema CONTAFIN_ORACLE din ROA2 +```bash +ssh root@10.0.20.201 'pct exec 108 -- docker exec oracle-xe expdp system/romfastsoft@localhost:1521/roa2 \ + SCHEMAS=CONTAFIN_ORACLE \ + DIRECTORY=DATA_PUMP_DIR \ + DUMPFILE=contafin_template_%U.dmp \ + LOGFILE=contafin_template.log \ + PARALLEL=2' +``` + +### Import în PDB Nou +```bash +# Import schema în PDB existent +ssh root@10.0.20.201 'pct exec 108 -- docker exec oracle-xe impdp system/romfastsoft@localhost:1521/roa \ + SCHEMAS=FIRMANOUA \ + DIRECTORY=DATA_PUMP_DIR \ + DUMPFILE=firmanoua_template_%U.dmp \ + LOGFILE=firmanoua_import.log \ + PARALLEL=2' +``` + +### Copiere Fișiere DMP din/în Container +```bash +# Copiere DMP din Oracle container în LXC 108 +ssh root@10.0.20.201 "pct exec 108 -- docker cp oracle-xe:/opt/oracle/admin/XE/dpdump/firmanoua_template_01.dmp /tmp/" + +# Copiere DMP din LXC 108 în WSL +scp root@10.0.20.201:/var/lib/lxc/108/rootfs/tmp/firmanoua_template_01.dmp /mnt/e/backups/ + +# Copiere DMP în Oracle container (pentru import) +ssh root@10.0.20.201 "pct exec 108 -- docker cp /tmp/firmanoua_template_01.dmp oracle-xe:/opt/oracle/admin/XE/dpdump/" +``` + +--- + +## 🔍 Verificări și Comenzi SQL Utile + +### Status PDB-uri +```sql +-- Verificare status PDB-uri +SELECT name, open_mode, restricted FROM v$pdbs; + +-- Deschidere PDB (dacă e MOUNTED) +ALTER PLUGGABLE DATABASE roa OPEN; +ALTER PLUGGABLE DATABASE roa2 OPEN; +ALTER PLUGGABLE DATABASE ALL SAVE STATE; +``` + +### Verificare Tablespace-uri +```sql +-- Tablespace-uri și utilizare în ROA2 +SELECT + tablespace_name, + ROUND(bytes/1024/1024, 2) as MB, + ROUND(maxbytes/1024/1024, 2) as MAX_MB, + autoextensible +FROM dba_data_files +WHERE tablespace_name='ROA'; + +-- Spațiu liber +SELECT + tablespace_name, + ROUND(SUM(bytes)/1024/1024, 2) as FREE_MB +FROM dba_free_space +GROUP BY tablespace_name; +``` + +### Status Obiecte și Scheme +```sql +-- Număr obiecte per schema în ROA2 +SELECT + owner, + COUNT(*) total_objects, + SUM(CASE WHEN status='VALID' THEN 1 ELSE 0 END) valid_objects, + SUM(CASE WHEN status='INVALID' THEN 1 ELSE 0 END) invalid_objects +FROM dba_objects +WHERE owner IN ('CONTAFIN_ORACLE', 'FIRMANOUA') +GROUP BY owner; + +-- Tipuri obiecte +SELECT owner, object_type, COUNT(*) +FROM dba_objects +WHERE owner IN ('CONTAFIN_ORACLE', 'FIRMANOUA') +GROUP BY owner, object_type +ORDER BY owner, COUNT(*) DESC; +``` + +### Useri și Profiluri +```sql +-- Verificare useri și profile în PDB +SELECT username, account_status, profile, created +FROM dba_users +WHERE username IN ('CONTAFIN_ORACLE', 'FIRMANOUA', 'MARIUSM_AUTO') +ORDER BY created DESC; + +-- Verificare limită parole (PASSWORD_LIFE_TIME) +SELECT profile, resource_name, limit +FROM dba_profiles +WHERE resource_name = 'PASSWORD_LIFE_TIME' +ORDER BY profile; +``` + +### Sinonime Publice +```sql +-- Verificare sinonime publice CONTAFIN_ORACLE +SELECT COUNT(*) as total_synonyms +FROM dba_synonyms +WHERE owner = 'PUBLIC' +AND table_owner = 'CONTAFIN_ORACLE'; + +-- Detalii sinonime +SELECT synonym_name, table_owner, table_name +FROM dba_synonyms +WHERE owner = 'PUBLIC' +AND table_owner = 'CONTAFIN_ORACLE' +ORDER BY synonym_name; +``` + +### Grant-uri către PUBLIC +```sql +-- Număr grant-uri către PUBLIC +SELECT COUNT(*) as total_grants +FROM dba_tab_privs +WHERE grantee = 'PUBLIC' +AND owner IN ('CONTAFIN_ORACLE', 'SYS'); + +-- Detalii grant-uri +SELECT owner, table_name, privilege, grantee +FROM dba_tab_privs +WHERE grantee = 'PUBLIC' +AND owner IN ('CONTAFIN_ORACLE', 'SYS') +ORDER BY owner, table_name; +``` + +--- + +## 🚨 Troubleshooting Oracle + +### Verificare Conexiune Oracle +```bash +# Test ping LXC 108 +ping -c 3 10.0.20.121 + +# Test port Oracle listener +nc -zv 10.0.20.121 1521 + +# Test SQL*Plus conexiune +sqlplus sys/romfastsoft@10.0.20.121:1521/roa as sysdba +``` + +### Restart Oracle Database +```bash +# Opțiunea 1: Restart container Docker (RAPID) +ssh root@10.0.20.201 "pct exec 108 -- docker restart oracle-xe" + +# Opțiunea 2: Restart LXC complet +ssh root@10.0.20.201 "pct restart 108" + +# Verificare după restart +ssh root@10.0.20.201 "pct exec 108 -- docker ps" +``` + +### Verificare Status Container +```bash +# Status Docker container +ssh root@10.0.20.201 "pct exec 108 -- docker ps" + +# Healthcheck Oracle +ssh root@10.0.20.201 "pct exec 108 -- docker inspect oracle-xe | grep -A 10 Health" + +# Loguri Oracle +ssh root@10.0.20.201 "pct exec 108 -- docker logs oracle-xe --tail 100" +``` + +### PDB nu se deschide (MOUNTED) +```bash +# Deschidere manuală PDB +ssh root@10.0.20.201 'pct exec 108 -- docker exec oracle-xe bash -c "echo \"ALTER PLUGGABLE DATABASE ALL OPEN; ALTER PLUGGABLE DATABASE ALL SAVE STATE;\" | sqlplus -s sys/romfastsoft@localhost:1521/XE as sysdba"' +``` + +### Probleme Maximum Open Cursors +```sql +-- Verificare valoare curentă +SELECT name, value FROM v$parameter WHERE name = 'open_cursors'; + +-- Creștere limită cursoare (dacă apar erori ORA-01000) +ALTER SYSTEM SET OPEN_CURSORS=1000 SCOPE=BOTH SID='*'; +``` + +### Verificare Alert Log Oracle +```bash +# Alert log location în container +ssh root@10.0.20.201 "pct exec 108 -- docker exec oracle-xe tail -100 /opt/oracle/diag/rdbms/xe/XE/trace/alert_XE.log" +``` + +--- + +## 📝 Notițe Importante + +### Diferențe Oracle 10g vs 21c +- **Oracle 10g** folosește SID (ORCL) - sistem vechi, decommissioned +- **Oracle 21c** folosește SERVICE_NAME (roa, roa2) - sistem actual +- Migrare: Export DMP Oracle 10g → Import Data Pump Oracle 21c (impdp) + +### Profile Parole +- **ROA:** Parolele pot expira (setări default Oracle) +- **ROA2:** Parolele NU expiră (PASSWORD_LIFE_TIME UNLIMITED) + +### VM 201 - Windows 11 (Client Aplicații) +- **VMID:** 201 +- **Nume:** roacentral +- **Host:** 10.0.20.201 (Proxmox pvemini) +- **OS:** Windows 11 (24H2) +- **Rol:** Client pentru aplicații Windows, SQL*Plus client +- **NU** rulează Oracle Database (migrat în LXC 108 Docker) + +### Istoric Migrare +- **VM 107 (Windows 7 Oracle 10g)** - DECOMMISSIONED + - Fostă sursă Oracle 10g pentru migrare DMP + - Archive DMP: firmanoua.zip (backup arhivat) + - Status: Stopped/Removed (înlocuit de LXC 108) + +--- + +## 🔗 Legături Utile + +**Pentru detalii Proxmox generale (cluster, toate LXC-uri/VM-uri):** +Vezi fișierul: `proxmox/proxmox-ssh-guide.md` + +**Oracle Enterprise Manager Express:** +http://10.0.20.121:5500/em + +**Portainer Docker Management:** +http://10.0.20.121:9443 + +--- + +**Data ultimei actualizări:** 2025-11-19 +**Autor:** Marius Mutu +**Proiect:** ROMFASTSQL - Oracle XE 21c în Proxmox LXC diff --git a/proxmox/proxmox-ssh-guide.md b/proxmox/proxmox-ssh-guide.md index 67eee44..f8f7ae5 100644 --- a/proxmox/proxmox-ssh-guide.md +++ b/proxmox/proxmox-ssh-guide.md @@ -177,24 +177,84 @@ pct set --rootfs local-zfs:20 ### VM-uri și Containere Active -#### LXC Containers -| VMID | Nume | CPU | RAM | Storage | Status | Tags | -|------|------|-----|-----|---------|--------|------| -| 100 | portainer | 2 cores | 1 GB | 21 GB | running | docker;portainer | -| 101 | minecraft | 4 cores | 8 GB | 100 GB | running | community-script;minecraft;os | -| 102 | coolify | 4 cores | 6 GB | 50 GB | running | debian | -| 103 | proxmox-backup-server | 2 cores | 2 GB | 10 GB | running | backup;community-script | -| 104 | flowise | 4 cores | 2 GB | 100 GB | running | flowise;ollama | -| 105 | test | 2 cores | 2 GB | 40 GB | running | debian | -| 106 | gitea | 2 cores | 4 GB | 250 GB | running | alpine;community-script;docker;gitea | -| 108 | central-oracle | 2 cores | 4 GB | 50 GB | running | docker;oracle | +#### LXC Containers (Proxmox pvemini - 10.0.20.201) +| VMID | Nume | IP | CPU | RAM | Storage | Status | Tags | +|------|------|-----|-----|-----|---------|--------|------| +| 100 | portainer | 10.0.20.170 | 2 cores | 1 GB | 21 GB | running | docker;portainer | +| 102 | coolify | - | 4 cores | 6 GB | 50 GB | stopped | debian | +| 103 | dokploy | 10.0.20.167 | 2 cores | 2 GB | 10 GB | running | docker;deployment | +| 104 | flowise | 10.0.20.161 | 4 cores | 2 GB | 100 GB | running | flowise;ollama | +| 106 | gitea | 10.0.20.165 | 2 cores | 4 GB | 250 GB | running | alpine;community-script;docker;gitea | +| 108 | central-oracle | 10.0.20.121 | 2 cores | 4 GB | 50 GB | running | docker;oracle | #### Virtual Machines (QEMU) -| VMID | Nume | CPU | RAM | Storage | Status | Descriere | -|------|------|-----|-----|---------|--------|-----------| -| 107 | roacentral | 2 cores | 4 GB | 932 GB | stopped | Windows 7 (oprit) | -| 201 | roacentral | 2 cores | 4 GB | 500 GB | running | Windows 11 (activ) | -| 300 | Win11-Template | 2 cores | 4 GB | 500 GB | stopped | Windows 11 Template | +| VMID | Nume | IP | CPU | RAM | Storage | Status | Descriere | +|------|------|-----|-----|-----|---------|--------|-----------| +| 201 | roacentral | DHCP | 2 cores | 4 GB | 500 GB | running | Windows 11 - Client pentru aplicații | +| 300 | Win11-Template | - | 2 cores | 4 GB | 500 GB | stopped | Windows 11 Template pentru clonare | + +--- + +## 🔧 LXC 108 - Oracle Database (Acces Rapid) + +### Informații Container +- **VMID:** 108 | **Nume:** central-oracle | **IP:** 10.0.20.121 +- **CPU:** 2 cores | **RAM:** 4 GB | **Storage:** 50 GB (local-zfs) +- **Docker:** oracle-xe (Oracle XE 21c) | **Status:** Running +- **Portainer:** http://10.0.20.121:9443 + +### Acces în LXC (fără user/parolă) + +> Nu ai nevoie de credențiale pentru LXC 108! +> Accesul se face prin Proxmox folosind `pct enter` sau `pct exec`. + +```bash +# Metoda 1: Intrare directă în LXC +ssh root@10.0.20.201 +pct enter 108 + +# Metoda 2: Execuție comandă din Proxmox +ssh root@10.0.20.201 "pct exec 108 -- docker ps" +``` + +### Restart Oracle Database + +```bash +# Opțiunea 1: Restart Oracle container (RAPID) +ssh root@10.0.20.201 "pct exec 108 -- docker restart oracle-xe" + +# Opțiunea 2: Restart LXC complet +ssh root@10.0.20.201 "pct restart 108" + +# Verificare după restart +ssh root@10.0.20.201 "pct exec 108 -- docker ps" +``` + +### Verificări Rapide + +```bash +# Status containere Docker +ssh root@10.0.20.201 "pct exec 108 -- docker ps" + +# Loguri Oracle +ssh root@10.0.20.201 "pct exec 108 -- docker logs oracle-xe --tail 50" + +# Test conexiune Oracle +nc -zv 10.0.20.121 1521 +``` + +### 📖 Documentație Completă Oracle + +Pentru detalii despre: +- Conexiuni Oracle (PDB-uri: roa, roa2) +- Useri și parole Oracle +- SQL*Plus, JDBC, TNS configurations +- Export/import DMP +- Comenzi SQL și troubleshooting + +**Vezi:** `proxmox/oracle-database-lxc108.md` + +--- ## Backup Job Configuration @@ -203,11 +263,19 @@ pct set --rootfs local-zfs:20 - **Compression:** zstd - **Mode:** snapshot - **Storage:** backup -- **VM-uri incluse:** 100, 101, 102, 104, 106, 108, 201 +- **VM-uri incluse:** 100, 103, 104, 106, 108, 201 - **Retention:** 1 daily, 1 weekly - **Fleecing:** Disabled - **Notes Template:** {{guestname}} +**Containere în backup:** +- 100 (Portainer) - 10.0.20.170 +- 103 (Dokploy) - 10.0.20.167 +- 104 (Flowise) - 10.0.20.161 +- 106 (Gitea) - 10.0.20.165 +- 108 (Oracle) - 10.0.20.121 +- 201 (Windows 11 VM) - DHCP + ### Comenzi Cluster ```bash @@ -224,6 +292,57 @@ pvesh get /cluster/resources cat /etc/pve/corosync.conf ``` +## 📡 Hartă Rapidă IP-uri + +### Noduri Proxmox Cluster +| Nod | IP | Rol | Web GUI | +|-----|-----|-----|---------| +| pve1 | 10.0.20.200 | Nod cluster 1 | https://10.0.20.200:8006 | +| pvemini (local) | 10.0.20.201 | Nod principal | https://10.0.20.201:8006 | +| pve2 | 10.0.20.202 | Nod cluster 3 | https://10.0.20.202:8006 | + +### LXC Containers (Servicii) +| VMID | Nume | IP | Port(uri) | Serviciu | +|------|------|-----|-----------|----------| +| 100 | portainer | 10.0.20.170 | 9443, 8000 | Portainer (Docker management) | +| 103 | dokploy | 10.0.20.167 | 3000 | Dokploy (Deployment platform) | +| 104 | flowise | 10.0.20.161 | 3000 | Flowise AI + Ollama | +| 106 | gitea | 10.0.20.165 | 3000, 22 | Gitea (Git server) | +| 108 | central-oracle | 10.0.20.121 | 1521, 5500, 9443 | Oracle XE 21c + Portainer | + +### Virtual Machines +| VMID | Nume | IP | OS | Rol | +|------|------|-----|-----|-----| +| 201 | roacentral | DHCP | Windows 11 | Client aplicații | +| 300 | Win11-Template | - | Windows 11 | Template pentru clonare | + +### Accesuri Rapide +```bash +# Oracle Database (LXC 108) - Vezi proxmox/oracle-database-lxc108.md pentru detalii +nc -zv 10.0.20.121 1521 # Test port Oracle +sqlplus sys/romfastsoft@10.0.20.121:1521/roa as sysdba + +# Portainer Oracle +http://10.0.20.121:9443 + +# Portainer Principal +http://10.0.20.170:9443 + +# Gitea +http://10.0.20.165:3000 + +# Dokploy +http://10.0.20.167:3000 + +# Flowise AI +http://10.0.20.161:3000 +``` + +**Pentru conexiuni Oracle detaliate (PDB-uri, useri, TNS, export DMP):** +Vezi fișierul `proxmox/oracle-database-lxc108.md` + +--- + ## Troubleshooting ### Probleme Comune SSH @@ -298,15 +417,19 @@ systemctl restart pveproxy 4. **Folosește storage local-zfs** pentru performanță optimă VM-uri/containere 5. **Pentru Windows 11** folosește placa de rețea e1000 în loc de VirtIO pentru compatibilitate 6. **CPU type 'host'** oferă performanțe maxime cu KVM=1 -7. **VM 201 (Windows 11 activ)** rulează pe local-zfs pentru performanță -8. **VM 107 (Windows 7)** este oprit - considerat legacy +7. **VM 201 (Windows 11)** rulează pe local-zfs pentru performanță optimă +8. **LXC 108 (Oracle XE 21c)** - IP: 10.0.20.121 - Acces fără user/parolă prin `pct enter 108` ### Backup și Siguranță -9. **Backup zilnic la 02:00** pentru toate containerele active și VM-ul 201 +9. **Backup zilnic la 02:00** pentru toate containerele active și VM 201 10. **Retention policy:** 1 daily + 1 weekly 11. **Compression zstd** pentru backup-uri eficiente 12. **Testează conexiunea SSH** pe toate nodurile înainte de automatizări ### Containere Active -13. **8 containere LXC** cu diverse servicii (Portainer, Minecraft, Coolify, PBS, Flowise, Gitea, Oracle) -14. **Container 103 (PBS)** - Proxmox Backup Server pentru backup-uri dedicate \ No newline at end of file +13. **6 containere LXC active** - Portainer (170), Dokploy (167), Flowise (161), Gitea (165), Oracle (121) +14. **Container 103 (Dokploy)** - Platform deployment și management Docker +15. **Container 108 (Oracle XE 21c)** - Database principal + - Restart rapid: `ssh root@10.0.20.201 "pct exec 108 -- docker restart oracle-xe"` + - Restart complet LXC: `ssh root@10.0.20.201 "pct restart 108"` + - Portainer: http://10.0.20.121:9443 \ No newline at end of file