Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsReportsReportsReports module connect to Oracle?Reports module connect to Oracle?
Previous
 
Next
New Post
6/4/2009 5:57 AM
 

Can I make the reports module connect to an Oracle DB? 

I have an Oracle DB that we are creating custom modules to view. We have defined the connection string in the Webconfig file, and the custom modules can see and dispaly the data no problem. So I know that we can fetch the data from the external DB and have it available in our DNN portal.

But now I have suddenly discovered the reports module, and I wonder if it could also see the data in the external DB.

Can this be done, and if so, how??

Thanks....

 
New Post
6/4/2009 11:24 AM
 

Yes! The Reports Module does support external databases.

You need to configure your Reports Module to use the "Generic ADO.Net" Data Source (in the Module Settings page) and then enter your Oracle Connection String and a Query.  You'll need to select the OracleClient ADO.Net data provider (I believe it's installed by default, if not you'll need to install the Oracle ADO.Net Provider on the server and it should automatically appear in this list).  You should be able to use any Visualizer you want, or even write your own. 

Also, since it is open-source, the Reports Module makes a good starting point for a custom data-oriented module if the Reports Module itself doesn't quite support all your needs.

FYI: If you wish to use the "UserId", "TabId", "PortalId" and "ModuleId" parameters (which are passed to your query automatically and contain the User, Tab, Portal or Module ID, respectively), you must make sure to set the Parameter Prefix appropriately.  For example, in Microsoft SQL Server, all parameter names must start with an "@", so the Parameter Prefix would be "@".   I don't know if Oracle has such a restriction and what it is, so I can't advise you directly on that part.


Andrew Nurse
DotNetNuke Core Team Member and Reports Module Project Lead
Microsoft Certified Professional Developer

 
New Post
6/5/2009 1:04 AM
 

Thanks Andew. That is a wonderfully comprehensive reply.

I am very pleased to know that it is clearly possible. Makes some stuff I might want to do doable..... :)

Curious about something though...

The connection string for the oracle db is in the webconfig file. Is that not sufficient? Or do I need to explicitly include it in the SQL statement?

Also, I looked at the module settings page, and there is no option for selecting a generic anything....Does that mean that it is not installed then? Or is it buried somewhere cunning?


CHeers

Mike

 
New Post
7/2/2009 10:28 PM
 

Hi Michael,

I just want to update you guys with this. I encountered this error when I entered the connection string to connect to the Oracle Database. Please see details below.

 

A critical error has occurred.
System.Data.OracleClient requires Oracle client software version 8.1.7 or greater.

 

What could have caused thiserror? What should I do?

Regards,

Bryan

 
New Post
7/5/2009 10:04 PM
 

Guys,

Any update on this one? Has anyone encountered this before?

Regards,

Bryan

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsReportsReportsReports module connect to Oracle?Reports module connect to Oracle?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out