Migrating reports to new database schema

Hi,
My company has numerous Crystal Reports .RPT files that work against the existing database schema, but we are moving to a new database with a significantly different schema.
Rather than have to manually recreate new RPT files for all the reports, it would be nice if it would be possible to automate the process.
I have looked through the documentation for the various Java APIs and am completely confused as to whether this is possible and, if so, the best way to do it.
Any help would be appreciated.
Thanks,
Carl

I did have Crystal Reports version 9 installed, as well as version XI, but I uninstalled everything and only reinstalled Crystal Reports XI release 2, and I still have the same problem.
Here is the code I am running:
package reporting;
import com.crystaldecisions.sdk.occa.report.data.*;
import com.crystaldecisions.sdk.occa.report.lib.*;
import com.crystaldecisions.sdk.occa.report.application.*;
import java.io.*;
import java.util.*;
public class TestReporting3 {
  public TestReporting3() {
  public static void main (String [] p_Args) {
    try {
      String path = "C:\\Samples\\Test3.rpt";
      ReportAppSession ra = new ReportAppSession();
      ra.createService("com.crystaldecisions.sdk.occa.report.application.ReportClientDocument");
      ra.setReportAppServer("inproc:jrc");
      ra.initialize();
      ReportClientDocument clientDoc = new ReportClientDocument();
      clientDoc.setReportAppServer(ra.getReportAppServer() );
     clientDoc.open(path, 0);
      ConnectionInfo info = new ConnectionInfo();
      info.setKind(ConnectionInfoKind.SQL);
      info.setPassword("client");
      info.setUserName("client");
      PropertyBag bag = new PropertyBag();
      bag.put("Server Type", "JDBC (JNDI)");
      bag.put("Database DLL", "crdb_jdbc.dll");
      bag.put("Connection String", "Use JDBC=b(true);Connection URL=s(jdbc:derby://localhost:6652/agency;create=true);Database Class Name=s(org.apache.derby.jdbc.ClientDriver);Server=;User ID=s(client);Password=;JDBC Connection String=s(!org.apache.derby.jdbc.ClientDriver!jdbc:derby://localhost:6652/agency;create=true!user={userid}!password={password})");
      bag.put("Use JDBC", "true");
      bag.put("Database Class Name", "org.apache.derby.jdbc.ClientDriver");
      bag.put("Server Name", "jdbc:derby://localhost:6652/agency;create=true");
      bag.put("URI", "!org.apache.derby.jdbc.ClientDriver!jdbc:derby://localhost:6652/agency;create=true!user={userid}!password={password}");
      info.setAttributes(bag);
      clientDoc.getDatabaseController().replaceConnection((IConnectionInfo)clientDoc.getDatabaseController().getConnectionInfos(null).get(0), info, null, 0);
      clientDoc.saveAs("NewTest3.rpt", "C:/Samples", 0);
      System.out.println("Done");
    } catch (Exception ex) {
      ex.printStackTrace();
The exception is being thrown by the line clientDoc.getDatabaseController().replaceConnection(...);
Regards,
Carl

Similar Messages

  • Creating new database schema in jdev

    can I create new database schema in jdev.If yes how?
    I have checked many links but they are telling how to create connection to an existing database but not to create new databse?
    Please help..

    I have checked many links but they are telling how to create connection to an existing database but not to create new databse?
    Database is required to be installed and a database instance created.
    Oracle Database Software Downloads | Oracle Technology Network | Oracle </title><meta name="Title" co…

  • Update physical layer - new database schema

    Can the physical layer be updated with new database schema? (Has a new table column) If so, how?
    userQHN

    Hi,
    If you import table which has changes you will get it ,if there is any new columns added.
    Regards,
    Somu

  • Impact of migrating to a new database on the existing code

    There is a java application that connects to postgreSQL as the database server. postgreSQL is installed under LINUX. I am planning to migrate the existing postgreSQL database to a SQL Server 2000 database under windows. In case of such an action will the application code need to be changed? If yes will it be a major change? Pls advise.

    I left my crystal ball at home today; plus, I've never seen the code for the application in question,so it's kind of hard for me to say. Maybe this is a bit of a stretch, but isn't that what you, as a developer, should be determining? Based on the question(s) in your original post, do you truly believe someone is going to respond with a concrete answer? Do you think everyone but you knows if the application will need to be changed; and, if so, how big of a deal it will be? Come on, give me a break.
    As for a few pointers that might help you come up with some answers:
    - Is the SQL SQL-99 compliant (i.e. least common denominator kind of stuff) or is it postgreSQL-specific?
    - Is the SQL fairly well contained within the code; or better yet in a separate file (.properties or XML)?
    - Are you using any kind of persistence layer?
    Jamie

  • Exchange 2010 SP3, UR7 after BSOD. Moving mailboxes to new database

    Yesterday our Exchange 2010 SP3, UR7 had an BSOD. To recover the services I was forced to do eseutil /p on all DBs.Current status is all DB's are mounted and data are accessible to users. I working on migrating mailboxes to new databases and to remove the old ones.1. I have issue with four move requests that were active during the BSOD. When I try to restart or remove them I end withEMCText--------------------------------------------------------Microsoft Exchange Error--------------------------------------------------------Action 'Remove Move Request' could not be performed on object 'Beňo Michal'.usernameFailedError:Failed to communicate with the mailbox database.MapiExceptionNotFound: Unable to open entry ID. (hr=0x80004005, ec=-1601)Diagnostic context:Lid: 55847 EMSMDBPOOL.EcPoolSessionDoRpc called [length=83]Lid: 43559...
    This topic first appeared in the Spiceworks Community

    Registration is Now Open to Publish on PowerShell GalleryWe are excited to announce that the PowerShell Gallery will accept registration from any users who wish to publish PowerShell modules and share their work with the world.For the past year, the PowerShell Gallery has been slowly adding content from our closest community contributors, most of whom are Most Valuable Professionals (MVPs) and internal Microsoft contributors. While we were building the basic features of the PowerShell Gallery, we restricted the set of people who could publish new modules, and required an approval step before allowing users to register. This approach provided the PowerShell team with an agile feedback loop to help design and to learn what gallery experience will be optimal for the broader PowerShell community.To contribute to the gallery you simply have...

  • Missing Discoverer reports after migrating the EUL to new Database.

    Our Environment is Discoverer Relational- OLTP
    We have recently migrated the source database from Oracle 9.2.0.6 to 10.2.00.0 RAC, this made us to migrate the Discoverer to new database in production.
    Below are the database objects we migrated to new database.
    1. EUL schema
    2. Schemas referred by the Objects in the EUL (schemas containing functions, tables, views etc)
    3. Based on trigger we created to filter active discoverer database accounts, migrated only active database users to new database.
    Note: we had almost 4000 Discoverer users from 2005, since many of these users moved out of company or not using discoverer permanently, and there are users who used discoverer once in year or once in 6 months.
    Finally we come up with 300 Active Discoverer users to be migrated to new database.
    Issues: After migration
    Some of the migrated users did not get their reports migrated which are shared by other users? [Since we didn’t migrate these users schemas as they are not active].
    We have queried the EUL5_DOCUMENTS table in new database for a particular inactive users account (account which is not migrated) is not showing any reports owned by him.
    Since we have migrated EUL schema and active users new database, is this will effect the EUL, [Information related to non active users gets deleted from the EUL in New Database]
    Some users who are not figured in the active migrated list are requesting to get access to discoverer on new database. Can you please suggest the correct way to migrate these accounts.
    Exporting the accounts will work?
    Thanks in advance.
    Sunil

    Kanchana Devasurendra wrote:
    Hi ARS,
    Please check the following item in your new database.
    1. log_archive_max_processes Most properbly value set for this parameter is low ( may be it's set to 1.) Please increase up ( 4)I am curious to know what makes you think 4 is the right magic number for log_archive_max_processes - after all, he's only got one archive destination.
    Regards
    Jonathan Lewis
    http://jonathanlewis.wordpress.com
    http://www.jlcomp.demon.co.uk
    A general reminder about "Forum Etiquette / Reward Points": http://forums.oracle.com/forums/ann.jspa?annID=718
    If you never mark your questions as answered people will eventually decide that it's not worth trying to answer you because they will never know whether or not their answer has been of any use, or whether you even bothered to read it.
    It is also important to mark answers that you thought helpful - again it lets other people know that you appreciate their help, but it also acts as a pointer for other people when they are researching the same question, moreover it means that when you mark a bad or wrong answer as helpful someone may be prompted to tell you (and the rest of the forum) what's so bad or wrong about the answer you found helpful.

  • Migrating Reporting Services to new Server - Subscriptions are not transfering

    Hello,
    I have an instance of SQL Server 2008R2 running on Windows Server 2008.  It is setup to be a reporting server.  There are many subscriptions that are scheduled and run on this server.  We are wanting to move to Windows Server 2012 and SQL Server
    2012.  So, we have built out a new VM and I have exported from the current server the ReportServer and ReportServerTempDB and have imported them to the new server.  I have resolved the one Orphaned user that happened and went to look for the subscriptions
    so that I could disable them so they wouldn't run.  I could not find any.
    select * from msdb.dbo.sysjobs where enabled = 1 and category_id = 100.
    no rows...
    I had read from other posts to let it sit for a few days and they will appear.  I have waited 2 weeks.
    So, what am I missing?  I would prefer to do a clean install and migrate the data over rather than upgrading the OS and SQL.
    Thanks

    Hi Sql Dude,
    Per my undersranding that you can't find any informamation related to the subscription in the sydjobs table after migration, right?
    You issue can be caused by many factors.Please check details information below:
    Please check if you can see all the subscription in the report manager and can create new subscriptions. The ReportServer database used by SSRS to store the subscriptions maintains a record of the subscription owner (as well as audit fields) which track
    the user accounts that have created/modified the subscriptions. 
    If you can't see subscription on the report manager and can create new subscriptions, the issue can be caused by "My subscriptions" had been created on the original non-domain server(Local User account).  Therefore, once the instance was migrated
    to a new server on the domain, said Local User was no longer available.  Every user with access to the ReportServer database has an entry created in the Users table and a unique GUID generated.
    To work around the issue, you can do a SQL Update query to changed the OwnerID and ModifiedByID fields on the Subscriptions table to relate to the GUID of the equivalent user on the domain.Tip:
    Change the Owner of SQL Reporting Services Subscription
    If you can see all the subsription on the report manager but can't find any job, please try to edit and update the subscription to see if it will recreate the job again and please also try to provide more details information in the log file to see if you
    got some error message, the path like:
    C:\Program Files\Microsoft SQL Server\MSRS11.SQLEXPRESS\Reporting Services\LogFiles
    If above didn't help, please reference to the similar thread below:
    Can't access SSRS 2008 R2 subscriptions after migration
    If you still have any problem, please feel free to ask.
    Regards,
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • Invalid database schema for product hyperion reporting and analysis

    I tried to re-configure the BI core service to a new database
    But I get the message "invalid database schema for product hyperion reporting and analysis"
    The database is a restore of a production backup on a different MSSQL2005 server.
    I can not believe its really a sql schema matter.
    Does anyone know whats wrong?

    You cannot restore a BI+ database from backup...It is somewehere in the doc. There a re lots of references to the old server and config in the BI+ tables and you d need to edit/remove some files on the file server too. There is a doc available to do that but its far from simple.
    Best way is to export the content of your repository, configure a new DB and then reimport the content.
    If you re really stuck, drop me an email and ill send you that doc. I think ive still got it.
    Seb
    www.taysols.com.au
    [email protected]

  • The database migration report don't show all the erros at creation time

    Hello experts,
    I'm using omwb to migrate a sql server database, i realize that at creation of oracle model there are few stored procedures that was not created.. those object doesn't appear in the Errors_and_Warnings_report.htm but in the logs. My question is why the report don't show those objects?
    Another question: how to list the objects that the tool was unable to create in the oracle model?
    best regards

    HHerrera,
    Are the stored procedures that were not created, but were not in the in the Errors_and_Warnings report, visible in oracle, i.e. is the text available in Oracle? If so, it would be easy to compile all the objects in your schema and do a select to see which stored procedures were invalid.
    Regards,
    Turloch

  • The migrated Crystal Report throws "The database logon information for this report is either incomplete or incorrect" error

    [ENVIRONMENT]
    Product version - BI4.1 SP03
    OS - Windows 2008 R2
    CMS Database - Oracle 11g
    Java Application Server - Tomcat7
    [ISSUE]
    Using the Upgrade Management Tool to completely migrate a BOXI3.1 SP3+FP3.6 to BI4.1 SP03.  The reporting database from both BOXI3.1 and BI4.1 are the same and so is the database logon credential.
    When viewing and refresh a migrated Crystal Report, it throws "The viewer could not process an event. The database logon information for this report is either incomplete or incorrect. [] ---- Error code:0 [CRWEB00000119]" error in both BI Launchpad and "The database logon information for this report is either incomplete or incorrect" in scheduled job.
    [STEPS TAKEN]
    - Update the Database Configuration with the SAME Oracle database password in CMC and "The database logon information for this report is either incomplete or incorrect" issue goes away.
    I search the SAP SMP and SCN forum and found no reference on this UMT and Crystal Report database logon problem.  Hope any of you have seen this problem and share if there is an ADAPT for it.
    Thank you in advance,
    Jin-Chong

    Hi,
    The BI4.1 SP03 server and client and Crystal Report 2013 SP03 developer and Crystal Report for Enterprise 4.1 SP03 are all installed onto this Windows 2008 R2 server.
    I am able to open the migrated report from CMS repository in Crystal Report 2013 SP03 developer and am able to refresh it with database logon password provided.  After save it back to the Enterprise, the database logon password field for this report in CMC becomes empty so that I have to enter the database password and choose "Use same database logon as when report is run" when viewing and scheduling report.
    What is interesting to me is that the UMT seems to migrate the report along the database logon password because I can see the encrypted password in the report database logon property in CMC.  The workaround is to reenter the database logon password in the report database logon property in CMC.
    With this said, there are hundreds of the Crystal reports and the workaround would consume lots of manual work by update each report's database logon password in CMC.
    For other customers who have more crystal reports, I wonder if there is an automated way to update the crystal report's database logon password on BI4.1 or if this is an isolated incident on my new BI4.1 SP03 environment.
    I run UMT in command line to perform livetolive migration, and my steps are listed below
    cd "E:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\java\apps\upgradeManagementTool\jars\"
    "E:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\win64_x64\sapjvm\bin\javaw.exe" -Xmx56g -Djava.library.path="..\..\..\..\win64_x64" -jar upgrademanagementtool.jar -internal_use_only_noversioncheck -responsefile LIVETOLIVEResponseFile.txt
    LIVETOLIVEResponseFile.txt:
    mode=livetolive
    source=edhc01nwapp65:6400
    sourceusername=Administrator
    sourcepassword=xxxxxxxxxx
    destination=WAPP246N:6400
    destinationusername=Administrator
    destinationpassword=xxxxxxxxxx
    logfile=E:\temp\livetolive.csv
    configparam:base_url=https://boprod.bsc.bscal.com/dswsbobje
    locale=en_US
    Regards,
    Jin-Chong

  • Need Database Schema diagram with reports names

    Dear Experts,
    I need retail and petroleum industry database schema diagram with different report requirements.
    If u have  Plz do share. I want to develop some reports as per requirements.
    If u have any sample dummy schema Plz do share, I will be much thankful to u. This is for fresher interview, I need to attain this week end.
    Regards,
    Mahesh.

    i dont think its possible with original exp/imp....and also not possible with data pump (10g and up)....but not sure on data pump....data pump has capability of restarting a job..but didnt heard about appending (atleast not that i heard).
    only way i can think of...create triggers on every table when DML happens and insert the new data into new tables...and then exp those new tables and import the new tables...thats the only way i can think of...again just my 2 cent....

  • TF244069: An error occurred while checking the provisioning status of the reporting database schema for a PWA instance.

    The command TfsAdmin ProjectServer /RegisterPWA causes next error:
    TF244069: An error occurred while checking the provisioning status of the reporting database schema for a PWA instance.
    Project Server returned the following error: "Server was unable to process request. ---> The request failed with HTTP status 401: Unauthorized.".
     (type ProvisionException)
    Exception Stack Trace:    at Microsoft.TeamFoundation.Sync.Provisioning.ProvisionPwaDBSchema.HandleSoapException(SoapException soapException, String errorResourceString)
       at Microsoft.TeamFoundation.Sync.Provisioning.ProvisionPwaDBSchema.IsDBSchemaProvisioned()
       at Microsoft.TeamFoundation.Sync.Provisioning.ProvisionManager.Provision()
    I installed SharePoint 2013 and Project Server 2013 as farm and TFS 2012 and my account has permissions everywhere. I read article
    http://msdn.microsoft.com/en-us/library/gg412653.aspx and gave full permissions for TFS account to SQL and Project, Project app pool account to SQL, but still have an error.
    How can I find out what exactly permissions are not enough???

    The problem was in claims authentication. Changed to Windows and all worked out.

  • New User Database schema and table name

    When i create a new user in Oracle Webcenter Spaces 11g, I am not able to get the name of the database schema and table, where it is stored. Any insight on this will be very helpful.

    WebCenter (and WebCenter spaces) uses an 'identity store' instead of database schema for storing user information - in an 'out of the box' installation, users are maintained through an embedded WebLogic LDAP store.
    See the Oracle Fusion Middleware Administrator's Guide for Oracle WebCenter, p. 34-2.
    At the end of section 34.4.1:
    WebCenter Spaces supports self-registration. When new WebCenter users
    self-register, they create their own login and password and a new user account is
    created in the identity store. See also, Section 34.4, "Allowing Self-Registration".
    user9097357 wrote:
    When i create a new user in Oracle Webcenter Spaces 11g, I am not able to get the name of the database schema and table, where it is stored. Any insight on this will be very helpful.

  • How can I import schema to a different tablespace in a new database?

    Hi,
    I want to transport a schema "abc", which is on 'USERS" tablespace in the old database, to a new database using Data Pump. But on the new server, I want it on a different tablespace, say "TEST". How can I do that? I tried the following but it does not work:
    1. Create a user "abc" on new database, assign "TEST" as its default tablespace;
    2. use impdp to import the dmp file;
    I found that on the new server, the imported tables are still on the "USERS" tablespace.
    Can anyone tell me how to do it? thanks a lot.

    Use the REMAP_TABLESPACE option:
    REMAP_TABLESPACE = source_tablespace:target_tablespace
    Rick

  • Migrating excel reports to new BO frame work

    Hi Friends
                     We got a new requirements to Migrate existing Excel reports to new BO framework,can you please explain how to achieve this.
    Regards
    Srinivas

    Sri,
    Can you elaborate what do you want to achieve? Are you talking about plain excel files to be exported to BO?
    Regards,
    Pratik

Maybe you are looking for

  • IPhone search not working after upgrading to 5.01

    Not sure why, but is anyone else experiencing this problem? I've reset my iPhone to to know avail.

  • Import command

    Hello, I created a java file, c:\com\mypackage.myjar.java. Then created a jar file without a manifest, myjar.jar. I want to use this jar file by importing it. import com.mypackage.myjar; I also edited my classpath to include c:\com\mypackage\myjar.ja

  • Stored procedure vs anonymouse block

    Hi all, I had an interesting problem and don't know why. My procedure takes the files from a directory and process them. using vx_xmltype.toobject(vo_object,..) I load xml files into sql object. create type in_obj as object (types varchar2(100)); cre

  • Assign text to E-Commerce B2B

    We are using CRM 5.0 and E-Commerce B2B. In text object CRM_ORDERI I assign new text ID's (ZD04) and text procedure (Z4) for sales item. I assign access sequence ISA_AG01 to the text ID. However text I added to documents in the E-Commerce web channel

  • Materialized View Stalesness Unusable

    Hi, I have a situation where a materialized view runs forever in SQL developer and doesn't comeback with a success message. I checked the properties of this Mview and it needed compiling (which i did). Post which the re run performance still doesn't