首页 > TAG信息列表 > pdb1
Oracle-PDB拔插
适用场景 软件升级 步骤 源端unplug pdb(连接到CDB$ROOT) 关闭PDB alter pluggable database PDB1 close immediate; alter pluggable database PDB1 close immediate instances=all; 将PDB元数据信息保存到xml文件 alter pluggable database PDB1 unplug into '/tmp/PDB1.xml'oracle多租户(CDB和PDB的不同时区)
查看和修改CDB时区 show CON_NAME SELECT dbtimezone FROM DUAL; ALTER DATABASE SET TIME_ZONE=‘Europe/London’; SHUTDOWN IMMEDIATE; STARTUP; SELECT dbtimezone FROM DUAL; 查看和修改PDB时区 ALTER SESSION SET CONTAINER = pdb1; show pdbs ALTER PLUGGABLE DA19c多租户export ORACLE_PDB_SID=PDB1直连pdb
linux环境下支持,但windows下不支持,奇怪 [oracle@rac1 ~]$ export ORACLE_SID=cdb1 [oracle@rac1 ~]$ sqlplus / as sysdba SQL*Plus: Release 19.0.0.0.0 - Production on Mon Dec 14 15:08:46 2020 Version 19.8.0.0.0 Copyright (c) 1982, 2020, Oracle. All rights reserve