Вы находитесь на странице: 1из 10

PART I: Installing Linux The minimum hardware requirements are, 800MHz Pentium III CPU 1024MB of !

!M Steps in installing process: 1" Boot the ser#er usin$ the first C%" o &ou ma' need to (han$e 'our BIOS settings to a))ow *ootin$ from the C%" 2" The *oot s(reen a++ears with the boot: +rom+t at the *ottom of the s(reen" o ,e)e(t Enter to (ontinue with a $ra+hi(a) insta)) on the (onso)e" o The insta))er s(ans 'our hardware, *rief)' dis+)a's the ed Hat s+)ash s(reen, and then *e$ins a series of s(reen +rom+ts" -" .an$ua$e ,e)e(tion o !((e+t the defau)t" 4" /e'*oard Confi$uration o !((e+t the defau)t" 0" 1e)(ome ,(reen o C)i(2 on Next" 3" %is2 Partitionin$ ,etu+ This $uide uses the fo))owin$ +artitionin$ s(heme, with e4t- for ea(h fi)e s'stem5 The 67B dis2 on the first (ontro))er 89de#9sda: wi)) ho)d a)) .inu4 and ;ra()e software and (ontains the fo))owin$ +artitions5 /boot < 100MB" This wi)) *e set *' default" /s ap< B' defau)t this wi)) *e set as !!"#B" This shou)d *e t ice the amount of RA# in the s'stem, *ut the swa+ shou)d not *e more than 27B" Be(ause, Thirt'=two=*it s'stems do not su++ort swa+ fi)es )ar$er than 27B" If 'ou need more than 27B of swa+ s+a(e, (reate mu)ti+)e swa+ +artitions" >or remainin$ a)) a((e+t defau)t" /root <?,100MB" This +artition wi)) *e used for e#er'thin$, in()udin$ 9usr, 9tm+, 9#ar, 9o+t, 9home, and more 8Optional:" ?" Boot .oader Confi$uration o !((e+t the defau)t" 8" @etwor2 Confi$uration o !((e+t the defau)t" 6" >irewa)) Confi$uration o >or the +ur+oses of this wa)2=throu$h, no firewa)) is (onfi$ured" B' defau)t, the firewa)) is in ena*)e status" But, se)e(t No fire all" o ,e)e(t %isa*)ed on the AEnable SELinuxA dro+ down )ist" o C)i(2 on Proceed when the A$arning % No &ire allA window a++ears" 10" !dditiona) .an$ua$e ,u++ort o !((e+t the defau)t"

11" Time Bone ,e)e(tion o Choose the time settin$s that are appropriate for 'our area" ,ettin$ the s'stem ()o(2 to (T) is usua))' a $ood +ra(ti(e for ser#ers" To do so, ()i(2 on S'ste* cloc+ uses (T)" 12" ,et Root Pass ord o Cnter a +assword for root, and enter it a$ain to (onfirm" 1-" Pa(2a$e Insta))ation %efau)ts o ,e)e(t )usto*i,e soft are pac+ages to be installed 14" Pac+age 7rou+ ,e)e(tion o ,e)e(t on)' the +a(2a$e sets shown here and )ea#e a)) others unse)e(ted" o -es+top 1" D 1indow ,'stem 2" 7nome o Applications 1" 7ra+hi(a) Internet 8o+tiona): o Ser.ers 1" %o not se)e(t an'thin$ in this $rou+" o -e.elop*ent 1" %e#e)o+ment Too)s o S'ste* 1" !dministration Too)s 2" ,'stem Too)s 1" !dd the +a(2a$e /s'sstat/ *' ()i(2in$ on the %etai)s )in2 and se)e(tin$ As'sstat = The sar an iostat s'stem monitorin$ (ommands"A from the ;+tiona) Pa(2a$es )ist" o #iscellaneous 1" %o not se)e(t an'thin$ in this $rou+" o C)i(2 on @e4t to +ro(eed" 10" Insta))in$ Pa(2a$es o ,oftware wi)) *e (o+ied to the hard dis2 and insta))ed" Chan$e dis2s as +rom+ted" 13" @ow, 'ou wi)) $et the messa$e )i2e, remo#e the insta))ation media from the s'stem, and ()i(2 on Reboot" %o, this one" 1?" The s'stem automati(a))' re*oots and +resents a new we)(ome s(reen" o C)i(2 on Next" 18" .i(ense !$reement o ead the )i(ense a$reement" If a$ree to the terms, se)e(t 0es1 I agree to t2e License Agree*ent and ()i(2 on Next" 16" %ate and Time o ,et the %ate and Time" o If 'ou want to use an @TP ser#er 8re(ommended:, se)e(t Enable Net or+ Ti*e Protocol and enter the name of the @TP ser#er, otherwise ()i(2 on ne4t" 20" %is+)a' o !((e+t the defaults or (han$e as required" 21" ed Hat .o$in o Cnter 'our ed Hat @etwor2 )o$in and +assword or (reate a new one 3Optional4"

22" ,'stem User 3optional4 o Create an a((ount for 'ourse)f" o -o not (reate an a((ount for oracle at this time" Creatin$ the ora()e a((ount is (o#ered )ater in this se(tion" 2-" !dditiona) C%s o C)i(2 on @e4t" 24" >inish ,etu+ o C)i(2 on @e4t" 20" ! $ra+hi(a) )o$in s(reen a++ears" 23" @ow, HC.4 is insta))ed" 5erif'ing 0our Installation5 equired 2erne) #ersion5 "676!%869686EL or an' of the 2erne)s su++)ied in updates, wor2s with ;ra()e %ata*ase 10g e)ease 2" Che(2 2erne) #ersion *' runnin$ the fo))owin$ (ommand5 una*e %r C45 E uname =r 2"3"6=22"C.sm+ ;n(e 'ouF#e (om+)eted the ste+s a*o#e, a)) of the +a(2a$es required for ;ra()e %ata*ase 10g e)ease 2 wi)) ha#e *een insta))ed" Gerif' this usin$ the e4am+)e *e)ow" Re:uired pac+age .ersions 3or later45 *inuti)s=2"10"62"0"2=10"C.4 (om+at=d*=4"1"20=6 (ontro)=(enter=2"8"0=12 $((=-"4"-=6"C.4 $((=(HH=-"4"-=6"C.4 $)i*(=2"-"4=2 $)i*(=(ommon=2"-"4=2 $nome=)i*s=1"4"1"2"60=44"1 )i*std(HH=-"4"-=6"C.4 )i*std(HH=de#e)=-"4"-=6"C.4 ma2e=-"80=0 +d2sh=0"2"14=-0 s'sstat=0"0"0=1 4s(reensa#er=4"18=0"rhe)4"2 )i*aio=0"-"63 To see whi(h .ersions of these +a(2a$es are insta))ed on 'our s'stem, run the fo))owin$ (ommand5 rp* ;: pac+agena*e

Part II: )onfiguring Linux for Oracle Gerif'in$ ,'stem equirements, grep #e*Total /proc/*e*info grep S apTotal /proc/*e*info C45 E $re+ MemTota) 9+ro(9meminfo MemTota)5 10-4380 /B E $re+ ,wa+Tota) 9+ro(9meminfo ,wa+Tota)5 10-4163 /B 1" The minimum RA# required is <9"=#B, and the minimum required s ap s+a(e is <>B" ,wa+ s+a(e shou)d *e t ice the amount of !M for s'stems it2 ">B of RA# or less and bet een one and t o ti*es the amount of !M for s'stems it2 *ore t2an ">B" 2" &ou a)so need "68>B of a.ailable dis+ space for the ;ra()e %ata*ase 10g e)ease 2 software and another <6">B for t2e database" The 9tm+ dire(tor' needs at )east 400MB of free s+a(e" To c2ec+ the a#ai)a*)e dis+ space on 'our s'stem, run the fo))owin$ (ommand5 df %2 C45 E df =h >i)es'stem ,ize Used !#ai) UseI Mounted on 9de#9sda- 3"87 1"-7 0"27 20I 9 9de#9sda1 66M 1?M ??M 18I 9*oot )reate t2e Oracle >roups and (ser Account: C4e(ute the fo))owin$ (ommands as root5 /usr/sbin/groupadd oinstall /usr/sbin/groupadd dba /usr/sbin/useradd %* %g oinstall %> dba oracle id oracle C45 E 9usr9s*in9$rou+add oinsta)) E 9usr9s*in9$rou+add d*a E 9usr9s*in9useradd =m =$ oinsta)) =7 d*a ora()e E id ora()e uidJ0018ora()e: $idJ0028oinsta)): $rou+sJ0028oinsta)):,00-8d*a:

,et the pass ord on the oracle a((ount5 pass d oracle C45 E +asswd ora()e Chan$in$ +assword for user ora()e" @ew +assword5 et'+e new +assword5 +asswd5 a)) authenti(ation to2ens u+dated su((essfu))'" )reate -irectories: @ow (reate dire(tories to store the ;ra()e %ata*ase 10g e)ease 2 software and the data*ase fi)es" Issue the fo))owin$ (ommands as root5 *+dir %p /2o*e/oracle/oracle c2o n %R oracle:oinstall /2o*e/oracle/oracle/ c2*od %R ??8 /2o*e/oracle/oracle/ C45 E m2dir =+ 9home9ora()e9ora()e E (hown = ora()e5oinsta)) 9home9ora()e9ora()e E (hmod = ??0 9home9ora()e9ora()e )onfiguring t2e Linux @ernel Para*eters: The *e)ow a)) #a)ues are in b'tes" 7i#e the s2**ax #a)ue as 2alf of the RA#" (at KK 9et(9s's(t)"(onf LLC;> 2erne)"shma)) J 206?102 2erne)"shmma4 J 0-38?0612 2erne)"shmmni J 4063 2erne)"sem J 200 -2000 100 128 fs"fi)e=ma4 J 300-3 net"i+#4"i+M)o(a)M+ortMran$e J 1024 30000 net"(ore"rmemMdefau)tJ232144 net"(ore"wmemMdefau)tJ232144 net"(ore"rmemMma4J232144 net"(ore"wmemMma4J232144 C;>

Then, t'+e the fo))owin$ (ommand to set the a*o#e +arameters as defau)t,

/sbin/s'sctl ;p un the fo))owin$ co**ands as root to #erif' 'our settin$s5 E 9s*in9s's(t) =a N $re+ shm 2erne)"shmmni J 4063 2erne)"shma)) J 206?102 2erne)"shmma4 J 0-38?0612 2erne)"shm=use=*i$+a$es J 0 E 9s*in9s's(t) =a N $re+ sem 2erne)"sem J 200 -2000 100 128 E 9s*in9s's(t) =a N $re+ fi)e=ma4 fs"fi)e=ma4 J 300-3 E 9s*in9s's(t) =a N $re+ i+M)o(a)M+ortMran$e net"i+#4"i+M)o(a)M+ortMran$e J 1024 30000 E 9s*in9s's(t) =a N $re+ rmemMdefau)t net"(ore"rmemMdefau)t J 232144 E 9s*in9s's(t) =a N $re+ rmemMma4 net"(ore"rmemMma4 J 232144 E 9s*in9s's(t) =a N $re+ wmemMdefau)t net"(ore"wmemMdefau)t J 232144 E 9s*in9s's(t) =a N $re+ wmemMma4 net"(ore"wmemMma4 J 232144 Setting S2ell Li*its for t2e oracle (ser: un the fo))owin$ co**and as root, (at KK 9et(9se(urit'9)imits"(onf LLC;> ora()e soft n+ro( 204? ora()e hard n+ro( 13-84 ora()e soft nofi)e 1024 ora()e hard nofi)e 300-3 C;> (at KK 9et(9+am"d9)o$in LLC;> session required 9)i*9se(urit'9+amM)imits"so C;> (at KK 9et(9+rofi)e LLC;> if O PQU,C J Aora()eA RS then if O PQ,HC.. J A9*in92shA RS then u)imit =+ 13-84 u)imit =n 300-3 e)se u)imit =u 13-84 =n 300-3 fi umas2 022 fi

C;> (at KK 9et(9(sh")o$in LLC;> if 8 PQU,C JJ Aora()eA : then )imit ma4+ro( 13-84 )imit des(ri+tors 300-3 umas2 022 endif C;>

Part III: Installing Oracle:

Setting t2e displa' .ariable: un the fo))owin$ co**and in root, x2ost A un the fo))owin$ co**and in oracle user, export -ISPLA0B:9 Install t2e Soft are and )reate a -atabase: 7o to the dire(tor' where ora()e software is )o(ated" Then, start the ora()e uni#ersa) insta))er" 6/runInstaller 1" ,e)e(t Insta))ation Method o ,e)e(t Basi( Insta))ation o ;ra()e Home .o(ation5 /2o*e/oracle/oracle/product/<96"69/dbC< o Insta))ation T'+e5 Enterprise Edition 3<6D>B4 o U@ID %B! 7rou+5 oinstall o Ma2e sure Create ,tarter %ata*ase is (he(2ed o 7)o*a) %ata*ase @ame5 b"+ o Cnter the %ata*ase Password and Confirm Password o C)i(2 on @e4t 2" ,+e(if' In#entor' %ire(tor' and Credentia)s o In#entor' %ire(tor'5 /2o*e/oracle/oracle/oraIn.entor' o ;+eratin$ ,'stem $rou+ name5 oinstall o C)i(2 on @e4t -" Produ(t=s+e(ifi( Prerequisite Che(2s o If 'ouF#e *een fo))owin$ the ste+s in this $uide, a)) the (he(2s shou)d +ass without diffi(u)t'" If one or more (he(2s fai), (orre(t the +ro*)em *efore +ro(eedin$" o C)i(2 on @e4t 4" ,ummar' o ! summar' of the +rodu(ts *ein$ insta))ed is +resented" o C)i(2 on Install" 0" Confi$uration !ssistants o The ;ra()e @et, ;ra()e %ata*ase, and i,T.UP)us (onfi$uration assistants wi)) run automati(a))' 76 Execute )onfiguration Scripts o !t the end of the insta))ation, a +o+ u+ window wi)) a++ear indi(atin$ s(ri+ts that need to *e run as root" Login as root and run t2e indicated scripts as, s2 scriptna*e o C)i(2 on O@ when finished" ?" Cnd of Insta))ation o Ma2e note of the U .s +resented in the summar', and ()i(2 on Exit when read'" 8" ;ra()e %ata*ase 10g e)ease 2 data*ase is u+ and read' for use" )reate Oracle -irectories and Set Per*issions:

.o$in as root and run the fo))owin$ (ommands, m2dir =+ 9home9oradata9de*o< (hown = ora()e5oinsta)) 9home9oradata9 (hmod = ??0 9home9oradata9 )onfiguring t2e bas2Cprofile: To run the s:lplus (ommand we ha#e to set the oracle 2o*e pat2 in bas2Cprofile" .o$in as root and do the fo))owin$" E.i 6bas2Cprofile PATFBEPATF:EFO#E/bin export PATF unset (SERNA#E export ORA)LECFO#EB/2o*e/oracle/oracle/product/<96"69/dbC< export L-CLIBRAR0CPATFBEL-CLIBRAR0CPATF:EORA)LECFO#E/lib export PATFBEORA)LECFO#E/bin:EPATF export ORA)LECSI-Bb"+

Then run the a*o#e bas2Cprofile in *oth root and oracle )o$in" E6 6bas2Cprofile @ow, RESTART ser#er" Accessing t2e -atabase it2 SGLHPlus: .o$ into .inu4 as ora()e" un ,T.UP)us5 Q sq)+)us )reate -'na*ic Table space in t2e &ile s'ste*: C C!TC T!B.C,P!CC %&@!MIC %!T!>I.C FP!TH !%% C,,"%B>F ,IBC 27 ; 2048M !UT;CDTC@% ;@S

Adding -ata file to -'na*ic Table space:

!.TC T!B.C,P!CC %&@!MIC !%% %!T!>I.C VP!TH!%% C,,"%B>W ,IBC 27 ; 2048MS

)reate Te*porar' Table Space in t2e &ile S'ste*: C C!TC TCMP; ! & T!B.C,P!CC TCMP; ! &MB !I@, TCMP>I.C V9H;MC9; !C.C9; !C.C9P ;%UCT910"2"09; !%!T!9B2/9TCMP; ! &MB !I@,01"%B>W ,IBC 17 CU,CS Adding Te*p file to Te*porar' Table space: !.TC T!B.C,P!CC TCMP; ! &MB !I@, !%% TCMP>I.C V9H;MC9; !C.C9; !C.C9P ;%UCT910"2"09; !%!T!9B2/9TCMP; ! &M B !I@,02"%B>W ,IBC 17S

Вам также может понравиться