How can i change the database name on MaxDB?
Hello. I need to do a homogeneous copy where the source system is the productive system and the target system is the quality system. Therefore after to restore the data backup i need to change the database name of quality system (from CLP to CLQ) but i'm not sure that it could be possible because in the MaxDB documentation i didn't found nothing about that. please can you tell me if it is possible and how i change it?
I work with MaxDB 7.6.04.11. Thanks for your help.
Lars Breddemann replied
> I will try to explain better: the SID of the source database is CLP and the SID of the target database is CLQ, when you say "once you restore the DB, it will use the new SID", i understand that the new SID in the target database would CLP or am i wrong? and i need that the SID in the target database remains CLQ after the restore.
what you've described as your requirement is exactly what will happen, when you just perform the procedure that Eric described to you.
A recovery won't change the SID of the instance you perform the recovery to.
All it does is: take the instance as is and load the data pages to the data area. Afterwards the log files may be recovered.
Think of the instance as a kind of container for your database.
The instance itself is not the database - so the SID does not change with the content of the database.
Hmm... why not simply try it?
Create a little test instance and back it up.
Create another instance with a different name and recover the backup of the first instance.
You will still have both instances, each with its original name.