본문 바로가기 메뉴 바로가기

DB스토리

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

DB스토리

검색하기 폼
  • 분류 전체보기 (121)
    • DataBase (101)
      • Oracle (82)
      • Postgresql (10)
      • MS_SQL (6)
      • MY_SQL (4)
      • SQL (3)
    • Google Analytics (0)
    • VB.NET (2)
    • LInux (1)
    • 잡다정보 (18)
  • 방명록

DataBase/Oracle (81)
PL/SQL 예제 리스트

분류구문설명본문출력 출력문 켜기 set serveroutput on 프로시져 procedure procedure 만들기 create or replace procedure 반복 for loop 구구단 출력(값 하나 입력 받아서 출력하는 구문)sav gugu2create or replace procedure gugu2(su number) as begin for i in 1..9 loop dbms_output.put_line(su || 'X' || i || '=' || su*i); end loop; end; / 출력 dbms_output.put_line exec dbms_output.put_line('test'); 선언declarebeginend;asbeginend; 변수 선언anonymous 블럭에서는dec..

DataBase/Oracle 2012. 10. 17. 11:48
스크립트파일

범주 설명 파일명 스크립트 본문 find view fv select view_name from dba_views where view_name like upper('%&KEY%') find constraint columns cons_col select CONSTRAINT_NAME,TABLE_NAME,COLUMN_NAME from DBA_CONS_COLUMNS where owner='&OWNER' find constraint cons select CONSTRAINT_NAME,CONSTRAINT_TYPE,TABLE_NAME,R_CONSTRAINT_NAME from dba_constraints where owner='&OWNER' 권한 보기 sPriv select * from session_privs 권한 찾기..

DataBase/Oracle 2012. 10. 17. 11:47
oracle user 생성

1. user 생성a. 일반 접속만 되는 user conn / as sysdba;undefine UserName;create user &&UserName identified by "&Password" /select username from dba_users where username=upper('&UserName') /prompt Show Grant!!!! select grantee, privilege from dba_sys_privs where grantee=upper('&UserName') /undefine UserName; b. schema 유저(객체를 소유한 유저)- quota,create table,create index, create procedure,create view, etc conn /..

DataBase/Oracle 2012. 10. 17. 11:43
oracle service 등록

root에서 아래 부분 복사해서 붙이면 됨 rm -f /etc/init.d/oracle cat >> /etc/init.d/oracle/u01/app/oracle/product/10.2.0/db_1/log/Log.oracleStartAll.log su - oracle -c "/u01/app/oracle/product/10.2.0/db_1/bin/sqlplus / as sysdba

DataBase/Oracle 2012. 10. 17. 11:41
이전 1 ··· 7 8 9 10 11 12 13 ··· 21 다음
이전 다음
반응형
최근에 올라온 글
Total
Today
Yesterday
TAG
  • postgresql jsonb
  • 오라클
  • 독도
  • PL/SQL
  • 아이폰4
  • iPhone
  • Flashback
  • Managing Schema Objects
  • recovery
  • linux
  • 투싼
  • 윈도우
  • oracle
  • 출시일
  • tablespace
  • SQLPlus
  • parameter
  • 한글
  • iOS5
  • 갤럭시S
  • query 잘림
  • 인덱스
  • PostgreSQL
  • 리눅스
  • MS-SQL
  • postgresql pg_stat_activity
  • postgresql jsonb index
  • Backup
  • index
  • 아이폰
more
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바