在12c rac 里面,新增加了一个数据库,mgmtdb,这个是干什么,
ora.LISTENER_SCAN1.lsnr
1 ONLINE OFFLINE STABLE
ora.MGMTLSNR
1 ONLINE ONLINE rac2 169.254.65.55 192.16
8.133.121 192.168.13
2.121,STABLE
ora.cvu
1 ONLINE ONLINE rac1 STABLE
ora.mgmtdb
1 ONLINE ONLINE rac2 Open,STABLE
ora.oc4j
1 ONLINE ONLINE rac1 STABLE
ora.orcl.db
1 ONLINE ONLINE rac1 Open,STABLE
2 ONLINE ONLINE rac2 Open,STABLE
ora.rac1.vip
1 ONLINE ONLINE rac1 STABLE
ora.rac2.vip
1 ONLINE ONLINE rac2 STABLE
ora.scan1.vip
1 ONLINE ONLINE rac1 STABLE
还可以进入:
[grid@rac2 ~]$ . oraenv
ORACLE_SID = [+ASM2] ? -MGMTDB
The Oracle base remains unchanged with value /u01/app/grid/base
[grid@rac2 ~]$ sqlplus /nolog
co
SQL*Plus: Release 12.1.0.2.0 Production on Thu Oct 27 11:39:38 2016
Copyright (c) 1982, 2014, Oracle. All rights reserved.
SQL> nn / as sysdba
Connected.
SQL> select open_mode from v$database;
OPEN_MODE
--------------------
READ WRITE
SQL> show parameter cluster
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
cluster_database boolean FALSE
cluster_database_instances integer 1
cluster_interconnects string
看来是一个单库 .
SQL> select name,open_mode from v$pdbs;
NAME OPEN_MODE
------------------------------ ----------
PDB$SEED READ ONLY
SCANIP READ WRITE
也是一个容器
有哪些用户:
select username,account_status from dba_users
USERNAME ACCOUNT_STATUS
------------------------------ --------------------------------
ANONYMOUS EXPIRED & LOCKED
DBSNMP EXPIRED & LOCKED
WMSYS EXPIRED & LOCKED
XDB EXPIRED & LOCKED
APPQOSSYS EXPIRED & LOCKED
GSMADMIN_INTERNAL EXPIRED & LOCKED
GSMCATUSER EXPIRED & LOCKED
SYSBACKUP EXPIRED & LOCKED
OUTLN EXPIRED & LOCKED
DIP EXPIRED & LOCKED
SYSDG EXPIRED & LOCKED
USERNAME ACCOUNT_STATUS
------------------------------ --------------------------------
ORACLE_OCM EXPIRED & LOCKED
SYSKM EXPIRED & LOCKED
XS$NULL EXPIRED & LOCKED
GSMUSER EXPIRED & LOCKED
AUDSYS EXPIRED & LOCKED
SYSTEM OPEN
SYS OPEN
看看有哪些文件,并在哪里 :
1* select file_name,con_id from cdb_data_files
FILE_NAME CON_ID
---------------------------------------------------------------------------------------------------- ----------
+DGOCR/_MGMTDB/DATAFILE/system.258.923438205 1
+DGOCR/_MGMTDB/DATAFILE/sysaux.257.923438163 1
+DGOCR/_MGMTDB/DATAFILE/undotbs1.259.923438241 1
+DGOCR/_MGMTDB/FD9B43BF6A646F8CE043B6A9E80A2815/DATAFILE/system.270.923438737 3
+DGOCR/_MGMTDB/FD9B43BF6A646F8CE043B6A9E80A2815/DATAFILE/sysaux.271.923438737 3
+DGOCR/_MGMTDB/FD9B43BF6A646F8CE043B6A9E80A2815/DATAFILE/users.274.923438737 3
+DGOCR/_MGMTDB/FD9B43BF6A646F8CE043B6A9E80A2815/DATAFILE/sysgridhomedata.272.923438737 3
+DGOCR/_MGMTDB/FD9B43BF6A646F8CE043B6A9E80A2815/DATAFILE/sysmgmtdata.269.923438737 3
+DGOCR/_MGMTDB/FD9B43BF6A646F8CE043B6A9E80A2815/DATAFILE/sysmgmtdatadb.273.923438737 3
SQL> select sum(bytes/1024/1024) from cdb_data_files;
SUM(BYTES/1024/1024)
--------------------
3538
是说12c rac的ocr盘要求要8g一块盘,看来这个增加了东西在里面.
当然,这个数据库数据可以移动到其他地方去.
|