Oracle Materialized Views Containing Joins Only
介绍只包含表连接而没有聚合的物化视图。与聚合类似,表连接也是相当消耗资源的操作, 将其结果预先计算并存储于物化视图中,可以提高SQL执行效率。 每一个基表(包括inline view)的Rowid必须出现在物化视图的select部分。这也是该物化视图可以快速刷新的必要条件之一。其他条件包括:From&n...
Oracle物化视图3 - Prebuilt MV
Prebuilt MV alter table
Oracle物化视图2 -- Query Rewrite及参数
MV Staleness Query_Rewrite_Integrity nonvalidated rely referential integrity
Oracle 物化视图1 - 单表聚合及其快速刷新
物化视图 快速刷新 DBMS_MVIEW DBMS_ADVISOR.TUNE_MVIEW explain_rewrite
ORA-04091和Compound Trigger(Oracle 11g)
Oracle Compound Trigger ORA-04091
Oracle Query Result Cache
IntroductionThe server result cache is a memory pool within the shared pool.When a query executes, the database looks in the cache memory to determine whether the result exists in the cache. If the result exists, then the database retrieves the result from memory instead of executing the query....
Oracle Data Integrator和GoldenGate集成
先上架构图:先决条件1. Oracle database 11g已安装,2. Oracle GoldenGate 11g for Linux已安装3. Oracle Data Integrator已安装在windows上环境介绍Oracle Linux 64 bit 6.4 (IP: 192.168.1.109),hosts both database and GoldenGate.Oracle Database: 11.2.0.3 64 bitOracle GoldenGate ...
Oracle取随机数函数
The basic function gets a random number, greater than or equal to 0 and less than 1, with 38 digits to the right of the decimal (38-digit precision).Alternatively, you can get a random Oracle number x, where x is greater than or equal to low and less than high.SELECT DBMS_RANDOM.VALUE,DBMS_RANDOM...
DBMS_Utility学习
Comma_to_table 和 Table_to_Comma,比较有用。以下是例子:DECLARE v_len BINARY_INTEGER; v_tab DBMS_UTILITY.UNCL_ARRAY; v_idx BINARY_INTEGER; v_str VARCHAR2(200); BEGIN DBMS_UTILITY.COMMA_TO_TABLE ( 'a,b,c', --每个元素必须符合Ora...
Oracle Deterministic Function
Specify DETERMINISTIC to indicate that the function returns the same result value whenever it is called with the same values for its arguments.You must specify this keyword if you intend to call the function in the expression of a function-based index or from the query of a materialized view that ...
【总结】去重的SQL
1. Group-by,最简单的办法select owner from all_objects group by owner;2. 分析函数select owner from (select owner, row_number() over (partition by owner order by owner) rnfrom all_objects) where rn=1;
Oracle Sequence Nocache
Oracle Sequence Cache Performance 性能
Oracle Linux 6.4配置NFS
Oracle Linux NFS
利用Data Pump快速创建schema及其权限
快速
Oracle分区表迁移
Oracle Imp Exp data pump
Oracle常见数字函数
Oracle Arithmetic Function
Oracle Reporting 7 - Model Examples
model looping spreadsheet reference table ordered rule
Oracle Reporting 6 - Model
Oracle SQL Model
Oracle Reporting 5 - Windowing
Windowing rows range unbounded preceding following current_row
Oracle Create Table as Select
CTAS employs the direct path load, in other words, it skips loading data into buffer cache. PGA consumptionConsider two scenarios:a) Create table target as select * from source;The result of select statement is not saved in memory, Oracle writes it directly to di...