Connect to an Oracle database from PowerApps
List tables, and create, read, update and delete table rows in an Oracle database after you create a connection and build an app in PowerApps. The Oracle Database connection supports full delegation of filtering, sorting, and other functions but not triggers or stored procedures.
- Oracle 9 and later
- Oracle client software 8.1.7 and later
- Installation of an on-premises data gateway
- Installation of the Oracle client SDK
To install a gateway, follow the steps in this tutorial.
An on-premises data gateway acts as a bridge, providing quick and secure data transfer between on-premises data (data that isn't in the cloud) and the Power BI, Microsoft Flow, Logic Apps, and PowerApps services. You can use the same gateway with multiple services and multiple data sources. For more information, see Understand gateways.
On the same computer as the on-premises data gateway, install the 64-bit ODAC 12c Release 4 (22.214.171.124.4) for Windows x64. Otherwise, an error will appear if you try to create or use the connection, as the list of known issues describes.
- In PowerApps Studio, click or tap New on the File menu (near the left edge).
Under Start with your data, click or tap the arrow.
A list of connections that you already have appears.
Click or tap New connection.
- In the list of connections, click or tap Oracle Database.
Specify the name of an Oracle server, a username, and a password.
Specify a server in this format if an SID is required:
Click or tap the gateway that you want to use, or install one.
If your gateway doesn't appear after you install it, click Refresh gateway list.
- Click or tap Create to create the connection.
- Click or tap the default dataset.
- In the list of tables, click or tap the table that you want to use.
- Click Connect to create the app.
PowerApps creates an app that has three screens and shows data from the table that you selected: - BrowseScreen1, which lists all entries in the table. - DetailScreen1, which provides more info about a single entry. - EditScreen1, in which users can update an entry or create an entry.
- To save the app that you've just generated, press Ctrl-S.
- To customize BrowseScreen1 (which appears by default), see Customize a layout.
- To customize DetailsScreen1 or EditScreen1, see Customize a form.
Cannot reach the Gateway.
This error appears if the on-premises data gateway can't connect to the cloud. To check the status of your gateway, sign in to powerapps.microsoft.com, click or tap Gateways, and then click or tap the gateway that you want to use.
Make sure that your gateway is running and can connect to the Internet. Avoid installing the gateway on a computer that may be turned off or asleep. Also try restarting the on-premises data gateway service (PBIEgwService).
System.Data.OracleClient requires Oracle client software version 8.1.7 or greater.
This error appears if the Oracle client SDK isn't installed on the same computer as the on-premises data gateway. To resolve this issue, install the official provider.
Table '[Tablename]' does not define any key columns.
This error appears if you're connecting to a table that doesn't have a primary key, which the Oracle Database connection requires.
As of this writing, stored procedures, tables with composite keys, and nested object types in tables aren't supported.