from documentation: There is no relationship between schemas and tablespaces: a tablespace can contain objects from different schemas, and the objects for a schema can be contained in different tablespaces.
你rman备份的时候,基于schema备份就可以啦。
看了下文档,没有发现rman里有基于schema的备份语句。 backup user/schema not found.backup tablespace 可以。
There is no relationship between schemas and tablespaces: a tablespace can contain objects from different schemas, and the objects for a schema can be contained in different tablespaces.
你rman备份的时候,基于schema备份就可以啦。
backup user/schema not found.backup tablespace 可以。
schema和user相对应,一当一个user创建任何的对象,oracle将为该user产生schema,每个schema里的对象是相互隔离的,可以通过schema.objectname对schema里的object'进行访问,当然,访问时一定要先有权限才行。
一般来说,backup是不能基于schema的,不过由于正常的user建立是会给user指定独立的tablespace,所以可以通过backup tablespace来完成backup user这样的功能,也可以通过imp/exp来完成基于schema或者user的数据库备份和恢复。
这样来说,物理上的结构还是数据库文件啊,多个SCHEMA是可以在同一个数据库文件上的啊。
但若为每个用户指定不同的表空间,就有了在物理结构上不同的独立的SCHEMA了,这样管理起来就方便了。
建议lz能学习下Concepts,也就无需去讨论这些基本概念了。