1 查看系統支援的儲存引擎show engines;2 查看錶使用的儲存引擎兩種方法:a、show table status from db_name where name='table_name';b、show create table table_name;如果顯示的格式不好看,可以用\g代替行尾分號有人說用第二種方法不準確,我試了下,關閉掉原先預設的Innodb引擎後根本無法執行show create table
平時需要給一些Oracle使用者賦予動態效能檢視的查詢許可權,今天碰到的問題如下:SQL> conn / as sysdbaConnected.SQL> grant select on v$session to hr;grant select on v$session to hr *ERROR at line 1:ORA-02030: can only select
今天一個朋友遇到的問題,警示日誌中出現如下資訊:ORA-1591:lockheldbyin-doubtdistributedtransaction1.92.66874查詢dba_2pc的表,發現沒有分散式交易資訊:selectlocal_tran_id,statefromdba_2pc_pending where local_tran_id='1.92.66874';no rowsselected但是去查實際的rollback
客戶今天重新整理物化視圖出現ORA-04062\ORA-04068錯誤,同事處理了這個問題,下面記錄下過程:OS:aixDB: 9.2.0.8由於該物化視圖的基表所在資料庫先前進行了重建資料字典的操作。在遠端資料庫重新整理物化視圖的時候報ORA-04062/ORA-04068的錯誤,可以通過設定alter session set
本篇文章來簡單看下如何使用sql profile來綁定正確的執行計畫,10gR2出現這個功能還是蠻實用的,當然11g可以使用baseline,當然我覺得這兩種都挺好。我們可能經常會遇到一些大表比如上T的,走錯執行計畫,比如全表掃描,那系統基本處於Hang的狀態,那麼這時候收集統計資訊可能會很慢,即使你採樣的比例設定的很小。所以使用profile和baseline是個不錯的選擇。一,建立測試環境SQL> create table test (n number ); Table
故障現象Oracle Database 11g 資料庫普通使用者登入時提示 ORA-28002: the password will expire within 7 days[11:01:00oracle@dvd db_1]$sqlplus wang/oracleSQL*Plus: Release 11.2.0.1.0 Production on Fri Nov 16 11:01:23 2012Copyright (c) 1982, 2009, Oracle. All rights
一:Oracle官方給出的描述 Oracle Database assigns each datafile two associated file numbers, an absolute filenumber and a relative file number, that are used to uniquely identify it Absolute:Uniquely identifies a datafile in the database. This
一 什麼是Trial Recovery 官方解釋:A trial recovery applies redo in a way similar to normal media recovery, but it never writes its changes to disk and it always rolls back its changes. Trial recovery occurs only in memory. trial
問題描述:誤刪除Oracle資料庫的dbf檔案,在啟動和關閉資料庫是會提示錯誤。startup啟動資料庫時提示:ORA-01157:無法標識/鎖定資料檔案ORA-01110:資料檔案:‘....../X1000_1.dbf' 未找到解決方案:1、sql>alter system set "_ALLOW_RESETLOGS_CORRUPTION"=true scope=spfile;System altered.2、sql>shutdown immediateORA-011
1、建立目錄(create any directory):SQL> create user Oracle identified by oracle;使用者已建立。SQL> grant dba to oracle;授權成功。SQL> grant create any directory to oracle;授權成功。SQL> conn oracle/oracle已串連。2、建立外部表格:SQL> select * from dba_directories;OWNER