Vous êtes sur la page 1sur 5

Oracle Database Administration

Pre requisite
Oracle software download
Oracle Enterprise Linux installed ( operation system)
Oracle Installation Cheat sheet


Chapter 1
Introduction to Oracle Database
Responsibilities of Database Administrators
Creating Oracle 11g Database
Creating Oracle 11g using manually and DBCA












Copyright 2013 Oradb Support Inc.
All rights reserved. No part of this material may be reproduced or utilized in any form or by any means,
electronic or mechanical, including photocopying, recording, or by an information storage and retrieval
system without permission in writing from the owner of this copyright.

Inquiries should be addressed to Oradbsupport Inc.

DBA Training Institute, 275 Wyandotte st w
Suite 206, Windsor, ON Canada N9A 5X1
Printed in the Canada.


Oracle Database 11g Release 2 (11.2) for Linux x86-64

A database administrator's responsibilities can include the following tasks:

Installing and upgrading the Oracle server and application tools
Allocating system storage and planning future storage requirements for the
database system
Creating primary database storage structures (Tablespaces) after
application developers have designed an application
Creating primary objects (tables, views, indexes) once application
developers have designed an application
Modifying the database structure, as necessary, from information given by
application developers
Enrolling users and maintaining system security
Ensuring compliance with your Oracle license agreement
Controlling and monitoring user access to the database
Monitoring and optimizing the performance of the database
Planning for backup and recovery of database information
Maintaining archived data on tape
Backing up and restoring the database
Contacting Oracle Corporation for technical support



# grep MemTotal /proc/meminfo
# uname -m
# grep SwapTotal /proc/meminfo
# free
# df -h /dev/shm/
# df -h /tmp
# df -h
# cat /etc/redhat-release
# cat /proc/version



Oracle Linux 5, and Red Hat Enterprise Linux 5 must be installed:

# rpm -q package_name

binutils-2.17.50.0.6
compat-libstdc++-33-3.2.3
elfutils-libelf-0.125
elfutils-libelf-devel-0.125
gcc-4.1.2
gcc-c++-4.1.2
glibc-2.5-24
glibc-2.5-24 (32 bit)
glibc-common-2.5
glibc-headers-2.5
ksh-20060214
libaio-0.3.106
libaio-devel-0.3.106
libgcc-4.1.2
libstdc++-4.1.2
libstdc++-devel 4.1.2
make-3.81
sysstat-7.0.2
unixODBC-2.2.11 (32-bit) or later
unixODBC-2.2.11 (64-bit) or later
unixODBC-devel-2.2.11 (32-bit) or later
unixODBC-devel-2.2.11 (64-bit) or later


# vi /etc/oraInst.loc
inventory_loc=/u01/app/oraInventory inst_group=oinstall

# groupadd oinstall
# groupadd dba
# id oracle
# usermod -g oinstall -G dba oracle
# passwd oracle


# Vi /etc/sysctl.conf

fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576

# /sbin/sysctl -p

To check resource limits:

# vi /etc/security/limits.conf
oracle soft nofile 4096
oracle hard nofile 63536

# mkdir -p /u01/app/
# chown -R oracle:oinstall /u01/app/
# chmod -R 775 /u01/app/
# mkdir /software
# chown oracle:oinstall /software

# cp <downloaded_location> /software
# su - oracle

$ umask 022
$ xterm
$ xhost somehost.us.example.com -- if you are remote server
$ export DISPLAY=local_host:0.0 / setenv DISPLAY local_host:0.0
$ su - oracle
$ . ./.bash_profile

echo $SHELL

echo $DISPLAY

$ xclock


set the ORACLE_BASE and ORACLE_SID environment variables:
vi .bash_profile

# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

# User specific environment and startup programs
#ORACLE_SID=orcl; export ORACLE_SID
export ORACLE_SID=orcl;
export ORACLE_BASE=/u01/app/oracle;
export ORACLE_PRODUCT=$ORACLE_BASE/product;
export ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1;
export LD_LIBRARY_PATH=$ORA_CRS_HOME/lib:$LD_LIBRARY_PATH/lib32;
export LIBPATH=$ORACLE_HOME/lib:$LIBPATH;
export PATH=$PATH:$ORACLE_HOME/bin:$ORA_CRS_HOME/bin:/usr/local/bin;


Bourne, Bash, or Korn shell:
$ ORACLE_BASE=/u01/app/oracle $ ORACLE_SID=sales
$ export ORACLE_BASE ORACLE_SID

C shell:
% setenv ORACLE_BASE /u01/app/oracle
% setenv ORACLE_SID sales

Vous aimerez peut-être aussi