This content has been marked as final. Show 10 replies
Basic steps are:
1) install tsm on the 'other' server
2) create tsm config which matches the 'live' one - this has to be the same to enable the calls to to TSM api to find the files that were backed up from the other server - google tsm.opt/dsm.opt
3) create pfile/spfile on other server
4) startup nomount the new db
5) fire up rman and connect to 'new' db and recovery catalog
6) create restore command allocating a tape channel based on the tsm.opt file you have from point 2
That's a high level view - you should be able to google to find out examples of each step.......
Sorry for troubling you.
So, I have two servers where TSM is installed and configuration is the same on both of them (it must be). But then I have another question, I don't have tsm.opt, is it the same as dsm.opt? And also I have four opt files:
Which one is correct?
/usr/tivoli/tsm/client/api/bin/dsm.opt /usr/tivoli/tsm/client/api/bin64/dsm.opt /usr/tivoli/tsm/client/ba/bin64/dsm.opt /usr/tivoli/tsm/client/oracle/bin64/dsm.opt
I have more questions about this task:
On that other server (lets call it B) I have to make fresh DB with nothing in there, what about schemas, tablespaces and etc.? And what about pfile/spfile, I have to create them from fresh DB? or I have to copy them from server A db?
I'm little bit confused.
Edited by: safazaurs on 2013.28.2 02:08
Sorry i didn't mean tsm.opt i meant tdpo.opt. the tdpo.opt is the file you tell rman to use - this then refers to a dsm.opt which in turn is referencing dsm.sys.....
All you need to create for the 'new' db is a pfile (most of the content of which you can just copy from the other server).
This can be used to startup nomount the system (all that does is allocate memory and spawn processes - 'creating an instance')
You can then connect to this with rman and restore the files from the other backup which will create the 'database' including all schemas/tablespaces etc
Yes - they have to be the same - the files are stored in the tsm catalog relative to this name - if the name is not the same it can;t find the files.
We generally have a directory on the live server for each db with all the tsm config in - if we need to duplicate to test we copy over the entire directory and use that.
All night I had nightmares, because some things aren't clear for me.
So, for example:
I have two servers A (for example 10.10.10.1) and B (10.10.10.2), on server A are 7 databases up and running but on server B - 3.
So, what's my execution plan:
1) Same TSM configuration on both servers --> tdpo.opt, dsm.pot everything should be the same
2) I have to create new DB and have to creat spfile/pfile for this new instace with setting which are attached to it, right?
3) Then I have to startup this new DB in nomount state
4) run RMAN with command:
and now I have question, connect to rman catalog, so how can i do that? rman target / catalog ?
export ORACLE_SID=new_db_sid rman targat /
5) and this part "create restore command allocating a tape channel based on the tsm.opt file you have from point 2", how?
This doesn't tie up in my head. Maybe you can clear this.
You don;t actually have to have a recovery catalog but it makes things easier if you have one - can you find out from someone else if a recovery catalog is in use - most places will use one.
After the command you already typed
you'd type connect catalog user/pas@catalog
the catalog then has all the information about the backups and can identify which files it needs to get from the tapes
the actual restore command would be something like
allocate channel ch1 type 'SBT_TAPE' parms'ENV=(TDPO_OPTFILE=/home/oracle/admin/tdp/tdpo.opt)';
just make sure you are running this on the right database....
but this way you end up with a database the same name as the original and you have to rename afterwards
you are probably better using the duplicate function of rman which will auto rename the database also.
I give a very brief demo here of that syntax: