create table t8(grade number(8));insert into t8 values(100);insert into t8 values(45);insert into t8 values(65);insert into t8 values(85);insert into t8 values(90);insert into t8 values(60);insert into t8 values(13);commit;select
SQL> select dbms_metadata.get_ddl('PROCEDURE','PRO2','SCOTT') text from dual;TEXT---------------------------------------- CREATE OR REPLACE PROCEDURE "SCOTT"."PRO2"isbegindbms_output.put_line('wangpeng up');end;SQL> select
extent_management_clause The extent_management_clause lets you specify how the extents of the tablespace will be managed.Note:After you have specified extent management with this clause, you can change extent management only by migrating the
前陣子看到一篇關於DELETE操作的具體的流程,今天無意間又看到一個UPDATE的操作流程,挺有趣的,轉過來學習學習!================================================================================1,使用者提交一個update語句2,server process檢查記憶體緩衝 i 如果沒有有效記憶體空間,啟動DBWR,將緩衝中未寫入磁碟的髒資料區塊寫入 ii
有些東西確實是需要在不斷使用的過程當中才能記得更牢,就說DATA GUARD吧,我查CONCEPTS查了好幾次了,可每次隔一段時間我在網上看到DATA GUARD相關的內容,自己腦子裡對它的概念已經變得模糊了,還是實踐的太少。今天索性把它寫到部落格裡面,免得以後還要去翻文檔,也方便大家查閱。 Overview of Oracle Data GuardOracle Data Guard lets you maintain uptime automatically and
About parent vs child latches. There is no fundamental low level difference between parent and child latches, they are all small regions of memory modified with atomic test-and-set style opcodes. You see parent (and solitary) latches from x$
The processes in an Oracle system can be categorized into two major groups:■ User processes run the application or Oracle tool code.■ Oracle processes run the Oracle database server code. They include server processes and background
ROLLUP,是GROUP BY子句的一種擴充,可以為每個分組返回小計記錄以及為所有分組返回總計記錄。CUBE,也是GROUP BY子句的一種擴充,可以返回每一個列組合的小計記錄,同時在末尾加上總計記錄。 在文章的最後附上了相關表和記錄建立的指令碼。 1、向ROLLUP傳遞一列SQL> select division_id,sum(salary) 2 from employees2 3 group by rollup(division_id) 4 order by
今天在逛論壇的時候看到shiyiwan同學寫了一個很簡單的語句,可是order by後面的形式卻比較新穎(對於我來說哦),以前從來沒看過這種用法,就想記下來,正好總結一下ORDER BY的知識。 1、ORDER BY 中關於NULL的處理預設處理,Oracle在Order by 時認為null是最大值,所以如果是ASC升序則排在最後,DESC降序則排在最前。當然,你也可以使用nulls first 或者nulls last 文法來控制NULL的位置。Nulls first和nulls
手動刪除ORACLE 10G EM使用emca可以手動設定em!配置em的過程中有一個環節要特別主要:不論使用dbca還是使用emca -deconfig dbcontrol db -repos drop在刪除資料庫時都有可能刪除不乾淨,這樣在再次建立資料庫時都會出現錯誤(顯示的log中有詳細的記錄),因此在建立資料庫時最好使用下面命令手動刪除一次:DROP public synonym SETEMVIEWUSERCONTEXT;DROP PUBLIC SYNONYM