dbTalk Databases Forums  

Inherit a sybase DB on Unix -- Newbie DBA

comp.databases.sybase comp.databases.sybase


Discuss Inherit a sybase DB on Unix -- Newbie DBA in the comp.databases.sybase forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Frank
 
Posts: n/a

Default Inherit a sybase DB on Unix -- Newbie DBA - 04-13-2004 , 10:00 PM






I am taking responsible for a Sybase 12.5 DB on HP-UX 11i and I am
pretty much in Sybase specially in UNix env. Please give me some
initial things that I have to check, for example

Check ENV vatiables
where is the Server logs?
Ps - ef | grep ???
Server status , health check??
select @@version
crontab -l
backup? they run sqlbacktrack also!
?
?



Please give me some better guideline, some more commands to check and
if you have an organized doc for a new dba env I greatly appreciate
your help.

Reply With Quote
  #2  
Old   
Willie Kraatz
 
Posts: n/a

Default Re: Inherit a sybase DB on Unix -- Newbie DBA - 04-14-2004 , 07:51 AM






Check out the The Boss Sybase DBA page at
http://www.bossconsulting.com/sybase_dba/
Rob Verschoor's site at http://www.sypron.nl/download.html
Kevi Sherlock's site at http://teamsybase.com/kevin.sherlock/
"Frank" <soal6570 (AT) yahoo (DOT) com> wrote

Quote:
I am taking responsible for a Sybase 12.5 DB on HP-UX 11i and I am
pretty much in Sybase specially in UNix env. Please give me some
initial things that I have to check, for example

Check ENV vatiables
where is the Server logs?
Ps - ef | grep ???
Server status , health check??
select @@version
crontab -l
backup? they run sqlbacktrack also!
?
?



Please give me some better guideline, some more commands to check and
if you have an organized doc for a new dba env I greatly appreciate
your help.



Reply With Quote
  #3  
Old   
Frank
 
Posts: n/a

Default Re: Inherit a sybase DB on Unix -- Newbie DBA - 04-15-2004 , 06:21 AM



Thanks Willie, That's a good one but doesn't over all. Seems there is
not too many good Sybase web sites there. Any other suggestion?
What's the best advanced technical dba bood for 12.5?

"Willie Kraatz" <wkraatz (AT) csc (DOT) com> wrote

Quote:
Check out the The Boss Sybase DBA page at
http://www.bossconsulting.com/sybase_dba/
Rob Verschoor's site at http://www.sypron.nl/download.html
Kevi Sherlock's site at http://teamsybase.com/kevin.sherlock/
"Frank" <soal6570 (AT) yahoo (DOT) com> wrote in message
news:42601b2.0404131900.27a8c76 (AT) posting (DOT) google.com...
I am taking responsible for a Sybase 12.5 DB on HP-UX 11i and I am
pretty much in Sybase specially in UNix env. Please give me some
initial things that I have to check, for example

Check ENV vatiables
where is the Server logs?
Ps - ef | grep ???
Server status , health check??
select @@version
crontab -l
backup? they run sqlbacktrack also!
?
?



Please give me some better guideline, some more commands to check and
if you have an organized doc for a new dba env I greatly appreciate
your help.

Reply With Quote
  #4  
Old   
Rob Verschoor
 
Posts: n/a

Default Re: Inherit a sybase DB on Unix -- Newbie DBA - 04-15-2004 , 07:14 AM




"Frank" <soal6570 (AT) yahoo (DOT) com> wrote

Quote:
Thanks Willie, That's a good one but doesn't over all. Seems there is
not too many good Sybase web sites there. Any other suggestion?
What's the best advanced technical dba bood for 12.5?


Pick up a copy of the System Admin Guide from sybooks.sybase.com/as.html (in
PDF format, and free). I think that'll answer many of your questions.
Otherwise, see www.sypron.nl/sybbooks.html .

HTH,

Rob
-------------------------------------------------------------
Rob Verschoor

Certified Sybase Professional DBA for ASE 12.5/12.0/11.5/11.0
and Replication Server 12.5

Author of "Tips, Tricks & Recipes for Sybase ASE" and
"The Complete Sybase ASE Quick Reference Guide"
Online orders accepted at http://www.sypron.nl/shop

mailto:rob (AT) YOUR (DOT) SPAM.sypron.nl.NOT.FOR.ME
http://www.sypron.nl
Sypron B.V., P.O.Box 10695, 2501HR Den Haag, The Netherlands
-------------------------------------------------------------




Reply With Quote
  #5  
Old   
Willie Kraatz
 
Posts: n/a

Default Re: Inherit a sybase DB on Unix -- Newbie DBA - 04-15-2004 , 01:00 PM




To answer part of your original post, below are the routine tasks that I
follow. Others administrators will have different tasks and priorities. It
depends on your business requirements. I have 22 ASE servers (versions
11.03, 11.9.2, 12.0, 12.5) all run almost identical scripts and procedures.
A number of the scripts and procedures to accomplish these tasks can be
found via the previously posted links.



Daily - backup each database

Daily (and as needed via threshold processing) - dump transaction log

Daily - check success of nightly backups

Daily - check available of space in each database segment (watch trends)

Daily - check ASE server error log using egrep -f ${WORRIES} WORRIES is a
file containing key words to pull messages

Daily (twice) - run sp_sysmon and save to file



Hourly - Run and record elapsed time for a standardized set of DDL to
measure performance as seen by a user

Hourly - save current value of ( @@connections , @@cpu_busy , @@idle ,
@@io_busy , @@pack_received , @@pack_sent , @@packet_errors ,

@@timeticks , @@total_errors , @@total_read , @@total_write , @@trancount ,
@@servername )



Weekly - Print / plot max, min, avg response time from hourly checks to
monitor trends, etc.

Weekly - check high water mark for concurrent users in syblicenseslog

Weekly - extract DDL using DDLGEN and homegrown tools/procedures

Weekly - print chart showing daily/hourly changes of @@connections and
@@total_read (others available by special run)

Weekly - run dbcc checkstorage on all databases

Weekly - test each database backup for restoration (Using SQL BackTrack
dryrun facility)



Monthly - update index statistics on all tables



"Frank" <soal6570 (AT) yahoo (DOT) com> wrote

Quote:
Thanks Willie, That's a good one but doesn't over all. Seems there is
not too many good Sybase web sites there. Any other suggestion?
What's the best advanced technical dba bood for 12.5?

"Willie Kraatz" <wkraatz (AT) csc (DOT) com> wrote

Check out the The Boss Sybase DBA page at
http://www.bossconsulting.com/sybase_dba/
Rob Verschoor's site at http://www.sypron.nl/download.html
Kevi Sherlock's site at http://teamsybase.com/kevin.sherlock/
"Frank" <soal6570 (AT) yahoo (DOT) com> wrote in message
news:42601b2.0404131900.27a8c76 (AT) posting (DOT) google.com...
I am taking responsible for a Sybase 12.5 DB on HP-UX 11i and I am
pretty much in Sybase specially in UNix env. Please give me some
initial things that I have to check, for example

Check ENV vatiables
where is the Server logs?
Ps - ef | grep ???
Server status , health check??
select @@version
crontab -l
backup? they run sqlbacktrack also!
?
?



Please give me some better guideline, some more commands to check and
if you have an organized doc for a new dba env I greatly appreciate
your help.



Reply With Quote
  #6  
Old   
Frank
 
Posts: n/a

Default Re: Inherit a sybase DB on Unix -- Newbie DBA - 04-18-2004 , 11:44 PM



Thanks VERY much Willie, you are a good expert.

Just one thing you mentioned is interesting but I like to know how I
implement that : you said u use egrep -f ${WORRIES) to grab all
errors, can you show me how do you build the WoRRIES file and how does
it work?

Regards
Frank


"Willie Kraatz" <wkraatz (AT) csc (DOT) com> wrote

Quote:
To answer part of your original post, below are the routine tasks that I
follow. Others administrators will have different tasks and priorities. It
depends on your business requirements. I have 22 ASE servers (versions
11.03, 11.9.2, 12.0, 12.5) all run almost identical scripts and procedures.
A number of the scripts and procedures to accomplish these tasks can be
found via the previously posted links.



Daily - backup each database

Daily (and as needed via threshold processing) - dump transaction log

Daily - check success of nightly backups

Daily - check available of space in each database segment (watch trends)

Daily - check ASE server error log using egrep -f ${WORRIES} WORRIES is a
file containing key words to pull messages

Daily (twice) - run sp_sysmon and save to file



Hourly - Run and record elapsed time for a standardized set of DDL to
measure performance as seen by a user

Hourly - save current value of ( @@connections , @@cpu_busy , @@idle ,
@@io_busy , @@pack_received , @@pack_sent , @@packet_errors ,

@@timeticks , @@total_errors , @@total_read , @@total_write , @@trancount ,
@@servername )



Weekly - Print / plot max, min, avg response time from hourly checks to
monitor trends, etc.

Weekly - check high water mark for concurrent users in syblicenseslog

Weekly - extract DDL using DDLGEN and homegrown tools/procedures

Weekly - print chart showing daily/hourly changes of @@connections and
@@total_read (others available by special run)

Weekly - run dbcc checkstorage on all databases

Weekly - test each database backup for restoration (Using SQL BackTrack
dryrun facility)



Monthly - update index statistics on all tables



"Frank" <soal6570 (AT) yahoo (DOT) com> wrote in message
news:42601b2.0404150321.71ffdac9 (AT) posting (DOT) google.com...
Thanks Willie, That's a good one but doesn't over all. Seems there is
not too many good Sybase web sites there. Any other suggestion?
What's the best advanced technical dba bood for 12.5?

"Willie Kraatz" <wkraatz (AT) csc (DOT) com> wrote in message
news:<c5jc4p$l7j$1 (AT) lore (DOT) csc.com>...
Check out the The Boss Sybase DBA page at
http://www.bossconsulting.com/sybase_dba/
Rob Verschoor's site at http://www.sypron.nl/download.html
Kevi Sherlock's site at http://teamsybase.com/kevin.sherlock/
"Frank" <soal6570 (AT) yahoo (DOT) com> wrote in message
news:42601b2.0404131900.27a8c76 (AT) posting (DOT) google.com...
I am taking responsible for a Sybase 12.5 DB on HP-UX 11i and I am
pretty much in Sybase specially in UNix env. Please give me some
initial things that I have to check, for example

Check ENV vatiables
where is the Server logs?
Ps - ef | grep ???
Server status , health check??
select @@version
crontab -l
backup? they run sqlbacktrack also!
?
?



Please give me some better guideline, some more commands to check and
if you have an organized doc for a new dba env I greatly appreciate
your help.

Reply With Quote
  #7  
Old   
Willie Kraatz
 
Posts: n/a

Default Re: Inherit a sybase DB on Unix -- Newbie DBA - 04-19-2004 , 08:18 AM



I have attached the scripts that I use to check the errorlog. They are
written to my environment that supports mulitple releases and multiple
databases on the same UNIX host. But you should be able to adjust them to
fit your needs. Error messages are reported for the last 2 days. This does
give duplicates on succeeding days, but I don't miss anything.



You may also wish to check Rob Verschoors's example at
http://www.sypron.nl/chklog.html

Crontab entry

/usr/local/sybtools/common/sybase_message.sh sybase-11 PSAIX1_SYBASE_2
/usr/local/sybase-11.0.3/install/PSAIX1_SYBASE_2_errorlog

"Frank" <soal6570 (AT) yahoo (DOT) com> wrote

Quote:
Thanks VERY much Willie, you are a good expert.

Just one thing you mentioned is interesting but I like to know how I
implement that : you said u use egrep -f ${WORRIES) to grab all
errors, can you show me how do you build the WoRRIES file and how does
it work?

Regards
Frank


"Willie Kraatz" <wkraatz (AT) csc (DOT) com> wrote

To answer part of your original post, below are the routine tasks that I
follow. Others administrators will have different tasks and priorities.
It
depends on your business requirements. I have 22 ASE servers (versions
11.03, 11.9.2, 12.0, 12.5) all run almost identical scripts and
procedures.
A number of the scripts and procedures to accomplish these tasks can be
found via the previously posted links.



Daily - backup each database

Daily (and as needed via threshold processing) - dump transaction log

Daily - check success of nightly backups

Daily - check available of space in each database segment (watch trends)

Daily - check ASE server error log using egrep -f ${WORRIES} WORRIES is
a
file containing key words to pull messages

Daily (twice) - run sp_sysmon and save to file



Hourly - Run and record elapsed time for a standardized set of DDL to
measure performance as seen by a user

Hourly - save current value of ( @@connections , @@cpu_busy , @@idle ,
@@io_busy , @@pack_received , @@pack_sent , @@packet_errors ,

@@timeticks , @@total_errors , @@total_read , @@total_write ,
@@trancount ,
@@servername )



Weekly - Print / plot max, min, avg response time from hourly checks to
monitor trends, etc.

Weekly - check high water mark for concurrent users in syblicenseslog

Weekly - extract DDL using DDLGEN and homegrown tools/procedures

Weekly - print chart showing daily/hourly changes of @@connections and
@@total_read (others available by special run)

Weekly - run dbcc checkstorage on all databases

Weekly - test each database backup for restoration (Using SQL BackTrack
dryrun facility)



Monthly - update index statistics on all tables



"Frank" <soal6570 (AT) yahoo (DOT) com> wrote in message
news:42601b2.0404150321.71ffdac9 (AT) posting (DOT) google.com...
Thanks Willie, That's a good one but doesn't over all. Seems there is
not too many good Sybase web sites there. Any other suggestion?
What's the best advanced technical dba bood for 12.5?

"Willie Kraatz" <wkraatz (AT) csc (DOT) com> wrote in message
news:<c5jc4p$l7j$1 (AT) lore (DOT) csc.com>...
Check out the The Boss Sybase DBA page at
http://www.bossconsulting.com/sybase_dba/
Rob Verschoor's site at http://www.sypron.nl/download.html
Kevi Sherlock's site at http://teamsybase.com/kevin.sherlock/
"Frank" <soal6570 (AT) yahoo (DOT) com> wrote in message
news:42601b2.0404131900.27a8c76 (AT) posting (DOT) google.com...
I am taking responsible for a Sybase 12.5 DB on HP-UX 11i and I am
pretty much in Sybase specially in UNix env. Please give me some
initial things that I have to check, for example

Check ENV vatiables
where is the Server logs?
Ps - ef | grep ???
Server status , health check??
select @@version
crontab -l
backup? they run sqlbacktrack also!
?
?



Please give me some better guideline, some more commands to check
and
if you have an organized doc for a new dba env I greatly
appreciate
your help.









Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.