Solved

where is log file in Sybase

Posted on 2009-07-03
4
772 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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying 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

Suggested Solutions

Title # Comments Views Activity
To form a query 10 410
Sybase sample database 13 720
Query plan fails to display when asked within a stored procedure 2 95
sql statement error sybase 2 64
Building a cohesive image for your brand is vital to making an impression on consumers. When the economy is tough, brands do better than unbranded  products. This can have a huge impact on your long-term profits, as the economy goes up and down.
Read our guide on how to survive being on-call.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

749 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