Oracle Database

754 views

Published on

This is seminar report on Oracle.

Published in: Technology, Business
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
754
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
1
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Oracle Database

  1. 1. JAIPUR ENGINEERING COLLEGE, KUKAS, JAIPUR DEPARTMENT OF Computer Science SESSION 2011-2012 SEMINAR ON ORACLE PRESENTED TO : CS DEPARTMENT PRESENTED BY : Mayank Garg CS08057 B.TECH IV Year / VII Sem
  2. 2. ORACLE THE INFORMATION COMPANY
  3. 3. ORACLE : COMPANY PROFILE Oracle Corporation is the world's second largest independent software company.  Oracle is the first software company to develop and deploy 100 percent internet-enabled enterprise software.  Oracle's relational database was the world's first to support the Structured Query Language, now an industry standard.  Oracle spends nearly 13% of their revenues for research and development. 
  4. 4. CONTINUE… Today, the Oracle DBMS is supported on over 80 different operating environments, ranging from IBM mainframes and DEC VAX minicomputers, to UNIX-based minicomputers and Windows NT platforms.  All 10 of the world's largest Web sites- from Amazon.com to Yahoo! - use Oracle.  65% of the Fortune 100 use Oracle for ebusiness 
  5. 5. Controlling User Access Database administrator Username and password Privileges Users
  6. 6. Privileges • Database security: – System security – Data security • System privileges: Gaining access to the database • Object privileges: Manipulating the content of the database objects • Schemas: Collections of objects, such as tables, views, and sequences
  7. 7. System Privileges • More than 100 privileges are available. • The database administrator has highlevel system privileges for tasks such as: – Creating new users – Removing users – Removing tables – Backing up tables
  8. 8. Creating Users The DBA creates users by using the CREATE USER statement. CREATE USER user IDENTIFIED BY password; CREATE USER scott IDENTIFIED BY tiger; User created.
  9. 9. User System Privileges • Once a user is created, the DBA can grant specific system privileges to a GRANT privilege [, privilege...] user. TO user [, user| role, PUBLIC...]; • An application developer, for example, may have the following system privileges: – – – – – CREATE CREATE CREATE CREATE CREATE SESSION TABLE SEQUENCE VIEW PROCEDURE
  10. 10. Granting System Privileges The DBA can grant a user specific system privileges. GRANT create session, create table, create sequence, create view TO scott; Grant succeeded.
  11. 11. What is a Role? Users Manager Privileges Allocating privileges without a role Allocating privileges with a role
  12. 12. Creating and Granting Privileges to a Role • Create a role CREATE ROLE manager; Role created. • Grant privileges to a role GRANT create table, create view TO manager; Grant succeeded. • Grant a role to users GRANT manager TO TRILOK, VARIS, ROHIT ; Grant succeeded.
  13. 13. Changing Your Password • The DBA creates your user account and initializes your password. • You can change your password by using the ALTER USER statement. ALTER USER scott IDENTIFIED BY lion; User altered.
  14. 14. Object Privileges Object Privilege ALTER DELETE EXECUTE INDEX INSERT REFERENCES SELECT UPDATE Table View Sequence Procedure
  15. 15. Object Privileges • Object privileges vary from object to object. • An owner has all the privileges on the object. • An owner can give specific privileges on that owner’s object. GRANT ON TO [WITH GRANT object_priv [(columns)] object {user|role|PUBLIC} OPTION];
  16. 16. Granting Object Privileges • Grant query privileges on the EMPLOYEES table. GRANT select ON employees TO sue, rich; Grant succeeded. • Grant privileges to update specific columns to users and roles. GRANT update (department_name, location_id) ON departments TO scott, manager; Grant succeeded.
  17. 17. Using the WITH GRANT OPTION and PUBLIC Keywords • Give a user authority to pass along privileges. GRANT select, insert ON departments TO scott WITH GRANT OPTION; Grant succeeded. • Allow all users on the system to query data from Alice’s DEPARTMENTS GRANT select ON table. alice.departments TO PUBLIC; Grant succeeded.
  18. 18. How to Revoke Object Privileges • You use the REVOKE statement to revoke privileges granted to other users. • Privileges granted to others through the WITH GRANT OPTION clause are REVOKE {privilege [, privilege...]|ALL} also revoked. ON object FROM {user[, user...]|role|PUBLIC} [CASCADE CONSTRAINTS];
  19. 19. Revoking Object Privileges As user Alice, revoke the SELECT and INSERT privileges given to user Scott on the DEPARTMENTS table. REVOKE select, insert ON departments FROM scott; Revoke succeeded.
  20. 20. Database Links A database link connection allows local users to access data on a remote database. Local Remote EMP Table SELECT * FROM emp@HQ_ACME.COM; HQ_ACME.COM database
  21. 21. Database Links • Create the database link. CREATE PUBLIC DATABASE LINK hq.acme.com USING 'sales'; Database link created. • Write SQL statements that use the database link. SELECT * FROM emp@HQ.ACME.COM;
  22. 22. CREDITS • • • • Website : http://www.oracle.com http://www.wikepedia.com Oracle Documentation My own knowledge and experience using Oracle
  23. 23. QUESTIONS ANSWERS

×