Cai Dat Oracle 10g Database

download Cai Dat Oracle 10g Database

If you can't read please download the document

  • date post

    22-Nov-2015
  • Category

    Documents

  • view

    23
  • download

    1

Embed Size (px)

description

Hướng dẫn cài đặt oracle 10g

Transcript of Cai Dat Oracle 10g Database

  • CMIS 2.0 Help Hng dn ci t h thng

    C s d liu

    Version 1.0

  • H thng CMIS 2.0 Hng dn ci t h thng C s d liu

    2/57

    MC LC 1. Ci t my ch C s d liu Database Server ...................................................................... 31.1 Yu cu v thng s h thng trc khi ci t ................................................................... 31.1.1 Kim tra xem my ch ci t CSDL Oracle cha ........................................................ 31.1.2 Cc yu cu v h thng trc khi ci t CSDL .............................................................. 31.1.3 Cch tnh dung lng, s lng datafile trong CMIS2. ...................................................... 41.1.4 Mt s cch theo di qu trnh thc hin script. .............................................................. 61.2 Ci t CSDL Oracle 10G: ................................................................................................ 71.3 Cu hnh Listener Service v Net Service Name. ............................................................... 171.4 Ci t Database .......................................................................................................... 341.5 To user v TableSpace ca h thng ............................................................................. 51

  • H thng CMIS 2.0 Hng dn ci t h thng C s d liu

    3/57

    1. Ci t my ch C s d liu Database Server

    1.1 Yu cu v thng s h thng trc khi ci t

    1.1.1 Kim tra xem my ch ci t CSDL Oracle cha

    Nu my ch cha ci t phin bn Oracle no th tin hnh ci t bnh thng theo kch bn Nu my ch ci t t nht mt phin bn Oracle th cn thng nht li vi ngi qun tr CSDL

    ca n v:

    o Nu h thng CSDL tn ti c th chuyn c sang my ch khc cn yu cu ngi qun tr CSDL ca n v thc hin vic chuyn. Sau xo ht thng tin v CSDL Oracle c, ci t

    mi theo kch bn.

    o Nu h thng CSDL tn ti khng th chuyn c sang my ch khc, cn tho thun v tin hnh theo cc cch sau

    C1: To thm database CMIS2 trn h thng CSDL ny. Yu cu: Phin bn Oracle trn my ch t 10.1.0.2 tr ln.

    C2: Ci t Oracle 10g ln a khc vi a c CSDL Oracle c. Yu cu: Hai phin bn Oracle l khc nhau, chp nhn vic cc ng dng trn my ch ch c th hiu c mt h

    thng CSDL, cc my trm kt ni hiu c c hai h thng CSDL.

    1.1.2 Cc yu cu v h thng trc khi ci t CSDL

    Tnh ton vng lu tr CSDL CMIS 2.0. o c lng tng i: Vng lu tr CSDL Oracle 10g ci t cn t nht l gp i dung lng

    CSDL Oracle 9i cha d liu CMIS 1.0. L do l CSDL Oracle 10g trong giai on u cn cha

    c d liu CMIS 1.0 v d liu CMIS 2.0 c chuyn i sang. Cch d nht l vo th mc ci

    t c s d liu ca Oracle o dung lng lu tr.

    o V d: Gi s phn lu tr CSDL Oracle ca CMIS 1.0 nm trong th mc G:\ORADATA. Xem thuc tnh ca th mc ny bit c dung lng lu tr

    o c lng chnh xc: Tnh dung lng lu tr ca CMIS 1.0: S dng Toad, ng nhp vi quyn sys v chy cu lnh sau:

    SELECT SUM(BYTES) FROM V$DATAFILE WHERE STATUS 'OFFLINE'

    Lu : dung lng ca Controlfile, innit file nh nn khng tnh. Dung lng templefile sinh ra

    trong qu trnh vn hnh cng khng c tnh.

    Kim tra vng a s ci t CSDL Oracle 10g lu d liu CMIS 2.0 c tha mn: ln hn t nht 2 ln dung lng d liu CMIS 1.0 trn CSDL Oracle 9i hay khng. Nu tha mn mi thc hin ci t

    cc bc tip trong hng dn.

    Chn vng lu tr CSDL o Nu h iu hnh c ci t trn a cng: cn ci t v lu tr CSDL Oracle trong a

    logic khc vi a logic ci t h iu hnh.

  • H thng CMIS 2.0 Hng dn ci t h thng C s d liu

    4/57

    V d: My ch ci t h iu hnh WindowServer 2003 trn a C th Oracle cn ci t v

    lu tr trn cc a D, E

    o Nu h iu hnh c ci t trn h thng San(t a): cn ci t v lu tr CSDL Oracle trn nhng nhm a khng ci t h iu hnh.

    V d: Ci t h iu hnh WindowServer 2008 trn t san c 2 dy khay S1, S2; trong h

    iu hnh c ci t ln S1. Khi cn ci t v lu tr CSDL Oracle trn S2

    Chn phin bn ci t Oracle o i vi h iu hnh WindowServer 2003-32 bit, cn ci t phin bn Oracle Database 10g

    Release 2 (10.2.0.1.0) for Microsoft Windows.

    o i vi h iu hnh WindowServer 2003 64 bit, cn ci t phin bn Oracle Database 10g Release 2 (10.2.0.1.0) for Microsoft Windows (x64)

    o i vi h iu hnh WindowServer 2003, cn ci t phin bn Oracle Database 10g Release 2 (10.2.0.3/10.2.0.4) for Microsoft Windows Vista and Windows 2008 .

    Ly danh sch cc TableSpace ca CMIS 1.0, so snh vi danh sch TableSpace trong Script ci t CSDL Oracle 10g cho CMIS 2 b xung cc cu lnh to TableSpace. Cn thc hin bc ny

    trnh trng hp import gia chng b dng do thiu TableSpace.

    o S dng Toad, ng nhp vi quyn sys v chy cu lnh sau ly ra danh sch TableSpace ca CMIS 1.0:

    SELECT * FROM V$TABLESPACE WHERE NAME NOT IN ('SYSTEM', 'SYSAUX', 'USERS',

    'TEMP') AND NAME NOT LIKE '%UNDO%'.

    o Tm TableSpace thiu trong Script to CSDL CMIS 2.0. o B xung cu lnh to tablespace thiu vo Script to CSDL CMIS 2.0.

    V d: pht hin TableSpace X c trong CSDL CMIS 1.0 nhng li khng c trong danh sch cc

    TableSpace ca CMIS 1.0 cn to trong CSDL CMIS 2.0 th cn x l nh sau:

    S dng Toad, vo CSDL CMIS 1.0 vi quyn Sys, xem tab TableSpace. Chn chut phi ln TableSpace X, chn tip CreateScript, n OK. Copy cu lnh sang Script to CSDL CMIS 2.0, lu sa li cc ng dn v datafile trong

    TableSpace X.

    1.1.3 Cch tnh dung lng, s lng datafile trong CMIS2.

    Mc d cc datafile c to i theo TableSpace c vit sn trong Script, nhng trc khi s dng ngi chuyn i s liu cn chun ha li cc thng tin v datafile nh dung lng, s lng,

    ng dn trong Script.

    Vi cc TableSpace c chuyn t CMIS 1.0 sang CMIS 2.0 tt nht l gi nguyn hin trng nh trong CMIS 1.0 trnh ri ro v cng tnh ton.

    Vi cc TableSpace ch c CMIS 2.0, cn tnh ton v cn i li. Cc bc thc hin nh sau:

  • H thng CMIS 2.0 Hng dn ci t h thng C s d liu

    5/57

    o Tnh tng dung lng d kin dnh cho TableSpace(A) o Chn dung lng dnh cho 1 datafile(B) o Tnh s datafile dnh cho TableSpace(C) = [A/B] + 1 o t cu hnh cho tng datafile.

    V d 1: Tnh s datafile cn to cho TABSPC_BANGLON trong CMIS2

    Bc 1: S dng Toad, ng nhp vi quyn Sys vo CSDL CMIS 1.0. Chuyn sang tab TableSpace,

    chn TABSPC_BANGLON.

    Bc 2: Tnh tng dung lng s dng ca TABSPC_BANGLON trong tab Used

    Gi s tnh c tng cng l 20GB, cho d phng thm 200MB. Tnh c tng cng l 20,2GB

  • H thng CMIS 2.0 Hng dn ci t h thng C s d liu

    6/57

    Bc 3: Chn dung lng 1 datafile l 4G(khng nn qu 5G, khi h iu hnh kh qun l v hay

    xy ra tnh trng khng c c file).

    Bc 4: Tnh s datafile cn to l [20,2/4] + 1 = 6

    1.1.4 Mt s cch theo di qu trnh thc hin script.

    Theo di cu lnh ang chy: S dng chc nng SessionBrowser ca Toad, chn tab Current Statement xem. Khi cu lnh chy qu lu cn thc hin Tunning li. Cng c th do Lock ti

    nguyn, cn chn Tab Locks xem.

    Theo di qu trnh tng trng ca Datafile trong TableSpace: Cn phi theo di to thm datafile trong trng hp ht vng lu tr trong TableSpace. S dng tab TableSpace ca Toad xem

  • H thng CMIS 2.0 Hng dn ci t h thng C s d liu

    7/57

    1.2 Ci t CSDL Oracle 10G:

    Mt s yu cu khi dng b ci t Oracle 10g Server cho my Server.

    H iu hnh Cu hnh my ch B ci Oracle 10g WinServer2003_32bit CPU: 2.00 GHz(4CPUs) RAM:

    4 GB HDD: >=160 GB

    SetupOracle10g_w2k3

    WinServer2003_64bit CPU: 2.00 GHz(4CPUs) RAM: 4 GB HDD: >=160 GB

    SetupOracle10g_w2k3

    WinServer2008_32bit CPU: Quad-Core Processor E5405 (2.00 GHz, 1333 FSB, 12 MB (2 x 6 MB) Level 2 cache) RAM: 8 GB HDD: >= 500 GB

    10203_vista_w2k8_x86_production_db

    WinServer2008_64bit CPU: Quad-Core Processor E5405 (2.00 GHz, 1333 FSB, 12 MB (2 x 6 MB) Level 2 cache) RAM: 8 GB HDD: >= 500 GB

    10203_vista_w2k8_x86_production_db

  • H thng CMIS 2.0 Hng dn ci t h thng C s d liu

    8/57

    Bc 1: Chy trnh ci t Chy file Setup.exe ca b ci Oracle 10g

  • H thng CMIS 2.0 Hng dn ci t h thng C s d liu

    9/57

    Bc 2: La chn phng thc ci t ( Select Installation Method) Basic Installation : Ci t c bn . Advanced installation : Ci t nng cao . EVNIT khuyn co bn nn la chn Advanced Installation. Sau khi la chn phng thc ci t , nhn Next chuyn sang bc tip theo.

  • H thng CMIS 2.0 Hng dn ci t h thng C s d liu

    10/57

    Bc 3: La chn kiu ci t ( Select Installation Type) Trong c 4 kiu ci t

    Enterprise Edition Standard Edition Personala Edition Custom Bn chn Enterprise Edition ri nhn Next chuyn sang bc tip theo.

  • H thng CMIS 2.0 Hng dn ci t h thng C s d liu

    11/57

    Bc 4: Ch nh tn v ng dn ci t Database(Specify Home Details) Name : Tn ca database ci t . Evnit khuyn co nn t li tn database

    V d : - Name : OracleDb11g_home2 Ora10g_CMIS2 . Path : ng dn ci t cho oracle 10g. La chn ng dn ci t lu d liu Oracle vo mt cng tch bit vi data ca h iu hnh hay l

    cc phn mn khc thng ci t C.

    Vd : My ch c dung lng cng c chia lm 3 : C,D,E th ta nn ng dn vo D hoc E trnh C cha d liu ca h iu hnh windows.

    o Path D:\oracle\product\10.2.0\db_2 o hoc E:\oracle\product\10.2.0\db_2

    Sau khi chn xong Name v Path nhn Next chuyn sang bc tip theo.

  • H thng CMIS 2.0 Hng dn ci t h thng C s d liu

    12/57

    Bc 5: Kim tra thng tin u vo cho ci t (Product- Specific Prerequisite Checks) Chng trnh ci t s t ng kim tra u vo cho ci t (ng dn ci t Oracle 10g , b nh ca

    cng cn ci t , ). Nu chng trnh c check thy li Network Configuration requirementth ta check vo li chng trnh t ng check li .

    Nhn Next chuyn sang bc tip theo.

  • H thng CMIS 2.0 Hng dn ci t h thng C s d liu

    13/57

    Bc 6: La chn cu hnh ci t (Select Configuration Option) Create a database : Ci t v c to lun database Configuration Automatic Storage Management(ASM): Ci t t ng cu hnh qun l b nh. Install database Software only : Ch ci