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 |
How to read and create .LDC data files which are used by linguatic dictionary.
What are the three types of database design?
What is the physical representation for a many-to-many relationship?
How to use online Backups?
Can you instantiate a COM object by using T-SQL?
How to customize error conditions.
Explain the cube operator?
How can you log an error to the server event log from a stored procedure?
What is data modeling with example?
Explain the role of indexing in databases?
Given an employee table, how would you find out the second highest salary?
What are the three basic rules which are to be followed for the relational model of the database?