$ isql -U{USERID} -P{PASSWORD} -S{SEVERNAME} -e -o /{DIRNAME}/{FILENAME}

select * from emp

go


1. 현재 값 확인


rep-agent-client-machine:> isql -Usa -P -S{SEVER_NAME}

1> sp_monitor_config 'all', NULL, full

2>go

...

number of locks 항목을 찾아서 Configure value 와 Max_Used 를 비교한다.


2. 값 증가

Max_Used 가 더 큰 값이면 아래처럼 늘려준다.

1> sp_configure memory

2> go

가용메모리를 확인한다음

50000 에서 60000 으로 늘린다면

1> sp_configure 'number of locks' 60000

2> go


3. 관련 에러 메시지 (확인 필요)

WS_RS.log 등에 ASE has run out of LOCKS 등이 날 때 이 조치를 취하는 듯. 확인하지 못한 사항이다.


* db 에 있는 모든 테이블
$SYBASE/ASEP/bin/ddlgen -Usa -P -S써버명 -TDB  -N디비명 -Ooutput.file

* 특정 테이블
$SYBASE/ASEP/bin/ddlgen -Usa -P -S써버명 -TU -D디비명 -N테이블명 -Ooutput.file

output.file 은 출력결과를 담을 파일이다


sybase error 33620275

sybase 2011. 8. 29. 16:30
메시지 : cs_objects: cslib user api layer: external error: ZZZZZ cs_objects: error performing requested operation

*    원인1: 데몬 실행 중에 DB 스키마를 바꾸었을 때
        조치:데몬을 다시 실행하면 된다
 *   원인2: sql cursor 를 열었다가 닫지 않았을 때 등
        조치: cursor 를 닫는다
  *  원인3: DB 에 로그인되어 있지 않다
        조치 : l_sybconnect() 함수를 추가한다

sybase error -33620273

sybase 2011. 6. 1. 14:08
-33620273
* embeddes sql 작성 때 cursor open 을 빠뜨린채로, select 와 fecth 를 할 때


sybase db dump shell

sybase 2009. 8. 4. 10:29
arbi9:/tmp>cat dbdump.sh
#!/usr/bin/sh
DIR="/tmp"
WEEK=`date +%w`
src_file="$DIR/db.dump"  #"db.dump" is defined in dbdump.sql
tgt_file="$DIR/user_db.$WEEK.dump"
log_file="$DIR/dbdump$WEEK.log"
isql -c. -Ust -Pmanager  << EOF
dump database user_db to '$tgt_file'
.
EOF
echo "DB DUMP END ==>$tgt_file"

# 최근 일주일 치  덤프만 보관한다.