Querying data across different cache-clusters

Hi,
Say there are multiple clusters each containing DIFFERENT sets of cached data. I would like to know if someone knows how an application from within one cluster can read/query the data from the DIFFERENT clusters "DIRECTLY". Would we need to code in Coherence extend protocol API (if there is one such) in this case ? Does anyone know or done this ?

Hi,
Yes you would need to use Extend to be able to see one cluster from another. It is pretty straight forward, you just configure the cache mappings in the same way you would for any remote caches.
JK

Similar Messages

  • Cannot connect to multiple different cache clusters via ExtendTCP

    Hi,
    I'm trying to have two different ExtendTCP configurations for accessing different cache clusters, but I cannot get it to work. Essentially, the server configurations look like this:
    <?xml version="1.0"?>
    <!DOCTYPE cache-config SYSTEM "cache-config.dtd">
    <cache-config>
    <caching-scheme-mapping>
    <cache-mapping>
    <cache-name>testcache1</cache-name>
    <scheme-name>testcache1-distributed</scheme-name>
    </cache-mapping>
    </caching-scheme-mapping>
    <caching-schemes>
    <distributed-scheme>
    <scheme-name>testcache1-distributed</scheme-name>
    <lease-granularity>member</lease-granularity>
    <backing-map-scheme>
    <local-scheme/>
    </backing-map-scheme>
    <autostart>true</autostart>
    </distributed-scheme>
    <proxy-scheme>
    <scheme-name>testcache1-proxy</scheme-name>
    <service-name>ExtendTcpProxyService</service-name>
    <thread-count>5</thread-count>
    <acceptor-config>
    <tcp-acceptor>
    <local-address>
    <address>localhost</address>
    <port>9098</port>
    </local-address>
    </tcp-acceptor>
    </acceptor-config>
    <autostart>true</autostart>
    </proxy-scheme>
    </caching-schemes>
    </cache-config>
    and
    <?xml version="1.0"?>
    <!DOCTYPE cache-config SYSTEM "cache-config.dtd">
    <cache-config>
    <caching-scheme-mapping>
    <cache-mapping>
    <cache-name>testcache2</cache-name>
    <scheme-name>testcache2-distributed</scheme-name>
    </cache-mapping>
    </caching-scheme-mapping>
    <caching-schemes>
    <distributed-scheme>
    <scheme-name>testcache2-distributed</scheme-name>
    <lease-granularity>member</lease-granularity>
    <backing-map-scheme>
    <local-scheme/>
    </backing-map-scheme>
    <autostart>true</autostart>
    </distributed-scheme>
    <proxy-scheme>
    <scheme-name>testcache2-proxy</scheme-name>
    <service-name>ExtendTcpProxyService</service-name>
    <thread-count>5</thread-count>
    <acceptor-config>
    <tcp-acceptor>
    <local-address>
    <address>localhost</address>
    <port>9099</port>
    </local-address>
    </tcp-acceptor>
    </acceptor-config>
    <autostart>true</autostart>
    </proxy-scheme>
    </caching-schemes>
    </cache-config>
    And the client configuration looks like this:
    <?xml version="1.0"?>
    <!DOCTYPE cache-config SYSTEM "cache-config.dtd">
    <cache-config>
    <caching-scheme-mapping>
    <cache-mapping>
    <cache-name>testcache1</cache-name>
    <scheme-name>testcache1-remote</scheme-name>
    </cache-mapping>
    <cache-mapping>
    <cache-name>testcache2</cache-name>
    <scheme-name>testcache2-remote</scheme-name>
    </cache-mapping>
    </caching-scheme-mapping>
    <caching-schemes>
    <remote-cache-scheme>
    <scheme-name>testcache1-remote</scheme-name>
    <service-name>ExtendTcpCacheService</service-name>
    <initiator-config>
    <tcp-initiator>
    <remote-addresses>
    <socket-address>
    <address>localhost</address>
    <port>9098</port>
    </socket-address>
    </remote-addresses>
    <connect-timeout>10s</connect-timeout>
    </tcp-initiator>
    <outgoing-message-handler>
    <request-timeout>5s</request-timeout>
    </outgoing-message-handler>
    </initiator-config>
    </remote-cache-scheme>
    <remote-cache-scheme>
    <scheme-name>testcache2-remote</scheme-name>
    <service-name>ExtendTcpCacheService</service-name>
    <initiator-config>
    <tcp-initiator>
    <remote-addresses>
    <socket-address>
    <address>localhost</address>
    <port>9099</port>
    </socket-address>
    </remote-addresses>
    <connect-timeout>10s</connect-timeout>
    </tcp-initiator>
    <outgoing-message-handler>
    <request-timeout>5s</request-timeout>
    </outgoing-message-handler>
    </initiator-config>
    </remote-cache-scheme>
    </caching-schemes>
    </cache-config>
    Now the problem is that Coherence apparently only creates the first tcp initiator, and when I try to access the second cache 'testcache2', Coherence looks for this cache in the remote cache identified by this first tcp initiator, which obviously does not have this cache. Accessing 'testcache1' works just fine.
    This is the output:
    2007-11-13 11:15:19.676 Oracle Coherence GE 3.3/387p4 <D5> (thread=main, member=n/a): Started: TcpInitiator(Running=true, ThreadCount=0, PingInterval=0, PingTimeout=5000, RequestTimeout=5000, ConnectTimeout=10000, RemoteAddresses=[172.16.16.248:9098], KeepAliveEnabled=true, TcpDelayEnabled=false, ReceiveBufferSize=0, SendBufferSize=0, LingerTimeout=-1)
    2007-11-13 11:15:19.678 Oracle Coherence GE 3.3/387p4 <D5> (thread=main, member=n/a): Opening Socket connection to 172.16.16.248:9098
    2007-11-13 11:15:19.680 Oracle Coherence GE 3.3/387p4 <Info> (thread=main, member=n/a): Connected to 172.16.16.248:9098
    Exception in thread "main" com.tangosol.io.pof.PortableException (Remote: An exception occurred while processing a CacheEnsureRequest) java.lang.IllegalArgumentException: No scheme for cache: "testcache2"
         at com.tangosol.net.DefaultConfigurableCacheFactory.findSchemeMapping(DefaultConfigurableCacheFactory.java:476)
         at com.tangosol.net.DefaultConfigurableCacheFactory.ensureCache(DefaultConfigurableCacheFactory.java:270)
         at com.tangosol.net.CacheFactory.getCache(CacheFactory.java:689)
         at com.tangosol.net.CacheFactory.getCache(CacheFactory.java:667)
         at com.tangosol.coherence.component.net.extend.proxy.CacheServiceProxy.ensureNamedCacheProxy(CacheServiceProxy.CDB:14)
         at com.tangosol.coherence.component.comm.messageFactory.CacheServiceFactory$CacheEnsureRequest.onRun(CacheServiceFactory.CDB:13)
         at com.tangosol.coherence.component.comm.message.Request.run(Request.CDB:13)
         at com.tangosol.coherence.component.net.extend.proxy.CacheServiceProxy.process(CacheServiceProxy.CDB:1)
         at com.tangosol.coherence.component.comm.Channel.onReceive(Channel.CDB:104)
         at com.tangosol.coherence.component.comm.Connection.onReceive(Connection.CDB:7)
         at com.tangosol.coherence.component.comm.ConnectionManager$MessageExecuteTask.run(ConnectionManager.CDB:6)
         at com.tangosol.coherence.component.util.DaemonPool$WrapperTask.run(DaemonPool.CDB:24)
         at com.tangosol.coherence.component.util.DaemonPool$Daemon.onNotify(DaemonPool.CDB:49)
         at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:35)
         at java.lang.Thread.run(Thread.java:613)
    Btw, this is with version 3.3 patch 5.
    Is there something wrong with my configurations, or is this a bug in Coherence ?
    Any help appreciated,
    Tom

    Hi Tom,
    You need to use difference service names:
    <?xml version="1.0"?>
    <!DOCTYPE cache-config SYSTEM "cache-config.dtd">
    <cache-config>
        <caching-scheme-mapping>
            <cache-mapping>
                <cache-name>testcache1</cache-name>
                <scheme-name>testcache1-remote</scheme-name>
            </cache-mapping>
            <cache-mapping>
                <cache-name>testcache2</cache-name>
                <scheme-name>testcache2-remote</scheme-name>
            </cache-mapping>
        </caching-scheme-mapping>
        <caching-schemes>
            <remote-cache-scheme>
                <scheme-name>testcache1-remote</scheme-name>
                <service-name>ExtendTcpCacheService1</service-name>
                <initiator-config>
                    <tcp-initiator>
                        <remote-addresses>
                            <socket-address>
                                <address>localhost</address>
                                <port>9098</port>
                            </socket-address>
                        </remote-addresses>
                        <connect-timeout>10s</connect-timeout>
                    </tcp-initiator>
                    <outgoing-message-handler>
                        <request-timeout>5s</request-timeout>
                    </outgoing-message-handler>
                </initiator-config>
            </remote-cache-scheme>
            <remote-cache-scheme>
                <scheme-name>testcache2-remote</scheme-name>
                <service-name>ExtendTcpCacheService2</service-name>
                <initiator-config>
                    <tcp-initiator>
                        <remote-addresses>
                            <socket-address>
                                <address>localhost</address>
                                <port>9099</port>
                            </socket-address>
                        </remote-addresses>
                        <connect-timeout>10s</connect-timeout>
                    </tcp-initiator>
                    <outgoing-message-handler>
                        <request-timeout>5s</request-timeout>
                    </outgoing-message-handler>
                </initiator-config>
            </remote-cache-scheme>
        </caching-schemes>
    </cache-config>Regards,
    user601849

  • Persisting Data across different WebApps/Sessions

    Hello all,
    I am developing in an environment where multiple (web & enterprise) applications
    are developed and deployed separately to the same clustered WebLogic infrastructure.
    The applications are all owned by the same company, and usually co-exist quite
    happily. I have a request from the business, for a new application I am developing,
    to persist some user info for a logged in user on one application to another application,
    acessible to the user via a link on page. The user should be able to click on
    a link and access a different application but still have their data available
    on the new app, if logged in.
    As these applications are separate, afaik they cannot simply share session information
    together. I need some mechanism, whereby one application can access the information
    in the other application's session. Thus far I have considered these options:
    1) Writing a cookie containing the info, this could be retrieved from the other
    application, back from the client.
    2) Send user data through to the second application via a query string. At the
    moment this would be possible as a limited amount of information is required to
    be shared.
    3) Send unique field, such as userid, through to the second application, then
    use this field to retrieve user's details from database shared with first application.
    This seems OK in principle but my DBA's and security people may have other ideas.
    4) Serialise a user object which could be picked up again by the second application.
    As I don't know much about serialisation, where do objects get serialised to,
    presumably the server they are running on, is there a particular location, would
    there be security manager issues and would this be possible in a cluster?
    5) Is there another way for web applications to share information with each other?
    Thanks,
    James

    James,
    All of these approaches seem legitimate. It seems like if the data is small,
    the URL Query String approach would scale and perform well. However, the database
    userid approach would entail a performance hit just like when you use JDBC persistence
    for session information.
    Additional, stateful session beans store serialized information based upon the
    persistent-store-dir in the weblogic-ejb-jar.xml file
    See
    http://edocs.bea.com/wls/docs61/ejb/reference.html#1071686
    "James Lawless" <[email protected]> wrote:
    >
    Hello all,
    I am developing in an environment where multiple (web & enterprise) applications
    are developed and deployed separately to the same clustered WebLogic
    infrastructure.
    The applications are all owned by the same company, and usually co-exist
    quite
    happily. I have a request from the business, for a new application I
    am developing,
    to persist some user info for a logged in user on one application to
    another application,
    acessible to the user via a link on page. The user should be able to
    click on
    a link and access a different application but still have their data available
    on the new app, if logged in.
    As these applications are separate, afaik they cannot simply share session
    information
    together. I need some mechanism, whereby one application can access the
    information
    in the other application's session. Thus far I have considered these
    options:
    1) Writing a cookie containing the info, this could be retrieved from
    the other
    application, back from the client.
    2) Send user data through to the second application via a query string.
    At the
    moment this would be possible as a limited amount of information is required
    to
    be shared.
    3) Send unique field, such as userid, through to the second application,
    then
    use this field to retrieve user's details from database shared with first
    application.
    This seems OK in principle but my DBA's and security people may have
    other ideas.
    4) Serialise a user object which could be picked up again by the second
    application.
    As I don't know much about serialisation, where do objects get serialised
    to,
    presumably the server they are running on, is there a particular location,
    would
    there be security manager issues and would this be possible in a cluster?
    5) Is there another way for web applications to share information with
    each other?
    Thanks,
    James

  • How to query data from grid cache group after created global AWT group

    It is me again.
    as I mentioned in my previous posts, I am in progress of setup IMDB grid environment, and now I am at stage of creating cache group. and I created global AWT cache group on one node(cachealone2), but I can not query this global cache group from another node(cachealone1)
    thanks Chirs and J, I have done successfully setup IMDB grid env, and have two node in this grid as below
    Command> call ttGridNodeStatus;
    < MYGRID, 1, 1, T, igs_imdb02, MYGRID_cachealone1_1, 10.214.10.176, 5001, <NULL>, <NULL>, <NULL>, <NULL>, <NULL> >
    < MYGRID, 2, 1, T, igsimdb01, MYGRID_cachealone2_2, 10.214.10.119, 5002, <NULL>, <NULL>, <NULL>, <NULL>, <NULL> >
    2 rows found.
    and I create group ATW cache group on cachealone2
    Command> cachegroups;
    Cache Group CACHEUSER.SUBSCRIBER_ACCOUNTS:
    Cache Group Type: Asynchronous Writethrough global (Dynamic)
    Autorefresh: No
    Aging: LRU on
    Root Table: ORATT.SUBSCRIBER
    Table Type: Propagate
    1 cache group found.
    Command> SELECT * FROM oratt.subscriber;
    0 rows found.
    however I can not query this from another node cachealone1
    Command> SELECT * FROM oratt.subscriber WHERE subscriberid = 1004;
    2206: Table ORATT.SUBSCRIBER not found
    The command failed.
    Command> SELECT * FROM oratt.subscriber WHERE subscriberid = 1004;
    2206: Table ORATT.SUBSCRIBER not found
    The command failed.
    Command> SELECT * FROM oratt.subscriber;
    2206: Table ORATT.SUBSCRIBER not found
    this is example from Oracle docs, I an not sure where I missed for this. thanks for your help.

    Sounds like you have not created the Global AWT cache groupo in the second datastore? There is a multi-step process needed to roll out a cache grid and various things must be done on each node in the correct order. have you done that?
    Try checking out the QuickStart example here:
    http://download.oracle.com/otn_hosted_doc/timesten/1121/quickstart/index.html
    Chris

  • Trying to retrieve mixed data across different rows depending on row type

    I have a requirement to extract data from a table which happens to have different row types (header, row1, row2) in it. I thought the best way to explain what I want is to demonstrate by example!
    CREATE TABLE IFSAPP.KM_MSG_TEST (MESSAGE_ID NUMBER NOT NULL,
        MESSAGE_LINE NUMBER NOT NULL, NAME VARCHAR2(255 byte) NOT
        NULL, ERROR_MESSAGE VARCHAR2(255 byte), C00 VARCHAR2(2000
        byte), C01 VARCHAR2(2000 byte), C02 VARCHAR2(2000 byte),
        C03 VARCHAR2(2000 byte), C04 VARCHAR2(2000 byte), C05
        VARCHAR2(2000 byte), C06 VARCHAR2(2000 byte),
        N00 NUMBER, N01 NUMBER,
        D00 DATE)
        TABLESPACE IFSAPP_DATA_LARGE;
    insert into ifsapp.km_msg_test values('1353078','1','HEADER','','INTRST','OKM','','380','3','30025308','9',0,0,'');
    insert into ifsapp.km_msg_test values('1353078','2','ROW1','','7034724','','','1057627','43','001','331276180003',5,0,'');
    insert into ifsapp.km_msg_test values('1353078','3','ROW2','','3','0','','','C62','DE','',0,5,'');
    insert into ifsapp.km_msg_test values('1353078','4','ROW1','','7034724','','','1058169','26','002','331346110004',6,0,'');
    insert into ifsapp.km_msg_test values('1353078','5','ROW2','','3','0','','','C62','DE','',0,6,'');
    insert into ifsapp.km_msg_test values('1353078','6','ROW1','','7016169','','','1059062','14','003','331483070005',1,0,'');
    insert into ifsapp.km_msg_test values('1353078','7','ROW2','','3','0','','','C62','JP','',0,1,'');
    insert into ifsapp.km_msg_test values('1353078','8','ROW1','','7034724','','','1059062','41','004','331483205000',11,0,'');
    insert into ifsapp.km_msg_test values('1353078','9','ROW2','','3','0','','','C62','DE','',0,11,'');
    insert into ifsapp.km_msg_test values('1353078','10','ROW1','','7057032','','','1059062','43','005','331483215001',2,0,'');
    insert into ifsapp.km_msg_test values('1353078','11','ROW2','','3','0','','','C62','DE','',0,2,'');
    insert into ifsapp.km_msg_test values('1353078','12','ROW1','','7000235','','','1059732','1','006','331566005002',14,0,'');
    insert into ifsapp.km_msg_test values('1353078','13','ROW2','','3','0','','','C62','JP','',0,14,'');
    insert into ifsapp.km_msg_test values('1353078','14','ROW1','','7014091','','','1059732','10','007','331566050010',2,0,'');
    insert into ifsapp.km_msg_test values('1353078','15','ROW2','','3','0','','','C62','DE','',0,2,'');
    commit;
    select * from ifsapp.km_msg_test;
    Message_Id Message_Line Name    Error_Message C00     C01 C02 C03     C04 C05      C06            N00 N01 D00
    1353078    1            HEADER                INTRST  OKM     380     3   30025308 9              0   0
    1353078    2            ROW1                  7034724         1057627 43  001      331276180003   5   0
    1353078    3            ROW2                  3       0               C62 DE                      0   5
    1353078    4            ROW1                  7034724         1058169 26  002      331346110004   6   0
    1353078    5            ROW2                  3       0               C62 DE                      0   6
    1353078    6            ROW1                  7016169         1059062 14  003      331483070005   1   0
    1353078    7            ROW2                  3       0               C62 JP                      0   1
    1353078    8            ROW1                  7034724         1059062 41  004      331483205000   11  0
    1353078    9            ROW2                  3       0               C62 DE                      0   11
    1353078    10           ROW1                  7057032         1059062 43  005      331483215001   2   0
    1353078    11           ROW2                  3       0               C62 DE                      0   2
    1353078    12           ROW1                  7000235         1059732 1   006      331566005002   14  0
    1353078    13           ROW2                  3       0               C62 JP                      0   14
    1353078    14           ROW1                  7014091         1059732 10  007      331566050010   2   0
    1353078    15           ROW2                  3       0               C62 DE                      0   2C03 holds a reference number for ROW1s. I want to return the following:
    Master_Ref  Ref_Num  Line_No  Seq_No  Part_No   Qty
    30025308    1059062  14       003     7016169   1
    30025308    1059062  41       004     7034724   11
    30025308    1059062  43       005     7057032   2when I select on Ref_Num being 1059062
    Master_Ref=C05 from HEADER
    Ref_Num=C03 from ROW1
    Line_No=C04 from ROW1
    Seq_No=C05 from ROW1
    Part_No=Name from ROW1
    Qty=N00 from ROW1

    Hi,
    SQL> column Master_Ref FORMAT A9
    SQL> column Ref_Num FORMAT A9
    SQL> column Line_No FORMAT A3
    SQL> column Seq_No FORMAT A3
    SQL> column Part_No FORMAT A9
    SQL>
    SQL> select
      2    Header.C05 as Master_Ref,
      3    Row1.C03 as Ref_Num,
      4    Row1.C04 as Line_No,
      5    Row1.C05 as Seq_No,
      6    Row1.C00 as Part_No,
      7    Row1.N00 as Qty
      8  from km_msg_test Row1, km_msg_test Header
      9  where Row1.name = 'ROW1'
    10    and Header.name = 'HEADER'
    11    and Row1.message_id = Header.message_id
    12    and row1.C03 = '1059062'
    13  ;
    MASTER_RE REF_NUM   LIN SEQ PART_NO          QTY
    30025308  1059062   14  003 7016169            1
    30025308  1059062   41  004 7034724           11
    30025308  1059062   43  005 7057032            2Regards,
    Dima

  • Is it possible to link data across different/multiple PWA sites leveraging Master Project with the Subprojects feature?

    A couple different questions /similar scenarios
    1) Is it possible with Project Server 2010 to have several sites (http://server/pwa1 and
    http://server/pwa2 for example) communicate and build a Master Project at a third (or X) site (http://server/pwa3)
    2) Is it possible with Project Server 2010 to have several sites (http://server/pwa1 and
    http://server/pwa2 for example) communicate and build a Master Project at one of the original sites (http://server/pwa1 (for example))
    OR is there a better way to do this/more preferred way to do this. 
    We found this (http://social.technet.microsoft.com/Forums/projectserver/en-US/2379c3f2-6c80-46d7-8eac-3bc2ccb2d908/master-projectsubproject-with-sites-in-pwa-2010?forum=projectserver2010general)
    but its not what we're looking for
    3a) Issue/Example -
    We want to set up a site (http://server/pwa100) for just the president of the company - all the schedules of the subsites (/pwa99 + /pwa98) create a feed into an integrated master schedule/master project with subprojects(located
    in /pwa100). 
    3b-1) We also want to set up sub sites (http://server/pwa99 and
    http://server/pwa98) for each division VPs (and specific other people). These two sites would only allow specific user's project files to be viewed by each other...
    Can their project files have linkages between the two project sites (/pwa99 and /pwa98)? Meaning if user1 logs in to /pwa99 can he see a project file (given that they have permission) from /pwa98 in the same instance?
    3b-2) Can they see the project file in ProjPro and/or PWA ???
    3c) is it possible to have:
    + /pwa100 (pres)
    ++/pwa99 & /pwa98 (two vps)
    +++/pwa97 & /pwa96 & /pwa95 & /pwa-etc (minions)
    each rolling up to the next level (level 3 rolls up to level 2 which can roll up to level 1)

    kbwrecker,
    I agree with Dale. Having multiple sites will make this difficult to set up. 
    Not knowing how your Custom Groups/Categories have been set up, have you looked into using the "Project Permissions" feature to share projects. These permissions are 'additive' to the category permissions, so you could start out with people looking at the
    projects they are authorized to via categories, and then let them share/add people as needed basis. This will also satisfy the requirement of not-loading the projects with resources..
    And finally, the department and categories need not align, except that when projects from one dept are shared t another dept resource, the visibility of custom fieds will be affected.
    Hope I did not go off on a tangent there :)
    Prasanna Adavi,PMP,MCTS,MCITP,MCT TWitter: @prasannaadavi Blog: http://www.prasannaadavi.com
    Meant to get back to this earlier - your answer is close (because its what we currently do..sort-of)
    From my understanding of this issue the users are separated by department and can only see specific projects; however, when they try to share departments between users (so they can see their projects (dept a sees dept b projects)) this works - but there
    is a bigger issue/main issue.  
    main issue: when dept B adds a new project dept. A cannot see the new project in dept B.
    This can be eliviated by removing the user/s and re-adding them to the permission structure of the deptment but overall doing this several times based on user/s and projects being added it gets to be cumbersome and just plain annoying.
    Any help/additional thoughts would be great

  • Sharing data across different webapps using JSP/Servlet

    I have two different web applications running on same WebLogic server say webapp1 and webapp2. Webapp1 has servlet which redirects the user to JSP in webapp2. While redirecting I have to pass one string value to called JSP. I have achieved this by using QueryString as follows:
    response.sendRedirect(ConfigService.getProperty("com.twofactauth.caymanlogin.caymanurl", null)) + "?userName=" + strCaymanUserName);
    but this expoes the value in browser address bar but i don't want to expose the value passed. I am searching the way to pass the value internally without exposing.
    so please tell me other way in which i can pass the value to called JSP without usign QueryString.
    I am using WebLogic 8.1 for deployments. Both applications are deployed on same WebLogic instance.

    I have two different web applications running on same
    WebLogic server say webapp1 and webapp2. Webapp1 has
    servlet which redirects the user to JSP in webapp2.
    While redirecting I have to pass one string value to
    called JSP. I have achieved this by using QueryString
    as follows:
    response.sendRedirect(ConfigService.getProperty("com.t
    wofactauth.caymanlogin.caymanurl", null)) +
    "?userName=" + strCaymanUserName);
    but this expoes the value in browser address bar but
    i don't want to expose the value passed. I am
    searching the way to pass the value internally
    without exposing.
    so please tell me other way in which i can pass the
    value to called JSP without usign QueryString.
    I am using WebLogic 8.1 for deployments. Both
    applications are deployed on same WebLogic instance.I think a big part of the problem is that you want the functionality of a web app to be available to others, but you've locked it up behind a UI.
    I think this is one of the benefits of a service-oriented architecture. You start thinking about the system functionality apart from the UI. Your JSPs become just another client of the services you expose. Anyone can call those services, as long as they can see that service on their network.
    When I've done this I've started with a Spring service interface that is completely separate from the view layer. Once I have that, I can expose it to any other client either with web services (not preferred) or Spring HTTP remoting (preferred due to its simplicity).
    %

  • Reference table data across different tables

    Hi all,
    is really impossible to have some table call the content of a cell in another table with Pages 2.0.2?
    Thanks in advance,
    Filippo

    No one has found a way of doing it, and the question has appeared repeatedly in this forum, so yes, it is likely impossible.

  • Error while Enabling Active Data Cache Clustering Services: error 1753

    I have installed the Oracle BAM with Enterprise link.All the installation was successful.But while Enabling Active Data Cache Clustering Services using the following command:
    cluster.exe restype "Oracle Business Activity Monitoring Active Data Cache" /create /dll:"C:\OracleBAM\ADCClusterResourceType.dll"
    i am getting the folllowing error:
    System error 1753 has occurred.
    There are no more endpoints available from the endpoint mapper.
    Although i stopped the Active Data Cache Service..?
    I am unable to resolve it
    Kindly help me out
    Ramesh Nambala

    Hi.
    I encountered the same problem. In my case, the reason was that I created a new user for BAM (to be provided when installing BAM) but ran the installation under another user account. It seems like these users must be the same to make it work.
    Greetings,
    cor

  • Single query to get data from different databases

    i need to capture certain fields from certain tables in database 1 and certain fields from certain tables in database 2 into one file using a single SQL statement.
    i tried searching on the net
    i found that dblinks can help
    but iam not sure if ill be able to create dblinks in my situation which is:
    i need to get data from oracle to be copied to mysql
    this is not a replication acitivity, but i need certain fields from one database and certain from the other
    so what iwas thinking is, if i use an sql query to get all the fields (i need around 40) from the different oracle databases and create a singlefile with one insert per select, i can then read that file into mysql
    instead of creating multiple sql queries for each table and creating separate files and eventually separate tables in mysql.
    can anyone help me here?
    or maybe suggest another approach.
    thanks

    Hi,
    I think dblink is the only option available to get data from different databases. It will work for your case too.
    CREATE DATABASE LINK db_link CONNECT TO user_name IDENTIFIED BY  password USING 'instance_name'you must have the system privilege 'create database link' to create db links. This way you can get the required data and put it in a table in oracle. But i dont know how to put this data from oracle table to Mysql.
    HTH
    Muneer

  • Different LOV behavior between SQL query data model and data template

    I have noticed different behavior when using parameters linked to list of values (LOV) of type menu with the multiple selection option enabled and a SQL query data model vs a data template. Here's the example because that first sentence was probably really confusing.
    SQL Query:
    select
    plmc.MonthCode, plmc.ModalityDim, plmc.ModalityName,plmc.RegionDim
    from
    DataOut.dbo.PatientLabMonthlyCross plmc
    where
    plmc.MonthCode = 200202
    and plmc.RegionDim = 1209
    and 1 =
    case
    when coalesce(:modalityDim,null) is null
    then 1
    else
    case
    when plmc.ModalityDim in (:modalityDim)
    then 1
    else 0
    end
    end
    Putting BI Publisher into debug mode, defining a data model of type SQL Query, defining a parameter called :modalityDim linked to a LOV that allows multiple selections, and selecting a couple of values from the LOV the output of the prepared statement is:
    [081607_122647956][][STATEMENT] Sql Query : select
    plmc.MonthCode,
    plmc.ModalityDim,
    plmc.ModalityName,
    plmc.RegionDim
    from
    DataOut.dbo.PatientLabMonthlyCross plmc
    where
    plmc.MonthCode = 200202
    and plmc.RegionDim = 1209
    and 1 =
    case
    when coalesce(?,?,null) is null
    then 1
    else
    case
    when plmc.ModalityDim in (?,?)
    then 1
    else 0
    end
    end
    [081607_122647956][][STATEMENT] 1:6
    [081607_122647956][][STATEMENT] 2:7
    [081607_122647956][][STATEMENT] 3:6
    [081607_122647956][][STATEMENT] 4:7
    [081607_122654713][][EVENT] Data Generation Completed...
    [081607_122654713][][EVENT] Total Data Generation Time 7.0 seconds
    Note how the bind variable :modalityDim was changed into two parameters in the prepared statement.
    When I use this same SQL Query in a data template the output is:
    [081607_012113018][][STATEMENT] Sql Query : select
    plmc.MonthCode,
    plmc.ModalityDim,
    plmc.ModalityName,
    plmc.RegionDim
    from
    DataOut.dbo.PatientLabMonthlyCross plmc
    where
    plmc.MonthCode = 200202
    and plmc.RegionDim = 1209
    and 1 =
    case
    when coalesce(?,null) is null
    then 1
    else
    case
    when plmc.ModalityDim in (?)
    then 1
    else 0
    end
    end
    [081607_012113018][][STATEMENT] 1:'6','7'
    [081607_012113018][][STATEMENT] 2:'6','7'
    [081607_012113574][][EXCEPTION] java.sql.SQLException: Syntax error converting the nvarchar value ''6','7'' to a column of data type int.
    Note the exception because it is trying to convert the multiple parameter values.
    Am I doing something completely wrong here? I really need to use a data template because I will need to link a couple of queries together from different database vendors.
    -mark

    This is for 10.1.3.4 - because in 11g every SQL query is automatially part of a data model.
    In 10g SQL query is for simple unrelated SQL queries.
    If you need to use advance features such as:
    a) multiple SQL queries that are joined in master-detail relation ships
    b) before/after report triggers
    Then you will need to use the data template, which is an XML description
    of the queries, links, and PL/SQL calls.
    hope that helps,
    Klaus

  • Reuse Dimdate across different database for different data models

    Hi,
    I am designing a new data model for a data mart. I need to add dimdate dimension in this data model. I noticed that dimdate already exists in another database and being used by another
    data model. Is it possible to re-use the existing dimdate table for my new data model? If so, what about the foreign key constraints? Normally we link the date columns from fact table to the dimdate keys. How would we achieve that in case we are using the
    same table across different databases?
    Any opinion on this will be highly appreciated.
    Thanks in Advance.
    Cheers!!

    You can create a copy of dimdate table to your new data warehouse.
    If both data marts were in a single data warehouse, then you don't required to copy. but as these are in two different databases then you just copy that.
    regarding FK relationship. you can connect any fact table to you date dimension. even if you want to use more than one instance of your date dimension, it would be simply adding multiple FK columns in your fact table (role playing dimension).
    For date dimension be sure that your date dimension covers most of the attributes required. here is an example of date dimension:
    http://www.rad.pasfu.com/index.php?/archives/156-Script-to-Generate-and-Populate-Date-Dimension-Version-2-Adding-Multiple-Financial-Years.html
    Regards,
    Reza
    SQL Server MVP
    Blog:  
    http://rad.pasfu.com  Twitter:
      LinkedIn:
    SQL Server Integration Services 2012 Tutorial Videos:
    http://www.radacad.com/CoursePlan.aspx?course=1

  • Preview Data in EAS across different essbase Servers

    Hello All,
    We are on 11.1.2.3 of EPM. In our Prod EAS I have Signed in using my AD user ID and added the two(one prod, one dev) essbase servers to the list of essbase servers. I was able to successfully add the two essbase servers. Now when I preview data on cube in dev it gives me the error "Cannot connect to olap service. Cannot connect to Essbase Server. Error: Essbase Error(1051293): Login fails due to invalid login credentials". This cannot be true because I would not be able to expand the essbase servers list and drill down to the database in order to preview it if the credentials were wrong. Also I am able to see the outlines and Calc scripts just fine. I am able to preview data on the prod cube just fine.
    Now, The same happens when I try to preview data in prod essbase cube when coming from Dev EAS. Which means am able to preview data only on dev essbase server cubes when coming from dev EAS and when I try to preview data on a prod cube when coming from Dev EAS i get the same invalid login credentials error.
    Could someone please help me understand if this is a bug or if this is how they intended it to work? Because we just upgraded from 11.1.1.4 and we were able to preview data across any essbase server no matter which EAS service we used.
    No SSL or Single Sign-on were used. Just active directory credentials. It happens only with an AD ID and not with a native directory ID. Please suggest on how this can be fixed.
    Thanks,
    Ted.

    I logged this with Oracle and the following is their response copy/pasted
    The issue which you have reported in this SR is a desired behavior. This behavior has been seen in latest versions only 11.1.2.x.
    In earlier version we can preview the data of any Essbase server added to any eas console.
    But form 11.1.2.x environment this behaviour has been changed.
    We did checked with development team on this earlier, and according to development team its a behavior by design.
    As dev environment and Prod environment have different registries , the preview data would work if Dev Essbase server added to Dev EAS only. like same holds good for prod or test environments.
    As same issue has been reported earlier , we form support has raised a bug with development team after reproducing the issue .
    But development team did not accept this as bug as this behavior was by design .
    So later we changed this bug to a enchantment request with development team to change this behavior.
    Bug 14622693 - PREVIEW DATA ON REMOTE ESSBASE HOST FAIL WHEN CONNECTED FROM EAS
    If this enhancement requested gets approved by development team ,Then it would be incorporated in future release.
    Thanks,
    Ted.

  • Is there a way to consolidate calculations used in SQL Query Data Sets?

    I am building SQL Query Data Sets against multiple DB Views which all have different date formats. I have the date parameter working well, but want to consolidate the changes that I have to do to it especially for the quarter. For example the SQL against a monthly view would use "where year_month > to_char(:ST_DATE, 'YYYY-MM')" which is not too hard, but to make that work for the quarterly view I need several concats and a decode to get a "> '2012-Q2'". I would like not to have to do this within every where clause. I had put this into a global element hoping to use that in a filter for the data set, but the filter does not have access to global elements only parameters.
    Is there any way to refer to a calculated global element from the data set to do this? I am using Layout Templates, so even if I wanted to I could not do the condition within the template.
         Thanks,
         Rick

    Change the following line to include the red coloured parts
    <div class="MasterColumn" spry:repeat="ds4" spry:setrow="ds4" spry:hover="MasterColumnHover" spry:select="MasterColumnSelected">
      <span>{Dsp_#}</span><span>{Dsp_WkDay}</span><span>{Dsp_Event}</span>
    </div>
    The add the following style rule to your document:
    .MasterColumn span {
        display: inline-block;
    I hope this helps.
    Ben

  • Data from different databases in the same report.

    Hi Everyone,
    I am trying to build a reconciliation report in which I need to show the data from the source and target, side by side.
    Source and target are both different databases, although being oracle only
    Whenever a new data model is created, it gets attached to a data source and in the report we need to choose a specific data model.
    Can we have data from different databases in the same report ?

    Yes, it is possible.
    One way Is to use dataTemplates. There you can make queries from any number of different databases (The max I have done is 5).
    It looks something like that:
    <dataTemplate name="NameOfTemplate">
    <dataQuery>
         <sqlStatement name="Q1" dataSourceRef="Connection1">
              <![CDATA[     select * from table1]]>
         </sqlStatement>
         <sqlStatement name="Q2" dataSourceRef="Connection2">
              <![CDATA[     select * from table2]]>
         </sqlStatement>
      </dataQuery>
      <dataStructure>
         <group name="RESULT1" source="Q1">
              <element name="P_FIRST_NAME" value="P_FIRST_NAME"/>
         </group>
         <group name="RESULT2" source="Q2">
              <element name="P_DATE" value="P_DATE"/>     
         </group>
      </dataStructure>
    </dataTemplate>dataStructure is very important when you get data from different places, if you don't define those elements, then only the result from Q1 is shown.
    The second possible way is to make as two different data models, each containing their own query and then set Main Data Set as concatenated SQL Data Source.
    Best of luck,
    Evelyn

Maybe you are looking for

  • Values not getting populated in the o/p

    Hi, I have a requirement,where in which I have to add MRP Controller(marc-dispo) and production scheduler(marc-fevor) fields in the selection screen and the same should be added in the o/p.These fields are not getting populated in the o/p,even if I g

  • Error message: Serial number invalid.

    I have entered twice exactly as it is shown online when logged into my account. What gives?

  • Selecting items in CS6

    I  know this is ridiculous, but I just upgraded to cs6 and I can't figure out how to select items on the canvas, aside for selecting each individual layer on the layers panel. I have Mac os X 10.7.4, and I previously had cs5.5 on my laptop. I was abl

  • OAS 10gR2 and e-Biz app tier on same server

    I seem to have some sort of contention on my application server and I was wondering if anybody might have a suggestion on how to verify my setup or troubleshoot. I have a Red Hat ES 4 32-bit server that is running an 11.5.10.2 e-Biz application tier.

  • Quicktime doesn't launch

    Just installed Mountain Lion, and Quicktime Player doesn't launch. Any suggestions? Thanks