How to on -gathering statistics of how much a VM is actually used?
I have a SCVMM 2012 SP1 system managing a bunch of 2012 R2 host servers. What I am looking to do is to gather statistics and create a report that would tell me how often a system is being used.
I can figure out how to get uptime, but what I am looking to do is to weed out VMs that are no longer used, or seldom used over the course of a year. Even getting stats of when a VM was started or stopped would help me with this.
Jobs can give you start and stop details. But only those actions that were performed through SCVMM.
However, SCVMM is really not designed to track this type of audit history - the MSFT story is to use Operations Manager for that.
Or, you track over time - doing a dump of status to create your desired history then evaluate this history.
Trust me, you are not the first to ask. But it is not a core story of SCVMM. And it has never supported this type of history.
Brian Ehlert
http://ITProctology.blogspot.com
Learn. Apply. Repeat.
Similar Messages
-
How important is gathering statistics on SYS objects?
Hi,
How important is gathering statistics on Data dictionary tables and other X$ tables in SYS schema. Is it bad to keep the statistics. Recently our Sr.DBA has deleted all the SYS schema stats telling that it will inversely affect the DB performance. Is it true?
Regards
SatishHi Satish,
*10g:*
A new DBA task in Oracle Database 10g is to generate statistics on data dictionary objects which are contained in the SYS schema. The stored procedures dbms_stats.gather_database_stats and dbms_stats.gather_schema_stats can be used to gather the SYS schema stats. Here is an example of using dbms_stats.gather_schema_stats to gather data dictionary statistics:
EXEC dbms_stats.gather_schema_stats(’SYS’);
*9i*
While it is supported in 9.2 to gather statistics on the data dictionary and fixed views, doing so isn't the norm.
There is a bug fixed only in 10gR2 (not expected to be back-ported to 9.2) that caused this error. The fix is – don’t generate statistics against SYS – especially not the Fixed tables.
For this query, let's see if we can get a better plan by removing statistics or by getting better statistics, or if we need to do something else to tune it. Take the SYS statistics as before, but with gather_fixed => false.
I would like for you to test first by deleting the statistics on these two X$ tables and see how the query runs (elapsed time, plan).
delete_table_stats('SYS','X$KQLFXPL');
delete_table_stats('SYS','X$KGLOB');
Then you can take statistics on them using gather_table_stats and check again (elapsed time, plan).
gather_table_stats('SYS','X$KQLFXPL');
gather_table_stats('SYS','X$KGLOB');
The issue with this is that the contents of these fixed views, particularly x$kqlfxpl, can change dramatically. Gathering fixed object statistics may help now and cause problems later as the contents change.
Warning, this is a bit dangerous due to latch contention, see the following note. I've supported a couple of very busy systems that were completely halted for a time due to latch contention on x$kglob due to monitoring queries (particularly on v$open_cursors).
Note.4339128.8 Ext/Pub Bug 4339128 - Heavy latch contention from queries against library cache views.
Hope this answers your question . . .
Donald K. Burleson
Oracle Press author
Author of "Oracle Tuning: The Definitive Reference":
http://www.dba-oracle.com/bp/s_oracle_tuning_book.htm -
With no "lock" or "HTTPS" showing up, how do I know in Safari if an online store is actually using a secure link when their web page makes that claim?
The link in your example - https://www.gmx.com/ - is loading non- secure content from http://themes.googleusercontent.com/
The lock will display only if everything on the page is secure - in this case it's not.
As Safari has no way of knowing if theme.googleusercontent.com is going to be transmitting or receiving content that should be encrypted, then the overall page is in no way secure, and as such Safari won't display the lock icon.
This is correct behaviour - it would be dangerous to users to identify pages as secure when they're clearly not.
Reloading the page above uses cached copies of the fonts, thus no insecure connection is required on the reload. The issue in the link above (GMX) is not a Safari issue, just really bad web development by whomever built the site and mixed secure and insecure content. -
How do I create an interactive pdf form my clients can actually use?
In the new CS6 Indesign (which is very easy to use to make forms) I've gone through all the steps to make a beautiful form whose buttons, text fields, and hyperlinks all work (great!) but now I've stumbled across one VITAL problem: the submit form button does not work!
I’ve set it up as I’ve seen it done on videos, as a “submit form” type, with the address “mailto: emailaddress.”
Once I exported the file to a pdf interactive form, my "Print form" button works well, and I though I'd fixed the problem when I downloaded adobe reader to read my form, however, no matter what type of computer I use with it, when I hit the "submit form" button, a message saying something to the effect of “you must open in your browser” pops up.
When dragged the pdf document into my browser like the message suggested, not only did the “submit form” button still not work, but now I cannot interact with any of the buttons or fields!
My goal here is simple: make an interactive form my clients can access online (whether as a downloadable pdf or directly on my website) that they can fill out and submit to us directly to our email. As many of our clients are older, I’d like to make it as easy as possible for them to use our system, and be able to just hit the “submit form” button instead of having to go through the trouble of attaching the finished pdf they filled out to an email and submitting to us.
All the videos I’ve come across so far talk about how to MAKE these forms, but not how to set them up to be used realistically for a business. Any help I can have would be appreciated, I don’t mind so much how this gets done, as long as it is easy for my clients to access the form and fill it out easily and quickly.
Thank you in advance,
~Kara
Swentowsky PhotographyYes, this is the page that the pdf is on. It's the link that says "Online Ordering Form."
http://swentowskyphotography.com/Site/reunion-order.html -
How much power is Sleep Mode using?
I use my PBG4 as a desktop, with the power plugged in. I love using sleep mode so it'll come back on almost instantly, but I'm wondering how much power I'm actually using (read: "wasting").
Is it so miniscule that my environmentalist conscience can justify leaving it in sleep mode overnight? Inquiring minds want to know.
/twAccording to this Apple PDF: Apple Product Environmental Specification - Powerbook G4 12", the PB draws about 3W while asleep and plugged in, about 20W when awake and idle and about 2W when turned off and plugged in (battery charging).
-
How much space does a blob use?
How much space does a BLOB use?
Does it use allocated anyspace if its empty?It will size appropriately:
TEST.SQL>CREATE TABLE TBLOB
2 (
3 A BLOB
4 ) TABLESPACE _SANITIZED_;
TABLE CREATED.
TEST.SQL>SELECT INITIAL_EXTENT FROM DBA_TABLESPACES WHERE TABLESPACE_NAME='_SANITIZED_';
INITIAL_EXTENT
5242880
TEST.SQL>SELECT * FROM DBA_EXTENTS WHERE SEGMENT_NAME='TBLOB';
OWNER SEGMENT_NAME PARTITION_NAME SEGMENT_TYPE
TABLESPACE_NAME EXTENT_ID FILE_ID BLOCK_ID BYTES BLOCKS RELATIVE_FNO
YJAM TBLOB TABLE
_SANITIZED_ 0 16 1201289 5242880 640 16
TEST.SQL>SELECT * FROM DBA_OBJECTS WHERE CREATED > SYSDATE-1;
OWNER OBJECT_NAME
SUBOBJECT_NAME OBJECT_ID DATA_OBJECT_ID OBJECT_TYPE CREATED LAST_DDL TIMESTAMP STATUS T G S
YJAM SYS_LOB0000920875C00001$$
920876 920876 LOB 14:41:36 14:41:36 2005-11-16:14:41:36 VALID N Y N
YJAM TBLOB
920875 920875 TABLE 14:41:36 14:41:36 2005-11-16:14:41:36 VALID N N N
TEST.SQL>SELECT * FROM DBA_EXTENTS WHERE SEGMENT_NAME='SYS_LOB0000920875C00001$$';
OWNER SEGMENT_NAME PARTITION_NAME SEGMENT_TYPE
TABLESPACE_NAME EXTENT_ID FILE_ID BLOCK_ID BYTES BLOCKS RELATIVE_FNO
YJAM SYS_LOB0000920875C00001$$ LOBSEGMENT
_SANITIZED_ 0 16 1202569 5242880 640 16
TEST.SQL>DECLARE
2 VALINS VARCHAR2(4000);
3 BEGIN
4 VALINS:='1';
5 FOR I IN 1..100000
6 LOOP
7 INSERT INTO TBLOB VALUES (RPAD(VALINS,4000,'0'));
8 END LOOP;
9 END;
10 /
PL/SQL procedure successfully completed.
TEST.SQL>COMMIT;
Commit complete.
TEST.SQL>SELECT * FROM DBA_EXTENTS WHERE SEGMENT_NAME IN ('SYS_LOB0000920875C00001$$','TBLOB');
OWNER SEGMENT_NAME PARTITION_NAME SEGMENT_TYPE
TABLESPACE_NAME EXTENT_ID FILE_ID BLOCK_ID BYTES BLOCKS RELATIVE_FNO
YJAM TBLOB TABLE
_SANITIZED_ 0 16 1201289 5242880 640 16
YJAM TBLOB TABLE
_SANITIZED_ 1 17 1169929 5242880 640 17
YJAM TBLOB TABLE
_SANITIZED_ 2 18 1163529 5242880 640 18
YJAM TBLOB TABLE
_SANITIZED_ 3 19 1176969 5242880 640 19
YJAM TBLOB TABLE
_SANITIZED_ 4 5 379529 5242880 640 5
YJAM TBLOB TABLE
_SANITIZED_ 5 14 375689 5242880 640 14
YJAM TBLOB TABLE
_SANITIZED_ 51 18 1172489 5242880 640 18
YJAM TBLOB TABLE
_SANITIZED_ 52 19 1191689 5242880 640 19
YJAM SYS_LOB0000920875C00001$$ LOBSEGMENT
_SANITIZED_ 0 16 1202569 5242880 640 16
54 rows selected.
TEST.SQL>ANALYZE TABLE TBLOB COMPUTE STATISTICS;
Table analyzed.
TEST.SQL>SELECT * FROM DBA_TABLES WHERE TABLE_NAME='TBLOB';
OWNER TABLE_NAME TABLESPACE_NAME CLUSTER_NAME IOT_NAME PCT_FREE PCT_USED
INI_TRANS MAX_TRANS INITIAL_EXTENT NEXT_EXTENT MIN_EXTENTS MAX_EXTENTS PCT_INCREASE FREELISTS FREELIST_GROUPS LOG B NUM_ROWS BLOCKS EMPTY_BLOCKS AVG_SPACE CHAIN_CNT
AVG_ROW_LEN AVG_SPACE_FREELIST_BLOCKS NUM_FREELIST_BLOCKS DEGREE INSTANCES CACHE TABLE_LO SAMPLE_SIZE LAST_ANA PAR IOT_TYPE T S NES BUFFER_ ROW_MOVE GLO USE
DURATION SKIP_COR MON CLUSTER_OWNER DEPENDEN COMPRESS
YJAM TBLOB _SANITIZED_ 10
1 255 5242880 5242880 1 2147483645 0 YES N 100000 33547 373 1977 0
2042 0 0 1 1 N ENABLED 100000 14:51:22 NO N N NO DEFAULT DISABLED NO NO
DISABLED NO DISABLED DISABLED
TEST.SQL>SELECT BYTES/1024 FROM DBA_SEGMENTS WHERE SEGMENT_NAME='TBLOB';
BYTES/1024
271360
TEST.SQL>TRUNCATE TABLE TBLOB;
Table truncated.
TEST.SQL>BEGIN
2 FOR i IN 1..100000
3 LOOP
4 INSERT INTO TBLOB VALUES ('1');
5 END LOOP;
6 END;
7 /
PL/SQL procedure successfully completed.
TEST.SQL>COMMIT;
Commit complete.
TEST.SQL>ANALYZE TABLE TBLOB COMPUTE STATISTICS;
Table analyzed.
TEST.SQL>SELECT BYTES/1024 FROM DBA_SEGMENTS WHERE SEGMENT_NAME='TBLOB';
BYTES/1024
5120Note: there is a deported blob segment for the pointers I forgot in my previous post.
HTH,
Yoann.
Message was edited by:
Yoann Mainguy
Hmm, forgot that for a full comparison of the avg linesize:
TEST.SQL>SELECT * FROM DBA_TABLES WHERE TABLE_NAME='TBLOB';
OWNER TABLE_NAME TABLESPACE_NAME CLUSTER_NAME IOT_NAME PCT_FREE PCT_USED
INI_TRANS MAX_TRANS INITIAL_EXTENT NEXT_EXTENT MIN_EXTENTS MAX_EXTENTS PCT_INCREASE FREELISTS FREELIST_GROUPS LOG B NUM_ROWS BLOCKS EMPTY_BLOCKS AVG_SPACE CHAIN_CNT
AVG_ROW_LEN AVG_SPACE_FREELIST_BLOCKS NUM_FREELIST_BLOCKS DEGREE INSTANCES CACHE TABLE_LO SAMPLE_SIZE LAST_ANA PAR IOT_TYPE T S NES BUFFER_ ROW_MOVE GLO USE
DURATION SKIP_COR MON CLUSTER_OWNER DEPENDEN COMPRESS
YJAM TBLOB _SANITIZED_ 10
1 255 5242880 5242880 1 2147483645 0 YES N 100000 628 12 1223 0
41 0 0 1 1 N ENABLED 100000 14:56:56 NO N N NO DEFAULT DISABLED NO NO
DISABLED NO DISABLED DISABLED -
How to disable automatic statistics collections on tables
Hi
I am using Oracle 10g and we have few tables which are frequently truncated and news rows added to it. Oracle automatically analyzes the table by some means which collects statistics of the table but at the wrong time(when the table is empty). This makes my query to do a full table scan rather using indexes since the statistics was collected when the table was empty.Could any one please let me know how to disable the automatic statistics collection feature of Oracle?
Cheers
Anantha PVHi
I am using Oracle 10g and we have few tables which
are frequently truncated and news rows added to it.
Oracle automatically analyzes the table by some means
which collects statistics of the table but at the
wrong time(when the table is empty). This makes my
query to do a full table scan rather using indexes
since the statistics was collected when the table was
empty.Could any one please let me know how to disable
the automatic statistics collection feature of
Oracle?
First of all I think it's important that you understand why Oracle collects statistics on these tables: Because it considers the statistics of the object to be missing or stale. So if you just disable the statistics gathering on these tables then you won't have statistics at all or outdated statistics.
So as said by the previous posts you should gather the statistics manually yourself anyway. If you do so right after loading the data into the truncated table, you don't need to disable the automatic statistics gathering as it only processes objects that are stale or don't have statistics at all.
If you still think that you need to disable it there are several ways to accomplish it:
As already mentioned, for particular objects you can lock the statistics using DBMS_STATS.LOCK_TABLE_STATS, or for a complete schema using DBMS_STATS.LOCK_SCHEMA_STATS. Then these statistics won't be touched by the automatic gathering job. You still can gather statistics using the FORCE=>true option of the GATHER__STATS procedures.
If you want to change the automatic gathering job that it only gathers statistics on objects owned by Oracle (data dictionary, AWR etc.), then you can do so by calling DBMS_STATS.SET_PARAM('AUTOSTATS_TARGET', 'ORACLE'). This is the recommended method.
If you disable the schedule job as mentioned in the documentation by calling DBMS_SCHEDULER.DISABLE('GATHER_STATS_JOB') then no statistics at all will be gathered automatically, causing your data dictionary statistics to be become stale over time, which could lead to suboptimal performance of queries on the data dictionary.
All this applies to Oracle 10.2, some of the features mentioned might not be available in Oracle 10.1 (as you haven't mentioned your version of 10g).
Regards,
Randolf
Oracle related stuff blog:
http://oracle-randolf.blogspot.com/
SQLTools++ for Oracle:
http://www.sqltools-plusplus.org:7676/
http://sourceforge.net/projects/sqlt-pp/ -
How to lock the statistics in column level.
Hi All, i am using 10.2.0.1.0 version of oracle.
I have gathered freuency histogram manually on one of my column of a table to provide more information to optimizer for better calculation of cardinality.
Now i have my weekend job runs for gathering stats on schema level with method_opt as 'For all column size repeat'. But i dont want the stats of above column to be overridden by the stats job. I dont want to lock the statistics of whole table, but i just want to lock the column level stats for this table.
how the above can be achieved?
Below is the details.
Code for manual histogram , i have eliminated many buckets purposely, as there are 194 buckets.
DECLARE
m_distcnt NUMBER := 916714; -- num_distinct (As it is there in dba_tab_columns)
m_density NUMBER := 0.00000109031397771616; -- density (As it is there in dba_tab_columns)
m_nullcnt NUMBER := 0; -- num_nulls (As it is there in dba_tab_columns)
m_avgclen NUMBER := 8; -- avg_col_len (As it is there in dba_tab_columns)
srec dbms_stats.statrec;
n_array dbms_stats.numarray;
BEGIN
srec.epc := 3; -- no of end points
n_array := dbms_stats.numarray(3870 ,
3891 ,
3945
srec.bkvals := dbms_stats.numarray(25000 ,
55000 ,
100000 ,
dbms_stats.prepare_column_values(srec, n_array);
dbms_stats.set_column_stats('Schema1', 'USERS_HIST_TEST', 'COMPANYPK',
distcnt => m_distcnt,
density => m_density,
nullcnt => m_nullcnt,
srec => srec,
avgclen => m_avgclen,
force => TRUE);
END;
-- Weekend job which will override above histogram
DBMS_STATS.GATHER_SCHEMA_STATS (
ownname => 'Schema1',
estimate_percent => dbms_stats.auto_sample_size,
block_sample => FALSE,
method_opt => 'FOR ALL COLUMNS SIZE REPEAT',
DEGREE => dbms_stats.default_degree,
granularity => 'DEFAULT',
CASCADE => TRUE,
options => 'GATHER STALE'
Edited by: 930254 on Jul 4, 2012 9:08 AMPl do not post duplicate threads - How to lock the statistics in column level.
-
Can someone please tell me whats wrong, how I can fix this and how much it will cost me??
If in settings, music, volume limit is off then restart your phone first. Hold the home and off button down until the apple symbol comes up.
-
i recently moved all of my photos from one portable drive to a new and much larger one. I use LR 5 and and all of the folders now have a ? in their folder icon. The thumbnail is there but no actual photo. How do i reconnect them?
Jim Boehme
[email protected]Duplicate post
see the answer at your earlier post LR 5 -
I may have gone overboard in the creation of Tab Groups. I say this because now my system is beginning to act a bit sluggish. I created 7 groups, two of which have 9 or 10 tabs. Should I pull back on the number of groups I create (as well as how many tab are located within each group). That is: How much RAM do tab groups use. How can I calibrate or understand the trade off between these markers and the amount of RAM they use?
You can see the memory usage on the about:memory page.
You can open about: pages via the location bar like you open a website. -
The bottom of my macbook is falling off how do i fix this and how much does it cost?
the bottom of my macbook is falling off how do i fix this and how much does it cost?
Check this article http://www.apple.com/support/macbook-bottomcase/
-
How to check the Statistics generated for a table through DBMS_STATS.
Hi,
How to check the statistics generated for a Table through DBMS_STATS.GATHER_TABLE_STATS procedure ?
Please let me know.
Thanks !
Regards,
RajasekharRajasekhar wrote:
Hi,
How to check the statistics generated for a Table through DBMS_STATS.GATHER_TABLE_STATS procedure ?
Please let me know.
Thanks !
Regards,
Rajasekharquery ALL_TABLES -
How much data does Apple TV use?
I am experiencing a large amount of data usage and cannot determine what the culprit is. I am approaching my cap of data allowance on a regular basis. Does anyone know how much data the Apple TV uses? I realize it depends on what you are streaming. I primarily stream Netflix (set on the lowest data rate)
ThanksI found this answer on NetFlix's blog sometime last year:
In the USA you have 3 video quality options: good quality, better quality, and best quality. Here is how much bandwidth they each use:
Good quality (up to 0.3 GB per hour)
Better quality (up to 0.7 GB per hour)
Best quality (up to 1 GB per hour, or up to 2.3 GB per hour for HD)
Depending on how many movies you watch this could have a huge impact on your monthly usage...obviously your ISP wants you to watch its own movies. -
How much data does google maps use
how much data does google maos use ?
That question has a lot of variables. If you are just looking up an address it should not using very much. If you are using it for an 8 hour drive it will use quite a bit.
Maybe you are looking for
-
I pre ordered a movie on iPad but I don't know how to download it?
I pre-ordered a movie on iTunes and when It came out I got an email with a link saying to download it but when I click on it it just goes to iTunes I don't know what to do from there help me please?.
-
Hi. Sorry to post this twice but I dunno if I shld post this at the MP3 or portable media player section. I had my ZVM at the latest firmware and set the eq to 2-2-3-2-2. When i listen to some songs, there seems to be some audible hissing sounds at s
-
HT1212 if i restore my ipod will it erase my itunes library on my computer
if i restore my ipod will it erase my itunes library on my computer
-
While publishing using VS 2012 professional to Azure Web Role getting following warning. After this warning even if i waited for hours, publish process never finish and then I have to manually deploy the package on Azure Cloud Instance. Warning: This
-
Search for a filled Business Process List (Formaly known as BPML)
I need a Business Process List (Formaly known as BPML) for a project. In ASAP7.1 the template BusinessProcessList_Template.xls is empty.The sample BusinessProcessList_Sample.xls is not covering my need for the complete ERP BPL. How to find/get a fil