Presentation is loading. Please wait.

Presentation is loading. Please wait.

Administrare Oracle 9i Suport de curs

Similar presentations


Presentation on theme: "Administrare Oracle 9i Suport de curs"— Presentation transcript:

1 Administrare Oracle 9i Suport de curs
January 11, 2019

2 Administrare Oracle II
Ziua 4 Administrare Oracle II January 11, 2019

3 Administrare Oracle 9i Administrare Tablespaceuri
Tipuri Tablespace: Date - Permanente Temporare – Folosite pentru sortari si alte obiecte temporare UNDO – pentru managementul spatiului undo sau rollback - Un tablespace contine mai multe obiecte din baza de date si poate fi compus din mai multe fisiere pe disk. January 11, 2019

4 Administrare Oracle 9i Administrare Tablespaceuri
January 11, 2019

5 Administrare Oracle 9i Administrare Tablespaceuri
Tipuri Tablespace: Managementul Extenturilor prin Dictionar. (Metadata). Managementul Extenturilor Local – folosind mape de biti in fisierele de date. LOCAL Autoallocate LOCAL Uniform size 128K – aloca extenturi de marimi egale. January 11, 2019

6 Administrare Oracle 9i Administrare Tablespaceuri
Creare Tablespace: Create tablespace curs Datafile ‘E:\..\curs01.dbf’ size 100M Autoextend on next 20M maxsize 1024M Extent management local autoalocate Logging/Nologging January 11, 2019

7 Administrare Oracle 9i Administrare Tablespaceuri
Stergere Tablespace Drop tablespace curs [cascade constraints] [include contents] Observatie: nu se pot sterge (drop) fisiere dintr-un tablespace, ci doar intregul tablespace. January 11, 2019

8 Administrare Oracle 9i Administrare Tablespaceuri
Adaugare Fisier de date la un Tablespace Alter tablespace curs add datafile ‘E:\..\curs02.dbf’ size 200M; Modificare marime fisier de date. Alter tablespace curs datafile ‘E:\..\curs02.dbf’ resize 200M; January 11, 2019

9 Administrare Oracle 9i Administrare Tablespaceuri
Creare Tablespace Temporar Create temporary tablespace temp2 tempfile ‘E:\..\temp02.dbf’ size 200M extent management uniform 256K; Default Temporary Tablespace: este oblicatoriu sa existe intr-o baza de date. January 11, 2019

10 Administrare Oracle 9i Administrare Tablespaceuri
Creare Tablespace UNDO Init.ora/spfile.ora UNDO_MANAGEMENT =AUTO|MANUAL MANUAL – folosind segment de rollback UNDO_TABLESPACE = UNDO Create UNDO tablespace UNDO2 datafile ‘E:\..\undo02.dbf’ size 1000M; Alter system set UNDO_MANAGEMENT = UNDO2 UNDO_RETENTION = 900 January 11, 2019

11 Administrare Oracle 9i Administrare Tablespaceuri
Un Tablespace poate fi facut Offline sau ReadOnly Observatie: Tablespace SYSTEM, UNDO si Default temporary NU pot fi facute Offline sau ReadOnly. Alter tablespace curs offline normal|immediate; Alter tablespace curs read only; January 11, 2019

12 Administrare Oracle 9i Administrare Tablespaceuri
Creare si Mutare obiecte. Create table test(a1 number, c1 char(20)) tablespace curs; Create index idx01 on test(a1) tablespace curs; Alter table test move tablespace users; January 11, 2019

13 Administrare Oracle 9i Administrare Storage
Structura Logica Block de Date Extent Segment = obiect in baza de date January 11, 2019

14 Administrare Oracle 9i Administrare Storage
Structura Block Oracle Header Date PCT FREE PCT USED ROWID January 11, 2019

15 Administrare Oracle 9i Administrare Storage
Structura Storage Obiect Create table test(col1 val1, col2 val2,…) Storage(initial 128K next 256K pctincrease 50 maxextents 200;) INITIAL – initial Extent NEXT – next Extent PCTINCREASE – procent de crestere. MAXEXTENTS – numarul maxim de extenturi January 11, 2019

16 Administrare Oracle 9i Administrare Utilizatori
Create user user1 identified by user1 Default tablespace users temporary tablespace temp Alter user user1 identified by secret; Grant connect to user1 Grant resource to user1 January 11, 2019

17 Administrare Oracle 9i Administrare Utilizatori
Privilegii Privilegii System – “select all tables”, “create any table” Grant create any table to user1 [with admin option] Revoke create any table from user1 Privilegii Obiect – select table Grant select on test to user1 Revoke… Privilegii speciale: sysdba si sysoper January 11, 2019

18 Administrare Oracle 9i Administrare Utilizatori
Roluri Un rol grupeaza mai multe privilegii Un rol poate contine alte roluri Roluri predefinite: DBA – administrare, Import/Export – importul si exportul datelor Rolurile pot contine parola Create role cursrole identified by curs; Grant connect to cursrole; January 11, 2019


Download ppt "Administrare Oracle 9i Suport de curs"

Similar presentations


Ads by Google