Professional Documents
Culture Documents
You will work with your cloud image and the Data Warehouse image for all steps in this lab.
You will produce a report of your findings. Use screen captures to capture the screens in vCloud and
compile these into a Word document. Document each step you go through, do not simply copy, and paste
screen captures with no supporting details. Label each screen so you know what it was.
Part A
1. Connect as the SYSTEM user in SQL Developer to accomplish this. Oracle, root passwords – oracle
2. Sys, system passwords – Oracle01
1
3. Create new user as ‘exercise2’ and Create a SQL Developer connection for our new user EXERCISE2.
Save this new connection.
Connection Established.
2
Part B
While we are connected to the SYSTEM user, we will require 4 storage locations for data for this exercise. We
need to create 4 tablespaces. A tablespace is a location in Oracle to store data. These will refer to a datafile in
the OS.
3
5. Give your new user EXERCISE2 the ability to store data in the new tablespace areas you created.
There would be statements for Q1, Q2, Q4 and Q3.
4
Part C
6. You will now connect as your new user EXERCISE2 to create a new table invoices with fields
invoice_no primary key,invoice_date not null and comments .
Invoices(invoice_no,invoice_date ,comments)
7. This table will contain partitions by range invoice_date. Check the table will be based on the year
2020. The partitions will divide the year into quarters, Q1, Q2, Q3 and Q4. The 4 tablespaces we
created were created to store rows of data, one for each quarter.
5
8. You will now insert some rows into your new table. You have to insert rows with different date
values to represent the 4 quarters in our table. Your Insert row must use the year 2021.
6
9. Display all the rows entered in the invoices table.
10. Display the contents of each partition that was created in your invoices table.
7
8
Check the Data has been organized into the partitions based on the invoice_date or not, write your conclusion.
- The data is not completely organised in the partitions. The Partition 3 and 4 has the data whereas 1 and 2
does not display any data because of the date.