Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to create ctl file in oracle ?

994122Dec 31 2014 — edited Jan 9 2015

Hi All,

Here i need to create Control File Definition in my Current Package, Please guide me how to develop this Program.My Requirement as below.

Control File Definitions

The control file will be named similarly to the data file with an extension ".CTL"

The control file will contain ONE only record.

The control record will hold details about the delivered data file.

The control record will hold total 26 byte record length.

The format of the control record will be as follows:

Fieldname

Data Type and format

Definition

FileDate CHARacter 8 format 'YYYYMMDD' The date the file was created.

DataDate CHARacter 8 format 'YYYYMMDD' The date the data is for. Allows for data to be created post the date of the records.

NbrRecords CHARacter/Numeric Format 9(10)

No leading zeroes, numeric only, no decimal place, no commas etc. The NUMBER of records in the data file

Thanks

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 6 2015
Added on Dec 31 2014
15 comments
12,763 views