Upload Samples for the Semantic Model Extensions Use Cases
For learning purposes, use the samples mentioned in the use cases and perform the user extensions.
Prior to using the samples in the user extensions, you must ensure that the samples mentioned in the use cases are available in the applicable autonomous data warehouse.
- Download these samples to your local machine.
- Connect to the applicable autonomous data warehouse using SQL Developer Client and the OAX_USER credentials. See Connect Fusion Data Intelligence to an Autonomous Data Warehouse with SQL Developer Desktop Client.
- Create the sample table in the autonomous data warehouse using either of the
options:
- In SQL Developer Client, import the applicable .xlsx file, based on the
use case, from your local machine into the applicable autonomous data
warehouse using these steps:
- Right click Tables and then click Import Data.
- In step 1 of the Data Import Wizard, select Local
File in Source, click
Browse for File, and select the
applicable
.xlsx
file, based on the use case; for example, FDI_X_COUNTRY.xlsx, from your local machine, and then click Next. - In step 2 of the Data Import Wizard, enter a name in Table Name, review the file contents in the File Contents section, and then click Next.
- In steps 3 and 4 of the Data Import Wizard, review and click Next.
- In step 5 of the Data Import Wizard, click Finish.
- Based on the use case, if the sample table is a
.sql
file, execute the data definition language (DDL).sql
using these steps:- Click File, click
Open, and then select the applicable
.sql
file, based on the use case, that you saved on your local machine; for example, FDI_X_COUNTRY.sql. - Under SQL Worksheet on the right pane, click the Run Script icon.
- View the script output in the Script output area.
- Click File, click
Open, and then select the applicable
- In SQL Developer Client, import the applicable .xlsx file, based on the
use case, from your local machine into the applicable autonomous data
warehouse using these steps:
- Create an SQL view using these steps:
- Right click Views and click New View.
- In Create View, verify that you see the appropriate value in Schema, provide an applicable name for the view based on the use case in Name, under the SQL Query tab, in the SQL Query area, provide the SQL script mentioned in the applicable use case, and then click OK.
- Grant semantic model access to the database object for the OAX$OAC schema using
these steps:
- In Views, right click the applicable view, click Privileges, and then click Grant.
- In Perform Grant Action, click SQL tab, provide the SQL script mentioned in the applicable use case, and then click Apply.
- Under SQL Worksheet on the right pane, provide the SQL script mentioned in the applicable use case, and then click the Run Statement icon to validate that the data is loading from the sample table as expected.