I T C o t e n s P r o v i d e r h t t p : / / w w w. h a n b i t b o o k. c o. k r

Similar documents
MS-SQL SERVER 대비 기능

PowerPoint Presentation

<4D F736F F D203033C6C4C6BCBCC72DB8AEBFC0B1D7B9E6B9FD2E646F63>

Tablespace On-Offline 테이블스페이스 온라인/오프라인

목 차

10.ppt

13주-14주proc.PDF

RDB개요.ppt

Microsoft Word - dataguard_세미나_v1.8.doc

@OneToOne(cascade = = "addr_id") private Addr addr; public Emp(String ename, Addr addr) { this.ename = ename; this.a

3 S Q L A n t i p a t t e r n s Trees/intro/parent.sql CREATE TABLE Comments ( comment_id SERIAL PRIMARY KEY, parent_id BIGINT UNSIGNED, comment TEXT

歯sql_tuning2

ORANGE FOR ORACLE V4.0 INSTALLATION GUIDE (Online Upgrade) ORANGE CONFIGURATION ADMIN O

단답형 (26 회기출문제 ) 1. 아래와같은테이블이있을때아래의 SQL 결과에대해서 Oracle, SQL Server 순서로적으시오 TAB1 COL1 CHAR(10) COL2 CHAR(10) INSERT INTO TAB1 VALUES ('1',''); INSERT INT

오라클 데이터베이스 10g 핵심 요약 노트

Tina Admin

62

1217 WebTrafMon II

<4D F736F F D205BB4EBBBF3C1A4BAB8B1E2BCFA5DB1E2BCFAB9AEBCAD2D524D414EBBE7BFEBBFB9C1A65F39695F313067>

Oracle Database 10g: Self-Managing Database DB TSC

USB USB DV25 DV25 REC SRN-475S REC SRN-475S LAN POWER LAN POWER Quick Network Setup Guide xdsl/cable Modem PC DVR 1~3 1.. DVR DVR IP xdsl Cable xdsl C

PWR PWR HDD HDD USB USB Quick Network Setup Guide xdsl/cable Modem PC DVR 1~3 1.. DVR DVR IP xdsl Cable xdsl Cable PC PC DDNS (

Simplify your Job Automatic Storage Management DB TSC

最即時的Sybase ASE Server資料庫診斷工具

Orcad Capture 9.x

FlashBackt.ppt

Index

Connection 8 22 UniSQLConnection / / 9 3 UniSQL OID SET

Microsoft Word - SQL튜닝_실습교재_.doc

Contents Data Mart 1. 개요 실습방향 테스트위한사전설정 본격실습시작 ) 데이터파일 dd 명령어로 백업수행및유실시키기 ) 장애복구수행 결론...7 페이지 2 / 7

untitled

Jerry Held

PowerPoint 프레젠테이션

휠세미나3 ver0.4

제 목

소개 TeraStation 을 구입해 주셔서 감사합니다! 이 사용 설명서는 TeraStation 구성 정보를 제공합니다. 제품은 계속 업데이트되므로, 이 설명서의 이미지 및 텍스트는 사용자가 보유 중인 TeraStation 에 표시 된 이미지 및 텍스트와 약간 다를 수


Spring Boot/JDBC JdbcTemplate/CRUD 예제

The Self-Managing Database : Automatic Health Monitoring and Alerting

예제소스는 에서다운로드하여사용하거나툴바의 [ 새쿼리 ]( 에아래의소스를입력한다. 입력후에는앞으로실습을위해서저장해둔다. -- 실습에필요한 Madang DB 와 COMPANY DB 를모두생성한다. -- 데이터베이스생성 US

Advanced Product Service

ALTIBASE HDB Patch Notes

Spring Data JPA Many To Many 양방향 관계 예제

Tibero

ePapyrus PDF Document

Document Server Information Items Description Test Date 2011 / 05 / 31 CPU Intel(R) Xeon(R) CPU 2.40GHz X 8 Main Memory 1GB O/S version OEL 5.

MySQL-Ch10

Microsoft Word - Software Project Database Design_ver1.01_.docx

Microsoft PowerPoint - QVIZMVUMWURI.pptx

PowerPoint 프레젠테이션

untitled

Jerry Held


슬라이드 1

시스코 무선랜 설치운영 매뉴얼(AP1200s_v1.1)

PowerPoint Presentation

Microsoft PowerPoint - 10Àå.ppt

LCD Display

Microsoft PowerPoint - Tech-iSeminar_Managing_Tablespace.ppt

Microsoft Word - [Unioneinc] 특정컬럼의 통계정보 갱신_ _ldh.doc

BC6HP Korean.ai

다양한 예제로 쉽게 배우는 오라클 SQL 과 PL/SQL

세미나(장애와복구-수강생용).ppt

DBMS & SQL Server Installation Database Laboratory

강의 개요

목차 BUG 문법에맞지않는질의문수행시, 에러메시지에질의문의일부만보여주는문제를수정합니다... 3 BUG ROUND, TRUNC 함수에서 DATE 포맷 IW 를추가지원합니다... 5 BUG ROLLUP/CUBE 절을포함하는질의는 SUBQUE

歯PLSQL10.PDF

CD-RW_Advanced.PDF

Analyze Connection Failover Options.ppt

chapter4

개요오라클과티베로에서 JDBC 를통해접속한세션을구분할수있도록 JDBC 접속시 ConnectionProperties 를통해구분자를넣어줄수있다. 하나의 Node 에다수의 WAS 가있을경우 DB 에서 Session Kill 등의동작수행시원하는 Session 을선택할수있다.

Microsoft PowerPoint - Oracle Data Access Pattern.ppt

Assign an IP Address and Access the Video Stream - Installation Guide

JMF2_심빈구.PDF

목차 BUG offline replicator 에서유효하지않은로그를읽을경우비정상종료할수있다... 3 BUG 각 partition 이서로다른 tablespace 를가지고, column type 이 CLOB 이며, 해당 table 을 truncate

제목을 입력하세요.

KEEP BUFFER 활용방안 엑셈컨설팅본부 /DB 컨설팅팀장정민 개요 Oracle 은유저가요청한작업을빠르게처리하기위해 Buffer Cache 라는것을사용한다. Buffer Cache 는 SGA 에위치하고있으며, 오라클인스턴스에접속하는모든프로세스에의해공유된다. 이 Bu

다양한 예제로 쉽게 배우는 오라클 SQL 과 PL/SQL

단계

ALTIBASE 사용자가이드 Templete

개발및운영 Tibero DB Link (Tibero To Oracle) - Local 방식

[ 목차 ] 5.1 데이터베이스프로그래밍개념 5.2 T-SQL T-SQL 문법 5.3 JAVA 프로그래밍 2

Remote UI Guide


PowerPoint 프레젠테이션

PostgreSQL 2 Uniersity of California at Berkeley ( ) 에서개발된관계형데이터베이스서버인 Ingres 가시초 ( 후에 Computer Associates 에인수됨 ) 1

Microsoft Word - CNVZNGWAIYSE.docx

201502IC1AP-1 DB 구축 2015 학년도 2 학기 프로젝트특강보고서 프로젝트명 : DB 구축 ( DB ) 2015 년 11 월 20 일 지도교수 : 황치곤교수님 학과 : 정보통신공학과 1팀제출자 : 역할성명학번 조장 조재석 조원 송찬호 2

SQL Tuning Business Development DB

PowerPoint Presentation

PowerSHAPE 따라하기 Calculate 버튼을 클릭한다. Close 버튼을 눌러 미러 릴리프 페이지를 닫는다. D 화면을 보기 위하여 F 키를 누른다. - 모델이 다음과 같이 보이게 될 것이다. 열매 만들기 Shape Editor를 이용하여 열매를 만들어 보도록

Tibero

Microsoft Word - 05_SUBPROGRAM.doc

TITLE

make life game.doc

문서 템플릿

Slide 1

Microsoft Word - 10g RAC on Win2k.doc

(SW3704) Gingerbread Source Build & Working Guide

슬라이드 1

Transcription:

I T C o t e n s P r o v i d e r h t t p : / / w w w. h a n b i t b o o k. c o. k r

-------------------------------------------------------------------- -- 1. : ts_cre_bonsa.sql -- 2. : (TS001, IS001) -- 3. : 200271 -- 4. : -------------------------------------------------------------------- SPOOL ts_cre_bonsa.log -- (TS001) CREATE TABLESPACE TS001 DATAFILE 'D:\TEST\DB1\DF001.DBF01' SIZE 55M DEFAULT STORAGE ( INITIAL 1024K NEXT 512K MAXEXTENTS 128 PCTINCREASE 0); CREATE TABLESPACE IS001 -- (IS001) DATAFILE 'D:\TEST\DB1\DF001.DBF01' SIZE 30M DEFAULT STORAGE ( INITIAL 512K NEXT 256K MAXEXTENTS 128 PCTINCREASE 0); SPOOL OFF

SQL> connect bonsa01/bonsa01@bonsa SQL> @ts_cre_bonsa.sql SQL>....

ROMPT =================================== PROMPT PROMPT =================================== COL TABLESPACE_NAME FORMAT A10 COL DATAFILE FORMAT A50 COL SZ_KB FORMAT 9,999,999 SELECT TABLESPACE_NAME, FILE_NAME AS DATAFILE, (BYTES/1024) AS SZ_KB FROM DBA_DATA_FILES ; TABLESPACE_NAME DATAFILE SZ_KB ----------------- ------------------------ --------... TS001 D:\TEST\DB1\DF101.DBF01 56,320 IS001 D:\TEST\DB1\DF001.DBF01 30,720 8.

-------------------------------------------------------------------- -- 1. : user_cre_bonsa.sql -- 2. : (BONSA01) -- 3. : 200271 -- 4. : -------------------------------------------------------------------- SPOOL user_cre_bonsa.log CREATE USER BONSA01 IDENTIFIED BY BONSA01 DEFAULT TABLESPACE USERS TEMPORARY TABLESPACE TEMP; SPOOL OFF

SQL> connect system/manager@bonsa SQL> @user_cre_bonsa.sql SQL>....

PROMPT =================================== PROMPT PROMPT =================================== COL USERNAME FORMAT A15 COL DEF_TBS FORMAT A15 COL TMP_TBS FORMAT A15 SELECT USERNAME,DEFAULT_TABLESPACE DEF_TBS, TEMPORARY_TABLESPACE TMP_TBS, PROFILE FROM DBA_USERS; SERNAME DEF_TBS TMP_TBS PROFILE --------- --------- --------- ---------... BONSA01 USERS TEMP DEFAULT

-------------------------------------------------------------------- -- 1. : role_cre_bonsa.sql -- 2. : (BONSA01) -- 3. : 200271 -- 4. : -------------------------------------------------------------------- CREATE ROLE BONSA_ROLE NOT IDENTIFIED; GRANT CREATE SESSION, CREATE TABLE,CREATE VIEW, ALTER ROLLBACK SEGMENT TO BONSA_ROLE;

SQL> connect system/manager@bonsa SQL> @role_cre_bonsa.sql SQL>.....

PROMPT =================================== PROMPT PROMPT =================================== COL ROLE FORMAT A35 SELECT ROLE FROM DBA_ROLES; SELECT ROLE FROM DBA_ROLES; ROLE -----------------------------------... BONSA_ROLE 23.

-------------------------------------------------------------------- -- 1. : role_grant_jisa.sql -- 2. : (JISA01) -- 3. :200271 -- 4. : -------------------------------------------------------------------- GRANT JISA_ROLE TO JISA01;

SQL> connect system/manager@jisa SQL> @role_grant_jisa.sql SQL>....

PROMPT =================================== PROMPT PROMPT =================================== COL GRANTEE FORMAT A10 COL GRANTED_ROLE FORMAT A30 SELECT GRANTEE, GRANTED_ROLE FROM DBA_ROLE_PRIVS; GRANTEE GRANTED_ROLE ---------- -------------------... BONSA01 BONSA_ROLE

------------------------------------------------------------------- -- 1. : tab_cre_bonsa.sql -- 2. : (BONSA01) -- 3. : 200271 -- 4. : -------------------------------------------------------------------- SPOOL tab_cre_bonsa.log CREATE TABLE DEPT ( DEPTNO NUMBER(2) NOT NULL, DEPTNM VARCHAR2(14) NOT NULL, LOC VARCHAR2(14) NULL, CHARGE VARCHAR2(20) NULL ) TABLESPACE TS001 STORAGE(INITIAL 1M NEXT 1M PCTINCREASE 0); ALTER TABLE DEPT ADD CONSTRAINT DEPT_PK PRIMARY KEY( DEPTNO) ; ALTER TABLE ORDER ADD CONSTRAINT ORDER_DELIVERY_FK01 FOREIGN KEY(DELIEVNO) REFERENCES DELIVERY ; SPOOL OFF

SQL> connect bonsa01/bonsa01@bonsa SQL> @tab_cre_bonsa.sql........?

PROMPT =================================== PROMPT PROMPT =================================== COL SEGMENT_NAME FORMAT A15 COL TABLESPACE_NAME FORMAT A10 SELECT SEGMENT_NAME, ROUND(INITIAL_EXTENT/1024,0) INI_KB, ROUND(NEXT_EXTENT/1024,0) NXT_KB, ROUND(BYTES/1024,0) TOT_KB, PCT_INCREASE PCT, EXTENTS, TABLESPACE_NAME FROM USER_SEGMENTS WHERE SEGMENT_TYPE = 'TABLE'; SEGMENT_NAME INI_KB NXT_KB TOT_KB PCT ------------ ------- ------- ------- ---- ---------- ---------- DEPT 1024 1024 1040 0 1 TS001 EXTENTS TABLESPACE

PROMPT =================================== PROMPT FOREIGN KEY PROMPT =================================== COL CONSTRAINT_NAME FOR A20 COL R_CONSTRAINT_NAME FOR A20 SELECT CONSTRAINT_NAME,R_CONSTRAINT_NAME,STATUS FROM USER_CONSTRAINTS; CONSTRAINT_NAME R_CONSTRAINT_NAME STATUS -------------------- -------------------- -------- EMP_DEPT_FK01 DEPT_PK ENABLED DEPT_SUPPLER_FK01 SUPPLER_PK ENABLED

-------------------------------------------------------------------- -- 1. : index_cre_bonsa.sql -- 2. : (BONSA01) -- 3. : 200271 -- 4. : -------------------------------------------------------------------- SPOOL index_cre_bonsa.log CREATE INDEX I_EMP01 ON EMP (DEPTNO ASC) TABLESPACE IS001;; SPOOL OFF

SQL> connect bonsa01/bonsa01@bonsa SQL> @index_cre_bonsa.sql....

PROMPT =================================== PROMPT PROMPT =================================== COL SEGMENT_NAME FORMAT A15 COL TABLESPACE_NAME FORMAT A10 SELECT SEGMENT_NAME,ROUND(INITIAL_EXTENT/1024,0) INI_KB, ROUND(NEXT_EXTENT/1024,0) NXT_KB, ROUND(BYTES/1024,0) TOT_KB, PCT_INCREASE PCT, EXTENTS, TABLESPACE_NAME FROM USER_SEGMENTS WHERE SEGMENT_TYPE = 'INDEX'; SEGMENT_NAME INI_KB NXT_KB TOT_KB PCT EXTENTS TABLESPACE --------------- ---------- ---------- ---------- ---------- ---------- ----------... I_EMP 1024 512 1040 0 1 TS001

-------------------------------------------------------------------- -- 1. : view_cre_bonsa.sql -- 2. : (BONSA01) -- 3. : 200271 -- 4. : -------------------------------------------------------------------- SPOOL view_cre_bonsa.log CREATE VIEW V_EMP AS SELECT EMPNO, EMPNM, DEPTNO FROM EMP; SPOOL OFF

SQL> connect bonsa01/bonsa01@bonsa SQL> @view_cre_bonsa.sql....

PROMPT =================================== PROMPT PROMPT =================================== COL OBJECT_NAME FORMAT A30 SELECT OBJECT_NAME, OBJECT_TYPE, STATUS FROM USER_OBJECTS WHERE OBJECT_TYPE = 'VIEW'; OBJECT_NAME OBJECT_TYPE STATUS --------------- ------------------ ------- V_EMP VIEW VALID

C:\>lsnrctl start...... BONSA has 1

BONSA = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521)) ) (CONNECT_DATA = (SERVICE_NAME = BONSA) ))

SQL> CREATE PUBLIC DATABASE LINK H2U1 CONNECT TO BONSA01 IDENTIFIED BY BONSA01 USING 'BONSA'; <-- Tnsnames.ora

CREATE SNAPSHOT LOG ON EMP TABLESPACE TS001 STORAGE(INITIAL 1M NEXT 1M PCTINCREASE 0); CREATE SNAPSHOT EMP TABLESPACE TS002 STORAGE (MINEXTENTS 1 PCTINCREASE 0) USING INDEX TABLESPACE IS002 STORAGE (MINEXTENTS 1 PCTINCREASE 0) REFRESH FAST START WITH SYSDATE NEXT TRUNC(SYSDATE) + 1 + (20/24) <-- REFRESH AS SELECT * FROM EMP@BONSA; <--