This is not the document you are looking for? Use the search form below to find more!

Report home > Others

Oracle10g External Tables

0.00 (0 votes)
Document Description
Oracle10g External Tables
File Details
  • Added: April, 14th 2011
  • Reads: 77
  • Downloads: 0
  • File size: 249.51kb
  • Pages: 18
  • Tags: oracle
  • content preview
Submitter
  • Name: sebestyen

We are unable to create an online viewer for this document. Please download the document instead.

Oracle10g External Tables screenshot

Add New Comment




Related Documents

The Effects of External Rewards on Intrinsic Motivation

by: shinta, 20 pages

For over 30 years now, there has been an intense debate on the effects of external rewards on intrinsic motivation. The answer to this question appears to depend on two properties of a ...

The Effects of External Rewards on Intrinsic Motivation - Practical Applications

by: shinta, 7 pages

Intrinsic motivation can be defined as an individuals need to feel competency and pride in something (McCullagh, 2005). Therefore, athletes who are intrinsically motivated participate in ...

THE IMPACT OF EXTERNAL GRAPHICAL REPRESENTATIONS IN DIFFERENT KNOWLEDGE DOMAINS : IS THERE A DOMAIN EFFECT ?

by: shinta, 16 pages

In this paper three studies question the generalizability of Mayer’s Cognitive Theory of Multimedia Learning (CTML) to the knowledge domain of the social sciences. The first ...

External Support for Collaborative Problem Solving in a Simulated Provider/Patient Medication Scheduling Task

by: shinta, 10 pages

Taking medication requires developing plans to accomplish the activity. This planning challenges older adults because of age-related cognitive limits and inadequate collaboration with health ...

USING INTEREST FACTOR TABLES

by: shinta, 4 pages

In Chapter 6 we used a financial calculator to solve time value of money problems. In this Web Appendix, we discuss how we can use the interest factor tables, which are given at the back ...

External shocks and economic fluctuations: evidence from Tunisia

by: shinta, 14 pages

In this paper, we investigate the role of openness and external shock transmission affecting Tunisian economy. The paper proposes a new econometric methodology of fluctuations analysis in the ...

A Global Perspective on External Positions

by: samanta, 44 pages

This paper highlights the increased dispersion in net external positions in recent years, particularly among industrial countries. It provides a simple accounting framework that disentangles the ...

INTERNAL VS . EXTERNAL HABIT FORMATION IN A GROWING ECONOMY WITH OVERLAPPING GENERATIONS

by: samanta, 33 pages

This paper explores the roles of internal and external habit formation in a simple model of endogenous growth with overlapping generations. Unlike the representative agent settings in which the ...

Competitiveness and growth in EMU: The role of the external sector in the adjustment of the Spanish economy

by: samanta, 44 pages

This paper assesses the relevance of the competitiveness argument in the debate on the current situation of the Spanish economy. We estimate error-correction models for exports and imports. ...

External Liberalization and the Evolution of China's Exchange System: an Empirical Approach

by: samanta, 42 pages

China's external liberalization has been experimental and gradual, making it evolutionary rather than revolutionary. The empirical approach has allowed China to draw lessons from experiments, and ...

Content Preview
Oracle10g External FilesAn introduction to what is External Tables?3/4/2010For a Better Future1Introduction To have a better understanding of how External Table working in database. By Kai Liu, Sr. Oracle Developer Kaitech, Inc.3/4/2010For a Better Future2Topics of Discussion History of External File usage? Reading External Tables? Writing External Tables?3/4/2010For a Better Future3History of External File usage?Previously the main method of getting external data into the databaseUsually a disjointed process– File is put into a directory– Loader is run to load into temporary table– Validation is done on loaded rowsProblems?– Data File not found– Bad Format – rows not loaded– Have to load into character fields then validate to avoid bad formats– Separate steps mean coordination if first step fails or does not load all3/4/2010For a Better Future4Control Fileoptions (errors=200,direct=true)load datareplaceinto table TEMP_DAILY_ORDER_HEADERSWHEN REC_TYPE = ‘OH’(CUST_ID POSITION(001:008) INTEGER EXTERNAL,ORDER_ID POSITION(009:016) INTEGER EXTERNAL,ORDER_DATE POSITION(017:024) DATE FORMAT ‘YYYYMMDD’,NUM_DETAILS POSITION(025:030) INTEGER EXTERNAL,REC_TYPE POSITION(079:080) CHAR)into table TEMP_DAILY_ORDER_DETAILSWHEN REC_TYPE = ‘OD’(CUST_ID POSITION(001:008) INTEGER EXTERNAL,ORDER_ID POSITION(009:016) INTEGER EXTERNAL,LINE_NUM POSITION(017:020) INTEGER EXTERNAL,PRODUCT_ID POSITION(021:028) CHAR,QUANTITY POSITION(029:033) INTEGER EXTERNAL,PRICE POSITION(034:041) DECIMAL EXTERNAL,AMOUNT POSITION(042:050) DECIMAL EXTERNAL,DISCOUNT POSITION(051:057) DECIMAL EXTERNAL,NET_AMOUNT POSITION(058:066) DECIMAL EXTERNAL,REC_TYPE POSITION(079:080) CHAR)3/4/2010For a Better Future5External TableReading External Tables?Started with Oracle 9i• External Files referenced directly from the database, as if they were tables• Uses ORACLE_LOADER driver• Define the file Directories• Tables are created with basic file format• SELECT used as if file is another table• Cannot INSERT, UPDATE or DELETELet’s Demo3/4/2010For a Better Future7Define DirectoryCreate directory where external data files are located– files must be in this areacreate directory external_dir as 'c:\data\oracle\extapp';create directory external_bad_dir as 'c:\data\oracle\extapp';Example in Unix: DROP DIRECTORY KMSDATA;CREATE OR REPLACE DIRECTORY KMSDATA AS '/home/oracle/data';3/4/2010For a Better Future8Create the Table DefinitionsCreate table TEMP_PUBLICITY_NAME (ACCT_NBR VARCHAR2(8),PUBLICITY_NAME1 VARCHAR2(30),PUBLICITY_NAME2 VARCHAR2(30))ORGANIZATION EXTERNAL(TYPE ORACLE_LOADERDEFAULT DIRECTORY dmsdataACCESS PARAMETERS(RECORDS DELIMITED BY newlineBADFILE 'publname.bad'DISCARDFILE 'publname.dis'LOGFILE 'publname.log'FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '~'(ACCT_NBR CHAR,PUBLICITY_NAME1 CHAR,PUBLICITY_NAME2 CHAR))LOCATION ('PUBLNAME.txt'))REJECT LIMIT UNLIMITED;/3/4/2010For a Better Future9Sample Data File~00002136~,~JANE DOE~,~AND PAPER INCORPORATED~~00017012~,~JOHN AND MARY~,~~~00017013~,~JOHN AND MARY~,~~~00043376~,~MRS MILLS~,~DO NOT ASK FOR PLEDGE-COVERED~~00043833~,~MRS NANCY~,~DO NOT ASK FOR PLEDGE-COVERED~~00051155~,~MRS JAMES~,~DO NOT ASK FOR PLEDGE-COVERED~~00051812~,~MRS WENDY~,~~~00057145~,~MRS CHARLES~,~DO NOT ASK FOR PLEDGE-COVERED~~00081234~,~HARRY~,~(MR STUART L PINKERT)~~06724967~,~MRS CAROL ~,~DO NOT SOLICIT EVER~~14660280~,~BRADEY FAMILY~,~(MR & MRS SMITH)~3/4/2010For a Better Future10

Download
Oracle10g External Tables

 

 

Your download will begin in a moment.
If it doesn't, click here to try again.

Share Oracle10g External Tables to:

Insert your wordpress URL:

example:

http://myblog.wordpress.com/
or
http://myblog.com/

Share Oracle10g External Tables as:

From:

To:

Share Oracle10g External Tables.

Enter two words as shown below. If you cannot read the words, click the refresh icon.

loading

Share Oracle10g External Tables as:

Copy html code above and paste to your web page.

loading