Hi Gurus,
We have a problem when we try to connect to a SyBase DB (Adaptive Server Enterprise/15.7.0/EBF 20953 SMP ESD#4.2), the database is in suspect mode.
We ran the following commands after rebooting but the same error appears:
server>isql -X -Usapsso -S<SID> -w2000 -P<pass>
1> sp_configure "allow updates", 1
2> go
Parameter Name Default Memory Used Config Value Run Value Unit Type
------------------------------ ----------- ----------- ------------ ------------ -------------------- --------------------
allow updates to system tables 0 0 1 1 switch dynamic
(1 row affected)
Resulting configuration value and memory use have not changed from previous values: new configuration value 1, previous value 1.
(return status = 0)
1> quit
server> isql -X -Usapsa -S<SID> -w2000 -P<pass>
1> use master
2> go
1> begin transaction
2> go
1> update sysdatabases
2> set status = status & ~256
3> where name="<SID>"
4> go
(1 row affected)
1> quit
server> isql -X -Usapsso -S<SID> -w2000 -P<pass>
1> commit transaction
2> go
1> sp_configure "allow updates", 0
2> go
Parameter Name Default Memory Used Config Value Run Value Unit Type
------------------------------ ----------- ----------- ------------ ------------ -------------------- --------------------
allow updates to system tables 0 0 0 0 switch dynamic
(1 row affected)
Configuration option changed. ASE need not be rebooted since the option is dynamic.
Changing the value of 'allow updates to system tables' does not increase the amount of memory Adaptive Server uses.
(return status = 0)
1>quit
server> isql -X -Usapsa -S<SID> -w2000 -P<pass>
1> checkpoint
2> go
1> shutdown
2> go
This is the result of executing the following query.
1> select dbid, name, status, status2, status3, status4 from sysdatabases
2> go
dbid name status status2 status3 status4
------ ------------------------------ ------ ------- ----------- -----------
1 master 0 -32768 131072 16384
3 model 0 -32768 131072 16384
2 tempdb 8716 -32767 131072 540672
31513 sybsystemdb 0 -32768 131072 16384
31514 sybsystemprocs 8 -32768 131072 16384
31515 sybmgmtdb 12 -32768 131072 16384
4 <SID> 9024 49 131200 21544960
5 saptools 8712 1 131072 540672
6 saptempdb 8716 -32767 131328 540672
Could you help me to change this status, please?
Best Regards,
Dani