Solved

where is log file in Sybase

Posted on 2009-07-03
4
777 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

A lot of things can happen during a presentation, worst of which is “death by PowerPoint.” Here are a few mistakes to avoid to make your slides clean.
This article is a collection of issues that people face from time to time and possible solutions to those issues. I hope you enjoy reading it.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

742 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