HomeHomeDotNetNuke Forg...DotNetNuke Forg...Module ForumsModule ForumsReportsReportsReports module connect to Oracle?Reports module connect to Oracle?
Previous
 
Next
New Post
6/4/2009 3: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 9: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/4/2009 11:04 PM
 

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 8: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 8:04 PM
 

Guys,

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

Regards,

Bryan

 
Previous
 
Next
HomeHomeDotNetNuke Forg...DotNetNuke Forg...Module ForumsModule ForumsReportsReportsReports module connect to Oracle?Reports module connect to Oracle?


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

Attend A Webinar
Free Demo Site
Download DotNetNuke Professional Edition Trial
Have Someone Contact Me

Like Us on Facebook Join our Network on LinkedIn Follow DNN Corporate on Twitter Follow DNN on Twitter

Advertisers

DotNetNuke Scoop!

Sponsors

DotNetNuke Corporation

DotNetNuke Corp. is the steward of the DotNetNuke open source project, the most widely adopted Web Content Management Platform for building web sites and web applications on Microsoft .NET. Organizations use DotNetNuke to quickly develop and deploy interactive and dynamic web sites, intranets, extranets and web applications. The DotNetNuke platform is available in a free Community and subscription-based Professional and Enterprise Editions with an Elite Support option. DotNetNuke Corp. also operates Snowcovered.com where users purchase third party apps for the platform.