http://what-when-how.com/Tutorial/topic-16mglm7e/Secrets-of-the-Oracle-Database-520.html
Professionnel - Page 32
-
oradebug
-
Show replication status in PostgreSQL
https://www.niwi.nz/2013/02/16/replication-status-in-postgresql/
select client_addr, state, sent_location, write_location, flush_location, replay_location from pg_stat_replication;
This query can output can be like this:
postgres=# select client_addr, state, sent_location,write_location, flush_location, replay_location, sync_priority from pg_stat_replication;
-
Disable Streaming Replication without restarting either master or slave
I understand the way things work currently, but would it not be more
convenient to let the replication be stopped and started from SQL commands
like:On Master:
select pg_pause_streaming_replication(slave_fqdn);
select pg_resume_streaming_replication(slave_fqdn);On Slave:
select pg_pause_streaming_replication();
select pg_pause_streaming_replication();If Cascaded Streaming Replication is confugured, then
On Slave:
select pg_start_streaming_replication(cascaded_slave_fqdn);
select pg_stop_streaming_replication(cascaded_slave_fqdn);Or an OS executable [ either in the core or a contrib module] like
pg_replication -p primary_fqdn -s slave_fqdn -a pause
pg_replication -p primary_fqdn -s slave_fqdn -a resume
pg_replication -p primary_fqdn -s slave_fqdn -a setup[ the last one would awesome; and i do not think that it is impossible, and
would be loved by one and all ] -
[UNIX] convertir un paquage debian en rpm et vice versa
https://blog.packagecloud.io/eng/2015/10/26/use-alien-to-convert-deb-to-rpm-and-rpm-to-deb/
https://help.ubuntu.com/community/RPM/AlienHowto
-
[script] Backup
-
last access table oracle
select a.obj#,a.table_scans_delta,b.object_name,b.owner,b.object_type from dba_hist_seg_stat a, dba_objects b where a.obj# = b.object_id and b.owner like 'USERNAME%' order by table_scans_total desc
-
Scripts de vérification des produits soumis à licence Oracle
Le script suivant permet de donner des infos sur ce qui a été utilisé comme produits soumis à licence sous Oracle.
options_packs_usage_statistics.sql
-
Déclaration d'activité des formateurs ou organismes de formation
Déclaration en ligne : https://www.service-public.fr/professionnels-entreprises/vosdroits/F19087
-
Erreur EXP-00008, ORA-04063, ORA-06508, EXP-00083 PL/SQL: could not find program unit being called: "WMSYS.LTUTIL"
Alors lorsque je faisais un export classique avec exp, j'avais cette erreur là :
EXP-00008, ORA-04063, ORA-06508, EXP-00083 PL/SQL: could not find program unit being called: "WMSYS.LTUTIL"
Je suis tombé sur cette page :
http://olashowunmi.blogspot.fr/2015/06/exp-00008-ora-04063-ora-06508-exp-00083.html
Qui ne m'a pas aidé.
Par contre en cherchant bien je suis tombé sur ça :
http://surachartopun.com/2009/11/invalid-objects-on-sys-and-ora-04063.html
et cela a résolu, mon pb.
-
Trouver les gros fichiers {UNIX}
Trouver les 10 fichiers les + volumineux :
find . -printf '%s %pn'| sort -nr | head -10
Liste tous les fichiers qui ont une taille supérieure à 100Mo
find . -xdev -type f -size +100M