|
1. 插件数据库理解成一群表空间。(有功能,有服务,退化成mysql和sql server这种多库的状态)
2. 能查v$先查v$,注意所有的v$视图都多一列con_id,另外多一个v$pdbs ; cdb视图也多一个con_id列
3. con_id为1或为0都指根容器(看立场,如果把自己当作库来对待就是1 cdb$root ,如果把自己当作母体来对待就是0 cdb1)
pdb1_1:
- select con_id, name from v$datafile;
复制代码 0 +DATA/CDB1/DATAFILE/undotbs1.260.1057505183
3 +DATA/CDB1/B5CBFB73D7ED0FD2E053FEFA19ACAEAE/DATAFILE/system.300.1058474293
3 +DATA/CDB1/B5CBFB73D7ED0FD2E053FEFA19ACAEAE/DATAFILE/sysaux.304.1058474295
3 +DATA/CDB1/B5CBFB73D7ED0FD2E053FEFA19ACAEAE/DATAFILE/users.306.1058474311
cdb1:
- select con_id, name from v$datafile;
复制代码 1 +DATA/CDB1/DATAFILE/system.272.1057505117
1 +DATA/CDB1/DATAFILE/sysaux.265.1057505061
1 +DATA/CDB1/DATAFILE/undotbs1.260.1057505183
2 +DATA/CDB1/FD9AC20F64D244D7E043B6A9E80A2F2F/DATAFILE/system.269.1057505253
1 +DATA/CDB1/DATAFILE/users.257.1057505183
2 +DATA/CDB1/FD9AC20F64D244D7E043B6A9E80A2F2F/DATAFILE/sysaux.273.1057505253
3 +DATA/CDB1/B5CBFB73D7ED0FD2E053FEFA19ACAEAE/DATAFILE/system.300.1058474293
3 +DATA/CDB1/B5CBFB73D7ED0FD2E053FEFA19ACAEAE/DATAFILE/sysaux.304.1058474295
3 +DATA/CDB1/B5CBFB73D7ED0FD2E053FEFA19ACAEAE/DATAFILE/users.306.1058474311
4. 在根容器和所有插件数据库上,永远都查cdb_不要查dba_
5. cdb_users/cdb_roles时多一列common, grant/revoke时有一个词container=current/all
|
|