Fetch records from two different dbs and show it in a single af table

Hi,
   I have a requirement, such as say, there are two databases having their own employees table. I need to query them both and show them in the UI using the af table tag. Any idea how this can be achieved efficiently please ?
regards,
Vijai

Hi,
Always mention your JDev version. Are you going to make the resultant data as read-only? If yes, you can create a db link pointing to another schema, and then use union all to merge the data in the query of the VO.
Ex:
select col1, col2, col3 from table1
union all
select col1, col2, col3 from table2@db_link_pointing_to_diff_schema
-Arun

Similar Messages

  • How to handle an update of the same record from two different user  in JSP

    how to handle an update of the same record from two different user
    how do you handle an update of the same record from two different users in JSP... if one person updates the record from one drop downs should be updated as well.. is the possible.

    Usually, if two users try to update the same row at the same time, you want the first to commit to succeed, and when the second commits, they should fail with the error that the row was being concurrently updated. They you may want to show them the new row values and give them the opportunity to merge their values with the new row values...
    How can you achieve this? Google optimistic locking.

  • How to handle an update of the same record from two different user JSP

    how do you handle an update of the same record from two different users in JSP... if one person updates the record from one drop downs should be updated as well.. is the possible.

    I'm not sure whether I understand your question. If one user changes a record then you would like other users to see those changes. Normally those changes will be visible to other users when they refresh their browser, after the first user has committed changes to the record. I you want to be sure that the same row isn't updated at the same time by to different user, you need to configure some locking (pessimistic locking) - this depends of what technology you use. In EJB3 pessimistic locking is performed by adding a version to every entity object. If you are using ADF, the framework is able to handle either pessimistic or even optimistic locking.
    If you want the changed row to be updated in other users browsers without any user interaction by these users, you should take a look at Reverse Ajax (ex. DWR http://ajaxian.com/archives/reverse-ajax-with-dwr) - or Ajax in general. But you will never get a realtime solution, where changes is visible in other users browsers right after each record update.

  • Downloading songs from two different computers, and not recognizing songs

    On my home computer, I downloaded about 40 songs onto my IPod from CDs. Then, I installed the program on my work computer, and purchased four songs from ITunes. When I plug my IPod into my work computer, it is not recognizing the songs I downloaded from my home computer. However, if I plug my IPod into my work computer, I can listen to these four purchased songs, but once I try to listen to them without having it plugged into my work computer, only the songs I downloaded from home are on the IPod.
    Has this happened to anyone else who has tried to put songs from two different computers onto their IPod?

    Just to elaborate a bit, you need to copy the purchased files and put them on your home computer.
    Don't burn them as an audio CD as you will lose quality when you re-import them.
    You can use the Shuffle (instead of a CD) to do this
    Check out this link.
    http://docs.info.apple.com/article.html?artnum=61131

  • LDAP query to fetch users from Two different OU

    I am looking for an AD query to get AD enabled users from two different OU Stores & ServiceOffice under root domain.
    Using below syntax to fetch it simultaneously but not succeeding. Please help me.
    (&(objectCategory=person)(|(ou=Stores)(ou=ServiceOffice)))

    Hi Thanks for the revert. Actly i am setting this syntax in application not running powershell script to fetch users.
    So i need query in Ldap filter format only...
    i.e.
    (&(objectCategory=person)(|(OU=Stores,DC=Mumbai,DC=Users,DC=ABC,DC=com)(ou=ServiceOffice,DC=Chennai,DC=users,DC=ABC,DC=com)))
    Please correct my above query.

  • Fetch Data from two different Lists (Based on criteria)

    I have two lists. One is for Designations and another is for
    Hirings. Designations list holds all available designations and Hiring list has list of hired employees. Data may look like following...
    Designations list:
    PostTitle
    Software Engineer
    Web Developer
    Graphic Designer
    Trainer
    Manager
    Team Lead
    and Hiring list may look like following
    Hirings list:
    PostTitle
    Employee
    Start Date End Date
    Trainer David
    05-Jun-14
    Manager Peter
    06-Jun-14 30-Jun-14
    PostTitle is lookup column in hirings list. Now, I have to create several views over this data... one of them is of "Vacant Posts" that will fetch all those records from Designations which are either not referenced in hirings or are referenced
    in hirings but has some end date.
    Vacant Posts View:
    Fetch all records from Designation which are NOT in Hirings
    UNION
    Fetch all records from Designations which are in Hirings But has some END DATE.
    Please guide me how can I create this Vacant Posts view ? Is their any out of the box functionality available ? what are the easiest possible ways to accomplish this?
    Zia.

    Yes You can Use CAML.
    Below Query can be helpful to start with.
    Function GetSharePointList1() {
    context = SP.ClientContext.get_curre
    nt();
        oList = context.get_web().get_lists().getByTitle('SharePoint List 2');
        var camlQuery = new SP.CamlQuery();
        camlQuery.set_viewXml(query);
        items = oList.getItems(camlQuery);
        context.load(items);
        context.executeQueryAsync(
            Function.createDelegate(this, onSuccessSharePointList1),
            Function.createDelegate(this, onFail)
    function onSuccessSharePointList1(){
            recNum = items.get_count();
          if(recNum != 0){
             var listItemEnumerator = items.getEnumerator();
             while(listItemEnumerator.moveNext()){
                    var oListItem = listItemEnumerator.get_current();
                    $().SPServices({
                    operation: "GetListItems",
                    async: false,
                    listName: "SharePoint List 2",
                    CAMLViewFields: "<ViewFields><FieldRef Name='Worklocation'/></ViewFields>",
                    CAMLQuery: "<Query><Where><Eq><FieldRef Name='Title'/><Value Type='Text'>" + ReferenceID +
                                              "</Value></Eq></Where></Query>",
                    completefunc: function (xData, Status) {
                      $(xData.responseXML).SPFilterNode("z:row").each(function() {
                        Worklocation = ($(this).attr("ows_Worklocation"));
                     s = ..... (display all in table format)
                  $("#resultTable").append(s);
                  i++;
    Thanks and Regards Rahul Dagar

  • Extracting unique records from two different tables record

    Hello,
    In the following code of two different tables www.testing.com exists in both tables. I want to compare two different columns of the two different tables to get unique records.
    SQL> select unique(videoLinks) from saVideos where sa_id=21;
    VIDEOLINKS
    www.testing.com
    SQL> ed
    Wrote file afiedt.buf
      1* select unique(picLinks) from saImages where sa_id=21
    SQL> /
    PICLINKS
    test
    test14
    www.hello.com
    www.testing.comThanks & best regards

    Unfortunatly you didn't mention the expected output. I guess it would be the one line
    "www.testing.com"
    in that case simply join the two tables.
    select *
    from saVideos v
    join saImages i on i.sa_id = v.sa_id and i.picLinks = v.videoLinks
    where v.sa_id=21;If needed then you could change the select list to retrieve only distinct values.
    select unique v.sa_id, v.videolinks
    from saVideos v
    join saImages i on i.sa_id = v.sa_id and i.picLinks = v.videoLinks
    where v.sa_id=21;I usually avoid distinct/unique whereever possible. This requires the database to do a sort and makes the query slow.
    Edited by: Sven W. on Feb 10, 2011 1:55 PM

  • Using aperture from two different accounts and email notifications

    Hi
    I have two issues. The first is that I have setup up two accounts on my iMac but I can't get both to use the same library. Both accounts have the exact same permissions and access.
    The second is that I get emails from this forum on every topic/notification and I want to stop it. The notification emails have instructions on how to do this but when I go to "My Subscriptions" there aren't any to delete.

    Kinda but you'll need to sync manually. For more information...
    http://docs.info.apple.com/article.html?artnum=61675

  • Can I join two tables from two different dbs by using transparent gateway?

    E.g.:
    select * from t1@rdb1, t1@rdb2
    Can this work?

    As previously stated you options depend on your Oracle version and platform and the target version and platform for the remote non-Oracle (well in this case mySQL) database.
    Oracle replaced HS or Generic Connectiivy with a new name and support module on 11g and maybe in 10g. You can see your manual CD or check the online documentation.
    For that matter you need to check to see if the Transparent Gateway product has a mySQL driver.
    The following Oracle support articles may be of interest.
    Master Note For The Oracle ODBC Driver [ID 741033.1]
    Detailed overview of connecting Oracle to MySQL using DG4ODBC database link [ID 1320645.1]
    Gateway Configuration Utility for Database Gateway for ODBC - DG4ODBC - to Connect to Non-Oracle Databases For Example - DB2, SQL*Server, Sybase, Informix, MySQL [ID 1274143.1]
    HTH -- Mark D Powell --

  • Report which reads data from two different systems

    Hi experts!
    By any chance, would be possible to create a report which is able to read from two different cubes and two different systems at the same time?
    Kind regards.

    Good afternoon Raul,
    It should be possible to create a multiprovider on the two different cubes from the two sources
    systems and report on this.
    Best Regards,
    Des

  • How to receive mail on iPad from two different addresses

    how to receive e mail on iPad from two different addresses and using these same two addresses receive e mail on computer

    Go to mail in settings and add the new account
    User guides
    http://manuals.info.apple.com/MANUALS/1000/MA1595/en_US/ipad_user_guide.pdf

  • Execute a VO '4' times and show the result in single table at once.

    Hi,
    I want to execute single a VO query multiple times with different parameters and show the results together in a Table at once
    In Detail
    I have a table to which is associated with a VO.
    The VO contains SQL whose WhereClauseParameters need to be dynamically binded.say headerId and lineId
    Select ... from ....where headerId = :1 AND lineId = :2
    I have to pass these 4 values and show all the results in a single table
    headerId lineid
    H1 ............... L1
    H1 ............... L2
    H2 ............... L1
    H2 ............... L2
    I understand that i need to bind parameters dynamically and exceute the VO.
    As i have 4 different set of parameters, the view object will be executed 4 times.
    I want to show all the results together in a single table.
    How can I do it.
    thanks,
    Gowtam

    Hi Mani,
    Thanks a lot for the patience and detailed solution.I will try it out and tell you the status.
    Meanwhile, I have 2 questions on this solution(just curious)
    I will give you the snapshot of the table
    Table - ModelInfo
    Model......Tube..... Float....Size......Col5.....Col6.......Col7.......
    M1............T1.......... F1. .....1..........C15......C16.....C17.....
    M1............T1...........F1.......2..........C25......C26.....C27.....
    M1............T2......... .F2.......1..........C35......C36.....C37.....
    M1............T2...........F2.......2..........C45......C46.....C47.....
    M2............T1.......... F1. .....1..........
    M2.............T1..........F1.....2.........Cn5.......Cn6........Cn7
    .<continues...>
    .<till>
    .Mn............Tn..........Fn.......n........Cxy.......Cpq.......Crs....
    Question 1:
    if you notice this data,
    The Columns 5 to 7 are dependent on Combination of Model,Tube,Float and Size.
    Hence will this query work properly(without mixing up data from other Pk combination) and will it be efficient?(I Know this is a stupid qst, still double checking..As your solution assumes that each row is unique for Model only..which is not true)
    Select ...From....Where
    Model in(M1,M2,..Mn) AND Tube in(T1,T2..Tn) AND Float in(F1,F2,....Fn) and Size in(1,2...n).
    In short, will C15,C16 and C17 appear only with M1,T1,F1,1..I believe it will.
    Question 2:
    As I told,
    Third party program will return Array of Objects.
    Each object will have a variable called Flow along with
    Model,Tube,Float and Size.
    Flow is not stored in the database(can not be stored due to functional reasons).I want to show this Flow also along with other columns fetched from the DB for all 100+ rows.
    How can I do it?
    I will give u the scenario(with just 2 rows)...please check(Flow is not stored in DB)
    Third Party object : ObjModel
    Model......Tube..... Float....Size......Flow
    M1............T1.......... F1. .....1..........100
    M1............T1...........F2.......2...........200.
    M1............T2.......... F1.......1..........300
    M1............T2...........F2.......2..........400
    My concern is,
    After the VO executes and shows other 6 columns, it should show Flow appropriately.(associated with each object in the array)
    I understand that I need to have a Transient attribute in VO called[b] Flow.But I don't know how to perform the two tasks simultaneously..
    Task1:Your solution on showing table columns
    Task2:Showing Transient data for each object returned from program.
    thanks,
    Gowtam

  • Is it possible to show data from two different sql tables?

    Is it possible to show data from two different sql tables? Either to show combined data by using a join on a foreign key or showing a typical master detail view?
    I have one table With data about a house, and another table With URL's to images in the blob. Could these two be combined in the same Gallery?
    Best regards Terje F - Norway

    Hi Terje,
    If you have a unique key, you could use one of the following functions for your scenarios:
    If you only have one image per house, you can use LookUp:
    http://siena.blob.core.windows.net/beta/ProjectSienaBetaFunctionReference.html#_Toc373745501
    If you have multiple images per house, you can use Filter:
    http://siena.blob.core.windows.net/beta/ProjectSienaBetaFunctionReference.html#_Toc373745487
    Thanks
    Robin

  • I have copied my music library from two different files from extewrnal hard drive into the Itunes folder. I tunes only recognizes some of the songs. I have reloaded 5 times and can't get intunes to recognize all my songs? HELP!

    I have copied my music library from two different files from extewrnal hard drive into the Itunes folder. I tunes only recognizes some of the songs. I have reloaded 5 times and can't get intunes to recognize all my songs? HELP!

    " When I did this, my library showed all the music I have "purchased" from itunes but did not have the music that I downloaded a long time ago through itunes from my old CDs."
    Correct.
    " How can I get that music to show up in my library now on my new computer?  "
    Copy it from your old computer or your backup copy of your old computer.
    The sync is one way - computer to ipod.

  • HT204053 can I purchase from two different stores ie store in New Zealand and Store in Australia and  how do I sync updates on applications?  Do I have to switch ID's in my settings each time or is there an easier way.

    can I purchase from two different stores ie store in New Zealand and Store in Australia and  how do I sync updates on applications purchased from either store?  Do I have to switch ID's in my settings each time or is there an easier way.  The trouble is I set up my appleid in new Zealand and so all icloud and itunes and app stores are under New Zealand Apple ID I have since moved to Australia. Im a real beginner at this stuff so bare with me pse.

    I'm in the same boat as you -- except that I manage both a school lab (volunteer job) and macs in the enterprise (pay job).  What I think we need is the Education Volume Purchasing Program
    http://www.apple.com/education/volume-purchase-program/faq.html
    Unfortunately this all seems a little rough around the edges -- for example, I have found updates for AppStore apps on the support.apple.com updates download site, but then when I install them via ARD they don't actually update the software.  (The AppStore icons still show as needing the updates, and the version info reports the old version.)  The documentation is also vague about which AppleID to use in which circumstance.  I think they just haven't finished thinking through the implications of the various procedures and policies upon the various kinds of customers.  When we deployed Mountain Lion on the school lab, we made an install usb and went around and installed it on each computer -- and it appears that you are on the honor system as far as paying for all of the licenses that you install.  We did!  But they appear to have no way to enforce it.
    So far, I have only deployed 9 Lion macs in my day job, and our "solution" to the AppStore showing updates problem has been to drag the AppStore icon off of the users' docks so they don't see them!

Maybe you are looking for

  • How to print selected parts of a webpage

    How can I print selected parts of a webpage (or more than one), without printing whole pages? Screen shot is nor effective for what I want.

  • Error while executing transport in HANA's application life-cycle management

    Hi everyone, we're currently developing our HANA-based software and would like to use HANA's application life-cycle management: transporting our product from one system to another. Everything seems to be set up correctly: two different systems, corre

  • ITunes will not stream vidoe audio to Apple Hi-Fi speakers

    Hi - Using iTunes, I am able to stream music and podcast audio to my Apple Hi-Fi speakers via Airport Express. However, VidoeCast, TV Shows and purchased movies will not stream... am I doing something wrong? Is there a workaround? hevans

  • GenIL: Usage of method set_query_root required?

    Hello forum, unsure whether this is best forum for GenIL or BOL questions, but what other forum for it? We're currently working in GenIL to read a business partner from Siebel instead of the standard CRM tables. I'm subclassing the BuilHeader and Bui

  • CC photoshop + lightroom offer problem.

    Hey, I bought the CC photoshop + lightroom offer that was on the front page by clicking it. And now once the payment went through it only states that I bought Photoshop and not Lightroom? Whats up with that?