List the step performed and include screen shot of execution

Assignment Help Database Management System
Reference no: EM131317682

Lab Manual

In this lab you will learn how to use DDL and Oracle Enterprise server to create user accounts, modify, monitor and delete them. You will take the first look at object permissions in Oracle. The last assignment is an example of query DBAs use to report quota usage..

The requirement of the lab is listed as deliverables. The deliverable is abbreviated as "D" in this manual.

Oracle User Admin Tutorial

Example : CREATE USER steve
IDENTIFIED BY abc123
DEFAULT TABLESPACE users
TEMPORARY TABLESPACE temp
QUOTA 15M ON users
PROFILE default;

Additionally, you have GRANT a user permission to connect to the database. A newly created user cannot connect to the database until granted the CREATE SESSION system privilege.

GRANT CREATE SESSION TO steve;

GRANT CONNECT TO steve; --granting role that has the only CREATE SESSION permissions. See select * from dba_sys_privs where grantee='CONNECT';

To Remove User

Use the DROP USER statement to remove a database user and optionally remove the user's objects. Oracle Database does not drop users whose schemas contain objects unless you specify CASCADE or unless you first explicitly drop the user's objects.

If the user's schema contains tables, then Oracle Database drops the tables and automatically drops any referential integrity constraints on tables in other schemas that refer to primary and unique keys on these tables.

DROP USER steve; drops user whose schema does not contain objects

DROP USER steve CASCADE; drops user and all schema objects

When you want to prevent a user from accessing a database, but still want to retain the database objects owned by the user, then instead of dropping the user lock his account, or revoke CREATE SESSION privilege from the user.

alter user steve account lock;

REVOKE CONNECT, CREATE SESSION from steve;

To Create, Remove and Manage users from Enterprise Manager

If Oracle Enterprise Manager Service OracleDBConsoleorcl service is not started, you have to start it

using GUI: My Computer - Manage - Services - Enterprise Manager Service OracleDBConsoleorcl service - Start

using command line: net start OracleDBConsoleorcl

In browser enter https://localhost:1158/em, and logon as ‘system'

In the home page, select ‘Server' tab

In the ‘Server' tab, select user

In the User page click Create

Now you can set all values for you new user as you want.

You can also delete user from Enterprise Manager

Once you are finished working with Enterprise Manager remember to stop the OracleDBConsoleorcl service.

Deliverables

D1. Create user 1 -include SQL code and screen shot of successful query execution.

Logon as system/oracle using SQL Developer and create user user1

The default tablespace is USERS.

The temporary tablespace is TEMP.

The account is initially locked.

The user account will be assigned to DEFAULT profile.

The USERS tablespace has a 10 MB quota.

D2. Create user user2 - list the steps performed and include screen shot of successful execution.

Start Oracle Enterprise Manager Service OracleDBConsoleorcl service and openg Oracle Enterprise manager.

The default tablespace is USERS.
The temporary tablespace is TEMP.
The account is initially locked.
The user account will be assigned to DEFAULT profile.

D3a. Unlock user2 account using Oracle Enterprise manager - list the steps performed

D3b. Delete user2 Close Oracle Enterprise manager first then and stop OracleDBConsoleorcl service - list the steps performed

D4. Close SQL Developer, then Open SQL Developer and Connect as user1. In the deliverable, explain what happened and how it should be corrected.-

D5. When you connected as user1 find all objects which names starts with DBA_. Connect as system find all objects which names starts with DBA_. In the deliverable, include the SQL query and explain the difference in query result.

Hint: Use data dictionary view all_objects.

D6. When you logged on as system make user1 account password expire. -include SQL query.

D7. Login as user1, and describe how you will change password.

Hint: If you have problems changing the password through SQL Developer, use SQL+Plus

D8. Login as user1 and create a new table, Test. Do you experience problem? - include the SQL creating the table and the SQL query fix the problem. Hint: use COMMIT to save the changes.

testID
1234

D9. Login as system and select all entries from user1's table Test. - include the SQL query and screenshot.

D10. Login as system and create a query that lists all users who can login.- include the query. Hint: You will need to use a select statement and a data dictionary view DBA_USERS to generate report. Run select * from DBA_USERS; and look at data, then modify the query.

D11. Delete user1. - include the query.

Reference no: EM131317682

Questions Cloud

External borrowing opportunities : Company X wants to borrow $10,000,000 floating for 5 years; company Y wants to borrow $10,000,000 fixed for 5 years. Their external borrowing opportunities are as follows.
Write a program that allows the user to enter two integers : Write a program that allows the user to enter two integers and a character. If the character is A, add the two integers. If it is S, subtract the second integer from the first. If it is M, multiply the integers.
Should college and university recognize depreciation expense : In your opinion, should colleges and universities recognize depreciation expense? Comment.- Is recognizing depreciation expense in a note equivalent to recognizing depreciation expense in the statements? Comment.
Find the value of q for which the angle made by the strings : Two point charges each of mass m and charge q are suspended by strings of length l from a common point. Find the value of q for which the angle made by the strings at the common point is 90°.
List the step performed and include screen shot of execution : Create user user2 - list the steps performed and include screen shot of successful execution. When you logged on as system make user1 account password expire. -include SQL query.
What is the tax on a 100,000 home : If property tax on a $200,000 home is 3,090. What is the tax on a 100,000 home?
How would the county account for given million expenditure : DaimlerChrysler completed its first year of production of the Jeep Liberty in 2001.- How would the county account for its $2 million expenditure?
Dividing the path into ten equal segments : For the force field F = x2ay, obtain a series expression for the line integral of F from the origin to the point (1, 3, 0) along a straight line path by dividing the path into equal segments. Express the sum of the series in closed form and comput..
Loan them the full amount they need : Imagine you are a bank and ABC is asking you to for a loan to purchase the inventory they ned for their expected sales Christmas Sales. What financial ratios (give at least two) would you use to make your decision? Explain why you chose each rat..

Reviews

Write a Review

Database Management System Questions & Answers

  What actions the dlbc should address avoiding or mitigating

what actions the DLBC should address avoiding or mitigating

  Create a query using list of values match

Create a list the holds the student grade (A, A-, B+,..), modify the appropriate table to accept only the grades in the list(you need to explain why you selected the above table to record the student grade).

  Discuss business assumptions which affect data modelling

Perform conceptual modelling using Entity-Relationship Diagrams (ERDs). Discuss business assumptions which affect data modelling. Model a database using the entity-relationship (ER) model and understand the database development process

  Assignment on database and data warehousing design

a design document and a revised project plan. You must submit both sections as separate files for the completion of this assignment. Label each file name according to the section of the assignment it is written for.

  How much overhead cost would be assigned to product

How much overhead cost would be assigned to Product S96U using the company's activity-based costing system?

  How many of the artist works have been sold

List the names of the deceased artists and the number of years of age they were when they died (for example, an artist born in 1950 and deceased in 2001 has an age of 51).

  Describe the various integrative functions and processes

Describe the various integrative functions and processes

  Use an er diagram to represent the data modeling.

Sketch a course information table using the following table as an example. Feel free to add or remove attributes based on your analysis

  Characteristic of a database that has data redundancy

Explain one characteristic of a database that has data redundancy. Note: Redundancy in our context is not a good thing

  Database system development the database application

database system development the database application project dap for this course consists of the creation of a fully

  Develop preliminary database tables for huffman trucking log

Use Microsoft Access to develop preliminary (no keys and no relationships) database tables for Huffman Trucking Driver Log.

  Would cloud computing be useful to your school

What was innovative about the manner in which the Deutsche Bank manages identities? - What other types of companies could use this innovation to cut IT costs?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd