oracle11g - 为用户创建多个模式 - Oracle 11g

标签 oracle11g

我们可以为特定用户创建多个模式吗?我目前以 X/Y 用户身份登录,当我尝试使用 create schema authorization sample_schema 创建模式时,我收到错误 the schema name is missing or is incorrect in an authorization clause of a create schema statement .我知道默认架构 X将被创建。

最佳答案

CREATE SCHEMA在 Oracle 中 - 与其名称相反 - 不创建新模式。

在单个语句中创建多个表只是一种简写。

引自 manual :

Use the CREATE SCHEMA statement to create multiple tables and views and perform multiple grants in your own schema in a single transaction



并进一步解释“模式”名称参数是什么:

The schema name must be the same as your Oracle Database username.

关于oracle11g - 为用户创建多个模式 - Oracle 11g,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9873793/

相关文章:

sql - 是否可以使用 SQL 或 PL/SQL 构建此查询?

sql - 将一个数字分成相等的范围并使用 select for oracle 数据库作为行返回?

sql - 在 Oracle 11g 中获取实际执行计划

sql - 插入、更新和删除后的版本查询输出

oracle - 创建索引(在oracle DB中),仅当它不存在时

sql - session 执行的 Oracle 查询

python-3.x - 带有故障转移 oracle url 的 Python cx_Oracle 连接

sql - ORA-00904 : invalid identifier. "TT"."H_NO":无效标识符

sql - Oracle 认为表在 alter 期间不存在

java - Oracle jdbc 驱动程序 : implicit statement cache or setPoolable(true)?