how to restore sql db
Updated: 21 May 2010 | 7 comments
i need to restore a database i backed up with this script in Install path\dbext\mssql :
OPERATION BACKUP
DATABASE $ALL
SQLHOST "deal-trk"
NBSERVER "SV001VMS01"
MAXTRANSFERSIZE 0
BLOCKSIZE 7
ENDOPER TRUE
its very urgent. i need to restore one of teh databases.
thank you.
discussion Filed Under:
Comments
try with NBU MS SQL client
Hy ayodeji,
to restore your SQL database you use NBU MS SQL Client from Windows server where is the SQL database Start-> Veritas -> NBU Agents -> NBU MS SQL Client. And with the Client confg you a restore script.
You open NBU MS SQL Client and go to File -> Restore SQL server object. and config your restore script.
OR,
a example restore script:
OPERATION RESTORE
OBJECTTYPE DATABASE
NBIMAGE "DDCW1-S1000.MSSQL7.DDCW1-S1000\VMWARE.db.VM_Composer_DB.~.7.001of001.20090608190033..C"
SQLHOST "DDCW1-S1000"
SQLINSTANCE "WSUS"
NBSERVER "master server name"
BROWSECLIENT "DDCW1-S1000"
MAXTRANSFERSIZE 6
BLOCKSIZE 7
RESTOREOPTION REPLACE
RECOVEREDSTATE RECOVERED
NUMBUFS 2
ENDOPER TRUE
regards,
Marius D.
Regards my friends, Marius D.
Master: Windows 2008 R2 64 Bit
NBU: 7.1 for Windows
thanks marius, i have some
thanks marius,
i have some questions. in the script you typed, what is the sqlinstance? is it the clientname or what. also what is the sqlhost and browseclient
and lastly how do i run this script.
thanks.
Ayodeji Oni
NetApp/VERITAS/IBM/SCS
:)) 1. SQLINSTANCE is not the
:))
1. SQLINSTANCE is not the client name. The SQL database can have one or more instances. You must ask your SQL admin.
2. SQLHOST is the client where is the SQL database.
3. BROWSECLIENT is same with the SQLHOSTin my ex.
But when you don't know all this things is more easier with NBU MS SQL Client. This agent is installed along with the NetBackup client where also the SQL is installed.
Start-> Veritas -> NBU Agents -> NBU MS SQL Client.
Look in NetBackup for MS SQL Server Admin Guide at page 89, 90 ....
Regards,
Marius D.
Regards my friends, Marius D.
Master: Windows 2008 R2 64 Bit
NBU: 7.1 for Windows
THANKS MARIUS. I APPRECIATE.
THANKS MARIUS.
I APPRECIATE.
Ayodeji Oni
NetApp/VERITAS/IBM/SCS
MARIUS, BUT IF I WANT TO RUN
MARIUS,
BUT IF I WANT TO RUN THE SCRIPT, HOW DO I DO IT?
Ayodeji Oni
NetApp/VERITAS/IBM/SCS
Start-> Veritas -> NBU Agents
Start-> Veritas -> NBU Agents -> NBU MS SQL Client. ...go to File -> Manage Script Files. and from here select your script and open or start.
Regards,
Marius D.
Regards my friends, Marius D.
Master: Windows 2008 R2 64 Bit
NBU: 7.1 for Windows
many thanks marius.
many thanks marius.
Ayodeji Oni
NetApp/VERITAS/IBM/SCS
Would you like to reply?
Login or Register to post your comment.