建立用户到用户建表的步骤:
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脚本!



相关文章:

  • 2021-06-16
  • 2021-10-11
  • 2021-06-01
猜你喜欢
  • 2021-06-04
  • 2022-12-23
  • 2021-12-29
  • 2021-12-12
  • 2021-11-28
相关资源
相似解决方案