How do you add a data file to a tablespace?

Answer Posted / vinoth kumar

alter tablespace <tablespacename> add datafile 'u01
\oradata\db\test01.dbf' size 10m autoextend on next 5m
maxsize 50m

in prodution database autoextend off is to be avoid.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define the SGA and: How you would configure SGA for a mid-sized OLTP environment? What is involved in tuning the SGA?

3400


What are the different types of database compression introduced in sql server 2008? : sql server DBA

649


You create a private database link and upon connection, fails with: ORA-2085: connects to . What is the problem? How would you go about resolving this error?

1635


what do you understand by flashback feature of oracle?

646


who owns the operating system files created by the utl_file package?

678






What view(s) do you use to associate a user's SQLPLUS session with his o/s process?

2211


what is the last version,the release date of that version and fix pack of ibm db2 udb?

1599


how can you schedule a job in database?

676


what are the performance views in an oracle rac environment?

666


What are the differences in clustering in sql server 2005 and 2008 or 2008 r2? : sql server DBA

645


How can you tell how much space is left on a given file system and how much space each of the file system's subdirectories take-up?

2140


what is a user-defined lock?

664


Oracle client is not able to connect to Oracle server although tnsnames.ora file has valid enteries. Oracle error message is “ cannot resolve net service name”. Mention any three reasons.

2166


How do you trace the traffic hitting a sql server? : sql server DBA

939


A table is classified as a parent table and you want to drop and re-create it. How would you do this without affecting the children tables?

2096