易截截图软件、单文件、免安装、纯绿色、仅160KB

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;


相关文档:

Oracle按字符截取字符串函数

输入参数:str ——要截取的字符串,  ch——要查找的字符串
截取ch之前(不包括ch)的字符串: substr(str, 0, instr(str, ch) - 1)
截取ch之后(不包括ch)的字符串: substr(str, , instr(str, ch) + 1, length(str)) ......

oracle日期函数集锦


一、 常用日期数据格式
1.Y或YY或YYY 年的最后一位,两位或三位
SQL> Select to_char(sysdate,'Y') from dual;
TO_CHAR(SYSDATE,'Y')
--------------------
7
SQL> Select to_char(sysdate,'YY') from dual;
TO_CHAR(SYSDATE,'YY')
---------------------
07
SQL> Select to_char(sysdate,'YYY') from ......

Oracle waits event:DB File Sequential Read

The DB File Sequential Read wait event generally indicates a single block read (an index read,
for example). A large number could indicate poor joining orders of tables or unselective indexing.
This number will certainly be large (normally) for a high-transaction, well-tuned system. You ......

一个programmer关于Oracle SQL的学习小结与思考

http://www.javaeye.com/topic/366991#
作为一个开发人员,开始认真系统学习
Oracle SQL也只有月余,之前的
SQL知
识仅仅是项目里面用到什么就去看什么,简单说就是
Read The Fxxking Guide。在系统学习
Oracle
SQL之前,俺的想法就是“按照需求完成功能,剩下的交给
DBA来处理”。这个想法从整体来看显 ......

MYSQL和ORACLE的一些操作区别

有很多应用项目, 刚起步的时候用MYSQL数据库基本上能实现各种功能需求,随着应用用户的增多,数据量的增加,MYSQL渐渐地出现不堪重负的情况:连接很慢甚至宕机,于是就有把数据从MYSQL迁到ORACLE的需求,应用程序也要相应做一些修改。本人总结出以下几点注意事项,希望对大家有所帮助。
1.自动增长的数据类型处理
MYSQL有 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号