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
SQL>select name from v$controlfile;
NAME
--------------------------------------------------------------------------------/u01/app/oracle/oradata/orcl/control01.ctl/u01/app/oracle/oradata/orcl/control02.ctl
SQL> show parameter control_files
NAME TYPE
------------------------------------ ----------------------
VALUE
------------------------------
control_files string
/u01/app/oracle/oradata/orcl/c
ontrol01.ctl, /u01/app/oracle/
oradata/orcl/control02.ctl
Alter the control_files parameter:
SQL> alter system set control_files='/home/mijin/test_data/control01.ctl','/home/mijin/test_data/control02.ctl' scope=spfile;
System altered.
$ cd /u01/app/oracle/oradata/orcl
$ mv control* /home/mijin/test_data/
Start the database:
SQL> startup
ORACLE instance started.
Total System Global Area 1.0133E+10 bytes
Fixed Size 12170088 bytes
Variable Size 3858762904 bytes
Database Buffers 6241124352 bytes
Redo Buffers 21381120 bytes
Database mounted.
Database opened.
Check the current location of the control files:
SQL>select name from v$controlfile;
NAME
--------------------------------------------------------------------------------/home/mijin/test_data/control01.ctl/home/mijin/test_data/control02.ctl
Log files
Check the current location of the log files:
SQL>SELECT member FROM v$logfile;
MEMBER
--------------------------------------------------------------------------------/u01/app/oracle/oradata/orcl/redo03.log/u01/app/oracle/oradata/orcl/redo02.log/u01/app/oracle/oradata/orcl/redo01.log
$ cd /u01/app/oracle/oradata/orcl
$ mv redo* /home/mijin/test_data/
Start the database in mount mode:
SQL> startup mount
ORACLE instance started.
Total System Global Area 1.0133E+10 bytes
Fixed Size 12170088 bytes
Variable Size 3858762904 bytes
Database Buffers 6241124352 bytes
Redo Buffers 21381120 bytes
Database mounted.
Rename the the file within the Oracle dictionary:
SQL> alter database rename file '/u01/app/oracle/oradata/orcl/redo01.log' to '/home/mijin/test_data/redo01.log';
SQL> alter database rename file '/u01/app/oracle/oradata/orcl/redo02.log' to '/home/mijin/test_data/redo02.log';
SQL> alter database rename file '/u01/app/oracle/oradata/orcl/redo03.log' to '/home/mijin/test_data/redo03.log';
Open the database:
SQL> alter database open;
Database altered.
Check the current location of the log files:
SQL>SELECT member FROM v$logfile;
MEMBER
--------------------------------------------------------------------------------/home/mijin/test_data/redo03.log/home/mijin/test_data/redo02.log/home/mijin/test_data/redo01.log
Data files
Check the current location of the data files:
SQL>select tablespace_name,file_name from dba_data_files;
TABLESPACE_NAME
------------------------------------------------------------
FILE_NAME
--------------------------------------------------------------------------------
SYSTEM
/u01/app/oracle/oradata/orcl/system01.dbf
...