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

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Migrating from Oracle to MS SQL 2005Migrating from Oracle to MS SQL 2005
Previous
 
Next
New Post
4/14/2010 6:27 AM
 

Hello,

I am in the process of moving our DNN site from Oracle DB to MS SQL 2005 DB. What is the best way to do this taking into account that we have a couple of custom tables and server side code?

We are currently  using DNN 4.9. The plan is to first move the site in the current version to SQL 2005 DB, make sure that the site performs well and then upgrade to the DNN 5.2.

Any information will be appreciated.

Thanks,

Rajesh

 
New Post
4/14/2010 6:34 AM
 

 You might try with SSMA. I have not done this, but that seems to be an option to consider:

http://www.microsoft.com/sqlserver/20...

After migrating the data to MSSQL (in a safe test environment, e.g. localhost or safe test environment server), point your connection in the web.config towards the new MSSQL and see if the site comes up.

 
New Post
4/14/2010 10:20 AM
 

Thanks Peter. Will give that a try. Will all the web client (DNN) code resolve itself yo point to the sql db instead of the Oracle DB.

Thanks,

Rajesh

 
New Post
4/14/2010 11:57 AM
 

 Hello Rajesh,

As all of this is rather theoretical for me (I don't have a lot of experience using Oracle with DNN), I can only say the following: as DNN works with a provider system for its DB connections, it should still work PROVIDED that these providers are compatible between the two different DB systems;

I would recommend the following steps:

1. backup your full site (files & database)

2. restore the database in a test environment + copy all the files + point the connections string in the web.config towards the non-production database

Now you have a safe testing sandbox which you should be able to use. In other forums / blogs you might find more detailed information about how to backup and restore a DNN site locally. Please also note that if you're going to port this to another (test) domain / localhost you'll have to configure the portal aliases; if you forget to do this you'll have to put them into your database tables by hand (table PortalAliases).

Next you'll migrate that local version using SSMA. Normally that will not really alter your Oracle database (just read it) but it's always safest not to use your production environment for these kinds of tests until we are sure this will work. At the end, you'll have a MSSQL database version of your database.

Only thing you should do to test is point the web.config's connections strings to the newly migrated MSSQL database. Host up your test website and check if it still serves up pages.

</P>

 
New Post
4/28/2010 11:48 AM
 

Hi Pieter,

Please igonre my previous 2 posts. I found in the web config file that the object qualifier was set to DNN_(set when installing DNN on the Oracle DB) and hence the errors.

I have now removed that but now when I browse to the site I get the following error

 Server Error in '/' Application.

Object reference not set to an instance of an object.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]
   DotNetNuke.Entities.Portals.PortalSettings.VerifyPortalTab(Int32 PortalId, Int32 TabId) +408
   DotNetNuke.Entities.Portals.PortalSettings.GetPortalSettings(Int32 TabId, PortalAliasInfo objPortalAliasInfo) +3063
   DotNetNuke.Entities.Portals.PortalSettings..ctor(Int32 tabId, PortalAliasInfo objPortalAliasInfo) +77
   DotNetNuke.HttpModules.UrlRewriteModule.OnBeginRequest(Object s, EventArgs e) +3391
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +68
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75

Any ideas?

Thanks,

Rajesh

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Migrating from Oracle to MS SQL 2005Migrating from Oracle to MS SQL 2005


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