其它 Object
一、同義詞
Oracle的同義詞(synonyms)從字面上理解就是別名的意思,和試圖的功能類似,就是一種對映關係。
建立- create public synonym table_name for user.table_name;
刪除
- drop public synonym table_name;
二、表的刪除 & 回收站
刪除object至回收站
- drop table table_name;
徹底刪除
- DROP TABLE table_name PURGE;
刪除回收站內的表
- purge table [schema.]table[,[ schema.]table ]...
閃回刪除的表
-
FLASHBACK TABLE[schema.]table[,[ schema.]table ]...
-
TO { TIMESTAMP | SCN } expr
- [ { ENABLE | DISABLE } TRIGGERS ];
例句
-
DROP TABLE emp2;
-
SELECT original_name, operation, droptime FROM recyclebin;
- FLASHBACK TABLE emp2 TO BEFORE DROP;
三、目錄
建立 & 修改directory 語句
- CREATE OR REPLACE DIRECTORY directory_name AS '';
賦許可權給某使用者使用
- GRANT READ ON DIRECTORY directory_name TO user_name;
刪除directory語句
- DROP DIRECTORY directory_name;
四、外部表
語法-
CREATE TABLE <table_name> ( <col_name> <datatype>, … )
-
ORGANIZATION EXTERNAL
-
(TYPE <access_driver_type>
-
DEFAULT DIRECTORY <directory_name>
-
ACCESS PARAMETERS
-
(… ) )
- LOCATION ('') ) REJECT LIMIT [0 | <number> | UNLIMITED];
例句
-
CREATE TABLE oldemp(
-
fname char(25),
-
lname CHAR(25))
-
ORGANIZATION EXTERNAL(
-
TYPE ORACLE_LOADER
-
DEFAULT DIRECTORY emp_dir
-
ACCESS PARAMETERS(
-
RECORDS DELIMITED BY NEWLINE
-
NOBADFILE
-
NOLOGFILE
-
FIELDS TERMINATED BY ','(
-
fname POSITION ( 1:20) CHAR,
-
lname POSITION (22:41) CHAR))
-
LOCATION ('emp.dat'))
-
PARALLEL 5
- REJECT LIMIT 200;
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24851054/viewspace-2146677/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle OCP(26):其它ObjectOracleObject
- 其它事件事件
- 其它知識
- PostgreSQL:其它型別SQL型別
- Uncaught TypeError: Object [object Object] has no method 'xxx'ErrorObject
- CSS3-其它特性CSSS3
- ObjectObject
- 介面返回[object,Object]解決方法Object
- Effective Object C 2.0 『熟悉Object C』Object
- 微信小程式使用其它字型微信小程式
- [C++]類的其它特性C++
- Oracle備份的其它手段Oracle
- rman備份的其它特性
- ES7 Object.keys,Object.values,Object.entriesObject
- Object被其他的Object引用的SQLObjectSQL
- OBJECT_ID和DATA_OBJECT_IDObject
- Object流Object
- object in javascriptObjectJavaScript
- Authorization ObjectObject
- object類Object
- Oracle OCP(31):USER & ROLE & PRIVILEGE 其它Oracle
- 【Mysql】Mysql線上安裝其它引擎MySql
- Oracle其它情況的恢復Oracle
- Request Headers 的其它 fields 值Header
- Kerberos ticket lifetime及其它ROS
- LINUX(十七)Linux其它命令Linux
- inv與其它模組的關系
- Statspack之九-其它重要指令碼指令碼
- Differences between DATA_OBJECT_ID and OBJECT_IDObject
- object_id 及 data_object_id (oracle)ObjectOracle
- Object.seal()與Object.freeze()區別Object
- CSS3 object-fit 和 object-positionCSSS3Object
- object_id and data_object_id in dba_objectsObject
- Iterable object of JavaScriptObjectJavaScript
- JavaScript Object 物件JavaScriptObject物件
- Object.defineProperty()Object
- Object.isSealed()Object
- Object.isFrozen()Object