How to create an external table.
Answer / ravi satyadarshi
//1st of all create a directory to store ur external table
CREATE DIRECORY EMP_DIR AS '/FLAT_FILES' ;
// now write the following line of code to create an
external table at that directory
CREATE TABLE OLDEMP(ENO NUMBER,ENAME CHAR(20),DOB DATE,)
ORGANIZATION EXTERNAL
( TYPE ORACLE_LOADER
DEFAULT DIRECTORY EMP_DIR
ACCESS PARAMETERS
(RECORDS DELIMITED BY NEWLINE
BADFILE 'BAD_EMP')
LOGFILE 'LOG_EMP'
FIELDS TERMINATED BY ','
(ENO CHAR , ENAME CHAR DOB CHAR DATE_FORMAT
DATE MASK "DD-MON-YYYY"
)
)
LOCATION ('EMP1.TXT')
)
PARALLEL 5
REJECT LIMIT 200;
Is This Answer Correct ? | 2 Yes | 0 No |
Any sample or model question of punjab national bank for deputy manger IT or any sample of PNB.any1 plz do send on
What you can do to remove data from the cache and query plans from memory for testing the performance of a query repeatedly?
What is the difference between a primary index and a secondary index? What is a duplicate data entry in an index? Can a primary index contain duplicates?
Explain about relational database management systems?
Explain the role of indexing in databases?
How to generate OIDS
What are the three basic rules which are to be followed for the relational model of the database?
Can an extended stored procedure be called from inside a user-defined function?
Explain about the hierarchical model of the database?
How is data stored in dbms?
What is a join and explain different types of joins?
Explain the cube operator?