0% found this document useful (0 votes)
65 views

Visual Studio 2017 Setup For Connecting To BBTS Oracle DB

This document provides instructions for setting up Visual Studio 2017 to connect to an Oracle database on the BBTS server. It involves installing Visual Studio 2017 in a non-default location, installing Oracle 10g Express locally, editing Oracle configuration files, setting environment variables, and creating an SSIS package with an OLE DB source connection to the Oracle database using the provided server name, username, and password. The instructions also note a known bug preventing data previews when connecting to Oracle databases from Visual Studio.

Uploaded by

Anita Singh
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
65 views

Visual Studio 2017 Setup For Connecting To BBTS Oracle DB

This document provides instructions for setting up Visual Studio 2017 to connect to an Oracle database on the BBTS server. It involves installing Visual Studio 2017 in a non-default location, installing Oracle 10g Express locally, editing Oracle configuration files, setting environment variables, and creating an SSIS package with an OLE DB source connection to the Oracle database using the provided server name, username, and password. The instructions also note a known bug preventing data previews when connecting to Oracle databases from Visual Studio.

Uploaded by

Anita Singh
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 7

Visual Studio 2017 Setup for Connecting to BBTS Oracle DB

1. Install Visual Studio 2017 Community version from this location:


\\valhalla\Software\V\Visual Studio 2017
If the option is given to choose the installation location for Visual Studio, choose
somewhere other than Program Files (x86). The reason for this is because of the error
outlined in this article where the parentheses causes a network error when connecting
to an Oracle DB from Visual Studio: Oracle SSIS Connection Error
2. After installing Visual Studio 2017, install the SSDT tools which are found in the same
directory on Valhalla as the Visual Studio installer.
NOTE: If you already have Visual Studio and SSDT tools installed, you will need to copy
the entirety of Visual Studio 2017 into another directory that does not have
parentheses in the path. If you have two copies of Visual Studio 2017, it is suggested
that you create a shortcut on your desktop to the devenv.exe file so that it is easily
distinguishable which Visual Studio is “Oracle-friendly”. Example shortcut path:
C:\Program Files\Visual Studio 2017\2017\Community\Common7\IDE\devenv.exe
3. Install Oracle10G Express from this location: \\valhalla\Software\O\Oracle 10G Express
4. Navigate to this directory:
C:\oraclexe\app\oracle\product\10.2.0\server\NETWORK\ADMIN and edit the
sqlnet.ora and tnsnames.ora files. (Used Notepad++ admin mode)
a. In sqlnet.ora file, comment out the line for authentication services and add the
following line to the bottom of the file:
NAMES.DIRECTORY_PATH=(TNSNAMES, ONAMES, HOSTNAME)

b. Add the following section to the end of the tnsnames.ora file:


BBTS =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = bbtsdb.highpoint.edu)(PORT =
1521))
)
(CONNECT_DATA = (SERVICE_NAME = BBTS)
))
5. Set the following environment variables:
a. In the system environment variable Path make sure the following paths are
present:
C:\oraclexe\app\oracle\product\10.2.0\server\bin
C:\oraclexe\app\oracle\product\10.2.0\server\NETWORK\ADMIN
b. Create a new system environment variable named ORACLE_HOME and set its
value to:
C:\oraclexe\app\oracle\product\10.2.0\server
6. Shift + Right click the shortcut for Visual Studio 2017, click “Run as different user”, and
login with your EAS account.
7. Create a new Integration Services Project, choosing whichever name reflects your
needs.
8. Drag a Data Flow Task onto the Control Flow canvas.

*You can rename to whatever best describes the data flow’s purpose.
9. Drag an OLE DB Source task onto the Data Flow canvas.
10. Click new to create a new connection manager.

11. Choose Native OLE DB\Oracle Provider for OLE DB as your provider. Set the server name
to BBTS, username is rptng, and password is dk7G3csr. Be sure to check the Allow saving
password checkbox.
12. Click the Test Connection button.

If you see the Test connection succeeded, congrats! You can now connect to the
Blackboard Transact Oracle DB via SSIS.
From here, you just need to set the Data access mode and/or insert your query to get the
data you need.
If you notice that you are unable to preview the results of your query, this is not an issue
with your configuration/installation. It is a known bug. When previewing your data, you will
receive the following error:

This forum post outlines the issue being experienced. It was escalated to Microsoft but has
yet to be resolved. https://social.msdn.microsoft.com/Forums/en-US/892e1cb0-9090-4406-
8601-52b3a3a4fc11/unable-to-preview-oracle-ole-db-source-in-ssdt-172vs2015?
forum=ssdt

You might also like