You are on page 1of 11

HNG DN CI ORACLE 11g TRN RHEL5 - 64 bit.

Bc 1: Cu hnh network: - Vo System -> Administration -> Server Settings -> Services - Check vo service smb -> click Start -> click Save. - Click chut phi, vo Open Terminal - nh lnh cd / tr ra th mc gc. - To th mc share cho linux: mdrsae ki hr mdr/hr/aa ki saedt mdr/hr/eu ki saestp - Sa thuc tnh th mc share cho linux: cmd 77/hr ho R 7 sae - To user share cho linux: gopd sb ruad m uead- - sbamn srd m g m di - t password cho user admin psw amn asd di > New UNIX password: <nhp password vo> > Retype new UNIX password: <nhp password vo> - Cp quyn truy cp th mc share cho user admin con :m /hr hw R sb sae con amn/hr hw R di sae Cch 1: - Vo sa file smb.conf share th mc cho linux: (g lnh mc trong terminal) + G lnh mc + Vo th mc /etc/samba + Chn file smb.conf -> Bm F4 + Thm vo on lnh sau: { [aa dt] cmet=Dt o Sre omn aa n evr pt =/hr/aa ah saedt wiebe=ys rtal e

bosal =ys rwebe e geto =ys us k e } { [eu] stp cmet=Dt Stpo Sre omn aa eu n evr pt =/hr/eu ah saestp wiebe=n rtal o bosal =n rwebe o vldues=amn ai sr di } - Bm F2 save li, bm ESC thot ra. Cch 2: Share bng giao din - Vo System -> Administration -> Server Settings -> Samba - Click Preferences -> Server Settings - Tab Basic : + Workgroup: server.myphuoc.vn + Description: Server benh vien My Phuoc - Tab Security : + Authentication Mode: Share + Authentication Server: + Kerberos Realm: + Encrypt Passwords: Yes + Guest Account: No guest account - Click OK - Click Preferences -> Samba Users - Click Add User + Unix Username: admin + Windows Username: administrator + Samba Password: links1920 <password lc sa passwd user admin> + Confirm Samba Password: links1920 - Click OK (mn hnh Create New Samba User) - Click OK (mn hnh Samba Users) - Click Add Share (mn hnh Samba Server Configuration) -> Mn hnh Create Samba Share:

- Tab Basic : + Directory : /share/data (Hoc click nt Browse tm th mc data to) + Share name: data + Description: Data on Server + Check vo Writable. + Check vo Visible. - Tab Access : + Check vo Allow access to everyone. - Share thm th mc setup copy cc chng trnh cho my client: - Tab Basic : + Directory : /share/setup (Hoc click nt Browse tm th mc data to) + Share name: Setup + Description: Data Setup on Server + B check vo Writable. + Check vo Visible. - Tab Access : + Check vo Only allow access to specific user. -> check vo admin. - Vo System -> Log Out root, sau log vo li Linux cp nht cc cu hnh sa. -------------------------------------------------------------------------------------------------Bc 2: Ci Oracle 11g trn EL5 (64bit): -------------------------------------------------------------------------------------------------- Chun b cc mc sau: + Copy th mc oracle sang /share/data trn my server. (trong th mc oracle c file linux.x64_11gR1_database_1013.zip) + Gii nn file linux.x64_11gR1_database_1013.zip. (Chn Extract Here: gii nn ra th mc database) + Copy th mc rpm_ora11g vo /share/data + Copy file hng dn vo /share/data h tr ci t. * To Groups v User Account - Ci Oracle cn nh sau: 1. To 2 Groups: c tn l oinstall v dba 2. To 1 User account tn l: oracle

Login vo quyn root gopd ontl ruad isal gopd da ruad b uead- - ontl - daoal srd m g isal G b rce

- t password cho user oracle passwd oracle > Changing password for user oracle. > New UNIX password: links1920 > Retype new UNIX password: links1920 > passwd: all authentication tokens updated successfully. Ch : UNIX password i phi c s, ch, du c bit! Mt UNIX pasword th d nh l: P@ssw0rd Kim tra li, run: i oal d rce To th mc ci, sa thuc tnh v cp quyn th mc cho user oracle. 1. To 1 th mc / O a l / p urceap 2. Trao quyn owner cho user oracle 3. Trao quyn read, write mi th trong /uOracle/app cho tt c! Run commands: mdr- /Oal/p ki p urceap con- oal:isal/Oal/p hw R rceontl urceap cmd- 77/Oal/p ho R 7 urceap Set Enviroment for user oracle - Log Out root, Log in vo li Linux cp nht cc thng s. Vo mc, m file / o e o a l / b s _ r f l thm vo: hm/rce.ahpoie #niomn froal evrnet o rce OAL_AE/Oal/p/rce RCEBS=urceapoal OAL_OE$RCEBS/rdc/110d_ RCEHM=OAL_AEpout1../b1 OAL_I=EIOT RCESDMDSF PT=PT:OAL_OEbn AH$AH$RCEHM/i L_IRR_AH$RCEHM/i:lb/s/i DLBAYPT=OAL_OElb/i:urlb CASAH$RCEHM/R:OAL_OEji:OAL_OErbsji LSPT=OAL_OEJE$RCEHM/lb$RCEHM/dm/lb

epr OAL_AEOAL_OEOAL_I PT L_IRR_AH xot RCEBS RCEHM RCESD AH DLBAYPT CASAH LSPT (Ch : Khi ci oracle l log vo bng user oracle.)

Kim tra, upgrade RPMs: Bc ny hi rt ri t. Oracle1 i hi cc RPM phi c ti thiu cc Version sau: bntl-.75.. iuis21.006 cma-isd+-3323 optlbtc+3-.. cma-isd+-3323(2bt optlbtc+3-.. 3 i) eftl-ief015 luislbl-.2 eftl-iefdvl015 luislbl-ee-.2 gc411 c-.. gcc+411 c-+-.. gic251 lb-.-2 gic251 (2bt lb-.-2 3 i) giccmo-. lb-omn25 gicdvl25 lb-ee-. gicdvl251 (2bt lb-ee-.-2 3 i) lbi-..0 iao0316 lbi-..0 (2bt iao0316 3 i) lbi-ee-..0 iaodvl0316 lbc-.. igc411 lbc-.. (2bt igc411 3 i) lbtc+411 isd+-.. lbtc+411(2bt isd+-.. 3 i) lbtc+dvl411 isd+-ee .. mk-.1 ae38 sstt700 ysa-.. Run command sau xem mnh ang c RPM Version no? #rm- mk bntl gclbi lbi-ee lbtc+ p q ae iuis c iao iaodvl isd+ eftl-iefdvlssttcma-isd+ lbc lbtc+dvl luislbl-ee ysa optlbtc+ igc isd+-ee uiOB-..1uiOB-ee nxDC221 nxDCdvl (..g trong 1 line) Kt qu: bntl-.75..-.l (8_4 iuis21.0062e5 x66) cma-isd+-33236 (36 optlbtc+3-..-1 i8)

cma-isd+-33236 (8_4 optlbtc+3-..-1 x66) eftl-ief0153e5(8_4 luislbl-.2-.l x66) eftl-iefdvl0153e5(8_4 luislbl-ee-.2-.l x66) gc4115.l (8_4 c-..-2e5 x66) gcc+4115.l (8_4 c-+-..-2e5 x66) gic251 (66 lb-.-2 i8) gic251 (8_4 lb-.-2 x66) giccmo-.-2(8_4 lb-omn251 x66) gicdvl251 (8_4 lb-ee-.-2 x66) gicdvl251 (36 lb-ee-.-2 i8) lbi-..0-. (8_4 iao031632 x66) lbi-..0-. (36 iao031632 i8) lbi-ee-..0-. (8_4 iaodvl031632 x66) lbc-..-2e5(8_4 igc4115.l x66) lbc-..-2e5(36 igc4115.l i8) lbtc+4115.l (8_4 isd+-..-2e5 x66) lbtc+4115.l (36 isd+-..-2e5 i8) lbtc+dvl4115.l (8_4 isd+-ee-..-2e5 x66) mk-.111(8_4 ae38-. x66) sstt7003e5(8_4 ysa-..-.l x66) So snh cc RPMs. Nu thiu ci no th phi ci mi vo. Version c th phi upgrade ln! Cc RPM c th tm thy trong CD ci Linux, hay search trn google Ti copy cc RPMs vo ci th mc shares ca VMWare, chy cc command sau: #rm-v lbi-ee-..0-..36rm p ih iaodvl031632i8.p #rm-v uiOB-..171i8.p p ih nxDC221-..36rm #rm-v uiOB-ee-..171i8.p p ih nxDCdvl221-..36rm #rm-v cma-isd+-33236.36rm p ih optlbtc+3-..-1i8.p note: to install/ci mi: r m - v p c a e f l - a e r m p ih akg-ienm.p to update/nng cp: r m - v p c a e f l - a e p Uh akg-ienm xem info package c trong my: r m - i p c a e n m p q akg-ae xem info package file: r m - p p c a e f l - a e p qi akg-ienm

Config Linux Kernel Parameters Vo mc, thm cc lines sau vo file / t / y c l c n ecsst.of #hslnsi frOal Isalto Ti ie s o rce ntlain kre.hal=2912 enlsml 075

kre.hmx=56792 enlsma 3801 kre.hmi=49 enlsmn 06 kre.e =203001018 enlsm 5 20 0 2 f.iemx=6560 sfl-a 530 ntiv.plclpr_ag =12 600 e.p4i_oa_otrne 04 50 ntcr.mmdfut=4934 e.oere_eal 140 ntcr.mmdfut=224 e.oewe_eal 614 ntcr.mmmx=4934 e.oere_a 140 ntcr.mmmx=224 e.oewe_a 614 Check li, run: #sst ycl p

Setting Shell Limits for user oracle todo: 1. Thm vo file /etc/security/limits.conf cc dng sau: (trn ci line # End of file) oal sf nfl 656 rce ot oie 36 oal hr nfl 656 rce ad oie 33 oal sf nrc134 rce ot po 68 oal hr nrc134 rce ad po 68 (note: soft limit = hard limit setting) ------------Reboot li server. ------------Ci Oracle11 Login vo Linux vi user oracle. Kim tra(echo) li xem coi cc Environment Vars c set, export ko? Run: $c/ d $c /hr/aaoal/aaae d saedt/rcedtbs $.rnntle /uIsalr

- Mn hnh Select Installation Method: chn Advanced Installation -> Next. - Mn hnh Specify Inventory directory and credentials default: + Enter the full path the inventory directory: /uOracle/app/oraInventory

+ Specify Operating System group name: oinstall - Click Next. - Mn hnh Select Installation Type check Enterprise Edition (3.57GB) -> Next. - Mn hnh Install Location default: + Oracle Base: /uOracle/app/oracle + Name: OraDb11g_home1 + Path: /uOracle/app/oracle/product/11.1.0/db_1 - Click Next. - Mn hnh Product Specific Prerequisite Checks click Next. - Mn hnh Select Configuration Option default Create a Database -> Next. - Mn hnh Select Database Configuration default General Purpose / Transaction Processing -> Next. - Mn hnh Specify Database Configuration Options t li: + Global Database Name: medisoft.links + SID: medisoft - Click Next. - Mn hnh Specify Database Config Details: + Tab Memory : > Check Enable Automatic Memory Management > Chn size trong Allocate Memory khong 80%. + Tab Character Sets : > Check Use Unicode (AL32UTF8)

+ Tab Security : > default + Tab Sample Schemas : > default. - Click Next. - Mn hnh Select Database Management Option : default. -> Next. - Mn hnh Specify Database Storage Option : default. -> Next. (check File System). + Specify Database file location : /uOracle/app/oracle/oradata

- Mn hnh Specify Backup and Recovery Options: + Check: Enable Automated Backups + Check File System + Recovery Area Location: /uOracle/app/oracle/flash_recovery_area/ + Username: oracle + Password: links1920 - Click Next. - Mn hnh Specify Database Schema Passwords: t pass + SYS: links1920 + SYSTEM: links1920 + SYSMAN: links1920 + DBSNMP: links1920 - Click Next. - Mn hnh Privileged Operating System Groups. default + Database Administrator (OSDBA) Group: dba + Database Operator (OSOPER) Group: oinstall + ASM administrator (OSASM) Group: oinstall - Click Next. - Mn hnh Oracle Configuration Manager Registration default -> click Next. - Mn hnh Summary -> click Install - Ch Oracle install. - Mn hnh Database Configuration Assistant -> click OK

- Mn hnh Execute Configuration scripts : Bc ny phi chy 2 ci scrips bng user root. -Chut phi m new Terminal -G: $s -ro u ot #/Oal/p/rIvnoyoantots urceapoanetr/risRo.h #/Oal/p/rcepout1../b1ro.h urceapoal/rdc/110d_/ots Khi b hi: Enter the full pathname of the local direcory, th nhn Enter... # exit <- quay v oracle #exit <- close terminal -tip tc vi Oracle Install dialog box: click OK

-> click OK - Mn hnh End of Installation -> click Exit. -----------------------To th mc cha file data: c / d mdr- /Oal/aamdsf ki p urcedt_eiot s ro u ot cmd- 77/Oal/aamdsf ho R 7 urcedt_eiot con- oal /Oal/aamdsf hw R rce urcedt_eiot ei xt Vo sqlplus: sllssse/ik12@eiot qpu ytmlns90mdsf @gdnfl totbepc> <n ie alsae ei xt Chy file tao.sql to database (sa ng dn li) - To cc user: sllssse/ik12@eiot qpu ytmlns90mdsf @gdnfl toue> <n ie sr ei xt

import vo: ln lt nhp cc lnh: ipmdb/eivmdsf fl= m eivmdb@eiot uly fl=saedt/aaBM\eivDP ie/hr/aaDt_VPmdb.M ipmdb10/eiv28mdsf fl= m eiv28mdb10@eiot uly fl=saedt/aaBM\eiv28DP ie/hr/aaDt_VPmdb10.M ipmdbd28mdbd28mdsf fl= m eiv10/eiv10@eiot uly fl=saedt/aaBM\eiv10.M ie/hr/aaDt_VPmdbd28DP

-------------------- To file t startup ---------------------T ng Start v Shutdown Login vo h thng bng user root:

1. chnh sa file /etc/oratab, thay i k t cui cng thnh Y (mc nh l N). mdsf:urceapoal/rdc/110d_: eiot/Oal/p/rcepout1../b1Y 2. chnh sa file /uOracle/app/oracle/product/11.1.0/db_1/bin/dbstart v thay i gi tr cho OAL_OELSNR(uidn FrtAgmn i uet bigu RCEHM_ITE do og is ruet s s o rn p oal ntLsee) rce e itnr: OAL_OELSNR$RCEHM RCEHM_ITE=OAL_OE 3. chnh sa file /uOracle/app/oracle/product/11.1.0/db_1/bin/dbshut v thay i gi tr cho OAL_OELSNR(uidn Teti t Bigdw oal Nt RCEHM_ITE Do og h hs o rn on rce e Lsee) itnr: OAL_OELSNR$RCEHM RCEHM_ITE=OAL_OE 4. Copy file c tn l oracle trong th mc hng dn vo trong th mc /etc/init.d/ vi ni dung nh sau: Sau : (chy lnh bng terminal trong user root) cmd70/t/ntdoal ho 5 ecii./rce ckofg-adoal -lvl05 hcni -d rce -ee 36

---- Kt thc ci t -----

bachtruonghuy
----- Xin cm n theo di -----

You might also like