Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Learn To Program Databases With Visual Basic 6

Authors: John Smiley

1st Edition

1902745035, 978-1902745039

More Books

Students also viewed these Databases questions