database.sarang.net
UserID
Passwd
Database
DBMS
MySQL
PostgreSQL
Firebird
Oracle
Informix
ㆍSybase
MS-SQL
DB2
Cache
CUBRID
LDAP
ALTIBASE
Tibero
DB 문서들
스터디
Community
공지사항
자유게시판
구인|구직
DSN 갤러리
도움주신분들
Admin
운영게시판
최근게시물
Sybase Tutorials 468 게시물 읽기
 News | Q&A | Columns | Tutorials | Devel | Files | Links
No. 468
Sybase User Guide
작성자
정재익(advance)
작성일
2002-07-31 02:15
조회수
24,879

 

원본출처 : http://wwwcs.dongguk.ac.kr/~wrkim/html/MyJob/Sybase.html

 

1.환경 변수를 setting

** C Shell --> .cshrc file

setenv SYBASE /home3/sybase ------- SYBASE Home Directory

setenv DSQUERY SYBASE

setenv SYBPLATFORM sun_svr4

setenv LD_LIBrary_PATH $SYBASE/lib:$SYBASE/devlib

set filec

set path = ( . $path $SYBASE/bin . )

2.SQL Server의 접속 및 해제

1) isql 접속 방법

$'isql -Uuser'

로 server로 connect되면서 '1>'prompt 상태가 된다.

ex)isql -Uwrkim

passwd:*****

1>

2) isql 해제 방법

'1>'prompt 상에서 'quit' 또는 'exit'command를 입력하면 접속이 해제됨

ex) 1>quit

3.pubs2 database : Demo database 설명 및 조작 방법

i)isql로 SQL Server를 Connect한 후

1>use pubs2 (실제 작업 database는 user_db-> `1>use user_db`)

2>go (Command 입력후 항상 'go'를 입력해야만 command가 실행된다)

 

ii)'sp_help'command로 pubs2 database 의 object들을 확인한다.

1>sp_help titles

2>go

iii)Data 조작

조회 - select

입력 - insert

변경 - update

삭제 - delete

4.SQL Server의 간단한 Sytem command

1)sp_who

:현재 SQL Server의 모든 user와 process에 대한 정보 제공

2)sp_lock

:현재 hold lock상태의 process에 대한 정보 제공

3)sp_help

:Database의 object와 user define datatype에 대한 정보 제공

4)sp_helpdb

:특정 database 또는 모든 database의 정보 제공

5)sp_spaceused

:Current dataabase의 특정 table 및 모든 table의 total row수, data page수,

space사용

6)sp_monitor

:SQL Server에 대한 통계치를 제공

 

 

--------------------------------------------------------------------------------

5.sybase homedirectory 내에 있는 sample code를 실행 할 때 나는 error

(1) The context allocation routine failed when it tried to load localization files!!

One or more following problems may caused the failure

 

Your sybase home directory is /home3/sybase. Check the environment variable SYBASE if it is not

the one you want!

Using locale name "korean" defined in environment variable LANG

Locale name "korean" doesn't exist in your /home3/sybase/locales/locales.dat file

==>prompt 상에 LANG variable을 setting하여 준다. 즉, setenv LANG이라고 해주도록

한다.

(2)ld.so.1: example1: fatal: libct.so: can't open file: errno=2

중단됨(Killed)

==>이 message는 .cshrc file에 library를 제대로 적어두지 않았기 때문이다.

다시 한번 위의 .cshrc file과 대조 해보도록 한다.

(3)기타

실행 시에 발생하는 다음과 같은 error message형태에 관한 문의는 개인적으로 오십시요.

ex)

** SQLCODE=(-4002)

** SQL Server Error

** Login failed.

 

[Top]
No.
제목
작성자
작성일
조회
469Apache/PHP/Sybase/Openssl/Mod_ssl/Zend Optimizer How
정재익
2002-07-31
13115
468Sybase User Guide
정재익
2002-07-31
24879
467Sybase Functions for PHP4 On LINUX
정재익
2002-07-31
14272
466Installation Sybase,Apache and php4 on LINUX
정재익
2002-07-31
14023
276sqsh에 관해서
이진욱
2002-01-29
14069
Valid XHTML 1.0!
All about the DATABASE... Copyleft 1999-2023 DSN, All rights reserved.
작업시간: 0.052초, 이곳 서비스는
	PostgreSQL v16.1로 자료를 관리합니다