Quantcast
Channel: SCN : Unanswered Discussions - SAP Applications on SAP Adaptive Server Enterprise (SAP ASE)
Viewing all articles
Browse latest Browse all 809

Database in use. A user with system administrator (SA) role must have exclusive use of database to run load

$
0
0

    Hi Experts ,

   

     we are doing Sybase database Restore from last backup so we got below error

 

 

    Error :-Database in use. A user with system administrator (SA) role must have exclusive use of                  database to run load

 

     we done all below procedure :-

 

   02-06-2015 17-22-21.png

   > isql -Usa -STST

   >password :- ****
1> use master
2> go
1> load database TST from "D:\New folder\bkp14022015.dmp"
2> go

Msg 3101 level 16 state 1

Server "TST" line 1

Database in use. A user with system administrator (SA) role must have exclusive use of database to run load



After this i am try below suggetion from sap thread but still facing same issue.....

 

1) make sure your own session isn't using the database.  Do a "use master" before issuing the LOAD command.

 

2) Check for other users that have the database as their current database.  Run sp_who and look for the database name. Alternatively, run

     select spid from master..sysprocesses where dbid = db_id("TST")

 

3) Check for users that are in other databases but accessing tables in TST in cross-database transactions by looking for locks held in TST by running

     select spid from master..syslocks where dbid = db_id("TST")

 

Thanks  in Advance

Regards

Ashish Chanekar


Viewing all articles
Browse latest Browse all 809

Latest Images

Trending Articles



Latest Images

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