Professional Documents
Culture Documents
10|TheAntiKyte
TheAntiKyte
Oracleforwhenitwaslikethatwhenyougotthere
InstallingOracle11gR2onUbuntu9.10
PostedonMarch14,2010
Finally,Ivegoteverythinginplaceforthebigoneinstalling11gR2onmyUbuntuserver.
NOTEifyouvestumbledacrossthispostinsearchofinstructionsforinstallingOracleXE11g
onUbuntu,youcanfindinstallationstepshere.
Asfarastheserverisconcerned,IvepostedoneverythingIvedonesinceIinstalleditontothe
machine.
TheprerequisitesforthisOracleinstallationwere:
Installingtheserverandsettingupssh
TunnelingXoverSSH
IalsosetupaSAMBAshareontheserver.ThisisnotdirectlyrelevanttotheOraclesetupbut
Iveincludedalinktoithereasitservestocompletethepictureofthestateoftheserverbefore
Istartedtheinstallation.ItalsohasasectiononmountingaUSBstickontheserver,whichmay
berelevantwhenitcomestotransferringtheOraclefilesontotheserver.
WhilstImmentioninglinks,IshouldacknowledgethehelpfulinformationIgotfromhereand
especiallyhere.
WhilstImhere,IprobablydontneedtomentionthatOracleisntexactlysupportedonUbuntu
atthetimeofwriting,soIassumethat,ifyouareplanningtogodownthisroute,itsforyour
ownedificationandamusement.Ifyourplanningtosetupaproductiondatabaseenvironment,
thenyoureallyshouldbedoingsoonasupportedOS.
Onefinal,butpertinentpointtonoteisthat,likemanyofmyrecentadventureswithUbuntu
Server,thiswasachievedafteracertainamountoftrialanderror.IknowOracleprettywell.
However,Imakenoclaimstobeingalinuxexpert.Thestepsthatfollowworkedforme.That
make
doesntmeanthattheresnotaneasier/better/saferwaytodoit.
P RE RE Q UI S I TE CHE CK S
FirststoparetheprechecksasrecommendedintheOracleInstallationGuide.
Onceyourehappythatyouvegotthetintodothejob,itstimetogetthesoftware.
G E TTI NG O RA CL E
https://mikesmithers.wordpress.com/2010/03/14/installingoracle11gr2onubuntu910/ 1/33
20/04/2017 InstallingOracle11gR2onUbuntu9.10|TheAntiKyte
Unfortunately,theresnorpmpackageforthisversion,soyouneedtodownload11grelease2
fromhere.
AsImrunningthe32bitserver,IgottheLinuxx86versionofOracleDatabase11gRelease2(
11.0.2.0.1.0)
Asyoullnoticefrommypreviousposts,theserverwaspronetogetalittleunhappywhen
copyinglargefilesorlargeamountsofdatagenerallytoitfromanexternaldevice.However,
extractingthecompresseddownloadfilesworkedfine.
Toachievethis,Idownloadedtherequiredfilesontoatrustymemorystick,mounteditonthe
server,thenunzippedit.
Thefilesareinzipformat,soIneededtogettheunzippackage:
sudoaptgetinstallunzip
NowwiththeUSBmountedon/media/external(havealookhereifyouneeddetailsonhowto
dothis):
cd/media
sudounzip/media/external/linux_11gR2_database_1of2.zipd.
sudounzip/media/external/linux_11gR2_database_2of2.zipd.
cd
sudounmount/media/external
Thisshouldextractthefilesinthezipsintoanewlycreateddirectorycalleddatabaseunder
/media.
NOTEitsprobablyagoodideatomakesureallisworkingasexpectedafterunzippingthe
make
firstfilei.e.thatthedatabasedirectoryhasbeencreatedandthatallofthefileshavebeen
extractedunderthatdirectory.
Connecttotheserver,switchtorootandupdatethepackagescurrentlyontheserver
sudosu
aptgetupdate
Oncethisisdone,reboottheserversoweresurethatallthechangestakeeffect.
#reboot
G E TTI NG RE Q UI RE D PA CK A G E S
Connecttotheserveragainand(asroot)downloadsomemorepackages(Ivelistedtheseas
onecommandatatimetomakeiteasiertoread):
make
sudosu
aptgetbuildessential
aptgetlibaio1
aptgetgawk
https://mikesmithers.wordpress.com/2010/03/14/installingoracle11gr2onubuntu910/ 2/33
20/04/2017 InstallingOracle11gR2onUbuntu9.10|TheAntiKyte
aptgetksh
aptgetlibmotif3
aptgetalien
aptgetlibtool
aptgetlsbrpm
NOTEthefollowingpackagesarealsorequiredfortheOracleinstall,buttheywerealready
presentontheserver:
gcc
make
binutils
rpm
FI NA L S E RV E R P RE PA RATI O NS
Weneedtotweaktheserverenvironment,setupsomeusers,andcreatesomelinks.
Firstoff,updatetheshell(werestillconnectedasroothere,hencethe#prompt)
cd/bin
#lsl/bin/sh
lrwxrwxrwx1rootroot42008042819:59/bin/sh>dash
#lnsfbash/bin/sh
#lsl/bin/sh
lrwxrwxrwx1rootroot42008050122:51/bin/sh>bash
Addusersandgroups
#setovi
#addgroupoinstall
Addinggroup`oinstall'(GID1001)...
Done.
#addgroupdba
Addinggroup`dba'(GID1002)...
Done.
#addgroupnobody
Addinggroup`nobody'(GID1003)...
Done.
#usermodgnobodynobody
#useraddgoinstallGdbappasswordd/home/oracles/bin/bashoracle
#passwdoracle
EnternewUNIXpassword:
RetypenewUNIXpassword:
passwd:passwordupdatedsuccessfully
#mkdir/home/oracle
#chownRoracle:dba/home/oracle
#
Createsymboliclinks
#lns/usr/bin/awk/bin/awk
https://mikesmithers.wordpress.com/2010/03/14/installingoracle11gr2onubuntu910/ 3/33
20/04/2017 InstallingOracle11gR2onUbuntu9.10|TheAntiKyte
#lns/usr/bin/rpm/bin/rpm
#lns/usr/bin/basename/bin/basename
Notentirelysurewhyweneedtodothisbit,butIdid
#mkdir/etc/rc.d
#foriin0123456S;dolns/etc/rc$i.d/etc/rc.d/rc$i.d;done
CreatetheORACLE_BASEdirectory
#mkdirp/u01/app/oracle
#chownRoracle:dba/u01
#
Nowweneedtochangesomeconfigfiles:
/etc/sysctl.confmakesurethatthefollowingparameters
make aresettothesevalues.These
shouldallbeplacedattheendofthefile.
fs.filemax=6815744
kernel.shmall=2097152
kernel.shmmax=2147483648
kernel.shmmni=4096
kernel.sem=25032000100128
net.core.rmem_default=4194304
net.core.rmem_max=4194304
net.core.wmem_default=1048576
net.core.wmem_max=1048576
net.ipv4.ip_local_port_range=900065535
fs.aiomaxnr=1048576
/etc/security/limits.confaddthesesettingstotheendofthefile:
oraclesoftnproc2047
oraclehardnproc16384
oraclehardnofile65536
oraclesoftnofile1024
/etc/pam.d/loginaddthefollowinglineattheendofthefile
sessionrequired/lib/security/pam_limits.so
Inordertomakesurethatallofthesesettingshadtakeneffect,Ididarebootatthispoint:
make
sudoreboot
I NS TA L L I NG THE O RA CL E S O FTWA RE
Now,crosseverything,checkthatyouareindeedwearingyourluckyunderpantstimetodothe
install.
Startaterminalsessionontheclientandsshintotheandcheckthesetting
sshXadministrator@server
First,weneedtogetthevalueoftheDISPLAYvariableaswellneedtosetitwhenwesutothe
oracleusersothattheinstallerGUIwillrunontheclient(remember,wehavenoXWindows
desktopontheserver).
https://mikesmithers.wordpress.com/2010/03/14/installingoracle11gr2onubuntu910/ 4/33
20/04/2017 InstallingOracle11gR2onUbuntu9.10|TheAntiKyte
echo$DISPLAY
localhost:10.0
Nowweneedtomakesurethattheserverisrunninginthecorrectrunlevel
make
sudorunlevel
N2
Thelastnumberintheoutputoftherunlevelcommandisthecurrentrunlevel.
Theserveriscurrentlyatrunlevel2,weneedittobeat3so:
sudoinit3
sudorunlevel
23
NOTEatthispoint,Iopenedaseparatesshsessionontheserverandsudtorootonthat
session,justincaseIhitanyissuesduringtheinstallationprocess.Onthefifthattempttoget
theinstalltoworkthischangedintoforwhenIhitissues.
Nowwerereadytofireuptheinstaller.
suoracle
cd/media/database
./runInstallerignoreSysPrereqs
Afterashortpause,youshouldnowseethisscreen:
Pleasebearinmindthatthesescreenshotsweretakenovernumerousinstallationattemptsso
thestepnumbersdisplayedatthetopmaynotmatchuptowhatyousee.However,thescreens
themselvesshouldbethesameastheonesbelow.
https://mikesmithers.wordpress.com/2010/03/14/installingoracle11gr2onubuntu910/ 5/33
20/04/2017 InstallingOracle11gR2onUbuntu9.10|TheAntiKyte
OracleInstallerscreen1
UnchecktheIwishtoreceivesecurityupdatesviaMyOracleSupportifyoureinstallingon
Ubuntu,yourdoingitforyourownresearchpurposessoarentgoingtohavepaidforOracle
supportanyway.
ClickNext
InstallerStep2
Werejustgoingtoinstallthesoftwareatthispoint,soselectInstalldatabasesoftwareonly(as
perthescreenshotabove)andclickNext
https://mikesmithers.wordpress.com/2010/03/14/installingoracle11gr2onubuntu910/ 6/33
20/04/2017 InstallingOracle11gR2onUbuntu9.10|TheAntiKyte
InstallerStep3
Wevegotenoughonourplatejusttryingtopersuadeoracletoworkonthisplatform,solets
keepitsimpleandjustgoforSingledatabaseinstallation.
ClickNext
InstallerStep4
English(UnitedKingdom)?SurelythisshouldreadEnglish(Proper,notthatstrangedialectthey
useinTheColoniesacrosstheAtlantic).Enoughofthejingoism,maketheappropriateselection
make
andclickNext.
https://mikesmithers.wordpress.com/2010/03/14/installingoracle11gr2onubuntu910/ 7/33
20/04/2017 InstallingOracle11gR2onUbuntu9.10|TheAntiKyte
InstallerStep5
WeregoingforEnterpriseEdition.ClickNext
Steps6,7and8shouldprovideyouwithdefaultsuggestions,whichIacceptedineachcase.
InstallerStep9
Thisiswhereitgetsabitinteresting.ThefirsttimeItriedthis,Ihadntsetalloftheparameters
insysctl.confandlimits.conftooraclesliking.SomeofthesecomeupasfixableandtheFix&
CheckAgainbuttonisenabled.
Ifyouclickthis,Oraclewilldirectyoutoascriptthatyoucanrunasroottocorrecttheproblems
:
https://mikesmithers.wordpress.com/2010/03/14/installingoracle11gr2onubuntu910/ 8/33
20/04/2017 InstallingOracle11gR2onUbuntu9.10|TheAntiKyte
InstallerFixScripts
Ifyoudogodownthisroute,hitCheckAgainonceyouverunthescript(s).
Asyoucansee,theinstallercomplainsaboutanumberofthingswhichyoucanbypassby
checkingtheIgnoreAllcheckboxinthetoplefthandcorner.
Note,fortherecord,oraclecomplainedaboutthefollowingpackagesbeingmissing(whichI
ignored):
make3.80
binutils2.15.92.02
gcc3.4.6
libaio0.3.105
glibc2.3.42.41
compatlibstdc++333.2.3
elfutilslibelf0.97
elfutilslibelfdevel0.97
glibccommon2.3.4
glibcdevel2.3.4
glibcheaders2.3.4
gccc++3.4.6
libaiodevel0.3.105
libgcc3.4.6
libstdc++3.4.6
libstdc++devel3.4.6
sysstat5.0.5
unixODBC2.2.11
unixODBSdevel2.2.11
pdksh5.2.14
Onceyourehappy,ClickNext
InstallerStep10
Atthispoint,IdidselectSaveResponseFile,justincaseIneededtotryasilentinstallation.
Fortunately,Ididnt,butitsprobablyworthdoing,justincase.
https://mikesmithers.wordpress.com/2010/03/14/installingoracle11gr2onubuntu910/ 9/33
20/04/2017 InstallingOracle11gR2onUbuntu9.10|TheAntiKyte
ClickFinish
InstallerProgress
Thiswilltakeawhile,butatleastyougetaprogressbar.
Onceitsallcompleted,clickNextandyougetthisconfirmation
InstallerFinalScreen
ClickFinish
Celebratewithabeverageofyourchoicebutnottoomuch,westillneedtocreateadatabase.
https://mikesmithers.wordpress.com/2010/03/14/installingoracle11gr2onubuntu910/ 10/33
20/04/2017 InstallingOracle11gR2onUbuntu9.10|TheAntiKyte
Firstofall,weneedtogetanotherpackage.Ontheserver:
sudoaptgetlesstif2
NowwecanruntheDatabaseConfigurationAssistant(DBCA).
Thistime,connecttotheserverasoracle:
sshXoracle@server
Make
MakesurethattheDISPLAYvariableisset.Ifnot,setittothevalueitwasforthesoftware
installation.So,ifitwaslocalhost:10.0forthatsessionthen:
exportDISPLAY=localhost:10.0
echo$DISPLAY
localhost:10.0
nowwejustneedtofireitup:
cd$ORACLE_HOME/bin
./dbca
Justclickthroughthefirstcoupleofscreensuntilyougetto:
DBCAScreen3
HotTip:whenyoupickaGlobalDatabaseNameandSIDhere,makesureitsnolongerthan8
make
characters.
Ifyourefoolishenoughtopickonewithmorecharacters(suchasorakarmic,totakea
completelyrandomexample),youllfindthat,whenyoucometocheckyournewdatabase,it
thinksitscalledORAKARMI,atleast,inv$instance.
https://mikesmithers.wordpress.com/2010/03/14/installingoracle11gr2onubuntu910/ 11/33
20/04/2017 InstallingOracle11gR2onUbuntu9.10|TheAntiKyte
Onreflection,orakoalawouldprobablyabetter,nottomentionfluffier,choice.
Anyway,onceyouvechosenadatabasename,clickNext.
DBCAScreen4
UnchecktheConfigureEnterpriseManagerboxhere.Onceagain,wewanttokeepthingsas
simpleaspossible.
ClickNext
DBCAScreen5
Chooseyourpasswords.Obviously,itsagoodideatomakeanoteofthematthispoint!
make
ClickNextthroughthenextfewscreensuntilyougetto:
https://mikesmithers.wordpress.com/2010/03/14/installingoracle11gr2onubuntu910/ 12/33
20/04/2017 InstallingOracle11gR2onUbuntu9.10|TheAntiKyte
DBCAScreen8
Idlikethesampleschemasinstalled.
Keepclickingnextuntil
DBCAScreen11
ClickFinish
Atthispoint,youshouldgetanicescreenconfirmingwhatdbcaisgoingtodo.Youshoulddo.
Ihaventgotascreenshotofthisbecausedbcapoppedupablankscreen.Imnotsurewhether
thiswasJavahavingasulk,orsomeproblemwithmysetup.
Althoughnothingwasdisplayed,Imanagedtogetpastthisscreenbyrandomlyclickinginthe
bottomthirdofthewindowuntilIevidentlymanagedtohittherelevantbuttonbecauseIthen
gotthisscreen:
https://mikesmithers.wordpress.com/2010/03/14/installingoracle11gr2onubuntu910/ 13/33
20/04/2017 InstallingOracle11gR2onUbuntu9.10|TheAntiKyte
Something'shappeningbutwe'renotgoingtotellyouwhat
Yes,itssupposedtohaveaprograssbaronit,butallIgotwastheanimatedgif.Eventually
however,Javadecidedtobehaveitselfoncemoreanddisplayed:
Eureka!
Nearlydone.Onefinalingredientrequired.Whatsthatyousay?Morebeer?Goodguess
Wewanttomakesurethatanysessionswestartonthisserverhavethecorrectenvironment
make
variablesset,soedit/etc/profileandadd:
exportORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1
exportPATH=$PATH:/u01/app/oracle/product/11.2.0/dbhome_1/bin
exportORACLE_BASE=/u01/app/oracle
exportORACLE_OWNR=oracle
Next,wewantthedatabasetostartwhentheserverboots.
https://mikesmithers.wordpress.com/2010/03/14/installingoracle11gr2onubuntu910/ 14/33
20/04/2017 InstallingOracle11gR2onUbuntu9.10|TheAntiKyte
Edit/etc/oratabandchangetheline:
sid:/u01/app/oracle/product/11.2.0/dbhome_1:N
to:
sid:/u01/app/oracle/product/11.2.0/dbhome_1:Y
whereSIDisthenameofthedatabaseyoucreated.
Next,wewanttocreateascripttoexecuteonstartuptostartthedatabaseandthelistener:
cd/etc/init.d
sudovioracledb
Thescriptshouldbeasfollows:
1 #!/bin/bash
2 #
3 #RunlevelStartupscriptfortheOracleListenerandInstances
4 #Itreliesontheinformationon/etc/oratab
5 #Basedonscriptlistingat
6 #http://www.pythian.com/news/1355/installingoracle11gr1onubuntu810intrepidibex
7 #Mike7/3/10
8 #
9 exportORACLE_BASE=/u01/app/oracle
10 exportORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1
11 exportORACLE_OWNR=oracle
12 exportPATH=$PATH:$ORACLE_HOME/bin
13
14 if[!f$ORACLE_HOME/bin/dbstarto!d$ORACLE_HOME]
15 then
16 echo"Oraclestartup:cannotstart"
17 exit1
18 fi
19
20 case"$1"in
21 start)
22 #Oraclelistenerandinstancestartup
23 echon"StartingOracle:"
24 su$ORACLE_OWNRc"$ORACLE_HOME/bin/lsnrctlstart"
25 su$ORACLE_OWNRc"$ORACLE_HOME/bin/dbstart$ORACLE_HOME"
26 touch/var/lock/oracle
27 echo"OK"
28 ;;
29 stop)
30 #Oraclelistenerandinstanceshutdown
31 echon"ShutdownOracle:"
32 su$ORACLE_OWNRc"$ORACLE_HOME/bin/lsnrctlstop"
33 su$ORACLE_OWNRc"$ORACLE_HOME/bin/dbshut$ORACLE_HOME"
34 rmf/var/lock/oracle
35 echo"OK"
36 ;;
37 reload|restart)
38 $0stop
39 $0start
40 ;;
41 *)
42 echo"Usage:`basename$0`start|stop|restart|reload"
43 exit1
44 esac
45
46 exit0
https://mikesmithers.wordpress.com/2010/03/14/installingoracle11gr2onubuntu910/ 15/33
20/04/2017 InstallingOracle11gR2onUbuntu9.10|TheAntiKyte
Nowmakethescriptexecutableandsetittorunatboottime:
make
chmoda+x/etc/init.d/oracledb
updaterc.doracledbdefaults99
TestingServerChanges
Connectviasshasoracle,checkthattheenvironmentvariablechangesin/etc/profilehave
beenpickedup:
sshoracle@server
echo$ORACLE_HOME
orakarmic
Nowwewanttotestourscript.Firstoff,weneedtoshutownthedatabase:
exportORACLE_SID=orakarmic
sqlplus/assysdba
SQL>shutdownimmediate
SQL>quit
Nowconnecttotheserverastheadministratorandrunthescript
sshadministrator@server
sudo/etc/init.d/oracledbstart
ThisshouldstarttheTNSListenerandthedatabase.Tocheck:
lsnrctlstatus
Theoutputofthiscommandshouldincludetheline:
Service"orakarmic.server"hasd1instance(s).
Instance"orakarmic",statusREADY,has1handler(s)forthisservice...
YoushouldalsobeabletoconnecttothedatabaseviaSQL*Plusasbefore.
Ifyounowreboottheserver,youcanthenverifythatboththelistenerandthedatabasehave
startedcorrectly:
sshoracle@server
lsnrctlstatus
exportORACLE_SID=orakarmic
sqlplussystem/password
SQL>selectstatusfromv$instance;
ThequeryshouldreturnastatusofOPEN.
https://mikesmithers.wordpress.com/2010/03/14/installingoracle11gr2onubuntu910/ 16/33
20/04/2017 InstallingOracle11gR2onUbuntu9.10|TheAntiKyte
Connectingtothedatabasefromaclientmachine
Andfinally
Theclientneedstohaveanoracleclientorsimilarinstalled.
Thereshouldbeafilecalledtnsnames.orain$ORACLE_HOME/network/admin.
Simplyaddanentryforyournewdatabaseinthisfile.Itwillsomethinglikethis:
ORAKARMIC=
(DESCRIPTION=
(ADDRESS=(PROTOCOL=TCP)(HOST=mikeserver)(PORT=1521))
(CONNECT_DATA=
(SERVER=DEDICATED)
(SERVICE_NAME=orakarmic.mikeserver)
)
)
Youshouldnowbeabletoconnecttothedatabasefromtheclient:
sqlplussystem/password@orakarmic
SQL*Plus:Release10.2.0.1.0ProductiononSatMar1318:46:372010
Copyright(c)1982,2005,Oracle.Allrightsreserved.
Connectedto:
OracleDatabase11gEnterpriseEditionRelease11.2.0.1.0Production
WiththePartitioning,OLAP,DataMiningandRealApplicationTestingoptions
SQL>
Iseemtoremembersomeonementioningbeer.
SH A R ETH IS:
Share 1 0 11
Like
Bethefirsttolikethis.
ThisentrywaspostedinLinux,Oracle,Ubuntuandtagged11gR2onUbuntu9.10,Anti
Kyte,dbca,InstallOracleonUbuntubymikesmithers.Bookmarkthepermalink
[https://mikesmithers.wordpress.com/2010/03/14/installingoracle11gr2onubuntu910/].
50THOUGHTSONINSTALLINGORACLE11GR2ONUBUNTU9.10
Pingback:InstallingOracle11gR2onUbuntu9.10TheAntiKyte
Arvin
onMarch17,2010at5:47amsaid:
https://mikesmithers.wordpress.com/2010/03/14/installingoracle11gr2onubuntu910/ 17/33
20/04/2017 InstallingOracle11gR2onUbuntu9.10|TheAntiKyte
Thanks,Verygood.
IvoParvanov
onMarch17,2010at7:45amsaid:
Greattuttorial!!!
MayIpostalinkonmysitetothisarticle?
Thanks.
Vijay
onMarch18,2010at8:02pmsaid:
Thisisanexcellentarticle.Iwasfinallyabletoinstalloracle11gonmyubuntuserver.I
triedforaweektoinstallinsilentmode,butwasunsuccessful.Everythingseemstobe
workingfinesofar.
ThanksMike!
coskan
onMarch24,2010at2:34amsaid:
GoodoneMikethanksforsharing.
InearlyfollowedthesamewayyoufollowedbutIhandledprerequisiteswithGOAL
scriptfromHowardRogers
Onethingasanadditionforenterprisemanagerconsole,itgetsulimit25badlimit
problemwhenyouareinbashevenifyousortedallthelimitswithinitialconfiguration.
ThesolutionIusedtochange$ORACLE_HOME/bin/emctlfiletoruninbash.
https://mikesmithers.wordpress.com/2010/03/14/installingoracle11gr2onubuntu910/ 18/33
20/04/2017 InstallingOracle11gR2onUbuntu9.10|TheAntiKyte
Shrawan
onApril13,2010at8:30amsaid:
igotjavaerrorafetrrrunningthiscommand./runInstallerignoreSysPrereqs
Exceptioninthreadmainjava.lang.NoClassDefFoundError
atjava.lang.Class.forName0(NativeMethod)
atjava.lang.Class.forName(Class.java:164)
atjava.awt.Toolkit$2.run(Toolkit.java:821)
atjava.security.AccessController.doPrivileged(NativeMethod)
atjava.awt.Toolkit.getDefaultToolkit(Toolkit.java:804)
atcom.jgoodies.looks.LookUtils.isLowResolution(UnknownSource)
atcom.jgoodies.looks.LookUtils.(UnknownSource)
atcom.jgoodies.looks.plastic.PlasticLookAndFeel.(PlasticLookAndFeel.java:122)
atjava.lang.Class.forName0(NativeMethod)
atjava.lang.Class.forName(Class.java:242)
atjavax.swing.SwingUtilities.loadSystemClass(SwingUtilities.java:1783)
atjavax.swing.UIManager.setLookAndFeel(UIManager.java:480)
atoracle.install.commons.util.Application.startup(Application.java:758)
atoracle.install.commons.flow.FlowApplication.startup(FlowApplication.java:164)
atoracle.install.commons.flow.FlowApplication.startup(FlowApplication.java:181)
atoracle.install.commons.base.driver.common.Installer.startup(Installer.java:265)
atoracle.install.ivw.db.driver.DBInstaller.startup(DBInstaller.java:114)
atoracle.install.ivw.db.driver.DBInstaller.main(DBInstaller.java:132)
mikesmithers
onApril13,2010at5:23pmsaid:
Attheriskofstatingtheobvious,itlooksliketheOracleInstaller(whichisa
Javaapplication)cantfindJava.
WhenIdidthisIwasrunningtheinstallerontheclientIconnectedfrom.Iguess
theonlypracticalthingIcansuggestisthatyoucheckthatjavaisinstalledon
theclientbytypingjavaversionattheprompt.WhenIdothisIget:
javaversion1.6.0_15
Java(TM)SERuntimeEnvironment(build1.6.0_15b03)
JavaHotSpot(TM)ServerVM(build14.1b02,mixedmode)
HTH
Mike
riglous
onJuly13,2010at7:58amsaid:
https://mikesmithers.wordpress.com/2010/03/14/installingoracle11gr2onubuntu910/ 19/33
20/04/2017 InstallingOracle11gR2onUbuntu9.10|TheAntiKyte
run
xhost+
asroot
tubbyasstoo
onApril16,2010at4:26pmsaid:
nicewalkthrough
Ifoundthatacleanubuntu9.10serverinstallationismissing
libstdc++.so.5
Ihadtofind/download/installthisbeforebeingabletoresumetheinstallation.abit
surprisedthatnooneelsehasencounteredthis,Ipresumeothersupgradedto9.10from
previousreleaseswhichleftlibstdc++.so.5inplace
kudosalsotothepythianwalkthroughfor11gr1on9.04whichIlikeverymuch
dineshbhardwaj
onApril17,2010at4:46pmsaid:
Itwasgreattoexplaineverythingandalsothecommentmentioningthatlibstdc++.so.5
maybemissing.Yes,everythingworkedprefectexceptthatlibstdc++.so.5wasreally
required.soIdownloadedandinstalledit
(http://packages.debian.org/lenny/amd64/libstdc++5/download)andtheerrorduring
linkingerrorininvokingtargetinstallofmakefileins_ctx.mk
make
thanseveryoneforthesupport
German
onApril29,2010at6:22pmsaid:
hithankyouverymuchforthistutorial,isoneofthemostcomprehensiveinInternet.
IhaveaproblemwhenIwanttoaccessfromaclienttomydatabaseserver.
Igettheerror:
https://mikesmithers.wordpress.com/2010/03/14/installingoracle11gr2onubuntu910/ 20/33
20/04/2017 InstallingOracle11gR2onUbuntu9.10|TheAntiKyte
ORA12560
Andwhenidotnspingfromtheclient,doesntworkstoo
Pleasehelpmewhitthat.
Thankyouandsorryformyenglish
mikesmithers
onApril29,2010at11:33pmsaid:
German,
IassumethattheerrorisTNS12560TNS:ProtocolAdaptererror.
Ifso,Idsuggestyoumighttrythefollowing:
Ontheclient:
first,checktoseeifthe$ORACLE_SIDenvironmentvariableisset.Ifnot,
thenyouneedtospecifythedatabasenameyourconnectingto.So,inTerminal,
youwouldneedtotype:
sqlplususername/password@database
second,makesurethattheentryyouhaveforthedatabaseinthe
make
tnsnames.ora(in$ORACLE_HOME/network/admin)iscorrecti.e.itspointing
tothecorrecthostandhasthecorrectdatabasesid.
Ontheserver:
checkthatthelistenerisupandrunningforyourinstance.Interminal:
lsnrctlstatus
Hopefully,thismaygiveyousomeclueastowhatisgoingwrong.
LosientoparamimaleEspaniol
Mike
German
onApril30,2010at4:32amsaid:
lol=jajajaja
youmakemelaughthxsalotyourpostisthebestisveryeasyand
make
completewellimsoobstinateandbecauseofthatitriedsomany
things,andivedisabledthefirewallonmycentos5.4server
https://mikesmithers.wordpress.com/2010/03/14/installingoracle11gr2onubuntu910/ 21/33
20/04/2017 InstallingOracle11gR2onUbuntu9.10|TheAntiKyte
Andtadaaaaavoilaitworks
Well,evenso,illcontinueresearchontypesoforacleinstallation
Mademecurious,thatyouchoosedbcatoinstallthedatabase,because
insomanysitespeopleprefersOUItodoitwell,isapersonalchoice,i
guess
Ihopetocontinuereadingyoursarticlesandagain,sorryformypoor
english
Andsuespaolnoestanmalo
Pingback:BlogrollReport12/03/201019/03/2010CoskansApproachtoOracle
Rob
onMay4,2010at8:27amsaid:
Hi,
firstofallthanksforyourcomprehensiveguide.Iwasbeingabletoinstall11gR2just
fineonmymachine.
BUT
DidyoualsotrytousetheOracleWarehouseBuilder?IamstuckattheOWBDesign
Center,whichdoesntdisplayanythingbutablankwindowafterlogin.
IhadthesameissuewithSQLDeveloper,butfixedthiswithaddingtherightpathtothe
JRE.ButOWBusesitsownJDK/JREfilesinORACLE_HOME.
Youhaveasuggestionhowtosolvethis?
mikesmithers
onMay4,2010at11:20pmsaid:
Rob,
unfortunatelyIvenotusedOWBanddontreallyknowtoomuchaboutit.
BeyondfiddlingaroundwiththeJavaenvironmentvariables(whichitlookslike
youvealreadytried)Icantreallyofferanyideasbeyondhittingitwithabig
stick.Ontheplusside,thepeoplewhoreadthisblogtendtobealotsmarter
thanme,sohopefullyoneofthemwillbeabletoenlightenus.
https://mikesmithers.wordpress.com/2010/03/14/installingoracle11gr2onubuntu910/ 22/33
20/04/2017 InstallingOracle11gR2onUbuntu9.10|TheAntiKyte
warehousebuilderproductmanagement
onApril22,2011at11:10pmsaid:
Rob,
ImtheproductmanagerforWarehouseBuilder.TheDesignCenterclientpieces
wontrunon64bitlinux.Youwillhavetorunthemina32bitlinuxenvironment,
orin32bitWindows(wedontsupport64bitwindowseither).
Pingback:NewResourceslearntthisweekOracleTop5References'sBlog
DonSeiler
onJune10,2010at11:33pmsaid:
Theissuewiththeblankdialogwindowsindbcaisfixedbydisablingvisualeffectsin
GnomesAppearancepreferences.Otherwiseusingalightweightenvironmentlike
LXDEdoesnthavethisproblemeither.
ThorstenRuehl
onJune17,2010at4:17pmsaid:
IinstalledOracle11gR264BitonUbuntu10.0464Bit(lucid)
in/etc/sysctl.confchange
net.ipv4.ip_local_port_range=900065535
to
net.ipv4.ip_local_port_range=900065500
Ialsoinstalledthefollowingprobablymissingpackages
sudoaptgetinstalllibaiodevexpatsysstatunixodbcunixodbcdevlesstif2
insteadmodifying/etc/profileIcreated
/etc/profile.d/oracle.sh
https://mikesmithers.wordpress.com/2010/03/14/installingoracle11gr2onubuntu910/ 23/33
20/04/2017 InstallingOracle11gR2onUbuntu9.10|TheAntiKyte
Pingback:PLUSONNETCommunityBlogArchiveInstallingOracle11gR2Ubuntu
10.04server
vinoth
onJuly30,2010at6:01amsaid:
howtoaddsystemenvironmentalvariablesinubuntu.
plshelpme
thanks
vinothraja
onJuly30,2010at6:03amsaid:
howtoaddsystemenvironmentalvariablesinubuntu.
plshelpme
thanks
mikesmithers
onJuly30,2010at12:44pmsaid:
Vinothraja,
thesectionPostInstallationConfigurationisthebitwheretheenvironment
variablesgetset.
Inadditiontotheenvironmentvariablesmentionedthere,youmayalsowantto
setthe$ORACLE_SID,ifyourserverisntgoingtohavemorethanoneOracle
instanceonit:
export$ORACLE_SID=mydbname
wheremydbnameisthenameofyourinstance.
vinothraja
onJuly30,2010at6:20amsaid:
https://mikesmithers.wordpress.com/2010/03/14/installingoracle11gr2onubuntu910/ 24/33
20/04/2017 InstallingOracle11gR2onUbuntu9.10|TheAntiKyte
howtoimport.dmpintoubuntu.
andimpcommandnotfoundinubuntu
mikesmithers
onJuly30,2010at12:47pmsaid:
Vinothraja,
Ithinkthatthismayberelatedtoyourproblemwithenvironmentvariables.
Theoraclehomedirectoryshouldbeincludedinthe$PATHenvironmentvariable
otherwiseLinuxwontknowwheretolookfortheimpexecutable.
Tocheckthis,atthe$prompttype:
echo$PATH
ThisshouldincludeyourOraclehomedirectory.
HTH
Mike
vinothraja
onAugust2,2010at7:59amsaid:
hiineedanotherhelp,
iwantcopyandpastefilesinsystemfolder,howcanidothis?
wheneverididthisitshowsPERMISSIONDENIED,
howtosolvethisproblem?inubuntu
iwantcopyfilesfrommyhomefolderto/var/lib/tomcat6/wabapps/..
mikesmithers
onAugust2,2010at9:31pmsaid:
Vinothraja,
thisisnotreallyrelatedtothispost,soIvesentyouamailratherthanpostinga
replyhere.
PleasemailmeifthesuggestionsIsentyoudontsolveyourproblem.
Mike
https://mikesmithers.wordpress.com/2010/03/14/installingoracle11gr2onubuntu910/ 25/33
20/04/2017 InstallingOracle11gR2onUbuntu9.10|TheAntiKyte
Davis
onOctober12,2010at2:10pmsaid:
Itisverygoodarticleformeithelpmeinstallonsuse11.3linux..
thanks
CJA
onNovember3,2010at3:34amsaid:
Wow,justwow.ThesedetailsworkedonUbuntu10.04(desktop)Thankyou!!
mikesmithers
onNovember3,2010at8:48amsaid:
ImustadmitImsurprisedbythat.Welldoneyouforgettingitworking
amine
onJanuary21,2011at7:58pmsaid:
defaultcomptescott/tigerisnotexistant!!
howtoadditwithalldefaulttables(emp)
mikesmithers
onJanuary22,2011at4:13pmsaid:
Amine,
strangethescottschemashouldbethere(itwaswhenIinstalledit).Maybe
theloginisdisabled?
Ifitreallyismissing,thenyoucanrecreateitbyrunning
https://mikesmithers.wordpress.com/2010/03/14/installingoracle11gr2onubuntu910/ 26/33
20/04/2017 InstallingOracle11gR2onUbuntu9.10|TheAntiKyte
$ORACLE_HOME/rdbms/admin/utlsampl.sqlasaDBAuser(suchas
SYSTEM).
Notethatthisscriptdoesattempttodropusersthatdontalreadyexistsoyoure
likelytogetsomeerrors.Itwillhoweverrecreatethescottschema.
Thefulltextofthescriptis:
1 RemCopyright(c)1990,2006,Oracle.Allrightsreserved.
2 RemNAME
3 REMUTLSAMPL.SQL
4 RemFUNCTION
5 RemNOTES
6 RemMODIFIED
7 Remlburgess04/02/06lowercasepasswords
8 Remmenash02/21/01removeunnecessaryusersfor
9 Remgwood03/23/99makealldatesY2Kcompliant
10 Remjbellemo02/27/97dontconnectassystem
11 Remakolk08/06/96bug368261:Addingdateformats
12 Remglumpkin10/21/92RenamedfromSQLBLD.SQL
13 Remblinden07/27/92Addedprimaryandforeignkeys
14 Remrlim04/29/91changechartovarchar2
15 Remmmoore04/08/91useunlimitedtablespacepriv
16 Rempritto04/04/91changeSYSDATEto13JUL87
17 RemMendels12/07/90bug30123;addto_datecallssolanguageindependent
18 Rem
19 rem
20 rem$Header:utlsampl.sql02apr2006.21:13:01lburgessExp$sqlbld.sql
21 rem
22 SETTERMOUTOFF
23 SETECHOOFF
24
25 remCONGDONInvokedinRDBMSatbuildtime.29DEC1988
26 remOATES:Created:16Feb83
27
28 DROPUSERSCOTTCASCADE;
29 DROPUSERADAMSCASCADE;
30 DROPUSERJONESCASCADE;
31 DROPUSERCLARKCASCADE;
32 DROPUSERBLAKECASCADE;
33 GRANTCONNECT,RESOURCE,UNLIMITEDTABLESPACETOSCOTTIDENTIFIED
34 DROPPUBLICSYNONYMPARTS;
35
36 CONNECTSCOTT/tiger
37 CREATETABLEDEPT
38 (DEPTNONUMBER(2)CONSTRAINTPK_DEPTPRIMARYKEY,
39 DNAMEVARCHAR2(14),
40 LOCVARCHAR2(13));
41 CREATETABLEEMP
42 (EMPNONUMBER(4)CONSTRAINTPK_EMPPRIMARYKEY,
43 ENAMEVARCHAR2(10),
44 JOBVARCHAR2(9),
45 MGRNUMBER(4),
46 HIREDATEDATE,
47 SALNUMBER(7,2),
48 COMMNUMBER(7,2),
49 DEPTNONUMBER(2)CONSTRAINTFK_DEPTNOREFERENCESDEPT);
50 INSERTINTODEPTVALUES
51 (10,'ACCOUNTING','NEWYORK');
52 INSERTINTODEPTVALUES(20,'RESEARCH','DALLAS');
53 INSERTINTODEPTVALUES
54 (30,'SALES','CHICAGO');
55 INSERTINTODEPTVALUES
56 (40,'OPERATIONS','BOSTON');
57 INSERTINTOEMPVALUES
58 (7369,'SMITH','CLERK',7902,to_date('17121980','ddmmyyyy'
59 INSERTINTOEMPVALUES
60 (7499,'ALLEN','SALESMAN',7698,to_date('2021981','ddmmyyyy'
61 INSERTINTOEMPVALUES
62 (7521,'WARD','SALESMAN',7698,to_date('2221981','ddmmyyyy'
63 INSERTINTOEMPVALUES
64 (7566,'JONES','MANAGER',7839,to_date('241981','ddmmyyyy'
65 INSERTINTOEMPVALUES
https://mikesmithers.wordpress.com/2010/03/14/installingoracle11gr2onubuntu910/ 27/33
20/04/2017 InstallingOracle11gR2onUbuntu9.10|TheAntiKyte
65 INSERTINTOEMPVALUES
66 (7654,'MARTIN','SALESMAN',7698,to_date('2891981','ddmmyyyy'
67 INSERTINTOEMPVALUES
68 (7698,'BLAKE','MANAGER',7839,to_date('151981','ddmmyyyy'
69 INSERTINTOEMPVALUES
70 (7782,'CLARK','MANAGER',7839,to_date('961981','ddmmyyyy'
71 INSERTINTOEMPVALUES
72 (7788,'SCOTT','ANALYST',7566,to_date('13JUL87','ddmmrr'
73 INSERTINTOEMPVALUES
74 (7839,'KING','PRESIDENT',NULL,to_date('17111981','ddmmyyyy'
75 INSERTINTOEMPVALUES
76 (7844,'TURNER','SALESMAN',7698,to_date('891981','ddmmyyyy'
77 INSERTINTOEMPVALUES
78 (7876,'ADAMS','CLERK',7788,to_date('13JUL87','ddmmrr'
79 INSERTINTOEMPVALUES
80 (7900,'JAMES','CLERK',7698,to_date('3121981','ddmmyyyy'
81 INSERTINTOEMPVALUES
82 (7902,'FORD','ANALYST',7566,to_date('3121981','ddmmyyyy'
83 INSERTINTOEMPVALUES
84 (7934,'MILLER','CLERK',7782,to_date('2311982','ddmmyyyy'
85 CREATETABLEBONUS
86 (
87 ENAMEVARCHAR2(10),
88 JOBVARCHAR2(9),
89 SALNUMBER,
90 COMMNUMBER
91 );
92 CREATETABLESALGRADE
93 (GRADENUMBER,
94 LOSALNUMBER,
95 HISALNUMBER);
96 INSERTINTOSALGRADEVALUES(1,700,1200);
97 INSERTINTOSALGRADEVALUES(2,1201,1400);
98 INSERTINTOSALGRADEVALUES(3,1401,2000);
99 INSERTINTOSALGRADEVALUES(4,2001,3000);
100 INSERTINTOSALGRADEVALUES(5,3001,9999);
101 COMMIT;
102 EXIT
HTH
Mike
shashika
onFebruary5,2011at11:23amsaid:
cananyonesolvethisproblems
StartupandShutdownofaDatabaseServerusingscriptsandtheGUIs
mikesmithers
onFebruary13,2011at1:26pmsaid:
Shashika,
https://mikesmithers.wordpress.com/2010/03/14/installingoracle11gr2onubuntu910/ 28/33
20/04/2017 InstallingOracle11gR2onUbuntu9.10|TheAntiKyte
asfarasthescriptsgo,youcanuse/etc/init.d/oracledbstopontheserverto
stopboththedatabaseandthetnslistener(providedyouhavetheappropriate
environmentvariablesset.Ifyouwanttoshutdownthedatabaseonly,youcan
justsutooraclethen,ensuringthatthe$ORACLE_SIDisset,simplydo:
sqlplus/assysdbaandtypeshutdownimmediateattheSQLprompt.
Ifthisisntwhatyouwerelookingfor,couldyoubeabitmorespecific?
Thanks,
Mike
Rossana
onMarch13,2011at11:56amsaid:
Hola,
Simiinstalacionnoesenunadistroserverhabraalguninconveniente?
Puedoinstalarsoloelclienteoracleytrabajarsoloconesoonecesitorealizaruna
instalacionconesta?
Agradeceriamuchodesusayudaseinstruccion!
Gracias!
mikesmithers
onMarch13,2011at8:48pmsaid:
Pedimosdisculpaspormiespaolmalo
PuedeinstallarenUbuntu10.04desktop,peronohehechoesto.
talvezunamejoropcinseraladeinstalarOracle10gExpressEdition.
Instruccionesparahacerestosepuedenencontraraqu.
AndinEnglish
YoucantrytoinstallonUbuntu10.04desktopbutIhavenottriedthis.
PerhapsabetteroptionwouldbetoinstallOracle10gExpressEditions.
Instructionsonhowtodothiscanbefoundhere.
RaeMarvin
onMay1,2011at3:25pmsaid:
Reallyhelpfulblog!Iinstallediton10.04withlittleproblemsthanksto
theblog.
AsregardsthedbcablankscreenIcameacrossthisonOTN.
https://mikesmithers.wordpress.com/2010/03/14/installingoracle11gr2onubuntu910/ 29/33
20/04/2017 InstallingOracle11gR2onUbuntu9.10|TheAntiKyte
BlankwindowsintheOracleDatabaseCreationAssistant(DBCA)
DisableVisualEffectsusingSystem>Preferences>Appearance,
VisualEffects
Cheersagain
Rae
warehousebuilderproductmanagement
onApril22,2011at11:09pmsaid:
ForthosewhoweretryingtorunOWB11.2on64bitlinux,Icantellyouthatthedesign
centerclientin11gR2wontrunon64bitlinux.Thismaybefixedinafuturerelease.
rbernardes
onMay9,2011at4:56pmsaid:
Howtoinstalloracle11gr2in10.1064bits
http://barrasbin.wordpress.com/2011/05/09/ubuntu101064bitsoracle11gr264bits/
stehuc
onJuly23,2011at10:31amsaid:
HelloinsectionGettingRequiredPackages,youhaveamistake:
aptgetsoftware_nametheoptioninstallfault,isntit?!
Not?
https://mikesmithers.wordpress.com/2010/03/14/installingoracle11gr2onubuntu910/ 30/33
20/04/2017 InstallingOracle11gR2onUbuntu9.10|TheAntiKyte
NecipAKCA
onSeptember26,2011at8:44amsaid:
excellentshare,thanksalot
Pingback:InstalandooOracle11gRelease2noUbuntu11.10whoisroot
pidkiller
onMarch29,2012at4:57amsaid:
Thanksalotforyourpost!Ithelpedmealot!
IhavementionedyouasasourceinapostIhavecreatedformynewblogasIhave
alsopostedmyexperiencewhileinstallingOracle11ginUbuntu11.10.Obs:Itisin
portuguese.
http://whoisroot.wordpress.com/2012/03/15/instalandoooracle11grelease2noubuntu
1110/
Hopeitisok.
Thanksagain!
mikesmithers
onMarch30,2012at11:12amsaid:
Noproblematall.
Gladyoufoundituseful.
Mike
mm
onMay14,2014at3:36pmsaid:
https://mikesmithers.wordpress.com/2010/03/14/installingoracle11gr2onubuntu910/ 31/33
20/04/2017 InstallingOracle11gR2onUbuntu9.10|TheAntiKyte
Iamtryingtoinstalloracle11g2onUbuntu14.04.WhileInstallationIgeterrorwhen
performingprerequisitechecks.Itriedtorunthefixupscriptsbutgotthefollowingerror
message.Thevalueforsemmniinresponsefileisnotgreaterthanvalueofsemmnifor
currentsession.Hencenotchangingit.ButIhavesetsemmniwiththerequiredvalue.
Itriedtoignoreandcontinuetoinstalbutgottheerrorinenvokingtargetinstallofmake
make
file.
Wouldyoupls.help.
mikesmithers
onMay15,2014at10:00amsaid:
ItsawhilesinceIdidthissoapologiesifImstatingtheobvious
Acoupleofthingsspringtomind.
Firstly,youcouldsetthesemmnivaluetoahighervaluethanyouvecurrently
got.
Secondly,youmayfinditpossibletogetpastthisbycheckingtheIgnoreAll
checkbox(seethescreenshotforStep9ontheinstaller).
Someotherpointstonote,whichmayormaynotbepractical.
First,isitessentialthatyouinstallonUbuntu?IfyouwantanOracledatabase
onLinuxbutdontwanttogodowntheOracleLinux/Solarisroute,thentheres
alwaysRedHatorevenCentOSallofwhichsupporttheOracledatabase
natively(CentOSisessentiallyacloneofRedHat).
Secondly,ifyouretryingtogetthisupandrunningonaVMratherthana
physicalmachinethenyoumightwanttolookattheOracleDeveloperDays
VirtualBoxpackageswhichprovideafullypreinstalledsoftwarestack.
Youcanfindthemathttp://www.oracle.com/technetwork/community/developer
vm/index.html
Finally,ifyouredoingthisonadesktopforthepurposeofplayingaroundwith
Oracle,thenhaveyouconsideredOracleExpressEdition11g?Thisprovidesa
fullworkingdatabase(minussomefeaturesofEnterpriseEdition)andismuch
easiertoinstall.Thereisalinktotheinstallationinstructionsonthispost.
LikeIsaid,ImnotsureIcanreallybeofmuchassistanceintermsofyour
specificissuebutIhopeyoufindsomeofthisuseful.
Mike
mm
onMay15,2014at2:20pmsaid:
Thankyouverymuch.
https://mikesmithers.wordpress.com/2010/03/14/installingoracle11gr2onubuntu910/ 32/33
20/04/2017 InstallingOracle11gR2onUbuntu9.10|TheAntiKyte
FranciscoOsegueraGuerrero
onJuly11,2014at7:41amsaid:
Manythanks,Mike!!!Followingyouradvisebythethumbdoeshitsuccess.Theonly
additionalfixIbumpedwithwasacoupleoflibrariesmissingwhereexpectedwhich,
afterabrieflookupintothesamebox,gotsmoothedlikeso:
/lib/libgcc_s.so.1
lns/lib/i386linuxgnu/libgcc_s.so.1/lib/libgcc_s.so.1
/usr/lib/libstdc++.so.6
lns/usr/lib/i386linuxgnu/libstdc++.so.6.0.19/usr/lib/libstdc++.so.6
(Isuggestalookup,forinstance,find/typefname*libstdc++.so*forthecasethey
haveminorversionsappendedtothefilename)
Andnow,OraclerunsinmyUbuntuserver14.04
Onme,youhaveasixpackofbeers!!!
mikesmithers
onJuly11,2014at1:00pmsaid:
Francisco,
gladyoufoundituseful.
thanksfortheadvice(andthebeer
Mike
https://mikesmithers.wordpress.com/2010/03/14/installingoracle11gr2onubuntu910/ 33/33