You are on page 1of 33

Installing Oracle Database 10g Release 2 (64-bit) on Red Hat Enterprise Linu E!

" Do#nloading Oracle10g !o$t#are and %urning Oracle10g &Ds " &'ec(ing )e*or+ and !#ap !pace " &'ec(ing ,t*p !pace " &'ec(ing !o$t#are -ac(ages (R-)s) " &'ec(ing .ernel -ara*eters " !i/ing Dis( !pace $or Oracle10g " &reating Oracle 0ser 1ccounts " !etting !'ell Li*its $or t'e Oracle 0ser " &reating Oracle Directories Optimal Flexible Architecture (OFA) for 10g (10.1.0.2) " !etting Oracle En2iron*ents " Installing Oracle10g Installing Oracle10g on a Remote Linux er!er tarting Oracle "ni!ersal Installer "sing Oracle "ni!ersal Installer "p#ates after Running Oracle "ni!ersal Installer " Oracle -ost-installation 3as(s tartup an# hut#o$n of the Oracle10g %atabase hut#o$n of other Oracle 10g &ac'groun# (rocesses " 3ips and Hints $or Oracle10g on Linu " Oracle10g,Linu Errors and -roble*s " Re$erences

Do#nloading Oracle10g !o$t#are and %urning Oracle10g &Ds


%o$nloa# Oracle 10g ()2*bit an# +,*bit) for Linux from O-. to install linux 10g oracle/ http/00otn.oracle.com0soft$are0pro#ucts0#atabase0oracle10g0in#ex.html .O-1/ To install a Oracle Database 10g (without RAC) you only need to download the database file ship.db.lnx32.cpio.gz, or 10201_database_linux_x86_64.cpio etc. 2ompute a c3clic re#un#anc3 chec' (2R2) chec'sum for the #o$nloa#e# files an# compare the chec'sum numbers against the numbers poste# on O-.4s $ebsite. For example/
cksum ship.db.lnx32.cpio.gz

"ncompress the #o$nloa#e# file(s)/

gunzip ship.db.lnx32.cpio.gz "npac' ship.db.lnx32.cpio/ $ cpio -idmv < ship.db.lnx32.cpio Disk1/stage/Components/o acle.se ve /1!.1.!.3.!/1 Disk1/stage/Components/o acle.se ve /1!.1.!.3.!

Disk1/stage/Components/o Disk1/stage/Components/o Disk1/stage/Components/o Disk1/stage/Components/o Disk1/stage/Components/o Disk1/stage/Components/o c.3.1.#a Disk1/stage/Components/o ass.#a ... $ mkiso%s -

acle.se ve acle.tg/1!.1.!.3.!/1/Data"iles acle.tg/1!.1.!.3.!/1 acle.tg/1!.1.!.3.! acle.tg acle.assistants.dbca/1!.1.!.3.!/1/Data"iles/do acle.assistants.dbca/1!.1.!.3.!/1/Data"iles/cl

I execute# the follo$ing comman# to burn the Disk1 #irector3 on a 2%/


Disk1 & cd eco d -v dev'!(!(! speed'2! -

(%ri!es4 spee# !aries5 3ou can get the #e! numbers $hen 3ou execute c#recor# *scanbus). .ote that 10g R2 $on4t fit on a single 2% since it has o!er 6708&.

&'ec(ing )e*or+ and !#ap !pace


Oracle sa3s that the s3stem must ha!e at least 9128& of RA8 an# 1:& of s$ap space or t$ice the si;e of RA8. An# for s3stems $ith more than 2 :& of RA8< the s$ap space can be bet$een one an# t$o times the si;e of RA8. =ou might also $ant to chec' out i;ing $ap pace. For test sa'e I trie# to install an Oracle %atabase 10g (-3pe/ :eneral (urpose %atabase) on a little (2 $ith 29+8& of RA8 an# 1 :& of s$ap space. I $as able to get a 10g #atabase up an# running on this little (2 $ithout a problem. -o chec' the si;e of ph3sical memor3< execute/
g ep )em*otal /p oc/memin%o

-o chec' the si;e of s$ap space< execute/


g ep +,ap*otal /p oc/memin%o

=ou also can a## temporar3 s$ap space to 3our s3stem b3 creating a temporar3 s$ap file instea# of using a ra$ #e!ice. >ere is the proce#ure/
su - oot dd i%'/dev/ze o o%'tmps,ap bs'1k count'-!!!!! chmod .!! tmps,ap mks,ap tmps,ap s,apon tmps,ap su - oot s,apo%% tmps,ap m tmps,ap

-o #isable the temporar3 s$ap space execute the follo$ing comman#s/

&'ec(ing ,t*p !pace


Accor#ing to Oracle4s #ocumentation< the Oracle "ni!ersal Installer (O"I) re?uires up to ,00 8& of free space in the /tmp #irector3. &ut O"I chec's if /tmp is onl3 greater than

70 8&. -o chec' the space in /tmp< run/


$ d% /tmp

If 3ou #o not ha!e enough space in the /tmp files3stem< 3ou can temporaril3 create a tmp #irector3 in another files3stem. >ere is ho$ 3ou can #o this/
su - oot mkdi /</nothe "iles0stem1/tmp cho,n oot. oot /</nothe "iles0stem1/tmp chmod 1222 /</nothe "iles0stem1/tmp expo t *3)4'/</nothe "iles0stem1 expo t *)4D67'/</nothe "iles0stem1 like the linke 9ld9

$ used b0 5 acle $ used b0 8inux p og ams

@hen 3ou are #one $ith the Oracle installation< shut#o$n Oracle an# remo!e the temporar3 /tmp #irector3/
su mdi unset unset oot /</nothe "iles0stem1/tmp *3)4 *)4D67

&'ec(ing !o$t#are -ac(ages (R-)s)


4eneral &efore 3ou install an Oracle %atabase 10g 3ou nee# to chec' the s3stem for re?uire# R(8s. On m3 s3stems I usuall3 install a minimum list of R(8s $hich usuall3 re?uires the installation of a##itional pac'ages for Oracle #atabases. Always ensure to use the latest R !s and "ernels# For 10g R2 (64-bit) on RHEL 4 56664< the #ocument Oracle %atabase Installation :ui#e 10g Release 2 (10.2) for Linux x7+*+, lists the follo$ing re?uire# pac'age !ersions or higher/
binutils-2.1:.-2.!.2-1!.38; compat-db-;.1.2:-cont ol-cente -2.<.!-12 gcc-3.;.3--.38; gcc-c==-3.;.3--.38; glibc-2.3.;-2 glibc-common-2.3.;-2 gnome-libs-1.;.1.2.-!-;;.1 libstdc==-3.;.3--.38; libstdc==-devel-3.;.3--.38; make-3.<!-: pdksh-:.2.1;-3! s0sstat-:.!.:-1 xsc eensave -;.1<-:. hel;.2 Also ensure to install the libaio-!.3.-.

R(8 or a ne$er !ersionA Other$ise the O"I

prere?uisite chec' $ill fail.

-o chec' if 3ou are running the x7+B+, 'ernel on a x7+B+, platform< run/
$ uname -mi x<.>.; x<.>.;

-o chec' the R(8s< run/


pm -? --?% @ABC/)3D-ABE37+65CD-AB7383/+3D FAB/7CGDHIn@ I binutils compat-db cont ol-cente gcc gcc-c== glibc glibc-common gnome-libs I libstdc== libstdc==-devel make pdksh s0sstat xsc eensave libaio

It is important to ha!e these x7+B+, R(8s installe#. -he abo!e comman# $ill list the architecture of each binar3 pac'age. =ou $ill see that some R(8s are installe# t$ice $hen 3ou run this comman# (x7+ R(8 an# x7+B+, R(8). =ou nee# to ensure that all re?uire# x7+*+, R(8s liste# here are installe#. For 10g R2 (72-bit) on RHEL 4 56< the #ocument Oracle %atabase Release .otes 10g Release 2 (10.2) for Linux x7+ lists the follo$ing re?uire# pac'age !ersions or higher/
binutils-2.1:.-2.!.2-1!.38; compat-db-;.1.2:-cont ol-cente -2.<.!-12 gcc-3.;.3--.38; gcc-c==-3.;.3--.38; glibc-2.3.;-2 glibc-common-2.3.;-2 gnome-libs-1.;.1.2.-!-;;.1 libstdc==-3.;.3--.38; libstdc==-devel-3.;.3--.38; make-3.<!-: pdksh-:.2.1;-3! s0sstat-:.!.:-1 xsc eensave -;.1<-:. hel;.2 Also ensure to install the libaio-!.3.-.

R(8 or a ne$er !ersionA Other$ise the O"I

prere?uisite chec' $ill fail. -o chec' the R(8s< run/


pm -? binutils compat-db cont ol-cente gcc gcc-c== glibc glibccommon gnome-libs I libstdc== libstdc==-devel make pdksh s0sstat xsc eensave libaio

For 10g R2 (72-bit) on RHEL 7 56< the #ocument Oracle %atabase Installation :ui#e 10g Release 2 (10.2) for Linux x7+ lists the follo$ing re?uire# pac'age !ersions or higher/
make-3.2-.1 gcc-3.2.3-3; glibc-2.3.2--:.2! compat-db-;.!.1;-: compat-gcc-2.3-2.-..12< compat-gcc-c==-2.3-2.-..12< compat-libstdc==-2.3-2.-..12<

compat-libstdc==-devel-2.3-2.-..12< openmoti%21-2.1.3!-< seta ch-1.3-1 Also ensure to install the libaio-!.3.-.-: R(8

or a ne$er !ersionA Other$ise the O"I

prere?uisite chec' $ill fail. -o chec' the R(8s< run/


pm -? make gcc glibc compat-db compat-gcc compat-gcc-c== compatlibstdc== compat-libstdc==-devel openmoti%21 seta ch libaio

For 10g R1 (64-bit) on RHEL 7 56664< the #ocument Oracle %atabase Installation :ui#e 10g Release 1 (10.1.0.)) for Linux x7+*+, lists the follo$ing re?uire# pac'age !ersions or higher/
make-3.2-.1 gcc-3.2.3-3; glibc-2.3.2--:.2! glibc-devel-2.3.2--:.2! glibc-devel-2.3.2--:.2! F32 bitH compat-db-;.!.1;-: compat-gcc-2.3-2.-..12< compat-gcc-c==-2.3-2.-..12< compat-libstdc==-2.3-2.-..12< compat-libstdc==-devel-2.3-2.-..12< gnome-libs-1.;.1.2.-!-3;.1 F32 bitH openmoti%21-2.1.3!-< seta ch-1.3-1 libaio-!.3.-.-3 libaio-devel-!.3.-.-3 $ uname -mi x<.>.; x<.>.;

-o chec' if 3ou are running the x7+B+, 'ernel on a x7+B+, platform< run/ -o chec' the R(8s< run/
pm -? --?% @ABC/)3D-ABE37+65CD-AB7383/+3D FAB/7CGDHIn@ I make gcc glibc glibc-devel compat-db compat-gcc compatgcc-c== compat-libstdc== I compat-libstdc==-devel gnome-libs openmoti%21 seta ch libaio libaio-devel

It is important to ha!e the right x7+ an# x7+B+, R(8s installe#. -he abo!e comman# $ill list the architecture of each binar3 pac'age. An# as 3ou can see in the abo!e list< glibc-devel an# other R(8s are liste# t$ice. -his means that 3ou ha!e to install pac'ages for both architectures< x7+ an# x7+B+,. For 10g R1 (72-bit) on RHEL 7 56< the #ocument Oracle %atabase Installation :ui#e 10g Release 1 (10.1) for ".IC 3stems lists the follo$ing re?uire# pac'age !ersions or higher/
make-3.2-.1 gcc-3.2.3-3; glibc-2.3.2--:.2! compat-db-;.!.1;-: compat-gcc-2.3-2.-..12< compat-gcc-c==-2.3-2.-..12<

compat-libstdc==-2.3-2.-..12< compat-libstdc==-devel-2.3-2.-..12< openmoti%21-2.1.3!-< seta ch-1.3-1

-o chec' the R(8s< run/


pm -? make gcc glibc compat-db compat-gcc compat-gcc-c== compatlibstdc== compat-libstdc==-devel openmoti%21 seta ch

For 10g R1 (72-bit) on RHEL 281< the #ocument Oracle %atabase Installation :ui#e 10g Release 1 (10.1) for ".IC 3stems lists the follo$ing re?uire# pac'age !ersions or higher/
make-3.2-.1 glibc-2.2.;-32 gcc-2.-.-12< gcc-c==-2.-.-12< libstdc==-2.-.-12< openmoti%-2.1.3!-11

-o chec' these R(8s< run/


pm -? make glibc gcc gcc-c== libstdc== openmoti%

The installation of an Oracle 10g Database wor"ed fine without installing any co$%atibility R !s (e.g. compat-gcc, compat-libstdc++). &owe'er, since it(s listed as a re)uire$ent for R&*+ , -(d reco$$end to install it on R&*+, and on newer releases as well. -t(s not a re)uire$ent for R&*+ ..1 though. For R>1L ) an# R>1L 2.1 it is also important to ha!e binutils-2.11.-!.!.<-12 or a ne$er !ersion installe#. 8a'e sure 3ou ha!e the binutils R(8 installe# on other releases as $ell li'e Fe#ora 2ore/
pm -? binutils

.O-1/ O/- for 012 will also co$%lain if the openmotif %ac"age is $issing (#on4t confuse it $ith the openmoti%21 pac'age). Also< Re# >at change# the !ersion naming schema from openmoti%-2.2.2-1. in the original release to openmoti%-2.2.3:.7G383.2 in R>1L) "p#ate 9. -his seems to confuse O"I in R>1L) "9 since it complaining that it can4t fin# the right openmoti% !ersion. I ignore# this. -he openmoti%-2.2.3-:.7G383.2 is Dust a ne$er !ersion of openmoti%-2.2.2-1. $hich $or'e# fine an# I #i#n4t ha!e an3 problems. -o chec' the R(8< run/
pm -? openmoti%

Also< ma'e sure the edhat- elease pac'age is installe#. 1arlier !ersions of e.g. R>1L ) #i#n4t install it b3 #efault $hen 3ou selecte# a minimum s3stem installation/
pm -? edhat- elease

-he seta ch utilit3 is ne$ in R>1L,< R>1L) an# Fe#ora 2ore. It is use# to tell the 'ernel to report a #ifferent architecture than the current one. It is also use# to emulate a ):& !irtual a##ress space for applications that #on4t run properl3 $ith a larger !irtual a##ress space. -o chec' the R(8< run/
pm -? seta ch

Installing t'e R-)s 10g R2 on RHEL 1! 4 ( 56664) On m3 R>1L A , x7+B+, s3stem I installe# the follo$ing R(8s an# #epen#encies/
pm -Jvh gcc-3.;.;-2.x86_64. pm I gcc-c==-3.;.;-2.x86_64. pm I libstdc==-devel-3.;.;-2.x86_64. pm I cpp-3.;.;-2.x86_64. pm I glibc-devel-2.3.;-2.13.x86_64. pm I glibc-heade s-2.3.;-2.13.x86_64. pm I glibc-ke nheade s-2.;--.1.-<.38.x86_64. pm pm -Jvh gnome-libs-1.;.1.2.-!-;;.1.x86_64. pm I compat-db-;.1.2:--.x86_64. pm I 57Kit-!.:.12-1;.x86_64. pm I gtk=-1.2.1!-33.x86_64. pm I imlib-1.-.13-23.x86_64. pm I libpng1!-1.!.1.-1.x86_64. pm I gdk-pixbu%-!.22.!-1..el;.x86_64. pm I libungi%-;.1.3-1.x86_64. pm pm -Jvh s0sstat-:.!.:-1.x86_64. pm

.ote that 3ou also nee# to install the follo$ing i756 an# 56664 R(8s if not alrea#3 installe#< other$ise 3ou $ill get !arious #ifferent error messages. For a #etaile# list of error messages< see Oracle10g0Linux 1rrors an# (roblems.
pm -Jvh xo g-x11-dep ecated-libs-..<.2-1.38.13.2!.i386. pm I xo g-x11-libs-..<.2-1.38.13.2!.i386. pm I xo g-x11-)esa-libL8-..<.2-1.38.13.2!.i386. pm I expat-1.-:.2-;.i386. pm I %ontcon%ig-2.2.3-2.i386. pm I % eet0pe-2.1.--1.i386. pm I zlib-1.2.1.2-1.2.i386. pm pm -Jvh libaio-!.3.1!3-3.x86_64. pm pm -Jvh compat-libstdc==-33-3.2.3-;2.3.x86_64. pm pm -Jvh glibc-devel-2.3.;-2.13.i386. pm I libgcc-3.;.;-2.i386. pm

If 3ou ha!en4t installe# "p#ate ) or later< #on4t forget to install an up#ate# binutils R(8 from https/00rhn.re#hat.com0 or from http/00oss.oracle.com0proDects0compat* oracle0files0Re#>at0/
pm -Jvh --%o ce binutils-2.1:.-2.!.2-13.!.!.!.2.x86_64. pm

If 3ou #on4t install a ne$er binutil R(8 from Oracle or R>.< then 3ou $ill get the follo$ing error message/
/us /bin/ldM /u!1/app/o acle/o acle/p oduct/1!.2.!/db>1/lib//libi c.aF%ast>memcp0.oH M elocation 7>N<.>.;>4C32 against O>memcp0>mem>ops>method@ can not be used,hen making a sha ed ob#ectP ecompile ,ith -%46C /us /bin/ldM %inal link %ailedM Kad value

collect2M ld

etu ned 1 exit status

For more information on this bug< see &ug;illa &ug +6E. I #on4t 'no$ $h3 the cont ol-cente R(8 an# the xsc eensave R(8 are liste# as re?uirements. On m3 s3stem I #i# not install these R(8s since I4m against installing #es'top stuff on ser!ers< see list belo$. @hen I installe# 10g R2 I #i# not experience an3 problems $hen these R(8s $ere missing. &ut Dust for completeness I4!e liste# all the R(8s 3ou ma3 ha!e to install if 3ou $ant to install the cont ol-cente an# xsc eensave R(8s unless 3ou ignore #epen#encies/
pm -Jvh cont ol-cente -2.<.!-12. hel;.2.x<.>.;. pm I xsc eensave -;.1<-:. hel;.-.x<.>.;. pm I eel2-2.<.1-2.x<.>.;. pm I gail-1.<.!-2.x<.>.;. pm I gnome-desktop-2.<.!-:.x<.>.;. pm I gnome-icon-theme-2.<.!-1.el;.1.3.noa ch. pm I libgail-gnome-1.1.!-1.x<.>.;. pm I libxklavie -1.!2-3.x<.>.;. pm I metacit0-2.<..-2.<.x<.>.;. pm I nautilus-2.<.1-;.x<.>.;. pm I sta tup-noti%ication-!.2-1.x<.>.;. pm I xloadimage-;.1-3;.7G38;.x<.>.;. pm I xo g-x11-)esa-libL8J-..<.2-1.38.13.2!.x<.>.;. pm I at-spi-1...!-3.x<.>.;. pm I desktop-backg ounds-basic-2.!-2..2.13.noa ch. pm I eog-2.<.1-2.x<.>.;. pm I gnome-panel-2.<.1-3.33.x<.>.;. pm I gnome-v%s2-smb-2.<.2-<.2.x<.>.;. pm I hicolo -icon-theme-!.3-3.noa ch. pm I libexi%-!.:.12-:.1.x<.>.;. pm I lib svg2-2.<.1-1.x<.>.;. pm I nautilus-cd-bu ne -2.<.3-..x<.>.;. pm I edhat-a t,o k-!.12!.1-1.23.x<.>.;. pm I sc ollkeepe -!.3.1;-3.x<.>.;. pm I cd eco d-2.!1.1-:.x<.>.;. pm I docbook-dtds-1.!-2:.noa ch. pm I evolution-data-se ve -1.!.2--.x<.>.;. pm I intltool-!.31.2-1.x<.>.;. pm I libc oco-!...!-;.x<.>.;. pm I libgnomep int22-2.<.!-3.x<.>.;. pm I libgnomep intui22-2.<.!-1.x<.>.;. pm I libgs%-1.1!.1-1.x<.>.;. pm I lib,nck-2.<.1-1. hel;.1.x<.>.;. pm I mkiso%s-2.!1.1-:.x<.>.;. pm I samba-common-3.!.1!-1.;3.2.x<.>.;. pm I ghostsc ipt-2.!2-33.x<.>.;. pm I ghostsc ipt-%onts-:.:!-13.noa ch. pm I gnutls-1.!.2!-3.2.1.x<.>.;. pm I libgnomecups-!.1.12-:.x<.>.;. pm I libsoup-2.2.1-2.x<.>.;. pm I open#ade-1.3.2-1;.x<.>.;. pm I pe l-N)8-4a se -2.3;-:.x<.>.;. pm I sgml-common-!...3-12.noa ch. pm I u ,-%onts-2.2-..1.noa ch. pm I xml-common-!...3-12.noa ch. pm I

E"lib2-2.2:..-2:.x<.>.;. pm I chk%ontpath-1.1!.!-2.x<.>.;. pm I pe l-J76-1.3!-;.noa ch. pm I pe l-lib,,,-pe l-:.2--:.noa ch. pm I xo g-x11-%ont-utils-..<.2-1.38.13.2!.x<.>.;. pm I pe l-G*)8-4a se -3.3:-..x<.>.;. pm I xo g-x11-x%s-..<.2-1.38.13.2!.x<.>.;. pm I pe l-G*)8-*agset-3.!3-3!.noa ch. pm I ttmk%di -3.!.--1;.1.38.x<.>.;. pm

10g R2 on RHEL 1! 4 ( 56) On m3 R>1L A , x7+ s3stem I ha# to install the follo$ing R(8s an# #epen#encies to meet the soft$are re?uirements/
pm -Jvh gcc-3.;.;-2.i3<.. pm I gcc-c==-3.;.;-2.i3<.. pm I libstdc==-devel-3.;.;-2.i3<.. pm I glibc-devel-2.3.;-2.13.i3<.. pm I glibc-heade s-2.3.;-2.13.i3<.. pm I glibc-ke nheade s-2.;--.1.-<.38.i3<.. pm pm -Jvh gnome-libs-1.;.1.2.-!-;;.1.i3<.. pm I compat-db-;.1.2:--.i3<.. pm I 57Kit-!.:.12-1;.i3<.. pm I gtk=-1.2.1!-33.i3<.. pm I imlib-1.-.13-23.i3<.. pm I libpng1!-1.!.1.-1.i3<.. pm I gdk-pixbu%-!.22.!-1..el;.i3<.. pm I libungi%-;.1.3-1.i3<.. pm I alsa-lib-1.!..-:.7G38;.i3<.. pm I audio%ile-!.2..-1.i3<.. pm I esound-!.2.3:-2.i3<.. pm pm -Jvh s0sstat-:.!.:-1.i3<.. pm pm -Jvh libaio-!.3.1!3-3.i3<.. pm pm -Jvh xo g-x11-dep ecated-libs-..<.2-1.38.13.2!.i3<.. pm pm -Jvh compat-libstdc==-33-3.2.3-;2.3.i3<.. pm

I #on4t 'no$ $h3 the cont ol-cente R(8 an# the xsc eensave R(8 are liste# as re?uirements. On m3 s3stem I #i# not install these R(8s since I4m against installing #es'top stuff on ser!ers. @hen I installe# 10g R2 I #i# not experience an3 problems $hen these R(8s $ere missing. @hen 3ou $ant to install cont ol-cente R(8 an# the xsc eensave < then ha!e fun. -he list can be !er3 long $ith all the #epen#encies li'e gnome-desktop< cd eco d etc..

10g R1 on RHEL 1! 4 ( 56664)

NOTE: 3o certification has been %ro4ected for 10g R1 256bit on R&*+ A7 5 (012825) at the ti$e of this writing. On m3 R>1L A , x7+B+, s3stem I installe# the follo$ing R(8s an# #epen#encies/
pm -Jvh gcc-3.;.3-22.1.x86_64. pm I cpp-3.;.3-22.1.x86_64. pm I glibc-devel-2.3.;-2.-.x86_64. pm I glibc-heade s-2.3.;-2.-.x86_64. pm I glibc-ke nheade s-2.;--.1.<2.x86_64. pm pm -Jvh glibc-devel-2.3.;-2.-.i386. pm pm -Jvh openmoti%-2.2.3--.7G38;.1.x86_64. pm I xo g-x11-dep ecated-libs-..<.2-1.38.13...x86_64. pm pm -Jvh xo g-x11-dep ecated-libs-..<.2-1.38.13...i386. pm I xo g-x11-libs-..<.2-1.38.13...i386. pm I xo g-x11-)esa-libL8-..<.2-1.38.13...i386. pm I expat-1.-:.2-;.i3<.. pm %ontcon%ig-2.2.3-2.i386. pm I % eet0pe-2.1.--1.i3<.. pm zlib-1.2.1.2-1.i386. pm pm -Jvh libgcc-3.;.3-22.1.i386. pm

=ou $ill get !arious #ifferent error messages #uring the installation if not all of these R(8s are installe# on 3our s3stem for 10g R1 +,*bit. For more information< see Oracle10g0Linux 1rrors an# (roblems. 10g R1 on RHEL 1! 4 ( 56) On m3 R>1L A , x7+ s3stem I ha# to install the follo$ing R(8s an# #epen#encies to meet the soft$are re?uirements/
pm -Jvh gcc-3.;.3--.38;.i3<.. pm I glibc-devel-2.3.;-2.i3<.. pm I glibc-heade s-2.3.;-2.i3<.. pm I glibc-ke nheade s-2.;--.1.<2.i3<.. pm pm -Jvh openmoti%-2.2.3-..7G38;.2.i3<.. pm I xo g-x11-dep ecated-libs-..<.1-23.38.i3<.. pm

.ote that the 10g 10.1.0.) O"I (ro#uct*specific (rere?uisite chec' $ill fail for the gcc< binutils< an# openmoti% !ersions. =ou can ignore these faile# chec's an# procee#. -he edhat- elease R(8 shoul# alrea#3 be installe# b3 #efault. &ut note that 10.1.0.).0 O"I #oes not recogni;e R>1L A , as a supporte# release 3et. -his means 3ou $ill ha!e to e#it the /etc/ edhat- elease file< see belo$< or 3ou appl3 the ,19)296 patch for 10g R1 on R>1L ,. 10g R2 #oes recognise R>1L A , as a supporte# platform.

10g R1 and R2 on RHEL 1! 7 ( 56)

On m3 R>1L A ) x7+ s3stem I ha# to install the follo$ing R(8s an# #epen#encies to meet the soft$are re?uirements/
pm -Jvh gcc-3.2.3-:2.i3<.. pm I cpp-3.2.3-:2.i3<.. pm I glibc-devel-2.3.2--:.33.i3<.. pm I glibc-heade s-2.3.2--:.33.i3<.. pm I glibc-ke nheade s-2.;-<.3;.1.i3<.. pm pm -Jvh compat-db-;.!.1;-:.1.i3<.. pm I compat-gcc-2.3-2.-..12<.i3<.. pm I compat-gcc-c==-2.3-2.-..12<.i3<.. pm I compat-libstdc==-2.3-2.-..12<.i3<.. pm I compat-libstdc==-devel-2.3-2.-..12<.i3<.. pm I tcl-<.3.:--2.2.i3<.. pm pm -Jvh libaio-!.3.-.-:.i3<.. pm pm -Jvh openmoti%21-2.1.3!--.7G383...i3<.. pm pm -Jvh openmoti%-2.2.3-:.7G383.2.i3<.. pm

10g R1 on RHEL 1! 7 ( 56664) On m3 R>1L A ) x7+B+, s3stem I ha# to install the follo$ing R(8s an# #epen#encies to meet the soft$are re?uirements/
pm -Jvh gcc-3.2.3-:2.x86_64. pm I cpp-3.2.3-:2.x86_64. pm I glibc-devel-2.3.2--:.33.x86_64. pm I glibc-heade s-2.3.2--:.33.x86_64. pm I glibc-ke nheade s-2.;-<.3;.1.x86_64. pm

pm -Jvh glibc-devel-2.3.2--:.33.i3<.. pm pm -Jvh compat-db-;.!.1;-:.1.x86_64. pm I compat-gcc-2.3-2.-..12<.i386. pm I compat-gcc-c==-2.3-2.-..12<.i386. pm I compat-libstdc==-2.3-2.-..12<.i386. pm I compat-libstdc==-devel-2.3-2.-..12<.i386. pm I tcl-<.3.:--2.2.x86_64. pm I libgcc-3.2.3-:2.i386. pm pm -Jvh libaio-!.3.-.-:.x86_64. pm I libaio-devel-!.3.-.-:.x86_64. pm $ 7G38 /+ 3 x<.>.; J: does not come ,ith a i3<. gnome-libs 74) pm -Jvh gnome-libs-1.;.1.2.-!-3;.2.x86_64. pm I 57Kit-!.:.12-1!.;.x86_64. pm I audio%ile-!.2.3-2.1.x86_64. pm I esound-!.2.2<-..x86_64. pm I gtk=-1.2.1!-31.x86_64. pm I imlib-1.-.13-13.;.x86_64. pm I gdk-pixbu%-!.22.!-12.el3.x86_64. pm I libpng1!-1.!.13-1:.x86_64. pm I libungi%-;.1.!-1:.x86_64. pm

$ 7G38 /+ 3 x<.>.; J: does not come ,ith a x<.>.; openmoti%21 74) pm -Jvh openmoti%21-2.1.3!--.7G383...i386. pm I N" ee<.-libs-;.3.!-<1.38.i386. pm I N" ee<.-)esa-libL8-;.3.!-<1.38.i386. pm I expat-1.-:.:-..i386. pm I %ontcon%ig-2.2.1-13.i386. pm I % eet0pe-2.1.;-;.!.i386. pm I zlib-1.1.;-<.1.i386. pm 8a'e sure to use the right i3<. an# x<.>.; R(8s as liste# abo!eA

.ote< if 3ou #on4t install the i)7+ N" ee<.-libs R(8< 3ou $ill get an error message similar to this one/ For more information< see Oracle10g0Linux 1rrors an# (roblems. 10g R1 on RHEL 1! 281 ( 56)

/tmp/5 a6nstall2!!:-!.-1:>!2-3.-2:/)/# e/1.;.2/lib/i3<./liba,t.soM libNp.so..M cannot open sha ed ob#ect %ileM Co such %ile o di ecto 0

On m3 R>1L A 2.1 x7+ s3stem I ha# to install the follo$ing R(8s an# #epen#encies to meet the soft$are re?uirements/
pm -Jvh glibc-2.2.;-32.11.i.<.. pm I glibc-common-2.2.;-32.11.i3<.. pm

pm -Jvh gcc-2.-.-1!<.1.i3<.. pm I binutils-2.11.-!.!.<-12.i3<.. pm I cpp-2.-.-1!<.1.i3<.. pm I glibc-devel-2.2.;-32.11.i3<.. pm I ke nel-heade s-2.;.--e.3.i3<.. pm pm -Jvh openmoti%-2.1.3!-11.i3<.. pm pm -Jvh edhat- elease-as-2.1/+-;.noa ch. pm

I ha# to upgra#e glibc in or#er to pass Oracle4s F(ro#uct*specific (rere?uisiteF chec's. Oracle4s recommen#e# glibc !ersion is 2.2.,.)1.6 or higher. -here is no seta ch R(8 for R>1L A 2.1. Also< it4s important to install a ne$er 'ernel !ersion for R>1L A 2.1. %efinitel3 #on4t use a 'ernel ol#er than 2.,.E*e.29. -o chec' the 'ernel !ersion run uname - . For more information on upgra#ing the 'ernel< see "pgra#ing the Linux Gernel. 10g R2 on 9edora &ore 4 ( 56) On m3 F2, s3stem I ha# to install the follo$ing R(8s an# #epen#encies to meet the soft$are re?uirements/
pm -Jvh gcc-;.!.!-<.i3<.. pm I cpp-;.!.!-<.i3<.. pm I glibc-devel-2.3.:-1!.i3<.. pm I glibc-heade s-2.3.:-1!.i3<.. pm I

glibc-ke nheade s-2.;--.1.-;.i3<.. pm pm -Jvh compat-libstdc==-33-3.2.3-;2.%c;.i3<.. pm pm -Jvh openmoti%-2.2.3-1!.i3<.. pm I xo g-x11-dep ecated-libs-..<.2-31.i3<.. pm pm -Jvh openmoti%21-2.1.3!-1;.i3<.. pm pm -Jvh libaio-!.3.1!;-2.i3<.. pm pm -Jvh selinux-polic0-ta geted-1.2:.2-;.noa ch. pm

.O-1/ I also ha# to patch the 1Linux polic3 b3 upgra#ing the selinux-polic0ta geted R(8. =ou can #o$nloa# the latest !ersion from http/00#o$nloa#.fe#ora.re#hat.com0pub0fe#ora0linux0core0up#ates0,0i)7+0. If 3ou #on4t upgra#e to a ne$er !ersion 3ou $ill get the follo$ing error/
3xception in th ead 9main9 #ava.lang.Jnsatis%ied8ink3 o M /tmp/5 a6nstall2!!:-!2-2;>!--!3-1-/)/# e/1.;.2/lib/i3<./liba,t.soM /tmp/5 a6nstall2!!:-!2-2;>!--!3-1-/)/# e/1.;.2/lib/i3<./liba,t.soM cannot esto e segment p ot a%te elocM 4e mission denied

=ou coul# also #isable 1Linux $hich I #on4t recommen#. For more information< see Oracle10g0Linux 1rrors an# (roblems. 10g R1 on 9edora &ore 7 ( 56) On m3 F2) s3stem I ha# to install the follo$ing R(8s an# #epen#encies to meet the soft$are re?uirements/
pm -Jvh gcc-3.;.2-..%c3.i3<.. pm I cpp-3.;.2-..%c3.i3<.. pm I glibc-devel-2.3.3-2;.i3<.. pm I glibc-heade s-2.3.3-2;.i3<.. pm I glibc-ke nheade s-2.;--.1.<2.i3<.. pm

pm -Jvh openmoti%-2.2.3-..i3<.. pm I xo g-x11-dep ecated-libs-..<.1-12.i3<.. pm pm -Jvh openmoti%21-2.1.3!-11.i3<.. pm pm -Jvh seta ch-1..-1.i3<.. pm

-he gcc !ersion that comes $ith F2) $ill not pass Oracle4s F(ro#uct*specific (rere?uisiteF chec's. I ignore# this $arning on F2). 10g R1 on 9edora &ore 1 ( 56) On m3 F21 s3stem I ha# to install the follo$ing R(8s an# #epen#encies to meet the soft$are re?uirements/
pm -Jvh gcc-3.3.2-1.i3<.. pm glibc-devel-2.3.2-1!1.i3<.. pm I I

cpp-3.3.2-1.i3<.. pm I glibc-heade s-2.3.2-1!1.i3<.. pm I glibc-ke nheade s-2.;-<.3..i3<.. pm I binutils-2.1;.-!.!..-3.i3<.. pm pm -Jvh openmoti%-2.2.2-1..1.i3<.. pm pm -Jvh seta ch-1.!-1.i3<.. pm

F21 is not supporte# b3 Oracle an# 3ou $ill ha!e a har# time to fin# the right R(8 !ersion for Oracle10g. I trie# to use the R(8s that came $ith the F21 2%s $hich are easil3 a!ailable to e!er3one. I #i# not ha# an3 problems installing an Oracle %atabase 10g (:eneral (urpose %atabase) on F21 $ith these R(8s. 10g R1 on Red Hat : ( 56) On m3 R>E s3stem I ha# to install the follo$ing R(8s an# #epen#encies to meet the soft$are re?uirements/
pm -Jvh openmoti%-2.2.2-1;.i3<.. pm pm -Jvh gcc-3.2.2-:.i3<.. pm glibc-devel-2.3.2-:.i3<.. pm cpp-3.2.2-:.i3<.. pm glibc-ke nheade s-2.;-<.1!.i3<.. pm binutils-2.13.-!.!.1<--.i3<.. pm I I I I

-here is no seta ch R(8 for R>E. R>E is not supporte# b3 Oracle. &'ec(ing,0pdating t'e redhat-release 9ile Herif3 that the edhat- elease R(8 is installe# on 3our Re# >at s3stem/
pm -? edhat- elease

-his R(8 is important for R>1L since R>1L A ,< R>1L A )< an# R>1L A 2.1 are Linux releases supporte# b3 Oracle. @ithout this R(8< Oracle 10g O"I $on4t be able to recogni;e it as a supporte# O . >o$e!er< the installer of 10g 10.1.0.) #oes not recogni;e R>1L A , as a supporte# release 3et. -his means that 3ou $ill ha!e to e#it the /etc/ edhat- elease file. =ou also ha!e to change /etc/ edhat- elease for unsupporte# releases li'e Fe#ora 2ore an# R>E. - do not reco$$end to e0ecute 9run nstaller!-ignore"#s$rere%s9 since this will disable other chec"s you %robably don(t want to. On R>1L A , (for 10g R1)< R>E< an# F2 1 3ou ha!e to change the /etc/ edhatelease file to ma'e Oracle 10g belie!e it4s running on a supporte# release. Regar#ing R>1L A ,< the installer for 10g 10.1.0.) #oes not recogni;e R>1L A , as a supporte# release but 10g R2 O"I #oes.

-o change the /etc/ edhat- elease file< 3ou can simpl3 cop30paste the follo$ing comman#s/
su - oot cp /etc/ edhat- elease /etc/ edhat- elease.o ig cat 1 /etc/ edhat- elease << 35" 7ed Gat 3nte p ise 8inux /+ elease 3 F*a oonH 35"

After 3ou are #one $ith the Oracle10g installation< un#o the changes 3ou ma#e to /etc/ edhat- elease/
su - oot cp /etc/ edhat- elease.o ig /etc/ edhat- elease

;O3E< On F2) 3ou #on4t ha!e to e#it /etc/ edhat- elease since the O"I is not !er3 cle!er. If O"I fin#s e.g. #igit number F)F in the /etc/ edhat- elease file< 3ou pass the Foperating s3stem !ersionF chec' since it belie!es it4s a R>1L) s3stem.

&'ec(ing .ernel -ara*eters


-o see all 'ernel parameters< execute/
su - oot s0sctl -a

For Oracle10g< the follo$ing 'ernel parameters ha!e to be set to !alues greater than or e?ual to the recommen#e# !alues $hich can be change# in the p oc files3stem/
shmmax ' 21;2;<3.;< /p oc/s0s/ke nel/shmmaxH shmmni ' ;!-. /p oc/s0s/ke nel/shmmniH shmall ' 2!-21:2 /p oc/s0s/ke nel/shmallH shmmin ' 1 size9H shmseg ' 1! much highe H semmsl ' & a,k @Bp semmns ' & a,k @Bp semopm ' & a,k @Bp semmni ' & a,k @Bp 2:! int $1D@H 32!!! int $2D@H 1!! int $3D@H 12< int $;D@H F*o ve i%0( executeM cat F*o ve i%0( executeM cat F*o ve i%0( executeM cat F%o 1!g 71H F*o ve i%0( executeM ipcs -lm &g ep 9min seg F6t@s ha dcoded in the ke nel - the de%ault is F*o ve i%0( executeM cat /p oc/s0s/ke nel/sem F*o ve i%0( executeM cat /p oc/s0s/ke nel/sem F*o ve i%0( executeM cat /p oc/s0s/ke nel/sem F*o ve i%0( executeM cat /p oc/s0s/ke nel/sem F*o ve i%0( executeM cat /p oc/s0s/%s/%ile-maxH

%ile-max ' .::3.

ip>local>po t> ange ' 1!2; .:!!! F*o ve i%0( executeM cat /p oc/s0s/net/ipv;/ip>local>po t> angeH

.O-1/ %o not change the !alue of an3 'ernel parameter on a s3stem $here it is alrea#3 higher than liste# as minimum re?uirement.

On R>1L A , x7+< R>1L A ) "9 x7+< R>1L A ) "9 x7+B+,< R>1L A 2.1< R>E< F21< F2)< an# F2, I ha# to increase the 'ernel parameters shmmax< semopm< an# %ilemax to meet the minimum re?uirement. On R>1L A , x7+B+, I ha# to increase shmmax an# semopm. Oracle also recommen#s to set the local port range ip>local>po t> ange for outgoing messages to F102, +9000F $hich is nee#e# for high*usage s3stems. -his 'ernel parameter #efines the local port range for -2( an# "%( traffic to choose from. I a##e# the follo$ing lines to the /etc/s0sctl.con% file $hich is use# #uring the boot process/
ke nel.shmmax'21;2;<3.;< ke nel.sem'2:! 32!!! 1!! 12< %s.%ile-max'.::3. net.ipv;.ip>local>po t> ange'1!2; .:!!! A##ing these lines to the /etc/s0sctl.con% file $ill cause the s3stem to change these 'ernel parameters after each boot using the /etc/ c.d/ c.s0sinit script $hich is in!o'e# b3 /etc/inittab. &ut in or#er that these ne$ a##e# lines or settings in /etc/s0sctl.con% become effecti!e imme#iatel3< execute the follo$ing comman#/ su - oot s0sctl -p

!tarting #it' 10g R2 so*e net#or( settings *ust be ad=usted as #ell #'ic' is c'ec(ed b+ O0I8 9or *ore in$or*ation on setting t'ese para*eters> see &'anging ;et#or( .ernel !ettings. For more information on shmmax< shmmni< shmmin< shmseg< an# shmall< see etting hare# 8emor3. For more information on semmsl< semmni< semmns< an# semopm< see etting emaphores. For more information on filemax< see etting File >an#les.

!i/ing Dis( !pace $or Oracle10g


Oracle sa3s that about 2.9 :& of #is' space shoul# be reser!e# for the Oracle soft$are on Linux. @hen I #i# an Oracle 10g Release 1 (10.1.0.).0) F:eneral (urpose %atabaseF installation (not inclu#ing an3 soft$are from the Oracle %atabase 10g 2ompanion 2%)< the Oracle soft$are use# about 1.) :& of #is' space< an# the preconfigure# F:eneral (urpose %atabaseF (#atafiles< etc.) use# about 610 8& of #is' space.
$ du -m 1-.3 $ du -m 22! 221 -s /u!1 /u!1 -s /u!1/app/o acle/o adata /u!1/app/o acle/o adata

If 3ou also install a##itional soft$are from the Oracle %atabase 10g 2ompanion 2%< then a## at least 1 :& of free #is' space. o if 3ou install Oracle10g 1nterprise 1#ition an# a##itional soft$are from the Oracle %atabase 10g 2ompanion 2%< then 3ou nee# about 2.9 :& of #is' for the Oracle soft$are. An# if 3ou also $ant to a## a preconfigure# #atabase on the same files3stem< ma'e sure to a## another 1 :& of #is' space. .O-1/ If 3ou #on4t put Oracle10g on a separate files3stems< then ma'e sure the root files3stem F/F has enough #is' space. =ou can chec' the free space of the root files3stem $ith the follo$ing comman#/
d% -h /

0sing 1uto*atic !torage )anage*ent (1!))


For more information on installing an# configuring A 8< see Installing an# 2onfiguring Automatic torage 8anagement (A 8) an# %is's. An# for information on ho$ to ma'e use of A 8 #is' groups $hen running O"I< see Installing Oracle %atabase 10g $ith Real Application 2luster (RA2).

&reating Oracle 0ser 1ccounts


-o create the o acle account an# groups< execute the follo$ing comman#s/
su - oot g oupadd dba $ g oup o% use s to be g anted +Q+DK/ s0stem p ivilege g oupadd oinstall $ g oup o,ne o% 5 acle %iles use add -c 95 acle so%t,a e o,ne 9 -g oinstall -L dba o acle pass,d o acle For more information on the 9oinstall9 group account< see @hen to use FOI. -ALLF

group #uring install of oracle.

!etting !'ell Li*its $or t'e Oracle 0ser


8ost shells li'e &ash pro!i#e control o!er !arious resources li'e the maximum allo$able number of open file #escriptors or the maximum number of processes a!ailable to a user. For more information on ulimit for the &ash shell< see man bash an# search for ulimit. If 3ou Dust install a small test #atabase< then 3ou might be o' $ith the current settings (note that the limits !er3 often !ar3). &ut for (larger) pro#uction #atabases< 3ou shoul# increase the follo$ing shell limits to the follo$ing !alues recommen#e# b3 Oracle/
no%ile ' .::3. np oc ' 1.3<; F*o ve i%0( executeM ulimit -nH F*o ve i%0( executeM ulimit -uH

-he no%ile option #enotes the maximum number of open file #escriptors< an# np oc #enotes the maximum number of processes a!ailable to a single user. -o see all shell limits< execute/
ulimit -a

-he follo$ing proce#ures0lin's sho$ ho$ to increase these parameters for the o acle user account/ For more information on no%ile an# ho$ to increase the limit< see etting Limits for the 8aximum .umber of Open File %escriptors for the Oracle "ser. 1!en though this proce#ure $as $ritten for OracleEi on R>A 2.1< it also applies to Oracle10g on R>1L A 2.1< R>1L A )< an# other !ersions. For more information on np oc an# ho$ to increase the limit< see etting Limits for the 8aximum .umber of (rocesses for the Oracle "ser. 1!en though this proce#ure $as $ritten for OracleEi on R>A 2.1< it also applies to Oracle10g on R>1L A 2.1< R>1L A )< an# other !ersions.

&reating Oracle Directories


For Oracle10g 3ou onl3 nee# to create the #irector3 for $57/C83>K/+3/
su - oot mkdi -p /u!1/app/o acle cho,n o acle.oinstall /u!1/app/o acle

&ut if 3ou $ant to compl3 $ith Oracle4s Optimal Flexible Architecture (OFA)< then 3ou #on4t $ant to place the #atabase files in the /u!1 #irector3 but in another #irector30files3stem0#is' li'e /u!2. -his is not a re?uirement but if 3ou $ant to compl3 $ith OFA< then 3ou might $ant to create the follo$ing #irectories as $ell/
su - oot mkdi -p /u!2/o adata/orcl cho,n o acle.oinstall /u!2/o adata/o cl

In this example< ForclF stan#s for the name of the #atabase $hich $ill also be the name of the instance. -his is t3picall3 the case for single instance #atabases. Opti*al 9le ible 1rc'itecture (O91) $or 10g R1 (10818082) -he OFA stan#ar# is a gui#eline create# b3 Oracle to ensure reliable Oracle installations. For Oracle 10g %atabase< the OFA recommen#e# Oracle home path has change#. -he home path for the first 10g (10.1.0) #atabase installation on a s3stem $oul# be/
/u!1/app/o acle/p oduct/1!.1.!/db_1

If 3ou $oul# install a secon# Oracle 10g %atabase 10g (10.1.0) on the same s3stem< the Oracle home #irector3 $oul# be as follo$s/
/u!1/app/o acle/p oduct/1!.1.!/db>2

If the Oracle10g soft$are is not o$ne# b3 the user o acle but b3 the user Forao$nerF< then the path of the Oracle home #irector3 $oul# be/
/u!1/app/oraowner/p oduct/1!.1.!/db>1 /u!1/app/oraowner/p oduct/1!.1.!/db>2

-he stan#ar# #irector3 name for Oracle10g is FappF/


/u!1/app/o acle/p oduct/1!.1.!/db>1

Oracle recommen#s to use mount points such as /u!1< /u!2< etc. $hich complies $ith the OFA gui#elines. &ut others can be use#< for example/
/disk_1/app/o acle/p oduct/1!.1.!/db>1

-he subtree for #atabase files not store# in A 8 #is' groups shoul# be name# as follo$s/
/u02/o /u02/o /u03/o /u03/o adata/<db_name_11 adata/<db_name_21 adata/<db_name_11 adata/<db_name_21 mount point /u!1 shoul# be

-he use# for the Oracle soft$are onl3. /u!2< /u!3< /u!; etc. shoul# be use# for the #atabase files. -he db>name stan#s for the DK>C/)3 initiali;ation parameter $hich is t3picall3 the same as the I% name for single instance #atabases.

!etting Oracle En2iron*ents


ince the Oracle "ni!ersal Installer (O"I) F un6nstalle F is run from the o acle account< some en!ironment !ariables must be configure# for this account before O"I is starte#. 1xecute the follo$ing comman#s for the &ash shell $hich is the #efault shell on Re# >at Linux (to !erif3 3our shell run/ echo $+G388)/
su - o acle expo t 57/C83>K/+3'/u!1/app/o acle expo t 57/C83>+6D'o cl

;O3E< I$ ORA !"_#A$" is used> t'en Oracle reco**ends t'at +ou don?t set t'e ORA !"_%O&" en2iron*ent 2ariable but t'at +ou c'oose t'e de$ault pat' suggested b+ t'e O0I8 @ou can set and use ORA !"_%O&" a$ter +ou $inis'ed running O0I8 Also< the en!ironment !ariables 57/C83>G5)3 an# *C+>/D)6C shoul# not be set. If 3ou4!e alrea#3 set these en!ironment !ariables< 3ou can unset them b3 running the follo$ing comman#s/
unset 57/C83>G5)3 unset *C+>/D)6C

-o ha!e these en!ironment !ariables set automaticall3 each time 3ou login as o acle< 3ou can a## these en!ironment !ariables to the Ro acle/.bash>p o%ile file $hich is the user startup file for the &ash shell on Re# >at Linux. -o #o this 3ou coul# simpl3 cop30paste the follo$ing comman#s to ma'e these settings permanent for 3our o acle4s &ash shell/
su - o acle cat 11 Ro acle/.bash>p o%ile << 35"

expo t 57/C83>K/+3'/u!1/app/o acle expo t 57/C83>+6D'o cl 35"

Installing Oracle10g
Installing Oracle10g on a Re*ote Linu !er2er If 3ou #on4t install Oracle on 3our local s3stem but on a remote ser!er< then 3ou nee# to relin' C to 3our local #es'top. -he easiest $a3 to #o this is to use the FC11 for$ar#ingF feature of ssh. -his means that 3ou #on4t ha!e to run xhost an# set the D6+48/Q en!ironment !ariable. >ere is an example ho$ to ma'e use of the FC11 for$ar#F feature of ssh. impl3 run the follo$ing comman# from 3our local #es'top/
$ ssh -N o acleSo acle> emote>se ve >name

.o$ $hen 3ou tr3 to run an3 :"I tool on the remote ser!er< it $ill automaticall3 be relin'e# to 3our local #es'top. If this is not $or'ing< !erif3 that the "o ,a dN11 setting is not set to FnoF in /etc/ssh/ssh>con%ig on the remote ser!er/
su - oot $ g ep "o ,a dN11 /etc/ssh/ssh>con%ig & g ep -v 9T$9 "o ,a dN11 0es $ If 3ou are using telnet< ho$e!er< 3ou $ill ha!e to set D6+48/Q manuall3<

see m3 other

article tarting runInstaller for more information. !tarting Oracle 0ni2ersal Installer Insert the Oracle 2% that contains the image of the #o$nloa#e# file ship.db.lnx32.cpio< or change to the #irector3 that contains the image #irector3 Disk1. If 3ou install Oracle10g from a 2%< mount the 2% b3 running the follo$ing comman#s in another terminal/
su - oot mount /mnt/cd om

For R>1L A ,< R>1L A )< an# F2) 3ou ha!e to execute/
su - oot mount /media/cd om

&efore 3ou execute un6nstalle < ma'e sure the Oracle en!ironment !ariables are set< see etting Oracle 1n!ironments. =ou can !erif3 the settings b3 running the set comman#/
su - o acle o acle$ set

-o execute un6nstalle from the mounte# 2%< run the follo$ing comman# as the o acle user/
o acle$ /mnt/cd om/ un6nstalle

On R>1L A ,< R>1L A )< an# F2) run the follo$ing comman#/
o acle$ /media/cd om/ un6nstalle

0sing Oracle 0ni2ersal Installer (O0I) -he follo$ing example sho$s ho$ to install x7+ Oracle 10g Release 1 %atabase oft$are an# a F:eneral (urposeF #atabase/ (3ote, the screens and )uestions will loo" different if you install 10g R. or 256bit 10g R1 database)
- Uelcome +c eenM the de%ault - Kasic 6nstallationM Checked it ,hich is Jse de%aultM 6 used the de%aultM Jse de%aultM dba 6 checked it %o this o cl *0pe in the pass,o d "o this a ticle 6 did

- 5 acle Gome 8ocationM /u!1/app/o acle/p oduct/1!.1.!/db>1 - 6nstallation *0peM 3nte p ise 3dition - JC6N DK/ L oupM - C eate +ta te DatabasesM example ,hich is the de%ault - Llobal Database CameM - Database pass,o dM %o +Q+( +Q+*3)( +Q+)/C( and DK+C)4 accounts - /dvanced 6nstallationM not check it Click Cext

- +peci%0 6nvento 0 di ecto 0 and c edentialsM - "ull path o% the invento 0 di ecto 0M Jse de%aultM /u!1/app/o acle/o a6nvento 0 - +peci%0 5pe ating +0stem g oup nameM Jse de%aultM oinstall Click Cext - / ,indo, pops up to un the o ainst7oot.sh sc iptM 7un the sc ipt in anothe te minalM su - oot $ /u!1/app/o acle/o a6nvento 0/o ainst7oot.sh C eating the 5 acle invento 0 pointe %ile F/etc/o a6nst.locH Changing g oupname o% /u!1/app/o acle/o a6nvento 0 to oinstall. $ Click Continue - 4 oduct-speci%ic 4 e e?uisite ChecksM Ee i%0 that all checks have been passed. &ake'sure'that'the'status'o('ea)h' he)k'is'set'to' *$u))eeded*.

'''''''''''''''''''''On'R%"!'A$'4'i+nore'the'warnin+s'(or'binutils,' +)),'and'open-oti('and'pro)eed. 6% a check %ailed( see 5 acle1!g 6nstallation 3 o s on 8inux. Cote that the 97et 09 button doesn@t ,o k a%te 0ou %ixed one o% the %ailed checks. Click Cext - +elect Database Con%igu ationM 6 selected 9Lene al 4u pose9. Click Cext - +peci%0 Database Con%igu ation 5ptionsM - Llobal Database CameM 6 used 9o cl9. - +6DM 6 used 9o cl9. Click Cext - +elect Database )anagement 5ptionM 6 selected 9Jse Database Cont ol %o )anagement9. Click Cext Database

- +peci%0 Database "ile +to age 5ptionM 6 selected 9"ile +0stem9. - "ile +0stem - +peci%0 Database %ile locationM /u!1/app/o acle/o adata/ 6% 0ou ,ant to compl0 ,ith 5"/( 0ou might ,ant to select anothe mount point than @/u!1@( e.g. /u!2/o adata. Click Cext - +peci%0 Kackup and 7ecove 0 5ptionsM "o m0 test installation 6 selected 9Do no enable /utomated Kackups9. Click Cext - +peci%0 Database +chema 4ass,o dsM &a'e!sure!that!the!pass(ord)s*!don+t!start!(ith!a! digit!number,!-ther(ise!#ou !!!!!!!!!!!!!!!!!!!!!(ill!later!get!error!message)s*!li'e!.-/0-00188! missing!or!in2alid!pass(ord.. Click Cext - +umma 0M Click 6nstall

6% 3nte p ise manage con%igu ation %ails due to po t allocation p oblems( check out 5 acle1!g/8inux 3 o s and 4 oblems. Uhen a ,indo, pops up to execute the sc ipt in anothe te minal as un the ootM oot.sh sc ipt(

su - oot $ /u!1/app/o acle/p oduct/1!.1.!/db>1/ oot.sh

7unning 5 acle1! oot.sh sc ipt... In*he %ollo,ing envi onment va iables a e set asM 57/C83>5UC37' o acle 57/C83>G5)3' /u!1/app/o acle/p oduct/1!.1.!/db>1 3nte the %ull pathname o% the local bin di ecto 0M V/us /local/binWM Cop0ing dbhome to /us /local/bin ... Cop0ing o aenv to /us /local/bin ... Cop0ing co aenv to /us /local/bin ... InC eating /etc/o atab %ile... /dding ent 0 to /etc/o atab %ile... 3nt ies ,ill be added to the /etc/o atab %ile as Database Con%igu ation /ssistant ,hen a database "inished unning gene ic pa t o% oot.sh sc ipt. Co, p oduct-speci%ic oot actions ,ill be pe %o med. /va /opt/o acle does not exist. C eating it no,. /etc/o acle does not exist. C eating it no,. +uccess%ull0 accumulated necessa 0 5C7 ke0s. C eating 5C7 ke0s %o use @ oot@( p ivg p 5pe ation success%ul. 5 acle Cluste 7egist 0 %o initialized /dding to inittab Checking the status o% 5 acle init p ocess... 3xpecting the C7+ daemons to be up ,ithin .!! C++ is active on these nodes. ma s C++ is active on all nodes. 5 acle C++ se vice is installed and unde initF1)H $ Click 5X - 3nd o% 6nstallationM Click 3xit cluste has been

needed b0 is c eated

@ oot@..

seconds.

unning

0pdates a$ter Running Oracle 0ni2ersal Installer After Oracle10g has been installe#< ma'e sure that 57/C83>G5)3< 4/*G< an# 8D>86K7/7Q>4/*G are set for the o acle account. 3ote that the %ath for -/0345_6-&5 $ight be different on your syste$# Also note that 47_4 8/0/9_$0:6 is needed for so$e Oracle binaries such as s0s esvA

For 10g R1 (10.1.0.)) I a##e# the follo$ing lines to the Ro acle/.bash>p o%ile file/
expo t 57/C83>G5)3'$57/C83>K/+3/p oduct/1!.1.!/db>1 expo t 4/*G'$4/*GM$57/C83>G5)3/bin expo t 8D>86K7/7Q>4/*G'$57/C83>G5)3/lib For 10g R2 (10.2.0.1.0) I a##e# the follo$ing lines to the Ro acle/.bash>p o%ile expo t 57/C83>G5)3'$57/C83>K/+3/o acle/p oduct/1!.2.!/db>1 expo t 4/*G'$4/*GM$57/C83>G5)3/bin expo t 8D>86K7/7Q>4/*G'$57/C83>G5)3/lib

file/

After that run the follo$ing comman# to set all en!ironment !ariables in Ro acle/.bash>p o%ile/
$ . Ro acle/.bash>p o%ile

-his commman# $ill a## the en!ironment !ariables to the Ro acle/.p o%ile an# source in the file for the current shell b3 executing F. Ro acle/.bash>p o%ileF. .O-1/ %o not a## a trailing F0F on the 57/C83>G5)3 en!ironment !ariable. Other$ise 3ou $ill get the error F57/C83 not availableF $hen 3ou tr3 to connect to s3s< see Oracle10g0Linux 1rrors an# (roblems for more information.

Oracle -ost-installation 3as(s


:efore you continue, $a"e sure you followed the ste%s at /%dates after Running Oracle /ni'ersal -nstaller. !tartup and !'utdo#n o$ t'e Oracle10g Database -o startup the #atabase/
o acle$ s?lplus /nolog +Y81 connect / as s0sdba +Y81 sta tup

-o shut#o$n the #atabase/


o acle$ s?lplus /nolog +Y81 connect / as s0sdba +Y81 shutdo,n

-he slash connects 3ou to the schema o$ne# b3 = . In the abo!e example 3ou $ill be connecte# to the schema o$ne# b3 = $ith the pri!ilege = %&A. = %&A gi!es 3ou the follo$ing pri!ileges/ * s3soper pri!ileges @I-> A%8I. O(-IO. * create #atabase * reco!er #atabase until !'utdo#n o$ ot'er Oracle 10g %ac(ground -rocesses If 3ou installe# a preconfigure# #atabase using O"I< then se!eral Oracle bac'groun# processes are no$ running on 3our ser!er. 1xecute the follo$ing comman# to see the bac'groun# processes/

ps -e%

-o shut#o$n the Oracle bac'groun# processes after an Oracle %atabase 10g installation< 3ou can execute the follo$ing comman#s/ i ILJ(lus -o stop i ILJ(lus< run/ %atabase 8anagement (rocesses %uring the installation of Oracle 10g< O"I offere# t$o %atabase 8anagement Options/ If 3ou selecte# F%atabase 2ontrol for %atabase 8anagementF< then the Oracle 1nterprise 8anager %atabase 2ontrol (%atabase 2ontrol) can be shut#o$n $ith the follo$ing comman# $hich stops both the agent an# the Oracle 2ontainers for Ka!a (O2,K) management ser!ice/
su - o acle emctl stop dbconsole su - o acle is?lplusctl stop

If 3ou selecte# F:ri# 2ontrol for %atabase 8anagementF $hich is use# for full F:ri# 2ontrolF installations< then the Oracle 8anagement Agent (stan#alone agent) for the Oracle 1nterprise 8anager :ri# 2ontrol (:ri# 2ontrol) can be stoppe# $ith the follo$ing comman#/ Oracle .et Listener -o stop the listener< run/ 2luster 3nchroni;ation er!ices (2 ) -o shut#o$n Oracle 2 #aemon< run/
su - oot /etc/ c.d/init.d/init.cssd stop su - o acle lsn ctl stop su - o acle emctl stop agent

3ips and Hints $or Oracle10g on Linu


-o reinstall Oracle10g after a faile# installation attempt< 3ou might $ant to execute the follo$ing comman#s. 8a'e sure 3ou first use# the %e*installation option in O"I.
su oot expo t 57/C83>G5)3'/u!1/app/o acle/p oduct/1!.1.!/db>1 . $57/C83>G5)3/bin/localcon%ig delete $ stops the 5 acle C++ daemon and deletes con%igu ation m - % /u!1/app/o acle/Z m -% /etc/o a6nst.loc /etc/o atab m - % /etc/o acle

m -% /etc/inittab.cssd m -% /us /local/bin/co aenv /us /local/bin/dbhome /us /local/bin/o aenv 8a'e also sure to unset an# uncomment 57/C83>G5)3 from Ro acle/.bash>p o%ile.

Oracle10g,Linu Errors and -roble*s


>ere is a list of common Oracle10g installation problems an# other issues. 3ote that $ost of the issues are due to not following correctly the installation %rocedure. And so$e errors are due to not using an Oracle su%%orted +inu0 O7. -he Installation log file can be foun# in $57/C83>K/+3/o a6nvento 0/logs. -he %atabase 2reation log file can be foun# in $57/C83>K/+3/admin/ $57/C83>+6D/c eate.
+ta ting 5 acle Jnive sal 6nstalle ... Checking installe e?ui ements...

Checking ope ating s0stem ve sionM must be edhat-2.1( Jnited8inux1.! o edhat-3 .ailed <<<< 3xiting 5 acle Jnive sal 6nstalle ( log %o at ... this session can be %ound

ee 2hec'ing0"p#ating the re#hat*release File for more information.


Checking %o gcc-2.-.P %ound Cot %ound. "ailed <<<<

ee 2hec'ing oft$are (ac'ages (R(8s) for more information. .ote that FRetr3F in the F(ro#uct*specific (rere?uisite 2hec'sF $in#o$ #oes not $or'. o 3ou either set it manuall3 to (asse# or 3ou restart O"I.
Checking %o openmoti%-2.1.3!-11P %ound Cot %ound. "ailed <<

ee 2hec'ing oft$are (ac'ages (R(8s) for more information. .ote that FRetr3F in the F(ro#uct*specific (rere?uisite 2hec'sF $in#o$ #oes not $or'. o 3ou either set it manuall3 to (asse# or 3ou restart O"I.
Checking %o

Increase the

shmmax'21;2;<3.;<P %ound shmmax'33::;;32. shmmax 'ernel parameter.

"ailed <<<<

For more information on shmmax< see 2hec'ing Gernel (arameters.

.ote that FRetr3F in the F(ro#uct*specific (rere?uisite 2hec'sF $in#o$ #oes not $or'. o 3ou either set it manuall3 to (asse# or 3ou restart O"I.
Checking %o

Increase the

semopm'1!!P %ound semopm'32. semopm 'ernel parameter.

"ailed <<<<

For more information on semopm< see 2hec'ing Gernel (arameters. .ote that FRetr3F in the F(ro#uct*specific (rere?uisite 2hec'sF $in#o$ #oes not $or'. o 3ou either set it manuall3 to (asse# or 3ou restart O"I.
Checking %o %ilemax'.::3.P %ound %ilemax'2.1.3. "ailed <<<<

Increase the %ile-max 'ernel parameter/ For more information on %ile-max< see 2hec'ing Gernel (arameters. .ote that FRetr3F in the F(ro#uct*specific (rere?uisite 2hec'sF $in#o$ #oes not $or'. o 3ou either set it manuall3 to (asse# or 3ou restart O"I.
57/-!1!3;M 57/C83 not available 57/-221!1M sha ed memo 0 ealm does not exist 8inux 3 o M 2M Co such %ile o di ecto 0 o 57/-!1!3;M 57/C83 not available First chec' if 57/C83>+6D is set correctl3. If 57/C83>+6D is set correctl3< then 3ou probabl3 ha!e a trailing slash F0F on the 57/C83>G5)3 en!ironment !ariable. Remo!e it an# tr3 again to connect to s3s (e.g from 57/C83>G5)3'/u!1/app/o acle/p oduct/1!.1.!/db>1/ to 57/C83>G5)3'/u!1/app/o acle/p oduct/1!.1.!/db>1). 57/-!!-<< missing o invalid pass,o dFsH.

%uring the Oracle10g installation 3ou probabl3 pro!i#e# a pass$or# for the Oracle #atabase accounts that starte# $ith a #igit number. Ignore this error message an# change the pass$or# $hen 3ou are #one $ith the Oracle10g installation.
$ s0s esv -i s0s esvM e o ,hile loading sha ed lib a iesM libclntsh.so.1!.1M cannot open sha ed ob#ect %ileM Co such %ile o di ecto 0 8a'e sure 8D>86K7/7Q>4/*G is set to $57/C83>G5)3/lib/ o acle$ expo t 8D>86K7/7Q>4/*G'$57/C83>G5)3/lib

N11 connection e#ected because o% , ong authentication. N connection to localhostM1!.! b oken Fexplicit kill o se ve shutdo,nH.

-o rectif3 this problem< tr3 to login to the remote Oracle ser!er again b3 using the FC11 for$ar#F feature of ssh. 1xecute the follo$ing comman# from 3our local #es'top/
$ ssh -N o acleSo acle> emote>se ve >name

.o$ $hen 3ou tr3 to run an3 :"I tool on the remote ser!er< it $ill automaticall3 be relin'e# to 3our local #es'top. If this is not $or'ing< !erif3 that the "o ,a dN11 setting is not set to FnoF in /etc/ssh/ssh>con%ig on 3our remote ser!er/
su - oot $ g ep "o ,a dN11 /etc/ssh/ssh>con%ig & g ep -v 9T$9 "o ,a dN11 0es $

.O-1/ If 3ou use for example Re# >at Fe#ora 2ore ) as 3our #es'top an# 3ou $ant to install the #atabase on another machine< then 3ou nee# to set the Disallo,*C4 entr3 in /etc/N11/gdm/gdm.con% for the :.O81 %ispla3 8anager to rea#/
Disallo,*C4'%alse

After that 3ou nee# to restart 3our C ser!er. I usuall3 #o this $ith the init comman#/
su - oot init 3 init :

If 3ou are using telnet< ho$e!er< 3ou $ill ha!e to set D6+48/Q manuall3< see m3 other article tarting runInstaller for more information. Reco!er3 8anager man hangs =ou are probabl3 running the $rong man binar3 $hich belongs to the N" ee<.devel R(8/
$ ,hich man /us /N117./bin/ man 57/-!!-<< missing o invalid pass,o dFsH.

%uring the Oracle10g installation 3ou probabl3 pro!i#e# a pass$or# for the Oracle #atabase accounts that starte# $ith a #igit number. Ignore this error message an# change the pass$or# $hen 3ou are #one $ith the Oracle10g installation.
$ ./ un6nstalle ...

3xception #ava.lang.Jnsatis%ied8ink3 o M /tmp/5 a6nstall2!!:-!.1:>!2-3.-2:/)/# e/1.;.2/lib/i3<./liba,t.soM libNp.so..M cannot open sha ed ob#ect %ileM Co such %ile o di ecto 0 occu ed.. #ava.lang.Jnsatis%ied8ink3 o M /tmp/5 a6nstall2!!:-!.-1:>!2-3.2:/)/# e/1.;.2/lib/i3<./liba,t.soM libNp.so..M cannot open sha ed ob#ect %ileM Co such %ile o di ecto 0 at #ava.lang.Class8oade $Cative8ib a 0.loadFCative )ethodH at #ava.lang.Class8oade .load8ib a 0!FClass8oade .#avaM1:.!H at #ava.lang.Class8oade .load8ib a 0FClass8oade .#avaM1;22H ...

=ou ma3 get this error message on R>1L) x7+B+,< R>1L, x7+B+,< an# on other s3stems. 1!en though 3ou most probabl3 ha!e /us /N117./lib.;/libNp.so..

installe# on 3our s3stem< this error messages is complaining that it can4t fin# the libNp.so.. share# librar3 for i)7+/
/tmp/5 a6nstall2!!:-!.-1:>!2-3.2:/)/# e/1.;.2/lib/i386/liba,t.soM libNp.so..M cannot open sha ed ob#ect %ileM Co such %ile o di ecto 0

On m3 R>1L) x7+B+, s3stem for 10g (10.1.0.)) I ha# to install the i)7+ N" ee<.-libs pac'age (N" ee<.-libs-;.3.!-<1.38.i386. pm). In or#er to satisf3 #epen#encies for this i)7+ pac'age< I ha# to install a fe$ other i)7+ R(8s as $ell/
$ pm -ivh N" ee<.-libs-;.3.!-<1.38.i3<.. pm I N" ee<.-)esa-libL8-;.3.!-<1.38.i3<.. pm I expat-1.-:.:-..i3<.. pm I %ontcon%ig-2.2.1-13.i3<.. pm I % eet0pe-2.1.;-;.!.i3<.. pm I zlib-1.1.;-<.1.i3<.. pm

On m3 R>1L, x7+B+, "1 s3stem for 10g (10.1.0.)) I ha# to install the i)7+ xo g-x11-dep ecated-libs pac'age (xo g-x11-dep ecated-libs-..<.21.38.13...i386. pm). In or#er to satisf3 #epen#encies for this i)7+ pac'age< I ha# to install a fe$ other i)7+ R(8s as $ell/
$ pm -Jvh xo g-x11-dep ecated-libs-..<.2-1.38.13...i3<.. pm I xo g-x11-libs-..<.2-1.38.13...i3<.. pm I xo g-x11-)esa-libL8-..<.2-1.38.13...i3<.. pm I expat-1.-:.2-;.i3<.. pm I %ontcon%ig-2.2.3-2.i3<.. pm I % eet0pe-2.1.--1.i3<.. pm I zlib-1.2.1.2-1.i3<.. pm

On m3 R>1L, x7+B+, "2 s3stem for 10g R2 (10.2.0.1.0) I ha# to install the i)7+ xo g-x11-dep ecated-libs pac'age (xo g-x11-dep ecated-libs-..<.21.38.13.2!.i386. pm). In or#er to satisf3 #epen#encies for this i)7+ pac'age< I ha# to install a fe$ other i)7+ R(8s as $ell/
pm -Jvh xo g-x11-dep ecated-libs-..<.2-1.38.13.2!.i386. pm I xo g-x11-libs-..<.2-1.38.13.2!.i386. pm I xo g-x11-)esa-libL8-..<.2-1.38.13.2!.i386. pm I expat-1.-:.2-;.i386. pm I %ontcon%ig-2.2.3-2.i386. pm I % eet0pe-2.1.--1.i386. pm I zlib-1.2.1.2-1.2.i386. pm

On m3 R>1L, x7+ "2 s3stem for 10g R2 (10.2.0.1.0) I ha# to install the follo$ing R(8/

pm -Jvh xo g-x11-dep ecated-libs-..<.2-1.38.13.2!.i3<.. pm

If 3ou get this error message on Fe#ora 2ore ) x7+< install the xo g-x11dep ecated-libs R(8. For example/
$ pm -Jvh xo g-x11-dep ecated-libs-..<.1-12."C3.21

After I installe# these R(8s I ha# to restart the installation. If 3ou 'no$ a more elegant $a3 to continue< please #rop me an email.

make -% /u!1/app/o acle/5 aGome>1/s0sman/lib/ins>s0sman.mk elink>sha edob# +G/73D5K['libnmemso makeV1WM 3nte ing di ecto 0 O/u!1/app/o acle/5 aGome>1/s0sman/lib@ gcc -o /u!1/app/o acle/5 aGome>1/s0sman/lib/libnmemso.so -m32 ... ... /us /bin/ldM c ti.oM Co such %ileM Co such %ile o di ecto 0 collect2M ld etu ned 1 exit status makeV1WM ZZZ V/u!1/app/o acle/5 aGome>1/s0sman/lib/libnmemso.soW 3 o 1

=ou ma3 get this error message or a similar one $hen installing +,*bit 10g on R>1L, x7+B+,. On m3 R>1L, "1 x7+B+, s3stem for 10g (10.1.0.)) I installe# the follo$ing i756 R(8 to fix this problem/
$ pm -Jvh glibc-devel-2.3.;-2.-.i386. pm

On m3 R>1L, "2 x7+*+, s3stem for 10g R2 (10.2.0.1.0) I installe# the follo$ing i756 R(8 to fix this problem/
$ pm -Jvh glibc-devel-2.3.;-2.13.i386. pm make -% /u!1/app/o acle/5 aGome>1/s0sman/lib/ins>s0sman.mk elink>sha edob# +G/73D5K['libnmemso makeV1WM 3nte ing di ecto 0 O/u!1/app/o acle/5 aGome>1/s0sman/lib@ gcc -o /u!1/app/o acle/5 aGome>1/s0sman/lib/libnmemso.so -m32 ... ... /us /bin/ldM cannot %ind -lgcc>s>32 collect2M ld etu ned 1 exit status makeV1WM 8eaving di ecto 0 O/u!1/app/o acle/5 aGome>1/s0sman/lib@ makeV1WM ZZZ V/u!1/app/o acle/5 aGome>1/s0sman/lib/libnmemso.soW 3 o 1

=ou ma3 get this error message or a similar one $hen installing +,*bit 10g on R>1L, x7+B+,. On m3 R>1L, "1 x7+B+, s3stem for 10g (10.1.0.)) I installe# the follo$ing i756 R(8 to fix this problem/
$ pm -Jvh libgcc-3.;.3-22.1.i386. pm

On m3 R>1L, "2 x7+B+, s3stem for 10g R2 (10.2.0.1.0) I installe# the follo$ing i756 R(8 to fix this problem/
$ pm -Jvh libgcc-3.;.;-2.i386. pm e o ,hile loading sha ed lib a iesM libaio.so.1M cannot open sha ed ob#ect %ileM Co such %ile o di ecto 0 8a'e sure the libaio R(8 is installe#.

For example in R>1L ) x7+/


$

pm -Jvh libaio-!.3.-.-:.i3<.. pm

For example in R>1L , "2 x7+B+,/

pm -Jvh libaio-!.3.1!3-3.x86_64. pm

$ ./ un6nstalle ...

3xception in th ead 9main9 #ava.lang.Jnsatis%ied8ink3 o M /tmp/5 a6nstall2!!:-!2-2;>!--!3-1-/)/# e/1.;.2/lib/i3<./liba,t.soM /tmp/5 a6nstall2!!:-!2-2;>!--!3-1-/)/# e/1.;.2/lib/i3<./liba,t.soM cannot esto e segment p ot a%te elocM 4e mission denied at #ava.lang.Class8oade $Cative8ib a 0.loadFCative )ethodH at #ava.lang.Class8oade .load8ib a 0!FJnkno,n +ou ceH at #ava.lang.Class8oade .load8ib a 0FJnkno,n +ou ceH ...

I sa$ this error $hen I installe# 10g R2 on Fe#ora 2ore ,. I fixe# it b3 patchting0upgra#ing the 1Linux polic3/
$ pm -Jvh selinux-polic0-ta geted-1.2:.2-;.noa ch. pm =ou can #o$nloa# the latest selinux-polic0-ta geted R(8 from

http/00#o$nloa#.fe#ora.re#hat.com0pub0fe#ora0linux0core0up#ates0,0i)7+0. =ou coul# also #isable 1Linux $hich I %O .O- recommen#/


$ /us /sbin/seten%o ce ! 3 o in invoking ta get @all>no>o cl@ o% make%ile @/u!1/app/o acle/o acle/p oduct/1!.2.!/db>1/ dbms/lib/ins> dbms.mk@. +ee @/u!1/app/o acle/o a6nvento 0/logs/install/ctions2!!:-11-13>!1-!2!;/).log@ %o details.

-he log file sho$e# the follo$ing error/


6C"5M gccM 6C"5M /us /lib.;/libstdc==.so.:M Co such %ile o 6C"5M di ecto 0

6C"5M /u!1/app/o acle/o acle/p oduct/1!.2.!/db>1/bin/geno asdkshM "ailed to link libo asdkbase.so.1!.2 6C"5M makeM ZZZ Vlibo asdkbaseW 3 o 1

On m3 R>1L, "2 x7+B+, s3stem for 10g R2 (10.2.0.1.0) I installe# the follo$ing 56664 R(8 to fix this problem/
$ pm -Jvh compat-libstdc==-33-3.2.3-;2.3.x86_64. pm .ote that 3ou ma3 alrea#3 ha!e the Fi)7+F compat-libstdc==-33

R(8 installe# on 3our s3stems but 3ou nee# the Fx7+B+,F R(8 to fix this problem. -o !erif3 $hich compat-libstdc==-33 R(8 3ou ha!e installe# on 3our s3stem< run/
$ pm -? --?% @ABC/)3D-ABE37+65CD-AB7383/+3D compat-libstdc==-33 FAB/7CGDHIn@

3 o in invoking ta get @all>no>o cl ihsodbc@ o% make%ile @/u!1/app/o acle/o acle/p oduct/1!.2.!/db>1/ dbms/lib/ins> dbms.mk@. +ee @/u!1/app/o acle/o a6nvento 0/logs/install/ctions2!!:-!2-2;>!-2:-22/).log@ %o details.

-he log file sho$e# the follo$ing error/


6C"5M C eating /u!1/app/o acle/o acle/p oduct/1!.2.!/db>1/lib/libo asdkbase.so.1 !.2

6C"5M gccM 6C"5M /us /lib/libstdc==.so.:M Co such %ile o 6C"5M

di ecto 0

6C"5M /u!1/app/o acle/o acle/p oduct/1!.2.!/db>1/bin/geno asdkshM "ailed to link libo asdkbase.so.1!.2

-his means that the F))F !ersion of the compat-libstdc== R(8 is missing. On m3 R>1L , "2 x7+ s3stem for 10g R2 (10.2.0.1.0) I installe# the follo$ing R(8 to fix this problem/
$ pm -Jvh compat-libstdc==-33-3.2.3-;2.3.i3<.. pm .O-1/ =ou nee# the F))F !ersion of the compat-libstdc== R(8. For i)7+ there is also a F2E+F !ersion of the compat-libstdc== R(8. >ere are the t$o compat-libstdc== R(8s that come $ith R>1L , "2/ compat-libstdc==-2/6-2.-.-132.2.2.i3<.. pm compat-libstdc==-33-3.2.3-;2.3.i3<.. pm

In Fe#ora 2ore , x7+ I installe# the follo$ing R(8 to fix this problem/
$ pm -Jvh compat-libstdc==-33-3.2.3-;2.%c;.i3<.. pm

.O-1/ =ou nee# the F))F !ersion of the compat-libstdc== R(8. For i)7+ there is also a F2E+F !ersion of the compat-libstdc== R(8. >ere are the t$o compat-libstdc== R(8s that come $ith F2,/
compat-libstdc==-2/6-2.-.-132.%c;.i3<.. pm compat-libstdc==-33-3.2.3-;2.%c;.i3<.. pm

After that hit Retr3 in the error #ialog $in#o$.


3 o in invoking ta get @all>no>o cl@ o% make%ile @/u!1/app/o acle/o acle/p oduct/1!.2.!/db>1/ dbms/lib/ins> dbms.mk@. +ee @/u!1/app/o acle/o a6nvento 0/logs/install/ctions2!!:-11-13>!12:-;-/).log@ %o details.

-he log file sho$e# the follo$ing error/


6C"5M /us /bin/ldM /u!1/app/o acle/o acle/p oduct/1!.2.!/db>1/lib/libi c.aF%ast>memc p0.oHM elocation 7>N<.>.;>4C32 against O>memcp0>mem>ops>method@ can not be used ,hen making a sha ed ob#ectP ecompile ,ith -%46C /us /bin/ldM %inal link %ailedM Kad value collect2M ld etu ned 1 exit status 6C"5M /u!1/app/o acle/o acle/p oduct/1!.2.!/db>1/bin/geno asdkshM "ailed to link libo asdkbase.so.1!.2

-his error comes up $hen installing 10g R2 (10.2.0.1.0) on R>1L, x7+B+,. 8a'e sure to upgra#e to R>1L, ") or to #o$nloa# the binutils R(8 from https/00rhn.re#hat.com0 or from http/00oss.oracle.com0proDects0compat* oracle0files0Re#>at0/
$ pm -Jvh --%o ce binutils-2.1:.-2.!.2-13.!.!.!.2.x86_64. pm

For more information on this bug< see &ug;illa &ug +6E.

57/-12:;2M *C+Mlost contact

-here can be man3 reasons for this error. For example< this can happen #uring A 8 instance startup $hen the libaio R(8 is not installe# on the s3stem.
$ lsn ctl sta t ...

Connecting to FD3+C764*65C'F/DD73++'F475*5C58'64CHFX3Q'3N*475CHHH *C+-12:;2M *C+Mlost contact *C+-12:.!M *C+Mp otocol adapte e o *C+-!!:12M 8ost contact 8inux 3 o M 1!;M Connection eset b0 pee Connecting to FD3+C764*65C'F/DD73++'F475*5C58'*C4HFG5+*'centau iH F457*'1:21HHH *C+-12:;2M *C+Mlost contact *C+-12:.!M *C+Mp otocol adapte e o *C+-!!:12M 8ost contact 8inux 3 o M 1!;M Connection eset b0 pee 8a'e sure the loopbac' entr3 in /etc/hosts is not missing $hen 3ou start the

listener/

122.!.!.1

.o$ tr3 to run

localhost.localdomain localhost lsn ctl sta t as o acle again.

You might also like