database.sarang.net
UserID
Passwd
Database
DBMS
MySQL
PostgreSQL
Firebird
ㆍOracle
Informix
Sybase
MS-SQL
DB2
Cache
CUBRID
LDAP
ALTIBASE
Tibero
DB 문서들
스터디
Community
공지사항
자유게시판
구인|구직
DSN 갤러리
도움주신분들
Admin
운영게시판
최근게시물
Oracle Q&A 5662 게시물 읽기
No. 5662
Re: Re: Re: Re: Re: 다시 질문을...
작성자
laalaal
작성일
2001-07-04 11:49
조회수
1,184

1번에 대한 답변:::::

SELECT name, phyrds, phywrts

FROM v$datafile df , v$filestat fs

WHERE df.file# = fs.file#

 

2번에 대한 답변:::::

연속된 공간으로 사용됩니다. 하지만 테이블이 하나가 아니고 보통 많이

생성 되어지므로 balancing이 안맞을 수가 있습니다.그 때 큰 테이블의

extent를 다른 곳으로 수동으로 stripe시켜 줄수가 있습니다.

alter table TEST allocate extent

( datafile '/d02/oracle/DEV/data_1b.dbf');

 

3번에 대한 답변:::::

수동으로 하는 방법은

ALTER TABLESPACE <tablespace name> COALESCE;

입니다.

보통 user별로 export받아서 import하는 방법을 많이 씁니다.

temp성의 table은 한번씩 truncate시켜 주시면 좋겠죠.

 

확장 방법과 체크 sql을 올려드리도록 하겠습니다.

 

ALTER TABLESPACE <tablespace name> ADD DATAFILE '<full path and file

name>' SIZE <integer> <k|m> ;

 

ALTER <segment_type> <segment_name> STORAGE ( next <integer> <k|m>

pctincrease <integer>);

ALTER DATABASE DATAFILE '<full path and file name>' RESIZE <integer>

<k|m>

 

select tablespace_name, sum(bytes) sum, max(bytes) max, count(*) count

FROM dba_free_space

WHERE tablespace_name = '<tablespace name>';

 

 

select tablespace_name, owner, segment_name, segment_type, next_extent

from dba_segments

where tablespace_name in ('<tablespace_name','...')

and next_extent = <no_of_bytes>;

 

 

select seg.tablespace_name

,seg.owner

,seg.segment_name

,seg.segment_type

,seg.next_extent

from dba_segments seg

,(select tablespace_name, max(bytes) max

from dba_free_space

group by tablespace_name) free

where seg.tablespace_name = free.tablespace_name

and seg.next_extent > free.max

order by tablespace_name,owner,segment_type,segment_name;

 

 

SELECT next_extent, pct_increase

FROM dba_tables

WHERE table_name = '<table name>' AND owner = '<owner>';

 

도움이 된지 모르겠습니다.

 

laalaal~

[Top]
No.
제목
작성자
작성일
조회
5653Number에 대해서..
고채현
2001-07-03
1082
5665┕>Re: Number에 대해서..
최성준
2001-07-04 14:38:34
1745
5691 ┕>Re: Re: Number에 대해서..
herrchen
2001-07-05 17:01:40
2613
5648문제점 .....
도대
2001-07-03
671
5651┕>Re: 문제점 .....
sllim
2001-07-03 19:41:21
826
5646실행방법을 좀 갈쳐주시면...(진행과정의 명령어들!!)
나그네
2001-07-03
743
5650┕>Re: 실행방법을 좀 갈쳐주시면...(진행과정의 명령어들!!)
laalaal
2001-07-03 18:53:35
898
5643다시 질문을...
wings
2001-07-03
912
5645┕>Re: 다시 질문을...
최성준
2001-07-03 16:59:45
971
5647 ┕>Re: Re: 다시 질문을...
wings
2001-07-03 18:17:01
1030
5649  ┕>Re: Re: Re: 다시 질문을...
laalaal
2001-07-03 19:01:02
1021
5659   ┕>Re: Re: Re: Re: 다시 질문을...
wings
2001-07-04 10:59:47
1180
5662    ┕>Re: Re: Re: Re: Re: 다시 질문을...
laalaal
2001-07-04 11:49:19
1184
5670     ┕>Re: Re: Re: Re: Re: Re: 다시 질문을...
wings
2001-07-04 17:04:23
959
5642[보안권고문] Oracle 8i TNS Listener Buffer Overflow Vulnerability
문태준
2001-07-03
1524
5639Sequence
waillo
2001-07-03
826
5641┕>Re: Sequence
최성준
2001-07-03 14:52:46
1321
5638oracle backup 시 error code 발생...
김배갑
2001-07-03
963
Valid XHTML 1.0!
All about the DATABASE... Copyleft 1999-2024 DSN, All rights reserved.
작업시간: 0.020초, 이곳 서비스는
	PostgreSQL v16.2로 자료를 관리합니다