Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Oracle VM start policy

Savo MarovicJan 15 2015 — edited Jan 20 2015

Hi,

can someone please help me with this issue:

1. i created Oracle VM pool with 2 servers(Server1 and Server2). Pool start policy is set to Current server(Server1).

2. I created VM(Oracle Linux) on Server2 with HA enabled and VM start policy is set to Current server(Server2)

3. ssh to VM and issue HALT command

4. VM stops and starts on Server1, and always when i issue HALT, the VM starts on Server1. It seems that VM start policy setting does not override Pool policy setting.

Regards,

Savo

This post has been answered by Savo Marovic on Jan 20 2015
Jump to Answer

Comments

Frank Kulash

Hi, Björn,

In your second query, you use IN twice. The second time, the argument is a comma-delimited list, but you can use a sub-query just like you did in the first IN:

SELECT * FROM SALESMEETING_CUSTOMERLIST 
WHERE SALESMEETINGID IN
    (   -- Begin sub-query of salesmeetingid's wanted
    SELECT  SALESMEETINGID 
    FROM    SALESMEETING_CUSTOMERLIST 
    WHERE   CUSTOMERID IN
        (   -- Begin IN subquery of customerid's wanted
        SELECT    CUSTOMERID
        FROM      SALESMEETING_CUSTOMERLIST
        GROUP BY  CUSTOMERID
        HAVING    COUNT(*) > 1
        )   -- End sub-query of customerid's wanted
    )   -- End sub-query of salesmeetingid's wanted
;
Aketi Jyuuzou
create table SALESMEETING_CUSTOMERLIST(SALESMEETINGID,CUSTOMERID) as
select 10000,20001010 from dual union
select 10001,20002020 from dual union
select 10001,20001010 from dual union
select 10001,20007070 from dual union
select 10002,20003030 from dual union
select 10003,20001010 from dual union
select 10004,20002020 from dual union
select 10004,20005050 from dual union
select 10005,20006060 from dual;
select SALESMEETINGID,CUSTOMERID
from (select SALESMEETINGID,CUSTOMERID,
      max(cnt) over(partition by SALESMEETINGID) as maxCnt
      from (select SALESMEETINGID,CUSTOMERID,
            count(*) over(partition by CUSTOMERID) as cnt
              from SALESMEETING_CUSTOMERLIST))
where maxCnt >1;
SALESMEETINGID  CUSTOMERID
--------------  ----------
         10000    20001010
         10001    20001010
         10001    20002020
         10001    20007070
         10003    20001010
         10004    20005050
         10004    20002020
618026
Hi Frank,

Thanks, I figured it was something like that but just couldn't get it to work =)

Again, thank you!

/Björn
1 - 3
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Feb 17 2015
Added on Jan 15 2015
5 comments
1,402 views