oracle_dbadmin v2.0

Download Oracle_DBAdmin v2.0

Post on 30-Jun-2015

338 views

Category:

Documents

3 download

Embed Size (px)

TRANSCRIPT

Cng ty c phn Ti Ngn - BFCH Ni, thng 4 nm 2001.

- www.orafaq.com - asktom.oracle.com - technet.oracle.com

o to Oracle c bn Gio trnh Kin trc v Qun tr Oracle 8i

Cng ty c phn ti ngn - BFC Gio trnh kin trc v qun tr Oracle 8i

Mc lcMc lc........................................................................................................2 Hnh v........................................................................................................5 1 Gii thiu...................................................................................................6

1.1 Mc tiu kho hc.....................................................................................6 1.2 Kin trc Oracle Server.............................................................................62 Cu trc b nh v cc tin trnh nn ca csdl Oracle...................................6

2.1 2.2 2.3 2.4 2.5 2.6

Cu trc b nh Oracle Server..................................................................7 Cc qu trnh (process) ............................................................................8 Cc cu trc lin kt ngi s dng vi mt Oracle Instance....................8 X l mt cu lnh SQL...........................................................................11 X l cu lnh thao tc d liu................................................................12 X l COMMIT..........................................................................................13

3 Lm quen vi Oracle Server......................................................................13

3.1 Xc nhn phn quyn s dng................................................................13 3.2 Cc cng c qun tr CSDL Oracle c bn...............................................14 3.3 DBA Management Pack...........................................................................174 Qun l mt Oracle Instance.....................................................................18

4.1 Start up v shut down Oracle Server ......................................................18 4.2 To v lu gi cu hnh...........................................................................18 4.3 Mt s quy tc i vi cc tham s.........................................................195 To CSDL..................................................................................................21

5.1 Chun b..................................................................................................21 5.2 To CSDL.................................................................................................226 To cc khung nhn t in d liu v cc package chun...........................24

6.1 6.2 6.3 6.4

T in d liu.........................................................................................24 Store Program.........................................................................................26 Package...................................................................................................27 Trigger..................................................................................................... 27

7 Bo tr cc file iu khin - Contron files...................................................28

7.1 Control file...............................................................................................28 7.2 To nhiu control file...............................................................................29 7.3 Ly thng tin v control file.....................................................................298 Bo tr cc Redo log files...........................................................................30

8.1 Redo log file ............................................................................................30 8.2 Redo log file group v Redo log file member...........................................32 8.3 Phn tch v ghi nhn cc redo log file....................................................349 Qun l Tablespaces v Data files..............................................................35

9.1 Cu trc logic ca database....................................................................35 9.2 Tablespace ..............................................................................................36 9.3 Qun l tablespace..................................................................................3810 Cu trc lu tr......................................................................................42

10.1 Cc cu trc lu tr chnh ca Oracle ..................................................42 10.2 Segments - phn loi segments............................................................43 10.3 Qun l b nh i vi segment............................................................44o to kin trc v qun tr ORACLE 8i Trang 2

Cng ty c phn ti ngn - BFC Gio trnh kin trc v qun tr Oracle 8i

11 Qun l Rollback Segments.....................................................................46

11.1 Rollback segments................................................................................46 11.2 Qun l rollback segment......................................................................47 11.3 Thng tin v rollback segment..............................................................4912 Qun l Tables........................................................................................49

12.1 Table - Phn loi table...........................................................................49 12.2 Qun l table.........................................................................................50 12.3 Thng tin v table.................................................................................5313 Qun l Indexes......................................................................................54

13.1 Phn loi Index......................................................................................54 13.2 Qun l Index........................................................................................56 13.3 Thng tin v index.................................................................................5914 Duy tr ton vn d liu (Maintaining data integrity)................................59

14.1 Cc dng ton vn d liu.....................................................................59 14.2 To cc constraint.................................................................................60 14.3 Ly thng tin v cc constraint.............................................................6115 Np d liu.............................................................................................62

15.1 Np d liu trc tip..............................................................................62 15.2 S dng cng c SQL* Loader ..............................................................6315.2.1 Cc file c s dng bi SQL* Loader...................................................63 15.2.2 Cc Phng php np d liu bng SQL loader......................................63 15.2.3 Cch s dng SQL*Loader......................................................................64

15.3 T chc li d liu.................................................................................6615.3.1 Export: ...................................................................................................66 15.3.2 Import: ..................................................................................................67 16 Qun tr ngi s dng............................................................................67

16.1 To mt ngi s dng mi...................................................................67 16.2 Thay i thuc tnh ca user ................................................................68 16.3 Xo user................................................................................................6917 Qun tr cc Privilege..............................................................................69

17.1 Quyn hn Privileges..........................................................................69 17.2 System privilege....................................................................................6917.2.1 17.2.2 17.2.3 17.2.4 17.3.1 17.3.2 17.3.3 17.3.4 Thng tin v system privilege................................................................70 Gn quyn h thng...............................................................................71 Thu hi quyn h thng..........................................................................71 V d minh ho v gn v thu hi quyn................................................72 Thng tin v Object privilege..................................................................72 Gn Object privilege...............................................................................73 Thu hi Object privilege.........................................................................73 V d minh ho v thu hi Object privilege.............................................73

17.3 Object privilege.....................................................................................72

18 Qun l Roles.........................................................................................74

18.1 Roles......................................................................................................7418.1.1 Li ch ca vic s dng role..................................................................74 18.1.2 Mt s role nh sn (predefined)...........................................................74

18.2 Qun l role...........................................................................................7518.2.1 18.2.2 18.2.3 18.2.4 To roles................................................................................................75 Thay i role..........................................................................................75 Gn role............................................................................