我们可以为特定用户创建多个模式吗?我目前以 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/