Changing Physical Data Source in DAC
I need to extract data from DEV2 instance of Siebel instead of DEV1.
So i have change the database name, user name and password under Physical Data Sources tab under Setup for the SEBL_VERT_80 datasource.
I have generated parameters and rebuilt the execution plan. However when I run the execution plan some tasks fail and I notice in the session log that the ETL tasks are still trying to extract data from the DEV1 instead of DEV2.
Can someone please let me know what I may be missing? How can I make DAC run ETLs against the DEV2 database?
Thanks
My first thought is that the connections need to be reconfigured in another place.
Have you changed the realtional connections in the Informatica PowerCenter Workflow Manager?
Some worfklows might be configured to retrieve database connection information from there.
- In Worfklow Manager connect to the appropriate repository
- Select "Connections" -> Relational
- Review the connections specified.
- Austin
Similar Messages
-
Setting up MS SQL Server as a physical data source in DAC
Hi everyone,
I'm working with the latest version of BI Apps (7.9.6) and OBIEE 10.1.3.4.1. I've installed Informatica 8.6.1 and DAC on Oracle Red Hat Enterprise Linux 5.4 64bit.
So far, everything has gone along relatively well.
Now I'm hitting an issue as I am trying to setup a DAC physical connection to our source system. We are pulling from a MS SQL Server physical source. When ever I try to connect to the MS SQL server using the DataDirect ODBC drivers from the Linux, it works fine. But when I try to test the connection using the DAC, it fails saying "Failure connecting to "<connection name>"! MSSQL driver not available!"
Has anyone successfully connected to MSSQL server as a source from the DAC? I checked the DAC documentation but it was definitely not helpful in this situation.
Thanks for the advice.
-JoeI've got an outstanding SR with Oracle at the moment to resolve this same problem. If I get a resolution I'll update this blog.
The problem is microsoft no longer supports MSSQL JDBC Driver 1.1, 1.2. You cannot get the 3 files msbase.jar, mssqlserver.jar and msutil.jar files. It only gives you the sqljdbc.jar file. I'm trying to get these files to see if it makes a difference.
You need to have the four files both on your Windows ~DAC\lib directory and the Unix $DAC_HOME/lib directory. Then make changes to the connection_template.xml to uncomment the SQL SERVER 2000 bit and include the SQL SERVER 2005 bit and finally make changes to the config.sh file to include the following
export SQLSERVERLIB=./lib/msbase.jar:./lib/mssqlserver.jar:./lib/msutil.jar:./lib/sqljdbc.jar
Edwin
Edited by: bebedi123 on 05-May-2010 07:36 -
DAC Physical data source not visible in task tab
Hello
I successfully created a new physical source and it connects well also. Then I went to the tasks tab and created a new task but I can't see the new physical data source I just created. How do I broadcast/publish or push the connection details to the tables, tasks, etc? You know without this even execution plan would fail
Any help would be helpful
ThanksHi
If the task is of type Informatica,I think it is because that you didnot synchronize the task,If it is not informatica rather a stored procedure or so........you need to add target tables......Hope this helps
regards -
Data warehouse Admin Console - MySQL Physical Data Source
We have some tables on a MySQL database that we'd like to include in our ETL process. The data is to be loaded into our Oracle 11g R1 data warehouse after the transformations are completed.
Everything works with the exception of adding a physical data source in the DAC (Data warehouse administration console) for the MySQL database. There is no connection type for this database. I don't see how it's setup in the documentation.
Can someone explain what needs to be done or direct me to the docs? Or, can this be done?
Does it have to be done? The connection details are stored in the odbc.ini file on the server. So that's managed by Informatica. Will the workflow call from the DAC be sufficient?
Thanks,
LWatkins
DAC 10.1.3.4.0.20080729.2025
Informatica PowerCenter 8.1.1
AIX 5.3/64Bit
OBIA 7.9.5
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit
MySQL 5.5
Edited by: LWatkins on Mar 25, 2013 12:32 PMI would suggest this work only if you are able to connect MySQL thru Informatica;
1) Create Connection in Worflow Manager and try to use the same connecton in sessions and try to avoid parameters from dac
2) Create same connection in DAC pointing to Oracle or MSSQL or DB2
3) Add tasks in DAC and do not add source and target tables
Another workaround to handling full loads using dac system variables or any other
If helps mark
Edited by: Srini VEERAVALLI on Mar 25, 2013 4:49 PM -
Crystal ActiveX Runtime Lib: Change text data source path at run time.
We have some PCs running Crystal Reports 10 and some running CR 9 and 8.5. For each PC, we set up a System DSN ODBC data source (in Control Panel - Administrative Tools) for pulling data from text files to
generate reports.
Recently we wrote some routines (see the Visual Basic example at the
end of this message) to change the path of the data files at runtime.
According to the Crystal Reports Technical Reference Guide, we may use
the method LogOnServer() of an Application object or an DatabaseTable
object. However, we find that this does not work: the PrintOut()
method only pulls data from the default path as configured for the
System DSN, not from the path passed as the third parameter of
LogOnServer(). It does not return any error message.
We have also tried to use SetTableLocation() method, and it still does
not work.
Would any experts examine our code below and advise what we are missing? Thanks.
For the following VB example, we have:
System DSN Name: AP_WORKSHEET
Driver: Microsoft Text Driver
Database Directory: D:\0ood2 (i.e. the default path)
Crystal Report Document: D:\3g\run\Vision\apcyto\Reports\crBlockWS.rpt
(Which specifies that the data source text file name is BlockWS.txt)
Purpose : We would like to read the data source text file from
D:\0ood1 instead of the default path.
Following is the code of the VB macro:
Sub test()
Rem In this version of the subroutine, we call
Rem DatabaseTable.LogOnServer() and "Rem"ed out
Rem Application.LogOnServer() and SetTableLocation().
Rem We have un"Rem"ed each of them and "Rem"ed others and try to run.
Rem In all runs, data are pulled from the default file
Rem D:\0ood2\BlockWS.txt instead of D:\0ood1\BlockWE.txt.
Dim crxapp As CRAXDRT.Application
Dim crxRep As CRAXDRT.Report
Dim crxDB As CRAXDRT.Database
Dim crxTab As CRAXDRT.DatabaseTable
Dim crxConnPs As CRAXDRT.ConnectionProperties
Dim crxConnP As CRAXDRT.ConnectionProperty
Dim apropSubLoc As String
Dim apropConnBufStr As String
Set crxapp = CreateObject("CrystalRuntime.Application")
Rem
crxapp.LogOnServer "p2sodbc.dll", "AP_WORKSHEET", "<CRWDC>DBQ=D:\0ood1",
Set crxRep = crxapp.OpenReport
("D:\3g\run\Vision\apcyto\Reports\crBlockWS.rpt")
Set crxDB = crxRep.Database
Set crxTab = crxRep.Database.Tables(1)
apropConnBufStr = crxTab.ConnectBufferString
apropSubLoc = crxTab.SubLocation
crxDB.LogOnServer "p2sodbc.dll", "AP_WORKSHEET", "<CRWDC>DBQ=D:\0ood1",
Rem crxTab.SetTableLocation "D:\0ood1\BlockWS.txt", apropSubLoc, "DSN="
Rem Set crxConnPs = crxTab.ConnectionProperties
Rem Set crxConnP = crxConnPs.Item("DSN")
Rem crxConnP.Value = "AP_WORKSHEET"
Rem Set crxConnP = crxConnPs.Item("Database")
Rem crxConnP.Value = "D:\0ood1\BlockWS.txt"
Rem crxTab.Location = "BlockWS.txt"
crxRep.DiscardSavedData
crxRep.PrinterSetup (0)
crxRep.PrintOut
End Sub
For VB macros, the problem exists in all of CR 8.5, 9 and 10. However,
for another platform we are using, Unify Vision 4GL, it works for CR
8.5 while not working for CR 9 and 10.
Following is the source code in Unify Vision 4GL. This language may
not be popular, but I thin you are about to see how it calls the
Runtime Library methods LogOnServer(), OpenReport(), PrinterSetup() and
PrintOut().
%gfPrintCrystalReport
BOOL FUNCTION gfPrintCrystalReport($reportName)
BEGIN
if NOTMKNOWN(GF:$oSeagateId) then
create service of activex
class 'CrystalRuntime.Application'
object_ref into GF:$oSeagateId;
if MKNOWN(GF:$oSeagateId) then
begin
/* TD23013: Database directories are dynamic to
accommodate multiple user requirement of Citrix */
send message LogOnServer to GF:$oSeagateId
using
( 'PDSODBC.DLL', 'AP_WORKSHEET', '<CRWDC>DBQ='+GF:$WinTempDir,'','')
identified by $msgHandle;
if $msgHandle:MSG_STATE 'RESPONSE_PROCESSED'
then
begin
display 'Crystal Reports cannot connect
to the datasource ' for fyi_message wait;
return (FALSE)
end
send message OpenReport to GF:$oSeagateId using
($reportName, 1)
identified by $msgHandle returning
$oCrystalReport
if MKNOWN($oCrystalReport) then
begin
if (NOTMKNOWN(GF:$printerName)) then
set GF:$printerName to
$oCrystalReport->PrinterName;
if GF:$printerName $oCrystalReport-
PrinterName then
send message SelectPrinter to
$oCrystalReport
using
(GF:$driverName,GF:$printerName,GF:$portName)
identified by $msgHandle;
set $oCrystalReport-
DisplayProgressDialog to FALSE;
while TRUE
begin
DISPLAY NOTICE 'Print to : ' +
GF:$printerName
LABELS 'Ok'
DEFAULT, 'Cancel', 'Printer Setup'
RESULT INTO $userOption
switch ($userOption)
begin
case 0 :
send
message PrintOut to $oCrystalReport
using
(PROMPT_USER, NUMBER_OF_COPIES, COLLATED, START_PAGE, STOP_PAGE)
identified by $msgHandle;
set
$oCrystalReport to UNDEFINED
return
(TRUE);
case 1:
set
$oCrystalReport to UNDEFINED
return
(FALSE);
case 2:
send
message PrinterSetup to $oCrystalReport
using
(0)
identified by $msgHandle;
if
GF:$printerName $oCrystalReport->PrinterName then
begin
set GF:$printerName to $oCrystalReport->PrinterName;
set GF:$driverName to $oCrystalReport->DriverName;
set GF:$portName to $oCrystalReport->PortName;
end
break;
end
end
end
end
return
(FALSE);
ENDHi Sydney,
If you search the Developers help file you'll find info on using the method:
How to change the data source
This example demonstrates how to change the data source from native Access to an OLEDB (ADO) data source by using the ConnectionProperty Object, as well as how to change the table name by using the Location property of the DatabaseTable Object. CrystalReport1 is connected to the xtreme.mdb database found in the \Program Files\Crystal Decisions\Crystal Reports 10\Samples\En\Databases folder. The report is using the Customer table. A copy of the Customer table is added to the pubs database on Microsoft SQL Server.
' Create a new instance of the report.
Dim Report As New CrystalReport1
Private Sub Form_Load()
' Declare a ConnectionProperties collection.
Dim CPProperties As CRAXDRT.ConnectionProperties
' Declare a DatabaseTable object.
Dim DBTable As CRAXDRT.DatabaseTable
' Get the first table in the report.
Set DBTable = Report.Database.Tables(1)
' Get the collection of connection properties.
Set CPProperties = DBTable.ConnectionProperties
' Change the database DLL used by the report from
' native Access (crdb_dao.dll) to ADO/OLEDB (crdb_ado.dll).
DBTable.DllName = "crdb_ado.dll"
' The connection property bags contain the name and value
' pairs for the native Access DLL (crdb_dao.dll). So we need
' to clear them, and then add the name and value pairs that
' are required to connect to the OLEDB data source.
' Clear all the ConnectioProperty objects from the collection.
CPProperties.DeleteAll
' Add the name value pair for the provider.
CPProperties.Add "Provider", "SQLOLEDB"
' Add the name value pair for the data source (server).
CPProperties.Add "Data Source", "ServerA"
' Add the name value pair for the database.
CPProperties.Add "Initial Catalog", "pubs"
' Add the name value pair for the user name.
CPProperties.Add "User ID", "UserName"
' Add the name value pair for the password.
CPProperties.Add "Password", "password"
' Set the table name. ' for SQL types it would be "database.dbo.table"
DBTable.Location = "Customer"
Screen.MousePointer = vbHourglass
' Set the report source of the viewer and view the report.
CRViewer1.ReportSource = Report
CRViewer1.ViewReport
Screen.MousePointer = vbDefault
End Sub -
Trying to change the data source for a Crystal Report.
<p>The method below represents my best attempt to programatically change the data source of a Crystal Report. The goal is to have a routine that will update the data source for reports after they have been distributed to production servers. So far I have not been successful in saving the report back to the CMS. No exceptions are thrown, but when I view the Database Configuration of the report in the CMC nothing has changed.
</p>
<p>
Am I missing a step, or is there another way to accomplish this?
</p>
<p>
Thank you.
</p>
<hr />
<pre>
private void test(String reportName)
throws SDKException, ReportSDKException, java.io.IOException
IInfoObjects newInfoObjects;
IInfoObject reportObj;
ReportClientDocument clientDoc = new ReportClientDocument();
DatabaseController dc;
PropertyBag pBag;
PropertyBag logonProps;
ConnectionInfo newConInfo;
ConnectionInfo oldConInfo;
ConnectionInfos conInfos;
int connOptions = DBOptions._ignoreCurrentTableQualifiers + DBOptions._doNotVerifyDB; //0;
Fields connFields = null;
String queryStr = "Select * From CI_INFOOBJECTS " +
"Where SI_NAME='wfr.rpt' AND SI_KIND='CrystalReport' AND SI_INSTANCE=0";
newInfoObjects = getCms().executeQuery(queryStr);
if(newInfoObjects.size() > 0)
reportObj = (IInfoObject)newInfoObjects.get(0);
try
clientDoc = getCms().getReportAppFactory().openDocument(
reportObj
, OpenReportOptions._refreshRepositoryObjects
, java.util.Locale.US);
dc = clientDoc.getDatabaseController();
conInfos = dc.getConnectionInfos(null);
for(int i = 0; i < conInfos.size(); ++i)
oldConInfo = (ConnectionInfo)conInfos.getConnectionInfo(i);
newConInfo = (ConnectionInfo)oldConInfo.clone(true);
pBag = newConInfo.getAttributes();
pBag.putStringValue("QE_ServerDescription", "alio");
logonProps = new PropertyBag();
logonProps.putStringValue("Trusted_Connection", "false");
logonProps.putStringValue("Server", "alio");
pBag.put("QE_LogonProperties", logonProps);
newConInfo.setUserName("admin");
newConInfo.setPassword("password");
dc.replaceConnection(
oldConInfo
, newConInfo
, connFields
, connOptions);
catch(ReportSDKServerException Ex)
String msg = "A server error occured while processing the " + reportObj.getKind()
+ " object, " + reportObj.getTitle() + " (" + reportObj.getCUID() + "), from the CMS.";
Utility.errorOut(msg, Ex);
catch(Exception Ex)
String msg = "An error occured while processing the " + reportObj.getKind()
+ " object, " + reportObj.getTitle() + " (" + reportObj.getCUID() + "), from the CMS.";
Utility.errorOut(msg, Ex);
finally
clientDoc.save();
getCms().commitToInfoStore(newInfoObjects);
clientDoc.close();
</pre>
Edited by: Mark Young on Sep 10, 2009 2:16 PM<style type="text/css">
/<![CDATA[/
body
font-size: 1.125em;
font-family: helvetica,arial,"sans-serif";
.code{font-family: "courier new",courier,mono,monospace}
.bi{font-style: italic; font-weight: bold;}
/]]>/
</style>
<p>Justin,</p>
<p>
Thank you for the reply. Time constraints have not allowed me to post back to this tread
till now. I will try your suggestion. My assumption is that <i>Save the report back to the
info store</i> refers to <span class="code">IInfoStore.commit(IInfoObjects)</span>.
</p>
<p>
I'm afraid that I do not understand why I don't want to change the report client document,
or why <i>successfully exporting the report with the new login/password</i> is not what I
want to do. Any explanation on that statement would be appreciated.
</p>
<p>
I did find a way to accomplish my goal. It involved adding the SSOKEY property to the
logon property bag. Below you'll see my revised code which modifies the report logon and
server. I have no idea what
this does, and SAP support has not been able to tell me why it works. However, what I
discovered is that if I changed the report option, <b>Database Configuration -> When
viewing report:</b>, in the CMS to <span class="bi">Use same database logon as when report
is run</span> from <span class="bi">Prompt the user for database logon</span>, then the
SSOKEY property had been added to the logon property bag having an empty string as its
value. This allowed me to successfullyupdate and save the modified logon back to the CMS.
</p>
<p>
So I took a chance and added code to always add the SSOKEY property with an empty string
as its value, and I could then successfully modify and save the report's logon info
and server. Again, I don't know what this means, but it has worked so far. If anyone has
some insight or comments, either are welcome. Thank you in advance.
</p>
<br />
<hr />
<pre>
private void changeDataSourceOfAWFCrystalReports()
throws SDKException, ReportSDKException, java.io.IOException
IInfoObjects newInfoObjects = null;
IInfoObject reportObj = null;
IReport curReport = null;
ReportClientDocument clientDoc = new ReportClientDocument();
DatabaseController dbController;
PropertyBag pBag;
PropertyBag logonProps;
ConnectionInfo newConInfo;
ConnectionInfo oldConInfo;
ConnectionInfos conInfos;
int connOptions = DBOptions._ignoreCurrentTableQualifiers + DBOptions._doNotVerifyDB;
Fields connFields = null;
String outputStr;
int numOfReports;
int numOfQueryPages;
double progressIncrementPerPage = 30;
int progressIncrementPerReport = 0;
// Path query to reports is in a .properties file.
String queryStr = getAppSettingsFile().getWscAwfCrystalReportPathQuery();
try
// Executes IInfoStore.getPageingQuery() and generates a list of queries.
getCms().setPathQueryQueries(queryStr, 100);
numOfQueryPages = 0;
// Gets a List<String> of the IPageResult returned from IInfoStore.getPageingQuery().
if(getCms().getPathQueryQueries() != null)
numOfQueryPages = getCms().getPathQueryQueries().size();
if(numOfQueryPages > 0)
// Use 30% of progress bar for the following loop.
progressIncrementPerPage = Math.floor(30.0/(double)numOfQueryPages);
for(int queryPageIndex = 0; queryPageIndex < numOfQueryPages; ++queryPageIndex)
// Gets the IInfoObjects returned from the current page query
newInfoObjects = getCms().getPathQueryResultSetPage(queryPageIndex);
numOfReports = newInfoObjects.size();
if(newInfoObjects != null && numOfReports > 0)
progressIncrementPerReport =
Math.round((float)Math.floor(progressIncrementPerPage/(double)numOfReports));
for(int reportIndex = 0; reportIndex < numOfReports; ++reportIndex)
reportObj = (IInfoObject)newInfoObjects.get(reportIndex);
curReport = (IReport)reportObj;
clientDoc = getCms().getReportAppFactory().openDocument(
reportObj
, OpenReportOptions._refreshRepositoryObjects
, java.util.Locale.US);
dbController = clientDoc.getDatabaseController();
conInfos = dbController.getConnectionInfos(null);
for(int conInfosIndex = 0; conInfosIndex < conInfos.size(); ++conInfosIndex)
oldConInfo = (ConnectionInfo)conInfos.getConnectionInfo(conInfosIndex);
newConInfo = (ConnectionInfo)oldConInfo.clone(true);
pBag = newConInfo.getAttributes();
pBag.putStringValue(
"QE_ServerDescription"
,getConfigFile().getDBDataSourceConnections());
logonProps = new PropertyBag();
logonProps.putStringValue("Trusted_Connection", "false");
<b>logonProps.putStringValue("SSOKEY", "");</b>
logonProps.putStringValue(
"Server"
,getConfigFile().getDBDataSourceConnections());
pBag.put("QE_LogonProperties", logonProps);
newConInfo.setUserName(getConfigFile().getUNVConnectionUserName());
newConInfo.setPassword(getConfigFile().getUNVConnectionPasswordDecrypted());
dbController.replaceConnection(
oldConInfo
, newConInfo
, connFields
, connOptions);
newConInfo = (ConnectionInfo)conInfos.getConnectionInfo(conInfosIndex);
} // end for on conInfosIndex
clientDoc.save();
} // end for on reportIndex
} // end if on newInfoObjects
} // end for on queryPageIndex
} // end try
catch(ReportSDKServerException Ex)
// handle...
catch(Exception Ex)
// handle...
finally
getCms().commitToInfoStore(newInfoObjects);
if(clientDoc != null)
clientDoc.close();
</pre> -
Can we change the Data source in AO ?
Hi Folks,
Environment: SAP HANA on AO
I have the following scenario , Am creating a report on one Calculation View: CV and have done some analysis where I have pulled in some dimensions and kept some background filters.
Now I have to generate the same report on another Calculation View: CV2 ( Similar to structure of CV ) and compare the reports. Is there any way to edit copy the previous report and change the data source? Can you guide me on that?
Regards,
Krishna TanguduHi,
You can exchange the calc view by clicking on the button next to the data source name in the tab "components", but when you do this, the new data source will overwrite the settings and filters from the previous data source. So no, there is not a supported way of exchanging the datasource and keeping the filters of the previous data source.
Best regards,
Victor -
Change the data source connection of existing reports in web analysis
Hi
I have developed certain reports in web analysis 9.3.1, now I need to point these reports to a new cube with same layout. Can anyone let me know how to change this data source. There are lot many reports so it will take lot of time for me to recreate them.
Please suggest any good approach
---xatYou can edit the Database connection from Web Analysis. Perform the below tasks to edit the database connection..
1) Login to Web Analysis
2) Select the Database Connection which needs to be modified.
3) Right Click then Edit..
Hope this helps you..
Regards,
Manmohan Sharma -
Changing the Data source in Business Objects XI
Hi,
Is it possible to change the data source(not universe) in runtime to generate business objects reports. I am using BOXI 3.1.
Below is the code I am using to change the universe in runtime. I would like to change this so that i can change the data source instead of changing the universe. My intention is to generate report from multipple database using same universe. Right now I am using multipple universes connected to multiple datasources to achieve this. I am using Report Engine SDK(Java).
if("Webi".equals(mDocKind))
// Added for multiple database support
DataProviders dataProvs = documentInstance.getDataProviders();
try{
//To support multiple queries in BO reports
for(int count=0;count<dataProvs.getCount(); count++){
DataProvider dp=dataProvs.getItem(count);
DataSource ds= dp.getDataSource();
infoUniverseObjects = getUniverseObject(infoStore,NewUniverseName);
infoUniverseObject = (IInfoObject)infoUniverseObjects.get(0);
String newDsCuid = infoUniverseObject.getCUID();
dataProvs.changeDataSource(ds.getID(), "UnivCUID=" + newDsCuid, true);
if(dataProvs.mustFillChangeDataSourceMapping())
// Re-map data source to target Universe objects
ChangeDataSourceMapping mapping = dataProvs.getChangeDataSourceMapping();
ChangeDataSourceObjectMapping[] maps = mapping.getAllMappings();
dataProvs.setChangeDataSourceMapping();
}//for dataProvs.getCount()
}catch(Exception e)
mLogger.info("BOReportObject","createReport","Inside multiple data providers loop"+e.getMessage());
Thanks in advance
Shameer
Edited by: Shameertaj on May 20, 2009 3:08 AMHi Shameer,
I think this is only possible with the Universe Designer SDK (which is only available in COM).
Please kindly refer to the API reference for the Universe Designer SDK for more details:
http://help.sap.com/businessobject/product_guides/boexir31/en/bodessdk.chm
Also, please note that changing the universe connection when viewing a document on-demand is not recommended because this could lead to possible issues.
For example:
Two users trying to view documents that uses the same universe at approximately the same time.
But user A wants to use connection X and user B wants to use connection Y.
This could lead to an error while openning the document or while refreshing/retrieving the the data.
Hope this helps.
Regards,
Dan -
Need to change report data source on reports in a copied universe
We are setting up a new testing environment. So I made a copy of our BO universe so we could have two different testing universes. I then created a copy of the data source database that will be used as the data source for the reports in the copied universe. The two different databases have the exact same tables, columns and indexes as the development database. The only difference will be the data inside the tables.
I now need to change the reports to use the new universe since the reports were written using the universe instead of using the database. I am not changing anything else in the reports. I just need them to run against a different Oracle database.
So I go into Crystal Reports version 11.5.0.313 and open the report up. I then go into Database fields in Field Explorer to change the data source. I then go to the Set Datasource Location screen. I open up the universe label by clicking on the plus sign and I select the copied universe. When I do that, the Business Objects Query panel screen opens up. Because I have switched universes, Crystal Reports wants me to reselect the columns and rebuild the query.
We have over three thousand reports so we are trying to avoid rebuilding them. I am looking for a better way to change what database a report runs against.
Note: All of the reports will be run ion demand. Nothing will be scheduled.
Any suggestions and information will be greatly appreciated.
Has anyone run into this? What was your solution to this problem?Hi Joe,
Moved your post to the Universe Forum.
First you are using the original release of XI R2. You need to upgrade to Service Pack 6 by:
Run License Manager first to get the keycode if you don't have it on paper somewhere.
Then download these and uninstall then run full build first:
https://smpdl.sap-ag.de/~sapidp/012002523100011802732008E/crxir2_sp4_full_build.exe
https://smpdl.sap-ag.de/~sapidp/012002523100013876392008E/crxir2win_sp5.exe
https://smpdl.sap-ag.de/~sapidp/012002523100015859952009E/crxir2win_sp6.exe
Try again
Don -
Problem changing SQL data source at runtime with VB6 and CR XI
Hello All,
We have several VB6 programs using CR XI and are able to pass a DSN to change data source with Access DB that works just fine.
We are using similar code in another program to change the data source in an SQL DB and get an error... Failed to Open the Connection.
This is a sample of what works with Access but not SQL DB:
Dim crxApplication As New CRAXDRT.Application
Public Report As CRAXDRT.Report
Global DSN_STRING
DSN_STRING = "DSN = JC Crystal Reports"
Dim crxDatabaseTable As CRAXDRT.DatabaseTable
Set Report = crxApplication.OpenReport(App.Path & "\Test11.rpt", 1)
'change location of each table in report
For Each crxDatabaseTable In Report.Database.Tables
crxDatabaseTable.Location = DSN_STRING
Next crxDatabaseTable
FormCrystal.Show vbModal
We have tried other things from the web, still get error.
Any help would be greatly appreciated.
C ReidHi Carole,
When using SQL types you need more than just the DSN name. CR does keep the password in the report file and all SQL types are usually password protected.
Try this simple code:
First log onto the server:
rpt.database.LogOnServerEx("crdb_odbc.dll, pServerName, [pDatabaseName], [pUserID], [pPassword], [pServerType], [pConnectionString])
The ConnectionString is the complete line. Run in debug mode and display what the reprot is using and you can see the format it requires.
Once logged on now you can set the location for each table:
'report connection properties
With rpt.Database.Tables(1)
.ConnectionProperties("User ID").Value = "sa"
.ConnectionProperties("Password").Value = "YourPassword"
.ConnectionProperties("Data Source Name").Value = "Your DSN Name"
'.ConnectionProperties("Data Source Name").Value = "ServerName" ' can be used if specifying a new connection
.ConnectionProperties("Database").Value = "Northwind"
End With
Set rpt.Database.Tables(1).Location = "Northwind.dbo.CustOrderHist"
I'm only using one table so easy enough to create the loop or use for all...
Thank you
Don -
Changing the data source of a Crystal Report
Post Author: starmizzle
CA Forum: Crystal Reports
We're running a trial of BusinessObjects XI Release 2 to see if it fits our needs.
We were told that we could import and publish our existing Crystal Reports and then later on go back and change their data sources to point to new universes as they're built.
So I've published a simple Crystal Report that I can run and modify through Infoview. And I've created a universe with the appropriate fields and calculations that it needs. So how do I force my published report to use the new universe as its data source instead of the system DSN it had when it was made?Post Author: starmizzle
CA Forum: Crystal Reports
We're running a trial of BusinessObjects XI Release 2 to see if it fits our needs.
We were told that we could import and publish our existing Crystal Reports and then later on go back and change their data sources to point to new universes as they're built.
So I've published a simple Crystal Report that I can run and modify through Infoview. And I've created a universe with the appropriate fields and calculations that it needs. So how do I force my published report to use the new universe as its data source instead of the system DSN it had when it was made? -
How to change the Data sources after deploying the application ??
Hi All,
i want to know how to change the Data sources after deploying the application to the application server ???
I'm using Oracle Application Server 10g Release 3 (10.1.3.1.0)Can you access the Enrprise Manager website of the target Application Server from your location? If so, you can change the datasource in it. If not, yo can bundle the datasource definition in your archive and use that one instead of the one configured in the target OC4J container. Or this will just be the responsability of your customer: whenever you send a new WAR file, they have to modify the datasource if needed and deploy the application?
-
Who last changed a data source
Hello all,
Could you please tell me how can I find out who last changed a data source in a R/3 system.
Thank you
RamonaHi,
in your R/3 customizing client, execute RSA2 with you DSource; you'll see the last changed by and when....
or
table ROOSOURCE fields TSTPNM, TSTPDAT, TSTPTIM...
hope this helps...
Olivier. -
Changing the data source from DB2 to ORACLE in SBOP 4.0
Hi Gurus,
We have done SBOP 4.0 SP 2 installation successfully on Linux by choosing DB2 as default Database as suggested by SAP as there is some issue with RH LINUX 5.5 version. Now, we need to change the CMS data source back to ORACLE 11G. For that we have to execute cmsdbsetup.sh and go with the option of "copy" (Copy data from another Data Source). We need to provide the target/destination CMS database in my case ORACLE (TNS & CMS user) details. And also we need to provide the source CMS user (DB2) details. As we went with the bundled/default DB2 installation, we are not able to find the cms user name and password (no where during the installation it prompted to provide cms username and password).
What will be the default cms username /password in DB2?
Thanks,
SandeepHi,
The work around is to create/add an extra node (SIA Node) with default servers option for the existing CMS and provided my ORACLE CMS username/password along with the TNS Names using cmsdbsetup.sh. Make sure that this new node is visible in the Servers section of the CMC console (i.e. http://<webappserver>:8080/BOE/CMC-->servers) and also see that all the servers should be running. Then you can delete the old SIA which was connected to DB2 from the CMC->servers.
Thanks,
Sandeep
Maybe you are looking for
-
Debugging in a dll on another computer, in another folder.
Hi, I have a dll which was produced with VisualStudio2008, as console app. I have on that PC (let's say DevPC ): C:\DevLoc\IntAd.cpp (dll source file) C:\DevLoc\IntAd.dll C:\DevLoc\IntAd.pdb (symbol file) This dll is used also on another computer (le
-
How to include XML Prolog in BPEL SOAP message.
Hi, I'm using SOA Suite 11g on WebLogic and have a BPEL Process in a composite application that is calling a third party SOAP Web Service. Whilst it is standard for a SOAP service to not care whether or not the SOAP message includes an XML Prolog (<?
-
Loading .obj model file to applet returns AccessControlException
I examined other applets where this code seems to work. Yet, I can't get it to function properly within my code. URL fileURL = null; try { fileURL = new URL( getDocumentBase(), "test.obj"); } catch (Exception e) {
-
AM and VO classes in oracle/apps/xxcus/objname/server
Hello, I have created an OA search page using p7523554_R12_GENERIC for Release 12.0.6 I have created my project in oracle.apps.xxcus.objname.webui I created: my VO in oracle.apps.xxcus.objname.server my AM in oracle.apps.xxcus.objname.serveri my PG i
-
Hi Friends, Need your help. While creating GRR(MIGO),the user is getting error "G/L Account requires an assignment to a CO. object ". How to solve this? Thanks n regards.