Avatar of Greens8301
Greens8301
 asked on

adding datafile to TEMP tablespace with tablespace group clause oracle 11g

This is the existing TEMP tablespace create statement

CREATE TEMPORARY TABLESPACE TEMP TEMPFILE
  'file1' SIZE 2040K AUTOEXTEND ON NEXT 512M MAXSIZE 20480M,
  'file2' SIZE 2040K AUTOEXTEND ON NEXT 512M MAXSIZE 20480M,
  'file3' SIZE 527352K AUTOEXTEND ON NEXT 512M MAXSIZE 20480M,
  'file4' SIZE 2040K AUTOEXTEND ON NEXT 512M MAXSIZE 20480M,
  'file5'. SIZE 2040K AUTOEXTEND ON NEXT 512M MAXSIZE 20480M
TABLESPACE GROUP ''
EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1M;

I want to add a file 'file6'
The database is 11g

I want a symtax for adding a new datafile 'file6'

Thanks very much


Oracle Database

Avatar of undefined
Last Comment
Greens8301

8/22/2022 - Mon
axi



alter tablespace temp add tempfile 'file5' SIZE 2040K AUTOEXTEND ON NEXT 512M MAXSIZE 20480M tablespace group '' EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1M;
axi


alter tablespace temp add tempfile 'file6' SIZE 2040K AUTOEXTEND ON NEXT 512M MAXSIZE 20480M tablespace group '' EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1M;
Greens8301

ASKER
I get the following error

sys>  alter tablespace temp add tempfile 'file6' ' SIZE 2040m
  2  AUTOEXTEND ON NEXT 512M MAXSIZE 20480M tablespace group '' EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1M;
AUTOEXTEND ON NEXT 512M MAXSIZE 20480M tablespace group '' EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1M
                                       *
ERROR at line 2:
ORA-00933: SQL command not properly ended
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
johnsone

Why do you need another file?  Assuming you maxed out the 5 that you already have, that is 100G of temp space.  What are you doing that needs to consume more that 120G of temp?
ASKER CERTIFIED SOLUTION
OP_Zaharin

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
axi

alter tablespace temp add tempfile 'file6' SIZE 2040K AUTOEXTEND ON NEXT 512M MAXSIZE 20480M tablespace group 'tablespace_group_name' EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1M;


put the tablespace group name inside single quote for  'tablespace_group_name'
Greens8301

ASKER
Excellent
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.