Courses(87)
-
251120 TIL
리눅스 명령어(Cont.)CP(copy)파일을 복사하는 명령어[oracle@oracle ~]$ cp /home/oracle/test1/ex1.txt /home/oracle/test1/ex3.txt[oracle@oracle ~]$ ls -l test1total 12-rw-rw-r--. 1 oracle oracle 29 Nov 19 18:12 ex1.txt-rw-rw-r--. 1 oracle oracle 150 Nov 19 18:13 ex2.txt-rw-rw-r--. 1 oracle oracle 29 Nov 19 18:14 ex3.txt[oracle@oracle ~]$ cp ./test1/ex2.txt ./test1/ex4.txt[oracle@oracle ~]$ ls -l test1total 16-rw-..
2025.11.20 -
251119 TIL
설치 및 초기설정VirtualBoxhttps://www.virtualbox.org/ Oracle VirtualBoxPowerful open source virtualization For personal and enterprise use VirtualBox is a general-purpose full virtualization software for x86_64 hardware (with version 7.1 additionally for macOS/Arm and with version 7.2 also for Windows/Arm), targeted at laptopwww.virtualbox.org 서버 주소 확인호스트 키 조합 변경가상머신 생성리눅스 이미지 설정https://yum.oracle.com/..
2025.11.19 -
251118 TIL
문제직무별 급여 유효성 검사 트리거테이블 초기화-- 테이블 초기화DROP TABLE hr.emp PURGE;CREATE TABLE hr.empASSELECT employee_id, salary, job_idFROM hr.employees;익명 블록-- 익명 블록DECLARE v_min number; v_max number;BEGIN SELECT min_salary min, max_salary max INTO v_min, v_max FROM hr.jobs WHERE job_id = :b_job; IF :b_sal NOT BETWEEN v_min AND v_max THEN RAISE_APPLICATION_ERROR(-20000, '급여는 ' || v_min ..
2025.11.18 -
251117 TIL
TRIGGER(Cont.)DML 작업 복제테이블 생성-- source 테이블CREATE TABLE hr.emp_target(id number,name varchar2(30),day timestamp default systimestamp,sal number)TABLESPACE users;-- target 테이블CREATE TABLE hr.emp_source(id number,name varchar2(30),day timestamp default systimestamp,sal number)TABLESPACE users;트리거 생성CREATE OR REPLACE TRIGGER emp_copy_triggerAFTERINSERT OR DELETE OR UPDATE ON hr.emp_sourceFOR EACH RO..
2025.11.17 -
251114 TIL
PACKAGE(Cont.)상수 표준화CREATE OR REPLACE PACKAGE global_constsIS c_mile_2_kilo constant number := 1.6093; c_kilo_2_mile constant number := 0.6214; c_yard_2_meter constant number := 0.9144; c_metter_2_yard constant number := 1.0936;END;/exec dbms_output.put_line('20 mile = ' || 20 * global_consts.c_mile_2_kilo || 'km')exec dbms_output.put_line('20 kilo = ' || 20 * global_consts.c_kilo_2_..
2025.11.14 -
251113 TIL
문제-- [문제17] get_annual_sal 함수를 생성해주세요.SELECT employee_id, salary, commission_pct, salary * 12 + salary * 12 * commission_pct annual_salary_1, salary * 12 + salary * 12 * nvl(commission_pct, 0)commission_pct_annual_salary_2, get_annual_sal(salary, commission_pct) annual_salary_3, get_annual_sal(sal=>salary, comm=>commission_pct) annual_salary_4, get_annual_sal(sal=>salary)..
2025.11.13