[oracle@db ~]$ mkdir -p /u01/app/oracle/oradata/CDB1/PDB1_1/ [oracle@db ~]$ sqlplus /nolog
SQL*Plus: Release 19.0.0.0.0 - Production on Tue Jun 18 10:28:37 2024 Version 19.3.0.0.0
Copyright (c) 1982, 2019, Oracle. All rights reserved.
SQL> conn / as sysdba Connected. SQL>alter session set container=pdb1_1; Session altered. SQL> show con_name
CON_NAME ------------------------------ PDB1_1
SQL> select name from v$datafile; NAME -------------------------------------------------------------------------------- +DATA/CDB1/19367110B1E107C6E0635CFA19AC35D7/DATAFILE/system.288.1169814539 +DATA/CDB1/19367110B1E107C6E0635CFA19AC35D7/DATAFILE/sysaux.286.1169814537 +DATA/CDB1/19367110B1E107C6E0635CFA19AC35D7/DATAFILE/undotbs1.287.1169814539 +DATA/CDB1/19367110B1E107C6E0635CFA19AC35D7/DATAFILE/users.285.1169814537
SQL> alter database move datafile '+DATA/CDB1/19367110B1E107C6E0635CFA19AC35D7/DATAFILE/system.288.1169814539' to '/u01/app/oracle/oradata/CDB1/PDB1_1/system01.dbf';
Database altered.
SQL> alter database move datafile '+DATA/CDB1/19367110B1E107C6E0635CFA19AC35D7/DATAFILE/sysaux.286.1169814537' to '/u01/app/oracle/oradata/CDB1/PDB1_1/sysaux01.dbf';
Database altered.
SQL> alter database move datafile '+DATA/CDB1/19367110B1E107C6E0635CFA19AC35D7/DATAFILE/undotbs1.287.1169814539' to '/u01/app/oracle/oradata/CDB1/PDB1_1/undotbs1.dbf';
Database altered.
SQL> alter database move datafile '+DATA/CDB1/19367110B1E107C6E0635CFA19AC35D7/DATAFILE/users.285.1169814537' to '/u01/app/oracle/oradata/CDB1/PDB1_1/users01.dbf';
Database altered.
SQL> select name from v$datafile;
NAME -------------------------------------------------------------------------------- /u01/app/oracle/oradata/CDB1/PDB1_1/system01.dbf /u01/app/oracle/oradata/CDB1/PDB1_1/sysaux01.dbf /u01/app/oracle/oradata/CDB1/PDB1_1/undotbs1.dbf /u01/app/oracle/oradata/CDB1/PDB1_1/users01.dbf SQL> alter tablespace temp add tempfile '/u01/app/oracle/oradata/CDB1/PDB1_1/temp01.dbf' size 30M ;
Tablespace altered. SQL> select name from v$tempfile;
NAME -------------------------------------------------------------------------------- +DATA/CDB1/19367110B1E107C6E0635CFA19AC35D7/TEMPFILE/temp.289.1169814547 /u01/app/oracle/oradata/CDB1/PDB1_1/temp01.dbf
SQL> alter tablespace temp drop tempfile '+DATA/CDB1/19367110B1E107C6E0635CFA19AC35D7/TEMPFILE/temp.289.1169814547';
Tablespace altered. SQL> select name from v$tempfile;
NAME -------------------------------------------------------------------------------- /u01/app/oracle/oradata/CDB1/PDB1_1/temp01.dbf
|