ORA-02197: file list already specified

How to create tablespace with multiple datafiles :

I tried to add like below but got the error

SQL> create tablespace T
  2  datafile ‘+DATA’ size 4m,
  3  datafile ‘+DATA’ size 4m;
datafile ‘+DATA’ size 4m
*
ERROR at line 3:
ORA-02197: file list already specified

SQL> create tablespace T datafile ‘+DATA’ size 4m autoextend off,’+DATA’ size 4m autoextend off;

Tablespace created.

How to add multiple datafiles to existing tablespace :-

SQL> alter tablespace T add datafile ‘+DATA’ size 4m autoextend off , ‘+DATA’ size 4m autoextend off;


Tablespace altered.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s