课后 复习1

临时表空间:排序时用,临时表

undo表空间:存放undo数据

 

对A执行完后未commit,原始数据放在UNDO表空间中,则B查找时从undo表空间中取出仍然为a

 

A:update user1 set name='b' where no = 1;

B:select * from user1;

 

show parameters undo:

 

undo_management

 

undo_retention:数据在提交后,要保留多长时间,单位是s[ flashback时用到它]

 

alter table user1 enable row movement (行能移动)

 

flashback table user1 to timestamp to_timestamp('2011-05-04 08:12:30','yyyy-mm-dd hh24:mi:ss')

 

undo_tablespace:

创建 undo

 

SQL:create undo tablespace=undotest2 datafile 'undotest2.dbf' size 100m

 

 

alter system set undo_tablespace = undotest2

 

临时表空间

 

desc dba_temp_files;

 

blocks:临时表空间的临时文件大小

user_blocks:临时文件能用的大小

 

create temporary tablespace temp02 tempfile 'temp02.dbf'

 

size 2m autoextend on next 1m

 

alter user test default tablespace users temporary tablespace temp02

 

临时表空间组

 

 

用户:

create user test1 identified by test1

 

database_properties

 

alter database default temporary tablespace temp02

 

alter database default tablespace test

 

 

 

创建用户:

 

create user 用户名 identified {by 密码|externally|globally as external name}

[default tablespace 缺省表空间]

[default temporary tablespace 默认临时表空间]

[quota {n{k|m}} on 表空间]

[password expire] 第一次登陆必须修改密码

[profile{概要文件|default}]

 

profile :开启参数 alter system set resource limit = true

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值