Microsoft Word - 06_PACKAGE.doc

Size: px
Start display at page:

Download "Microsoft Word - 06_PACKAGE.doc"

Transcription

1 ORACLE PACKAGE INTRODUCTION 프로그램단위 1 의하나인패키지는특정처리를위해관련된 PL/SQL 블록들이논리적으로하나의그룹을이루는특수한형태이다. 이때 PL/SQL 블록들은프로시저또는함수가될수있으며, 또한패키지는오라클에서제공하는 PL/SQL 데이터유형, 복합유형등을포함하기도한다. 패키지는두부분으로구성된다. 하나는패키지기술부 (Package Specification) 이며, 다른하나는패키지몸체부 (Package Body) 이다. 이두개의구성이하나의패키지를이루게된다. 패키지기술부의역할은패키지를통해접근 (public 2 ) 될수있는프로시저, 함수, 변수등에대한프로토타입 (Prototype) 을선언하는것이다. 즉패키지기술부는인터페이스가되는것이다. 이부분을통해패키지에대한전체적인정보를얻게된다. 이렇게선언된프로시저와함수는패키지몸체에서실제처리되는절차적인부분이정의된다. 물론패키지기술부에선언되지않은별개의변수나프로시저들이지역적인 (private 3 ) 의미로패키지몸체부에정의될수있다. 패키지몸체부에있는프로시저나함수들은패키지기술부에선언된변수나예외등에접근할수있다. 패키지를개발할때는우선패키지기술부를먼저생성하고, 해당패키지몸체부를생성한다. 생성된패키지의구성요소 ( 멤버 ) 에접근할때에는패키지명을접두어로기술해야한다. 만약, 생성된패키지를변경하는경우, 패키지기술부가변경되었다면무조건패키지몸체부는다시재생성해야하며패키지를참조 ( 호출 ) 하는서브프로그램들도재번역 (recompile) 해야한다. 이에반하여패키지몸체부는변경되면패키지기술부와관련서브프로그램에영향을주지않고몸체부만재생성될수있다. 이는패키지를참조또는접근하는오브젝트에게영향을주지않는다 ( 이부분 오브젝트종속성 에대한자세한사항은마지막장에서설명하기로한다.). 1 PL/SQL 블록은데이터베이스에오브젝트로서저장될수있는데, 이를서브프로그램또는프로그램단위라부르며, 그유형은프로시저 (Procedure), 함수 (Function), 패키지 (Package), 트리거 (Trigger) 가있다 2 패키지의기술부에선언된것들은모두접근유형이 PUBLIC 으로외부의프로그램또는다른사용자로부터접근 ( 호출 ) 이가능하다는것이다. 3 패키지의몸체부에정의된것들, 즉기술부에선언된것이외의것들의접근유형은 PRIVATE 로외부에서접근될수없다. 그러나몸체부내부의다른요소로부터는접근이가능하다. Written by AngelaLEE 6-1

2 자, 그렇다면왜패키지를사용하는가? 주된이유 ( 장점 ) 는여러가지가있는데, 첫째는처음으로패키지내의한구성요소 ( 변수, 프로시저, 함수 ) 가호출될당시패키지전체가메모리에적재 (load) 되므로이후의패키지접근은스토리지 ( 디스크 ) 에대한입출력없이도빠르게수행될수있으므로성능측면에서보면좋은성능향상을얻게되는장점이며, 둘째는전역변수 (Global Variable) 를선언할수있다는것이다. 이는패키지기술부에변수를선언함으로써가능한데, 세션내에서세션레벨의전역변수로서참조될수있다. 셋째는패키지관련서브프로그램들이하나의그룹을이루게되므로, 유지관리가매우효율적이라는것이다. 넷째는서브프로그램 ( 프로시저, 함수 ) 의오버로딩 (Overloading 1 ) 기능을제공한다는것이다. 이는단독 (Stand-alone) 서브프로그램에서는불가능하다. 이오버로딩 (overloading) 은형식매개변수의특정데이터유형또는개수에제약을가지지않으므로, 사용자에게도응용프로그램개발에도한층더진보된유연성 (flexibility) 을제공한다. 제약사항이있다면형식매개변수의데이터유형이서로비슷한계열 (same family) 에속할경우오버로딩을할수없다는것과함수의오버로딩에서는리턴유형이다른계열에속한다해도불가능하다. 즉리턴유형은동일해야한다는것이다. 오버로딩된서브프로그램이실행될때는오라클이자동적으로가장적절한서브프로그램으로처리하도록해준다. 다섯째는데이터의은닉 (Encapsulation, Hiding Information) 으로, 패키지에대한접근 (public, private) 을제한하고, 패키지몸체부에대한암호화를통해보안을가능하게한다. * 참고 : 오라클은기본적으로제공하는프로시저, 함수, 패키지들이많이있다. 이는오라클의사용자로하여금편리하고효율적인데이터베이스처리를도와주기위함이다. 여기에더불어오라클은사용자정의서브프로그램을개발하여사용할수있도록 PL/SQL 도제공함으로써다양한비즈니스규칙을구현할수있는기능도제공한다. 1 이기능은여러프로그래밍언어에서제공되는것으로, 오라클의패키지에서도가능하다. 오버로딩은동일한이름의프로시저또는함수를패키지내에여러개정의할수있는것으로형식매개변수의개수, 순서, 데이터유형이다르게정의된다. 이는동일한처리를하되다양한데이터를처리를위해서아주유용한개념이다. Written by AngelaLEE 6-2

3 PACKAGE Structure 패키지는두부분으로나누어지는데, 하나는패키지기술부 (Specification) 다른하나는패키지몸체부 (Body) 로구성된다. 패키지기술부에선언된것들은모두접근유형이 public(global) 의의미를가진다. >> 패키지의구성과접근 ( 참조 ) Package Specification 1 2 Procedure ANGELA ; -- 선언 1 Public Variable 2 Public Procedure 3 3 Private Variable Package Body 4 Procedure WIN ; -- 정의 5 Procedure ANGELA ; -- 정의 4 Private Procedure 5 Public Procedure 6 6 Local Variable QUIZ: 위의그림에서 1 public variable 의사용범위는? 5 번에서접근가능한것을모두선택한다면? Written by AngelaLEE 6-3

4 패키지기술부 (Package Specification) 생성 > SYNTAX: CREATE [OR REPLACE] PACKAGE package_name IS AS Public type and item declarations Subprogram specifications END package_name ; OR REPLACE 생성하고자하는패키지가기존에동일명으로존재할경우, 기존의내용을현재의내용으로수정하는옵션.( 만약기존에존재하지않는다면큰의미는없다.) Package_name 생성하고자하는패키지명으로스키마내에서는유일한이름이어야한다. 패키지기술부와패키지몸체부의패키지명이동일해야만한다. Public type and item declarations 변수, 상수, 명시적커서, 사용자정의예외, PRAGMA 등을선언한다. 이들은 PUBLIC 의의미를지닌다. Subprogram specifications PL/SQL 서브프로그램을선언한다. 선언할때에는형식매개변수를포함한헤더만을기술한다. > EX: CREATE OR REPLACE PACKAGE comm_pack IS g_comm NUMBER := 0.1 ; 로초기화 PROCEDURE reset_comm ( p_com IN NUMBER) ; END comm_pack ; Written by AngelaLEE 6-4

5 패키지몸체부 (Package Body) 생성 > SYNTAX: CREATE [OR REPLACE] PACKAGE BODY package_name IS AS Private type and item declarations Subprogram bodies END package_name ; OR REPLACE 생성하고자하는패키지가기존에동일명으로존재할경우, 기존의내용을현재의내용으로수정하는옵션.( 만약기존에존재하지않는다면큰의미는없다.) Package_name 생성하고자하는패키지명으로스키마내에서는유일한이름이어야한다. 패키지기술부와패키지몸체부의패키지명이동일해야만한다. Private type and item declarations 변수, 상수, 명시적커서, 사용자정의예외, PRAGMA 등을선언한다. 이들은지역적인의미를지닌다. Subprogram bodies 패키지기술부에서선언한 PUBLIC 서브프로그램이든, 지역적으로선언된 PRIVATE 서브프로그램이든실제처리내용 ( 몸체 ) 을기술한다. 단주의해야할사항은서브프로그램의순서이다. 기본적으로참조되는변수든서브프로그램이든참조하는서브프로그램보다는먼저정의되어야한다. 보통 PUBLIC 의서브프로그램은마지막부분에정의된다. Written by AngelaLEE 6-5

6 > EX: CREATE OR REPLACE PACKAGE BODY comm_pack IS FUNCTION validate_comm (p_comm IN NUMBER) RETURN BOOLEAN IS v_max_comm NUMBER ; BEGIN SELECT MAX(comm.) INTO v_max_comm FROM EMP ; IF p_comm > v_max_comm THEN RETURN(FALSE) ; ELSE RETURN(TRUE) ; END IF ; END validate_comm ; PRCEDURE reset_comm(p_comm IN NUMBER) IS BEGIN IF validate_comm(p_comm) THEN ELSE END IF ; g_comm := p_comm ; RAISE_APPLICATION_ERROR (-20100, Invalid Commission ) ; END reset_comm ; END comm_pack ; Written by AngelaLEE 6-6

7 패키지호출 ( 실행 ) 다양한환경에서패키지는호출되어실행된다. 단, 생성된패키지오브젝트에대한실행권한을가진사용자만이패키지를호출하여실행할수있다. 기본적으로패키지몸체부에서정의된 validate_comm 함수 (private) 는몸체부내에서는참조가가능하다. 물론외부에서는접근이불가능하다. 호출할때는함수이므로수식의일부로호출하여실행한다. 위에서생성한 comm_pack 패키지를 isql*plus 에서호출하려면, EXECUTE comm_pack.reset_comm(0.15) 만약위의패키지가 SCOTT 스키마오브젝트라가정하고, 이패키지에대한실행권한을 DEMO 사용자에게부여했다면, DEMO 세션에서패키지를실행하려면, EXECUTE scott.comm_pack.reset_comm(0.15) 원격에있는데이터베이스에서패키지를호출하려면, EXECUTE comm_pack.reset_comm@anyware(0.15) 패키지삭제 패키지를삭제할때에는패키지기술부와패키지몸체부를모두삭제한다. DROP PACKAGE package_name ; 패키지몸체부만을삭제할수도있다. DROP PACKAGE BODY package_name ; Written by AngelaLEE 6-7

8 ORACLE- Supplied PACKAGE 오라클서버는다수의유용한패키지들을제공하는데, 이패키지들은데이터베이스에대한기능을확장할뿐만아니라더불어사용자로하여금데이터베이스에대한접근 / 처리를간단하게그리고편리하게할수있도록도와준다. 일반적으로제공되는표준패키지들은 catproc.sql 을실행함으로써생성된다. >> ORACLE Supplied Packages Built-in name Description CALENDAR Provides calendar maintenance functions. DBMS_ALERT DBMS_APPLICATION_INFO DBMS_AQ DBMS_AQADM DBMS_DDL DBMS_DEBUG DBMS_DEFER DBMS_DEFER_QUERY DBMS_DEFER_SYS Supports asynchronous notification of database events. Messages or alerts are sent on a COMMIT command. Message transmittal is one way, but one sender can alert several receivers. Is used to register an application name with the database for auditing or performance tracking purpose. Provides message queuing as part of the Oracle server, is used to add a message(of a predefined object type) onto a queue or dequeue a message. Is used to perform administrative functions on a queue or queue table for messages of a predefined object type Is used to embed the equivalent of the SQL commands ALTER, COMPILE, and ANALYZE within your PL/SQL programs A PL/SQL API to the PL/SQL debugger layer, Probe, in the Oracle server Is used to build and administer deferred remote procedure calls(use of this feature requires the Replication Option) Written by AngelaLEE 6-8

9 Built-in name DBMS_DESCRIBE DBMS_DISTRIBUTED_TRUST_ADMIN DBMS_HS DBMS_HS_EXTPROC DBMS_HS_PASSTHROUGH DBMS_IOT DBMS_JOB DBMS_LOB DBMS_LOCK DBMS_LOGMNR DBMS_LOGMNR_D Description Is used to describe the arguments of a stored procedure Is used to maintain the Trusted Servers list, which is used in conjunction with the list at the central authority to determine whether a privileged database link from a particular server can be accepted. Is used to administer heterogeneous services by registering or dropping distributed external procedures, remote libraries, and non-oracle systems(you use dbms_hs to create or drop some initialization variables for non-oracle systems) Enables heterogeneous services to establish security for distributed external procedures Enables heterogeneous services to send pass-through SQL statements to non-oracle systems Is used to schedule administrative procedures that you want performed at periodic interval; is also the interface for the job queue Is used to schedule administrative procedures that you what performed at periodic intervals. Provides general purpose routines for operations on Oracle large objects(lobs) data types; BLOB, CLOB and BFILES(read-only) Is used to request, convert, and release locks through Oracle Lock Management services. Provides functions to initialize and run the log reader Queries the dictionary tales of the current database, and creates a text base file containing their contents Written by AngelaLEE 6-9

10 Built-in name Description DBMS_OFFLINE_OG Provides public APIs for offline instantiation of master groups DBMS_OFFLINE_SNAPSHOT Provides public APIs for offline instantiation of snapshots DBMS_OLAP DBMS_ORACLE_TRACE_AGENT DBMS_ORACLE_TRACE_USER DBMS_OUTPUT DBMS_PCLXUTIL DBMS_PIPE DBMS_PROFILER DBMS_RANDOM DBMS_RECTIFIER_DIFF DBMS_REFRESH Provides procedures for summaries, dimensions, and query rewrites Provides client callable interfaces to the Oracle TRACE instrumentation within the Oracle7 server Provides public access to the Oracle7 release server Oracle TRACE instrumentation for the calling user Accumulates information in a buffer so that it can be retrieved out later Provides intrapartition parallelism for creating partition-wise local indexes Provides a DBMS pipe service that enables message to be sent between sessions Provides a Probe Profiler API to profile existing PL/SQL applications and identify performance bottlenecks Provides a built-in random number generator Provides APIs used to detect and resolve data inconsistencies between two replicated sites Is used to create groups of snapshots that can be refreshed together to a transactionally consistent point in time; requires the Distributed option DBMS_REPAIR Provides data corruption repair procedures DBMS_REPCAT Provides routines to administer and update the replication catalog and environment; requires the Replication option Written by AngelaLEE

11 Built-in name Description DBMS_REPCAT_ADMIN Is used to create users with the privileges needed by the symmetric replication facility; requires the Replication option DBMS_REPCAT_INSTANTIATE Instantiate deployment templates; requires the Replication option DBMS_REPCAT_RGT Controls the maintenance and definition of refresh group templates; requires the Replication option DBMS_REPUTIL DBMS_RESOURCE_MANAGER Provides routines to generate shadow tables, triggers, and packages for table replication Maintains plans, consumer groups, and plan directives; it also provides semantics so that you may group together changes to the plan schema DBMS_RESOURCE_MANAGER_PRIVS Maintains privileges associated with resource consumer groups DBMS_RLS Provides row-level security administrative interface DBMS_ROWID DBMS_SESSION DBMS_SHARED_POOL DBMS_SNAPSHOT DBMS_SPACE Is used to get information about ROWIDs, including the data block number, the object number, and other componets Enables programmatic use of the SQL ALTER SESSION statement as well as other session-level commands Is used to keep objects in shared memory, so that they are not aged out with the normal LRU mechanism Is used to refresh one or more snapshots that are not part of the same refresh group and purge logs; use of this feature requires the Distributed option Provides segment space information not available through standard views Written by AngelaLEE

12 Built-in name Description DBMS_SPACE_ADMIN DBMS_SQL DBMS_STANDARD DBMS_STATS DBMS_TRACE Provides tablespace and segment space administration not available through standard SQL Is used to write stored procedure and anonymous PL/SQL blocks using dynamic SQL; also used to parse and DML or DDL statement Provides language facilities that help your application interact with the Oracle server Provides a mechanism for users to view and modify optimizer statistics gathered for database objects Provides routines to start and stop PL/SQL tracing DBMS_TRANSACTION Provides procedures for a programmatic interface to transaction management DBMS_TTS DBMS_UTILITY DBMS_EXTPROC DBMS_PKG PLITBLM Checks whether if the transportable set is self-contained Provides functionally for managing procedures, reporting errors, and other information Is used to debug external procedures on platforms with debuggers that can attach to a running process Provides the interface for procedures and functions associated with management of stored outlines Handles index-table operations SDO_ADMIN Provides functions implementing spatial index creation and maintenance for spatial objects SDO_GEOM Provides functions implementing geometric operations on spatial objects Written by AngelaLEE

13 Built-in name Description SDO_MIGRATE Provides functions for migrating spatial data from release and to 8.1.x SDO_TUNE Provides functions for selecting parameters that determine the behavior of the spatial indexing schema used in the Spatial Cartridge STANDARD Declares types, exception, and subprograms that are available automatically to every PL/SQL program TIMESERIES Provides functions that perform operations, such as extraction, retrieval, arithmetic, and aggregation, on time series data TIMESCALE Provides scale-up and scale-down functions TSTOOLS Provides administrative tools procedures UTL_COLL Enables PL/SQL programs to use collection locators to query and update UTL_FILE UTL_HTTP Enables your PL/SQL programs to read and write operating system(os) text files and provides a restricted version of standard OS stream file I/O Enables HTTP callouts from PL/SQL and SQL to access data on the Internet or to call Oracle Web Server Catridges UTL_PG Provides functions for converting COBOL numeric data into Oracle numbers and Oracle numbers into COBOL numeric data UTL_RAW Provides SQL functions for RAW data types that concatenate, obtain substring, and so on, to and from RAW data types Written by AngelaLEE

14 Built-in name UTL_REF VIR_PKG Description Enables a PL/SQL program to access an object by providing a reference to the object Provides analytical and conversion functions for visual information retreival * 는뒷부분의실습을통해이해를돕는패키지을표시한것임. Written by AngelaLEE

15 실습 ORACLE PACKAGE 1. [ PACKAGE I ] 전역변수만을가지는 GLOBAL_CONST 패키지. CREATE OR REPLACE PACKAGE global_const IS mile_to_kilo CONSTANT NUMBER := ; kilo_to_mile CONSTANT NUMBER := ; yard_to_meter CONSTANT NUMBER := ; meter_to_yard CONSTANT NUMBER := ; END global_const ; / Written by AngelaLEE

16 Hint : 생성된패키지를 SQL*Plus(iSQL*Plus) 에서실행하기위한예제. SQL> EXECUTE DBMS_OUTPUT.PUT_LINE( 20 miles = 20 * global_const.mile_to_kilo km ) Stand-alone 프로시저에서생성된패키지를호출하는예제. (p0601_run.sql 로저장하여실습 ) CREATE OR REPLACE PROCEDURE meter_to_yard (p_meter IN NUMBER, p_yard OUT NUMBER) IS BEGIN p_yard := p_meter * global_const.meter_to_yard ; END meter_to_yard ; / VARIABLE yard NUMBER EXECUTE meter_to_yard(1, :yard) ; PRINT yard Point : 위의 global_const 패키지는전역상수를사용하기위한것으로, 패키지몸체부를필요로하지않는다. 다시말해서패키지는기술부만으로도생성이가능하다. Written by AngelaLEE

17 2. [ PACKAGE II : OVERLOADING ] ADD_DEPT 프로시저에대한오버로딩을가지는 OVERLOAD_PACK 패키지. CREATE OR REPLACE PACKAGE overload_pack IS PROCEDURE add_dept (p_deptno IN dept.deptno%type, p_name IN dept.dname%type DEFAULT unknown, p_loc IN dept.loc%type DEFAULT 0) ; PROCEDURE add_dept (p_name IN dept.dname%type DEFAULT unknown, p_loc IN dept.loc%type DEFAULT 0) ; END overload_pack; / CREATE OR REPLACE PACKAGE BODY overload_pack IS PROCEDURE add_dept (p_deptno IN dept.deptno%type, p_name IN dept.dname%type DEFAULT unknown, p_loc IN dept.loc%type DEFAULT 0) IS BEGIN INSERT INTO DEPT VALUES(p_deptno, p_name, p_loc) ; END add_dept ; PROCEDURE add_dept (p_name IN dept.dname%type DEFAULT unknown, p_loc IN dept.loc%type DEFAULT 0) IS BEGIN INSERT INTO DEPT VALUES(dno_seq.nextval, p_name, p_loc) ; END add_dept ; END overload_pack ; / Written by AngelaLEE

18 힌트 : 생성된프로시저를 SQL*Plus(iSQL*Plus) 에서실행 / 확인하는예제 EXECUTE overload_pack.add_dept(45, AnyWare, Seoul ) EXECUTE overload_pack.add_dept( Marketing, DaeJeon ) SELECT * FROM DEPT ; Written by AngelaLEE

19 3. [ PACKAGE III : PACKAGE 초기화 ] 패키지가실행될때, 패키지레벨에서단한번의초기화를하는 INITIAL_PACK 패키지. CREATE OR REPLACE PACKAGE initial_pack IS g_max_bonus NUMBER ; FUNCTION bonus (p_bonus IN NUMBER) RETRUN NUMBER ; END initial_pack; / CREATE OR REPLACE PACKAGE BODY initial_pack IS v_rate NUMBER := 1.5 ; FUNCTION bonus (p_bonus IN NUMBER) RETRUN NUMBER IS BEGIN RETURN (p_bonus * v_rate) ; END bonus ; BEGIN SELECT max(sal) * v_rate INTO g_max_bonus FROM EMP ; END initial_pack ; / Written by AngelaLEE

20 힌트 : 생성된패키지를 SQL*Plus(iSQL*Plus) 에서실행 / 확인하는예제. EXECUTE DBMS_OUTPUT.PUT_LINE(initial_pack.g_max_bonus) SQL 문장에서패키지를실행 / 확인하는예제. > SELECT ENAME, SAL, initial_pack.bonus(sal), initial_pack.g_max_bonus FROM EMP ; 포인트 : 복잡한처리를통한전역변수초기화의경우패키지기술부에서는불가능하지만, 패키지레벨에서의초기화 ( 패키지몸체부에서의 BEGIN 부분 ) 를사용하면된다. Written by AngelaLEE

21 4. [ PACKAGE IV : 전역변수의 Scope Rule ] COMM_PACK 패키지의전역변수 G_COMM 의 Scope Rule 을이해하는예제 -- ( 가정 ) G_COMM 의초기값은 0.1, -- V_MAX_COMM 초기값은 :00 09:30 EXEC comm_pack.reset_comm(0.25) V_MAX_COMM = 0.4 > 0.25 G_COMM = 0.25 INSERT INTO EMP(EMPNO, COMM) VALUES (9000, 0.8) ; V_MAX_COMM = :35 EXEC comm_pack.reset_comm(0.5) V_MAX_COMM = 0.8 > 0.5 G_COMM = :00 EXEC comm_pack.reset_comm(0.6) 10:30 10:35 V_MAX_COMM = 0.4 > 0.6 ORA-20100:Invalid commission ROLLBACK ; EXIT 13:00 로그인시 V_MAX_COMM = 0.4 G_COMM = :10 EXEC comm_pack.reset_comm(0.25) Written by AngelaLEE

22 포인트 : 기본적으로각세션은세션레벨에서의전역변수를참조할수있으며, 새로운세션이시작되면서패키지에접근이이루어지면전역변수는초기화가된다. Written by AngelaLEE

23 5. [ PACKAGE V : 전역커서의 Scope Rule] 전역커서의 Scope Rule 을이해하기위한 cursor_pack 패키지. CREATE OR REPLACE PACKAGE cursor_pack IS CURSOR cur1 IS SELECT empno FROM emp ORDER BY empno DESC ; PROCEDURE rows_01_03 ; PROCEDURE rows_04_06 ; END cursor_pack; / CREATE OR REPLACE PACKAGE BODY cursor_pack IS v_empno ; PROCEDURE rows_01_03 IS BEGIN OPEN cur1 ; LOOP FETCH cur1 INTO v_empno ; DBMS_OUTPUT.PUT_LINE( ID : v_empno) ; EXIT WHEN cur1%rowcount >= 3 ; END LOOP; END rows_01_03 ; PROCEDURE rows_04_06 IS BEGIN LOOP FETCH cur1 INTO v_empno ; DBMS_OUTPUT.PUT_LINE( ID : v_empno) ; EXIT WHEN cur1%rowcount >= 6 ; END LOOP; CLOSE cur1 ; END rows_04_06 ; END cursor_pack ; / Written by AngelaLEE

24 힌트 : 생성된패키지를 SQL*Plus(iSQL*Plus) 에서실행 / 확인하는예제. 포인트 : SET SERVEROUTPUT ON EXECUTE cursor_pack.rows01_03 ; EXECUTE cursor_pack.rows04_06 ; 전역커서도전역변수와마찬가지로세션레벨에서는언제라도어디에서라도참조가가능하다. Written by AngelaLEE

25 6. [ PACKAGE VI : 전역데이터유형의참조 ] 복합변수형을전역적으로선언했을때참조되는경우를이해하기위한예제. CREATE OR REPLACE PACKAGE type_pack IS TYPE emp_tab_type IS TABLE OF emp%rowtype INDEX BY BINARY_INTEGER ; PROCEDURE read_emp_tab ( p_emp_tab OUT emp_tab_type ) ; END type_pack; / CREATE OR REPLACE PACKAGE BODY type_pack IS PROCEDURE read_emp_tab ( p_emp_tab OUT emp_tab_type ) IS n BINARY_INTEGER := 0 ; BEGIN FOR emp_rec IN (SELECT * FROM EMP) LOOP p_emp_tab(n) := emp_rec ; n := n + 1 ; END LOOP ; END read_emp_tab ; END type_pack ; / 힌트 : 생성된패키지를 SQL*Plus(iSQL*Plus) 에서실행 / 확인하는예제. (p0606_run.sql 로저장하여실습 ) DECLARE v_emp_tab type_pack.emp_tab_type ; BEGIN type_pack.read_emp_tab(v_emp_tab) ; DBMS_OUTPUT.PUT_LINE( An sample: v_emp_tab(4).ename) ; END ; / Written by AngelaLEE

26 7. [ PACKAGE VII : ORACLE 제공패키지 DBMS_SQL (1)] 오라클이제공하는패키지중 DBMS_SQL 을이해하기위한예제. CREATE OR REPLACE PROCEDURE del_all_rows (p_tab_nm IN VARCHAR2, p_rows_del OUT NUMBER) IS cursor_nm INTEGER ; BEGIN cursor_nm := DBMS_SQL.OPEN_CURSOR ; DBMS_SQL.PARSE(cursor_nm, DELETE FROM p_tab_nm, DBMS_SQL.NATIVE) ; p_rows_del := DBMS_SQL.EXECUTE(cursor_nm) ; DBMS_SQL.CLOSE_CURSOR(cursor_nm) ; END ; / Written by AngelaLEE

27 힌트 : 생성된패키지를 SQL*Plus(iSQL*Plus) 에서실행 / 확인하는예제. (p0607_run.sql 로저장하여실습 ) VARIABLE deleted NUMBER EXECUTE del_all_rows( EMP_COPY, :deleted) PRINT deleted * 참고적으로 EMP_COPY 는 create table emp_copy as select * from emp; 명령으로생성한다. 포인트 : Dynamic SQL 의실행을지원하기위해제공되는 DBMS_SQL 은기본적인 SQL 문실행단계, 즉 Parse Bind Execute Fetch(SELECT only) 의처리과정을그대로구현한다. 오라클 8i 이후부터는 Native Dynamic SQL 도실행할수있다. (EXECUTE IMMEDIATE 명령을사용 ) DBMS_SQL 패키지내의멤버 ( 프로시저또는함수 ) 중에서,.. OPEN_CURSOR PARSE BIND_VARIABLE EXECUTE FETCH_ROWS CLOSE_CURSOR * dbmssql.sql 스크립트파일을참조 Written by AngelaLEE

28 8. [ PACKAGE VIII : ORACLE 제공패키지 DBMS_SQL (2)] 오라클이제공하는패키지중 DBMS_SQL 을이해하기위한예제. CREATE OR REPLACE PROCEDURE del_rows (p_tab_nm IN VARCHAR2, p_rows_del OUT NUMBER) IS cursor_nm INTEGER ; BEGIN EXECUTE IMMEDIATE delete from p_tab_nm ; p_rows_del := SQL%ROWCOUNT ; END ; / 힌트 : 생성된패키지를 SQL*Plus(iSQL*Plus) 에서실행 / 확인하는예제. (p0608_run.sql 로저장하여실습 ) VARIABLE deleted NUMBER EXECUTE del_rows( EMP_COPY, :deleted) PRINT deleted * 참고적으로 EMP_COPY 는 create table emp_copy as select * from emp; 명령으로생성한다. Written by AngelaLEE

29 9. [ PACKAGE VIIII : ORACLE 제공패키지 DBMS_SQL (3)] 오라클이제공하는패키지중 DBMS_SQL 을이해하기위한예제. CREATE OR REPLACE PROCEDURE drop_tab (p_tab_nm IN VARCHAR2) IS cursor_nm NUMBER ; err_msg VARCHAR2(255) ; BEGIN cursor_nm := DBMS_SQL.OPEN_CURSOR ; DBMS_SQL.PARSE(cursor_nm, DROP TABLE p_tab_nm, DBMS_SQL.NATIVE) ; DBMS_SQL.CLOSE_CURSOR(cursor_nm) ; EXCEPTION WHEN OTHERS THEN err_msg := SQLERRM ; DBMS_SQL.CLOSE_CURSOR(cursor_nm) ; RAISE_APPLICATION_ERROR(-20200, err_msg) ; END ; / 힌트 : 생성된패키지를 SQL*Plus(iSQL*Plus) 에서실행 / 확인하는예제. (p0609_run.sql 로저장하여실습 ) EXECUTE drop_tab( EMP_COPY ) SELECT * FROM EMP_COPY ; * 참고적으로 EMP_COPY 는 create table emp_copy as select * from emp; 명령으로생성한다. QUIZ : DROP_TAB 프로시저와동일하게 Dynamic SQL 을처리할수있도록수정해보시오. ( 참고 : EXCECUTE IMMEDIATE) Written by AngelaLEE

30 10. [ PACKAGE X : ORACLE 제공패키지 DBMS_DDL ] 오라클이제공하는패키지중 DBMS_DDL 을이해하기위한예제. CREATE OR REPLACE PROCEDURE analyze_object (p_obj_type IN VARCHAR2, p_obj_name IN VARCHAR2) IS BEGIN DBMS_DDL.ANALYZE_OBJECT( p_obj_type, USER, UPPER(p_obj_name), COMPUTE ) ; END ; / 힌트 : -- OBJECT_TYPE -- OWNER -- NAME -- METHOD 생성된패키지를 SQL*Plus(iSQL*Plus) 에서실행 / 확인하는예제. (p0610_run.sql 로저장하여실습 ) EXECUTE analyze_object( TABLE, EMP ) SELECT LAST_ANALYZED FROM USER_TABLES WHERE TABLE_NAME = EMP ; 참고 : DBMS_DDL 패키지는 PL/SQL 프로그램내에서 SQL 의 DDL 문처리를제공하는패키지로, 트리거내에서는사용될수없다. 이패키지는 SYS 보다실행하고자하는사용자의권한으로실행한다. DBMS_DDL.ALTER_COMPILE( PROCEDURE, SCOTT, Q_EMP ) ; Written by AngelaLEE

31 11. [ PACKAGE XI : ORACLE 제공패키지 DBMS_JOB ] 오라클이제공하는패키지중 DBMS_JOB 을이해하기위한예제. VARIABLE jobno NUMBER BEGIN DBMS_JOB.SUBMIT( job => :jobno, what => OVERLOAD_PACK.ADD_DEPT( EDUCATION,2710) ;, next_date => TRUNC(SYSDATE + 1), interval => TRUNC(SYSDATE + 1) ); COMMIT; END; / PRINT jobno Written by AngelaLEE

32 힌트 : 생성된패키지를 SQL*Plus(iSQL*Plus) 에서실행 / 확인하는예제. (p0611_run.sql 로저장하여실습 ) 참고 : DBMS_JOB 패키지는 PL/SQL 프로그램들에대한 Job Scheduling 을위한패키지로, 데이터베이스의작업이적은시간대에일괄처리를위해스케쥴되어사용되거나프로그램에대한유지보수에도응용된다. DBMS_SQL 패키지내의멤버 ( 프로시저또는함수 ) 중에서,.. SUBMIT REMOVE CHANGE WHAT NEXT_DATE INTERVAL BROKEN RUN DBA_JOBS 딕셔너리뷰를사용해서스케쥴된작업들 (Submitted jobs) 의상태정보를확인할수있다. DBA_JOBS_RUNNING 딕셔너리뷰는지금실행되고있는작업들의정보를확인할수있다. Written by AngelaLEE

33 12. [ PACKAGE XII : ORACLE 제공패키지 UTL_FILE ] 오라클이제공하는패키지중 UTL_FILE 을이해하기위한예제. CREATE OR REPLACE PROCEDURE sal_status (p_filedir IN VARCHAR2, p_filename IN VARCHAR2) IS v_filehandle UTL_FILE.FILE_TYPE ; CURSOR emp_info IS SELECT ename, sal, deptno FROM emp ORDER BY deptno ; v_newdeptno emp.deptno%type ; v_olddeptno emp.deptno%type := 0 ; BEGIN v_filehandle := UTL_FILE.FOPEN(p_filedir, p_filename, w ) ; UTL_FILE.PUTF(v_filehandle, SAL REPORT : GENERATED ON %s\n, SYSDATE); UTL_FILE.NEW_LINE(v_filehandle) ; FOR v_emp_rec IN emp_info LOOP v_newdeptno := v_emp_rec.deptno ; IF v_newdeptno <> v_olddeptno THEN UTL_FILE.PUTF(v_filehandle, DEPARTMENT : %s\n, v_emp_rec.deptno) ; END IF; UTL_FILE.PUTF(v_filehandle, EMPLOYEE : %s\n, v_emp_rec.ename, v_emp_rec.sal) ; v_olddeptno := v_newdeptno ; END LOOP ; UTL_FILE.PUT_LINE(v_filehandle, *** END OF REPORT *** ) ; UTL_FILE.FCOLSE(v_filehandle) ; EXCEPTION END ; / WHEN UTL_FILE.INVALID_FILEHANDLE THEN RAISE_APPLICATION_ERROR(-20300, Invalid File. ); WHEN UTL_FILE.WRITE_ERROR THEN RAISE_APPLICATION_ERROR(-20400, Unable to write to file ) ; Written by AngelaLEE

34 힌트 : 생성된패키지를 SQL*Plus(iSQL*Plus) 에서실행 / 확인하는예제. EXECUTE sal_status( C:\UTL_FILE, SAL_RPT.TXT ) POINT : 접근할디렉토리는초기화파라미터 (UTL_FILE_DIR) 에정의되어야한다. ( 예 : UTL_FILE_DIR = C:\UTL_FILE) Written by AngelaLEE

35 13. [ PACKAGE XIII : ORACLE 제공패키지 DBMS_LOB (1) ] 오라클이제공하는패키지중 DBMS_LOB 을이해하기위한예제. > 우선실습관련테이블을생성하고, 데이터를간단하게입력한다. (p0613_ready.sql 로저장하여실습 ) CREATE TABLE personnel (id NUMBER(6) constraint personnel_id_pk PRIMARY KEY, last_name VARCHAR2(35), review CLOB, picture BLOB) ; CREATE TABLE review_table (employee_id NUMBER, ann_review VARCHAR2(2000) ); INSERT INTO personnel VALUES(2034, Allen, EMPTY_CLOB(), NULL); INSERT INTO personnel VALUES(2035, Bond, EMPTY_CLOB(), NULL); INSERT INTO review_table VALUES(2034, Very good performance this year. Recommanded to increase salary by $500 ); INSERT INTO review_table VALUES(2035, Excellent performance this year. Recommanded to increase salary by $1000 ); COMMIT ; > UPDATE 문장으로 CLOB 에데이터를변경하는예제 UPDATE personnel SET review = (SELECT ann_review FROM WHERE last_name = Allen ; review_table WHERE employee_id = 2034) ( 다음페이지에계속 ) Written by AngelaLEE

36 > DBMS_LOB 패키지를사용하여 CLOB 에데이터를변경하는예제 DECLARE lobloc CLOB ; text VARCHAR2(2000) ; amount NUMBER ; offset INTEGER ; BEGIN SELECT ann_review INTO text FROM review_table WHERE employee_id = 2035 ; SELECT review INTO lobloc FROM personnel WHERE last_name = Bond FOR UPDATE ; offset := 1; amount := length(text) ; DBMS_LOB.WRITE( lobloc, amount, offset, text ) ; END ; / Written by AngelaLEE

37 14. [ PACKAGE XIV : ORACLE 제공패키지 DBMS_LOB (2) ] 오라클이제공하는패키지중 DBMS_LOB 을이해하기위한예제. CREATE OR REPLACE PROCEDURE load_image (p_file_loc IN VARCHAR2) IS v_file BFILE ; BEGIN v_filename VARCHAR2(40) ; v_record_number NUMBER ; v_file_exists AN ; BOOLE CURSOR pic_cur IS SELECT country_id FROM country WHERE region_id = 1 FOR UPDATE ; DBMS_OUTPUT.PUT_LINE( LOADING LOCATORS TO IMAGES ) ; FOR country_record IN pic_cur LOOP LOOP v_filename := country_record.country_id.tif ; v_file := bfilename(p_file_loc, v_filename) ; v_file_exists := (DBMS_LOB.FILEEXISTS(v_file) = 1 ) ; IF v_file_exists THEN DBMS_LOB.FILEOPEN(v_file) ; UPDATE countries SET picture = bfilename(p_file_loc, v_filename) WHERE CURRENT OF country_pic_cursor ; DBMS_OUTPUT.PUT_LINE( LOADED LOCATOR TO FILE : v_filename SIZE : DBMS_LOB.GETLENGTH(v_file) ) ; DBMS_LOB.FILECLOSE(v_file) ; v_record_number := country_pic_cursor%rowcount ; ELSE DBMS_OUTPUT.PUT_LINE( Can not open the file v_filename) ; END IF ; END LOOP ; DBMS_OUTPUT.PUT_LINE( TOTAL FILES UPDATED : v_record_number) ; ( 다음페이지에계속 ) Written by AngelaLEE

38 EXCEPTION WHEN OTHERS THEN DBMS_LOB.FILECLOSE(v_file) ; DBMS_OUTPUT.PUT_LINE( Program Error Occurred : to_char(sqlcode) SQLERRM ) ; END ; / Written by AngelaLEE

Microsoft Word - 05_SUBPROGRAM.doc

Microsoft Word - 05_SUBPROGRAM.doc ORACLE SUBPROGRAM INTRODUCTION PLSQL 은오라클에서제공하는프로그래밍언어이다. 이는데이터베이스언어인 SQL 과함께효과적으로데이터베이스에접근할수있는방법을제공하고있다. Procedural LanguageSQL 의약자에서볼수있듯이절차적인기능을기본적으로가지는프로그래밍언어이다. PLSQL 은기본적으로블록 (BLOCK) 구조를가지고있다. 블록의기본적인구성은선언부

More information

13주-14주proc.PDF

13주-14주proc.PDF 12 : Pro*C/C++ 1 2 Embeded SQL 3 PRO *C 31 C/C++ PRO *C NOT! NOT AND && AND OR OR EQUAL == = SQL,,, Embeded SQL SQL 32 Pro*C C SQL Pro*C C, C Pro*C, C C 321, C char : char[n] : n int, short, long : float

More information

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

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

More information

목 차

목      차 Oracle 9i Admim 1. Oracle RDBMS 1.1 (System Global Area:SGA) 1.1.1 (Shared Pool) 1.1.2 (Database Buffer Cache) 1.1.3 (Redo Log Buffer) 1.1.4 Java Pool Large Pool 1.2 Program Global Area (PGA) 1.3 Oracle

More information

PowerPoint 프레젠테이션

PowerPoint 프레젠테이션 Reasons for Poor Performance Programs 60% Design 20% System 2.5% Database 17.5% Source: ORACLE Performance Tuning 1 SMS TOOL DBA Monitoring TOOL Administration TOOL Performance Insight Backup SQL TUNING

More information

歯sql_tuning2

歯sql_tuning2 SQL Tuning (2) SQL SQL SQL Tuning ROW(1) ROW(2) ROW(n) update ROW(2) at time 1 & Uncommitted update ROW(2) at time 2 SQLDBA> @ UTLLOCKT WAITING_SESSION TYPE MODE_REQUESTED MODE_HELD LOCK_ID1

More information

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

목차 BUG 문법에맞지않는질의문수행시, 에러메시지에질의문의일부만보여주는문제를수정합니다... 3 BUG ROUND, TRUNC 함수에서 DATE 포맷 IW 를추가지원합니다... 5 BUG ROLLUP/CUBE 절을포함하는질의는 SUBQUE ALTIBASE HDB 6.3.1.10.1 Patch Notes 목차 BUG-45710 문법에맞지않는질의문수행시, 에러메시지에질의문의일부만보여주는문제를수정합니다... 3 BUG-45730 ROUND, TRUNC 함수에서 DATE 포맷 IW 를추가지원합니다... 5 BUG-45760 ROLLUP/CUBE 절을포함하는질의는 SUBQUERY REMOVAL 변환을수행하지않도록수정합니다....

More information

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

ORANGE FOR ORACLE V4.0 INSTALLATION GUIDE (Online Upgrade) ORANGE CONFIGURATION ADMIN O Orange for ORACLE V4.0 Installation Guide ORANGE FOR ORACLE V4.0 INSTALLATION GUIDE...1 1....2 1.1...2 1.2...2 1.2.1...2 1.2.2 (Online Upgrade)...11 1.3 ORANGE CONFIGURATION ADMIN...12 1.3.1 Orange Configuration

More information

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

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 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. :

More information

PowerPoint Presentation

PowerPoint Presentation FORENSIC INSIGHT; DIGITAL FORENSICS COMMUNITY IN KOREA SQL Server Forensic AhnLab A-FIRST Rea10ne unused6@gmail.com Choi Jinwon Contents 1. SQL Server Forensic 2. SQL Server Artifacts 3. Database Files

More information

The Self-Managing Database : Automatic Health Monitoring and Alerting

The Self-Managing Database : Automatic Health Monitoring and Alerting The Self-Managing Database : Automatic Health Monitoring and Alerting Agenda Oracle 10g Enterpirse Manager Oracle 10g 3 rd Party PL/SQL API Summary (Self-Managing Database) ? 6% 6% 12% 55% 6% Source: IOUG

More information

ALTIBASE HDB Patch Notes

ALTIBASE HDB Patch Notes ALTIBASE HDB 6.5.1.5.6 Patch Notes 목차 BUG-45643 암호화컬럼의경우, 이중화환경에서 DDL 수행시 Replication HandShake 가실패하는문제가있어수정하였습니다... 4 BUG-45652 이중화에서 Active Server 와 Standby Server 의 List Partition 테이블의범위조건이다른경우에 Handshake

More information

목차 BUG DEQUEUE 의 WAIT TIME 이 1 초미만인경우, 설정한시간만큼대기하지않는문제가있습니다... 3 BUG [qp-select-pvo] group by 표현식에있는컬럼을참조하는집합연산이존재하지않으면결괏값오류가발생할수있습니다... 4

목차 BUG DEQUEUE 의 WAIT TIME 이 1 초미만인경우, 설정한시간만큼대기하지않는문제가있습니다... 3 BUG [qp-select-pvo] group by 표현식에있는컬럼을참조하는집합연산이존재하지않으면결괏값오류가발생할수있습니다... 4 ALTIBASE HDB 6.5.1.5.10 Patch Notes 목차 BUG-46183 DEQUEUE 의 WAIT TIME 이 1 초미만인경우, 설정한시간만큼대기하지않는문제가있습니다... 3 BUG-46249 [qp-select-pvo] group by 표현식에있는컬럼을참조하는집합연산이존재하지않으면결괏값오류가발생할수있습니다... 4 BUG-46266 [sm]

More information

APOGEE Insight_KR_Base_3P11

APOGEE Insight_KR_Base_3P11 Technical Specification Sheet Document No. 149-332P25 September, 2010 Insight 3.11 Base Workstation 그림 1. Insight Base 메인메뉴 Insight Base Insight Insight Base, Insight Base Insight Base Insight Windows

More information

DBMS & SQL Server Installation Database Laboratory

DBMS & SQL Server Installation Database Laboratory DBMS & 조교 _ 최윤영 } 데이터베이스연구실 (1314 호 ) } 문의사항은 cyy@hallym.ac.kr } 과제제출은 dbcyy1@gmail.com } 수업공지사항및자료는모두홈페이지에서확인 } dblab.hallym.ac.kr } 홈페이지 ID: 학번 } 홈페이지 PW:s123 2 차례 } } 설치전점검사항 } 설치단계별설명 3 Hallym Univ.

More information

untitled

untitled PowerBuilder 連 Microsoft SQL Server database PB10.0 PB9.0 若 Microsoft SQL Server 料 database Profile MSS 料 (Microsoft SQL Server database interface) 行了 PB10.0 了 Sybase 不 Microsoft 料 了 SQL Server 料 PB10.0

More information

Microsoft Word - 04_EXCEPTION.doc

Microsoft Word - 04_EXCEPTION.doc ORACLE EXCEPTION INTRODUCTION PLSQL 블록이 PARSE 되는동안에발생되는에러를컴파일에러 (Compilation Error) 라고부르며, PLSQL 블록이실행되는동안에발생되는에러를런타임에러 (Run-Time Error) 라고부르는데, 이런타임에러를오라클에서는예외 (Exception) 라고부른다. 오라클의예외 (Exception) 는크게두가지로구분된다.

More information

Oracle Database 10g: Self-Managing Database DB TSC

Oracle Database 10g: Self-Managing Database DB TSC Oracle Database 10g: Self-Managing Database DB TSC Agenda Overview System Resource Application & SQL Storage Space Backup & Recovery ½ Cost ? 6% 12 % 6% 6% 55% : IOUG 2001 DBA Survey ? 6% & 12 % 6% 6%

More information

10.ppt

10.ppt : SQL. SQL Plus. JDBC. SQL >> SQL create table : CREATE TABLE ( ( ), ( ),.. ) SQL >> SQL create table : id username dept birth email id username dept birth email CREATE TABLE member ( id NUMBER NOT NULL

More information

Microsoft PowerPoint - PLSQL.ppt

Microsoft PowerPoint - PLSQL.ppt PL/SQL Consultant 주종면 jina6678@yahoo.co.kr 1 - 목차 - 1장. PL/SQL 2장. 커서와에러처리 3장. 패키지와트리거 4장. PL/SQL의관리 2 1 PL-SQL 의개념 3 SQL 의장점과단점 < 장점 > 오라클 DB 지역정보부서코드지역명 1 서울 2 부산 SQL (1) 사용자가이해하기쉬운단어로구성 (2) 쉽게배울수있다.

More information

Microsoft PowerPoint - PLSQL.ppt

Microsoft PowerPoint - PLSQL.ppt SQL 의장점과단점 PL/SQL 오라클 DB 지역정보부서코드지역 1 서울 2 부산 < 장점 > (1) 사용자가이해하기쉬운단어로구성 (2) 쉽게배울수있다. (3) 복잡한로직을간단하게작성할수있다. (4) ANSI에의해문법이표준화되어있다. SQL < 단점 > Consultant 주종면 jina6678@yahoo.co.kr 1 (1) 반복처리를할수없다.(Loop)

More information

Microsoft Word - 03_SQL_CURSOR.doc

Microsoft Word - 03_SQL_CURSOR.doc SQL Cursor SQL 커서소개오라클서버에서는 SQL 문을실행할때마다처리 (Parse, Execution) 를위한메모리공간, 즉 SQL 커서를사용하게된다. 이메모리공간은 Private SQL Area 라고도불리우며, 오라클의작업환경이 Dedicated Server 환경이냐또는 MTS(Multi- Threaded Server) 환경이냐에따라서버내에위치되는곳이다르다.

More information

MS-SQL SERVER 대비 기능

MS-SQL SERVER 대비 기능 Business! ORACLE MS - SQL ORACLE MS - SQL Clustering A-Z A-F G-L M-R S-Z T-Z Microsoft EE : Works for benchmarks only CREATE VIEW Customers AS SELECT * FROM Server1.TableOwner.Customers_33 UNION ALL SELECT

More information

Domino Designer Portal Development tools Rational Application Developer WebSphere Portlet Factory Workplace Designer Workplace Forms Designer

Domino Designer Portal Development tools Rational Application Developer WebSphere Portlet Factory Workplace Designer Workplace Forms Designer Domino, Portal & Workplace WPLC FTSS Domino Designer Portal Development tools Rational Application Developer WebSphere Portlet Factory Workplace Designer Workplace Forms Designer ? Lotus Notes Clients

More information

SchoolNet튜토리얼.PDF

SchoolNet튜토리얼.PDF Interoperability :,, Reusability: : Manageability : Accessibility :, LMS Durability : (Specifications), AICC (Aviation Industry CBT Committee) : 1988, /, LMS IMS : 1997EduCom NLII,,,,, ARIADNE (Alliance

More information

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

最即時的Sybase ASE Server資料庫診斷工具 TOAD 9.5 Toad Oracle 料 SQL 料 行 理 SQLprofile Quest Software 了 Oracle -Toad Tools of Oracle Application Developers Toad 了 DBA DBA 理 易 度 Toad 料 SQL PL/SQL Toad Oracle PL/SQL Toad Schema Browser Schema Browser

More information

Remote UI Guide

Remote UI Guide Remote UI KOR Remote UI Remote UI PDF Adobe Reader/Adobe Acrobat Reader. Adobe Reader/Adobe Acrobat Reader Adobe Systems Incorporated.. Canon. Remote UI GIF Adobe Systems Incorporated Photoshop. ..........................................................

More information

untitled

untitled (shared) (integrated) (stored) (operational) (data) : (DBMS) :, (database) :DBMS File & Database - : - : ( : ) - : - : - :, - DB - - -DBMScatalog meta-data -DBMS -DBMS - -DBMS concurrency control E-R,

More information

C# Programming Guide - Types

C# Programming Guide - Types C# Programming Guide - Types 최도경 lifeisforu@wemade.com 이문서는 MSDN 의 Types 를요약하고보충한것입니다. http://msdn.microsoft.com/enus/library/ms173104(v=vs.100).aspx Types, Variables, and Values C# 은 type 에민감한언어이다. 모든

More information

Portal_9iAS.ppt [읽기 전용]

Portal_9iAS.ppt [읽기 전용] Application Server iplatform Oracle9 A P P L I C A T I O N S E R V E R i Oracle9i Application Server e-business Portal Client Database Server e-business Portals B2C, B2B, B2E, WebsiteX B2Me GUI ID B2C

More information

SQL Tuning Business Development DB

SQL Tuning Business Development DB SQL Tuning Business Development DB Oracle Optimizer 4.1 Optimizer SQL SQL.. SQL Optimizer :.. Rule-Based Optimization (RBO), Cost-Based Optimization (CBO) SQL Optimizer SQL Query Parser Dictionary Rule-Based

More information

PCServerMgmt7

PCServerMgmt7 Web Windows NT/2000 Server DP&NM Lab 1 Contents 2 Windows NT Service Provider Management Application Web UI 3 . PC,, Client/Server Network 4 (1),,, PC Mainframe PC Backbone Server TCP/IP DCS PLC Network

More information

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

Microsoft Word - [Unioneinc] 특정컬럼의 통계정보 갱신_ _ldh.doc 특정 Column 통계정보갱신가이드 유니원아이앤씨 DB 사업부이대혁 2015 년 03 월 02 일 문서정보프로젝트명서브시스템명 버전 1.0 문서명 특정 Column 통계정보갱신가이드 작성일 2015-03-02 작성자 DB사업부이대혁사원 최종수정일 2015-03-02 문서번호 UNIONE-201503021500-LDH 재개정이력 일자내용수정인버전 문서배포이력

More information

DW 개요.PDF

DW 개요.PDF Data Warehouse Hammersoftkorea BI Group / DW / 1960 1970 1980 1990 2000 Automating Informating Source : Kelly, The Data Warehousing : The Route to Mass Customization, 1996. -,, Data .,.., /. ...,.,,,.

More information

6주차.key

6주차.key 6, Process concept A program in execution Program code PCB (process control block) Program counter, registers, etc. Stack Heap Data section => global variable Process in memory Process state New Running

More information

PowerPoint Presentation

PowerPoint Presentation Server I/O utilization System I/O utilization V$FILESTAT V$DATAFILE Data files Statspack Performance tools TABLESPACE FILE_NAME PHYRDS PHYBLKRD READTIM PHYWRTS PHYBLKWRT WRITETIM ------------- -----------------------

More information

ETL_project_best_practice1.ppt

ETL_project_best_practice1.ppt ETL ETL Data,., Data Warehouse DataData Warehouse ETL tool/system: ETL, ETL Process Data Warehouse Platform Database, Access Method Data Source Data Operational Data Near Real-Time Data Modeling Refresh/Replication

More information

<C0CCBCBCBFB52DC1A4B4EBBFF82DBCAEBBE7B3EDB9AE2D313939392D382E687770>

<C0CCBCBCBFB52DC1A4B4EBBFF82DBCAEBBE7B3EDB9AE2D313939392D382E687770> i ii iii iv v vi 1 2 3 4 가상대학 시스템의 국내외 현황 조사 가상대학 플랫폼 개발 이상적인 가상대학시스템의 미래상 제안 5 웹-기반 가상대학 시스템 전통적인 교수 방법 시간/공간 제약을 극복한 학습동기 부여 교수의 일방적인 내용전달 교수와 학생간의 상호작용 동료 학생들 간의 상호작용 가상대학 운영 공지사항,강의록 자료실, 메모 질의응답,

More information

Jerry Held

Jerry Held DB / TSC Oracle Database 10g (Self-Managing Database) (Common Infrastructure) (Automatic Workload Repository) (Server-generated Alerts) (Automated Maintenance Tasks) (Advisory Framework) (ADDM) (Self-Managing

More information

Microsoft Word - PLSQL.doc

Microsoft Word - PLSQL.doc PL/SQL 2008 DB system and programming 보충자료 PL/SQL의실행절 BEGIN 절에서의몇가지규칙 - 실행문은여러라인에걸쳐사용할수있다. - 변수명의명명규칙은오라클의일반적인명명규칙과동일하다. PL/SQL 블록내에서 SQL 문을사용할때에는컬럼명과같은변수명은피해야한다. - SQL에서와마찬가지로날짜와문자는홑따옴표 ( ) 를사용하여인용하여야한다.

More information

FlashBackt.ppt

FlashBackt.ppt 1. Flashback 목적 Flashback 이란? 사용자실수에의한손상된데이터를 Database 의크기와상관없이복구를할수있는기능이다. 이 Flashback 기능은일반적인복구에서우려되는데이터베이스의크기를걱정하지않아도된다. 보통의사용자실수는커다란시스템장애가수반되며, 이를복구하기위해서는많은자원과시간이필요하다. 하지만 9i 에서지원되느 flashback query

More information

Something that can be seen, touched or otherwise sensed

Something that can be seen, touched or otherwise sensed Something that can be seen, touched or otherwise sensed Things about an object Weight Height Material Things an object does Pen writes Book stores words Water have Fresh water Rivers Oceans have

More information

ESQL/C

ESQL/C 20 장. PL/SQL 커서 주요내용 암시적커서 명시적커서선언 명시적커서열기및닫기 명시적커서에서데이터 Fetch 커서의속성 (%ISOPEN, %ROWCOUNT, %FOUND, %NOTFOUND) 커서 FOR 루프 PL/SQL 의커서 (Cursor) 커서 SQL 문과프로그램실행과정에서결과를저장할수있는오라클메모리구조 ( 개별 SQL 작업영역 ) 암시적커서 (Implicit

More information

1217 WebTrafMon II

1217 WebTrafMon II (1/28) (2/28) (10 Mbps ) Video, Audio. (3/28) 10 ~ 15 ( : telnet, ftp ),, (4/28) UDP/TCP (5/28) centralized environment packet header information analysis network traffic data, capture presentation network

More information

Intra_DW_Ch4.PDF

Intra_DW_Ch4.PDF The Intranet Data Warehouse Richard Tanler Ch4 : Online Analytic Processing: From Data To Information 2000. 4. 14 All rights reserved OLAP OLAP OLAP OLAP OLAP OLAP is a label, rather than a technology

More information

untitled

untitled Push... 2 Push... 4 Push... 5 Push... 13 Push... 15 1 FORCS Co., LTD A Leader of Enterprise e-business Solution Push (Daemon ), Push Push Observer. Push., Observer. Session. Thread Thread. Observer ID.

More information

No Slide Title

No Slide Title Copyright, 2001 Multimedia Lab., CH 3. COM object (In-process server) Eun-sung Lee twoss@mmlab.net Multimedia Lab. Dept. of Electrical and Computer Eng. University of Seoul Seoul, Korea 0. Contents 1.

More information

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

@OneToOne(cascade = = addr_id) private Addr addr; public Emp(String ename, Addr addr) { this.ename = ename; this.a 1 대 1 단방향, 주테이블에외래키실습 http://ojcedu.com, http://ojc.asia STS -> Spring Stater Project name : onetoone-1 SQL : JPA, MySQL 선택 http://ojc.asia/bbs/board.php?bo_table=lecspring&wr_id=524 ( 마리아 DB 설치는위 URL

More information

Microsoft Word - 02_PLSQL_BLOCK_STRUCTURE.doc

Microsoft Word - 02_PLSQL_BLOCK_STRUCTURE.doc PL/SQL BLOCK PL/SQL 블록 기본구조 PL/SQL 은기본적으로블록 (BLOCK) 구조를가지고있다. 블록의기본적인구성은선언부 (DECLARE), 실행부 (BEGIN), 예외처리부 (EXCEPTION) 로구성되어있다. PL/SQL 블록은그블록안에블록을포함할수있는데포함된블록을 Nested Block 이라한다. 블록의유형에는크게 Anonymous PL/SQL

More information

chapter4

chapter4 Basic Netw rk 1. ก ก ก 2. 3. ก ก 4. ก 2 1. 2. 3. 4. ก 5. ก 6. ก ก 7. ก 3 ก ก ก ก (Mainframe) ก ก ก ก (Terminal) ก ก ก ก ก ก ก ก 4 ก (Dumb Terminal) ก ก ก ก Mainframe ก CPU ก ก ก ก 5 ก ก ก ก ก ก ก ก ก ก

More information

Jerry Held

Jerry Held ,, - - - : DELETE : ROW (ROWID) row ROWID : I/O Full Table Scan I/O Index Scan ROWID I/O Fast Full Index Scan scan scan scan I/O scan scan Unique, nonunique. (Concatenated Index) B* Tree Bitmap Reverse

More information

歯PLSQL10.PDF

歯PLSQL10.PDF 10 - SQL*Pl u s Pl / SQL - SQL*P lus 10-1 1 0.1 PL/ SQL SQL*Pl u s. SQL*P lus 10-2 1 0.2 S QL* Pl u s PL/ S QL SQL*Pl u s, Pl / SQL. - PL/ SQL (i npu t ), (s t or e ), (r un). - PL/ SQL s cr i pt,,. -

More information

PRO1_02E [읽기 전용]

PRO1_02E [읽기 전용] Siemens AG 1999 All rights reserved File: PRO1_02E1 Information and 2 STEP 7 3 4 5 6 STEP 7 7 / 8 9 10 S7 11 IS7 12 STEP 7 13 STEP 7 14 15 : 16 : S7 17 : S7 18 : CPU 19 1 OB1 FB21 I10 I11 Q40 Siemens AG

More information

SQL Developer Connect to TimesTen 유니원아이앤씨 DB 기술지원팀 2010 년 07 월 28 일 문서정보 프로젝트명 SQL Developer Connect to TimesTen 서브시스템명 버전 1.0 문서명 작성일 작성자

SQL Developer Connect to TimesTen 유니원아이앤씨 DB 기술지원팀 2010 년 07 월 28 일 문서정보 프로젝트명 SQL Developer Connect to TimesTen 서브시스템명 버전 1.0 문서명 작성일 작성자 SQL Developer Connect to TimesTen 유니원아이앤씨 DB 팀 2010 년 07 월 28 일 문서정보 프로젝트명 SQL Developer Connect to TimesTen 서브시스템명 버전 1.0 문서명 작성일 2010-07-28 작성자 김학준 최종수정일 2010-07-28 문서번호 20100728_01_khj 재개정이력 일자내용수정인버전

More information

MySQL-.. 1

MySQL-.. 1 MySQL- 기초 1 Jinseog Kim Dongguk University jinseog.kim@gmail.com 2017-08-25 Jinseog Kim Dongguk University jinseog.kim@gmail.com MySQL-기초 1 2017-08-25 1 / 18 SQL의 기초 SQL은 아래의 용도로 구성됨 데이터정의 언어(Data definition

More information

,, - - - : DELETE : ROW (ROWID) row ROWID : I/O Full Table Scan scan I/O scan Index Scan ROWID scan I/O Fast Full Index Scan scan scan I/O Unique, nonunique. (Concatenated Index) B* Tree Bitmap Reverse

More information

90

90 89 3 차원공간질의를위한효율적인위상학적데이터모델의검증 Validation of Efficient Topological Data Model for 3D Spatial Queries Seokho Lee Jiyeong Lee 요약 키워드 Abstract Keywords 90 91 92 93 94 95 96 -- 3D Brep adjacency_ordering DECLARE

More information

Microsoft Word - 07_TRIGGER.doc

Microsoft Word - 07_TRIGGER.doc DATABASE TRIGGER INTRODUCTION 프로그램단위 1 의하나인트리거 2 (Trigger) 는테이블, 뷰, 스키마또는데이터베이스에관련된 PLSQL 블록 ( 또는프로시저 ) 으로관련된특정사건 (Event) 이발생될때마다묵시적 ( 자동 ) 으로실행이이루어진다 (Fire). 트리거를생성할때관련된사건 (Event) 도함께정의되며, 실행부에서저장된프로시저

More information

배치프로그램에서튜닝대상 SQL 추출하기 엑셈컨설팅본부 /DB 컨설팅팀박성호 배치프로그램의성능문제를진단하기위해트레이스를사용할수없고, 개별 SQL 에대한성 능점검은비효율적인경우에어떻게배치프로그램의성능문제를제대로파악하고개선안을도 출할것인가? 복잡한로직을가지고있는프로그램 (

배치프로그램에서튜닝대상 SQL 추출하기 엑셈컨설팅본부 /DB 컨설팅팀박성호 배치프로그램의성능문제를진단하기위해트레이스를사용할수없고, 개별 SQL 에대한성 능점검은비효율적인경우에어떻게배치프로그램의성능문제를제대로파악하고개선안을도 출할것인가? 복잡한로직을가지고있는프로그램 ( 배치프로그램에서튜닝대상 SQL 추출하기 엑셈컨설팅본부 /DB 컨설팅팀박성호 배치프로그램의성능문제를진단하기위해트레이스를사용할수없고, 개별 SQL 에대한성 능점검은비효율적인경우에어떻게배치프로그램의성능문제를제대로파악하고개선안을도 출할것인가? 복잡한로직을가지고있는프로그램 ( 이후배치프로그램 ) 에대한성능문제를파악하기위해수행되는모든 SQL 에대한개별수행내역을정확히판단할수있어야한다.

More information

F1-1(수정).ppt

F1-1(수정).ppt , thcho@kisaorkr IPAK (Information Protection Assessment Kit) IAM (INFOSEC Assessment Methodology) 4 VAF (Vulnerability Assessment Framework) 5 OCTAVE (Operationally Critical Threat, Asset, and Vulnerability

More information

강의10

강의10 Computer Programming gdb and awk 12 th Lecture 김현철컴퓨터공학부서울대학교 순서 C Compiler and Linker 보충 Static vs Shared Libraries ( 계속 ) gdb awk Q&A Shared vs Static Libraries ( 계속 ) Advantage of Using Libraries Reduced

More information

Intro to Servlet, EJB, JSP, WS

Intro to Servlet, EJB, JSP, WS ! Introduction to J2EE (2) - EJB, Web Services J2EE iseminar.. 1544-3355 ( ) iseminar Chat. 1 Who Are We? Business Solutions Consultant Oracle Application Server 10g Business Solutions Consultant Oracle10g

More information

Social Network

Social Network Social Network Service, Social Network Service Social Network Social Network Service from Digital Marketing Internet Media : SNS Market report A social network service is a social software specially focused

More information

1

1 1 1....6 1.1...6 2. Java Architecture...7 2.1 2SDK(Software Development Kit)...8 2.2 JRE(Java Runtime Environment)...9 2.3 (Java Virtual Machine, JVM)...10 2.4 JVM...11 2.5 (runtime)jvm...12 2.5.1 2.5.2

More information

PRO1_09E [읽기 전용]

PRO1_09E [읽기 전용] Siemens AG 1999 All rights reserved File: PRO1_09E1 Information and - ( ) 2 3 4 5 Monitor/Modify Variables" 6 7 8 9 10 11 CPU 12 Stop 13 (Forcing) 14 (1) 15 (2) 16 : 17 : Stop 18 : 19 : (Forcing) 20 :

More information

VOL.76.2008/2 Technical SmartPlant Materials - Document Management SmartPlant Materials에서 기본적인 Document를 관리하고자 할 때 필요한 세팅, 파일 업로드 방법 그리고 Path Type인 Ph

VOL.76.2008/2 Technical SmartPlant Materials - Document Management SmartPlant Materials에서 기본적인 Document를 관리하고자 할 때 필요한 세팅, 파일 업로드 방법 그리고 Path Type인 Ph 인터그래프코리아(주)뉴스레터 통권 제76회 비매품 News Letters Information Systems for the plant Lifecycle Proccess Power & Marine Intergraph 2008 Contents Intergraph 2008 SmartPlant Materials Customer Status 인터그래프(주) 파트너사

More information

°í¼®ÁÖ Ãâ·Â

°í¼®ÁÖ Ãâ·Â Performance Optimization of SCTP in Wireless Internet Environments The existing works on Stream Control Transmission Protocol (SCTP) was focused on the fixed network environment. However, the number of

More information

USER GUIDE

USER GUIDE Solution Package Volume II DATABASE MIGRATION 2010. 1. 9. U.Tu System 1 U.Tu System SeeMAGMA SYSTEM 차 례 1. INPUT & OUTPUT DATABASE LAYOUT...2 2. IPO 중 VB DATA DEFINE 자동작성...4 3. DATABASE UNLOAD...6 4.

More information

Cache_cny.ppt [읽기 전용]

Cache_cny.ppt [읽기 전용] Application Server iplatform Oracle9 A P P L I C A T I O N S E R V E R i Improving Performance and Scalability with Oracle9iAS Cache Oracle9i Application Server Cache... Oracle9i Application Server Web

More information

슬라이드 1

슬라이드 1 Tadpole for DB 1. 도구개요 2. 설치및실행 4. 활용예제 1. 도구개요 도구명 소개 Tadpole for DB Tools (sites.google.com/site/tadpolefordb/) 웹기반의데이터베이스를관리하는도구 Database 스키마및데이터관리 라이선스 LGPL (Lesser General Public License) 특징 주요기능

More information

Simplify your Job Automatic Storage Management DB TSC

Simplify your Job Automatic Storage Management DB TSC Simplify your Job Automatic Storage Management DB TSC 1. DBA Challenges 2. ASM Disk group 3. Mirroring/Striping/Rebalancing 4. Traditional vs. ASM 5. ASM administration 6. ASM Summary Capacity in Terabytes

More information

Connection 8 22 UniSQLConnection / / 9 3 UniSQL OID SET

Connection 8 22 UniSQLConnection / / 9 3 UniSQL OID SET 135-080 679-4 13 02-3430-1200 1 2 11 2 12 2 2 8 21 Connection 8 22 UniSQLConnection 8 23 8 24 / / 9 3 UniSQL 11 31 OID 11 311 11 312 14 313 16 314 17 32 SET 19 321 20 322 23 323 24 33 GLO 26 331 GLO 26

More information

Web Application Hosting in the AWS Cloud Contents 개요 가용성과 확장성이 높은 웹 호스팅은 복잡하고 비용이 많이 드는 사업이 될 수 있습니다. 전통적인 웹 확장 아키텍처는 높은 수준의 안정성을 보장하기 위해 복잡한 솔루션으로 구현

Web Application Hosting in the AWS Cloud Contents 개요 가용성과 확장성이 높은 웹 호스팅은 복잡하고 비용이 많이 드는 사업이 될 수 있습니다. 전통적인 웹 확장 아키텍처는 높은 수준의 안정성을 보장하기 위해 복잡한 솔루션으로 구현 02 Web Application Hosting in the AWS Cloud www.wisen.co.kr Wisely Combine the Network platforms Web Application Hosting in the AWS Cloud Contents 개요 가용성과 확장성이 높은 웹 호스팅은 복잡하고 비용이 많이 드는 사업이 될 수 있습니다. 전통적인

More information

제목을 입력하세요.

제목을 입력하세요. 1. 4 1.1. SQLGate for Oracle? 4 1.2. 4 1.3. 5 1.4. 7 2. SQLGate for Oracle 9 2.1. 9 2.2. 10 2.3. 10 2.4. 13 3. SQLGate for Oracle 15 3.1. Connection 15 Connect 15 Multi Connect 17 Disconnect 18 3.2. Query

More information

ecorp-프로젝트제안서작성실무(양식3)

ecorp-프로젝트제안서작성실무(양식3) (BSC: Balanced ScoreCard) ( ) (Value Chain) (Firm Infrastructure) (Support Activities) (Human Resource Management) (Technology Development) (Primary Activities) (Procurement) (Inbound (Outbound (Marketing

More information

Microsoft PowerPoint - a10.ppt [호환 모드]

Microsoft PowerPoint - a10.ppt [호환 모드] Structure Chapter 10: Structures t and Macros Structure 관련된변수들의그룹으로이루어진자료구조 template, pattern field structure를구성하는변수 (cf) C언어의 struct 프로그램의 structure 접근 entire structure 또는 individual fields Structure는

More information

thesis

thesis ( Design and Implementation of a Generalized Management Information Repository Service for Network and System Management ) ssp@nile nile.postech.ac..ac.kr DPE Lab. 1997 12 16 GMIRS GMIRS GMIRS prototype

More information

초보자를 위한 ADO 21일 완성

초보자를 위한 ADO 21일 완성 ADO 21, 21 Sams Teach Yourself ADO 2.5 in 21 Days., 21., 2 1 ADO., ADO.? ADO 21 (VB, VBA, VB ), ADO. 3 (Week). 1, 2, COM+ 3.. HTML,. 3 (week), ADO. 24 1 - ADO OLE DB SQL, UDA(Universal Data Access) ADO.,,

More information

Spring Boot/JDBC JdbcTemplate/CRUD 예제

Spring Boot/JDBC JdbcTemplate/CRUD 예제 Spring Boot/JDBC JdbcTemplate/CRUD 예제 오라클자바커뮤니티 (ojc.asia, ojcedu.com) Spring Boot, Gradle 과오픈소스인 MariaDB 를이용해서 EMP 테이블을만들고 JdbcTemplate, SimpleJdbcTemplate 을이용하여 CRUD 기능을구현해보자. 마리아 DB 설치는다음 URL 에서확인하자.

More information

Chap7.PDF

Chap7.PDF Chapter 7 The SUN Intranet Data Warehouse: Architecture and Tools All rights reserved 1 Intranet Data Warehouse : Distributed Networking Computing Peer-to-peer Peer-to-peer:,. C/S Microsoft ActiveX DCOM(Distributed

More information

Voice Portal using Oracle 9i AS Wireless

Voice Portal using Oracle 9i AS Wireless Voice Portal Platform using Oracle9iAS Wireless 20020829 Oracle Technology Day 1 Contents Introduction Voice Portal Voice Web Voice XML Voice Portal Platform using Oracle9iAS Wireless Voice Portal Video

More information

휠세미나3 ver0.4

휠세미나3 ver0.4 andromeda@sparcs:/$ ls -al dev/sda* brw-rw---- 1 root disk 8, 0 2014-06-09 18:43 dev/sda brw-rw---- 1 root disk 8, 1 2014-06-09 18:43 dev/sda1 brw-rw---- 1 root disk 8, 2 2014-06-09 18:43 dev/sda2 andromeda@sparcs:/$

More information

Commit_Wait / Commit_Logging 두파라미터를통해 Log File Sync 대기시간을감소시킬수있다는것은놀라움과의아함을동시에느낄수있다. 단지파라미터의수정을통해당연히대기해야하는시간을감축한다는것은분명성능을개선해야하는입장에서는놀라운일이될것이다. 반면, 그에따

Commit_Wait / Commit_Logging 두파라미터를통해 Log File Sync 대기시간을감소시킬수있다는것은놀라움과의아함을동시에느낄수있다. 단지파라미터의수정을통해당연히대기해야하는시간을감축한다는것은분명성능을개선해야하는입장에서는놀라운일이될것이다. 반면, 그에따 Commit Wait Class 대기시간감소방안 엑셈컨설팅본부 /DB 컨설팅팀박준연 개요 Wait Class 중 Commit 카테고리에해당하는 Wait Event 에의한대기현상으로 DB 시스템의성능저하현상이발생하는것은종종경험할수있다. 그중대표적인 Wait Event 는 Log File Sync 이다. 실제로대부분의 DB 시스템의 Top 5 Wait Event

More information

초보자를 위한 분산 캐시 활용 전략

초보자를 위한 분산 캐시 활용 전략 초보자를위한분산캐시활용전략 강대명 charsyam@naver.com 우리가꿈꾸는서비스 우리가꿈꾸는서비스 우리가꿈꾸는서비스 우리가꿈꾸는서비스 그러나현실은? 서비스에필요한것은? 서비스에필요한것은? 핵심적인기능 서비스에필요한것은? 핵심적인기능 서비스에필요한것은? 핵심적인기능 서비스에필요한것은? 적절한기능 서비스안정성 트위터에매일고래만보이면? 트위터에매일고래만보이면?

More information

김기남_ATDC2016_160620_[키노트].key

김기남_ATDC2016_160620_[키노트].key metatron Enterprise Big Data SKT Metatron/Big Data Big Data Big Data... metatron Ready to Enterprise Big Data Big Data Big Data Big Data?? Data Raw. CRM SCM MES TCO Data & Store & Processing Computational

More information

DE1-SoC Board

DE1-SoC Board 실습 1 개발환경 DE1-SoC Board Design Tools - Installation Download & Install Quartus Prime Lite Edition http://www.altera.com/ Quartus Prime (includes Nios II EDS) Nios II Embedded Design Suite (EDS) is automatically

More information

Result Cache 동작원리및활용방안 엑셈컨설팅본부 /DB 컨설팅팀김철환 개요 ORACLE DBMS 를사용하는시스템에서 QUERY 성능은무엇보다중요한요소중하나이며그 성능과직접적인관련이있는것이 I/O 이다. 많은건수를 ACCESS 해야만원하는결과값을얻을수있는 QUER

Result Cache 동작원리및활용방안 엑셈컨설팅본부 /DB 컨설팅팀김철환 개요 ORACLE DBMS 를사용하는시스템에서 QUERY 성능은무엇보다중요한요소중하나이며그 성능과직접적인관련이있는것이 I/O 이다. 많은건수를 ACCESS 해야만원하는결과값을얻을수있는 QUER Result Cache 동작원리및활용방안 엑셈컨설팅본부 /DB 컨설팅팀김철환 개요 ORACLE DBMS 를사용하는시스템에서 QUERY 성능은무엇보다중요한요소중하나이며그 성능과직접적인관련이있는것이 I/O 이다. 많은건수를 ACCESS 해야만원하는결과값을얻을수있는 QUERY 을실행하게된다면 BLOCK I/O 가많이발생하게된다. 이런이유로 QUERY 의성능은좋지못할것이다.

More information

No Slide Title

No Slide Title J2EE J2EE(Java 2 Enterprise Edition) (Web Services) :,, SOAP: Simple Object Access Protocol WSDL: Web Service Description Language UDDI: Universal Discovery, Description & Integration 4. (XML Protocol

More information

PRO1_04E [읽기 전용]

PRO1_04E [읽기 전용] Siemens AG 1999 All rights reserved File: PRO1_04E1 Information and S7-300 2 S7-400 3 EPROM / 4 5 6 HW Config 7 8 9 CPU 10 CPU : 11 CPU : 12 CPU : 13 CPU : / 14 CPU : 15 CPU : / 16 HW 17 HW PG 18 SIMATIC

More information

CD-RW_Advanced.PDF

CD-RW_Advanced.PDF HP CD-Writer Program User Guide - - Ver. 2.0 HP CD-RW Adaptec Easy CD Creator Copier, Direct CD. HP CD-RW,. Easy CD Creator 3.5C, Direct CD 3.0., HP. HP CD-RW TEAM ( 02-3270-0803 ) < > 1. CD...3 CD...5

More information

OPCTalk for Hitachi Ethernet 1 2. Path. DCOMwindow NT/2000 network server. Winsock update win95. . . 3 Excel CSV. Update Background Thread Client Command Queue Size Client Dynamic Scan Block Block

More information

62

62 2 instance database physical storage 2 1 62 63 tablespace datafiles 2 2 64 1 2 logical view control files datafiles redo log files 65 2 3 9i OMF Oracle Managed Files, OMF 9i 9i / / OMF 9i 66 8 1MB 8 10MB

More information

歯1.PDF

歯1.PDF 200176 .,.,.,. 5... 1/2. /. / 2. . 293.33 (54.32%), 65.54(12.13%), / 53.80(9.96%), 25.60(4.74%), 5.22(0.97%). / 3 S (1997)14.59% (1971) 10%, (1977).5%~11.5%, (1986)

More information

슬라이드 1

슬라이드 1 Pairwise Tool & Pairwise Test NuSRS 200511305 김성규 200511306 김성훈 200614164 김효석 200611124 유성배 200518036 곡진화 2 PICT Pairwise Tool - PICT Microsoft 의 Command-line 기반의 Free Software www.pairwise.org 에서다운로드후설치

More information

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

다양한 예제로 쉽게 배우는 오라클 SQL 과 PL/SQL 다양한예제로쉽게배우는 오라클 SQL 과 PL/SQL 서진수저 9 장인덱스를배웁니다 1 1. 인덱스란무엇인가? 2 - ROWID ( 주소 ) 조회하기 SCOTT>SELECT ROWID, empno, ename 2 FROM emp 3 WHERE empno=7902 ; ROWID EMPNO ENAME --------------------------------- ----------

More information

DBPIA-NURIMEDIA

DBPIA-NURIMEDIA The e-business Studies Volume 17, Number 6, December, 30, 2016:275~289 Received: 2016/12/02, Accepted: 2016/12/22 Revised: 2016/12/20, Published: 2016/12/30 [ABSTRACT] SNS is used in various fields. Although

More information

<3035303432365FC8A8C6E4C0CCC1F620B0B3B9DF20BAB8BEC8B0A1C0CCB5E5C3D6C1BE28C0FAC0DBB1C7BBE8C1A6292E687770>

<3035303432365FC8A8C6E4C0CCC1F620B0B3B9DF20BAB8BEC8B0A1C0CCB5E5C3D6C1BE28C0FAC0DBB1C7BBE8C1A6292E687770> 개 요 홈페이지 해킹 현황 및 사례 홈페이지 개발시 보안 취약점 및 대책 주요 애플리케이션 보안 대책 결 론 참고자료 [부록1] 개발 언어별 로그인 인증 프로세스 예제 [부록2] 대규모 홈페이지 변조 예방을 위한 권고(안) [부록3] 개인정보의 기술적 관리적 보호조치 기준(안) [부록4] 웹 보안관련 주요 사이트 리스트 7000 6,478 6000 5000

More information

DocsPin_Korean.pages

DocsPin_Korean.pages Unity Localize Script Service, Page 1 Unity Localize Script Service Introduction Application Game. Unity. Google Drive Unity.. Application Game. -? ( ) -? -?.. 준비사항 Google Drive. Google Drive.,.. - Google

More information

09 강제근로의 금지 폭행의 금지 공민권 행사의 보장 38 10 중간착취의 금지 41 - 대판 2008.9.25, 2006도7660 [근로기준법위반] (쌍용자동차 취업알선 사례) 11 균등대우의 원칙 43 - 대판 2003.3.14, 2002도3883 [남녀고용평등법위

09 강제근로의 금지 폭행의 금지 공민권 행사의 보장 38 10 중간착취의 금지 41 - 대판 2008.9.25, 2006도7660 [근로기준법위반] (쌍용자동차 취업알선 사례) 11 균등대우의 원칙 43 - 대판 2003.3.14, 2002도3883 [남녀고용평등법위 01 노동법 법원으로서의 노동관행 15 - 대판 2002.4.23, 2000다50701 [퇴직금] (한국전력공사 사례) 02 노동법과 신의성실의 원칙 17 - 대판 1994.9.30, 94다9092 [고용관계존재확인등] (대한조선공사 사례) 03 퇴직금 청구권 사전 포기 약정의 효력 19 - 대판 1998.3.27, 97다49732 [퇴직금] (아시아나 항공

More information

NoSQL

NoSQL MongoDB Daum Communications NoSQL Using Java Java VM, GC Low Scalability Using C Write speed Auto Sharding High Scalability Using Erlang Read/Update MapReduce R/U MR Cassandra Good Very Good MongoDB Good

More information