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.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started