標籤:select department_name,city,count(*)from departments d, employees e, locations lwhere e.department_id=d.department_id and l.location_id=d.location_id and e.salary>1000group by department_name,city having count(*) > 2; select first_name||‘ ‘
標籤:oracle錯誤向某個資料庫使用者中插入、更新、刪除一個表的資料,或是增加一個表的主鍵、索引時,出現下面的錯誤:ORA-00054: resource busy and acquire with NOWAIT specified or timeout expired這是因為有事務進行中或是事務已經被鎖,因此導致不成功 1)用dba許可權的使用者查詢資料庫中有哪些鎖select t2.username,t2.sid,t2.serial#,t2.logon_time from
標籤:oracle10g 表對象統計 表 視圖 預存程序 --統計某個使用者下面的對象個數--包括表,視圖,同義字,函數,預存程序,包,觸發器,索引,約束,序列。SELECT (SELECT COUNT(*) FROM USER_TABLES) AS TABLES,(SELECT COUNT(*) FROM
標籤: 資料庫在匯入資料的過程中,意外關機。重啟機器後,pl/sql-developer不能登入資料庫,報錯ORA-01033:oracle initializationor shutdown in progress。解決步驟如下:運行cmdC:\Users\Dell3800>set oracle_sid=orclC:\Users\Dell3800>sqlplus "/as sysdba"SQL*Plus: Release 12.1.0.2.0 Production on Mon
標籤:使用spring+mybatis+oracle過程中遇到的一個錯誤。最終看到網上分享才解決這個問題,mark一下。主要問題是mybatis的配置有問題。下面我就直接複製了。原文連結:http://hellostory.iteye.com/blog/1416507再次謝謝原作者。thx!經檢查是資料庫連接池配置錯誤(content.xml)!配置SQL Server 2000(mysql同樣)資料庫連接池時,屬性validationQuery預設值為“select
標籤:oracle 截取字元(substr),檢索字元位置(instr) case when then else end語句使用 收藏 常用函數:substr和instr1.SUBSTR(string,start_position,[length]) 求子字串,返回字串解釋:string 元字串 start_position
標籤:Oracle ORA-01033: ORACLE initialization or shutdown in progress 錯誤解決辦法登陸資料庫時提示 “ORA-01033”錯誤在命令視窗以sys方式登陸 即sqlplus AS SYSDBA--注意《sqlnet.ora》檔案中的SQLNET.AUTHENTICATION_SERVICES參數後面的值需為NTS 執行shutdown 後提示資料庫未開啟然後執行startup MOUNT