Tasks:
|
You will create a SQL script
to create a tablespace and a table with the following requirements:
- You are creating a permanent
tablespace. (10 points)
- The tablespace will be
named as "testdata." (10 points)
- Use a datafile named "c:\temp\testdata.dbf"
for the above tablespace with the following parameters: initial file
size=124 K, maximum size=3 M. The file will be extended automatically
if it is full during transaction. The DBMS server will reuse the datafile
if it exists. (35 points) (Exact path and file name are required.
In other words, if you do not have C:\temp folder, you need to create
it before you work at this project.)
- Set default storage parameters
as follows: The server will allocate one initial extent (100 K) for
the data segment. When the initial extent is filled, the server will
allocate the next extent (100K). It will update the next extent size
to 100 K (i.e. with PCTINCREASE=0). Minimum extent will be 3 whereas
maximum extent will be 100 for the tablespace. (20 points)
- Set the tablespace online.
(10 points)
- Create a table named "tec5323student"
with the following columns: id, first_name, last_name, date_enrolled,
grade. The table will be stored in the tablespace created as above.(15
points)
- Please make sure that the exact spelling (as specified) is required on everything we do or create.
Please note that you will
need to create a SQL script so that all the tasks can be executed at
one time, which can be consistently documented and repeated during project
testing and deployment.
Reference
from Danny Harvey (Spring 2007)
|
|