Issues changing the database info at runtime

Hi,
My Environment:
Crystal Reports 2008 SP2
ASP.NET (VS 2005 Framework 2.0)
Database: Oracle 10g
I developed the report connecting to development server and schema: ERA_USR. We have 2 reports that are desinged using store procedures and these stored procedure are put in a package both in system test and development database server.
When we moved to system testing, the reports that are using tables and views works fine. but the reports desinged using SPs are throwing below error: The schema is: ERA
"Failed to retrieve data from the database. Details: [Database Vendor Code: 6550 ] Failed to retrieve data from the database. Details: [Database Vendor Code: 6550 ] Failed to retrieve data from the database. Error in File ERRA Forecast Comparison - Position Report {3EAD55CB-4866-40D1-A9D7-DC0D5AFC924A}.rpt: Failed to retrieve data from the database. Details: [Database Vendor Code: 6550 ] "
But I change the report pointing to system test database, the reports that are desinged using SPs are working fine.
Please let me know what might be the problem
Thanks
Rama

If we change to new schema using designer, then the reports are working fine.
What I did is, I dropped the oracle package and compiled the SPs inidvidually. Now the report are working fine even if the SPs are in different schema and with out changing the report to the new schema in the desinger.
This solved my problem.
Thanks
Rama
Edited by: RAMAKRISHNA VUPPALURU on Jan 27, 2010 12:06 AM

Similar Messages

  • Facing problem while changing the database at runtime

    hi everyone,
    Before posting this thread, i have gone through the various posts addressing the problem....but still iam unable to get the solution for this problem.
    The report has been generated in one system, so the database properties (connection string....) are hardcoded in the report file...
    Now when iam trying to change the database, it is still connecting to the system where the report file was created.
    I have tried the changeDatasource() method, but it didnot worked....
    here is the code for changeDatasource() method
    public static void changeDataSource(ReportClientDocument clientDoc,
                    String reportName, String tableName,
                    String username, String password, String connectionURL,
                    String driverName,String jndiName) throws ReportSDKException {
            PropertyBag propertyBag = null;
            IConnectionInfo connectionInfo = null;
            ITable origTable = null;
            ITable newTable = null;
            // Declare variables to hold ConnectionInfo values.
            // Below is the list of values required to switch to use a JDBC/JNDI
            // connection
            String TRUSTED_CONNECTION = "false";
            String SERVER_TYPE = "JDBC (JNDI)";
            String USE_JDBC = "true";
            String DATABASE_DLL = "crdb_jdbc.dll";
            String JNDI_DATASOURCE_NAME = jndiName;
            String CONNECTION_URL = connectionURL;
            String DATABASE_CLASS_NAME = driverName;
            // The next few parameters are optional parameters which you may want to
            // uncomment
            // You may wish to adjust the arguments of the method to pass these
            // values in if necessary
            // String TABLE_NAME_QUALIFIER = "new_table_name";
            // String SERVER_NAME = "new_server_name";
            // String CONNECTION_STRING = "new_connection_string";
            // String DATABASE_NAME = "new_database_name";
            // String URI = "new_URI";
            // Declare variables to hold database User Name and Password values
            String DB_USER_NAME = username;
            String DB_PASSWORD = password;
            System.out.println("DB_USER_NAME......."+DB_USER_NAME);
            System.out.println("DB_PASSWORD......."+DB_USER_NAME);
            // Obtain collection of tables from this database controller
            if (reportName == null || reportName.equals("")) {
                Tables tables = clientDoc.getDatabaseController().getDatabase().getTables();
                System.out.println("Tables in reports........"+tables.size());
                for(int i = 0;i < tables.size();i++){
                    origTable = tables.getTable(i);
                    System.out.println("origTable........"+origTable.getQualifiedName());
                    if (tableName == null || origTable.getName().equals(tableName)) {
                        newTable = (ITable)origTable.clone(true);
                        // We set the Fully qualified name to the Table Alias to keep the
                        // method generic
                        // This workflow may not work in all scenarios and should likely be
                        // customized to work
                        // in the developer's specific situation. The end result of this
                        // statement will be to strip
                        // the existing table of it's db specific identifiers. For example
                        // Xtreme.dbo.Customer becomes just Customer
                        newTable.setQualifiedName(origTable.getQualifiedName());
                        System.out.println("newTable........"+newTable.getQualifiedName());
                        // Change properties that are different from the original datasource
                        // For example, if the table name has changed you will be required
                        // to change it during this routine
                        // table.setQualifiedName(TABLE_NAME_QUALIFIER);
                        // Change connection information properties
                        connectionInfo = newTable.getConnectionInfo();
                        // Set new table connection property attributes
                        propertyBag = new PropertyBag();
                        // Overwrite any existing properties with updated values
                        //propertyBag.put("Trusted_Connection", TRUSTED_CONNECTION);
                        //propertyBag.put("Server Type", SERVER_TYPE);
                        propertyBag.put("Use JDBC", USE_JDBC);
                        propertyBag.put("Database DLL",DATABASE_DLL );
                        propertyBag.put("JNDI Datasource Name",JNDI_DATASOURCE_NAME );
                        propertyBag.put("Connection URL", CONNECTION_URL);
                        propertyBag.put("Database Class Name", DATABASE_CLASS_NAME);
                        //propertyBag.put("Server Name", SERVER_NAME); //Optional property
                        // propertyBag.put("Connection String", CONNECTION_STRING); //Optional property
                        // propertyBag.put("URI", URI); //Optional property
                        connectionInfo.setAttributes(propertyBag);
                        // Set database username and password
                        // NOTE: Even if the username and password properties do not change
                        // when switching databases, the
                        // database password is *not* saved in the report and must be set at
                        // runtime if the database is secured.
                        connectionInfo.setKind(ConnectionInfoKind.SQL);
                        connectionInfo.setUserName(DB_USER_NAME);
                        connectionInfo.setPassword(DB_PASSWORD);
                        // Update the table information
                        clientDoc.getDatabaseController().setTableLocation(origTable,newTable);
    Also i tried with replaceConnection() method...........it displayed the report, but with not column names and data
    need help regarding.......
    Edited by: abhishek.c1984 on Jun 25, 2009 10:02 AM

    In the report i have two tables.............so before changing the database properties for each table iam printing their names.
    The names are dispalyed correctly.......but once i set the table location...i.e through the following method..
    clientDoc.getDatabaseController().setTableLocation(tables.getTable(i),newTable);
    every time i can see only one table i.e. properties are set for the first table ........and each time the properties are being set for the first table only.....i dont no what is happening to the rest of the tables..
    I have posted the method in the above post.....can any one please trace out the problem
    Note: when i comment the following code, i can see all the tables
    clientDoc.getDatabaseController().setTableLocation(tables.getTable(i),newTable);
    when i uncomment it, i can see only first table repeating every time...
    Edited by: abhishek.c1984 on Jun 25, 2009 1:03 PM

  • Changing the Database driver causing performance issue

    Hello Experts
    I am finding a strange issue where if I change the database to Oracle 11g ( you will find it if you click the database which you have created in physical layer) under Data Source definition the report takes a longer time to complete.
    Actually I have upgraded the 10g rpd and catlog to 11g but database under data source definition was still using - oracle 10gR1 ( i donno whether this is a driver or not) . Everthing was running perfectly fine until I change the database under data source definition to Oracle 11g , the report takes a longer time . Also I found that the query is changed when I changed the database under data source definition to 11g.
    Also to inform you that datawarehouse is Database 11g where the data lies.
    what is the significance of Data source definition as changing it is changing the whole query.
    Pls. help.

    Hello,
    Do you have the Full Oracle 11g DB Client installed on the same box where you are running your BI Server .? Also can you make sure you have copy of tnsnames.ora in following directories.
    1. C:\Middleware\Oracle_BI1 \network\admin directory
    2. C:\Middleware\oracle_common\network\admin
    Check if the SQL Features that the datasource has , sometimes when you disable SQL features the server could issue a less effcient query to the database.
    Thanks,
    -SVS

  • Change the database charecterset in 9.2.0.7

    Hi,
    we have 9.2.0.7 database running on HP-UX Itanium 64bit.
    we have current WE8MSWIN1252 as the charecter set. we use this db for banking application. This Database contains english and Arabic data also.
    so we are in the process of upgrade of banking application and new apps version is not supporting the our current database charecterset.
    so we need to change our database charecter set from WE8MSWIN1252 to AR8ISO8859P6.
    our database contains 1500 tables and in that 200 tables contains millions of rows and contains arabic data also.
    so guys, please suggest me with best strategies and preacuations, that i have to follow during the charecterset migration?
    Edited by: oraDBA2 on Apr 13, 2009 11:29 AM

    If you expect that the database is currently storing Arabic data in CHAR/ VARCHAR2 columns and that the database character set is Windows-1252, you have a problem. Windows-1252 does not support Arabic characters. So if you have stored Arabic characters in a Windows-1252 database, there must be a substantial configuration issue which is going to make changing the database character set massively more complicated.
    Realistically, you are going to have to jump through some hoops by
    - unloading all the data to flat files using a tool that respects the NLS_LANG of the client machine (and setting the NLS_LANG to match the database server character set)
    - determining the actual character set used to encode the Arabic data (which may or may not be ISO 8859-6)
    - Using SQL*Loader (with a control file that specifies the actual source character set) to load all the data into a new database with the proper database character set
    You're not going to be able to use Oracle tools like import and export here since that would involve doing a character set conversion that would further corrupt your data.
    Justin

  • Change the Database Name in Essbase Studio

    Hi All,
    Happy new year to all of you.
    Is there a way to change the database name in Essbase Studio, what I can see now once we have registered a database in Database Sources panel, we can't change the Database Name because it is always grayed out but the server name, user name and password can be changed.
    Actually I have mentioned this issue to our team before starting development and they proposed me the schema that I can use, but suddenly our client did not agree with it that we have been using, and then our client asked us to use another schema, FYI we are using Oracle Database as the data source.
    Can you guys here share how to manage this situation.
    Thanks,
    Rudy

    For Essbase Studio, the configuration metadata are saved as CP_tablenames, look for the CP tables, and make proper database change for the database name.
    1. Make a Oracle backup for the CP tables before you change the metadata so that you can get back in case if error
    2. Change the CP_CONNECTION TABLE, NAME column
    3. Change the CP_SOURCE table, column DNAME, for example, it is called TBC.Sales, change to NewDB.Sales
    I am not sure if there are other table also need to be updated, anyway, when you update the DBname in the metadata level, everything should be consistent in all of the related tables. Here, I assume the new db has the same table names as the old db, if the new db has very different table names, recreating everything may be easier and has less risk.
    http://hyperionexpert.blogspot.com/
    Bob

  • How to change the authorization info. if I have 2 accounts with Adobe?

    First of all hi to all,
    The matter is that my BPP's books were initially authorised with my first adobe's account; BUT currently when I'm opening my adobe digital editions the authorisation info. is staying for my 2nd account and thus I am not able to use my urls for BPP's editions.
    Kindly inform me of how to change the authorisation info. in my place - in order the adobe digital editions will be authorised for my  first account otherwise I cannot use my books.
    I've carefully studied the prog. but I didn't find any properties opportunities where I could change these settings - no simple rules for changing authorisation info?!
    The deinstallation and reinstallation processes afterwards didn't help either.
    Kindly help to find a magic solution for such a trivial situation Adobe didn't foresee.
    YF,
    Andrey

    Please be more specific as to "creating a new OS User Account, and then authorizing ADE on that account with your other AdobeID."
    I authorized my laptop with my email ID user name, but later when I authorized my netbook, I used a second adobe signon by mistake.  Now I can't read half the books on my Nook as some had been authorized by one account and some by another.  I would like to either deauthorize and reauthorize the second account, but uninstalling and reinstalling did not work.  I will try the ctrl-Shift-D, once I see what should be open when I try that tactic, but if there is a way to have both accounts authorized on the same Nook, I would be happy with that.  All I want is to be able to read all my stuff, regardless of which authorization I used.  The idea of authorization concept creates a lot of confusion and issues.

  • How do I change the copyright info and links in collection pages?

    Can anyone tell me how I can change the copyright info and links on a collection page using the new updated Public Site Manager?
    1. When I click on 'Configure selected collection' there doesn't seem to be an option to edit copyright information and I've tried editing the info in Settings > Copyright Notice but it doesn't filter through to the collection pages.
    2. When I click on 'Configure selected collection' the links tab is empty but on my collection page there is a link called 'website' which links to our University website but the url is incorrect so I need to change it.
    Example screenshot -
    Thanks

    Also when I add a url list to a collection page and then delete all the links I'm left with a blank url list showing in preview page in iTunes. This should not happen, the admin guide says -
    "To delete a collection page URL list, delete all the links in the list. When you publish, if you have a URL list with no links, iTunes U Public Site Manager hides the empty URL list."
    It doesn't. At least it doesn't for me when I preview the collection in iTunes.
    Example screenshot

  • How can I change the media info from Concert Film to Music Video in ITunes 11.01.12

    I purchased a concert film a while back from the ITunes store, and in previous versions of ITunes, I had been able to change the media info from concert film to music video so I could watch it in my library (and any devices) without losing any of my library when I synced my devices (could only have either music, movies or tv shows on device - stupid I know), now with the new version, that option is greyed out, so I can't change anything, is there any way around it?
    Thanks so much!

    When you say "remove his account", do you mean remove his Apple ID as well as all his stuff (music, movies, and whatever else is housed in iTunes)?  If so, delete all his stuff (music, etc.), have him deauthorize the computer (Store > Deauthorize This Computer), and sign out of his account (Store > Sign Out) and then sign in to yours.
    If all you want to do is remove his Apple ID and not fuss with his stuff, then things get more complicated, because you do not own his stuff.

  • How to change the database in a business area

    Hello All,
    I am trying to figure out a way to change the database that a business area connects to. When I created the business area I selected to look at tables from the default database. Now I need to change that setting to connect to a different database. The tables are exactly the same on both databases. I just need to change the database that the business area looks at.
    Is there a simple way of accomplishing this? I want to avoid having to recreate the business area.
    Thank you very much in advanced for your help with this matter.
    Del Benavides.

    Hi,
    Select all your folders in Disco Administrator,ALT+ENTER to go to properties, then change the database from the default database to the remote database.
    Hope that helps,
    Rod West

  • I can sign on to the iTunes store using my ID but when I want to check my billing information (to change the existing info) it wont accept my password? What do I do?

    I can sign on to the iTunes store using my ID but when I want to check my billing information (to change the existing info) it wont accept my password? What do I do?

    Adding Open DNS codes to your Network Preferences, should give good results in terms of speed-up as well as added security, (including anti-phishing and redirects) (Full information about Open DNS is here: http://www.opendns.com/home/nobloat ) and further independent information can be read here:
    http://reviews.cnet.com/8301-13727_7-57338784-263/free-dnscrypt-tool-enhances-ma c-web-security/?tag=mncol;txt
    and here:
    http://www.macworld.com/article/1146064/troubleshootdns.html?t=234
    Open System Preferences/Network. Double click on your connection type, or select it in the drop-down menu, and in the box marked 'DNS Servers' add the following two numbers:
    208.67.222.222
    208.67.220.220
    (You can also enter them if you click on Advanced and then DNS)
    Sometimes reversing the order of the DNS numbers can be beneficial in cases where there is a long delay before web pages start to load, and then suddenly load at normal speed:
    http://support.apple.com/kb/TS2296

  • Getting errors after changing the Database

    Previously I was using a different database connection for my adf application.Now i have changed the database connection through project properties->business components. I also deleted the details of the previous connection from connection.xml file. But still i'm getting the error about the previous connection.
    Please share your opinion to get rid of this problem.

    Try this.
    1. Menu->View->Database->Database Navigator
    2. Find your application specific connection.
    3. Check properties of the connection, update/recreate, test the connection using Test button.
    4. Menu->Build->Clean All

  • How do I change the my info name in Siri

    I have recently got an iPad wi-fi cellular 16gb. In the Siri settings it has my wife's name so it uses all her contacts. How do I delete her off the iPad and enter my details?

    Hi Richard,
    Was this previously your wife's iPad?  If so it sounds like it has all her details on it still, if you are happy to get rid of all the info on here you can go to Settings>General>Reset> and choose the option to delete/erase all settings, this will restore iPad to factory defaults - as if you'd just purchased it new, however only do this if you don't require any info stored on the device as it will of course delete everything.
    If however you just wish to change the My Info you need to have an entry in Contacts for yourself, once done go to Settings>General>Siri>My Info and select your Contact card from the list.
    Regards,
    Steve

  • Can't change the payment info

    Dear all,
    I need urgently to change the payment info of my creative cloud.
    The system refuse the change & still asking to change the payment info
    i saw a lot of demands about the same problems but can't figure out my problem.
    Please help, really need to have access to creative cloud asap.

    Hi Verwi,
    Are you still struggling? You should be able to update it with the steps described here: http://helpx.adobe.com/x-productkb/policy-pricing/membership-subscription-troubleshooting- creative-cloud.html
    - Dave

  • Can I change the database Listener name in 11.5.10.2

    Hi Hussen
    Is it possible to change the Listener name and port on database node. My Application is of 4 node env. 2 rac database nodes 2 shared application tier nodes.
    My requirement is to change the Database node listener name and port.
    Thanks
    reddy

    Reddy,
    It is possible -- Please see (How to change the hostname and/or port of the Database Tier using AutoConfig [ID 338003.1]) for details.
    However, it is always recommended you have the ports on the application/database tier nodes within the same port pool -- See (How To change the Port Pool in the E-Business Suite 11i [ID 414439.1]).
    Thanks,
    Hussein

  • Change the database log on parameters in the run time with CR10 Delphi2007?

    Hi,
    I'm using crystal report 10 and Crystal VCL for Delphi. How can I change the database log on parameters in the run time?

    You have to use the ConnectBuffer. See [this|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do] note for details.
    Also, consider searching the notes database:
    https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_ossnotes&query=&adv=true
    The search; VCL database crystal, returns a number of notes that may be of use.
    Ludek

Maybe you are looking for

  • Update from Mac OS 9.2 to Mac OS X

    I am trying to update my OS(9.2) to OS X(10.4). After inserting the dvd, it prompts me to restart the computer to begin installation. After restarting, I am welcomed with the familiar apple image that shows up on a Mac OS X system. Anyway, the screen

  • How to add a checkbox to PHP in DW4?

    I'm using DW 4 and need to add a check box/tick box in a PHP document. Is there an easy way to do it in DW where it inputs the checkbox code & allows you to add text next to the checkbox?

  • Keyword.url gets changed to slirsredirect

    Some process is changing keyword.url in about:config to the following URL.... http://slirsredirect.search.aol.com/slirs_http/sredir?sredir=2685&invocationType=tb50ffwinampab&query= I've tried uninstalling WinAmp, but the issue is not resolved. I can

  • Slow boot time on k7n2-l

    i just installed a new 80gb maxtor hd with 8mb cache.  and now, it takes my pc 1 minute to boot.  before it was like 30 secs. to those with two harddrives not in raid array, can you tell me how long it takes your pcs to boot.  thx.

  • Some Niggling Issues with X6-00 16GB

    Issues with the current software. Most still there after the latest software update to v31.0.004 1. Music player volume control refuses to function sometimes from the remote volume adjustment provided in the headset. >Volume adjustment when other app