-
-
Anonymization & Data Masking for PostgreSQL
Anonymisation des données dans postgres avec l'extension anon :
PostgreSQL Anonymizer (postgresql-anonymizer.readthedocs.io)
Export de la base :
Anonymous Dumps - PostgreSQL Anonymizer (postgresql-anonymizer.readthedocs.io)
-
L'extension oracle_fdw
#se connecter au serveur target
psql -U <muyser>
CREATE EXTENSION oracle_fdw;
dew
CREATE SERVER orasrv FOREIGN DATA WRAPPER oracle_fdw (dbserver '<servername>:<port>/<SID>');
des+
GRANT USAGE ON FOREIGN SERVER orasrv TO <muyser>;
CREATE USER MAPPING FOR <muyser> SERVER orasrv OPTIONS ( USER '<oracle_user>', PASSWORD 'xxxx');
deu+
CREATE FOREIGN TABLE ext_<ORATBL> ( id int OPTIONS (key 'true'), name varchar(64), t_data timestamp) SERVER orasrv OPTIONS (SCHEMA '<ORAUSER>' , TABLE '<ORATBL>');
tuto : https://www.postgresql.fastware.com/postgresql-insider-fdw-ora-basPré requis :
- avoir une VM avec postgresql d'installé sur le meme VLAN qu'une base oracle avec Oracle instantclient-basic, instantclient-devel d'installé
- Ensure that pg_config is in your path, and ORACLE_HOME as well as LD_LIBRARY_PATH are configured
- avoir accès au compte postgres dans la bdd
- avoir accès à une base oracle en sysdba
- The <oracle_user> will obviously need CREATE SESSION privilege and the right to select from the table or view in question.Bon à savoir : If a NUMBER is converted to a boolean, 0 means false, everything else true.
-
Calculate the value for memory postgresql parameters
Postgresql parameter : PostgreSQL Documentation: shared_buffers parameter (postgresqlco.nf)
(aide)tuner les paramètres postgresql :
https://pgtune.leopard.in.ua/
https://www.enterprisedb.com/postgres-tutorials/how-tune-postgresql-guc-parameters
https://wiki.postgresql.org/wiki/Tuning_Your_PostgreSQL_Server
postgresqltuner.pl -
Ora2PG now supports oracle_fdw to increase the data migration speed
-
Désactiver le mode visual sur VI
J'ai remarqué un truc bien chiant sur les nouvelles VM linux : le clic droit de la souris ne peut plus coller...!
pour y remédier :
echo "set compatible" > ~/.vimrc
echo "set mouse-=a" >> ~/.vimrc