Unable to update the datasource thro Set Datasource Location

Hi,
I am using Crystal reports XI and oracle as the database.

I have developed a crystal reports in develpment environment. Now I want to deploy/move this report to another environment.

When I go to Database Extpert - Set Datasource Location and try to to update the datasource (which is an oracle stored procedure in my case)
I get an error:

Data object cannot be opened/accessed.

I am using Microsoft OLE DB Provider for Oracle driver to connect to Oracle database.

What am I doing wrong?


amit.sawji (BOB member since 2009-03-30)

Hi

The Set Data source Location command provides a simple way to indicate the new name or location of database files. This is especially useful if someone sends you a report that uses a database that has a different location on your system, or if you have changed the directory or disk location of a database. or moving the report from one environment to another environment In addition, the Set Data source Location command automatically converts your database driver to the data source you have chosen. For example, you can automatically convert a direct access data source to an ODBC data source using the Set Location command.

  1. Go to ‘Database’ menu | ‘Set Datasource Location’ | ‘Set Datasource Location’ window appears.
  2. Change the location of the data source by selecting the current database (or table) and choosing the data base (or table) to replace with it . then click update.
  3. Click ‘Close’ to close the ‘Set Datasource Location’ window.

Please ensure that you need to ‘Verify Database’ immediately after setting datasource location for the report. In order to do ‘Verify Database’ from Crystal Reports, please follow the steps given below:

  1. Go to ‘Database’ menu | ‘Verify Database’
  2. A message stating ‘Database is up to date’ would appear. Let me know if you are facing error messages during this process.

vadivelmothi (BOB member since 2008-11-03)

I have followed the steps you mentioned.
I am trying to update the datasource (An oracle stored procedure with ref cusror).

The one which I wat to replace with the new one has same format. Only the database is different.

I get “Data/Object could not be opened/accessed” error. It does not allow me to select the stored procedure.


amit.sawji (BOB member since 2009-03-30)

Check with database admin, do u have all the rights to access the diffrent environment database or not . if you are having try to create a sample report from the datasource.

Also compare the strored procedure with old database.


vadivelmothi (BOB member since 2008-11-03)

Thank you for your inputs.

I think I have the necessary access rights.
If I can a seperate reports in these environments. i.e. I can create report using the both the stored procedures (the one which I want to replace and the one which I am going to replace)

Can you please tell me what access rights and on which database objects is required so that I can update the datasource.


amit.sawji (BOB member since 2009-03-30)

Ensure that the version of MDAC you are using should be 2.8 (Minimum). To do this, the procedure is as follows:

1.Click the ‘Start’ button, and then click ‘Run’.
2.Type ‘regedit’ (without quotes), and press ENTER. The Registry Editor appears.
3.Expand the HKEY_LOCAL_MACHINE subtree to the following registry subkey:

\HKEY_LOCAL_MACHINE\SOFTWARE\ Microsoft\DataAccess

4.In the right pane, right-click the Version entry and select ‘Modify’. Check the version in the ‘Value Data’ text box
5.Click ‘OK’ and close the Registry Editor.

On the other hand, to know the version, check the MDACReadme.htm" or use Microsoft’s MDAC Component Checker. For more information, check the following link:

update the MDAC version of your system from the below given link:

now try and let me know the status.


vadivelmothi (BOB member since 2008-11-03)

Thank you for the inputs.

The current MDAC version is 2.7. I think that is the reason why I am facing issues.

Can you tell me what exactly is the problem if I have the MDAC version 2.7?

What are the things I would not be able to achieve?


amit.sawji (BOB member since 2009-03-30)

MDAC is nothing but of base platform for installing ODBC driver and OLEDB provider , CR Driver and provider are recommended to install in MDAC 2.8 .

Only it will impact the Driver and Providers so update the version of MDAC and restrart the machine and check the issue and update me.


vadivelmothi (BOB member since 2008-11-03)

I tried to install the MDAC 2.8. It gives me message “MDAC 2.8 is incompatible with this version of windows. All its required features are installed with this version of windows”

:cry:


amit.sawji (BOB member since 2009-03-30)

It should work with MDAC2.8 onlly so contact your system admin to install the MDAC2.8 in your machine , might be if u install any patch for that windows it wil allow u to install MDAC 2.8 ,

Meanwhile I would suggest you to check the OLE DB connection to your database from outside of Crystal Reports.

Please download the QTADO testing tool from the following URL:

http://gpoulose.home.att.net

Check if you can use stored procedure the database from this tools and let me know what happens?

if it is working fine in this then u have to update the MDAC 2.8 no way.


vadivelmothi (BOB member since 2008-11-03)

I am having MDAC 2.8 installed on my machine but still facing the same issue… :cry:


amit.sawji (BOB member since 2009-03-30)

what is the result of QTADO testing ?


vadivelmothi (BOB member since 2008-11-03)

I cannot download any exe s in my office.
I have MDAC 2.8 installed but still facing the issue.

:cry:


amit.sawji (BOB member since 2009-03-30)

This is the diagnosing tool whether the issue within CR or out side of Cr, ok . if possible try with ODBC connection and let me know the status .

Also send me the screenshot of the error message


vadivelmothi (BOB member since 2008-11-03)

I have also posted this on oracle forum, and came to know that this is a known issue and there is some problem with oracle 10g.

It is only fixed in the later version…
ODBC Connecttion Error.JPG


amit.sawji (BOB member since 2009-03-30)

The issue is with Crystal reports driver and oracle drivers are compatible that u r using ,
Please confirm that you are using CR data direct driver that is recommended one , try with that and let me know.


vadivelmothi (BOB member since 2008-11-03)

Hi,
Thank you for the clarification.
Where can I get the “CR data direct driver”?

Also can you forward me some link/reference which I can forward to my lead to prove that it is a driver issue?and not my fault? :frowning:


amit.sawji (BOB member since 2009-03-30)

  1. You can try downloading the datadirect ODBC drivers from the following link:

https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/bobj_download/main.htm

  1. Also, conform whether you are able to connect using the native method.

vadivelmothi (BOB member since 2008-11-03)

  1. You can try downloading the datadirect ODBC drivers from the following link:

https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/bobj_download/main.htm

  1. Also, conform whether you are able to connect using the native method.

vadivelmothi (BOB member since 2008-11-03)

Thank you for the information.

I have downloaded the Datadirect driver and installed it on my local machine.
I was successfull in creating reports and overcome my issues regarding connectivity.

However when tried to deploy the report on the crystal report server,
I got an error

“failed to open connection Database Vendor Code: 12154”

  1. I installed the driver on the crystal report server machine.
  2. Creatde a DSN through Administrative tools.
  3. Deployed the report (created on my local machine) through publishing wizard on the crystal report server.
  4. Through CMC, i changed the database driver information to oracle.I also tried keeping the original settings and also gave the same name which i created DSN with.

but still could not generate the report.

Can u please tell me how to setup the Datadirect driver through CMS or any other way?


amit.sawji (BOB member since 2009-03-30)