標籤:1.列轉換 1:每個字母轉成一行SELECT SUBSTR(A.COLUMN1, LEV, 1) COLUMN1FROM ( SELECT ‘AABDC‘ COLUMN1 FROM DUAL) A,(SELECT LEVEL LEV FROM DUAL CONNECT BY LEVEL<=100) BWHERE LEV <=
標籤:原因是:oracle資料庫更新資料後需要commit,不然會堵塞,就會卡住那麼每次調用executeUpdate()完後,資料庫要自動commit才可以。我的基類加了一下,注意紅色字型部分代碼://增刪改 public int executeUpdate(String sql,Object[] params){ int update = 0; try { pstm = connection.prepareStatement(sql);
標籤:建立使用者drop user lztest4 cascade;create user lztest4 identified by lztest123;alter user lztest4 default tablespace COMMON_CABLE;grant connect ,resource,dba to lztest4; drop user lztest3 cascade;create user lztest3 identified by lztest123;alter
標籤:一、運算子算術運算子:+ - * / 可以在select 語句中使用串連運算子:|| select deptno|| dname from dept; 比較子:> >= = != < <= like between is null in邏輯運算子:not and or 集合運算子: intersect ,union, union all, minus 要求:對應集合的列數和資料類型相同
標籤:分為兩種方法:scn和時間戳記兩種方法恢複。一、通過scn恢複刪除且已提交的資料 1、獲得當前資料庫的scn號 select current_scn from v$database; (切換到sys使用者或system使用者查詢) 查詢到的scn號為:1499223 2、查詢當前scn號之前的scn select * from 表名 as of scn 1499220;
標籤:oracle刪除資料表空間 報錯ora-01116 ora-01110 ora-27041簡單說下原因:當時圖方便沒進資料庫,直接在datafile目錄下刪除了資料表空間對應的資料檔案導致後來資料庫報錯,並且不能刪除資料表空間錯誤如下;ORA-01116:error in opening database ****ORA-01110:data file 54:‘/home3/datafile/arrange/NewArrange.dbf‘ORA-27041:unable to open
標籤: 當某個資料庫使用者在資料庫中插入、更新、刪除一個表的資料,或者增加一個表的主鍵時或者表的索引時,常常會出現ora-00054:resource busy and acquire with nowait specified這樣的錯誤。主要是因為有事務正在執行(或者事務已經被鎖),所有導致執行不成功。 1、用dba許可權的使用者查看資料庫都有哪些鎖select t2.username,t2.sid,t2.serial#,t2.logon_time from v$