External Tables: Querying Data From Flat Files in Oracle
mkdir -p /data1/stream/ygzhou_dir
1.1、strings inputScripts.sql
CREAT OR EREPLACE DIRECTORY dir_dump as '/data1/stream/ygzhou_dir';
CREATE TABLE input(
id INT,
name VARCHAR2(50)
ORGANIZATION EXTERNAL (
TYPE ORACLE_LOADER
DEFAULT DIRECTORY dir_dump
ACCESS PARAMETERS (
RECORDS DELIMITED BY NEWLINE
FIELDS TERMINATED BY ','
MISSING FIELD VALUES ARE NULL
(
id CHAR(5),
name CHAR(50)
)
LOCATION ('ygzhou.txt')
PARALLEL 5
REJECT LIMIT UNLIMITED;
1.2、strings outputScripts.sql
create table Output
organization external
( type oracle_datapump
default directory dir_dump
location ('output_part1.dat','output_part2.dat')
PARALLEL 2
select owner,table_name,tablespace_name from all_tables where wner='SYSTEM';
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24867586/viewspace-719695/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- use azure data studio to create external table for oracleOracle
- Oracle TablesOracle
- CRICOS Data Structures and AlgorithmsHash TablesStructGo
- 【12.2】Oracle 12C R2新特性-外部表支援分割槽了(Partitioning External Tables)Oracle
- How To Replicate Data from Oracle to Postgres Using GoldenGate (Doc ID 1544137.1OracleGo
- 【OCP最新題庫解析(052)--題3】Which two are true about external tables?
- 4.3.2.2.2 Oracle Managed FilesOracle
- get_data_from_yml
- OAF export data from VO in xlsx formatExportORM
- A C++ half-edge data structure for a triangle mesh with no external dependencies whatsoeveC++Struct
- how BabyFile app transfer files with Windows PC though data cableAPPWindows
- ORA-04043: object DBA_DATA_FILES does not existObject
- Oracle 12C Database File Mapping for Oracle ASM FilesOracleDatabaseAPPASM
- ORACLE 控制檔案(Control Files)概述Oracle
- Oracle 21C管理Voting FilesOracle
- Oracle 19c Concepts(02):Tables and Table ClustersOracle
- 【等待事件】SQL*Net more data from dblink事件SQL
- 有關oracle external table的一點測試。Oracle
- [20181112]Private Temporary Tables Oracle Database 18C.txtOracleDatabase
- 論文閱讀:Borrowing wisdom from world: modeling rich external knowledge for Chinese named entity recognition
- Oracle data link建立Oracle
- Oracle 建立PDB-from ScratchOracle
- 更改oracle 預設db_files 200(ORA-00059: maximum number of DB_FILESOracle
- Oracle 19c Concepts(03):Indexes and Index-Organized TablesOracleIndexZed
- 深入理解mysqldump原理 --single-transaction --lock-all-tables --master-dataMySqlAST
- MySQL主從複製報錯:Got fatal error 1236 from master when reading data fromMySqlGoErrorAST
- 4.1.6 Oracle Restart 與 Oracle Data Guard 整合OracleREST
- Oracle Data Guard Broker元件Oracle元件
- Oracle Data Guard簡介Oracle
- Oracle:ORA-01219:database not open:queries allowed on fixed tables/views onlyOracleDatabaseView
- 【轉載】使用 BAPI_BUPA_CREATE_FROM_DATA 建立BPAPI
- [20180918]等待事件SQL/Net more data from client.txt事件SQLclient
- [20180925]等待事件SQLNet more data from client 6.txt事件SQLclient
- [20180922]等待事件SQLNet more data from client 4.txt事件SQLclient
- [20180920]等待事件SQLNet more data from client 3.txt事件SQLclient
- [20180926]等待事件SQLNet more data from client 7.txt事件SQLclient
- Oracle 11GR2 Duplicate from BackupOracle
- Converting Oracle Database from Linux to Windows using RMANOracleDatabaseLinuxWindows
- Oracle database 升級(文件)to 10.2.0.4 from 10.2.0.1OracleDatabase