Académique Documents
Professionnel Documents
Culture Documents
installation on Linux OS
PDA-Assignment 1
DCN08C3-0599
2/13/2011
Proactive Database Administration Assignment 01
DCN-08C3-0599
Hardware
Memory:
Swap Space
With the following command check the Swap Space [2], it is an area on disk that temporarily
holds a process memory image.
#grep SwapTotal /proc/meminfo
The following table describes the relationship between installed RAM and the configured swap
space requirement:
System Architecture
To determine whether the system architecture can run the software, enter the following
command:
# uname -m
This command displays the processor type. If your processor speed is greater than 550MHz,
then it can support the oracle installation.
Proactive Database Administration Assignment 01
DCN-08C3-0599
The following are the disk space requirements for installing Oracle Database 11g Release 1:
To determine the amount of disk space available in the /tmp directory, enter the
following command:
# df -k /tmp
# df k
The following table describes the disk space requirements for software files for each installation
type on CentOS
The following table lists the recommended Memory and Display requirements for SQL
Developer.
Resource Recommended
Software
Operating System
CENT OS is compatible with the Oracle Server 11g R1. These are the other releases of Linux
x86 and Linux x86-64 that is compatible with this Oracle version:
Asianux 2 SP2
Asianux 3
Oracle Linux 4
Oracle Linux 5
Red Hat Enterprise Linux 4
Red Hat Enterprise Linux 5
SUSE Linux Enterprise Server 10
To determine the distribution and version of Linux installed, enter the following command:
# cat /proc/version
Kernel Requirements
The required Kernel to install Oracle Server 11g R1 is a kernel that is 2.6.18 or later. The
CentOS s kernel is 2.6.19.1.
To determine whether the required kernel is installed, enter the following command:
# uname r
Package Requirements
The following are the list of packages required for Oracle Database 11g Release 1 (11.1).
binutils
compat-libstdc++
elfutils-libelf
elfutils-libelf-devel
glibc
glibc-common
glibc-devel
glibc-headers
gcc
Proactive Database Administration Assignment 01
DCN-08C3-0599
gcc-c++
libaio-devel
libaio
libgcc
libstdc++
libstdc++
make
sysstat
unixODBC
unixODBC-devel
Most of the packages are not installed by default. To check whether the required packages have
been installed, enter the following commands:
Ex: This is shows you how to install some missing packages in CentOS
Browser
Netscape Navigator 7.1
Netscape Navigator 8.1
Microsoft Internet Explorer 6.0 SP2
Microsoft Internet Explorer 7.0
Firefox 1.0.4
Firefox 1.5
Safari 2.0
Proactive Database Administration Assignment 01
DCN-08C3-0599
The Oracle database requires you to create operating groups and users. The groups and users
required to create are: dba, oinstall group and oracle user.
To create the above groups and users, enter the following command at the root:
#groupadd oinstall
#groupadd dba
#passwd oracle
Enter the following command to check whether the oracle user belongs to the oinstall and dba
groups.
#id oracle
Create Directories
Oracle need directories to store the following files: Data Files and Configuration Files.
First of all you need to create the folder /u01 and assign access rights to it:
# mkdir -p /u01/app/oracle/product/11.1.0
ORACLE_BASE=/u01/app/oracle
ORACLE_HOME=$ORACLE_BASE/product/11.1.0/fsrv
ORACLE_SID=fsrvorcl
PATH=$PATH:$ORACLE_HOME/bin
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
export
fs.file-max = 6553600
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
net.core.rmem_default = 4194304
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 262144
Checking result, enter command to change the current values of the kernel:
# /sbin/sysctl p
# /sbin/sysctl a
This can be done by opening and editing the /etc/security/limits.conf file and adding the following
information before the end of line.
Disable SELinux
SELINUX=disabled
Now the Oracle Server 11g R1 is ready to be installed into your CentOS.
Extract the downloaded zip file into a folder. Open a terminal and go to the following directory.
Orall->database
Then the following screen will appear. That is the Oracle Server 11g R1 installation wizard.
We will choose the Basic Installation for the sake of the assignment. Check the Oracle Base
Location to see if it is in the directory that we created.
Also the installation type should be Enterprise Edition and the UNIX DBA Group should be dba.
You must check the Create Starter Database. This will ensure that there will be a default
database that we can use right after the installation. You must provide a Global Database Name
and a good password.
You need to specify your Inventory directory. The location should be set to
/u01/app/oracle/oraInventory. Accept the default Operating System group name, oinstall. Then,
click next to continue.
After clicking next, the system will take a while till it moves on to the next screen. This is
because it checks your system for the minimum requirements. If you have followed the steps
carefully till now, there will be no errors shown, otherwise if an error appears, please correct it
and move on by clicking Next.
Proactive Database Administration Assignment 01
DCN-08C3-0599
The next screen will be the Oracle Configurations Manager. It allows you to associate your
configuration information with your Metalink account.
Proactive Database Administration Assignment 01
DCN-08C3-0599
This is not really important therefore you can click Next to go to the Summary
Proactive Database Administration Assignment 01
DCN-08C3-0599
This screen is just a summary of all the features and settings that you have configured in the
installation wizard. At this point you can re-check the configurations and if anything needs to be
changed, you can go back and make that change before clicking on install.
If everything seems to be ok, you can click Install to begin the installation.
Proactive Database Administration Assignment 01
DCN-08C3-0599
The above screen shows the installation progress, once this is 100% complete, the Configure
Assistant screen will show.
Proactive Database Administration Assignment 01
DCN-08C3-0599
After the database has been created the following screen will show.
Proactive Database Administration Assignment 01
DCN-08C3-0599
In this screen, click on Password Management. With the Password management, you can assign
passwords to the users.
Proactive Database Administration Assignment 01
DCN-08C3
08C3-0599
On the above screen, as it has instructed, you must Open a terminal and log in as Root and run
the scripts.
Now the installation is complete. You can click on Exit; it will prompt you to make sure you are
OK with the exit. Click YES.
Proactive Database Administration Assignment 01
DCN-08C3-0599
Post-installation configurations
After the Oracle server installation, it is good to restart the whole system. After restarting open
the created database.
Connect to Oracle
We have to connect to Oracle after setting the environment variables. This can be done using the
following commands:
#sqlplus /nolog
Log in as sysdba
Proactive Database Administration Assignment 01
DCN-08C3
08C3-0599
Start-up
up and Shutdown of a Database
atabase Server using scripts
We can configure the .bashrc file in the /home/oracle directory to automatically set the
environment variables whenever you open a new terminal. This is shown below:
The open the browser and enter the URL. A page like the one below will appear and request for a
username and password. Enter the username and password that we created during setup.
If the log in was successful you would be brought to the page below:
Proactive Database Administration Assignment 01
DCN-08C3
08C3-0599
You can see from the above page, that the database instance is currently offline/stopped.
offline/stopped. You can
click on the startup button to start the ddatabase.
atabase.
After clicking the startup button, you would be brought to a page like the one below. Enter the
credentials and click on OK.
Proactive Database Administration Assignment 01
DCN-08C3
08C3-0599
It will briefly describe what action you are going to perform, and ask you if you are sure of the
actions that you are about to perform. Click Yes if everything is ok.
It will take a while for the database to load. Within that time you will see a small screen with a
Please Wait sign.
Referrences
[1]http://download.oracle.com/docs/cd/B28359_01/install.111/b32002/pre_install.htm#BABBA
CFH
[2] http://docs.hp.com/en/B2355-90672/ch06s02.html
[3]http://download.oracle.com/docs/cd/B28359_01/install.111/b32002/pre_install.htm#BABBA
CFH
This document was created with Win2PDF available at http://www.daneprairie.com.
The unregistered version of Win2PDF is for evaluation or non-commercial use only.