행위

"Oracle varchar2 최대길이 조정 , string max size 변경"의 두 판 사이의 차이

DB CAFE

(archar2 최대길이 조정 , string_max 사이즈 변경)
(archar2 최대길이 조정 , string_max 사이즈 변경)
 
(차이 없음)

2024년 7월 10일 (수) 11:03 기준 최신판

thumb_up 추천메뉴 바로가기


varchar2 최대길이 조정 , string_max 사이즈 변경[편집]

  • varchar2(4000 byte)를 32767 byte 까지 늘릴수 있음
  • varchar2,nvarchar2,raw데이타 유형만 해당
  • oracle 12c 이상.
  • 변경 절차
-- sysdba러 접속
sqlplus / as sysdba

-- 파라미터 확인 STANDARD : 4000 byte, EXTENDED :32767 byte
show parameter max_string_size 

-- 디비 종료
shutdown immediate

-- Upgrade 모드로 기동
startup upgrade

-- 파라미터 변경
alter system set max_string_size=extended;

-- 업그레이드 진행
@oracle/db/product/19.0.0/rdbms/admin/uti32k.sql

-- db 재시작 
shutdown immediate
startup

-- 파라미터 확인
show parameter max_string_size