Solved

where is log file in Sybase

Posted on 2009-07-03
4
755 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
Comment Utility
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
Comment Utility
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
Comment Utility
Hi IncisiveOne,
I should reward you 1000 points as you help me on deleted Q :)
0
 
LVL 6

Expert Comment

by:IncisiveOne
Comment Utility
Thanks !
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Never store passwords in plain text or just their hash: it seems a no-brainier, but there are still plenty of people doing that. I present the why and how on this subject, offering my own real life solution that you can implement right away, bringin…
Scam emails are a huge burden for many businesses. Spotting one is not always easy. Follow our tips to identify if an email you receive is a scam.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now