org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/config/applicationContext.xml]: Invocation of init method failed; nested exception is
要從Oracle匯出部分資料到文字檔中(flatfile),由於資料表很大,使用toad時匯出失敗,居然說記憶體溢出。看來還是用Oracle自己的命令來完成吧。 首先需要準備匯出的目錄,假設為 /opt/tmp,該目錄需要Oracle的帳戶可以讀寫。create or replace directory utlexportpath as '/opt/tmp';然後在sqlplus中即可使用如下方式把檔案匯出:declare outfile
之前居然從來沒見到過此類寫法,諸如 select * from t_spolicy d,V_POLICYEMPLOYEE g where d.policyno = g.policyno(+)查閱相關資料才發現此法就是外聯的另外一種表現形式其等同於select * from t_spolicy d left join V_POLICYEMPLOYEE g on d.policyno = g.policyno,同理 select * from t_spolicy
過程如下:SQL> show user;USER is "SYS"SQL> create user test identified by test;User created.SQL> create table test.t(id int);create table test.t(id int)*ERROR at line 1:ORA-01950: no privileges on tablespace
實現MySQL高可靠性方案有很多方法,其中,利用MySQL內建的的複製功能是最簡單的一種。MySQL內部複製功能是建立在兩個或兩個以上伺服器之間,通過設定它們之間的主-從關係來實現的。其中一個作為主伺服器,其它的作為從伺服器。配置方法如下:第一步:用mysql -V查看主從伺服器版本是否一致。不一致可能導致複製失敗。mysql -Vmysql Ver 14.12 Distrib 5.0.45, for pc-linux-gnu (i686) using readline
show all;顯示rman的預設設定列出資料庫還有那些資料檔案需要做備份:report need backup;1.已廢棄的備份和副本報表(也就是沒有用的備份組,是根據rman的冗餘來顯示的)report obsolete;2.顯示備份組列表list backup;刪除到期的備份組delete backupset n;如果作業系統中的檔案已經刪了,而備份資訊還在,那麼先做crosscheck,然後再delete expired 就可以清除這些不正確的備份資訊crosscheck
Neo4j很早就在說,會推出一個嵌入在Python中的圖資料庫模組,讓Python可以通過圖資料庫的API操作本地檔案以儲存圖結構的資料(類似於很多支援SQLite的類庫)。而今天Neo4j終於在官方部落格上兌現了其承諾,並為自己的多次跳票表示抱歉。First of all, we’re really sorry. We have been saying that Python support for the embedded database is coming in “a few
set echo on -------設定運行命令是是否顯示語句set feedback on -------設定顯示“已選擇XX行”set colsep | -------設定列與列之間的分割符號set pagesize 10 -------設定每一頁的行數set serveroutput on----設定允許顯示輸出類似dbms_outputset heading on
Oracle同行合并分組 使用函數sys_connect_by_path(column,'')的例子^^。 表結構為:create table test(bookid char(3) not null,author varchar2(10) not null); insert into test values('001','jack');insert into test values('001','tom');insert into test