Oracle用户管理
--创建表空间
create tablespace 名称
(
datafile='路径\名称.ora',
size='50M',
autoextend='on'
)
/
--创建临时表空间
create temporary tablespace 名称
(
tempfile='路径\名称.ora',
size='50M',
autoextend='on'
)
/
--创建用户
create user 用户名 idtenified by 密码
/
--为用户指定表空间与临时表空间
alter 用户名 default tablespace 表空间名
alter 用户名 temporary tablespace 临时表空间名
/
--为用户授权
Grant connect,resource,create session(连接),
dba, create table, create view, create trigger,
select any table, create sequence, create procedure, create role,
grant any privilege, drop any role,
create public synonym, drop public synonym,SELECT ANY DICTIONARY to 用户名
/
---或者直接赋予oracle提供的角色权限
grant resource,connect to 用户名
/
--修改用户密码
alter user 用户名 idtenified by 新密码
/
--让用户密码失效
alter user 用户名 password expire
/
--锁住用户
alter user 用户名 account lock;
/
--释放用户
alter user 用户名 account unlock;
/
--访问其他用户的表
grant select,delete,... on 用户名1.表 to 用户名2;
/
---回收权限
revoke select,delete,....on 用户名1.表 from 用户名2;
相关文档:
The DB File Scattered Read wait event generally indicates waits related to full table scans or fast
full index scans. As full table scans are pulled into memory, they are scattered throughout the
buffer cache, since it is usually unlikely that they fall into contiguous buffers. A large numb ......
1.LVM:
[root@vmfs ~]# pvdisplay
--- Physical volume ---
PV Name /dev/sdg
VG Name db_v4
PV Size  ......
select count(*) from t1;
这句话比较简单,但很有玄机!对这句话运行的理解,反映了你对数据库的理解深度!
建立实验的大表他t1
SQL> conn scott/tiger
已连接。
SQL> drop table t1 purge;
表已删除。
SQL> create table t1 as select * from emp where 0=9;
表已创建。
SQL> insert into t1 sele ......
SQL*LOADER是ORACLE的数据加载工具,通常用来将操作系统文件迁移到ORACLE数据库中。SQL*LOADER是大型数据
仓库选择使用的加载方法。
在NT下,SQL*LOADER的命令为SQLLDR,在UNIX下一般为sqlldr/sqlload。
如执行:d:\oracle>sqlldr
SQL*Loader: Release 8.1.6.0.0 - Production on 星期二 1月 8 11:06:42 2 ......