Note: The following procedure uses Consumer Spend as an example in
command syntax. All other GeoEnrichment Demographics datasets can be uploaded by
following the same steps and substituting the appropriate dataset name.
- Download the product delivery file.
- Extract the delivery file and find the text data file.
- Create the table structure in the database using the product-specific Create Table script. Be sure to change the table name in the template to the dataset you are loading. If, for example, you are loading the Consumer Spend dataset, the table should be named consumer_spend.
- 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 extracted data file to the
infilestatement. - Replace
Oracle destination table namein the CTL file with 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. - Open a Windows command prompt and enter the following:
sqlldr userid=<username>/<password>@<database_connection> <control>=<path>/<ctl_file_name> log=<path>/<log_file_name>Example:
sqlldr userid=username/password@hostname/service control='D:\Consumer_Spend\Consumer_Spend_Data\ oracle_expenditure_ctl_template.ctl' log='D:\Consumer_Spend\Consumer_Spend\consumer_spend.log' - Data will begin loading in the database.