Question: The DBA_USERS table contains information about all user accounts in the database. This information includes the default tablespace assigned to each user. Use the SYS

The "DBA_USERS" table contains information about all user accounts in the database. This information includes the default tablespace assigned to each user. Use the "SYS" user to determine the default tablespace assigned to user "Scott".

Create a script, Project 2.sql that performs the following.

Runs a query that will list the files that are part of the default table space

Runs a command that will increase the size of the table space by adding a 700 MB data file (extendable up to 5GB).

Repeat Step 1 (i.e., verifies that file was added to the tablespace)

Notes

The script may require command(s) to take the tablespace offline, add the datafile, and bring the tablespace back online (i.e., ALTER TABLESPACE command). Include a command to perform a simple query on one of the objects stored in the tablespace (i.e., provides verification that the tablespace is online). The DBA_DATA_FILES table contains information for all the data files in the database. The SQLPlus DESCRIBE command can be used to determine all the columns/fields associated with any table.

The default tablespace assigned to user "Scott" is the following.

USERNAME -------------------------------------------------------------------------------- DEFAULT_TABLESPACE ------------------------------ SCOTT USERS

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!