1 / 1

su - <instance 명 > instance 로 로그인 db2start DB 엔진 가동 db2 create db <DB 명 > DB 를 생성

su - <instance 명 > instance 로 로그인 db2start DB 엔진 가동 db2 create db <DB 명 > DB 를 생성 db2sampl sampleDB 생성 db2 list db directory 현재 instance 내에 있는 데이터베이스 목록 db2 connect to <DB 명 > DB 접속 db2 connect 현재 접속한 DB 확인 db2 대화형 형식 ( 순수 SQL 문 명령어만 사용 가능 )

treva
Télécharger la présentation

su - <instance 명 > instance 로 로그인 db2start DB 엔진 가동 db2 create db <DB 명 > DB 를 생성

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. su - <instance명> instance로 로그인 db2start DB엔진 가동 db2 create db <DB명> DB를 생성 db2sampl sampleDB생성 db2 list db directory 현재 instance 내에 있는 데이터베이스 목록 db2 connect to <DB명> DB접속 db2 connect 현재 접속한 DB확인 db2 대화형 형식 (순수 SQL문 명령어만 사용 가능) db2=> quit (대화형 형식일때) 대화형 형식종료 db2 list tables 현재 접속한 DB내의 테이블 목록 db2 describe table <table명> 테이블의 구조 확인 db2“SQL문” “”로 SQL문을 묶는 것을 권장 db2 backup db <DB명> DB를 백업 db2 backup db <DB명> to 경로지정한 경로에 백업파일 생성 db2 terminate 현재 접속한 세션을 종료 db2stop DB엔진 중지

More Related