전체 글 (667) 썸네일형 리스트형 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 ) 트리거 장점 트리거 관련 권한 설정 주의 사항 트리거 생성시 참고할 가이드라인 094 - [Oracle PL/SQL] Triggers - system event trigger sys 사용자로 로그인-- 로그인을 sys 유저로 로그인.alter session set container=orclpdb;show con_name------------------------------Session altered.CON_NAME ------------------------------ORCLPDB 테이블 생성 및 트리거 생성drop table log_table;/create table log_table(user_id varchar2(100), log_date date, action varchar2(100) );create or replace trigger logon_tafter logon on databasebegin insert into log_table values (user,s.. 093 - [Oracle PL/SQL] DDL triggers ( Schema or Database ) 이전까지는 테이블이나 뷰를 대상으로 트리거에 대해서 알아보았습니다.이번에는 스키마, 데이터베이스에 대한 트리거에 대해서 알아보겠습니다. 스키마 트리거 생성 - 특정 시간에만 create 명령어를 수행할 수 있음CREATE OR REPLACE TRIGGER before_create_triggerBEFORE CREATE ON SCHEMA -- CREATE/ALTER/DROPBEGIN if to_number(to_char(sysdate,'hh24')) not between 8 and 16 then raise_application_error(-20001, 'Create not Allowed now'); end if;END; 테스트 결과 - 현재 시간이 8-16시 사이가 아니여.. 092 - [Oracle PL/SQL] Triggers vs Procedures 이전 1 2 3 4 5 6 7 8 ··· 84 다음 목록 더보기