太和殿 Blog大嘴照過來‧部落客美食大串連
超好吃的太和殿!!好吃好吃!!
部落客在個人的網誌記錄太和殿麻辣鍋的感動回憶或寫下您最難忘的滋味。
請註明在哪家分店用餐,您的食記必需圖文並茂哦。內容需超過200字。
活動期間只要發表太和殿的食記,並在部落格上貼上『太和殿BLOG大嘴照過來』串連貼紙
就有機會獲得熟客卷價值180元乙張。
活動時間:即日起~2009年9月30日
得獎公告:2009年10月15日公佈於『太和殿官方網站』

helloworld 發表在 痞客邦 留言(0) 人氣()

sysstat -x 1

helloworld 發表在 痞客邦 留言(0) 人氣()

用mrtg在畫流量100M以上設備的時候
記得要加 cfgmaker --snmp-option=:::::2 public@xx.xx.xx.xx

helloworld 發表在 痞客邦 留言(0) 人氣()

memcache 配合資料庫的實作
<?php
$memcache = new Memcache;
$memcache->connect('memcached_server', 11211) or die ("Could not connect");
$name = $memcache->get('$A1234567890');

helloworld 發表在 痞客邦 留言(0) 人氣()

memcache顧名思義就是拿一塊記憶體空間來當cahche
透過網路的存取可以讓大家來共用這塊cache
可以大大降低資料庫存取的頻繁,增加系統服務的效率 
安裝步驟
cd /usr/ports/databases/memcached

helloworld 發表在 痞客邦 留言(0) 人氣()

# touch /sybase/rs/sdeviceXX.rs
                                                                               
# misrs
1> add partition sdeviceXX on '/sybase/rs/sdeviceXX.rs' with size 2000
2> go

helloworld 發表在 痞客邦 留言(0) 人氣()

# cd charsets
# charset -Usa -Ppassword -Sserver_name binary.srt big5
# isql
1> use master
2> go
1> sp_configure "default sortorder id",50,"big5"
2> go
1> shutdown
2> go
                                                                               
重新啟動sybase server兩次(第一次一定會失敗),即可
延伸閱讀:新手上路 Sybase Adaptive Server Enterprise(範例光碟)

helloworld 發表在 痞客邦 留言(0) 人氣()

發現有某支程式卡住了,卻不知道停在哪段sql怎麼辦?
快進isql,先抓出這支程式ㄉpid
然後下
1> dbcc traceon(3604)
2> go
1> dbcc sqltext(<spid>)
2> go
1> dbcc traceoff(3604)
2> go
 

helloworld 發表在 痞客邦 留言(0) 人氣()

sybase client 內建的uninstall程式..移的不是很乾淨
如果要重灌其他版本的pcclient會發現他會警告你
然後不給你重新安裝
這個時候..

helloworld 發表在 痞客邦 留言(0) 人氣()

如果要把dump出來的資料庫load回
要是不知道之前的資料庫建置的時候device的分布
往往會在新的資料庫中把data和log混用
所以...
把device的配置select出來先
select db_name(dbid) ,segmap,lstart,size/512
from master.dbo.sysusages
order by dbid,lstart
or
select db_name(dbid) 'db_name',segmap,size*(@@maxpagesize/1024)/1024 as 'size' from sysusages
再依序建device和資料庫for load

helloworld 發表在 痞客邦 留言(0) 人氣()

如果ASE開不起來的話
RUNfile最後加上-T3607
不recover master重新啟動ASE
1. Start ASE with treflag -T3607
2. Issue a checkpoint in the master db

helloworld 發表在 痞客邦 留言(0) 人氣()

select spid,db_name(dbid),cmd
from master..sysprocesses
where cmd like 'cmd%'
[where dbid=db_id("資料庫名稱")]

helloworld 發表在 痞客邦 留言(0) 人氣()

Blog Stats
⚠️

成人內容提醒

本部落格內容僅限年滿十八歲者瀏覽。
若您未滿十八歲,請立即離開。

已滿十八歲者,亦請勿將內容提供給未成年人士。