dbTalk Databases Forums  

database-Validation with read-only

sybase.public.sqlanywhere.general sybase.public.sqlanywhere.general


Discuss database-Validation with read-only in the sybase.public.sqlanywhere.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
 
Posts: n/a

Default database-Validation with read-only - 10-09-2009 , 06:19 AM






Hi!

I want to validate a Database without modifying the Database.
The documentation gives two Opportunities... validate a copy of the Database
or validate the database in read-only mode.

If I tried it, I get an error (SQL-error -304) with text "acceess denied"
and "disk full" .

I use SA 11.0.1.2308

I combined the dbvalid with the start of the databse-engine.
Command:
"%SABIN%\dbvalid.exe" -c "START=%SABIN%\dbeng11.exe -r -ca0 -c256M -n
db_valid %PATHDB%\db_test.db;uid=DBA;pwd=sql;ENG=db_valid"

What did I wrong or is it a bug?

regards
Ingmar

Reply With Quote
  #2  
Old   
 
Posts: n/a

Default Re: database-Validation with read-only - 10-09-2009 , 07:54 AM






Hi,

I changed my command:
"%SABIN%\dbvalid.exe" -c
"START=%SABIN%\dbeng11.exe -r -ca0 -c256M;DBN=db_valid;DBF=%MAFIS_VDB%\db_test.db;uid= DBA;pwd=sql"

Now dbvalid works. But i do'nt know why.
According to the documentation i would say, that my first way should work
also. Right?

Regards


<Ingmar> schrieb im Newsbeitrag news:4acf1c56 (AT) forums-1-dub (DOT) ..
Quote:
Hi!

I want to validate a Database without modifying the Database.
The documentation gives two Opportunities... validate a copy of the
Database or validate the database in read-only mode.

If I tried it, I get an error (SQL-error -304) with text "acceess denied"
and "disk full" .

I use SA 11.0.1.2308

I combined the dbvalid with the start of the databse-engine.
Command:
"%SABIN%\dbvalid.exe" -c "START=%SABIN%\dbeng11.exe -r -ca0 -c256M -n
db_valid %PATHDB%\db_test.db;uid=DBA;pwd=sql;ENG=db_valid"

What did I wrong or is it a bug?

regards
Ingmar


Reply With Quote
  #3  
Old   
Graeme Perrow [Sybase iAnywhere]
 
Posts: n/a

Default Re: database-Validation with read-only - 10-09-2009 , 08:43 AM



No. You should not specify the server or database names or database
files in the START parameter - that's what the ENG, DBN, and DBF
parameters are for. The client needs to know the ENG and DBN values in
order to connect, and it cannot parse the start line to find out what
they are.

Graeme Perrow
Senior Software Developer
gperrow _at_ ianywhere _dot_ com
Sybase iAnywhere Engineering

SQL Anywhere Developer Community
http://www.sybase.com/developer/libr...ere-techcorner
SQL Anywhere Blog Center
http://www.sybase.com/sqlanyblogs


Ingmar wrote:
Quote:
Hi,

I changed my command:
"%SABIN%\dbvalid.exe" -c
"START=%SABIN%\dbeng11.exe -r -ca0 -c256M;DBN=db_valid;DBF=%MAFIS_VDB%\db_test.db;uid= DBA;pwd=sql"

Now dbvalid works. But i do'nt know why.
According to the documentation i would say, that my first way should work
also. Right?

Regards


Ingmar> schrieb im Newsbeitrag news:4acf1c56 (AT) forums-1-dub (DOT) ..
Hi!

I want to validate a Database without modifying the Database.
The documentation gives two Opportunities... validate a copy of the
Database or validate the database in read-only mode.

If I tried it, I get an error (SQL-error -304) with text "acceess denied"
and "disk full" .

I use SA 11.0.1.2308

I combined the dbvalid with the start of the databse-engine.
Command:
"%SABIN%\dbvalid.exe" -c "START=%SABIN%\dbeng11.exe -r -ca0 -c256M -n
db_valid %PATHDB%\db_test.db;uid=DBA;pwd=sql;ENG=db_valid"

What did I wrong or is it a bug?

regards
Ingmar




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.