Connecting Microsoft SQL Server Reporting Services To Oracle Autonomous Database
Connecting Microsoft SQL Server Reporting Services To Oracle Autonomous Database
Autonomous Database
Pedro Torres, Alex Keh
This step by step tutorial guides how to configure Microsoft SQL Server Reporting Services (SSRS)
connectivity to Oracle Autonomous Database (ADB).
These instructions use managed Oracle Data Provider for .NET (ODP.NET) for data access and work for
both dedicated and shared infrastructure ADB.
Architecture Diagram
1
This document assumes that the Autonomous Data Warehouse (ADW) or Autonomous Transaction
Processing (ATP) was provisioned.
*Note: Please check here for the Oracle documentation to provision ADW.
1. Download the corresponding credentials.zip file to the system that has SSRS installed. These credential files
will be used to connect SSRS to ADB.
2. Check that SQL Server Data Tools and SQL Server Reporting Services are installed on Visual Studio 2017 or
Visual Studio 2019 in the Installed Products window of the About Microsoft Visual Studio dialog.
2
3. Download 32-bit ODAC 19.3 from the ODAC Xcopy section in the middle of this Oracle.com web page:
https://www.oracle.com/database/technologies/dotnet-odacdeploy-downloads.html
This procedure guides how to connect Visual Studio SSRS tools to ADB to retrieve data. You will download
and enable managed ODP.NET for data access.
3
5. Open a Windows command prompt *in administrator mode*. Navigate to the staging directory, then
execute the next command to install managed ODP.NET:
*Note: Enter the installation location (e.g. c:\odp32) for the directory parameter.
6. In the same command prompt with administrator privileges, navigate to the installation subdirectory,
<installation directory>\odp.net\bin\4. Then, execute the following command to configure managed
ODP.NET on the machine:
7. Navigate to where you downloaded the Oracle ADB credentials. Unzip the contents to a directory.
4
8. In the Windows environment variables dialog, create the TNS_ADMIN variable and set it to the directory
location where you unzipped the ADB credentials.
*Note: The tnsnames.ora net service names will be used to connect to ADB.
9. Modify the sqlnet.ora file. Change the directory location where the wallet (cwallet.sso) has been unzipped. It
is recommended you remove the quotes around the directory location as well.
5
11. Configure the new project for SSRS and click the Create button.
12. In Solution Explorer, right-click on Shared Data Sources. Select Add New Data Source.
6
13. Provide a Name and choose Oracle Database as the connection type.
7
15. Enter in one of the ADB net service names from the tnsnames.ora files. Enter in the user name (e.g. ADMIN)
and password. Click on Test Connection to verify connectivity.
16. The test will succeed if connectivity has been properly set up.
8
17. Click Ok three times. You will see that your Oracle data source has been created for SSRS to use. You can now
proceed building a report with ADB.
9
10
19. Enter Data Source Credentials
11
20. You can use Query Builder to design the query. It can retrieve data and validate the Oracle SQL’s validity.
12
21. Once the query design is complete, click Next to design the report to your preferences.
13
22. Choose how to group the data in the report.
14
23. Choose the report layout.
15
24. Provide a report name and click Finish.
16
25. Finally, you see the report according to your defined design.
To increase the FetchSize, modify the .NET machine.config file. Modifying the machine.config
requires Windows Administrator privileges. This file is generally located in the following directory:
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Config.
<configuration>
<configSections>
…
</configSections>
<oracle.manageddataaccess.client>
<version number="*">
<settings>
<setting name="FetchSize" value="4194304" />
</settings>
</version>
</oracle.manageddataaccess.client>
</configuration>
Once done, restart SSRS so that ODP.NET will use the new setting.
17