INTRODUCTION TO ORACLE Lynnwood Brown System Managers LLC End User Management – Lecture 3 Copyright System Managers LLC 2007 all rights reserved.

Slides:



Advertisements
Similar presentations
9 Creating and Managing Tables. Objectives After completing this lesson, you should be able to do the following: Describe the main database objects Create.
Advertisements

Data Definition Language (DDL)
14-1 Copyright  Oracle Corporation, All rights reserved. Privileges Database security: – System security – Data security System privileges: Gain.
13 Copyright © Oracle Corporation, All rights reserved. Controlling User Access.
Oracle 10g Database Administrator: Implementation and Administration
Copyright  Oracle Corporation, All rights reserved. 10 Creating and Managing Tables.
Introduction To SQL Lynnwood Brown President System Managers LLC Copyright System Managers LLC 2003 all rights reserved.
INTRODUCTION TO ORACLE Lynnwood Brown System Managers LLC Installation – Lecture 2 Copyright System Managers LLC 2007 all rights reserved.
9 Copyright © Oracle Corporation, All rights reserved. Creating and Managing Tables.
System Administration Accounts privileges, users and roles
Oracle8 - The Complete Reference. Koch a& Loney1 By What Authority? Presented by Victor Matos.
Oracle Database Architecture An Oracle server: –Is a database management system that provides an open, comprehensive, integrated approach to information.
Copyright س Oracle Corporation, All rights reserved. 13 Other Database Objects.
Oracle Database Architecture An Oracle server: –Is a database management system that provides an open, comprehensive, integrated approach to information.
INTRODUCTION TO ORACLE
Getting Started with Oracle11g Abeer bin humaid. Create database user You should create at least one database user that you will use to create database.
CHAPTER 6 Users and Basic Security. Progression of Steps for Creating a Database Environment 1. Install Oracle database binaries (Chapter 1) 2. Create.
9 Copyright © 2005, Oracle. All rights reserved. Administering User Security.
Copyright س Oracle Corporation, All rights reserved. 14 Controlling User Access.
INTRODUCTION TO ORACLE Lynnwood Brown System Managers LLC Application Development For DBA’s Lecture 8 Copyright System Managers LLC 2007 all rights reserved.
To Presentation on SECURITY By Office of the A.G. (A&E) Punjab, Chandigarh.
Week 7 Lecture 1 Database Roles. Learning Objectives  Discover when and why to use roles  Learn how to create, modify, and remove roles  Learn how.
IS 221: DATABASE ADMINISTRATION Lecture 6:Create Users & Manage Users. Information Systems Department 1.
7 Copyright © 2004, Oracle. All rights reserved. Administering Users.
Controlling User Access. Objectives After completing this lesson, you should be able to do the following: Create users Create roles to ease setup and.
10 Creating and Managing Tables Objectives At the end of this lesson, you will be able to: Describe the main database objects Create tables Describe.
IST 318 Database Administration Lecture 10 Managing Roles.
17 Copyright © Oracle Corporation, All rights reserved. Managing Roles.
10-1 Copyright  Oracle Corporation, All rights reserved. Database Objects ObjectDescription TableBasic unit of storage; composed of rows and columns.
9 Copyright © Oracle Corporation, All rights reserved. Creating and Managing Tables.
Copyright  Oracle Corporation, All rights reserved. 10 Creating and Managing Tables.
Managing users and security Akhtar Ali. Aims Understand and manage profiles Understand and manage users Understand and manage privileges Understand and.
Roles & privileges privilege A user privilege is a right to execute a particular type of SQL statement, or a right to access another user's object. The.
Nitin Singh/AAO RTI ALLAHABAD1 DATABASE SECURITY DATABASE SECURITY.
Controlling User Access Fresher Learning Program January, 2012.
© 2009 Punjab University College of Information Technology (PUCIT) September 8, 2009 Slide 1 (SQL) Controlling User Access Asif Sohail University of the.
Database Security. Multi-user database systems like Oracle include security to control how the database is accessed and used for example security Mechanisms:
9 Copyright © Oracle Corporation, All rights reserved. Creating and Managing Tables.
Copyright © 2004, Oracle. All rights reserved. CONTROLLING USER ACCESS Oracle Lecture 8.
IST 318 Database Administration Lecture 9 Database Security.
Chapter 13Introduction to Oracle9i: SQL1 Chapter 13 User Creation and Management.
Oracle 11g: SQL Chapter 7 User Creation and Management.
13 Copyright © Oracle Corporation, All rights reserved. Controlling User Access.
Database Security. Multi-user database systems like Oracle include security to control how the database is accessed and used for example security Mechanisms:
18 Managing Profiles Objectives Creating and assigning profiles to users Controlling use of resources with profiles Altering and dropping profiles.
1 Copyright © 2006, Oracle. All rights reserved. Controlling User Access ( 사용자 접근 제어 )
7 Copyright © 2007, Oracle. All rights reserved. Administering User Security.
1 Copyright © 2009, Oracle. All rights reserved. Controlling User Access.
19 Managing Privileges Objectives Identifying system and object privileges Granting and revoking privileges Controlling operating system or password.
Database Systems Slide 1 Database Systems Lecture 4 Database Security - Concept Manual : Chapter 20 - Database Security Manual : Chapters 5,10 - SQL Reference.
15 Copyright © Oracle Corporation, All rights reserved. Managing Users.
Copyright  Oracle Corporation, All rights reserved. 14 Controlling User Access.
1 Chapters 19 and 20  Ch. 19: By What Authority? Users Roles Grant and revoke Synonyms  Ch. 20: Changing the Oracle Surroundings Indexes Clusters Sequences.
6 Copyright © 2005, Oracle. All rights reserved. Administering User Security.
Controlling User Access
Controlling User Access
Managing Privileges.
Controlling User Access
Objectives User access Create users Create roles
TABLES AND INDEXES Ashima Wadhwa.
Controlling User Access
Managing Privileges.
Database Security.
Database Security.
Oracle Database Architecture
OER- UNIT 3 Authorization
Oracle Database Architecture
Create New User in Database. First Connect the System.
Managing Privileges.
Oracle Database Architecture
Presentation transcript:

INTRODUCTION TO ORACLE Lynnwood Brown System Managers LLC End User Management – Lecture 3 Copyright System Managers LLC 2007 all rights reserved.

END USER MANAGEMENT Create database users by using the CREATE/ALTER USER commands. Create database objects (tables, views, synonyms and indexes). Control database access/security by granting access privileges: grant update on emp to scott; Grant database access so that users can/cannot pass the privilege on to other users: grant update on emp to scott with admin option; Copyright System Managers LLC 2007 all rights reserved.

END USER MANAGEMENT To create a user named SCOTT with password TIGER: SQL > Create user scott identified by tiger SQL > Default tablespace users SQL > Temporary tablespace temp SQL > Quota 15m on users; Give SCOTT the privilege to connect to the database and create objects. SQL > Grant connect, resource to scott; Copyright System Managers LLC 2007 all rights reserved.

END USER MANAGEMENT End User Profiles – Resource Control SQL > CREATE PROFILE new_user LIMIT sessions_per_user 10 connect_time 30 idle_time 10; Altering User Access To Resources SQL > ALTER USER IDENTIFIED BY profile new_user;

END USER MANAGEMENT Create roles to automate the security/access process: SQL > create role manager; SQL > grant update on emp to manager; SQL > grant manager to scott; Oracle has several pre-defined roles. One of the pre-defined roles is called DBA. Copyright System Managers LLC 2007 all rights reserved.

END USER MANAGEMENT How to determine the privileges a user or role has: SQL > select grantee, privilege from sys.dba_sys_privs; How to determine which users are in which roles: SQL > select grantee, granted_role from sys.dba_role_privs;

OBJECT CREATION Database objects include: Tables – Used to store records (rows of data) Views – Like a table but takes up no disk space. Is based on an underlying table. Indexes – Use to speed retrieval of data from a table. Synonyms – Used to reference objects owned by another user without having to reference the object owners name/schema. Sequence – Used to generate a unique number Database links – Used to access data in one database from another database. Copyright System Managers LLC 2007all rights reserved.

OBJECT CREATION Create Table: Create table dept (deptno number, Creation date, Dname varchar2(10) Dloc varchar2(20); Create View: Create view DVIEW as select deptno, dname, dloc from dept; Copyright System Managers LLC 2007 all rights reserved.

OBJECT CREATION Create Index: Create index i_dept on dept(deptno); Create Synonym: Create public synonym dept on dept; Create Sequence: Create sequence dept_num start with 1 increment by 1; Copyright System Managers LLC 2007 all rights reserved.

OBJECT MANAGEMENT System and Object Management ALTER TABLE EMP ADD (COLx NUMBER(7,2)…..); ALTER TABLE EMP MODIFY (COLx NUMBER(8,2)); ALTER SESSION IDENTIFIED BY ; ALTER SYSTEM SET LICENSE_MAX_SESSIONS/USERS LICENSE_SYSTEMS_WARNINGS; Copyright System Managers LLC 2007 all rights reserved.

THE DATA DICTIONARY SOME ORACLE DATA DICTIONARY TABLES/VIEWS FOR MANAGING END USERS: Table/View Name Description DBA_USERS Names of all users of the database DBA_TABLES Names of all tables in the database DBA_INDEXES Names of all indexes in the database DBA_SYNONYMS Names of all indexes in the synonyms DBA_SEQUENCES Names of all sequences in the database DBA_VIEWS Names of all views in the database There are many other tables/views in the Oracle data dictionary. Refer to the Oracle Administrators Guide for a complete list/description Copyright System Managers LLC 2007 all rights reserved.

THE DATA DICTIONARY DATA DICTIONARY VIEWS ACCESSIBLE TO END USERS: DBA_ - End users must be granted the privilege to access the DBA views ALL_ - Objects that the end user has access to but did not create USER_ - Objects created by the end user Copyright System Managers LLC 2007 all rights reserved.