Separate database instead of local

I want to use completely separate database in CAF instead of local database of the SAP WAS. Can it be achieved somehow through configuration or minimal programming?

Hi,
If i am getting it correct you asking for the area we are using DATASOURCE name.
public static final String DATASOURCENAME="jdbc/MYSQLDB_DS1_ALIAS1";
Context ctx=null;
          try{
               ctx=new InitialContext();
               ds=(DataSource)ctx.lookup(DATASOURCENAME);
          catch(NamingException ne){
               PatentLogger.getInstance().logException(CLASSNAME,"DAOFactory()",ne);
This in your class for connecting to DB.
Regards,
Srinivasan Subbiah

Similar Messages

  • CAF Business Objects in Separate Database

    We currently have an application written in CAF which is using Business Objects/Entity Services using local persistence. I believe the local persistence automatically uses the default datasource defined in the SAP WAS portal server and creates the tables in that database.
    The requirement is to have that CAF application data stored in a different database instead of the portal database. There are ways to install a separate datasource in the SAP WAS server to point to a different database, but I don't know how to make CAF Business Objects use that newly installed datasource, or whether it is possible?
    Any help is appreciated!

    Hi,
    it seems I've to achieve that by using associations.
    But how should the Scenario look for my example?
    The relation is the following:
    Each application has exactly one division.
    Is it correct like that?
    DIVISION: Association to APPLICATION ("DivisionApplication"), CROSS_BO, ONE_TO_MANY
    BO APPLICATION: Association to DIVISION ("ApplicationDivision"), CROSS_BO, NONE_TO_ONE
    Another question:
    I can now add an association to APPLICATION  through the service browser by choosing the association name "ApplicationDivision" and putting the 32 digit the DIVISION that I want to associate.
    Is that the only way to do it in service browser?
    As this is impossible for business users, do I have to create a WD for them to maintain those values in an easier way?
    Thanks.

  • How can i save the data from the Oracle database to my local directory

    How can i save the data from the Oracle database to my local directory instead Of saving the data file to the Directory created on the Oracle Server ?
    I require to design the Procedure which will pull the data from various tables and needs to store the data in the Client's local directory.

    Since SQL*PLUS runs on the client, you can use SQL*PLUS to spool data to your local drive.
    You could also use the database to write a a specified drive where all users have access to (mapped network drive, e.g.). I wouldn't recommend doing it that way, but it is sometimes useful when the files are created in some nightly batch run.

  • Staging table in separate schema or separate database

    Hello,
    We are using SSIS to import data from 2 external sources into an OLTP database. The data from the sources needs to be inserted into different tables which contain foreign key relationships and therefore the insertion order matters.
    We have therefore decided to insert the data into staging tables using fast load and execute a stored procedure to insert the data into our tables, and finally truncate the staging table data.
    Is this scenario, is it better to use a separate
    schema for our staging data or a separate database? For our staging data, we do not require any backups or logs and the data will be truncated as soon as the stored procedures finish execution.

    Hello,
    We are using SSIS to import data from 2 external sources into an OLTP database.
    The data from the sources needs to be inserted into different tables which contain foreign key relationships and therefore the insertion order matters.
    We have therefore decided to insert the data into staging tables using fast load and execute a stored procedure to insert the data into our tables, and finally truncate the staging table data.
    I think instead of the staging tables you can directly load the data to the OLTP tables. Since, you have PK-FK tables in OLTP, of course you need to load the parent tables first. In SSIS, you can execute the parent table data flow task (DFT) first followed
    by the child tables DFT's. Also if you think, there may be scenario's where the source can send "orphan" records, use the error row redirection mechanism to shunt off the bad records for manual inspection. You can very well build the "alerts"
    in your package if any rows get redirected, so that the team be altered to fix them and maintain data consistency..
    Thanks, hsbal

  • Join multiple tables across separate databases

    I needed to perform a join on multiple tables in two separate databases. I am using Sybase ASE 12.5 and jConnect 5.5 JDBC driver.
    Table A is in DB1 and Table B is in DB2. Both DB1 and DB2 reside on the same database server.
    I have set up JNDI bound datasources DS1 for DB1 and DS2 for DB2.
    If the queries involved single tables or multiple tables within the same database, it is simple. But I am not seeing any way where I can perform a join between Tables A and B, which reside in separate databases. The datasources DS1 and DS2 are associated with DB1 and DB2 respectively, so I am not sure if there is anything like performing joins using two data sources.
    One alternative I am facing is using a stored procedure in one database refer the table in the other database, for the join. But I may not be allowed to modify the database; currently, I am allowed to perform READ-ONLY queries.
    So I am looking for any and all options. Please advice.
    Thanks!

    Two choices..
    One find the syntax in DB2 that allows you to do what you want in there. That would often be somelike...
    select a.myfield
    from database1.table1 a, database2.table2 b
    where a.id = b.id
    Obviously the database itself must support this. If it doesn't then you have choice two.
    You extract the data from database1 using java for table1.
    You extract the data from database2 using java for table2.
    You write java code that merges the data from both sources.

  • How to fetch latest data from database instead of clicking on Generate report in RSRT?

    Hi all,
    We are not able to get latest data of BEx query.Everytime we have to click on Generate Report  button in RSRT for getting latest value.
    Is there any way to get latest value automatically? We are not doing any changes in query.
    When we click on Generate Report it is fetching data from Database instead of cache,so if it is possible to disable cache or any other workaround?
    We have used time(0TIME) characteristic in query as a formula variable. We have applied a condition on that variable to fetch the first record (latest value). When we click on generate report, it fetches correct value with latest time but when we run the query without generate report, it is not fetching latest value. The cube on which this query is developed, is a realtime cube.
    Regards,
    Zalak

    Once its in the request attributes it would be far better to use JSP Expression Language as well as the JSTL that Malcolm suggested So if the servlet code said:
         request.setAttribute("myList", al);Then using EL and the JSTL tags from <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> the JSP would look something like:
    <c:forEach items="${myList}" var="user">
    <TR>
       <TD><c:out value="${user.name}" /></TD>
       <TD><c:out value="${user.fname}" /></TD>
       <TD><c:out value="${user.city}" /></TD>
       <TD><c:out value="${user.cont}" /></TD>
       <TD><c:out value="${user.age}" /></TD>
    </TR>
    </c:forEach>

  • Can we use oracle database Instead of Cloudspace?

              hi there,Can we use oracle database instead of Cloudspace with the current implementation?
              If possible can you please send me the example
              1.ra.xml
              2.weblogic-ra.xml
              files for connection to oracle. i would really appreciate any support.
              thanx, raghu.
              

              Prasen,
              Could you tell me what specifically should I use for Oracle database instead of
              jdbc:cloudscape:rmi:CloudscapeDB;create=true.
              Can I use jdbc:weblogic:oracle for jdbc:cloudscape:Commerce? I am not familiar with
              Cloidscape URLs and drivers.
              Thanks,
              David
              prasen <[email protected]> wrote:
              >Raghu,
              > It depends upon your implementation of ResourceAdapter, particularly
              >your managedConnectionFactory. In the example we
              >supplied(BlackBoxNoTx.rar) it(database specific parameters) is being
              >passed to the ManagedConnectionFactory as one of its config-properties.
              >
              >Also ResourceAdapters have nothing to do with Databases. It just happens
              >that in the supplied example a Database Connection is being exposed as a
              >ResourceAdapter.
              >
              >Now if you want to use oracle database you may want to look into teh
              >source code of BlackBoxNoTx.rar's implementation.
              >
              >Hope this helps.
              >
              >regards,
              >prasen
              >
              >raghu wrote:
              >>
              >> hi there,Can we use oracle database instead of Cloudspace with the current
              >implementation?
              >> If possible can you please send me the example
              >> 1.ra.xml
              >> 2.weblogic-ra.xml
              >> files for connection to oracle. i would really appreciate any support.
              >> thanx, raghu.
              

  • Why does my calender reset to gmt instead of local time?

    my  calendar on my iPhone (5s, 8.0.2) resets to gmt instead of local time. This started after I upgraded to ios8
    time zone override is off

    Make sure your settings are correct:
    http://help.apple.com/iphone/8/#/iph3d11102c

  • Store presentacion catalog in database instead of file

    Hello,
    do you know if it is possible to store de the presentacion catalog in database instead of file system
    Thanks in advacne

    Hi,
    Unlike Discoverer, BI is file based reporting tool.
    As of now there is no option to store the catalog or make the mappings (RPD) to a database. This is one of the big disadvantage of this tool.
    Thanks
    Cherrish

  • Creating report from 2 separate database

    All,
    Is there a way to create a report using the "Crystal Reports" plugin for Eclipse to select data from 2 separate databases.  I've joined the 2 tables on the data tab and added some of the fields to the layout tab.  Below is the SQL that has been generated thus far:
    jdbc:db2://localhost:50000/PS2Tx
    SELECT "BC_INFO"."BC_STATUS", "BC_INFO"."BC_START_TS", "BC_INFO"."BC_END_TS", "BC_INFO"."BC_ID" FROM   "PAYMENT"."BC_INFO" "BC_INFO"
    EXTERNAL JOIN BC_INFO.BC_ID={?jdbc:db2://localhost:50000/BPRQx: TRANSACTION.BATCHCLOSE_ID}
    jdbc:db2://localhost:50000/BPRQx
    SELECT "TRANSACTION"."TRANS_TIMESTAMP", "TRANSACTION"."BATCHCLOSE_ID" FROM   "FAWLS"."TRANSACTION" "TRANSACTION" WHERE  ("TRANSACTION"."TRANS_TIMESTAMP">="BC_INFO"."BC_START_TS" AND "TRANSACTION"."TRANS_TIMESTAMP"<="BC_INFO"."BC_END_TS")
    The values from the PS2Tx database will be displayed as the first page of the report, which will then allow drilldowns to the details which will come from the BPRQx database.  If I preview the report as it currently is I receive the following error:
    JDBC Error: DB2 SQL error: SQLCODE: -206, SQLSTATE: 42703, SQLERRMC: BC_INFO.BC_START_TS
    I'd really appreciate any help or guidance anyone could provide?
    Thanks,
    Todd

    All,
    We've made changes to the report and I've gotten around this issue by using a subreport linked to the main report.
    Thanks,
    Todd

  • Calling remote database obj in local procesure

    Dear Friends,
    If I want to refer any remote database object(Table or procedure)
    in my (local) procedure, should I be a valid user of that database?
    If so, how should I connect to that remote database from my local
    procedure?
    If I should not be a user of that Database, then how does the connection
    occur?
    Have a nice time,
    Tarek Khan

    You have to create a database link and use it
    RTFM about how to create them

  • How do I get firefox 4.0.1 to open in separate windows instead of tabbed browsing? Thanks!

    How do I get firefox 4.0.1 to open in separate windows instead of tabbed browsing? Thanks!

    (If you have the orange Firefox button, tap the Alt key or press F10 to display the classic menu bar.)
    Tools > Options > Tabs
    Uncheck the first checkbox.
    Hopefully that's all you need, but if it doesn't work, let us know.

  • How to fix Lightroom 5.6 crashing when backing up catalog database (external AND local backup) - Mac 10.9.5

    How to fix Lightroom 5.6 from crashing when backing up catalog database (external AND local backup) - Mac 10.9.5
    It starts to cue and within 3-4 seconds, the program just crashes hard. As stated, I tried it on local hard drive and external. Same result...
    In the destination backup folder, it will copy over one folder, no images.
    Thanks ahead of time.
    -Dan

    Anyone? - (Adobe?!?!?)

  • Cannot create database on my local machine

    Hi.
    Thanks in advance.
    I currently have SQL 2008 Server R2 installed on my machine and its' working as expected.  With this via Mgmt Studio, I was unable to create a database on my local machine.  I kept getting permissions errors.  No matter what I did I could
    not do anything locally.
    To alleviate this I installed SQL Server 2012 Express Mgmt. Studio on my local machine, for the sole purpose of being able to create a local database for testing and learning purposes.  During the install I was not prompted to configure the admin account
    or any other similar task so I could not set the sa password.  After the install was complete, when I launched 2012 express mgmt studio and selected my local machine as my server name (using Win authentication) and pressed the Connect button, I got:
    "Login failure for user [domain\user].  (Microsoft SQL Server, Error:  18456].  This is the same error I was getting with my 2008 R2 install, under the same circumstances.
    Also, the sample databases did not get installed and I'm not sure why.
    When I ran the install (.exe), I ran it as Administrator.
    I am an Admin on my machine.
    I'm only trying to create a local database for testing and learning purposes, but I am unable to find a way to do this.  Can someone let me know what I'm doing wrong?
    Thanks.
    Logan

    Is that means you are not able to login to SSMS at all?
    You tried connecting ssms with this name right .\SQLExpress
    If are not able to login to SSMS with any account then reset SA password using below link:
    https://technet.microsoft.com/en-us/magazine/jj853293.aspx

  • Can Oracle 11g RAC support 2 separate databases?

    1. Can Oracle 11g RAC support 2 separate databases given that it asks for SCAN ip for cluster with a single Listener port number?
    2. Will the Oracle 11.2 database connections work successfully if I setup a mandatory DNS server within the Oracle RAC servers?
    I'm leading a team for a 11g project and appreciate responses.
    Thanks
    Satish.

    No Real Application Cluster technology has ever supported more than one database.Quite untrue.
    I know that both you and Tom Kyte take the stand that a cluster should have only 1 instance per node.
    That doesn't mean that it is not possible to have more than one database in a cluster -- i.e more than one instance in a node.
    That doesn't mean that it must always be so. Installing a separate cluster and additional EE + RAC licences for a separate database can be quite expensive. Of course, your reply is "consolidate". That is another debate that has been going on for years.
    A discussion on multiple databases on RAC is also at
    http://www.freelists.org/post/oracle-l/multiple-databases-in-a-single-RAC-cluster
    Hemant K Chitale
    Edited by: Hemant K Chitale on Jan 12, 2010 11:15 AM

Maybe you are looking for

  • Report for Settled production orders

    Hi All, Is there a report I can use to show that these production orders are settled and these production orders need settlement. any clue on this. and when I ran the settlement does it chnages the production order status to reflect that it is settle

  • Logical components for ERP and ERP EnhP 3

    Hello, We have a landscape or ECC 6.0 Systems created in the SMSY.  Those systems were linked to a new logical component Z_ERP60 under product ERP 6.0.  Then  we used that logical component in all the projects. Later on, we upgrade ECC 6.0 to EnhP 3.

  • How do I get the file date...

    Hi, In Oracle form, after I upload the file to server from client machine using FileUploader90 or WebUtil, beyond the file name and directory, I would like to get the file date also. Does anyone know how? Thanks, Jess

  • Menu list Hidden by a

    I have a problem with the following program. When I click on the Menu , the dropdown list is hidden by the canvas object. If I replace Canvas by a JPanel, I do not have the problem. Now If I add the Cavas to the JPanel, the problem occurs again. Note

  • Two Big Files on my HD

    I was cleaning up my Mac when I found two very large files: - Windowserver_Last.log - Sleepimage Can I just delete them by dragging them to the trash?