分析了一下ORA-00600錯誤,發現分別在Oracle 11g和Oracle 10g的文法上有一個細微的變動,希望對大家有協助!Oracle 10g執行的結果$ sqlplus / as sysdba SQL*Plus: Release 10.2.0.1.0 - Production on Thu Nov 1 05:51:59 20
1.分析表與索引(analyze 不會重建索引)analyze table tablename compute statistics 等同於 analyze table tablename compute statistics for table for all indexes for all columnsfor table 的統計資訊存在於視圖:user_tables 、all_tables、dba_tablesfor all indexes 的統計資訊存在於視圖:
login as: rootroot@192.168.88.xx's password:Last unsuccessful login: Tue May 15 22:15:03 BEIST 2012 on ssh from 192.168.88.xxLast login: Thu Aug 23 01:27:54 BEIST 2012 on ssh from 192.168.88.xx*********************************************************
不小心把資料庫密碼忘掉了,這個時候我們只需要在資料庫的設定檔裡面添加skip-grant-tables然後重新啟動服務,再登入資料庫就不要我們輸入密碼了這個時候我成功登入資料,可是不小心又把所有的使用者給刪除了又無法登陸了,這個時候我又改動設定檔可以登入了想再資料庫裡面添加使用者,可是執行了添加使用者的命令後就提示我如下:ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables option so
按年匯總,統計:select sum(mymoney) as totalmoney, count(*) as sheets from mytable group by date_format(col, '%Y');按月匯總,統計:select sum(mymoney) as totalmoney, count(*) as sheets from mytable group by date_format(col, '%Y-%m');按季度匯總,統計:select sum(mymoney) as
Oracle 11gR2安裝過程中遇到的問題主要是:1、在系統參數設定好後,資料庫安裝過程中的條件檢測過程中出現自己設定的與安裝程式檢測的資料完全不同,特別是semmax的值。本來是按照系統檢測的值設定相同,結果卻在後面加了兩個0。這個設定應該不影響安裝。2、資料庫軟體安裝正常。在資料庫配置過程中出現ORA-27102:out of memory 。導致這個錯誤的原因是系統交換分區的大小不夠,需要增加分區大小。採用如下方法可以臨時增加swap分區的大小,使安裝過程正常進行:$ su
抽空在VMware下實驗了在CenOS s5.5下安裝Oracle 11g R2,本以為比較簡單的,卻發現出現不少問題。安裝步驟:1、check 相應的rpm包這個沒check完也不要緊,安裝oracle的時候它會檢查的。按照官方文檔的包CHECK,版本只能高不能低哦The following or later version of packages for Oracle Linux 4 and Red Hat Enterprise Linux 4 should be
最近一周在複習索引相關的東西,除了回顧concept,還在MOS上看到了一篇比較好的文檔。分享給大家。文檔編號:[ID 30405.1]This article is only concerned with B*tree indexes which are currently the most commonly used. The theory of B*tree indexes is beyond the scope of this article; for more information