Sie sind auf Seite 1von 11

DBA SURE SUCCESS

GUIDE
Srinimf.com

Education Series
Free to share your friends and who need help
A FREE EBOOK FROM SRINIMF.COM
1

1
2

Table of Contents
About this e-book.............................................................................................. 3
DBA real time job responsibilities ..................................................................... 4
Database adminstrator roles ......................................................................... 4
Orcle DBA responsibilities ................................................................................. 6
Oracle DBA roles ............................................................................................ 6
TOP five DB2 DBA critical functions .................................................................. 8
Critical functions ............................................................................................ 8

2
3

About this e-book


This version of e-book created by srinimf.com. A complete useful information
to perform DBA role in your project. DBA also called database adminstror of
any database.

The roles and responsibilities are so criticle. So before start your journey take a
look of all the points given to do your job well.

The publisher of this book is


Srinimf.com

A Free education series. You can share this e-book to your friends and who
need help.

3
4

DBA real time job responsibilities

Database adminstrator roles

DB2 has many in-built security features and are most popular. The following
security problems DB2 can handle. The below list is for your quick note:

• Privilege theft or mismanagement


• Application or application server tampering
• Data or log tampering
• Storage media theft
• Unauthorized object access

To address these areas, DB2 offers the following security solutions:

• Authentication
• Authorization
• Data integrity
• Confidentiality
• System integrity
• Audit

The Audit trace in DB2

“The trace can record changes in authorization IDs for a security audit as well
as changes made to the structure of data (e.g., dropping a table) or to data
values (e.g., updating or inserting records) for an audit of data access.

You can also use the audit trace to track access attempts by unauthorized IDs,
the results of GRANT and REVOKE statements, the mapping of Kerberos
security tickets to RACF IDs, and other activities of interest to auditors.”

What is DB2 SYADM?

SYSADM authority is assigned to the group specified by


the sysadm_group configuration parameter. Membership in that group is
controlled outside the database manager through the security facility used on
your platform.

Only a user with SYSADM authority can perform the following functions:

• Upgrade a database

4
5

• Restore a database
• Change the database manager configuration file (including specifying the
groups having SYSADM, SYSCTRL, SYSMAINT, or SYSMON authority)

What is DB2 DBADM?

The system DBADM authority allows an administrator, an authorization ID or a


role, to manage databases across a DB2® subsystem, while having no access to
the data in the databases.

With the system DBADM authority, you can issue SQL statements to perform
the following tasks:

• Create and drop aliases, auxiliary tables, and distinct types


• Create, alter, and drop databases, tables, global temporary tables, table
spaces, and sequences
• Create triggers, functions, indexes, procedures, and views with
additional required privileges
• Comment on all but security-related objects (i.e., roles, trusted contexts)
• Issue other SQL statements, such as the EXPLAIN, LABEL, PREPARE, and
RENAME statements

What is DB2 DBCTRL?

The DBCTRL authority includes the DBMAINT privileges on a specific database.


A user with the DBCTRL authority can run utilities that can change the data.

Best example: DBA1 needs to be able to create tables in a database and be


able to run periodic REORGs. However, DBA1 is not permitted to access the
data or manipulate it. Here you need DBCTRL authority.

What is DB2 DBMAINT?

A user with the DBMAINT authority can grant the privileges on a specific
database to an ID. With the DBMAINT authority, that user can perform the
following actions within that database:

• Create objects
• Run utilities that don’t change data
• Issue commands
• Terminate all utilities on the database except DIAGNOSE, REPORT, and
STOSPACE

5
6

If a user has the DBMAINT authority with the GRANT option, that user can
grant those privileges to others.

What is DB2 SYSOPR?

A user with the SYSOPR authority can issue all DB2® commands except
ARCHIVE LOG, START DATABASE, STOP DATABASE, and RECOVER BSDS.

What is DB2 SYSCTRL?

The SYSCTRL authority is designed for administering a system that contains


sensitive data. With the SYSCTRL authority, you have nearly complete control
of the DB2® subsystem. However, you cannot access user data directly unless
you are explicitly granted the privileges to do so.

• Act as installation SYSOPR (when the catalog is available) or DBCTRL over


any database
• Run any allowable utility on any database
• Issue a COMMENT ON, LABEL ON, or LOCK TABLE statement for any
table
• Create a view on any catalog table for itself or for other IDs
• Create tables and aliases for itself or for others IDs
• Bind a new plan or package and name any ID as the owner of the plan or
package
• Create roles (only if SEPARATE_SECURITY is set to NO)
• Use any valid value for OWNER in BIND or REBIND (only if
SEPARATE_SECURITY is set to NO)
• Has implicit ACCESSCTRL authority to grant most privileges (only if
SEPARATE_SECURITY is set to NO)

Orcle DBA responsibilities


Oracle DBA roles

The below are the Oracle dba responsibilities:

1. Evaluate the Database Server Hardware: Evaluate how Oracle and its
applications can best use the available computer resources. This
evaluation should reveal the following information:
• How many disk drives are available to Oracle and its databases

6
7

• How many, if any, dedicated tape drives are available to Oracle


and its databases
• How much memory is available to the instances of Oracle you will
run (see your system’s configuration documentation)
2. Install the Oracle Software: As the database administrator, you install
the Oracle database server software and any front-end tools and
database applications that access the database. In some distributed
processing installations, the database is controlled by a central computer
(database server) and the database tools and applications are executed
on remote computers (clients). In this case, you must also install the
Oracle Net components necessary to connect the remote machines to
the computer that executes Oracle.
3. Plan the Database: As the database administrator, you must plan:
• The logical storage structure of the database
• The overall database design
• A backup strategy for the database
4. Create and Open the Database: When you complete the database
design, you can create the database and open it for normal use. You can
create a database at installation time, using the Database Configuration
Assistant, or you can supply your own scripts for creating a database.
5. Back Up the Database: After you create the database structure, carry
out the backup strategy you planned for the database. Create any
additional redo log files, take the first full database backup (online or
offline), and schedule future database backups at regular intervals.
6. Enroll System Users:After you back up the database structure, you can
enroll the users of the database in accordance with your Oracle license
agreement, create appropriate roles for these users, and grant these
roles.
7. Implement the Database Design:After you create and start the
database, and enroll the system users, you can implement the planned
logical structure database by creating all necessary tablespaces. When
you complete this, you can create the objects for the database.
8. Back Up the Fully Functional Database:Now that the database is fully
implemented, again back up the database. In addition to regularly
scheduled backups, you should always back up your database
immediately after implementing changes to the database structure.
9. Tune Database Performance:Optimizing the performance of the
database is one of your ongoing responsibilities as a DBA. Additionally,
Oracle provides a database resource management feature that enables
you to control the allocation of resources to various user groups.

7
8

TOP five DB2 DBA critical functions


Critical functions

1. What are the main issues to be considered when creating a database?


A. The following are sum of the list an administrator must focus
i. Physical structure of database
ii. Logical structure
iii. Communication issues
iv. Location of RDBMS
v. Location of files
vi. User access control
2. What are the critical issues to be addressed when configuring the
security?
A. The following are important functions to be considered
i. Access to the system is controlled.
ii. Authorized users must be able to access (insert, modify,
retrieve, or delete)
iii. Authorized users must be restricted to the data and
resources that they are duly authorized to access
iv. Unauthorized users must not access. This is also
responsibility of DBA
3. What are the main issues to be addressed while management of
RDBMS?
A. Main list DBA functions to be considered
i. Reorganizing existing database tables and indexes
ii. Deleting unnecessary indexes or moving other objects
iii. Making alterations to the database itself
iv. Making alterations to database components
v. Creating additional database objects (tablespaces, datafiles,
tables, users, indexes, procedures, etc.)
vi. Training users
vii. Backup and recovery of database objects
viii. Database performance tuning
4. Why are backups important? Discuss how backup and recovery are
handled?
A. The primary goal of DBA is backup and recovery
i. Protecting database during loss
ii. Recovery if something happens

8
9

iii. The reasons to data loss are – User error, Logical error and
Process failure
5. Why is performance tuning of a database important?
A. The below are awesome reasons
i. Poor database design
ii. Growth of database size
iii. Change in requirements

9
10

References
1. The role of administrator from computer weekly – Read here
2. DBA roles and responsibilities from Srinimf – Read here
3. Database administrator or DBA roles from Wiki – Read here

10

Das könnte Ihnen auch gefallen