I did see some odd things, but I am running ASE 12.0, and you seem to be running ASE 11.9.2. In any event, I know my log is not 100% full.
I appreciate seeing how you set up your query to the database and deal with the results. Everyone I see has done it just a little differently, which is one of the reasons I like Perl.
One thing I use in nearly all my databases is threshholds. For example, I created a threshhold to dump the log at about 80% full, thereby eliminating a great deal of "pooper scooping" when people write poorly-framed queries.
Following is the output from my first try with your script:
9:14am % ./view_log_size.pl -U xxxxxx -P xxxxxxxxxxxxxx -D xxxx
Argument "buffer manager" isn't numeric in addition (+) at ./view_log_size.pl line 94.
Argument "not applicable" isn't numeric in multiplication (*) at ./view_log_size.pl line 91.
Argument "not applicable" isn't numeric in multiplication (*) at ./view_log_size.pl line 91.
Use of uninitialized value in concatenation (.) at ./view_log_size.pl line 122.
Warning! Resources are getting low in Sybase database!
Threshold used:
Log or Data Empty Percent greater than 30.00%
Host: xxxx
Database: xxxxx
Server:
Owner: xxxxx
Created: Apr 01, 1999
Total Size: 1,144.41 MB
Data Size: 953.67 MB
Data Used: 399.99 MB
Data Free: 553.69 MB
Empty: 58.06%
Log Size: 190.73 MB
Log Used: 190.73 MB
Log Free: 0
Empty: 0.00%
Please fix the situation ASAP!
-----
"Computeri non cogitant, ergo non sunt"
In reply to RE: Check Sybase data/log sizes
by cadfael
in thread Check Sybase data/log sizes
by lachoy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |