Home > Database > Mysql Tutorial > oracle管理笔记2

oracle管理笔记2

WBOY
Release: 2016-06-07 15:07:00
Original
1059 people have browsed it

1.建立角色 create role acct identified by bicent 2.修改角色 ALTER ROLE 角色名 NOT IDENTIFIED IDENTIFIEDBY 口令 EXTERNALLY 3 3.删除角色 drop role 角色名 4.追加数据文件 alter tablespace 表空间名 add datafile 文件说明(文件名 size 1m) rename

1.建立角色

create role acct identified by bicent

2.修改角色

ALTER  ROLE 角色名     NOT  IDENTIFIED

                                           IDENTIFIED    BY  口令

                                                                      EXTERNALLY3

3.删除角色

drop role 角色名

4.追加数据文件

alter tablespace 表空间名

add datafile 文件说明(文件名 size 1m)

rename datafile  文件名 to  文件名

defautl storage 存储字句

online

5.添加在线日志文件组

alter database

add logfile('log1c.log','log2c.log') size 500k

6.删除日志文件组

alter database

drop logfile group3

7.增加在线日志文件成员

alter database

add logfile member 'log2b.log' to group 2

8.表空间管理

CREATE   TABLESPACE  user_stu

     DATAFILE ‘diska:user_stu1.dat’  SIZE  20M

     DEFAULT  STORAGE

           ( INITIAL  10K

              NEXT 50K

              MINEXTENTS 1

              MAXEXTENTS 99

              PCTINCREASE 10 )

      ONLINE ;


9。创建回滚段

create public rollback segment 名字

tablespace 名字

storage(inital 50k

next 50k

optimal 150k

maxextents 10

);

online





source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template