-- 1、在PLSQL下先建立一個專用的使用者-- Create the user create user user1 identified by \"user1\" default tablespace USERS temporary tablespace TEMP profile DEFAULT;-- Grant/Revoke role privileges grant dba to user1;-- Grant/Revoke system privileges grant
--第一種異常declare v_Num number;begin v_Num := 10 / 0; exception when zero_divide then --捕獲特定異常 dbms_output.put_line('除數不能為零'); when others then dbms_output.put_line('出錯了');--捕獲所有的異常end;--其應用:錯誤跟蹤(缺陷跟蹤)declare v_trace varchar2(200);
快速建立使用者匯入資料sqlplus /nologconn /as sysdba;drop user feiyang cascade;create user feiyang identified by feiyang;Grant create session to feiyang;grant resource,connect,dba to feiyang;conn feiyang/feiyang;select table_name from user_tables;imp
Installation Guide 先要安裝oracle database11G 和 weblogic11GFor all mobile clients, use JDK 1.6. For the mobile server, the JDK version required depends onwhat version of the application server you are using.•Oracle WebLogic Server 11g Release 1, as
select ename from( select ename,rownum rn from (select * from emp order by empno) where rownum<10)where rn >=4; 這是由於CBO最佳化模式下,Oracle可以將外層的查詢條件推到內層查詢中,以提高內層查詢的執行效率。對於第一個查詢語句,第二層的查詢條件WHERE ROWNUM <=
connect by 是結構化查詢中用到的,其基本文法是: select ... from tablename start by cond1 connect by cond2 where cond3; 簡單說來是將一個樹狀結構儲存在一張表裡,比如一個表中存在兩個欄位: id,parentid那麼通過表示每一條記錄的parent是誰,就可以形成一個樹狀結構。 用上述文法的查詢可以取得這棵樹的所有記錄。 其中COND1是根結點的限定語句,當然可以放寬限定條件,以取得多個根結點,實際就是多棵樹。
本文轉自:http://www.cnblogs.com/deyga/archive/2009/04/17/1437805.htmlOracle SQL 內建函數大全1.ASCII 返回與指定的字元對應的十進位數;SQL> select ascii('A') A,ascii('a') a,ascii('0') zero,ascii(' ') space from dual;A A ZERO SPACE--------- --------- ---------
1.刪除資料表空間 DROP TABLESPACE TableSpaceName [INCLUDING CONTENTS [AND DATAFILES]] 2.刪除使用者 DROP USER User_Name CASCADE 3.刪除表的注意事項 在刪除一個表中的全部資料時,須使用TRUNCATE TABLE 表名;因為用DROP TABLE,DELETE * FROM
windows 2008上啟用防火牆後Oracle tnsping不通的解決辦法1、解決方案:很簡單,windows2008防火牆將Oracle 1521連接埠給封了,建立並開啟就行了。當然,如果你的listener是其他連接埠,按照下述方法把其他的連接埠開了,也就可以了。在cmd中,輸入:C:/Users/Administrator>netsh firewall set portopening TCP 1521 "ORACLE"2、ORA-12154:TNS:無法解析指定的串連標識符: