These error messages makes no sense!

These error messages makes no sense!

Post by webm.. » Fri, 24 Sep 1999 04:00:00



Hello,

I'm in the process of trying to restore a database to make sure
I know how to do it, and am running into all kinds of problems.
Most of them detailed in another post I made yesterday.

One thing in particular is driving me NUTS. I've started sqlservr.exe
in single user mode (-m), and even verified this by trying to connect
twice. The second connection always fails.

Then I issue a RESTORE DATABASE command (NORECOVERY), and that works OK.
Then I try to issue a RESTORE LOG command, and I get the following
error message:

Server: Msg 4316, Level 16, State 2, Line 1
Can only RESTORE LOG in the master database if SQL Server is in single
user mode.

This makes no sense to me, for two reasons:

1. I'm running SQL Server in single user mode...
2. I'm not trying to RESTORE LOG in the master database, I'm trying
to do it for one of user databases.

When I run these commands in Query Analyzer, the 'master' database
is selected, but the commands specify the database name, so it shouldn't
matter, right? (i.e. RESTORE LOG archive ...).

On top of that, I don't have much choice of where I run these commands
from, because I can't switch to the 'archive' database while it is in
NORECOVERY mode.

Boy these errors are frustrating... anyone know what the heck
I'm doing wrong?

Thanks,
Thomas

Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.

 
 
 

These error messages makes no sense!

Post by Mladen Tur » Fri, 24 Sep 1999 04:00:00



> 1. I'm running SQL Server in single user mode...
> 2. I'm not trying to RESTORE LOG in the master database, I'm trying
> to do it for one of user databases.

But on the other hand you do not need to be in the single user mode to
restore the other databases, right?

--
Mladen Turk, GISDATA d.o.o
MCSE/GIS Specialist
Bastijanova 52a, 10000 Zagreb, Croatia

http://www.gisdata.com
http://www.gisdata.hr

 
 
 

These error messages makes no sense!

Post by Mygga » Sat, 25 Sep 1999 04:00:00


Thomas - Singel user mode is for recovering the master db. If you want
to restore a user db set it to "DBA use only" and maybe to "singel
user".
You start the MSSQLServer as usual then apply the above. "DBA use only"
stops further logs in to the database but dosen't stop the current ones
loged in. "Singel user mode" requires that your the only one using the
database.
After that apply the full dump + the T-logs you want.

:-) Myggan

--

or just post it.



> Hello,

> I'm in the process of trying to restore a database to make sure
> I know how to do it, and am running into all kinds of problems.
> Most of them detailed in another post I made yesterday.

> One thing in particular is driving me NUTS. I've started sqlservr.exe
> in single user mode (-m), and even verified this by trying to connect
> twice. The second connection always fails.

> Then I issue a RESTORE DATABASE command (NORECOVERY), and that works
OK.
> Then I try to issue a RESTORE LOG command, and I get the following
> error message:

> Server: Msg 4316, Level 16, State 2, Line 1
> Can only RESTORE LOG in the master database if SQL Server is in single
> user mode.

> This makes no sense to me, for two reasons:

> 1. I'm running SQL Server in single user mode...
> 2. I'm not trying to RESTORE LOG in the master database, I'm trying
> to do it for one of user databases.

> When I run these commands in Query Analyzer, the 'master' database
> is selected, but the commands specify the database name, so it
shouldn't
> matter, right? (i.e. RESTORE LOG archive ...).

> On top of that, I don't have much choice of where I run these commands
> from, because I can't switch to the 'archive' database while it is in
> NORECOVERY mode.

> Boy these errors are frustrating... anyone know what the heck
> I'm doing wrong?

> Thanks,
> Thomas

> Sent via Deja.com http://www.deja.com/
> Share what you know. Learn what you don't.

Sent via Deja.com http://www.deja.com/
Before you buy.
 
 
 

These error messages makes no sense!

Post by webm.. » Sat, 25 Sep 1999 04:00:00







Quote:> > 1. I'm running SQL Server in single user mode...
> > 2. I'm not trying to RESTORE LOG in the master database, I'm trying
> > to do it for one of user databases.

> But on the other hand you do not need to be in the single user mode to
> restore the other databases, right?

Ahhhhhh hmmmmm, I didn't realize that! I'll try it in
regular mode. But I still don't understand how those
error messages apply. It doesn't seem like it should
hurt to be in single user mode.

-thomas

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

These error messages makes no sense!

Post by webm.. » Sat, 25 Sep 1999 04:00:00


Thanks for the advice, I'll give that a try!



Quote:> Thomas - Singel user mode is for recovering the master db. If you want
> to restore a user db set it to "DBA use only" and maybe to "singel
> user".
> You start the MSSQLServer as usual then apply the above. "DBA use
only"
> stops further logs in to the database but dosen't stop the current
ones
> loged in. "Singel user mode" requires that your the only one using the
> database.
> After that apply the full dump + the T-logs you want.

> :-) Myggan

Sent via Deja.com http://www.deja.com/
Before you buy.
 
 
 

1. No space left error message makes no sense

Hi,

I've been trying to load a dump file with "load dump ADMANAGER from ".../file"
where file is a dump file on an NFS mounted file system.

Here's the output.

Backup Server session id is:  16.  Use this value when executing the
'sp_volchanged' system stored procedure after fulfilling any volume change
request from the Backup Server.
Backup Server: 6.28.1.1: Dumpfile name 'manager981701194B' section number 0001
mounted on disk file '/linus/bbrown/commdyn/admanager.1998.06.19.dmp'
Backup Server: 4.58.1.1: Database ADMANAGER: 50696 kilobytes LOADed.
Backup Server: 4.58.1.1: Database ADMANAGER: 133130 kilobytes LOADed.
Backup Server: 4.58.1.1: Database ADMANAGER: 210508 kilobytes LOADed.
Backup Server: 4.58.1.1: Database ADMANAGER: 235304 kilobytes LOADed.
Backup Server: 4.58.1.1: Database ADMANAGER: 244176 kilobytes LOADed.
Backup Server: 4.58.1.1: Database ADMANAGER: 321554 kilobytes LOADed.
Backup Server: 4.58.1.1: Database ADMANAGER: 399012 kilobytes LOADed.
Backup Server: 4.82.2.23: Operating system error, server  device
/linus/bbrown/commdyn/admanager.1998.06.19.dmp: code 28 message No space left on
device.
Msg 8009, Level 16, State 1:
Line 1:
Error encountered by Backup Server.  Please refer to Backup Server messages for
details.

I can't find Msg 8009 in my trouble shooting guide. No space left?
Only 400 Megs is loaded so far on a 850 Meg device and there is still
lots of space besides that. I don't get it? Any ideas?

Thanks in Advance,

Bob

2. ADO equivalent of DAO createdatabase

3. INFORMIX error -837 in MS Windows -- makes no sense

4. Excel Web Queries and Filemaker

5. Error Message : UIB SENSE

6. Report page 2, VFP 3.0

7. LTX makes no sense

8. How to detect the SQL Hotfixes installed

9. making sense of .dat and .idx files!

10. Making sense of an explain

11. SQL ODBC connections...makes no sense

12. FTS: Making sense our of ranks

13. Does 1NF makes sense?