You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SELECTb.name, a.con_id, a.tablespace_name, a.statusFROM cdb_tablespaces a,v$pdbs b WHEREa.tablespace_nameLIKE'UNDO%'anda.con_id=b.con_id;
Disabling Local UNDO Tablespaces for PDB (must be sysdba)
show con_name
shut immediate
startup UPGRADE
ALTERDATABASE LOCAL UNDO off;
shut immediate
startup
SELECT*from database_properties WHERE property_name='LOCAL_UNDO_ENABLED';
Droping UNDO Tablespace for each PDB (PDB is the name of pluggable database in the example below)
ALTER PLUGGABLE DATABASE ALL OPEN;
SELECTb.name ,a.con_id, a.tablespace_name, a.statusFROM cdb_tablespaces a,v$pdbs b WHEREa.tablespace_nameLIKE'UNDO%'anda.con_id=b.con_idORDER BYa.con_id;
ALTER SESSION SET CONTAINER=PDB;
show con_name
ALTERTABLESPACE UNDOTBS1 OFFLINE;
DROPTABLESPACE UNDOTBS1 INCLUDING CONTENTS AND DATAFILES;
CREATE PLUGGABLE DATABASE <DB_NAME> ADMIN USER <username> IDENTIFIED BY <password> FILE_NAME_CONVERT=('/opt/oracle/oradata/SWUPP/pdbseed/','/opt/oracle/oradata/SWUPP/<DB_NAME>');
ALTER PLUGGABLE DATABASE <DB_NAME> OPEN;
ALTER PLUGGABLE DATABASE <DB_NAME> SAVE STATE;
ALTER SESSION SET CONTAINER=<DB_NAME>;
GRANT ALL PRIVILEGES TO <username>;
ALTER PROFILE DEFAULT LIMIT password_life_time UNLIMITED;
SELECT resource_name,limitFROM dba_profiles WHERE PROFILE ='DEFAULT';
ALTERTABLESPACE UNDOTBS1 OFFLINE;
DROPTABLESPACE UNDOTBS1 INCLUDING CONTENTS AND DATAFILES;
ALTER SESSION SET CONTAINER=CDB$ROOT;
Change Account Password
ALTERUSER<username> IDENTIFIED BY <password>;
Account Unlock
ALTERUSER<username> IDENTIFIED BY <password> ACCOUNT UNLOCK;