【问题标题】:where are user created objects stored?用户创建的对象存储在哪里?
【发布时间】:2014-01-14 16:58:29
【问题描述】:

在 Oracle 中,每个用户都是一个模式,默认情况下,每个用户创建的对象都创建到他们的模式中。

在 MySQL 中,用户和他们的权限存储在mysql.user,但是当他们创建对象时,他们在哪里创建呢?

对于每个用户是否有架构的概念?

我们可以为 MySQL 中的 Oracle 等表和索引创建单独的架构吗?

【问题讨论】:

    标签: mysql sql database oracle rdbms


    【解决方案1】:

    MySQL Glossary中所定义:

    In MySQL, physically, a schema is synonymous with a database. 
    You can substitute the keyword SCHEMA instead of DATABASE in MySQL SQL syntax, 
    for example using CREATE SCHEMA instead of CREATE DATABASE.
    
    Some other database products draw a distinction. For example, in the Oracle 
    Database product, a schema represents only a part of a database: the tables 
    and other objects owned by a single user.
    

    【讨论】:

    • 感谢您快速而积极的回复!
    • 但是我仍然不确定当任何用户创建任何对象时,它是否存储在当前使用的数据库中?
    • 仍然可以创建一个单独的数据库/模式来维护索引吗?为了提高性能?
    • mysql.com 有大量资料。下载一个版本并尝试一下。安装和试用简单快捷。
    猜你喜欢
    • 2017-01-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-07-05
    • 2021-03-17
    • 2012-02-24
    • 1970-01-01
    • 2019-03-10
    相关资源
    最近更新 更多