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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Unload data to a flat file from Oracle databaseOracleDatabase
- Data Loading with External Tables (172)
- Parallel Access to External Tables (173)Parallel
- Unload data from oracleOracle
- use azure data studio to create external table for oracleOracle
- How to migrate data from Oracle to MSSQLSERVEROracleSQLServer
- Creating External Lists From Code
- How to get ORACLE_HOME from data dictionaryOracle
- CRICOS Data Structures and AlgorithmsHash TablesStructGo
- Export data from a data blockExportBloC
- Structure of the Data Dictionary : Base Tables (258)Struct
- Oracle TablesOracle
- Oracle FilesOracle
- Oracle的SQL*Net more data from client 等待事件分析OracleSQLclient事件
- Oracle 11g Data Guard 使用duplicate from active databaseOracleDatabase
- 【OCP最新題庫解析(052)--題3】Which two are true about external tables?
- Oracle Externale TablesOracle
- Oracle - Tables/IndexesOracleIndex
- Oracle X$TablesOracle
- Oracle X$ TablesOracle
- Oracle Partitioned TablesOracle
- Get data style from ExcelExcel
- get_data_from_yml
- How to move ASM database files from one diskgroup to anotherASMDatabase
- How To Search and Restore files from Site Collection Recycle BinREST
- 【12.2】Oracle 12C R2新特性-外部表支援分割槽了(Partitioning External Tables)Oracle
- oracle 外部表 external tableOracle
- Oracle外部表 External TableOracle
- ORACLE_DATAPUMP & External TableOracle
- SQL*Net more data from clientSQLclient
- 【oracle】user_tablesOracle
- Lerning Entity Framework 6 ------ Inserting, Querying, Updating, and Deleting DataFramework
- 4.3.2.2.2 Oracle Managed FilesOracle
- Oracle Server Parameter FilesOracleServer
- OAF export data from VO in xlsx formatExportORM
- Oracle 11g Data Guard 使用 duplicate from active database 建立 standby databaseOracleDatabase
- Oracle 11g Data Guard 使用duplicate from active database 建立 standby databaseOracleDatabase
- 常用的Oracle x$ TablesOracle