顯示具有 資料庫相關 標籤的文章。 顯示所有文章
顯示具有 資料庫相關 標籤的文章。 顯示所有文章

2019年7月16日 星期二

[指令] Redis for Windows 簡易指令及配置

將 redis 安裝成 window service
redis-server --service-install redis.windows.conf

卸載服務
redis-server --service-uninstall { --service-name _name }

手動開啟redis(不設定為服務)
redis-server redis.windows.conf

啟用服務
redis-server --service-start

停止服務
redis-server --service-stop { --service-name _name }


2015年6月3日 星期三

[Tools]SchemaSpy 教學

[Tools]SchemaSpy 教學
SchemaSpy 是一套將 DB Schema 圖形化的工具,通常是用做逆向工程使用。
官方網頁
目前的版本出到 5.0.0
不過在用上因為是 command line 的形式,所以有點難上手,但是有熱心的網友提供圖形化(GUI)的操作介面,將一些複雜的步驟簡化了。
SchemaSpyGUI

2015年4月17日 星期五

2014年1月10日 星期五

Oracle ORA-01795 解決方式

發生條件:
in語法,裡面超過 1000 個要查詢內容
例如
Select * from tablename where col in (‘col1’,’col2’ ……..)

要避開這個問題發生,可以考慮使用:

(1).Union語法:
select *  from student
 where id in ('1147', '1148', '1149', '1151', '1152', '1154', ...)
union
select *  from student
 where id in ('1157', '1158', '1159', '1161', '1162', '1164', ...)

(2).創建一個臨時Temp,將這些查詢資料,放進來這個臨時Temp:

select * from student where id in (select id from tmp_XX);

(3)將in 的語法拆開成數段
Select * from tablename where col in (‘col1’,’col2’ …….., ‘col1000’) or col in (‘col1001’, …………)

2013年7月25日 星期四

Aqua Data Studio 中文亂碼 及 記憶體調整

中文亂碼
     檔案>選項>一般>格線結果字集> 修改為"新細明體"


預設 JVM 記憶體調整
     修改檔案 C:\Program Files\Aqua Data Studio 7.0 - 32bit\datastudio.ini
     尋常字串: vmarg.2=-Xmx256M
     修改紅色部份 EX: vmarg.2=-Xmx512M