Recent Comments

This is default featured slide 1 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

2013年12月25日 星期三

unknown picture file extension (.png)

fcImager1->Picture->LoadFromFile(progPath+"bibibi.png"); 當動態找入png圖檔時出現『unknown picture file extension (.png)』 在該cpp檔案前加入 #pragma link "pngimage" 建議先clean project後再重編一次。 若要找入jpg圖檔include jpeg.hpp #include...

2013年12月24日 星期二

ORA-00059: maximum number of DB_FILES exceeded

alter system set db_files=300 scope=spfile; shutdown immediate startup SQL> show parameter db_files NAME     TYPE VALUE ------------------------------------ ----------- ------------------------------ db_files     integer 200 SQL> alter system set db_files=300 scope=spfile; System altered. SQL> shutdown immediate Database closed. Database dismounted. ORACLE instance shut down. SQL> startup ORACLE instance started. Total System Global Area  570425344 bytes Fixed Size    2097888 bytes Variable...

2013年12月20日 星期五

PostgreSQL 安裝 pldebugger USE_PGSX

PostgreSQL 安裝 pldebugger USE_PGSX 使用 USE_PGSX=1 make,在pldebugger編好後就會直接把編好的plugin_debugger.so和pldbgapi--1.0.sql放到/usr/pgsql-9.3相對應的位置。 yum install git readline-devel zlib-devel openssl-devel cd /opt wget http://ftp.postgresql.org/pub/source/v9.3.2/postgresql-9.3.2.tar. tar xvzf postgresql-9.3.2.tar.gz cd /opt/postgresql-9.3.2 USE_PGXS=1 ./configure USE_PGXS=1 make cd /opt/postgresql-9.3.2/contrib/ git clone git://git.postgresql.org/git/pldebugger.git make  cd /opt/postgresql-9.3.2/contrib/pldebugger USE_PGXS=1...

PL/SQL 和 PL/pgSQL 旅行時間TRIGGER

以下TRIGGER內容主要是當區段旅行時間比對成功後,在INSERT AVI_SECTION_TRAVEL資料表後會執行下面的TRIGGER,將新的旅行時間更新到XML_AVI_VALUE表中,因為資料的時間需要是每五分鐘的顯示,如5分、10分,N_MIN_FIND就是找出現在旅行時間是在那個五分鐘區間中,如旅行時間是20131221 12:12:30,則 N_MIN_FIND會是20131221 12:15:00 以下是ORACLE和POSTGRESQL的寫法,主要差異在N_MIN_MOD和N_MIN_FIND兩個變數 ORACLE ===================================================================== DECLARE C_MIN_LOG_RANGE CONSTANT INTEGER := 5; --統計分鐘數   N_MIN_MOD INTEGER;       --取餘數   N_MIN_ADD INTEGER;       --以旅行時間要加的分鐘數 (統計分鐘數 - N_MIN_MOD)   N_MIN_FIND...

PostgreSQL 安裝 pldebugger

yum install git readline-devel zlib-devel cd /opt wget http://ftp.postgresql.org/pub/source/v9.3.2/postgresql-9.3.2.tar. tar xvzf postgresql-9.3.2.tar.gz cd /opt/postgresql-9.3.2/contrib/ git clone git://git.postgresql.org/git/pldebugger.git cd /opt/postgresql-9.3.2 ./configure make cd /opt/postgresql-9.3.2/contrib/pldebugger make make install /bin/mkdir -p '/usr/local/pgsql/lib' /bin/mkdir -p '/usr/local/pgsql/share/extension' /bin/mkdir -p '/usr/local/pgsql/share/extension' /bin/mkdir -p '/usr/local/pgsql/share/doc//extension' /usr/bin/install...