?
Solved

where is log file in Sybase

Posted on 2009-07-03
4
Medium Priority
?
789 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 2000 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 2000 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

New style of hardware planning for Microsoft Exchange server.
The well known Cerber ransomware continues to spread this summer through spear phishing email campaigns targeting enterprises. Learn how it easily bypasses traditional defenses - and what you can do to protect your data.
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

752 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