SAP ASE: Find Who Dropped a Table from a Transaction Log Dump

If an SAP ASE 16.0 table was dropped and its committed log records have already been truncated after a transaction dump, inspect the transaction log backup with Sybmon.

Read the dump

Start the utility using the command for your operating system. These commands enter the diagnostic utility; they do not start a normal ASE server.

UNIX:
$SYBASE/$SYBASE_ASE/bin/dataserver -X -Pquine

Windows:
%SYBASE%\%SYBASE_ASE%\bin\sqlsrvr -X -Pquine

At the Sybmon prompt, open the transaction dump. Supply additional stripe files when prompted, or press Enter if there are none. Compressed dumps are also supported.

dbcclog /backup/example.tran

In the dump analyzer, reset the display, enable file output and print the records:

reset
log on /tmp/dbcc.txt
printopt 0
showall

Find the login

Search the output for DROP TABLE and the table name. The matching BEGINXACT record contains the execution time and suid. Resolve that suid in master..syslogins. Replace 11 below with the value from your output.

select name from master..syslogins where suid = 11
go

Work from a copy of the relevant backup and retain all stripes needed to read it.

SAP Note

SAP Note 3688407

You May Also Like

Leave a Reply?