一道奇怪的题目
要求一个刚创建的用户有最小系统权限,使他可以执行一个指定的create.sqlcreate.sql就是一个创建空表
在执行之后,该用户要变成这个表的所有者找了半天资料也没找到关于ORACLE的关于脚本的权限,都是写系统权限或对象权限。而系统权限里也只找到EXECUTE
不过我用
GRANT EXECUTE ON CREATE.SQL TO USER
好像不对
刚学ORACLE不久,请大家多多帮忙啊

解决方案 »

  1.   

    没有对指定脚本的权限
    你可以可给某人单独创建一个用户
    然后可以通过profile限制一些用户的使用会话的数量,会话的时间、CPU资源等权限
      

  2.   

    我也觉得很奇怪啊,可题目写的就是A user should obtain the smallest number of system privileges required to execute the script create.sqlA user should own the empty relational tables created through the execution of a script create.sql
      

  3.   

    看来这个题目不是考你限制脚本权限的,是考你最小化用户权限
    这样不知算不算最小化
    create user u1 identified by u1 default tablespace users quota 100M on users;
     
    User created
     
    SQL> grant connect,create table to u1;
     
    Grant succeeded
     
    SQL> connect u1/u1@testdb
    Connected to Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 
    Connected as u1
     
    SQL> create table a(a number);
     
    Table created