본문 바로가기

Database/PLSQL

(109)
102 - [Oracle PL/SQL] Managing Code - plsql_ccflags plsql_ccflags 값 설정 및 조회SELECT name, valueFROM v$parameterWHERE name ='plsql_ccflags' ;/*NAME VALUE ------------------- ------------------------------plsql_ccflags */alter session set plsql_ccflags='language:1';SELECT name, valueFROM v$parameterWHERE name ='plsql_ccflags' ;/*NAME VALUE ------------------- --------------..
101 - [Oracle PL/SQL] Managing Code - Introduction 버전이 다른 오라클 서버들에 모두 적용가능한 하나의 코드를 만들어야 할 경우가 있습니다.특정옵션들은 하위버전에서 동작하지 않게 때문에 컴파일 옵션을 다르게 적용할 필요가 있습니다. 아래 그림처럼 특정옵션은 버전마다 지원 여부가 다릅니다.   $ 기호를 이용해서 조건문을 만들수 있고 $$ 기호 2개를 이용하면 해당 정보에 직접 접근이 가능합니다.    Conditional Completion 장점은 아래와 같습니다.- Support for multiple versions of the same program in one source code- Easy maintenance and debugging of code.- Easy Migration of code to a different release of the..
100 - [Oracle PL/SQL] Compiler - package dbms_warning ALTER SESSION SET PLSQL_WARNINGS='DISABLE:ALL';col name for a30col value for a30select name,value from v$parameterwhere name='plsql_warnings';---------------------------------------------NAME VALUE ------------------------------ ------------------------------plsql_warnings DISABLE:ALL  경고 메시지 표시형식 설정--1----Modify the current sessi..
099 - [Oracle PL/SQL] Compiler - Warnings SEVERE: Messages for conditions that may cause unexpected behavior or wrong results, such as aliasing problemswith parametersPERFORMANCE: Messages for conditions that may cause performance problems, such as passing a VARCHAR2 value to a NUMBER column in an INSERT statementINFORMATIONAL: Messages for conditions that do not have an effect on performance or correctness, but that youmay want to chan..
098 - [Oracle PL/SQL] Compiler - plsql_optimize_level 최적화 기본값은 2 입니다.       This enables procedure inlining, which is an optimization process that replaces procedure calls with a copy of the body of the procedure to be called.   최적화 기본값 확인col name for a30col value for a10SELECT name, valueFROM v$parameterWHERE name ='plsql_optimize_level' ;--------------------------------------------NAME VALUE -------------------------..
097 - [Oracle PL/SQL] Compiler - plsql_code_type INTERPRETEDPL/SQL library units will be compiled to PL/SQL bytecode format.Such modules are executed by the PL/SQL interpreter engine.NATIVEPL/SQL library units (with the possible exception of top-level anonymous PL/SQL blocks)will be compiled to native (machine) code.Such modules will be executed natively without incurring any interpreter overhead. • When the value of this parameter is changed,..
096 - [Oracle PL/SQL] Compiler - Introduction * SELECT name, value FROM v$parameter WHERE name ='plsql_code_type'  다음 4개의 옵션에 대해서 알아보자
095 - [Oracle PL/SQL] Triggers - 프로시져 호출 방법 및 주의 사항 트리거에서 프로시져 호출하는 방법  You can also pass parameters to the procedureCall p1(:new.emp_id )  트리거 장점  트리거 관련 권한 설정 주의 사항   트리거 생성시 참고할 가이드라인