728x90
λ°μν
[ORACLE]
SQL Developer
ORA-64308 :
hybrid columnar compressed table cannot have column with LONG data type
β μν©
→ν μ΄λΈμ μμ±νλ €κ³ νλλ°, ν μ΄λΈμ΄ μμ±λμ§ μλ μ€λ₯κ° λ°μ
β μ€λ₯ μ½λ
→ ORA-64308
β μ€λ₯μ€λͺ
→ hybrid columnar compressed table cannot have column with LONG data type
→ νμ΄λΈλ¦¬λ μ»¬λΌ νμ μμΆλ ν μ΄λΈμ LONG λ°μ΄ν° μ νμ μ΄μ κ°μ§ μ μμ΅λλ€.
β λ°μ μμΈ
→ ν μ΄λΈ μμ±ν λ 컬λΌμ λ°μ΄ν° νμ μ LONGνμ μ μ¬μ©ν 컬λΌμ΄ μλλ°,
νμ΄λΈλ¦¬λ μ»¬λΌ μμΆ ν μ΄λΈμμλ LONGνμ μ λ°μ΄ν° νμ μ μ¬μ©ν μ μλ€κ³ ν¨
β ν΄κ²°λ°©λ²
→ 컬λΌμ λ°μ΄ν° νμ μ λ³κ²½
→ LONG νμ μ λ°μ΄ν° νμ μ VARCHAR2λ‘ λ³κ²½ν΄μ ν μ΄λΈμ μμ±
π΄ μ€λ₯ λ°μ νλ©΄ : SQL Developer
π μ€λ₯κ° λ¬λ CREATE 쿼리문
→ λ°μ΄ν° νμ
: LONG
-- λ³κ²½ μ , μμ±μ΄ λμ§ μμλ 쿼리문
-- ν
μ΄λΈ μμ± : μμ½
CREATE TABLE reservation (
no NUMBER NOT NULL, /* μμ½λ²νΈ */
mateNo NUMBER, /* λ©μ΄νΈλ²νΈ */
userNo NUMBER, /* μ μ (μλ) */
driverNo NUMBER, /* λλΌμ΄λ² */
regDate DATE, /* λ μ§ */
point NUMBER, /* μ¬μ©ν¬μΈνΈ */
status VARCHAR2(100), /* μν(λκΈ°, μλ£, μ·¨μ) */
people NUMBER, /* μΈμ */
rideUser LONG /* νμΉμ */
);
-- μνμ€ μμ±
create sequence seq_reservation_no
increment by 1
start with 1
nocache;
π΅ μ€λ₯ ν΄κ²°
→ LONG νμ
μ λ°μ΄ν° νμ
μ VARCHAR2λ‘ λ³κ²½ν΄μ ν
μ΄λΈμ μμ±
-- λ³κ²½ ν, ν
μ΄λΈ μμ±
-- ν
μ΄λΈ μμ± : μμ½
CREATE TABLE reservation (
no NUMBER NOT NULL, /* μμ½λ²νΈ */
mateNo NUMBER, /* λ©μ΄νΈλ²νΈ */
userNo NUMBER, /* μ μ (μλ) */
driverNo NUMBER, /* λλΌμ΄λ² */
regDate DATE, /* λ μ§ */
point NUMBER, /* μ¬μ©ν¬μΈνΈ */
status VARCHAR2(100), /* μν(λκΈ°, μλ£, μ·¨μ) */
people NUMBER, /* μΈμ */
rideUser VARCHAR2(1000) /* νμΉμ */
);
-- μνμ€ μμ±
create sequence seq_reservation_no
increment by 1
start with 1
nocache;
728x90
λ°μν