- Download the product delivery file.
- Extract the delivery file to find the data text file.
- Open the Property Attributes Assessment Data Create Table script in a text editor and confirm that the table name is set to asmt.
- 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 namewithasmt. - Save changes.
-
Copy the following command to:
Load the sample and state datafiles:
Example:sqlldr userid=<username>/<password>@<database_connection> control=<path>/<ctl_file_name> log=<path>/<log_file_name>sqlldr userid=username/password@hostname/service control='D:\Property_Attributes_Assessment\ Property_Attributes_Assessment_Data\oracle_asmt_ctl_template.ctl' log='D:\Property_Attributes_Assessment\ Property_Attributes_Assessment\asmt.log'- Load nationwide datafiles (to skip first record as it is header/column record): Example:
sqlldr userid=<username>/<password>@<database_connection> control=<path>/<ctl_file_name> skip=1 log=<path>/<log_file_name>sqlldr userid=username/password@hostname/service control = 'D:\Property_Attributes_Assessment\ Property_Attributes_Assessment_Data\oracle_asmt.ctl' skip=1 log='D:\ Property_Attributes_Assessment\Property_Attributes_Assessment_Data\asmt.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.