Quantcast
Channel: SCN: Message List - SAP NetWeaver Administrator
Viewing all articles
Browse latest Browse all 8487

Re: how to take database backup using sql in db13?

$
0
0

Hi Praveen,

 

You can refer below thread carefully. You will get idea to take backup using SQL script in DB13.

 

How create a backup

 

Important Points.

 

download SQL script from SAP Note file sp_dumpdb.sql copy it on your OS DB server e.g. to  /backup

modified and adapt to your needs e.g. curr_logdev

 

from command line run sql script

isql -S<YOURDBSID> -Usapsa -i /backup/sp_dumpdb.sql

 

system will ask for password - it should be master password during installation - I guess

/backup - for Linux if windows provide the path

 

it will create SP at saptools as you can see at script>

use saptools

go

if not exists (select name from sysobjects where name = 'dump_history' and type = 'U')

begin

  exec('create table dump_history (DBName VARCHAR(30), Type VARCHAR(10), Command VARCHAR(512), StartTime DATETIME, EndTime DATETIME, RC INTEGER, Status CHAR(1))')

end

go

if exists (select name from sysobjects where name = 'sp_dumpdb' and type = 'P')

begin

  drop procedure sp_dumpdb

end

go

create procedure sp_dumpdb (@sapdb_name varchar (256))

<

So it mean if already you have one, it will run drop, and then create new one - so if you decided to change your backup location, just modified SQL and re-run it

 

So now you should have at saptools your SP called sp_dumpdb

 

About the dbacockpit - I am not sure what need to be done, as I always run it from OS level

 

Hope now it is more clear.

 

If I run it from OS level I run those commands

sp_dumpdb <DBSID>

go

 

 

Regards,

V Srinivasan


Viewing all articles
Browse latest Browse all 8487

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>