新 Oracle 模式 (10g) 所需的权限
所以我想为一个项目创建一个用户(架构)和一个表空间,我在网上找到了以下示例。它们可以工作,而且我没有收到任何错误。
据我所知,如果我理解来源正确,我的目标是拥有一个单独的用户,需要执行以下操作
- 创建用户
- 创建表空间
- 解锁用户
- 授予用户会话权限
我是否错过了一个步骤?基本上我想创建/删除表,创建序列/触发器/视图基本上是标准 SQL 开发人员的东西。
CREATE USER myuser IDENTIFIED BY mypassword
DEFAULT TABLESPACE users
TEMPORARY TABLESPACE temp;
CREATE SCHEMA AUTHORIZATION myuser;
ALTER USER myuser ACCOUNT UNLOCK
GRANT CREATE SESSION TO myuser;
ALTER USER myuser DEFAULT TABLESPACE USERS
create tablespace myspace
logging
datafile 'C:\Oracle\oradata\myspace.dbf'
size 32m
autoextend on
next 32m maxsize 2048m
extent management local;
但是,一旦连接到 Oracle 环境,我就可以连接,但根本无法使用该用户创建表。我在这里缺少一些东西。基本上,我只是想设置一些东西来玩它,但我认为我在这里缺少某种特权步骤。
任何帮助将不胜感激。
So I want to create a user (schema) and a tablespace for a project, and the I found the following examples online. They work, and I get no errors.
As far as I know and if I understand the sources correct, my goal to have a separate user requires the following
- create a user
- create a tablespace
- unlock the user
- grant the user session privileges
Am I missing a step? Basically I want to create/drop tables, create sequences/triggers/views basically the standard SQL developer stuff.
CREATE USER myuser IDENTIFIED BY mypassword
DEFAULT TABLESPACE users
TEMPORARY TABLESPACE temp;
CREATE SCHEMA AUTHORIZATION myuser;
ALTER USER myuser ACCOUNT UNLOCK
GRANT CREATE SESSION TO myuser;
ALTER USER myuser DEFAULT TABLESPACE USERS
create tablespace myspace
logging
datafile 'C:\Oracle\oradata\myspace.dbf'
size 32m
autoextend on
next 32m maxsize 2048m
extent management local;
However, once I connect to the Oracle environment, I am able to connect, but I cant create tables at all with that user. I am missing something here. Basically, I just want to set things up to play with it, but I think I am missing some kind of privileges step here.
Any help would be really appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
显然是这样
Obviously it is