Home » RDBMS Server » Server Administration » Allocating extent to a clob column of a table! (10.2.0.4 on Solaris 10)
Allocating extent to a clob column of a table! [message #487697] Thu, 30 December 2010 02:34 Go to next message
orausern
Messages: 826
Registered: December 2005
Senior Member
Hi experts

I have a table with two clob columns and need to manually allocate space to the table and to its lob segment. Is the following command correct?


--to allocate extent to the table
alter table emp allocate extent;
--the table has columns named col1 and col2 which are clob
--to allocate extents to the columns 
alter table emp modify lob (col1) (allocate extent (size 10m))
/ 
alter table emp modify lob (col2) (allocate extent (size 10m))
/ 



Thanks



Re: Allocating extent to a clob column of a table! [message #487699 is a reply to message #487697] Thu, 30 December 2010 02:45 Go to previous messageGo to next message
Michel Cadot
Messages: 68648
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
Why don't you try it?

SQL> alter table emp modify lob (col1) (allocate extent (size 10m))
  2  / 

Table altered.

SQL> alter table emp modify lob (col2) (allocate extent (size 10m))
  2  / 

Table altered.

SQL> 
SQL> alter table emp allocate extent;

Table altered.

Regards
Michel
Re: Allocating extent to a clob column of a table! [message #487736 is a reply to message #487699] Thu, 30 December 2010 10:06 Go to previous messageGo to next message
knight
Messages: 111
Registered: January 2009
Senior Member
just a query,,,,why do you want to allocate it manually?
Re: Allocating extent to a clob column of a table! [message #487742 is a reply to message #487736] Thu, 30 December 2010 11:08 Go to previous message
Michel Cadot
Messages: 68648
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
To preallocate space and prevent from error during a batch, for instance.

Regards
Michel
Previous Topic: Recyclebin
Next Topic: ORA-00600: LibraryCacheNotEmptyOnClose
Goto Forum:
  


Current Time: Wed May 08 17:38:11 CDT 2024