Best Practice for renaming Cubes

Post Reply
JamiseBondi
Posts: 141
Joined: Wed Nov 14, 2012 10:37 am
OLAP Product: TM1
Version: 2.0
Excel Version: Office 365

Best Practice for renaming Cubes

Post by JamiseBondi »

Hi all,

We are rolling out a new instance but are wanting to accelerate the build of this new instance based on existing instances. My logic is to use a replica of an existing instance and then go about renaming the relevant objects but therein lies the question:

I'm assuming that it's not advisable to simply go about renaming objects in windows explorer?
I'm happy to leave existing dimensions, views, subsets and processes untouched but would like to rename the cubes (ignoring control cubes) to be in line with the new instance.
What advice do you guys have regarding the best method of renaming existing cubes bearing in mind some of them have cube security (I don't mind if these rules need to be copied out to a text doc and then re-added later... don't let this spoil any creative suggestions).
As an aside, I'm also looking at removing an existing dimension from all cubes and had thought of using Performance Modeler for this purpose (the only task that I'll be using this tool for incidentally) to retain the cube data rather than having to create new cubes from scratch and import data.

Any ideas?
thanks.
David Usherwood
Site Admin
Posts: 1458
Joined: Wed May 28, 2008 9:09 am

Re: Best Practice for renaming Cubes

Post by David Usherwood »

Renaming cubes (and then restarting the server :) ) works fine - you need to rename the .RUX file as well. DB() references in the rules will need adjusting. The new cube will need the same security rights as the old cube - you could take a snapshot of }CubeSecurity and paste or DBSS the content against the new cube. If you use a cell security cube it's probably best to recreate, but you could try renaming that too.
Performance Modeller - I'd be quite surprised adding or removing dimensions in cubes which weren't built with PM worked properly - and the rules would almost certainly break. To be brutal, PM has gone down so poorly with the TM1 community that I wonder whether anybody has even tried.
declanr
MVP
Posts: 1831
Joined: Mon Dec 05, 2011 11:51 am
OLAP Product: Cognos TM1
Version: PA2.0 and most of the old ones
Excel Version: All of em
Location: Manchester, United Kingdom
Contact:

Re: Best Practice for renaming Cubes

Post by declanr »

I set up a simple bit of Perl script a while ago that would cycle through the whole data directory (websheets etc included) and swap any reference from an old cube name to a new one through all the core directory files.
It always seemed to do the trick without any bother, as long as you made the obvious steps of stopping the service first, running it and then starting again. Remembering to back up EVERYTHING first!

I don't actually have access to that script currently but it was a pretty simple thing to write, If I recall correctly I think i stole the basic code from something someone else had written to change dates in .SQL files.
Declan Rodger
User avatar
Harvey
Community Contributor
Posts: 236
Joined: Mon Aug 04, 2008 4:43 am
OLAP Product: PA, TM1, CX, Palo
Version: TM1 8.3 onwards
Excel Version: 2003 onwards
Contact:

Re: Best Practice for renaming Cubes

Post by Harvey »

I'm in the late stages of developing a product that does exactly this. It supports renaming cubes and dimensions, and automatically updates all the associated objects. It should at least give you a good starting point -- it takes about 5 minutes to create en entirely new instance of a server with all the names changed.

I haven't started marketing it yet, but would be happy to give you early access in return for some feedback and testing. PM me if interested.
Take your TM1 experience to the next level - TM1Innovators.net
Post Reply