- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-16-2015 06:14 AM
We often clone from our Prod instance to our Dev instance so our data is updated and we're sure the DEV instance is well synchronized with our production. However, in our DEV instance we gaved higher roles to some user to allow them to test their module. For example, most of them have the personalization role to allow them to personify in DEV, but are allowed to personify in production.
When we clone the DEV instance from PROD, those extra roles are lost and we have to give them back after the clone process. What's the best way to preserve those extra roles although we clone the instance?
Thank you!
Steve
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-16-2016 08:48 AM
Hi Dimitar!
I created a new forum for cleanup scripts after cloning.
This should help you and others!
This should all help.
Preserve data and activity post clone - Cleanup Scripts
Have fun!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-16-2015 07:19 AM
Thank you Mike
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-15-2016 03:48 AM
By the way, you cannot specify sys_user_has_roles as an exclusion table, as this is a critical system tables. Excluding a table results in an empty table on the target instance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-15-2016 12:51 PM
Hi Dimitar
The best and easiest solution we've found is to do an after clone script that gives back the user's rights in our sub-production instance. It runs after the clone and cleans up the environment and adds the roles needed to perform tests.
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-16-2016 04:33 AM
That sounds interesting, would you mind sharing the script here, I bet it would help others as well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-16-2016 08:48 AM
Hi Dimitar!
I created a new forum for cleanup scripts after cloning.
This should help you and others!
This should all help.
Preserve data and activity post clone - Cleanup Scripts
Have fun!