What is the syntax for increasing the size of a BLOB datatype in Oracle?

爱⌒轻易说出口 提交于 2019-12-25 05:12:52

问题


Docs say :

ALTER TABLE <table name>

ADD (<lobcol> <LOBTYPE> <LOB_clause_same_as_for_create>) |

MODIFY LOB (<lobcol>) (

            [PCTVERSION <version_number>]

            [ { CACHE | NO CACHE [{LOGGING | NOLOGGING}]

                      | CACHE READS [{LOGGING | NOLOGGING}]

              }

            ]

) |

MOVE [ONLINE] [<physical_attributes>] [TABLESPACE <tablespace_name>]

[LOGGING | NOLOGGING] [<LOB_clause_same_as_for_create>]

With an example of:

ALTER TABLE test_lob

MODIFY LOB (image) (

    STORAGE (NEXT 1M)

    CACHE

);

I tried this with my table and column names:

ALTER TABLE  <table name>

MODIFY LOB (<column name>) (

    STORAGE (NEXT 10M)

);

But I get an ORA-25150 ALTERING of extent parameters not permitted error.

What am I doing wrong?


回答1:


table name is missing from your code

ALTER TABLE

MODIFY LOB (<column name>) (
STORAGE (NEXT 10M)

);

should be

ALTER TABLE TABLE_NAME
MODIFY LOB (<column name>) (

STORAGE (NEXT 10M)

);


来源:https://stackoverflow.com/questions/10176754/what-is-the-syntax-for-increasing-the-size-of-a-blob-datatype-in-oracle

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!