Intro To Oracle :part 1 1.Save your Memory Usage & Performance. 2.Oracle Login ways. 3.Adding Database to DB Trees. 4.How to Create your own user(schema).

Slides:



Advertisements
Similar presentations
Password Management for Oracle8 Ari Kaplan Independent Consultant.
Advertisements

Security Pertemuan 7 Matakuliah: T0413 Tahun: 2009.
Oracle9i Database Administrator: Implementation and Administration 1 Chapter 12 System and Object Privileges.
Chapter 9 Auditing Database Activities
SQL components In Oracle. SQL in Oracle SQL is made up of 4 components: –DDL Data Definition Language CREATE, ALTER, DROP, TRUNCATE. Creates / Alters.
System Administration Accounts privileges, users and roles
Backup The flip side of recovery. Types of Failures Transaction failure –Transaction must be aborted System failure –Hardware or software problem resulting.
Database objects User schema DCL Oracle dictionary.
Administering User Security
Database Security Managing Users and Security Models.
Adapted from Afyouni, Database Security and Auditing DB Auditing Examples (Ch. 9) Dr. Mario Guimaraes.
Database Security and Auditing: Protecting Data Integrity and Accessibility Chapter 3 Administration of Users.
Oracle Database Administration
Session 5: Working with MySQL iNET Academy Open Source Web Development.
Database Security and Auditing: Protecting Data Integrity and Accessibility Chapter 3 Administration of Users.
By Lecturer / Aisha Dawood 1.  Administering Users  Create and manage database user accounts.  Create and manage roles.  Grant and revoke privileges.
Intro To Oracle :part 1 made by: Fahad Hussain 1.Save your Memory Usage & Performance. 2.Oracle Login ways. 3.Adding Database to DB Trees. 4.How to Create.
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.
Week 6 Lecture 2 System and Object Privileges. Learning Objectives  Identify and manage system and object privileges  Grant and revoke privileges to.
Data Definition Language Using sqldeveloper. To create connection Create new connection (any name) Username: sys Password: oracle11 Tick on Save password.
Chapter 7 Working with Databases and MySQL PHP Programming with MySQL 2 nd Edition.
Introduction to SEQUEL. What is SEQUEL? Acronym for Structural English Query Language Acronym for Structural English Query Language Standard language.
To Presentation on SECURITY By Office of the A.G. (A&E) Punjab, Chandigarh.
MICROSOFT SQL SERVER 2005 SECURITY  Special Purpose Logins and Users  SQL Server 2005 Authentication Modes  Permissions  Roles  Managing Server Logins.
IS 221: DATABASE ADMINISTRATION Lecture 6:Create Users & Manage Users. Information Systems Department 1.
MISSION CRITICAL COMPUTING Moving Data and Other Planning Considerations.
7 Copyright © 2004, Oracle. All rights reserved. Administering Users.
1 All Powder Board and Ski Oracle 9i Workbook Chapter 9: Database Administration Jerry Post Copyright © 2003.
1 Creating and Modifying Database Objects. 2 An Oracle database consists of multiple user accounts Each user account owns database objects Tables Views.
MySQL Database Connection
Oracle 11g DATABASE DEVELOPMENT LAB1. Introduction  Oracle 11g Database:-  Oracle 11g database is designed for some features, which helps to the organizations.
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.
Introduction to Oracle. Oracle History 1979 Oracle Release client/server relational database 1989 Oracle Oracle 8 (object relational) 1999.
Dale Roberts 1 Department of Computer and Information Science, School of Science, IUPUI Dale Roberts, Lecturer Computer Science, IUPUI
Database Security and Auditing: Protecting Data Integrity and Accessibility Chapter 9 Auditing Database Activities.
Oracle & SQL Introduction. Database Concepts Revision DB? DBMS? DB Application? Application Programs? DBS? Examples of DBS? Examples of DBMS? 2Oracle.
2. SQL Security Objectives –Learn SQL Server 2000 components Contents –Understanding the Authentication Process –Understanding the Authorization Process.
Permissions Lesson 13. Skills Matrix Security Modes Maintaining data integrity involves creating users, controlling their access and limiting their ability.
Database Security. Multi-user database systems like Oracle include security to control how the database is accessed and used for example security Mechanisms:
Module 6: Data Protection. Overview What does Data Protection include? Protecting data from unauthorized users and authorized users who are trying to.
1 Chapter 2: Creating and Modifying Database Objects.
IST 318 Database Administration Lecture 9 Database Security.
Chapter 13Introduction to Oracle9i: SQL1 Chapter 13 User Creation and Management.
SQL Server 2005 Implementation and Maintenance Chapter 6: Security and SQL Server 2005.
Oracle 11g: SQL Chapter 7 User Creation and Management.
Database Security. Multi-user database systems like Oracle include security to control how the database is accessed and used for example security Mechanisms:
Introduction to Teradata Client Tools. 2 Introduction to Teradata SQL  OBJECTIVES :  Teradata Product Components.  Accessing Teradata – Database /
7 Copyright © 2007, Oracle. All rights reserved. Administering User Security.
Starting with Oracle SQL Plus. Today in the lab… Connect to SQL Plus – your schema. Set up two tables. Find the tables in the catalog. Insert four rows.
19 Managing Privileges Objectives Identifying system and object privileges Granting and revoking privileges Controlling operating system or password.
Dr. Chen, Oracle Database System (Oracle) 1 Chapter 7 User Creation and Management Jason C. H. Chen, Ph.D. Professor of MIS School of Business Gonzaga.
Installation Oracle 11g Express 2 double click the "setup" button to install the Oracle.
Software-Projekt 2008 Seminarvortrag“Short tutorial of MySql“ Wei Chen Verena Honsel.
Database Systems Slide 1 Database Systems Lecture 4 Database Security - Concept Manual : Chapter 20 - Database Security Manual : Chapters 5,10 - SQL Reference.
1 Copyright © 2005, Oracle. All rights reserved. Oracle Database Administration: Overview.
15 Copyright © Oracle Corporation, All rights reserved. Managing Users.
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.
McGraw-Hill/Irwin Copyright © 2005 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 9: Database Administration All Powder Board and Ski.
Microsoft SQL Server 2014 for Oracle DBAs Module 8
Table spaces.
Managing Privileges.
Managing Privileges.
Database Security.
Introduction To Database Systems
Creating an Oracle Database
Database Security.
Database Security OER- Unit 1-Authentication
Managing Privileges.
Presentation transcript:

Intro To Oracle :part 1 1.Save your Memory Usage & Performance. 2.Oracle Login ways. 3.Adding Database to DB Trees. 4.How to Create your own user(schema). 5.Roles & Privileges of User. 6.Table Space for Specific user. 7.SQL Scripts ( Part 2 of Presentation)

Save your Memory Usage & Performance. 1.Once you guys have installed the oracle and created the database instance (SID). Go to your Enterprise Manager and click on your database and you will see following. 2.Following information give us, port number, host name where our database is resided, and by which service name it is running in our pc as well.

3. Now go to following location. Settings  Control Panel  Administrative tools. 4. Double click on “services”. we have to find our database service (SID). It will look like following

5. Probably your start type would be “Automatic”. ( It means it will start running when ever your pc turns on. 6. We have to change it to Manual. Reason is like some time if we don’t to use the oracle, it will eat our memory and slow down our cpu performance, therefore we will set the start –up type of our database(SID) services to “manual”. ** Every time you want to use your database, you have to go to your services and start it manually. 7. Right click on it and go to Properties. And set it to Automatic, click ok.

Oracle Login ways. 1.Login from Enterprise Manager.(user friendly IDE) 2.Login from SQL+. 3.Login into SQLPLUS from CMD mode. 4.I will only explain CMD mode. 5.Go to your cmd mode and type following “C:\>sqlplus “C:\>sqlplus 6. In above statement “system” is the ID, “fahad” is the password & “ORCL” is the name of your database (SID). ** Most of the time users on network, and if your database in which you want to login reside on other machine, you can provide the ip address of that machine to login. 7. You can only type “sqlplus” at your cmd mode, and it will prompt for user name and password, it will login into the database of your local machine at that moment. 8. Why I like this because, I can use DOSKEY. So don’t copy paste the previous stuff.

Adding Database to DB Trees. 1.If you are on network, and want to access the database which is not in your machine. 2.First you have to Open your Enterprise manager. 3.Add that database in your Enterprise manager, so that it will be available to you.

4. Now, following window will pop-up. 5. In order to access the database, we need that Machine ipaddress, port nos usually 1521, SID( database name ). 5. Click ok.( Once database is added, you can see in your list of database. 6. You also need( login id and password ) to access that DB.

1.SQL There are 2 kinds of SQL STATEMENTS. 1.DML.( Data Manipulation Language) select, insert, update, merge, delete, locking of table DDL( Data Definition Language) create, alter, drop, rename, truncate, grant, revoke, auditing as well 2.There are some others too, Transaction, Session and System Control. Accounts Authentication When a user connects to an Oracle database, he must be authenticated. Oracle can be configured for one of three types of authentication:  The default is database authentication. With database authentication, Oracle checks that the user is a legitimate user for that database and has supplied the correct password.  With external authentication, Oracle only checks that the user is a legitimate user for that database; the password is validated by the operating system or network. With global authentication, Oracle only checks that the user is a legitimate user for that database. The password is validated by the Oracle Security Service, a separately licensed and configured service.

We will create normal user which is just a normal database authenticated user.. First login as DBA, which is your “system” account SQL> conn as sysdba Enter user-name: system Enter password: Connected. SQL> Now, we are login as “system” user which is our DBA, and it has priv/role to create another user.( by default)

Creating user Now, we can create new user “FAHAD” by typing following CREATE USER FAHAD IDENTIFIED BY khan40; In above statement “khan40” is the password. Change Password. We, can also change the user Attributes, like change the password of user ALTER USER FAHAD IDENTIFIED BY sanjosestate; Setting Password Expiration ALTER USER FAHAD IDENTIFIED BY database; ALTER USER FAHAD PASSWORD EXPIRE;

Limiting the Number of User Accounts There is one parameter in Oracle, “ license_max_users “ We can set this to our own requirement.

Oracle has three types of privileges: Object privileges are permissions on schema objects, such as tables, views, programmer-defined functions, and libraries. System privileges give the grantee the ability to perform system-level activities, such as connecting to the database, altering the user session, creating tables, or creating users. Role privileges are those privileges that a user owns by way of a role.

1.How to Create your own (schema). So once you have created the user, and you login into oracle as that user.for e.g. Steps ( CMD MODE) //go to cmd, Connect as sysdba Create new user ( create user FAHAD identified by hussain) Conn fahad Hussain Create table mytable(name varchar(40), phnos varchar(50)) Tablespace system; Now if you type this query, select table_name form user_tables; You will only see “MYTABLE”, because you are login as “FAHAD” so you will see only FAHAD tables.

Create Schema and tables from Enterprise Manager. 1.Create user click on security, Right click on user

Now create table under that user Hit CTR+N on enterprise Manager You will see following, select table from this list, and hit CREATE

What schema is? Schema consist of tables, indexes, views, and others as you can see here, schema “fahad” has following object in it.

You will see following wizard, good part about oracle is that it will give you query as well even though you are using Wizard. Now you can see in the drop down, it will ask you that in which schema would you like to add this table, you can see I select mine, actually schema name most of the time is the user name.

Create table space from EP

If I have 2 nd presentation, I can tell more about how to write sql scripts.

Table Space for Specific user. Assigning a Default Table space The default table space is where the user's objects (tables, indexes, and clusters) will be placed if an explicit TABLESPACE clause is not included in that object's CREATE statement. The default is the SYSTEM table space, which is generally not a good place to put non-data dictionary objects. CREATE USER FAHAD IDENTIFIED BY hussain DEFAULT TABLESPACE user_data; CREATE USER AMIR IDENTIFIED EXTERNALLY; ALTER USER AMIR DEFAULT TABLESPACE devl_data;

Table space