2015年8月14日 星期五

oracle 8i rman

rman target / nocatalog;
change Archivelog All Crosscheck;


In Oracle 10g you can run the following command to crosscheck and expire any expired archive logs:
RMAN> crosscheck archivelog all;
RMAN> delete expired archivelog all;

However in Oracle 8 and 9 you need to do the following

Example for Oracle 8 use:
RMAN> Change Archivelog All Validate;

Example for Oracle 8i use:
RMAN> change Archivelog All Crosscheck;

Example for Oracle 9i:
RMAN> crosscheck archivelog all;

2015年8月4日 星期二

dns primary /secondary 更新方式


在 pimary

nsupdate
server 172.22.253.1
update add {$FQDN} 38400 in a {$IP}
send
update delete  {$FQDN}
send

rndc freeze {$dn  ***.***.tw }
rndc unfreeze {$dn  ***.***.tw }


rndc querylog
dnstop eth0

rndc status


在secondary

rndc reload {$dn  ***.***.tw }

2015年6月26日 星期五

dns and bind


SOA 中五個數字的定義
http://www.zytrax.com/books/dns/ch8/soa.html


2015年6月25日 星期四

NTP 種種

在 windows xp 下開 ntp Service 的方式

http://www.timetools.co.uk/2013/07/23/configuring-a-windows-time-server/
http://www.ichiayi.com/wiki/tech/winxp_ntpd


1. 開始>執行,輸入”regedit”
2. 找到 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters]
3. 修改或新增一個DWORD,名為”LocalNTP”,值為”1”(0 = disabled, 1 = enabled)
4. XP 的防火牆開啟 UDP 123 port

ntpdate -d 可以看查詢的詳細內容



linux mail 加附檔

用 mutt

mutt -e 'my_hdr from:bbb<bbb@bbb.com>' -s "標題" -a 附檔  收件人  < 信件內容