ORACLE 9i学习心得(2)建立用户到用户建表的步骤

建立用户到用户建表的步骤:
Server
建立:create user 用户名 identified by "密码";
授权:grant create session to 用户名;
            grant create table to  用户名;
            grant create tablespace to  用户名;
            grant create view to  用户名;

Client
建立表空间(一般建N个存数据的表空间和一个索引空间):
create tablespace 表空间名
datafile ' 路径(要先建好路径)\***.dbf  ' size *M
tempfile ' 路径\***.dbf ' size *M
autoextend on  --自动增长
--还有一些定义大小的命令,看需要
 default storage(
 initial 100K,
 next 100k,
);
Server:
授予用户使用表空间的权限:
alter user 用户名 quota unlimited on 表空间;
或 alter user 用户名 quota *M on 表空间;
自此,才大功告成可以随意建表,运行SQL脚本!



posted @ 2005-12-16 00:34  Aldebaran's Home  阅读(4964)  评论(0编辑  收藏  举报