|
本帖最后由 botang 于 2016-1-21 09:52 编辑
parfile:
- exclude=table:"in ('T_BANK_INVOICE')", procedure:" in ('SECURE_DML')"
- query=hr.employees:"where department_id=90"
复制代码 (52-27)上完1Z0-052第17章
- CREATE TABLE ext1
- (employee_id NUMBER(4),
- first_name VARCHAR2(20),
- last_name VARCHAR2(25),
- hire_date DATE)
- ORGANIZATION EXTERNAL
- ( TYPE ORACLE_LOADER DEFAULT DIRECTORY dir1
- ACCESS PARAMETERS
- ( records delimited by newline
- badfile 'ext1_%a_%p.bad'
- logfile 'ext1_%a_%p.log'
- fields terminated by ','
- missing field values are null
- ( employee_id, first_name, last_name,
- hire_date char date_format date mask "dd-mon-yyyy"))
- LOCATION (dir1:'ext1.dat', dir2:'ext2.dat') )
- PARALLEL 20 REJECT LIMIT UNLIMITED;
-
- select * from ext1;
-
- delete from ext1;
-
- update ext1 set first_name='XXX' where employee_id=100;
-
- create index ind1 on ext1(employee_id);
-
- alter table ext1 add constraint c1 check ( employee_id <500 ) ;
-
- select * from user_tables t where t.TABLE_NAME='EXT1';
-
- select * from user_external_tables ;
-
- ----
- select * from tpasswd;
-
- create table tpasswd (
- i_name varchar2(50),
- i_passwd char(1),
- i_uid number,
- i_gid number,
- i_comment varchar2(70),
- i_home varchar2(30),
- i_shell varchar2(30)) ;
-
- drop table tpasswd;
- select * from tpasswd;
- ---
- CREATE TABLE ext_emp_query_results
- ORGANIZATION EXTERNAL
- (
- TYPE ORACLE_DATAPUMP
- DEFAULT DIRECTORY dir1
- LOCATION (dir1:'emp1.exp',dir2:'emp2.exp')
- )
- PARALLEL 20
- AS
- SELECT e.first_name,e.last_name,d.department_name
- FROM employees e, departments d
- WHERE e.department_id = d.department_id AND
- d.department_name in
- ('Marketing', 'Purchasing');
-
- delete from ext_emp_query_results;
- select * from t05217_e;
- select * from user_encrypted_columns;
- create table t5 ( a encrypt identified by "redhat123")
- ORGANIZATION EXTERNAL
- ( TYPE ORACLE_DATAPUMP
- DEFAULT DIRECTORY "DIR1"
- LOCATION('empnew.dat') )
- REJECT LIMIT UNLIMITED
- as select * from t05217_e;
- create table t4( a number )
- ORGANIZATION EXTERNAL
- ( TYPE ORACLE_DATAPUMP
- DEFAULT DIRECTORY "DIR1"
- LOCATION('emp_ext.dat') )
- REJECT LIMIT UNLIMITED;
- create table t6( a number )
- ORGANIZATION EXTERNAL
- ( TYPE ORACLE_DATAPUMP
- DEFAULT DIRECTORY "DIR1"
- LOCATION('empnew.dat') )
- REJECT LIMIT UNLIMITED;
- select * from t6;
- create table t7( a number encrypt identified by "redhat123")
- ORGANIZATION EXTERNAL
- ( TYPE ORACLE_DATAPUMP
- DEFAULT DIRECTORY "DIR1"
- LOCATION('empnew.dat') )
- REJECT LIMIT UNLIMITED;
- select * from t7;
复制代码
|
|