1、查看當前所有對象 SQL> select * from tab; 2、建一個和a表結構一樣的空表 SQL> create table b as select * from a where 1=2; SQL> create table b(b1,b2,b3) as select a1,a2,a3 from a where 1=2; 3、察看資料庫的大小,和空間使用方式 SQL> col tablespace format a20SQL> select
http://blog.itpub.net/post/468/3380另外: oracle自訂聚集合函式介面簡介 a. static function ODCIAggregateInitialize(sctx IN OUTstring_agg_type ) return number 自訂聚集合函式初始化設定,從這兒開始一個聚集合函式 b. member function ODCIAggregateIterate(self IN OUT
http://blog.sina.com.cn/s/blog_4a93ccea0100ijd9.htmlToad for Oracle工具的使用出處:轉載 [注意:單擊圖片可以放大顯示]在Oracle應用程式的開發過程中,訪問資料庫物件和編寫SQL程式是一件乏味且耗費時間的工作,對資料庫進行日常管理也是需要很多SQL指令碼才能完成的。Quest Software為此提供了高效的Oracle應用開發工具-Toad(Tools of Oracle Application
SELECT * FROM session_privs這個在sqlplus裡可以查看目前使用者所有許可權,查看是否是dbaselect userenv('isdba') from dual;查看當前schema和user:select sys_context('userenv','current_user') as current_userfrom dual;select sys_context('userenv','current_schema') as
資料字典dict總是屬於oracle使用者sys的。 1、使用者: select username from dba_users; 改口令 alter user spgroup identified by spgtest; 2、資料表空間: select * from dba_data_files; select * from dba_tablespaces;//資料表空間 select tablespace_name,sum(bytes),
資料字典dict總是屬於Oracle使用者sys的。 1、使用者: select username from dba_users; 改口令 alter user spgroup identified by spgtest; 2、資料表空間: select * from dba_data_files; select * from dba_tablespaces;//資料表空間 select tablespace_name,sum(bytes), sum(blocks)
資料字典dict總是屬於Oracle使用者sys的。 1、使用者: select username from dba_users; 改口令 alter user spgroup identified by spgtest; 2、資料表空間: select * from dba_data_files; select * from dba_tablespaces;//資料表空間 select tablespace_name,sum(bytes), sum(
參考文獻:http://chengjunflying.iteye.com/blog/698505在oracle中,如果要對varchar類型的欄位進行order by操作,那麼首先必須得將他們轉化成數字類型,比如int類型,這就需要用到cast關鍵字。例子SELECT procedure_no FROM (SELECT * FROM process_card_procedure where process_card_id=421 order by cast(procedure_no