原创 11g的interval partition 如何按天分區

轉自:http://www.oracle-devdba.com/?p=41 按月分區: CREATE TABLE SALES_PART (TIME_ID NUMBER, REGION_ID NUMBER, ORDER_ID NUMBER,

原创 DBA手記:System State轉儲分析之問題定位

作者:eygle |English Version 【轉載時請以超鏈接形式標明文章出處和作者信息及本聲明】 鏈接:http://www.eygle.com/archives/2011/05/dbasystem_state_file.htm

原创 批處理腳本的並行執行

轉自:http://blog.chinaunix.net/uid-12194842-id-2954949.html 舉個簡單的例子: pin.bat內容如下   @echo off color 0a for /l %%f in (11,1

原创 _serial_direct_read

轉自:http://os2ora.com/tag/_serial_direct_read/ 11g新特性: OLTP中的Adaptive Direct Read算法 direct read是直接把數據塊讀到PGA的一種操作,在並行查詢中這

原创 greenplum6查找表的relfilenode

testdb=# select oid,pg_relation_filenode(oid),relname from pg_class where relname like 'pg_type%';  oid  | pg_relation_

原创 systemstate dump 介紹

轉自:https://blogs.oracle.com/Database4CN/entry/systemstate_dump_%E4%BB%8B%E7%BB%8D By JaneZhang(張建英) on 十二月 13, 2012    

原创 dbms_metadata用法

轉自:http://blog.chinaunix.net/uid-26315942-id-2984892.html dbms_metadata包中的get_ddl函數 1.得到一個表或索引的ddl語句 SELECT DBMS_METADA

原创 【轉載】PostgreSQL: 如何刪除單表重複數據?

             今天在導入一張表數據時遇到重複數據問題,以前在維護 Oracle 時也遇到過, Oracle 庫去重的方法很多,常用的是根據 rowid 進行去重,那麼 PostgreSQL 庫如何去除單表重複數據 呢,可以通過

原创 Oracle Library Cache Lock 解決思路

轉自:http://blog.csdn.net/tianlesoftware/article/details/7956996 一.  Library Cache Lock        Library cacheHandle 裏保存了lo

原创 Oracle enqueue wait tips

轉自:http://www.dba-oracle.com/t_enqueue_wait_types_.htm There are many types of Oracle enqueues, here is a sample of the

原创 Sqlldr性能參數

轉自:http://www.cnblogs.com/hmmcsdd/archive/2007/12/05/643458.html 最有效地使用 SQL*Loader 直接路徑裝載   作者:Richard Phillips,技術組顧問;J

原创 impdp

轉自:http://blog.chinaunix.net/uid-77311-id-3262038.html 1.schemas 導入用戶hxl,同時創建用戶hxl,默認表空間是導出前hxl所在的表空間,同時賦予用戶connect角色 i

原创 datafile block

轉自:http://www.sosdb.com/article/datafile_block.htm datafile block block size :8192   Offset 0 1 2 3 4 5 6 7 8 9 a b c d

原创 _small_table_threshold

轉自:http://www.iteye.com/topic/464795從Oracle 7.3.4開始引進該參數以來,至目前的Oracle 11g還在使用,首先來看一下某生產系統該參數的情況:  Sql代碼   SQL> select *

原创 psql執行的時候不輸入密碼的設定

轉自:http://blog.csdn.net/v_fei/archive/2007/11/19/1893562.aspx 客戶一下發過來了很多的*.sql文件,用於創建數據庫表。如果一個一個的運行,肯定會浪費時間。這樣我做了批處理文件(