SlideShare a Scribd company logo
OEM: Managing Users & Tables




                                by

                    Vazi Okhandiar, PMP, MSCS, MCT
                   NR Computer Learning Center
                  1835 W. Orangewood . Suite 200
                         Orange, CA 92868
                          www.nrclc.com




Vazi Okhandiar                                       Page 1
OEM: Managing Users & Tables
The article consists of using Oracle Enterprise Manager to perform following 5 tasks:
     Create an account for user john with password smith
     Create a table MyTable
     Login as user john to add and manage data in the database
     Remove table MyTable from the database
     Remove the user John from the database.




Vazi Okhandiar                                                                          Page 2
OEM: Managing Users & Tables

PART 1: Create A User Account

      Log into OEM as sysdba
      Open Firefox. Type in the following URL:
      https://127.0.0.1:1158/em




      Username: sys
      Password: manager
      Connect As: SYSDBA

      Click on the Server Tab to open the server page.




Vazi Okhandiar                                           Page 3
OEM: Managing Users & Tables
      Select User in the Security Section on the Server page. This will open up the user page.

      Click on Create button to create a user




      Enter the user name, password, Default table and temporary table.




                          

                          

                                                
                                                
                               

      In the user name field enter john and in the password field    enter smith.

Vazi Okhandiar                                                                                   Page 4
OEM: Managing Users & Tables

      To select a default tablespace
                                        for the user, click on the find icon    to view the list of
      available tablespaces.




              Select the USERS tablespace as the default tablespace and click on the Select button.

      Similarly to assign a temporary tablespace     for the user, click on the find icon     to view
      the list of available tablespaces.




              Select the TEMP tablespace as the temporary tablespace and click on the Select button.




Vazi Okhandiar                                                                                     Page 5
OEM: Managing Users & Tables


      The Create user screen should look similar to the one displayed below:




      Make sure the Status    is unlocked and click OK.
      Next we will assign the user permission so that the user can create a table, insert data into the
      table, select data from the table and drop the table. While you are in Create User Screen, click
      on the System Privileges tab.




Vazi Okhandiar                                                                                    Page 6
OEM: Managing Users & Tables
      In the Available System Privileges window, find “CREATE ANY TABLE” and click on Move button
      to add it to the Selected System Privileges. Similarly, add “DROP ANY TABLE”, “SELECT ANY
      TABLE” and “INSERT ANY TABLE” to the Selected System Privileges window.




      Click on Apply button to apply the changes.

      Next we will assign the unlimited quota for using the tablespace USERS to the user we creating,
      in this case it is the user john. While you are in Create User screen, click on the Quotas tab.




      Select Unlimited from the drop down for the quota and click OK.

      Click OK again to create the user.



Vazi Okhandiar                                                                                 Page 7
OEM: Managing Users & Tables

PART II: Create A Table

      To create a table, click on the Schema tab.




      Click on the Table link in the Database objects.




      Click on the Create button to open the window for creating a new table.


Vazi Okhandiar                                                                  Page 8
OEM: Managing Users & Tables




       Select Standard and click on Continue button




                                                                                       
                                   
                                   
                                   



                               



    In the name field, enter MYTABLE, to create a new table called MYTABLE.
    In the Schema table, enter JOHN, to create the table as part of his database schema
    In the Tablespace, enter USERS, to use the USERS tablespace to store MYTABLE and associated
     data.
    In the Columns field, enter ID as integer with upto 3 digits and Firstname and Lastname of type
     VARCHAR2 with maximum capacity of 15 character.
    Click OK when done.




Vazi Okhandiar                                                                                Page 9
OEM: Managing Users & Tables
      Verify that when you search for John’s schema, MYTABLE get listed as the result set.




Vazi Okhandiar                                                                               Page 10
OEM: Managing Users & Tables

PART III: Login as John and insert Data in MYTABLE

   1. Login as john

       >> sqlplus john/smith

   2. Insert following records into a table.

       SQL> INSERT INTO mytable (ID, FirstName, LastName)
              Values (1,‘John’, ‘Smith’);
       SQL> INSERT INTO mytable (ID, FirstName, LastName)
              Values (2,‘Jane’, ‘Doe’);
       SQL> INSERT INTO mytable (ID, FirstName, LastName)
              Values (3,‘Paul’, ‘Ryan’);

   3. Use SELECT command to verify the data in the table

       SQL> Select * from mytable;

       ID   FirstName      LastName
       1    John           Smith
       2    Jane           Doe
       3    Paul           Ryan


   4. Remove jane from the table

       SQL > DELETE FROM mytable WHERE id=2;

   5. Use SELECT command to verify the table is updated.

       SQL> Select * from mytable;

       ID   FirstName      LastName
       1    John           Smith
       3    Paul           Ryan




Vazi Okhandiar                                              Page 11
OEM: Managing Users & Tables

PART IV: Dropping A Table

To remove a table from the database, click on Schema tab and select Tables in the Database Objects
section.




       In the Schema field, enter John and click on Go button. This will list the object owned by John.
       Select the object owned by John and click on Delete with Options button.




Vazi Okhandiar                                                                                   Page 12
OEM: Managing Users & Tables

PART V: Dropping the User
To delete a user from the database, click on the server tab and then click on Users link under Security
section.




        In the Users window, select the user John, and click on Delete button.




Vazi Okhandiar                                                                                   Page 13
OEM: Managing Users & Tables
      Confirmation window will pop-up. Click on Yes button for confirm that you want to delete the
      user John.




      Once the User is deleted, the user will no longer have access to his/her account.




Vazi Okhandiar                                                                              Page 14

More Related Content

PDF
Software testing lab manual
PPT
PDF
2- THE CHANGING NATURE OF SOFTWARE.pdf
PPTX
MULTILEVEL QUEUE SCHEDULING
PPTX
Backtracking-N Queens Problem-Graph Coloring-Hamiltonian cycle
PPT
Data integrity
PPTX
Inter Process Communication
PPT
Chapter19
Software testing lab manual
2- THE CHANGING NATURE OF SOFTWARE.pdf
MULTILEVEL QUEUE SCHEDULING
Backtracking-N Queens Problem-Graph Coloring-Hamiltonian cycle
Data integrity
Inter Process Communication
Chapter19

What's hot (20)

PPTX
Software Project Management - Staffing
PDF
Run time storage
PPTX
Software Engineering- ERD DFD Decision Tree and Table
PPTX
Critical section problem in operating system.
DOCX
Fundamental classes in java
ODP
Unix Memory Management - Operating Systems
PPS
Architecture of-dbms-and-data-independence
PPTX
Software project estimation
PPTX
SQL, Embedded SQL, Dynamic SQL and SQLJ
PPT
Normalization of database tables
PPTX
Deadlock and Banking Algorithm
PDF
PDF
CS9222 ADVANCED OPERATING SYSTEMS
PPT
LR-Parsing.ppt
PPTX
Dynamic multi level indexing Using B-Trees And B+ Trees
PPTX
Operating Systems - File Management
PPTX
Class based modeling
PPTX
Code generation
PPTX
File Protection
Software Project Management - Staffing
Run time storage
Software Engineering- ERD DFD Decision Tree and Table
Critical section problem in operating system.
Fundamental classes in java
Unix Memory Management - Operating Systems
Architecture of-dbms-and-data-independence
Software project estimation
SQL, Embedded SQL, Dynamic SQL and SQLJ
Normalization of database tables
Deadlock and Banking Algorithm
CS9222 ADVANCED OPERATING SYSTEMS
LR-Parsing.ppt
Dynamic multi level indexing Using B-Trees And B+ Trees
Operating Systems - File Management
Class based modeling
Code generation
File Protection
Ad

Viewers also liked (20)

PDF
Manage users & tables in Oracle Database
PPTX
Oracle Tablespace - Basic
PPT
Rules That Drive Usage
PDF
Using APEX to Create a Mobile User Interface for Enterprise Manager 12c
PPTX
Data flow in Extraction of ETL data warehousing
PPTX
Taming the ETL beast: How LinkedIn uses metadata to run complex ETL flows rel...
PPTX
ETL Validator: Flat File Validation
PPTX
Capacity Management of an ETL System
PPTX
ETL Validator: Creating Data Model
PPT
Lecture2 oracle ppt
PPT
Free space managment46
PPT
FILE STRUCTURE IN DBMS
PDF
Crossref webinar - Maintaining your metadata - latest
PDF
Seven building blocks for MDM
PDF
Free space optics (FSO)
PPTX
Building the Data Lake with Azure Data Factory and Data Lake Analytics
PPTX
File management
PDF
How to identify the correct Master Data subject areas & tooling for your MDM...
PPS
Oracle Database Overview
PDF
State of Digital Transformation 2016. Altimeter Report
Manage users & tables in Oracle Database
Oracle Tablespace - Basic
Rules That Drive Usage
Using APEX to Create a Mobile User Interface for Enterprise Manager 12c
Data flow in Extraction of ETL data warehousing
Taming the ETL beast: How LinkedIn uses metadata to run complex ETL flows rel...
ETL Validator: Flat File Validation
Capacity Management of an ETL System
ETL Validator: Creating Data Model
Lecture2 oracle ppt
Free space managment46
FILE STRUCTURE IN DBMS
Crossref webinar - Maintaining your metadata - latest
Seven building blocks for MDM
Free space optics (FSO)
Building the Data Lake with Azure Data Factory and Data Lake Analytics
File management
How to identify the correct Master Data subject areas & tooling for your MDM...
Oracle Database Overview
State of Digital Transformation 2016. Altimeter Report
Ad

Similar to Managing users & tables using Oracle Enterprise Manage (20)

PPTX
Phpmyadmin administer mysql
PDF
Oracle 11g certified associate (oca)
PDF
My sql102
PPTX
MYSql manage db
PDF
Using mySQL in PHP
PPTX
User Information in Oracle introduction.pptx
PDF
Optimize sql server queries with these advanced tuning techniques tech repu
PPTX
Web Application Development using PHP Chapter 6
PDF
20 tips and tricks with the Autonomous Database
PPTX
Introduction to Oracle Database.pptx
PDF
Mysql
PPT
MySQL Presentation
PPTX
CVJ531: Intro to MySQL
PPTX
PPTX
SQL Training Centre in Ambala ! Batra Computer Centre
PPTX
Performance By Design
DOC
Oracle SQL AND PL/SQL
PPT
Les10[1]Creating and Managing Tables
PDF
Lession 6.introduction to records
PPT
ORACLE 9i
Phpmyadmin administer mysql
Oracle 11g certified associate (oca)
My sql102
MYSql manage db
Using mySQL in PHP
User Information in Oracle introduction.pptx
Optimize sql server queries with these advanced tuning techniques tech repu
Web Application Development using PHP Chapter 6
20 tips and tricks with the Autonomous Database
Introduction to Oracle Database.pptx
Mysql
MySQL Presentation
CVJ531: Intro to MySQL
SQL Training Centre in Ambala ! Batra Computer Centre
Performance By Design
Oracle SQL AND PL/SQL
Les10[1]Creating and Managing Tables
Lession 6.introduction to records
ORACLE 9i

More from NR Computer Learning Center (20)

PPTX
Power BI Desktop Overview
PPTX
Building Dashboard with Excel
PPTX
Introduction to Data Analytics
PPTX
Python - Data Structures
PPTX
Introduction to SQL
PDF
Office 2019 tips & tricks
PDF
App Development with Apple Swift Certification at Certiport Centers
PDF
Project management fundamentals
PDF
National College Testing Association (NCTA)
PDF
National College Testing Association (NCTA)
PDF
Building a Dashboard in an hour with Power Pivot and Power BI
PPTX
Introduction to the basic mathematical concept with Python Turtle.
PDF
Stem presentation - Pathways to Technology Oriented Careers
PDF
MTA 98 364 - database fundamentals
PDF
MTA 361 software development fundamentals
PDF
Introduction to java
PDF
Introduction to c++
PDF
Executive dashboard for small business
PDF
Building a Dashboard in an Hour using Microsoft PowerPivot & Power BI
PDF
Arduino for teens
Power BI Desktop Overview
Building Dashboard with Excel
Introduction to Data Analytics
Python - Data Structures
Introduction to SQL
Office 2019 tips & tricks
App Development with Apple Swift Certification at Certiport Centers
Project management fundamentals
National College Testing Association (NCTA)
National College Testing Association (NCTA)
Building a Dashboard in an hour with Power Pivot and Power BI
Introduction to the basic mathematical concept with Python Turtle.
Stem presentation - Pathways to Technology Oriented Careers
MTA 98 364 - database fundamentals
MTA 361 software development fundamentals
Introduction to java
Introduction to c++
Executive dashboard for small business
Building a Dashboard in an Hour using Microsoft PowerPivot & Power BI
Arduino for teens

Recently uploaded (20)

PPT
Teaching material agriculture food technology
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
cuic standard and advanced reporting.pdf
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Electronic commerce courselecture one. Pdf
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Empathic Computing: Creating Shared Understanding
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PPTX
Machine Learning_overview_presentation.pptx
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Machine learning based COVID-19 study performance prediction
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Teaching material agriculture food technology
Assigned Numbers - 2025 - Bluetooth® Document
Spectral efficient network and resource selection model in 5G networks
Chapter 3 Spatial Domain Image Processing.pdf
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
cuic standard and advanced reporting.pdf
Diabetes mellitus diagnosis method based random forest with bat algorithm
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Electronic commerce courselecture one. Pdf
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Empathic Computing: Creating Shared Understanding
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Machine Learning_overview_presentation.pptx
Advanced methodologies resolving dimensionality complications for autism neur...
Machine learning based COVID-19 study performance prediction
The AUB Centre for AI in Media Proposal.docx
Mobile App Security Testing_ A Comprehensive Guide.pdf
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows

Managing users & tables using Oracle Enterprise Manage

  • 1. OEM: Managing Users & Tables by Vazi Okhandiar, PMP, MSCS, MCT NR Computer Learning Center 1835 W. Orangewood . Suite 200 Orange, CA 92868 www.nrclc.com Vazi Okhandiar Page 1
  • 2. OEM: Managing Users & Tables The article consists of using Oracle Enterprise Manager to perform following 5 tasks:  Create an account for user john with password smith  Create a table MyTable  Login as user john to add and manage data in the database  Remove table MyTable from the database  Remove the user John from the database. Vazi Okhandiar Page 2
  • 3. OEM: Managing Users & Tables PART 1: Create A User Account Log into OEM as sysdba Open Firefox. Type in the following URL: https://127.0.0.1:1158/em Username: sys Password: manager Connect As: SYSDBA Click on the Server Tab to open the server page. Vazi Okhandiar Page 3
  • 4. OEM: Managing Users & Tables Select User in the Security Section on the Server page. This will open up the user page. Click on Create button to create a user Enter the user name, password, Default table and temporary table.      In the user name field enter john and in the password field  enter smith. Vazi Okhandiar Page 4
  • 5. OEM: Managing Users & Tables To select a default tablespace  for the user, click on the find icon to view the list of available tablespaces. Select the USERS tablespace as the default tablespace and click on the Select button. Similarly to assign a temporary tablespace  for the user, click on the find icon to view the list of available tablespaces. Select the TEMP tablespace as the temporary tablespace and click on the Select button. Vazi Okhandiar Page 5
  • 6. OEM: Managing Users & Tables The Create user screen should look similar to the one displayed below: Make sure the Status  is unlocked and click OK. Next we will assign the user permission so that the user can create a table, insert data into the table, select data from the table and drop the table. While you are in Create User Screen, click on the System Privileges tab. Vazi Okhandiar Page 6
  • 7. OEM: Managing Users & Tables In the Available System Privileges window, find “CREATE ANY TABLE” and click on Move button to add it to the Selected System Privileges. Similarly, add “DROP ANY TABLE”, “SELECT ANY TABLE” and “INSERT ANY TABLE” to the Selected System Privileges window. Click on Apply button to apply the changes. Next we will assign the unlimited quota for using the tablespace USERS to the user we creating, in this case it is the user john. While you are in Create User screen, click on the Quotas tab. Select Unlimited from the drop down for the quota and click OK. Click OK again to create the user. Vazi Okhandiar Page 7
  • 8. OEM: Managing Users & Tables PART II: Create A Table To create a table, click on the Schema tab. Click on the Table link in the Database objects. Click on the Create button to open the window for creating a new table. Vazi Okhandiar Page 8
  • 9. OEM: Managing Users & Tables Select Standard and click on Continue button       In the name field, enter MYTABLE, to create a new table called MYTABLE.  In the Schema table, enter JOHN, to create the table as part of his database schema  In the Tablespace, enter USERS, to use the USERS tablespace to store MYTABLE and associated data.  In the Columns field, enter ID as integer with upto 3 digits and Firstname and Lastname of type VARCHAR2 with maximum capacity of 15 character.  Click OK when done. Vazi Okhandiar Page 9
  • 10. OEM: Managing Users & Tables Verify that when you search for John’s schema, MYTABLE get listed as the result set. Vazi Okhandiar Page 10
  • 11. OEM: Managing Users & Tables PART III: Login as John and insert Data in MYTABLE 1. Login as john >> sqlplus john/smith 2. Insert following records into a table. SQL> INSERT INTO mytable (ID, FirstName, LastName) Values (1,‘John’, ‘Smith’); SQL> INSERT INTO mytable (ID, FirstName, LastName) Values (2,‘Jane’, ‘Doe’); SQL> INSERT INTO mytable (ID, FirstName, LastName) Values (3,‘Paul’, ‘Ryan’); 3. Use SELECT command to verify the data in the table SQL> Select * from mytable; ID FirstName LastName 1 John Smith 2 Jane Doe 3 Paul Ryan 4. Remove jane from the table SQL > DELETE FROM mytable WHERE id=2; 5. Use SELECT command to verify the table is updated. SQL> Select * from mytable; ID FirstName LastName 1 John Smith 3 Paul Ryan Vazi Okhandiar Page 11
  • 12. OEM: Managing Users & Tables PART IV: Dropping A Table To remove a table from the database, click on Schema tab and select Tables in the Database Objects section. In the Schema field, enter John and click on Go button. This will list the object owned by John. Select the object owned by John and click on Delete with Options button. Vazi Okhandiar Page 12
  • 13. OEM: Managing Users & Tables PART V: Dropping the User To delete a user from the database, click on the server tab and then click on Users link under Security section. In the Users window, select the user John, and click on Delete button. Vazi Okhandiar Page 13
  • 14. OEM: Managing Users & Tables Confirmation window will pop-up. Click on Yes button for confirm that you want to delete the user John. Once the User is deleted, the user will no longer have access to his/her account. Vazi Okhandiar Page 14