Skip to content

Commit

Permalink
Résolution du problème de connexion à la base FMC (balises, opérateur…
Browse files Browse the repository at this point in the history
…s satellite...) (#3862)

## Linked issues

- Resolve #3846

----
  • Loading branch information
louptheron authored Nov 15, 2024
2 parents 2988b2c + 9384f6a commit 68d1446
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion datascience/.env.template
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
# Database secrets
ORACLE_HOST=
ORACLE_PORT=
ORACLE_CLIENT=oracle+cx_oracle

ORACLE_FMC_HOST=
ORACLE_FMC_SID=
ORACLE_FMC_USER=
ORACLE_FMC_PASSWORD=

ORACLE_OCAN_HOST=
ORACLE_OCAN_SID=
ORACLE_OCAN_USER=
ORACLE_OCAN_PASSWORD=
Expand Down
3 changes: 2 additions & 1 deletion datascience/.env.test
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
# Database secrets
ORACLE_HOST=1.2.3.4
ORACLE_PORT=999
ORACLE_CLIENT=oracle+cx_oracle

ORACLE_FMC_HOST=1.2.3.4
ORACLE_FMC_SID=fmc_db
ORACLE_FMC_USER=me
ORACLE_FMC_PASSWORD=pwd

ORACLE_OCAN_HOST=5.6.7.8
ORACLE_OCAN_SID=ocan_db
ORACLE_OCAN_USER=someone
ORACLE_OCAN_PASSWORD=whoknows
Expand Down
4 changes: 2 additions & 2 deletions datascience/src/db_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
db_env = {
"ocan": {
"client": "ORACLE_CLIENT",
"host": "ORACLE_HOST",
"host": "ORACLE_OCAN_HOST",
"port": "ORACLE_PORT",
"sid": "ORACLE_OCAN_SID",
"usr": "ORACLE_OCAN_USER",
"pwd": "ORACLE_OCAN_PASSWORD",
},
"fmc": {
"client": "ORACLE_CLIENT",
"host": "ORACLE_HOST",
"host": "ORACLE_FMC_HOST",
"port": "ORACLE_PORT",
"sid": "ORACLE_FMC_SID",
"usr": "ORACLE_FMC_USER",
Expand Down

0 comments on commit 68d1446

Please sign in to comment.