SharePoint 2013:BCS Connect To Oracle DB No Code
On SharePoint
There are many posts describes how to connect to Oracle DB database using .NET assembly Type of BCS, it requires writing codes and install the Oracle Client or OLEDB on every App and WFE server.
I was going through the same road when it hits me , I can use Database Link to connect to the remote oracle table by installing OLEDB client on the SQL server only. Afterwards, I can easily create the BCS model by using SharePoint Designer.
To create Database link use the below link
http://blogs.msdn.com/b/dbrowne/archive/2013/10/02/creating-a-linked-server-for-oracle-in-64bit-sql-server.aspx
http://blogs.msdn.com/b/dbrowne/archive/2013/10/02/creating-a-linked-server-for-oracle-in-64bit-sql-server.aspx
- After creating the database link create a view to use it when creating the BCS let's name it MyTestView
- Open SharePoint Designers and connect to your site collection
- Click on create new External content type
- Name the external content type and click on the "Click here to discover external data sources and define operations" link
- Click on Add connection then Choose SQL server and click ok
- Enter the server details and database name
- Browse to the views and expand them you will see the view which we created (retrieve records from remote oracle DB)
- right click the view and generate both ReadItem and ReadList operations
- Make sure to map the identifier in both operations
- Save the External Content Type
- Create External List
Additional Information:
In order to impersonate the user identity you need to create a secure store application and update the External Content type External System
following this blog steps you can connect to remote oracle DB without writing a single line of Code.
Happy SharePointing
Excellent Idea
ReplyDeleteIt can be almost impossible to find well-qualified users on this matter, however, you look like you be aware of exactly what you’re covering! sharepoint administrator training
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteCan we perform write operation with this technique?
ReplyDelete