Sybase Msg 3101: Database in use

[sybase@cnpm_server ~]$ isql -Usa -P12345678

1> use master

2> go

1> load database smss from ‘/opt/sybase/130620_131112.dmp‘

2> go

Msg 3101, Level 16, State 1:

Server ‘CNPM_SERVER‘, Line 1:

Database in use.  A user with System Administrator (SA) role must have exclusive

use of database to run load.

1> select spid,hostname,loggedindatetime,ipaddr from master.dbo.sysprocesses where db_name(dbid)=‘smss‘

2> go

spid   hostname                       loggedindatetime          

        ipaddr                                                          

------ ------------------------------ --------------------------

        ----------------------------------------------------------------

    58 localhost.localdomain                 Mar  7 2014  9:59AM

        192.168.1.236                                                                                                    


(1 rows affected)

1> select ‘kill ‘+convert(varchar,spid) from master.dbo.sysprocesses where db_name(dbid)=‘smss‘

2> go


-----------------------------------

kill 58                                                      


(1 rows affected)

1> kill 58

2> go

1> load database smss from ‘/opt/sybase/130620_131112.dmp‘

2> go

Backup Server session id is: 19. Use this value when executing the


本文出自 “开发人生” 博客,请务必保留此出处http://cuilc.blog.51cto.com/6372736/1369683

Sybase Msg 3101: Database in use,古老的榕树,5-wow.com

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。