memcache顧名思義就是拿一塊記憶體空間來當cahche
透過網路的存取可以讓大家來共用這塊cache
可以大大降低資料庫存取的頻繁,增加系統服務的效率
安裝步驟
cd /usr/ports/databases/memcached
helloworld 發表在 痞客邦 留言(0) 人氣(120)
# touch /sybase/rs/sdeviceXX.rs
# misrs
1> add partition sdeviceXX on '/sybase/rs/sdeviceXX.rs' with size 2000
2> go
helloworld 發表在 痞客邦 留言(0) 人氣(47)
# 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) 人氣(826)
發現有某支程式卡住了,卻不知道停在哪段sql怎麼辦?
快進isql,先抓出這支程式ㄉpid
然後下
1> dbcc traceon(3604)
2> go
1> dbcc sqltext(<spid>)
2> go
1> dbcc traceoff(3604)
2> go
helloworld 發表在 痞客邦 留言(0) 人氣(202)
sybase client 內建的uninstall程式..移的不是很乾淨
如果要重灌其他版本的pcclient會發現他會警告你
然後不給你重新安裝
這個時候..
helloworld 發表在 痞客邦 留言(0) 人氣(496)
如果要把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) 人氣(207)
如果ASE開不起來的話
RUNfile最後加上-T3607
不recover master重新啟動ASE
1. Start ASE with treflag -T3607
2. Issue a checkpoint in the master db
helloworld 發表在 痞客邦 留言(0) 人氣(42)
select spid,db_name(dbid),cmd
from master..sysprocesses
where cmd like 'cmd%'
[where dbid=db_id("資料庫名稱")]
helloworld 發表在 痞客邦 留言(0) 人氣(55)

陽明山光復樓一樓的販賣部
杜老爺曠世奇派建議售價30元
500塊?免!
200塊?免!
100塊?免!
helloworld 發表在 痞客邦 留言(0) 人氣(108)

沒事..就是挺阿海:p
阿海凍蒜!!
helloworld 發表在 痞客邦 留言(0) 人氣(20)