Select from two db's

I would like to select name from db1..table and db2..table and I want all from both where ident = ?
When I do that I only get results from db1. How do I make sure that I get all the results from both db1 and db2.
BR.
Badleif

Hi,
Are your database db1 and db2 on the same instance ?
If not, u will need 2 connections i think.
If yes, a select * from db1.matable a, db2.matable b where a.ident=? or b.ident=? should work...

Similar Messages

  • Select from two tables and insert into a third

    I'm trying to do a select from two tables and do an insert into a third table from the two resulting columns.
    I have the following....
    DECLARE
    tempsid number;
    temphostid number;
    BEGIN
    select "DBSID_ID","ID" into tempsid,temphostid from "DBSIDS","SERVERS"
    where "HOST_SID" like '%'||"DBSID_NAME"||'%'
    and "HOST_NAME" not like 'vio%'
    and exists (select "DBSID_NAME" from DBSIDS)
    order by "DBSID_NAME";
    insert into "DBSID_LOOKUP" ("SIDLOOKUP_ID", "SERVERLOOKUP_ID")
    values(tempsid, temphostsid);
    END;
    run;
    I get the error ....
    ORA-06550: line 11, column 18:
    PL/SQL: ORA-00984: column not allowed here
    ORA-06550: line 10, column 1:
    PL/SQL: SQL Statement ignored
    1. DECLARE
    2. tempsid number;
    3. temphostid number;

    okay ... I tried a different way ...
    DECLARE
    a number;
    b number;
    BEGIN
    select "DBSID_ID","ID" into a,b from "DBSIDS","SERVERS"
    where "HOST_SID" like '%'||"DBSID_NAME"||'%'
    and "HOST_NAME" not like 'vio%'
    and exists (select "DBSID_NAME" from DBSIDS)
    order by "DBSID_NAME";
    insert into "DBSID_LOOKUP" (SIDLOOKUP_ID, SERVERLOOKUP_ID) values (a, b);
    END;
    and now it whines about ...
    ORA-01422: exact fetch returns more than requested number of rows

  • Selecting from two tables and confirming from them despites they not relate

    Please I need a query to select from two tables that are not related to each other.
    I also want to confirm data's as in verify wether what the user has entered is in accordance with what is in the tables
    Examples
    the first table is named "Card" and the second table is named "Student_Details"
    Card table contains a column named "Pin_Number".
    The Student_Details table contains fields such as Exam_Number, Name, Age, Sex.
    The user has to Enter the Pin_Number which has to be confirmed in the Card table and Exam_Number which has to be confirmed in the Student_Details table and verify that both data's are correct.
    Please I need the SQL and PL/SQL queries for this problem.
    Thanks

    Hi,
    I think you need two different queries
    You can write a procedure like:
    create or replace procedure p1 (p_pin_number number, p_exam_number)
    is
      r_card_row            card%rowtype;
      r_student_details     student_details%rowtype;
      cursor c1 is
      select *
        from card
       where pin_number = p_pin_number;
      cursor c2 is
      select *
        from student_details
       where exam_number = p_exam_number;
    begin
      open c1;
        loop
          fetch c1 into  r_card_row;
          exit when c1%notfound;
          ....  do whatever you want..... and the samething you can do with other cursor
        end loop;
      close c1;
    end p1;Hope this helps
    Ghulam

  • Selecting from two tables but making it just one selection

    Is there a way to select from two tables and just have one selection appear?
    Specifically I have a fact_install_unit, and a fact_install_arch table.
    Sometimes the value exists in fact_install_unit.factory_timestamp, and sometimes when fact_install_unit.factory_timestamp is null I need to pull it from the fact_install_arch.factory_timestamp.
    sort of like:
    (select fact_install_unit.factory_timestamp
    from fact_install_unit, fact_install_arch
    where fact_install_unit.fl_unit_sak = fact_install_arch.fl_unit_sak
    and where fact_install_unit.factory_timestamp is null then display fact_install_arch.factory_timestamp)

    > I was just stating that I do not have sufficient priveleges to create views in this database.
    >
    nm means "no more" than that
    And how are we supposed to know that? You seem to have changed the thread subject to "unfortunately I only have read-only and insufficient priveleges", which is not even a question.
    nm means "New Mexico":
    http://www.myshortpencil.com/schooltalk/messages/85/515.html?971794944

  • Selecting from two tables

    I have two tables:
    TABLE: users (user_is is primary key):
    ++++++++++++++++++++++++++++++++++++++
    user_id     | username
    1     | fazle
    2     | newaz
    3     | shaerul
    4     | badsha
    5     | mirmohsin
    6     | mdmohsin
    7     | shawkat
    8     | ahsan
    9     | admin
    TABLE: key_movement_history (history_id is primary key, key_handover_user_id and     key_takeover_user_id links to users.user_id):
    ++++++++++++++++++++++++++++++++++++++++++++++++++
    history_id     | handover_date     | key_handover_user_id |     key_takeover_user_id
    1     | 2006-10-18 16:25:07     | 8               |      2
    2     | 2006-10-18 17:03:09          | 2               |      8
    3     | 2006-10-18 17:04:45     |     8               |     1
    4     | 2006-10-18 17:28:35     |     1               |      8
    5     | 2006-10-18 17:31:59          | 8               |      1
    6     | 2006-10-19 19:04:02          | 1               |     8
    What is want is:
    TABLE 3:
    ++++++++
    handover_date     | key_handover_username | key_takeover_username
    2006-10-18 16:25:07     | ahsan     | newaz
    2006-10-18 17:03:09     | newaz          | ahsan
    2006-10-18 17:04:45     | ahsan          | fazle
    2006-10-18 17:28:35     | fazle          | ahsan
    2006-10-18 17:31:59     | ahsan          | fazle
    2006-10-19 19:04:02     | fazle          | ahsan
    Could anyone please tell me the select statement?
    I tried
    SELECT key_movement_histories.handover_date, users.username, users.username FROM key_movement_histories, users WHERE users.user_id = key_movement_histories.key_handover_user_id and users.user_id = key_movement_histories.key_takeover_user_id;
    but this did not work.
    Thanks in advance.
    Message was edited by:
    user538091

    sql>select * from t1;
        USER_ID  USERNAME
        1  Fazle 
        2  Nawaz 
        3  Sherul
    sql>select * from t2;
        HISTORY_ID  DT  HO_ID  TO_ID
        1  06-oct-06  1  2 
        2  16-oct-06  2  3 
        3  26-oct-06  3  1
    sql>select t2.history_id,t2.dt,
           t11.username ho_user,t12.username to_user
        from t1 t11,t1 t12,t2
        where t11.user_id = t2.ho_id
        and t12.user_id = t2.to_id;
        HISTORY_ID  DT  HO_USE  TO_USE 
        1  06-oct-06  Fazle  Nawaz 
        2  16-oct-06  Nawaz  Sherul 
        3  26-oct-06  Sherul  Fazle 
    jeneesh

  • Trying to create single select from two

    Hi all, i am new to this forum so be gentle with me...;-)
    i have got the following two queries that group by a number of columns and return counts of the grouped columns....now the question is, can i get a single query out of this with the two counts still coming out as two seperate counts but all grouped together...any advice gratefully received...
    1)
    SELECT BUSINESS_EVENT_DATE,
         nvl(POS_TYPE,'NONE') POS_TYPE,
         nvl(APPLICATION_TYPE, 'NONE') APPLICATION_TYPE,
         nvl(PROCESSING_AREA, 'NONE') PROCESSING_AREA,
         COUNT(*) APPS_RCVD
    FROM APPLICATION_FACT
    GROUP BY BUSINESS_EVENT_DATE, POS_TYPE, APPLICATION_TYPE, PROCESSING_AREA
    2)
    SELECT AF.BUSINESS_EVENT_DATE,
         nvl(AF.POS_TYPE,'NONE') POS_TYPE,
         nvl(AF.APPLICATION_TYPE, 'NONE') APPLICATION_TYPE,
         nvl(AF.PROCESSING_AREA, 'NONE') PROCESSING_AREA,
         COUNT(*) APPS_WITH_ANCAS_RCVD
    FROM APPLICATION_FACT AF, APPLICATIONWARNING_FACT AWF
    WHERE AF.INTERNAL_ACCOUNT = AWF.INTERNAL_ACCOUNT
    AND AF.APPLICATION_SEQ = AWF.APPLICATION_SEQ
    GROUP BY AF.BUSINESS_EVENT_DATE,
              AF.POS_TYPE,
              AF.APPLICATION_TYPE,
              AF.PROCESSING_AREA

    Hello
    I think you need to look at UNION and UNION ALL:
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96540/queries5a.htm#2054266
    HTH
    David

  • SELECT from two tables

    Hello, I have a problem writing a specific SELECT statement and I hope you'll help me out.
    I have two tables:
    Clients:
    - ID integer (PK)
    - Name_SecondName varchar(20)
    - Gender char
    - Balance integer
    Investments:
    - ID integer (PK)
    - Amount integer
    - Interest Numeric(3,2)
    - Client_ID (FK)
    My job is to display a number of men and a number of women who have at least one investment higher than $1000. I'll skip adding the data to the table, my point is just to find a proper construction for the SQL query. Right now I've got this:
    SELECT COUNT(DISTINCT Client_ID), COUNT(DISTINCT Client_ID)
    FROM Clients JOIN Investments
    ON Clients.ID = Investments.Client_ID
    WHERE Amount > 1000;
    Obviously it twice displays the number of clients with an investment higher than $1000. But how do I specify that the first COUNT counts men (Gender='M') and second - women (Gender = 'F') ?? Can anyone help me?
    Edited by: 934019 on 2012-05-13 12:10

    I'm using Oracle Database 11g Express Edition Release 11.2.0.2.0 - Production
    Here's the code:
    CREATE TABLE Clients
    Client_ID INTEGER PRIMARY KEY,
    Name_SecondName VARCHAR(20),
    Gender CHAR,
    Balance INTEGER
    CREATE TABLE Investments
    Investment_ID INTEGER PRIMARY KEY,
    Amount INTEGER,
    Interest NUMERIC(3,2),
    Client_ID INTEGER REFERENCES Clients(Client_ID)
    INSERT INTO Clients VALUES (1, 'Brad_Pitt', 'M', 100000);
    INSERT INTO Clients VALUES (2, 'Angelina_Jolie', 'F', 200000);
    INSERT INTO Clients VALUES (3, 'George_Clooney', 'M', 250000);
    INSERT INTO Clients VALUES (4, 'Meryl_Streep', 'F', 150000);
    INSERT INTO Clients VALUES (5, 'Colin_Farrell', 'M', 200000);
    INSERT INTO Clients VALUES (6, 'Scarlett_Johansson', 'F', 400000);
    INSERT INTO Investments VALUES (1, 10000, 4.25, 4);
    INSERT INTO Investments VALUES (2, 20000, 4.65, 3);
    INSERT INTO Investments VALUES (3, 15000, 3.85, 2);
    INSERT INTO Investments VALUES (4, 30000, 4.85, 6);
    INSERT INTO Investments VALUES (5, 25000, 4.5, 3);
    INSERT INTO Investments VALUES (6, 15000, 4.35, 5);
    INSERT INTO Investments VALUES (7, 20000, 4.75, 6);
    INSERT INTO Investments VALUES (8, 10000, 4.15, 1);
    INSERT INTO Investments VALUES (9, 25000, 4.6, 3);
    INSERT INTO Investments VALUES (10, 20000, 4.15, 4);
    And now I make a SELECT statement as follows:
    SELECT COUNT(DISTINCT Client_ID), COUNT(DISTINCT Client_ID)
    FROM Clients NATURAL JOIN Investments
    WHERE Investments. Amount > 15000;
    The result is:
    COUNT (DISTINCT Client_ID) *3*
    COUNT(DISTINCT Client_ID) *3*
    It now displays '3' because there are 3 clients who have at least one investment higher than 15000 (George Clooney, Meryl Streep and Scarlett Johansson).
    So again the question is how to make the first COUNT count only men and the second COUNT - only women? I don't want it to display the clients - just the number of them.

  • Are Selects from ( two or more ) Virtual Tables Possible?

    Hello.
    This is what I mean by a virtual table - and this works in OBIEE -
    select
        saw_0, saw_2, saw_3
    from
         SELECT
            "- Nx_CSDG0_Repair_Orders (Depot Repair Views)".Repair_Number saw_0,
            "- Nx_CSDG0_Repair_Orders (Depot Repair Views)".Repair_Order_Creation_Date saw_2,
            "- Nx_CSDG0_Repair_Orders (Depot Repair Views)".Repair_Order_Closed_Date saw_3
         FROM
            "[Noetix-NoetixGlobalRepository] NoetixViews for Oracle Service"
         WHERE
           "- Nx_CSDG0_Repair_Orders (Depot Repair Views)".Repair_Number BETWEEN '100000' AND '100009'
    ) t1However, this does not work -
    [ Note that each of the nested queries works ok on its own. ]
    select
        saw_0, saw_2, saw_3, saw_4
    from
         (SELECT
            "- Nx_CSDG0_Repair_Orders (Depot Repair Views)".Repair_Number saw_0,
            "- Nx_CSDG0_Repair_Orders (Depot Repair Views)".Repair_Order_Creation_Date saw_2,
            "- Nx_CSDG0_Repair_Orders (Depot Repair Views)".Repair_Order_Closed_Date saw_3
         FROM
            "[Noetix-NoetixGlobalRepository] NoetixViews for Oracle Service"
         WHERE
            "- Nx_CSDG0_Repair_Orders (Depot Repair Views)".Repair_Number BETWEEN '100000' AND '100009' ) t1,
         (SELECT
            TOPN("- Nx_CSDG0_Repair_Orders (Depot Repair Views)".Repair_Number, 3) saw_4, 
         FROM
           "[Noetix-NoetixGlobalRepository] NoetixViews for Oracle Service"
         WHERE
           "- Nx_CSDG0_Repair_Orders (Depot Repair Views)".Repair_Number BETWEEN '100000' AND '100009' ) t2
    ) t3My question is this - is there a syntactic variation on this that does work? Or is it impossible?
    Thank you!
    Charlie

    Hello, User.
    I think what I'm trying to achieve is unclear. Consider first this query -
    SELECT
            "- Nx_CSDG0_Repair_Orders (Depot Repair Views)".Repair_Number saw_0,
            "- Nx_CSDG0_Repair_Orders (Depot Repair Views)".Repair_Order_Creation_Date saw_2,
            "- Nx_CSDG0_Repair_Orders (Depot Repair Views)".Repair_Order_Closed_Date saw_3
         FROM
            "[Noetix-NoetixGlobalRepository] NoetixViews for Oracle Service"
         WHERE
            "- Nx_CSDG0_Repair_Orders (Depot Repair Views)".Repair_Number BETWEEN '100000' AND '100009'Let's call that the "business result".
    What I'm trying to do is get a result set that has 3 rows for every row in the "business result" set. I'm trying to get this by coercing OBIEE to join the business result to an arbitrary 3-row set whose only purpose is to create that cartesian product result.
    So I create a second SQL expression -
    SELECT
            TOPN("- Nx_CSDG0_Repair_Orders (Depot Repair Views)".Repair_Number, 3) saw_4, 
         FROM
           "[Noetix-NoetixGlobalRepository] NoetixViews for Oracle Service"
         WHERE
           "- Nx_CSDG0_Repair_Orders (Depot Repair Views)".Repair_Number BETWEEN '100000' AND '100009'- which returns 3 rows of anything.
    I want to turn this -
    1   ABC   20.95
    2   DEF   19.95
    3   XYZ   24.95Into this -
    A  1   ABC   20.95
    B  1   ABC   20.95
    C  1   ABC   20.95
    A  2   DEF   19.95
    B  2   DEF   19.95
    C  2   DEF   19.95
    A  3   XYZ   24.95
    B  3   XYZ   24.95
    C  3   XYZ   24.95My attempt to force a join fails - and I'm asking if there is a syntax tweak (or another approach entirely) that will do the trick.
    Thank you.
    Charlie

  • Selecting from 2 different tables

    is this possible?
    i just want to select from two different tables in one select statement and they have the same WHERE clause

    SELECT
      a.pkggrp,
      a.pkgtype,
      a.area,
      a.process,
      a.ww,
      count(a.ww) as LOTSGATED,
      sum(a.samplesize) as SUMSAMPLESIZE,
      sum(a.total_defects) as SUMTOTALDEFECTS,
      sum(case a.auditresult when 'pass' then 1 else 0 end) COUNTPASS,
      sum(case a.auditresult when 'fail' then 1 else 0 end) COUNTFAIL,
      case sum(case a.auditresult when 'fail' then 1 else 0 end)
        when 0 then 0
      else round(sum(case a.auditresult when 'fail' then 1 else 0 end) / count(a.ww) * 100,2)
        end LRR,
      case sum(case a.auditresult when 'fail' then 1 else 0 end)
        when 0 then 0
      else round(sum(case a.auditresult when 'fail' then 1 else 0 end) / sum(a.samplesize) * 1000000,0)
        end PPM,
      count(c.itrnum)
    FROM
      t_prodproc_monitoring a, t_itr c
    WHERE
      a.ww=c.ww
      and a.ww between 1 and 50
      and c.ww between 1 and 50
    GROUP BY
      a.pkggrp,
      a.pkgtype,
      a.area,
      a.process,
      a.ww
    ORDER BY
      a.pkggrp,
      a.pkgtype,
      a.area,
      a.process,
      a.ww ascthis gave me a
    "c". "ww": invalid identifier

  • Selection from different tables

    Hello Everyone,
    I have a situation where I have 15 fields in the selection screen.
    The selection is dependent on three or more tables.
    First I have selected from two tables but if the user enters values in the selection screen then how to make the selection.
    Tables dont have common fields between them. LIKP, LIPS, VTTK, VBUK and VEKP are the tables.
    Can you guys guide me.
    Thank you.

    Hi Vinod,
    First I have selected from two tables but if the user enters values in the selection screen then how to make the selection.
    Your query is not so clear. When are you fetching the data from two table whether before selection screen input (Initialization event) or after selection screen?
    Can you please elaborate your query and better if you post your Selection Screen screen-shot.
    Regards,
    VIjay

  • Querying from two different databases

    Hi All,
    I have a Adhoc requirement where in i have to do a select from two tables, but one of them resides on a different database.
    The tables have a common primary key, so i can do a one to one match. Is there anyway to query them without using a DB link?

    Hi!
    I think - if u create a global synonym using that dblink - next time u can use that synonym and u don't have to use any dblink further.
    Regards.
    Satyaki De.

  • Urgent. . .About select * from multiple tables

    When I am doing the 'Select * from tables' in JSP,
    sql = dbconn.prepareStatement("SELECT * FROM protein WHERE protein_id ='"+p_i+"'");
    It works, because I only select one table.
    Then, I change to select from two tables,
    sql = dbconn.prepareStatement("SELECT * FROM protein, fuses WHERE protein_id ='"+p_i+"'");
    It also works properly?
    However, When I do like:
    sql = dbconn.prepareStatement("SELECT * FROM protein, protein_taxa WHERE protein_id ='"+p_i+"'");
    It doesn?t work.
    So, I think it might be the problem that there is a common column 'protein_id' in both tables, although protein_taxa.protein_id is a foreign key of protein.protein_id. Therefore, I can select two table protein, fuses which have different columns, but no way to select the table they have same name column.
    However, it?s essential for me to select all the data from the database. Any way I could achieve it? Thanks a lot!!

    SELECT *
    FROM protein, protein_taxa
    WHERE protein.protein_id = 'a_protein_id'
    and protein.protein_id = protein_taxa.protein_id It would also be good to indicate which fields you want on the select clause. This will liberate the server to return two fields with the same name.
    SELECT protein.protein_id, protein.name, protein_taxa.taxa /* ??? */
    FROM protein, protein_taxa
    WHERE protein.protein_id = 'a_protein_id'
    and protein.protein_id = protein_taxa.protein_id

  • To Select the data from two table one is transp table and onther is cluster

    Hi All,
    I want to select the data from two tables
    Here i am giving with an example.
    Fileds: kunnr belnr from bseg.  table bseg
    fields: adrnr from kna1     table: kna1.
    Know i want to put these into one internal table based on kunnr and belnr.
    Thanks in advance.
    Ramesh

    Hi,
       U cant use joins on cluster table and BSEG is a cluster table so use FOR  ALL ENTRIES for taht
    refer this code
    *&      Form  sub_read_bsak
          text
    -->  p1        text
    <--  p2        text
    FORM sub_read_bsak.
    *--Select data from BSAK Table
      SELECT lifnr
             augdt
             augbl
             gjahr
             belnr
             xblnr
             blart
             dmbtr
             mwskz
             mwsts
             sgtxt
             FROM bsak
             INTO CORRESPONDING FIELDS OF TABLE it_bsak
             WHERE belnr IN s_belnr
             AND   augdt IN s_augdt.
      IF sy-subrc EQ 0.
    *--Sort table by accounting document and vendor number
        SORT it_bsak BY belnr lifnr.
      ENDIF.
    ENDFORM.                    " sub_read_bsak
    *&      Form  sub_read_bseg
          text
    -->  p1        text
    <--  p2        text
    FORM sub_read_bseg.
      IF NOT it_bsak[] IS INITIAL.
    *--Select data from BSEG table
        SELECT belnr
               gjahr
               shkzg
               kostl
               hkont
               ebeln
               ebelp
               FROM bseg
               INTO CORRESPONDING FIELDS OF TABLE it_bseg
               FOR ALL ENTRIES IN it_bsak
               WHERE belnr EQ it_bsak-belnr
               AND   gjahr EQ it_bsak-gjahr
               AND   shkzg EQ 'S'.
        IF sy-subrc EQ 0.
    *--Sort table by accounting document
          SORT it_bseg BY belnr.
        ENDIF.
      ENDIF.
    ENDFORM.                    " sub_read_bseg

  • Need of SQL query in selecting distinct values from two tables

    hi,
    I need a query for selecting distinct values from two tables with one condition.
    for eg:
    there are two tables a & b.
    in table a there are values like age,sex,name,empno and in table b valuses are such as age,salary,DOJ,empno.
    here what i need is with the help of empno as unique field,i need to select distinct values from two tables (ie) except age.
    can anybody please help me.
    Thanks in advance,
    Ratheesh

    Not sure what you mean either, but perhaps this will start a dialog:
    SELECT DISTINCT a.empno,
                    a.name,
                    a.sex,
                    b.salary,
                    b.doj
    FROM    a,
            b
    WHERE   a.empno = b.empno;Greg

  • How can I select events from two different channels?

    Hi everybody, I have another question! :)
    When processing events in config.xml, using a CQL sentence, Eclipse compiler doesn't allow me to select more than one event.
    I paste here my app.context.xml and my config.xml:
    app.context.xml:
    <wlevs:event-type-repository>
    <wlevs:event-type type-name="HorseEvent">
    <wlevs:class>com.bea.wlevs.event.example.sevenhorses.HorseEvent</wlevs:class>
    </wlevs:event-type>
    <wlevs:event-type type-name="GunmanEvent">
    <wlevs:class>com.bea.wlevs.event.example.sevenhorses.GunmanEvent</wlevs:class>
    </wlevs:event-type>
    </wlevs:event-type-repository>
    <!-- Adapter can be created from a local class, without having to go through a adapter factory -->
    <wlevs:adapter id="sevenhorsesAdapter" class="com.bea.wlevs.adapter.example.sevenhorses.SevenHorsesAdapter" >
    <wlevs:instance-property name="messageHorse" value="I am the horse number: "/>
    <wlevs:instance-property name="messageGunman" value="I am the gunman number: "/>
    </wlevs:adapter>
    <wlevs:channel id="horseInputChannel" event-type="HorseEvent" >
    <wlevs:listener ref="sevenhorsesProcessor"/>
    <wlevs:source ref="sevenhorsesAdapter"/>
    </wlevs:channel>
    <wlevs:channel id="gunmanInputChannel" event-type="GunmanEvent" >
    <wlevs:listener ref="sevenhorsesProcessor"/>
    <wlevs:source ref="sevenhorsesAdapter"/>
    </wlevs:channel>
    <!-- The default processor for OCEP 11.0.0.0 is CQL -->
    <wlevs:processor id="sevenhorsesProcessor" />
    <wlevs:channel id="horseOutputChannel" event-type="HorseEvent" advertise="true">
    <wlevs:listener>
    <bean class="com.bea.wlevs.example.sevenhorses.SevenHorsesBean"/>
    </wlevs:listener>
    <wlevs:source ref="sevenhorsesProcessor"/>
    </wlevs:channel>
    <wlevs:channel id="gunmanOutputChannel" event-type="GunmanEvent" advertise="true">
    <wlevs:listener>
    <bean class="com.bea.wlevs.example.sevenhorses.SevenHorsesBean"/>
    </wlevs:listener>
    <wlevs:source ref="sevenhorsesProcessor"/>
    </wlevs:channel>
    And here you are the two config.xml, I have tried two different ones and none of them runs.
    The first one is:
    <?xml version="1.0" encoding="UTF-8"?>
    <n1:config xmlns:n1="http://www.bea.com/ns/wlevs/config/application">
    <processor>
    <name>sevenhorsesProcessor</name>
    <rules>
    <query id="horsesRule">
    <![CDATA[ select * from horseInputChannel
            ]]>
    </query>
    <query id="gunmansRule">
    <![CDATA[ select * from gunmanInputChannel
            ]]>
    </query>
    </rules>
    </processor>
    </n1:config>
    As you can see, I use here TWO CQL sentences from the two channels that are defined in app.context.xml.
    The other one is:
    <?xml version="1.0" encoding="UTF-8"?>
    <n1:config xmlns:n1="http://www.bea.com/ns/wlevs/config/application">
    <processor>
    <name>sevenhorsesProcessor</name>
    <rules>
    <query id="horsesRule">
    <![CDATA[ select * from horseInputChannel, gunmanInputChannel
            ]]>
    </query>
    </rules>
    </processor>
    </n1:config>
    I use here only ONE CQL sentence in which I try to get events from the two channels that are defined.
    None of them works.
    Can anybody help me?
    Thank you!

    Hi! Here you are the files you required:
    SevenHorses.context.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:osgi="http://www.springframework.org/schema/osgi"
    xmlns:wlevs="http://www.bea.com/ns/wlevs/spring"
    xsi:schemaLocation="
    http://www.springframework.org/schema/beans
    http://www.springframework.org/schema/beans/spring-beans.xsd
    http://www.springframework.org/schema/osgi
    http://www.springframework.org/schema/osgi/spring-osgi.xsd
    http://www.bea.com/ns/wlevs/spring
    http://www.bea.com/ns/wlevs/spring/spring-wlevs-v11_1_1_3.xsd">
    <wlevs:event-type-repository>
    <wlevs:event-type type-name="HorseEvent">
    <wlevs:class>com.bea.wlevs.event.example.sevenhorses.HorseEvent</wlevs:class>
    <wlevs:properties>
    <wlevs:property name="messageHorse" type="java.lang.String"></wlevs:property>
    </wlevs:properties>
    </wlevs:event-type>
    <wlevs:event-type type-name="GunmanEvent">
    <wlevs:class>com.bea.wlevs.event.example.sevenhorses.GunmanEvent</wlevs:class>
    <wlevs:properties>
    <wlevs:property name="messageGunman" type="java.lang.String"></wlevs:property>
    </wlevs:properties>
    </wlevs:event-type>
    </wlevs:event-type-repository>
    <!-- Adapter can be created from a local class, without having to go through a adapter factory -->
    <wlevs:adapter id="sevenhorsesAdapter" class="com.bea.wlevs.adapter.example.sevenhorses.SevenHorsesAdapter" >
    <wlevs:instance-property name="messageHorse" value="I am the horse number: "/>
    <wlevs:instance-property name="messageGunman" value="I am the gunman number: "/>
    </wlevs:adapter>
    <wlevs:channel id="horsesInputChannel" event-type="HorseEvent">
    <wlevs:listener ref="sevenhorsesProcessor"/>
    <wlevs:source ref="sevenhorsesAdapter"/>
    </wlevs:channel>
    <wlevs:channel id="horsesInputChannel2" event-type="HorseEvent">
    <wlevs:listener ref="sevenhorsesProcessor"/>
    <wlevs:source ref="sevenhorsesAdapter"/>
    </wlevs:channel>
    <!-- The default processor for OCEP 11.0.0.0 is CQL -->
    <wlevs:processor id="sevenhorsesProcessor" />
    <wlevs:channel id="horseOutputChannel" event-type="HorseEvent" advertise="true">
    <wlevs:listener>
    <bean class="com.bea.wlevs.example.sevenhorses.SevenHorsesBean"/>
    </wlevs:listener>
    <wlevs:source ref="sevenhorsesProcessor"/>
    </wlevs:channel>
    </beans>
    config.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <n1:config xmlns:n1="http://www.bea.com/ns/wlevs/config/application">
    <processor>
    <name>sevenhorsesProcessor</name>
    <rules>
    <query id="horsesRule">
    <![CDATA[ select message from horsesInputChannel2 where message like "(gunman)"
            ]]>
    </query>
    </rules>
    </processor>
    </n1:config>
    Thanks!

Maybe you are looking for

  • 10.4.6 Has killed my machine TWICE

    Twice I have tried to install 10.4.6 on my 533 MHz G4 and both times I have been locked in never ending start up. In fact, the first time I tried to install this update I think it somehow killed my system drive. I have since switched to a new hard dr

  • Exporting (to edit) from LR5 to Photoshop CC vs. LR4 to Photoshop CS6 different?

    In the "old days" in LR4, when I want to edit in PS6, I get a dialog box asking if I want to edit the original file or the file with LR adjustments. Now, from LR 5.2 to PS CC, no dialog box. Did I miss something?? Tim Mac Pro OS 10.8.5

  • Vertical Scroll Reload on Table Control

    Hello, I've created a couple table controls in ABAP for a custom transaction that is going to be run through the web portal.  My problem is that the horizontal scroll on the table is handled on the front end, and the vertical scroll is handled in the

  • Gnome-power-manager update causes backlight to power off frequently

    After the upgrade to gnome-power-manager 2.26.1-1 today, my laptop screen backlight is being powered off constantly, after only about 1 minute. It's not the screen blanking, but the backlight going off. It comes right back up if I do anything on the

  • Trouble connecting to MySQL databases

    So everything is in its propper place. I got to connect to a database and I get this. Over and over again, I've checked and rechecked everything several times. I just don't know what to do. I have Xampp installed and it works wonderfully, I just need