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

  Design a nested menus interface for a check-in

Design a nested menus interface for a check-in and check-out hotel reservation system that can be used internationally.

  Data mining using unsupervised and supervised learning

Data Mining using Unsupervised and Supervised Learning Approaches, Use K-means algorithm (unsupervised learning) to cluster the data set and to verify the class field(s).

  Write an sql script

FOR QUESTIONS 1-10: Given the following table named DEPT, Write an SQL script for the following returned data

  Determine cost of least expensive part in part table

Write a query to determine the cost of the least expensive part in the part table? Format the returned price in dollars and cents using the correct function.

  Create a request for proposal

Investigate learning management software packages that are available through application service providers. Using the World Wide Web, identify at least two potential sources of such software.

  Describe sql superkeys

Discussion of database with the goal of creating Web database applications. There is something of a disconnect between modeling data in an object-oriented language, such as Java, and a traditional database

  Find out the benefits of data mining to the businesses when

the development of complex algorithms that can mine mounds of data that have been collected from people and digital

  Design a high-level conceptual view of a data warehouse by

an organization has several operational systems customer relationship management crm for marketing and sales enterprise

  Create a website on your machine

Demonstrate a vulnerable page by not using parameterized queries (also known as prepared statements) and build a second page that does not use parameterized queries.

  1 give syntax example for each of the following group

1. give syntax example for each of the following group functionsavgsumminmaxcountdistinctstddevvariance2. provide 2

  List the employees making more than a certain hourly rate

List/display of all employees making more than a certain hourly rate, say $20 per hour. List/display of all employees hired within a time period, say last year.

  Write the application for university admissions office

Write the application for university admissions office. Prompt user for a student's High School Grade Point and an admission test score.

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