Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

  Ads  
Biz Modules provides professional business modules and solutions for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

Merak Mail Server
WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
Salaro -- Skins and more
OnyakTech
CrystalTech Web Hosting™
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Configure It! (...  Accessing an external oracle database
Previous Previous
 
Next Next
New Post 9/1/2008 4:23 AM
User is offline som4
96 posts
10th Ranked


Accessing an external oracle database 

Hi all,

I'm currently trying to figure out how I access an external database (on a different server) from a module so that it can display products in a list.

Not really sure where to start on this, I tried googling my way to some sort of guide but everything says to edit web.config and add connection strings. thing is every time i do that i get an error: Parser Error Message: Unrecognized attribute 'type'. Note that attribute names are case-sensitive. Basically it comes up with this error in every guide and tutorial I've followed.

Do i need to create a custom data provider?  Ideally i'd like to know the best/easiest/secure way to solve this. Thanks

Si

 
New Post 9/1/2008 6:14 AM
User is offline ErikVB
3115 posts
www.apollo-software.nl
4th Ranked










Re: Accessing an external oracle database 

you only need to use the web.config connection string if you want to use the DNN dataprovider structure. Please remember that DotNetNuke is just .NET, so you can use any alternative way to connect to data (just as you would in a regular asp.net application)


Erik van Ballegoij,
a view from my attic, my personal blog

The personal blog of Erik van Ballegoij

 
New Post 9/1/2008 9:36 AM
User is offline Sanjay Mehrotra
527 posts
www.acuitisolutions.com
8th Ranked




Re: Accessing an external oracle database 

Can you provide some more information (example) of where and what you're trying to put in your web.cofig? You can of course cross out/change the username/password...
Sanjay

 


AcuitiDP - Oracle Data Provider for DotNetNuke
 
New Post 9/2/2008 5:40 AM
User is offline som4
96 posts
10th Ranked


Re: Accessing an external oracle database 

Hi, To be honest i've not thought about this all week.  I gave up with the webconfig connection strings as it never seemed to work.  I realise i could just connect in another way but I wanted an ellegant solution which worked well with DNN.

Ok details, i deleted changes i made to web.config so its now as it was when i first installed dnn.  The database I am trying to connect to is on another server running oracle. 

What would you suggest is the easiest way to do this?  I don't think I'll have access to stored procedures or anything in the oracle databases as its used in a warehouse and i'm only allowed to read info off it for the moment so i dont end up accidentally dropping our customer table or something equally stupid.

Si

 
New Post 9/2/2008 9:00 AM
User is offline Sanjay Mehrotra
527 posts
www.acuitisolutions.com
8th Ranked




Re: Accessing an external oracle database 

Si - well for starters you have to make sure you have the oracle client installed on the web server. Yes, oracle uses the native system.data classes that come with .NET, but they still require the neccesary Oracle client installed.
With regards to accidentally dropping tables, etc, I'd not be that worried. If your DBA has given you a user id/password to the system, it probably is read only in any case so that things like this wouldn't happen :)...
Once you have oracle client installed, setup the entry to point to your remote oracle server (TNS NAMES) and then use this as your value in the connection string. You can place your connection string in web.config and then use your modules to connect to Oracle. DNN already exposes ways of getting a section of web.config so you shouldn't have to do anything out of the box in order to pull your new connection string.

Sanjay


AcuitiDP - Oracle Data Provider for DotNetNuke
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Configure It! (...  Accessing an external oracle database
 


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.

 


Verndale - Web Development, Support, Hosting
Since 1998, Verndale has helped hundreds of emerging and midsize businesses maximize the value and reach of their web assets with a comprehensive offering of strategy, design, development, search marketing and support services.
www.verndale.com
Overlook Technology
Website Development, DotNetNuke Consulting, Module Development, Portal Management
OverlookTechnology.com
DeutschNetNuke = DotNetNuke in German
DeutschNetNuke provides all DotNetNuke related services in German (and English).
www.DeutschNetNuke.de

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP