2018/08 34

오라클 View, 단순뷰, 복합뷰, inline view, view 조회 및 삭제, Materialized View(MVIEW)

-- 1. 단순뷰 -- View를 생성하기 위해서는 create view 권한이 필요-- sysdba로 접속해서-- grant create view to scott; 를 해줘야한다. -- view 생성create or replace view v_emp1asselect empno, ename, hiredatefrom emp; -- view에 index 생성 불가create index idx_v_emp_enameon v_emp1(ename); -- 테이블 생성create table o_table (a number, b number); -- view view1 생성create view view1asselect a, bfrom o_table; -- insertinsert into view1 values (1, ..

IT/Oracle 2018.08.09

오라클 profile 생성, 확인, 적용, 삭제, grant, revoke, role

-- resource_limit = truealter system set resource_limit = true; -- password profile 생성create profile prof_passwd limitfailed_login_attempts 5password_lock_time 30password_life_time 30password_reuse_time 30; -- resource profile 생성create profile prof_resource limitcpu_per_session 1500connect_time 480idle_time 15; --------------------- -- scott가 적용 받고 있는 Profile 확인select username, profilefrom dba_u..

IT/Oracle 2018.08.09

오라클 인덱스 조회, 모니터링, rebuild, invisible,

-- 인덱스 조회set line 200;col table_name for a10;col column_name for a10;col index_name for a20;select table_name, column_name, index_namefrom user_ind_columnswhere table_name = 'INX_TEST'; select table_name, index_namefrom user_indexeswhere table_name = 'INX_TEST'; ----------- 모니터링 시작alter index IDX_INXTEST_NO monitoring usage; -- 모니터링 중단alter index IDX_INXTEST_NO nomonitoring usage; -- 인덱스 사용유무 확인..

IT/Oracle 2018.08.08

자바 이벤트 ActionListener, 독립클래스, 멤버내부클래스, 지역내부클래스, 익명클래스

package test; import java.awt.Container;import java.awt.FlowLayout;import java.awt.event.ActionEvent;import java.awt.event.ActionListener; import javax.swing.JButton;import javax.swing.JFrame;import javax.swing.JTextField; // 독립클래스class MyActionListener implements ActionListener {JTextField tf;JFrame frame;MyActionListener(JTextField tf) {this.tf = tf;}public void setFrame(JFrame frame) {this.fr..

IT/Java 2018.08.07

자바 GUI, JFrame, FlowLayout

package java0806; import java.awt.Color;import java.awt.Container;import java.awt.FlowLayout; import javax.swing.JButton;import javax.swing.JFrame; public class Test3 extends JFrame {// GUI 프로그램에서는 main()의 기능은 최소화하는 것이 좋다.// main()에는 스윙 응용프로그램이 실행되는 시작점 역할만 만들고, // 나머지 기능은 프레임 클래스에서 작성하는 것이 좋다public Test3() { // 기본생성자는 ctrl + space를 하면 자동완성 할 수 있다.super("300*300 스윙 프레임 만들기"); // 초기화시 타이틀//setTit..

IT/Java 2018.08.06