Vous êtes sur la page 1sur 40

Install Suse Linux Enterprise

Server 11 SP3
Posted on February 26, 2014

This article presents how to install Suse Linux Enterprise Server SP3 service
pack 3.
I assume you have already downloaded Suse Linux Enterprise Server SP3 64
bit(its about 4GB) and you know how to use VirtualBox 64 bit(100M). Create
virtual machine with default settings for Suse openSuse 64 bit. 1GB ram(I set
4GB for future use) and 64G for disk is enough plus increase video memory to
128M and turn on acceleration 3D. Rest of options you can keep default.

1. Select Installation and press enter

2. Here you can change Language and Keyboard settings. Check checkbox I
Agree to the Licence Terms. Click Next button to continue.

3. Verify your installation disk or ISO file or just click Next button to
continue.

4. Checks are execute for hardware

5. Just click Next button

6. Select region for your installation. Click Next button to continue.

7. Accept default settings Physical Machine and click Next button.

8. There are two tabs Overview and Expert where you can change all
settings. On Overview tab click Software link.

9. Check checkbox Oracle Server Base to install packages for Oracle. Its
optional but Im doing it for future presentation for Oracle binaries
installation. Click Ok button.

10. Click Install button.

11. Confirm by click on Install button to continue.

12. Installation should take about 30 minutes. Once its done your system will
reboot automatically.

13. Once your host is started set password for root user and verify your
keyboard. Click Next button.

14. Enter hostname and domain name and click Next button.

15. There are many settings that can be customized for Network

16. Here you can register your host in Novell for technical support or skip it
and continue with installation.

17. Here you can configure Suse services. Click Next button.

18. Select authentication method that will be used to login to Suse.

19. Enter username and password to login later to Suse. As default login as
root is not possible directly.

20. This screen presents latest release notes for Suse 11 service pack 3.

21. Graphic card detection is started.

22. Installation is completed. Click Finish button.

23. Just login to OS with your user defined in point 19.

Have a fun

Install Oracle 11G Release 2


(11.2) on Suse Linux 11
(SLES11)
Posted on September 8, 2014

This article presents installation of Oracle database 11G Release 2 on Suse


Linux Enterprise Server 11.
Read following article how to install Suse Linux Enterprise Server 11: Install
Suse Linux Enterprise Server 11 SP3 64 bit(for comfort set 2G memory for
your virtual machine).
During installation of Suse LES 11 user oracle and both group dba and oinstall
are created. However I drop the user and groups and recreate them.
Software

Software for 11G R2 is available on OTN, edelivery or oracle support

OTN: Oracle Database 11G Release 2 (11.2.0.1) Software (64-bit).

edelivery: Oracle Database 11G Release 2 (11.2.0.1) Software (64-bit)

support: Oracle Database 11G Release 2 (11.2.0.4) Software (64-bit)

Suse11 requires version Linux x86-64. In this presentation Im using and


always referring to version 11.2.0.4 downloaded from Oracle support page.
Binaries 11.2.0.4
p13390677_112040_Linuxx8664_1of7.zipdatabasesoftware
p13390677_112040_Linuxx8664_2of7.zipdatabasesoftware

Requirements
Be sure you fulfill following:

SuSE Linux Enterprise Server (SLES) 11, which is Kernel 2.6.27.19-5 or


newer.

OS configuration and preparation


OS configuration is executed as root. To login as root just execute following
command in terminal.
suroot

Add groups
requiredgroups
/usr/sbin/groupaddg501oinstall
/usr/sbin/groupaddg502dba
/usr/sbin/groupaddg503oper

Add user Oracle


/usr/sbin/useradd\
u502goinstallGdba,oper\

d/home/oracle\
s/bin/bash\
moracle

Change password for user


passwdoracle

Add kernel parameters to /etc/sysctl.conf


kernel.shmmni=4096
kernel.shmmax=4398046511104
kernel.shmall=1073741824
kernel.sem=25032000100128

fs.aiomaxnr=1048576
fs.filemax=6815744
net.ipv4.ip_local_port_range=900065500
net.core.rmem_default=262144
net.core.rmem_max=4194304
net.core.wmem_default=262144
net.core.wmem_max=1048586

Apply kernel parameters


/sbin/sysctlp

Add following lines to set shell limits for user oracle in file
/etc/security/limits.conf
oraclesoftnproc131072

oraclehardnproc131072
oraclesoftnofile131072
oraclehardnofile131072
oraclesoftcoreunlimited
oraclehardcoreunlimited
oraclesoftmemlock50000000
oraclehardmemlock50000000

The /etc/hosts file must contain a fully qualified name for the server.
<IPaddress><fullyqualifiedmachinename><machinename>

For example.
127.0.0.1suse11.dbaora.comsuse11localhostlocalhost.localdomain

Modify .bash_profile for user oracle in his home directory


#OracleSettings
exportTMP=/tmp

exportORACLE_HOSTNAME=suse11.dbaora.com
exportORACLE_UNQNAME=ORA11G
exportORACLE_BASE=/ora01/app/oracle
exportORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1
exportORACLE_SID=ORA11G

PATH=/usr/sbin:$PATH:$ORACLE_HOME/bin

exportLD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib;
exportCLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib;

aliascdob='cd$ORACLE_BASE'
aliascdoh='cd$ORACLE_HOME'
aliastns='cd$ORACLE_HOME/network/admin'
aliasenvo='env|grepORACLE'

umask022

Check which packages are installed and which are missing


rpmqqf'%{NAME}%{VERSION}%{RELEASE}(%{ARCH})\n'\
binutils\
glibc\
ksh\
libaio\
libstdc++33\
libstdc++43\
libstdc++devel\
make\
libaiodevel\
sysstat\

glibcdevel\
gcc\
gccc++

binutils2.23.10.17.18(x86_64)
glibc2.11.317.54.1(x86_64)
ksh93u0.18.1(x86_64)
libaio0.3.1090.1.46(x86_64)
libstdc++333.3.311.9(x86_64)
libstdc++434.6.90.11.38(x86_64)
packagelibstdc++develisnotinstalled
make3.81128.20(x86_64)
libaiodevel0.3.1090.1.46(x86_64)
sysstat8.1.57.45.24(x86_64)
glibcdevel2.11.317.54.1(x86_64)
gcc4.362.198(x86_64)
packagegccc++isnotinstalled

Install missing packages. Its just example:


#directorywithmountedSuse11LESinstalldisk

cd/media/<Suse11LES>/suse/x86_64

#installmissedpackages(exampleforpackagegcc*)
zypperinstalllibstdc++devel
zypperinstallgccc++

Create directory structure for oracle software


mkdirp/ora01/app/oracle/product/11.2.0/db_1
chownoracle:oinstallR/ora01

Install database software


Lets start with database software installation as oracle user.
suoracle

unzipsoftware11.2.0.4
p13390677_112040_Linuxx8664_1of7.zip
p13390677_112040_Linuxx8664_2of7.zip

Idefined4aliasesin.bash_profileofuseroracletomake
administrationheaven:)

oracle@suse11:~>aliasenvocdobcdohtns
aliasenvo='env|grepORACLE'
aliascdob='cd$ORACLE_BASE'
aliascdoh='cd$ORACLE_HOME'
aliastns='cd$ORACLE_HOME/network/admin'

runaliascommandenvotodisplayenvironmentsettings
oracle@suse11:~>envo
ORACLE_UNQNAME=ORA11G
ORACLE_SID=ORA11G
ORACLE_BASE=/ora01/app/oracle
ORACLE_HOSTNAME=suse11.dbaora.com
ORACLE_HOME=/ora01/app/oracle/product/11.2.0/db_1

runaliascommandcdobandcdohtocheckORACLE_BASE,ORACLE_HOME
oracle@suse11:~>cdob
oracle@suse11:/ora01/app/oracle>pwd
/ora01/app/oracle

oracle@suse11:/ora01/app/oracle>cdoh
oracle@suse11:/ora01/app/oracle/product/11.2.0/db_1>pwd
/ora01/app/oracle/product/11.2.0/db_1

runinstallation
./runInstall

1. Uncheck checkbox I wish to receive security updates via My Oracle


Support and then click Next button.

2. Ignore following message and click Yes button.

3. Select Skip software updates and click Next button.