- Download the product delivery file.
- Extract the delivery file to find the data text file.
- Open the Property Historical Sales Create Table script in a text editor and confirm that the table name is set to prop_hist_sales.
- Run the Create Table script
- After the table structure has been created, copy the Oracle CTL template into the directory containing the product delivery file.
- Open the CTL file in a text editor.
- Add the path to the extracted data text file to the
infilestatement - Replace
Oracle destination table namewithprop_hist_sales. - Save changes.
- 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_202006_CA\ Property_Historical_Sales_202006_CA \Historical_Sales_Product_Data\oracle_prop_hist_sales.ctl' log='D:\ Property_Historical_Sales_202006_CA\Property_Historical_Sales_202006_CA\ Historical_Sales_Product_Data\prop_hist_sales.log'The following syntax should be used to load nationwide data:
sqlldr userid=username/password@hostname/service control = 'D:\Property_Historical_Sales\ Property_Historical_Sales_Data\oracle_hist.ctl' skip=1 log='D:\ Property_Historical_Sales\Property_Historical_Sales_Data\hist.log'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.