create or replace type address as object(province varchar(20),city varchar(20));alter TRIGGER SYS.JIS$ROLE_TRIGGER$ compile;create table test(id number primary key,name char(50));資料表空間授權alter user 使用者 quota unlimited on&
Oracle@linux:~> impdp tbs/tbs directory=dmpdir dumpfile=20110810.dmpImport: Release 11.2.0.1.0 - Production on Sat Dec 31 11:36:18 2011Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.Connected to: Oracle Database
一、Oracle 資料庫中,我們通常在不同資料庫的表間記錄進行複製或遷移時會用以下幾種方法:1、A 表的記錄匯出為一條條分號隔開的 insert 語句,然後執行插入到 B 表中。2、建立資料庫間的 dblink,然後用 create table B as select * from A@dblink where ...,或 insert into B select * from A@dblink where …。3、exp A 表,再 imp 到 B 表,exp 時可加查詢條件。4、程式實現
1. IN 子句中的LIST個數最長為1000,超過該數目將報錯,這裡可轉用一個暫存資料表來解決;2. * CREATE TRIGGER語句文本的字元長度不能超過32KB(觸發器中不能使用LONG, LONG RAW 類型;觸發器內可以參照LOB 類型列的列值,但不能通過 :NEW 修改LOB列中的資料;)順便說一下,觸發器中的PARENT關鍵字,只在巢狀表格觸發器中有效,3. *
如下的SQL語句查詢不到任何記錄,儘管資料庫中有合格記錄。這是Oracle三層查詢的bug。select cb.* from mw_app.t_cb cb where cb.obj_id in (select cba.channel_id from mw_app.t_current_business_alarm cba where cba.business_id in (select b.business_id from mw_app.t_rt_business b where b.alarm_
幾個視圖的功能,來自官方文檔v$sqltextV$SQLTEXT displays the text of SQL statements belonging to shared SQL cursors in the SGA.V$SESSIONV$SESSION displays session information for each current session.v$wait_chainsV$WAIT_CHAINS displays information about blocked
Oracle 11g Release 1 :http://www.oracle.com/technology/software/products/database/index.html RHEL5下的ASMLib2.0:http://www.oracle.com/technology/global/cn/tech/linux/asmlib/index.html開啟上面的頁面,會發現一個Red Hat Enterprise Linux 4