Use Adaptive Server commands and utilities to initialize the standby database.
This example uses the “dump marker” option to initially materialize the standby database. See the Replication Server Administration Guide Volume 1 > Manage Database Connections for information on how to grant permissions to the maintenance user ID for all the tables in the database.
dump database pubs2 to '/backup/data/sybase1550/ASE- 15_5/pubs2.dmp'
load database pubs2 from '/backup/data/sybase1550/ASE-15_5/pubs2.dmp'
online database pubs2 go Started estimating recovery log boundaries for database 'pubs2'. Database 'pubs2', checkpoint=(1564, 65), first=(1564, 65), last=(1565, 17). Completed estimating recovery log boundaries for database 'pubs2'. Started ANALYSIS pass for database 'pubs2'. Completed ANALYSIS pass for database 'pubs2'. Recovery of database 'pubs2' will undo incomplete nested top actions. Database 'pubs2' is now online
use master go select suid,name from syslogins where name ='pubs2_maint' go suid name ------- ----------- 3 pubs2_maint
use pubs2 go select suid,name from sysusers where name = 'pubs2_maint' go suid name ------- ----------- 8 pubs2_maint
sp_configure "allow updates to system tables",1 go
Parameter | Default | Memory Used | Config Value | Run Value | Unit | Type |
---|---|---|---|---|---|---|
allow updates to system tables | 0 | 0 | 1 | 1 | switch | dynamic |
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)
update sysusers set suid = 3 where name = "pubs2_maint" go (1 row affected)
If the maintenance user does not exist on the database, add the user with the sp_adduser command and skip step 7.
resume connection to wingak1505i.pubs2 go Connection to 'wingak1505i.pubs2' is resumed
admin logical_status go
The output generated from admin logical_status is similar to:
Logical Connection Name | Active Connection Name | Active Conn State | Standby Connection Name | Standby Conn State |
---|---|---|---|---|
[102] pubs2a.pubs2s | [103] sunak1505i.pubs2 | Active/ | [104] wingak1505i.pubs2 | Active` |
Controller RS | Operation in Progress | State of Operation in Progress | Spid | |
[16777317] PRS | None | None |
isql -Usa -P -Swingak1505i use pubs2 go dbcc settrunc ('ltm','ignore') go