原创 EXP-00091 Exporting questionable statistics.

--EXP-00091 Exporting questionable statistics. [oracle@ocm1 ~]$ exp userid=scott/tiger tables=t file=/home/oracle/t1.dm

原创 ORA-12719: operation requires database is in RESTRICTED mode

ORA-12719: operation requires database is in RESTRICTED mode 解決過程: SQL> drop database; drop database * ERROR at line

原创 通過添加hint加速insert操作

EODA@PROD1> select count(*) from sys.tt; COUNT(*) ---------- 480000 Elapsed: 00:00:01.15 EODA@PROD1> create ta

原创 系統級別分析數據庫實例負載

--系統級別分析數據庫實例負載 --1.通過system_activity_sql腳本對v$system_wait_class進行取樣,獲得平均活動

原创 使用alter database create datafile恢復丟失數據文件

--使用alter database create datafile恢復丟失數據文件 SYS@PROD3> create table t tablespace t1 as select * from all_objects where

原创 bitand函數

--bitand函數 --語法 BITAND(expr1, expr2) --用法:位與 The BITAND function treats its inputs and its output as vectors of bits;

原创 模擬並消除行遷移(Row Migration)

--什麼是行遷移? A situation in which Oracle Database moves a row from one data b

原创 Oracle 11g通過提高IO吞吐量(修改_db_file_optimizer_read_count)來優化全表掃描

--Oracle 11g通過提高IO吞吐量(修改_db_file_optimizer_read_count)來優化全表掃描 SYS@PROD1> select ksppinm, indx from x$ksppi where ksppi

原创 Oracle 11gR2中SQL*Plus中的新設置exitcommit

--Oracle 11gR2中SQL*Plus中的新設置exitcommit The default setting is ON, which means that work is committed on exit, whether

原创 ORA-16820: fast-start failover observer is no longer observing this database

解決過程: ORA-16820: fast-start failover observer is no longer observing this database DGMGRL> stop observer Done. DGMGRL>

原创 收集系統統計信息(無工作負載/工作負載)

--系統統計信息存儲在字典表aux_stats$中 SYS@PROD1> desc aux_stats$ Name Null? Type ------------------------------------

原创 ORA-16661: the standby database needs to be reinstated

--ORA-16661: the standby database needs to be reinstated 解決過程: DGMGRL> reinstate database prod3 DGMGRL> show configur

原创 ORA-02437 使對已有數據不檢查的主鍵約束生效

--ORA-02437 使對已有數據不檢查的主鍵約束生效 SYS@PROD1> desc t1 Name Null? Type -----------------------------------------

原创 數據庫筆試面試題庫(Oracle、MySQL等)

傳送門:http://blog.itpub.net/26736162/viewspace-2134706/ 點贊 收藏 分享 文章舉報 blockheading 發佈了17

原创 查看SQL語句信息(腳本sqlstat.sql)

--查看SQL語句信息(腳本sqlstat.sql) SYS@PROD1> @sqlstats.sql 0hwwkmuancxmm 15 SYS@PROD1> SET ECHO OFF PROD1 / 2017-03-