Solved

where is log file in Sybase

Posted on 2009-07-03
4
762 Views
Last Modified: 2012-08-14
In sql Server it easy for me to find the log file or any log related with db activities, how about in sybase? is there any command I can use to gather log in sybase? sp_readerrorlog will dispaly me curent log in sql server, how about Sybase
0
Comment
Question by:motioneye
  • 3
4 Comments
 
LVL 6

Accepted Solution

by:
IncisiveOne earned 500 total points
ID: 24771066
It is just as easy in Sybase.  Depends on the version slightly, so watch for that.  For Sybase ASE, under the sybase user, look for a directory tree:
$SYBASE/ASE-12_5/install/...
The errorlog file will be whatever the installing person named it.  I call mine:
SERVERNAME_log
The backup server and XP server errorlogs, and all startserver files (RUN_SERVERNAME) are there as well.  You need to be familiar with the tree, eg. you will need to restart Sybase one day.

They could have put it elsewhere, it is not a fixed location; if it isn't there, you need to look around the directory tree.  

For Windoze, substitute % for $, change the slashes to backslashes, and of course look in C:.

If it was installed and set up correctly, the Sybase errorlog also appears in the System or NT Event Log, but that is seldom done properly.
0
 
LVL 6

Assisted Solution

by:IncisiveOne
IncisiveOne earned 500 total points
ID: 24771135
Bonus.  Answer to deleted question:

While MS is an ancient Sybase codeline, with many years of MS and Windoze type changes, they are no longer the same.  Many commands are different, and the options are very different.

1  To determine the space left in syslogs:
SELECT LCT_ADMIN("logsegment_freepages")
2  Do not:
dump tran db_name with truncate_only
That is for development databases only, and eliminates recoverability (you will need to load db from a full db dump).  For test and production databases (where Sybase-provided full recoverability is required, and they will draw and quarter anyone who interfered with it) use something like:
dump tran db_name to "c:\sybase\tran_dump\db_name_YYMMDD"

Sybase has many features not found in MS, it would help if you read up on it, because it will result in less work for you.  We have thresholds that can be set up to dump tran long before it gets full.  Read the System Admin Guide, both volumes, it provides a nice list of routine DBA tasks; and how to accomplish them.
0
 

Author Closing Comment

by:motioneye
ID: 31599489
Hi IncisiveOne,
I should reward you 1000 points as you help me on deleted Q :)
0
 
LVL 6

Expert Comment

by:IncisiveOne
ID: 24776342
Thanks !
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Query Taking long time 7 476
Sybase sp_thresholdaction 3 947
upgrading Sybase from 15.7 to 16 15 3,874
Limiting/Restricting CPU/Network/Memory usage of MS Access ODBC Query 11 45
How do we balance the user experience (UX) with reasonable security measures? It can be done, if you keep these fundamentals in mind.
There’s a good reason for why it’s called a homepage – it closely resembles that of a physical house and the only real difference is that it’s online. Your website’s homepage is where people come to visit you. It’s the family room of your website wh…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question