我无法将任何内容插入到我创建的表和 HR Schema 的表中。 Schema 表中的数据也没有显示。
我刚刚安装了SQL Developer和oracle来学习。我是这个软件的新手。
我已经尝试过授予权限和无限配额,但仍然不起作用。
错误表明您没有表空间的权限
USERS
。您是自己创建 HR
用户,还是使用预先构建的架构(安装 Oracle 数据库时已经获得)?
这是一个脚本,它展示了如何执行此操作,以便最基本的事情发挥作用。
连接为例如
SYS
(如果您没有任何其他具有 DBA 权限的用户),请检查表空间列表。我们假设 users
和 temp
就在其中(因为它们将在 create user
中使用):
select tablespace_name from dba_tablespaces;
创建用户:
create user hr identified by hr
default tablespace users
temporary tablespace temp
profile default
quota unlimited on users;
授予一些权限:
grant create session to hr;
grant create table to hr;
grant create procedure to hr;
grant create sequence to hr;
grant create view to hr;
grant create trigger to hr;