第一章:日誌管理 1.forcing log switches sql> alter system switch logfile; 2.forcing checkpoints sql> alter system checkpoint; 3.adding online redo log groups sql> alter database add logfile [group 4] sql> ('/disk3/log4a.rdo','/disk4/log4b.rdo')
時間在資料庫儲存的方式有很多種,但主要以date為主,下面以oracle為例 一般在資料庫語句中直接寫某個時間條件例如:c_datetime<= ‘2014-08-06’或者between time1 and time2是會出錯 比較經典的錯誤為ORA-01861: literal does not match format string 即文字與格式字串不匹配 此時需要多字串的時間進行轉換: to_date('time1' , 'yyyy-mm-dd hh24:mi:
有時候連得上資料庫,有時候又連不上. 可能是資料庫上當前的串連數目已經超過了它能夠處理的最大值. select count(*) from v$process --當前的串連數select value from v$parameter where name = 'processes' --資料庫允許的最大串連數修改最大串連數:alter system set processes = 300 scope = spfile;重啟資料庫:shutdown immediate;startup;-
在使用Oracle進行分頁查詢的時候,一般情況下我們都會攜帶很多參數。但是今天發現一個很奇怪的東西,當排序欄位不是主鍵,且多條資料中該排序欄位的值均相同的情況下,會出現分頁查詢的排序次序和不分頁查詢的排序次序不一樣的情況。下面直接用SQL來說明一下: 1、原始的查詢SQL select ty.countryname,ty.s_adddate from t_d_Country ty order by ty.s_adddate
可能是資料庫上當前的串連數目已經超過了它能夠處理的最大值. select count(*) from v$process --當前的串連數 select value from v$parameter where name = 'processes' --資料庫允許的最大串連數 修改最大串連數: alter system set processes = 300 scope =
oracle登入錯誤(ORA-01033:ORACLE initialization or shutdown in progress 上面說到了建立表分區的例子,所以建立資料表空間的時候建立了好幾個資料表空間物理檔案,之後感覺建立的有誤,想刪掉它們,可是刪不掉(因為資料庫進程啟動著),所以把資料庫服務給關了,直接Shift+Del把檔案給刪掉了。 問題出來了:我再次啟動oracle相關服務後,登入不了了。 出現了ORA-01033:ORACLE initialization or