http://www.commentcamarche.net/faq/9324-commandes-ip-relatives-aux-reseaux-sous-windows
template linux
Oracle redo logs
Checkpoint not complete: Comment limiter les alertes liées à la journalisation
select THREAD#, SEQUENCE#, FIRST_CHANGE#, to_char(FIRST_TIME, 'DD-MON-YYYY HH24:MI:SS') first_time, SWITCH_CHANGE# from v$loghist;
Agrandir un fs lvm ext3 à chaud (rh5)
df -h
/dev/mapper/VGgrid-LVsoft
Noter le nom du VG et du LV
Vérifier l’expace disponible dans le volum group
vgdisplay VGgrid
Vérifier : Free PE /Size
Agrandir le logical volum :
lvextend -L+500M /dev/VGgrid/LVsoft
Agrandir le FS :
resize2fs /dev/VGgrid/LVsoft
Robocopy
Accéder à un partage réseau en utilisant un alias DNS ou un nom différent de la machine
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\lanmanserver\parameters]
« DisableStrictNameChecking »=dword:00000001
tmux
http://tmux.sourceforge.net/
http://www.linuxpedia.fr/doku.php/commande/tmux
Diverses commandes pour récupérer une session :
Liste les sessions :
tmux ls
Attacher une session détachée :
tmux attach
Attacher une session détachée spécifique:
tmux attach -t session
Détacher et attacher une session spécifique.
tmux attach -d -t session
Mon .tmux.conf
# alt+directions navigates through panes bind-key -n C-left select-pane -L bind-key -n C-right select-pane -R bind-key -n C-up select-pane -U bind-key -n C-down select-pane -D
Lecture Linux
http://www.oracle.com/technetwork/articles/linux/part1-091089.html
http://www.oracle.com/technetwork/articles/linux/part2-085179.html
http://www.oracle.com/technetwork/articles/linux/part3-090589.html
http://www.oracle.com/technetwork/articles/linux/part4-097181.html
http://www.oracle.com/technetwork/articles/linux/part5-096399.html
Liste session
set pages 1000
set lines 1000
select USERNAME, OSUSER, MACHINE, PROGRAM from v$session;
ou
select distinct username from v$session;
select USERNAME, OSUSER, MACHINE, PROGRAM from v$session where username in ('xxx', 'yyy');
En rac oracle :
select USERNAME, OSUSER, MACHINE, PROGRAM from gv$session;
HugePages
http://docs.oracle.com/cd/E37670_01/E37355/html/ol_config_hugepages.html
#!/bin/bash # # hugepages_settings.sh # # Linux bash script to compute values for the # recommended HugePages/HugeTLB configuration # # Note: This script does calculation for all shared memory # segments available when the script is run, no matter it # is an Oracle RDBMS shared memory segment or not. # Check for the kernel version KERN=`uname -r | awk -F. '{ printf("%d.%dn",$1,$2); }'` # Find out the HugePage size HPG_SZ=`grep Hugepagesize /proc/meminfo | awk {'print $2'}` # Start from 1 pages to be on the safe side and guarantee 1 free HugePage NUM_PG=1 # Cumulative number of pages required to handle the running shared memory segments for SEG_BYTES in `ipcs -m | awk {'print $5'} | grep "[0-9][0-9]*"` do MIN_PG=`echo "$SEG_BYTES/($HPG_SZ*1024)" | bc -q` if [ $MIN_PG -gt 0 ]; then NUM_PG=`echo "$NUM_PG+$MIN_PG+1" | bc -q` fi done # Finish with results case $KERN in '2.4') HUGETLB_POOL=`echo "$NUM_PG*$HPG_SZ/1024" | bc -q`; echo "Recommended setting: vm.hugetlb_pool = $HUGETLB_POOL" ;; '2.6') echo "Recommended setting: vm.nr_hugepages = $NUM_PG" ;; *) echo "Unrecognized kernel version $KERN. Exiting." ;; esac # End