Moving sybsecurity and saving global audit settings

StepsTo move the sybsecurity database and save the global audit settings

  1. Dump the sybsecurity database:

    dump database sybsecurity to "/remote/sec_file"
    
  2. Drop the sybsecurity database:

    drop database sybsecurity
    
  3. Initialize the first device on which you want to place the sybsecurity database:

    disk init name = "auditdev", 
        physname = "/dev/dsk/c2d0s4", 
        size = "10M"
    
  4. Initialize the device where you want to place the security log:

    disk init name = "auditlogdev", 
        physname = "/dev/dsk/c2d0s5",
        size = "2M"
    
  5. Create the new sybsecurity database:

    create database sybsecurity on auditdev
        log on auditlogdev
    
  6. 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"
    
  7. Run online database, which upgrades sysaudits and sysauditoptions if necessary:

    online database sybsecurity
    
  8. Load the auditing system procedures using the configuration documentation for your platform.

StepsCreating more than one sysaudits table in sybsecurity

  1. Initialize the device where you want to place the additional table:

    disk init name = "auditdev2", 
        physname = "/dev/dsk/c2d0s6", 
        size = "10M"
    
  2. Extend the sybsecurity database to the device you initialized in step 1:

    alter database sybsecurity on auditdev2 = "2M"
    
  3. Run sp_addaudittable to create the next sysaudits table on the device you initialized in step 1:

    sp_addaudittable auditdev2
    
  4. Repeat steps 1 – 3 for each sysaudits table.