SCCM Hierarchy Queries
Please answer the below queries on urgent manner
Scenario 1. SCCM installed as a primary stand alone site, It is possible to install/configure another primary site in same site code.
I understand existing stand alone should connected to CAS server first, Under the CAS server can i install another Primary site in remote locations - ??
Scenarion 2. Assume i installed CAS server first, created the primary(1st) in Headoffice and plannned to install another primary (2nd) site in remote location. Any replication will happen be between CAS server and primary site (2nd) installed in
remote locations. If Yes, can it scheduled at off time or it can enabled with Branch cache. -??
If I continue with my stand alone primary site, is it possible to extend another primary site under existing primary site server
without introducing CAS server ??<o:p></o:p>
Rajesh – No, it is not possible,<o:p></o:p>
If its allowed to introduce another primary site under existing stand alone primary site, Whether the new primary
site can handle clients independently (No client should contact parent primary site) ??<o:p></o:p>
Rajesh :: This scenario is not possible. <o:p></o:p>
If i planned to introduce secondary site under existing stand alone primary site, Separate CAS server still
required ??.<o:p></o:p>
Rajesh :: No it is not required. You can install a secondary Site under the primary site without the CAS.<o:p></o:p>
If i add an secondary site under exisitng primary site server, i assumed secondary site server data's (client
info) will always replicate to primary site - this will choke my network traffic -??<o:p></o:p>
Rajesh :: Secondary Site will always replicate the data to Primary Site. Bandwidth utilization depends on the number of clients
on the secondary site. If you have less than 2000 clients and have a good network link, you can still survive with a DP only.<o:p></o:p>
Assume, I installed CAS server, Under CAS server two primary server (1 - HO site, 1 - Branch site) added.
In that case i need clarity, whether branch primary site will replicate continously with CAS server for data replication ??<o:p></o:p>
Rajesh :: Yes, There will be a continuous data replication between CAS and Primary site. In addition to that content and un
processed DDRs will flow using file base replication. However you can configure bandwidth throttling using replication routes to control file base replication. Please visit following link to understand data replication in SCCM 2012.
http://blogs.technet.com/b/server-cloud/archive/2012/03/06/data-replication-in-system-center-2012-configuration-manager.aspx
Similar Messages
-
Top n analysis using hierarchial queries
hi all,
can we do top n analysis in hierarchial queries using level pseudo columns. if so please give an example.
thanks and regards,
sri ram.Hi,
Analytic functions (such as RANK) often interfere with CONNECT BY queries. Do one of them in a sub-query, and the other in a super-query, as shown below.
If you do the CONNECT BY first, use ROWNUM (which is assigned after ORDER SIBLINGS BY is applied) to preserve the order of the CONNECT BY query.
WITH connect_by_results AS
SELECT LPAD ( ' '
, 3 * (LEVEL - 1)
) || ename AS iname
, sal
, ROWNUM AS r_num
FROM scott.emp
START WITH mgr IS NULL
CONNECT BY mgr = PRIOR empno
ORDER SIBLINGS BY ename
SELECT iname
, sal
, RANK () OVER (ORDER BY sal DESC) AS sal_rank
FROM connect_by_results
ORDER BY r_num
;Output:
INAME SAL SAL_RANK
KING 5000 1
BLAKE 2850 5
ALLEN 1600 7
JAMES 950 13
MARTIN 1250 10
TURNER 1500 8
WARD 1250 10
CLARK 2450 6
MILLER 1300 9
JONES 2975 4
FORD 3000 2
SMITH 800 14
SCOTT 3000 2
ADAMS 1100 12
I hope this answers your question.
If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only), and the results you want from that data. If you use only commonly available tables (such as those in the scott or hr schemas), then you don't have to post any sample data; just post the results.
Explain how you get those results from that data.
Always say what version of oracle you're using. -
What is the role of PRIOR in hierarchial queries
hi all,
what is the role of prior operator in CONNECT BY Clause of the hierarchial queries, what is the effect when it is used on the right side or left side of the condition ? almost all the queries contains this clause, if it is omitted the child values are not coming. what is the reason. plz explain.
please check the following outputs:
SQL> select ename,sys_connect_by_path(ename,'\') hierarchy from emp start with ename='KING' connect by empno = mgr;
ENAME HIERARCHY
KING \KING
Elapsed: 00:00:00.04
SQL> select ename,sys_connect_by_path(ename,'\') hierarchy from emp start with ename='KING' connect by prior empno = mgr;
ENAME HIERARCHY
KING \KING
JONES \KING\JONES
SCOTT \KING\JONES\SCOTT
ADAMS \KING\JONES\SCOTT\ADAMS
FORD \KING\JONES\FORD
SMITH \KING\JONES\FORD\SMITH
BLAKE \KING\BLAKE
ALLEN \KING\BLAKE\ALLEN
WARD \KING\BLAKE\WARD
MARTIN \KING\BLAKE\MARTIN
TURNER \KING\BLAKE\TURNER
JAMES \KING\BLAKE\JAMES
CLARK \KING\CLARK
MILLER \KING\CLARK\MILLER
14 rows selected.
Elapsed: 00:00:00.09
SQL> select ename,sys_connect_by_path(ename,'\') hierarchy from emp start with ename='KING' connect by empno = prior mgr;
ENAME HIERARCHY
KING \KING
Elapsed: 00:00:00.06
SQL>
thanks and regards,
sri ram.Hi, Sri Ram,
Sri Ram wrote:
hi all,
what is the role of prior operator in CONNECT BY Clause of the hierarchial queries, "PRIOR x" means a value of x from one of the rows that were added to the result set at the previous level.
what is the effect when it is used on the right side or left side of the condition ? There is no difference between
CONNECT BY PRIOR x = yand
CONNECT BY y = PRIOR xjust like there is no difference between
WHERE x = yand
WHERE y = x
almost all the queries contains this clause, No, most queries do not contain a CONNECT BY clause.
Most queries that have a CONNECT BY clause do use a PRIOR operator.
if it is omitted the child values are not coming. what is the reason. plz explain.No, that's not true. A common example is a Counter Table :
SELECT SYSDATE + LEVEL - 1
FROM dual
CONNECT BY LEVEL <= 7;
please check the following outputs:
SQL> select ename,sys_connect_by_path(ename,'\') hierarchy from emp start with ename='KING' connect by empno = mgr;
ENAME HIERARCHY
KING \KING
Elapsed: 00:00:00.04
SQL> select ename,sys_connect_by_path(ename,'\') hierarchy from emp start with ename='KING' connect by prior empno = mgr;
ENAME HIERARCHY
KING \KING
JONES \KING\JONES
SCOTT \KING\JONES\SCOTT
ADAMS \KING\JONES\SCOTT\ADAMS
FORD \KING\JONES\FORD
SMITH \KING\JONES\FORD\SMITH
BLAKE \KING\BLAKE
ALLEN \KING\BLAKE\ALLEN
WARD \KING\BLAKE\WARD
MARTIN \KING\BLAKE\MARTIN
TURNER \KING\BLAKE\TURNER
JAMES \KING\BLAKE\JAMES
CLARK \KING\CLARK
MILLER \KING\CLARK\MILLER
14 rows selected.
Elapsed: 00:00:00.09
SQL> select ename,sys_connect_by_path(ename,'\') hierarchy from emp start with ename='KING' connect by empno = prior mgr;
ENAME HIERARCHY
KING \KINGOkay, I checked them. I get the same results. Did you have a question about them? -
Doubt's regarding the Hierarchial Queries in Oracle
Hi,
i have a doubt regarding the Hierarchial Queries in Oracle.
SELECT * FROM TMP_TEST;
ID NUMVAL STRVAL
1 100 Hello
1 -100 World
2 1 Concatenate
2 2 In String
2 3 using Connect By
2 4 Using SYS_CONNECT_BY_PATH
i am clear with my execution of IN_Line view (mechanism how it work's) .
But i have also read about the Hierarchial queries in the Oracle product documentation's. i am also aware of the
SYS_CONNECT_BY_PATH , LEVEL & START WITH , CONNECT BY Keywords.
But i couldnot able to Manually work out as how this below Query works.
Can you please explain me how this Hieracial query works ?
SELECT ID, (SYS_CONNECT_BY_PATH(STRVAL,',')),LEVEL
FROM
SELECT ID,STRVAL,ROW_NUMBER() OVER(PARTITION BY ID ORDER BY ID) RNUM,
COUNT(*) OVER(PARTITION BY ID ORDER BY ID) CNT,NUMVAL
FROM TMP_TEST
START WITH RNUM = 1
CONNECT BY PRIOR RNUM = RNUM - 1
Many Thanks,
Rajesh.Hi, Rajesh,
My first message was in response to your first message.
In your latest message, the query is:
SELECT ID, (SYS_CONNECT_BY_PATH(STRVAL,',')),LEVEL
FROM (
SELECT ID,STRVAL,ROW_NUMBER() OVER(PARTITION BY ID ORDER BY ID) RNUM,
COUNT(*) OVER(PARTITION BY ID ORDER BY ID) CNT,NUMVAL
FROM TMP_TEST
WHERE RNUM = CNT
START WITH RNUM = 1
CONNECT BY PRIOR RNUM = RNUM - 1;It looks like you lost the second CONNECT BY condition:
AND PRIOR ID = IDPut it back: it's important.
Now you're confused about the output row:
2 ,Hello,World,using Connect By,Using SYS_CONNECT_BY_PATH 4It doesn't seem to correspond to anything results that you got when you ran the sub-query alone.
That's because the resutls from your sub-query may change every time you run it, even though the data doesn't change. The ORDER BY clauses in both of the analytic functions do not result in a complete ordering. In fact, they're completely meaningless. It never makes any sense to PARTITON BY and ORDER BY the same value; "PARTITION BY id" means that only rows with the same id will be compared to each other; you might as well say "ORDER BY 0" or "ORDER BY dmbs_random.value".
The ORDER BY clause of ROW_NUMBER whould reflect that way in which you want the results to appear within each id, for example:
ROW_NUMBER () OVER (PARTITION BY id ORDER BY UPPER (strval))Note that this is very similar to what was in my first reply.
In the COUNT function, why do you want an ORDER BY clause at all? Just say:
COUNT (*) OVER (PARTITION BY id) -
Regarding Sccm console queries
Hello,
I have this node Xml. I want to populate the node with all the sccm clients . I am not habitual of sccm queries. I need to insert the queries in the query tag.
The queries i am looking for is give me a list of all sccm clients.
When i using the query like SELECT sms_r_system.Name from sms_r_system where Client=1 its populating the namespace node with sms_r_system and showing it 2 times. I don't know where i am wrong.
<RootNodeDescription NamespaceGuid="778d1b97-e41f-4cc5-b6c0-41fc90013c4e" Id="NamespaceObjects" DisplayName="Namespace" Description="Namespace object instance viewer" HelpTopic="">
<RootNodes>
<NodeDescription>
<ScopePaneItemDescriptions>
<ScopePaneItemDescription NamespaceGuid="91a66c1c-0407-40e7-8696-fd382aca5ad2">
<Queries>
<QueryDescription NamespaceGuid="a0f56f00-0fce-4fff-a908-0a199f119265" Type="WQL" DisplayName="##SUB:__CLASS##" HelpTopic="">
<ViewAssemblyDescriptions>
<ViewAssemblyDescription>
<Assembly>ConfigMgrObjectsControl.dll</Assembly>
<Type>Microsoft.ConfigurationManagement.AdminConsole.ConfigMgrObjectsView.ConfigMgrObjectsViewDescription</Type>
</ViewAssemblyDescription>
</ViewAssemblyDescriptions>
<Query>SELECT sms_r_system.Name from sms_r_system where Client=1</Query>
</QueryDescription>
</Queries>
</ScopePaneItemDescription>
</ScopePaneItemDescriptions>
<ResultPaneItemDescriptions>
<ResultPaneItemDescription NamespaceGuid="324a6ff7-2266-4b0a-b0cd-7fc9721e553f" />
</ResultPaneItemDescriptions>
<NodeDescriptions />
</NodeDescription>
</RootNodes>
</RootNodeDescription>Hi
I'm not sure exactly what you are trying to do here but from what you have indicated above "showing it 2 times" I would add Distinct to the SQL query. SELECT Distinct sms_r_system.Name from sms_r_system where Client=1.
Hope this helps
Regards
Adrian -
Hierarchial Queries and Redo log files
Hi,
I'm running a hierarchial query (start with, connect by prior, etc.).
The query takes a couple of minutes and apparently is filling up the archive files
(I assume it comes from the redo log files).
Question:
1. Does it make sense that a hierarchial query should so fill up the redo log files (It seems as if all the 'intermediate' results are being written there).
2. What do you suggest I do ??
Thanks,
DavidWhat do you suggest I do ??Post your query and the execution plan or the trace file from tkprof.
How to do that is explained in this thread;
How to post a SQL statement tuning request HOW TO: Post a SQL statement tuning request - template posting -
Help me how migrate SCCM 2007 queries into SCCM 2012 queries
Hi,
I know query migration is not possible to 2012 SCCM. Any possible way ..?
Like powershell or script?Hi,
These might be helpful for you to create your own script.
http://msdn.microsoft.com/en-us/library/hh949058.aspx
http://msdn.microsoft.com/en-us/library/cc145430.aspx
Best Regards,
Joyce
We
are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place. -
Is it possible to install entire SCCM hierarchy on VMWare/ESX virtual platform ?
Hello,
I am planning to migrate my SCCM 2007(5 Primary sites) to SCCM 2012 SP1
1. Can I avoid using physical machine and move it completely to Virtual server.
2. if yes which are the virtual platforms I can use...Absolutely - as long as they are suitably resourced.
Gerry Hampson | Blog:
www.gerryhampsoncm.blogspot.ie | LinkedIn:
Gerry Hampson | Twitter:
@gerryhampson -
Consider the follwoing data set:
Parent Child_Low Child_High
10 200 300
250 400 600
500 700 800
I want the following result set:
10 250 500.
I used the folowing query:
'select rownum, level, parent, child_low, child_high
from 'TABLE_NAME'
connect by
and prior child_low <= parent
and prior child >= parent'.
It certainly does not work.
Can somebody give me some kind a solution??????check out the following query...
Select level,Parent ,Child_Low ,Child_high
from 'table_name'
start with Parent =10
connect by Parent between prior Child_low and prior child_high -
Hi, I'm creating a query on system resources and I want to limit the query to users of a specified group.
I know you cannot limit a system query to a user collection but is there a way to set a criteria that will query members of a specific user group with the System.LastLogonUserName attribute?
From what I see there's no "memberOf" operator in the criterion properties for this attribute.
To summarize, what I'd like to do is get hardware inventory from systems which the last logon user name is part of a specific user group.
If there's better alternatives for my goal please let me know.
Thanks for your help.
Regards,Yes, I know this is an old post, just trying to clean them up, did you figure this out? If so how?
If this is for a report (SQL/ SSRS), yes you can do this but it will require a bit of work. If this is for a collection (query / WQL) it will be very difficult to get this to work.
What do you want to use this for?
http://www.enhansoft.com/ -
Chanllenging task in hierarchial queries
I have a table sk_main
create table sk_main(empno number, mgr number)
insert into sk_main values (1,null);
insert into sk_main values (2,1);
insert into sk_main values (3,1);
insert into sk_main values (4,2);
insert into sk_main values (6,2);
insert into sk_main values (5,3);
Another Table
create table sk_recalc(id number, tag_val varchar2(1000))
Initially table is loaded like this,
insert into sk_recalc
select rownum,ltrim(sys_connect_by_path(empno,'\'),'\') from sk_main
start with mgr is null
connect by prior empno=mgr;
Output1:
ID|TAG_VAL
1|1
2|1\2
3|1\2\4
4|1\2\6
5|1\3
6|1\3\5
Now assume below DML's Happened to sk_main table,
insert into sk_main values(7,2);
update sk_main set mgr=7 where empno=4
so now tag_val's become
Output2:
ROWNUM|LTRIM(SYS_CONNECT_BY_PATH(EMPNO,'\'),'\')
1|1
2|1\2
3|1\2\6
4|1\2\7
5|1\2\7\4
6|1\3
7|1\3\5
now if we see output1 and output2,
sk_recalc() output is below before dml operations to sk_main table, after dml operations, sk_recalc() table should get update for those records which are different
Output1:
ID|TAG_VAL
1|1
2|1\2
3|1\2\4
4|1\2\6
5|1\3
6|1\3\5
and after dml operations sk_recalc() table should get update for those records which are different after dml operations, for example
1,1\2,1\2\6,1\3,1\3\5 are same before and after dml operations so this id's should not change in sk_recalc table,
1\2\4 will become 1\2\7 and 1\2\7\4 comparing this 1\2\4 is substring of 1\2\7\4 so 1\2\7\4 will be updated with id of 1\2\4 in the table and 1\2\7 will be inserted as new one,
and finally output should look like:
Required Output
ID|TAG_VAL
1|1
2|1\2
*3|1\2\7\4*
4|1\2\6
5|1\3
6|1\3\5
*7|1\2\4*
Thanks for your help in advance,MERGE INTO sk_recalc s
USING
(select rownum id,ltrim(sys_connect_by_path(empno,'\'),'\') tag_val from sk_main
start with mgr is null
connect by prior empno=mgr) t
ON (s.id = t.id)
WHEN MATCHED THEN
update set tag_val = t.tag_val
WHEN NOT MATCHED THEN
insert values ( t.id,t.tag_val); -
Prevent SCCM Client Installation on the target computers
I need a sure-fire way to prevent manual, automated, deployment, or push SCCM Client installs from specific computers (they are medical, and will violate FDA regulations if non-approved software is installed on them). I'm aware of the Registry entry
on the Site Server, but, am looking for something on the target computer side (RegHack, phoney file/folder, etc.). Discovery of the computers, but inability to install the client is OK (we'll be removing them from the Discovery LDAP queries
as needed).
Our SCCM Hierarchy is in one Domain, and the clients all in other Domains, so, I could look at excluding the client install account, but, that won't stop a manual or automated install.
Thanks.Did you see the following link?
How to Prevent the Configuration Manager Client Software from Being Installed on Specific Computers
Sabrina
TechNet Community Support
Hi Sabrina,
i saw that this is for SCCM 2007 is it also working for SCCM 2012?
I can't find the regsitry key for the 64 OS. Do i have to create it? Do you have any experience if ist working? -
Where-used list for queries restricted by characteristic value
Hi SDN Community
I came across this useful documentation on how to track down a query which is restricted to a certain hierarchy
Queries that use a hierarchy
Is it possible to track down queries from a given characteristic value.
eg. ID = 355 from InfoObject ZIDMEASP, represents Production Measure ID.
Thank you.
SimonHi SDN community,
So far i have had this response from SAP OSS Message but require this as a consulting issue.
Is it such that anyone is aware of the way to tract down queries from restricted value,
Thank you.
25.10.2007 - 10:54:51 CET SAP Reply
Dear Simon,
You can track down the query from a characteristic as per the following
steps, eg.
- Tr_cd: RSD1
- eg. input ZIDMEASP to Infoobject
- click on "Where-used list using AWB"
- find out which InfoCube, InfoSet, ODS Object etc. are using
infoobject ZIDMEASP
- open bex analyzer, in the "Select query" screen, search with the
InfoCube/InfoSet/ODS Object one by one under "InfoAreas", then you
can see which query is using them -
SCCM Report for Pending DP status
Due to the issue in our sccm hierarchy , there is problem in DP copying
We want to pull the report for past one week packages we deployed, that how many of them DP status is Install pending.Yes, I know this is an old post, I’m trying to clean them up.
What wrong with reviewing the built-in called All active package distributions?
http://www.enhansoft.com/ -
We are planning on migrating to SCCM 2012 this year and have a question around security. Since SCCM 2012 requires IIS to be installed on all servers used in the SCCM hierarchy is there any known concerns around using IIS on a shared server with SCCM/File/Print
combined on the same hardware?
Are there any best practices around configuring IIS for SCCM 2012?on top of the other answers, also make sure you check these info:
http://technet.microsoft.com/en-us/library/gg712264.aspx they do contain information about configuring IIS for ConfigMgr.
Kent Agerlund | My blogs: blog.coretech.dk/kea and
SCUG.dk/ | Twitter:
@Agerlund | Linkedin: Kent Agerlund |
Mastering ConfigMgr 2012 The Fundamentals
Maybe you are looking for
-
Cube does not get refreshed after maitainence
Hi I have a cube in a schema that was existing. I have added new data to the fact table that is mapped to the cube. I maintained the cube by using the complete refresh option in the analytical workspace manager. After maintaining the cube and selecti
-
I have following scenario. Vendor Price terms is Exworks. we have planned delivery time in material Master MRP view as Vendor manufacturing time. We may use Air or Ocean for Transit. I want delivery date in PO based on mode of trnasit. Example for a
-
Is there a way to password protect a single file in numbers?
Is there a way to passwork protect a single file in Numbers?
-
I want to purchase Flash Builder 4.0.
Hello, I want to purchase Flash Builder 4.0. But I find link only for 4.5. For the moment I want to purchase 4.0, pls provide me with a link for this? thanks Flexer
-
Hi Gurus, I am implementing SAP EBS did the config and tested out everything, is working fine. The problem is that the standard SAP EBS does not works for their business process for incoming payments and need you advice on the same: When they receive