- Download the Field Value Key data file.
-
Create the table structure in the database using the Create Table script. Be sure to change the table name in the template to hist_field_value_key.
-
Once the table structure has been created, copy the Oracle CTL template to the directory in which the product delivery file is located.
-
Open the CTL file in a text editor. Add the path to the data text file to the
infilestatement and replaceOracle destination table namewith the name of the table created in Step 3.Note: TheTRAILING NULLCOLSclause used in the CTL file instructs SQL Loader to treat any relatively positioned columns that are not present in the record as null columns - Load data by issuing the following command from a Windows command
prompt:
Examplesqlldr userid=<username>/<password>@<database_connection> control=<path>/<ctl_file_name> log=<path>/<log_file_name>sqlldr userid=username/password@hostname/service control = ‘D:\Property_Historical_Sales\Property_Historical_Sales_Data\ oracle_hist_field_value_key.ctl' skip=1 log=D:\Property_Historical_Sales\ Property_Historical_Sales_Data\oracle_hist_field_value_key_template.log' - Data will begin loading into the database.