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

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)
  • 방명록

tablespace (4)
Temp tablespace 사용법

using by user. --1. 만들기 S SYS> create temporary tablespace temp2; Tablespace created. --2. 적용. S SYS> alter user hr temporary tablespace temp2; User altered. --3. 적용 확인 S SYS> select username, temporary_tablespace from dba_users where username='HR'; USERNAME TEMPORARY_TABLESPACE ------------------------------ ------------------------------ HR TEMP2 --4. 사용중인 모든 temp t/s 목록 S SYS> select distinct..

DataBase/Oracle 2010. 5. 18. 18:44
Tablespace 사용량 체크

SELECT b.file_name "FILE_NAME", -- DataFile Name b.tablespace_name "TABLESPACE_NAME", -- TableSpace Name b.bytes / 1024 / 1024 "TOTAL SIZE(MB)", -- 총 Bytes ((b.bytes - sum(nvl(a.bytes,0)))) / 1024 / 1024 "USED(MB)", -- 사용한 용량 (sum(nvl(a.bytes,0))) / 1024 "FREE SIZE(KB)", -- 남은 용량 (sum(nvl(a.bytes,0)) / (b.bytes)) * 100 "FREE %" -- 남은 % FROM DBA_FREE_SPACE a, DBA_DATA_FILES b WHERE a.file_id(+) =..

DataBase/Oracle 2010. 5. 18. 18:43
Managing Undo Data

TABLESPACE 크기 수정 EM ALTER DATABASE DATAFILE '/u01/app/oracle/oradata/ORCL/datafile/o1_mf_undotbs1_50sxqr15_.dbf' AUTOEXTEND ON MAXSIZE 400M 스크립트 S SYS> select file#, name from v$datafile; FILE# ---------- NAME -------------------------------------------------------------------------------------------------------------- 1 /u01/app/oracle/oradata/ORCL/datafile/o1_mf_system_50sxqqv0_.dbf 2 /u01/app..

DataBase/Oracle 2010. 5. 18. 13:10
Tablespace

tablespace datafile ... ==> 물리적 segment ... extent ... block ... ==> 논리적 논리적 저장단위 이름이 있는 최소 단위 읽고 쓰는 최소 단위 -이름이 있는 -object tablespace 만들기 create tablespace ts1 datafile '/home/oracle/ts1.dbf' size 10M; 유저입장 ex)scott create table x(x varchar2(20)) tablespace ts1; desc user_tables; select TABLE_NAME, TABLESPACE_NAME from user_tables; S SYS> desc dba_tablespaces; S SYS> desc v$tablespace; S SYS> de..

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

Blog is powered by Tistory / Designed by Tistory

티스토리툴바