tempdb 데이터베이스 축소

tempdb 데이터베이스 축소

Amazon RDS DB 인스턴스에서 tempdb 데이터베이스를 축소하는 방법은 두 가지예요. rds_shrink_tempdbfile 프로시저를 사용하거나 SIZE 속성을 설정하면 됩니다.

출처: 문서

본문

rds_shrink_tempdbfile 프로시저 사용(Using the rds_shrink_tempdbfile procedure)

Amazon RDS 프로시저 msdb.dbo.rds_shrink_tempdbfile을 사용해 tempdb 데이터베이스를 축소할 수 있어요. rds_shrink_tempdbfile은 tempdb에 대한 CONTROL 액세스 권한이 있을 때만 호출할 수 있어요. rds_shrink_tempdbfile을 호출해도 DB 인스턴스는 중단되지 않아요.

rds_shrink_tempdbfile 프로시저에는 다음 매개 변수가 있습니다.

매개 변수 이름(Parameter name) 데이터 형식(Data type) 기본값(Default) 필수 여부(Required) 설명(Description)
@temp_filename SYSNAME — 필수(required) 축소할 파일의 논리적 이름(logical name)
@target_size int null 선택(optional) 파일의 새 크기(메가바이트 단위)

더 알아보기 (Learn more)