%META:TOPICPARENT{name="VirtOracleEntityFrameworkUsage"}% ===Linking Tables from Oracle into Virtuoso=== 1. Start the Virtuoso Web User Interface. %BR%%BR%%BR%%BR% 2. Select the **Conductor** link in the Left Frame and Login as the **dba** user. %BR%%BR%%BR%%BR% 3. Select the **Databases** -> **External Data Source** -> **Data Sources** tab menu items. %BR%%BR%%BR%%BR% 4. Select the **Connect** button for the **ora10ma** Oracle DSN. %BR%%BR%%BR%%BR% 5. On succesful connection, select the **Link Objects** button to obtain a list of available tables. %BR%%BR%%BR%%BR% 6. Select all the tables that are part of the **HR** catalog. %BR%%BR%%BR%%BR% 7. Change the Catalog for each table to **HR** using the **Set All** button. %BR%%BR%%BR%%BR% 8. Ensure a primary key is assigned to all tables that are to be used in the EDM generation phase. %BR%%BR%%BR%%BR% 9. Select the **Link** button to link the selected tables into Virtuoso. %BR%%BR%%BR%%BR% 10. On completion of the Link process, the tables will be displayed in the **External Linked Objects** tab. %BR%%BR%%BR%%BR% 11. The linked tables can be queried by clicking on the hyperlink in the **Local Name** column of the **External Linked Objects** tab above. This loads the Virtuoso **Interactive SQL** interface with the required SQL **Select** for retrieving the remote table data . We shall use the **HR.ora10ma.COUNTRIES** table to demonstrate this. %BR%%BR%%BR%%BR% 12. Click the **Execute** button to run the query and retrieve the results from the remote table. %BR%%BR%%BR%%BR% 13. The tables can also be viewed as part of the Virtuoso **SQL Schema Objects** under the **HR** catalog name. %BR%%BR%%BR%%BR% The Link process is now complete enabling the tables to be queried as if part of the Virtuoso Schema.