Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Oracle DBA
Nilo Segura
IT/DB/DBR
CERN/IT/DB
Agenda
CERN/IT/DB
CERN/IT/DB
CERN/IT/DB
CERN/IT/DB
User accounts
Any user can request an account in the central
development and production DB handled by IT
Butcreate
for physics
use, there will be dedicated
servers
SQL>
user cms_anode_board
identified
by yupyup
tablespace
data01quota on one or more
temporary
default
Accounts
have space
tablespaces
temp01 the user will create
quota
on data01
tablespace
In this account,
new100M
database
quota
unlimited
applications (tables, indexes,
types
) on indx01;
SQL>
Usersgrant
can also
see/play
with data that is on remote
designer
to cms_anode_board;
databases from the local account
Performance issues must be taken into account due to
network access
CERN/IT/DB
Security(1/2)
The database catalog (in tablespace SYSTEM) can
not be modified directly
For everything that you can do in the database
there is an associated database privilege
A DBA can group system privileges into roles and
assign them to user accounts
A user can also create roles to assign access privileges
(on his/her objects) to another users
CERN/IT/DB
Security(2/2)
Security can be enhanced in several ways
Data itself can be stored encrypted
Password can expire (like in the normal OS)
Secure the communication with the db using DES,
Triple-DES, RSA RC4...
User authentication with Kerberos, SSL, Cybersafe,
Biometrix
CERN/IT/DB
DB Tuning client(1/2)
The ability to make your queries faster
90% of the times all the tuning is done at the
user code level
CERN/IT/DB
DB Tuning client(2/2)
You can always see the Query Plan before you run the
query
If the optimizer chooses the wrong options you can force a
different choice via Hints
Reducing
query
timesabout
fromexecution
hours toof
minutes
(or even
Detailed
statistics
your queries
for
moreisadvanced
tuning
seconds)
not unusual
Can easily identify hotspots
Remedies
Knowing your data & query patterns is essential
Review/test your application carefully before declaring it
production
CERN/IT/DB
DB Tuning - server
The database itself has many parameters that can
be tweaked to improve the performance
The role of the DBA is to understand the impact of
those parameters in the general performance of the
db.
In the past, you could not modified them without
stopping the database
Now many can be modified online
CERN/IT/DB
CERN/IT/DB
Resumable statements
Transaction freezes while the error condition is fixed
User code does not need to be modified to profit
Limited set of errors are trapped in 9i (initial version)
CERN/IT/DB
CERN/IT/DB