Skip to main content

Create tablespace in Oracle

To create a tablespace in Oracle, use below query.
create tablespace <tableSpaceName> datafile '<datafileLocation>' size 50m autoextend on;

Without autoextend on option, the data file is not growing when the table/db growing big.

Comments

Popular posts from this blog

Get all constraints in Oracle

 To get all the constraints created in Oracle database, use below query.              SELECT * FROM USER_CONSTRAINTS; If you want to get the constraints  created for a particular user then use below SQL query.              SELECT   *   FROM  USER_CONSTRAINTS where owner = 'userName';