Place the sybsecurity database on its own device, separate from the master database. If you have more than one audit table, place each table on its own device. It can also be helpful to put each table on a separate segment which points to a separate device. If you currently have sybsecurity on the same device as master, or if you want to move sybsecurity to another device, use one of the procedures described in the following sections. When you move the database, you can specify whether to save your existing global audit settings.
To move the sybsecurity database without saving the global audit settings:
Execute the following to remove any information related to logins from the syslogins system table:
sp_audit "all","all","all","off"
Drop the sybsecurity database.
Install sybsecurity again using the installation procedure described in either:
The configuration documentation for your platform.
During the installation process, be sure to place the sybsecurity database on one or more devices, separate from the master device.
To move the sybsecurity database and save the global audit settings
Dump the sybsecurity database:
dump database sybsecurity to "/remote/sec_file"
Drop the sybsecurity database:
drop database sybsecurity
Initialize the first device on which you want to place the sybsecurity database:
disk init name = "auditdev", physname = "/dev/dsk/c2d0s4", size = "10M"
Initialize the device where you want to place the security log:
disk init name = "auditlogdev", physname = "/dev/dsk/c2d0s5", size = "2M"
Create the new sybsecurity database:
create database sybsecurity on auditdev log on auditlogdev
Load the contents of the old sybsecurity database into the new database. The global audit settings are preserved:
load database sybsecurity from "/remote/sec_file"
Run online database, which will upgrade sysaudits and sysauditoptions if necessary:
online database sybsecurity
Load the auditing system procedures using the configuration documentation for your platform.
Creating more than one sysaudits table in sybsecurity
Initialize the device where you want to place the additional table:
disk init name = "auditdev2", physname = "/dev/dsk/c2d0s6", size = "10M"
Extend the sybsecurity database to the device you initialized in step 1:
alter database sybsecurity on auditdev2 = "2M"
Run sp_addaudittable to create the next sysaudits table on the device you initialized in step 1:
sp_addaudittable auditdev2
Repeat steps 1– 3 for each sysaudits table.