0% found this document useful (0 votes)
23 views9 pages

Lab 6 Oracle Database Administration

The document provides a comprehensive guide on managing Oracle databases, specifically versions 19c and 21c. It covers essential tasks for database administrators, including setting up databases, creating and deleting tables and users, managing user roles, and performing backups and recovery. Additionally, it highlights the importance of following Oracle Support guidelines when modifying undocumented parameters.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views9 pages

Lab 6 Oracle Database Administration

The document provides a comprehensive guide on managing Oracle databases, specifically versions 19c and 21c. It covers essential tasks for database administrators, including setting up databases, creating and deleting tables and users, managing user roles, and performing backups and recovery. Additionally, it highlights the importance of following Oracle Support guidelines when modifying undocumented parameters.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Quản trị cơ sở dữ liệu Oracle database

Mục lục
I. Prepare:......................................................................................................................................2
1. Oracle database 19c/21c:.........................................................Error! Bookmark not defined.
2. Oracle SQL developer..............................................................Error! Bookmark not defined.
II. Oracle database administrator................................................................................................2
1. Set up database:...................................................................................................................2
2. Create and delete table.........................................................................................................2
3. Create and delete user.........................................................................................................3
4. User Role...............................................................................................................................6

5. Custom roles ................................................................................................................ 13


6. Backups and recovery ................................................................................................. 15
I. Prepare:
II. Oracle database administrator:
1. Set up database:

2. Create and delete table


Create table ABC

Click on table ABC to check


Drop table

3. Create and delete user


You cannot create users or roles without “C##” before the user

Because when opening, oracle will default its container to root, to create it directly must
add c##, notation for normal users
You can use this code to bypass it

*Warning: Setting undocumented parameters like this (as indicated by the leading
underscore) should only be done under the direction of Oracle Support. Changing such
parameters without such guidance may invalidate your support contract. So do this at
your own risk.
Now you can create user without “C##”

Drop user
4. User Role
Grant <role> to <user>

CONNECT: The CONNECT role provides basic privileges necessary for a user to connect to the
database.

RESOURCE: The RESOURCE role is typically used for regular users who need to create and
manage database objects such as tables, views, procedures and trigger.

DBA: The DBA (Database Administrator) role is a powerful role that has extensive privileges for
managing the entire database.
5. Custom roles
6. Backups and recovery
Open cmd

Connect to an Oracle database with “connect target” command.

You might also like