dbTalk Databases Forums  

how to check & display cube status?

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss how to check & display cube status? in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jéjé
 
Posts: n/a

Default how to check & display cube status? - 09-15-2005 , 09:11 PM






Hi,

I want to create a webpage and display if there is any process in progress
to my end users.

the users ask me too quickly if a cube is unavailable, but sometimes its
because the cube is in process due to a dimension full process followed by
the cube full process.

thanks for your ideas.

Jerome.



Reply With Quote
  #2  
Old   
Darren Gosbell
 
Posts: n/a

Default Re: how to check & display cube status? - 09-16-2005 , 12:30 AM






You can use WMI to query the perfmon counters to see if *anything* is
processing, not sure if you can check on the status of an individual
cube. We used this at one point to check that all processing had
finished.

I will have a look through my DSO scripts to see if I can find anything
on individual cubes.

--
Regards
Darren Gosbell [MCSD]
<dgosbell_at_yahoo_dot_com>
Blog: http://www.geekswithblogs.net/darrengosbell

In article <exQSoPmuFHA.3740 (AT) TK2MSFTNGP14 (DOT) phx.gbl>,
willgart (AT) BBBhotmailAAA (DOT) com says...
Quote:
Hi,

I want to create a webpage and display if there is any process in progress
to my end users.

the users ask me too quickly if a cube is unavailable, but sometimes its
because the cube is in process due to a dimension full process followed by
the cube full process.

thanks for your ideas.

Jerome.





Reply With Quote
  #3  
Old   
Darren Gosbell
 
Posts: n/a

Default Re: how to check & display cube status? - 09-17-2005 , 07:20 AM



I created the following DSO functions in VBA in Excel and I was able to
get if the cube was processed or unprocessed, but not if it was in the
process of being processed. If you were to create a web page it would
have to run as a member of OLAP Administrators in order to use the DSO
object model.


Sub GetCubeStatus()
Dim myServer As New DSO.Server
Dim myDb As DSO.Database
Dim myCube As DSO.Cube

'\\ Connect to server
Set myServer = New DSO.Server
myServer.Connect "Darren01"

Debug.Print " -- Database Status --"
Set myDb = myServer.MDStores("Foodmart 2000")
For Each myCube In myDb.MDStores
Debug.Print myCube.Name & " - " & StateString(myCube.state) &
" - " & myCube.LastProcessed
Next myCube

'\\ Clean Up
Set myDb = Nothing
myServer.CloseServer
Set myServer = Nothing
End Sub

Function StateString(state As DSO.OlapStateTypes) As String
Select Case state
Case OlapStateTypes.olapStateCurrent
StateString = "Processed"
Case OlapStateTypes.olapStateMemberPropertiesChanged _
, OlapStateTypes.olapStateSourceMappingChanged _
, OlapStateTypes.olapStateStructureChanged
StateString = "Structure Changed"
Case OlapStateTypes.olapStateNeverProcessed
StateString = "Unprocessed"

Case Else
StateString = "Unknown State"
End Select
End Function



A lateral approach to your problem may be to use a tool such as the
parallel processing utility or a custom DSO script - to process your
cube/dimensions in such a way that they are processed within a database
transaction. If they are processed in this manner the users should never
see an interruption in service.

What happens is that within a transaction AS2k processes into a
"shadow" copy of the cube/dimension. Then once the process is finished
it switches the live object over to the shadow copy. So if you can
process *ALL* your objects within the one DSO transaction the user will
(almost) never see an unprocessed cube.




--
Regards
Darren Gosbell [MCSD]
<dgosbell_at_yahoo_dot_com>
Blog: http://www.geekswithblogs.net/darrengosbell

In article <MPG.1d9503697fc5b3ee98969b (AT) news (DOT) microsoft.com>, Darren
Gosbell <dgosbell_at_yahoo_dot_com> says...
Quote:
You can use WMI to query the perfmon counters to see if *anything* is
processing, not sure if you can check on the status of an individual
cube. We used this at one point to check that all processing had
finished.

I will have a look through my DSO scripts to see if I can find anything
on individual cubes.



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.