If during the installation, the System was configured to move data in the Normal mode, you can change the storage mode later. You can use the Fast/slow mode (fast and slow drives). In this mode, data is saved to the fast partition and then, after a specified number of days is moved to slow partitions. To configure this mode: - Edit the
/etc/fstab file to automatically mount a new partition to /u03
/dev/sdd1 /u03/ ext4 defaults 1 2 - Create the "oradata" folder:
mkdir /u03/oradata (where /u03/oradata is a path to the fast drive) - Change user:
chown -R oracle:oinstall /u03 - Log into the database:
su -oracle
sqlplus iwtm@iwtm - Specify the storage period on fast drives:
exec pkg_part.set_fast_days(7); - Specify the path to the fast drive:
exec pkg_part.set_fast_path('/u03/oradata/',1); - Change the mode to fast-slow drives:
exec pkg_part.set_filesys_type('fast/slow'); - Apply changes:
commit; - Run the process of moving files:
exec iwtm.pkg_part.move_fast_tablespaces_to_slow();
| Информация |
|---|
| Few slow drives can be used in the System. |
| Предупреждение |
|---|
| Make sure the partitions paths you use are in accordance with the ones specified in the article. |
Or you can use the Rotate storage mode (everyday rotation). In this mode, the System switches to the next partition daily or in case of the partition overflow. To configure this mode: - Mount the partition and make sure that it can be mounted automatically on reboot
- Create the "oradata" folder:
mkdir /u03/oradata - Change user:
chown -R oracle:oinstall /u03 - Log into the database:
su -oracle
sqlplus iwtm@iwtm - Add a path to the second partition:
exec pkg_part.set_df_path('/u03/oradata/',2); - Specify a new number of paths:
exec pkg_part.set_df_path_cnt(2); - Apply changes:
commit;
- Switch to the
rotate mode:
exec pkg_part.set_filesys_type('rotate');
SQL>exec * from setting where setting like 'df_path%'; setting | value | editable -------------+---------------+---------- df_path1 | /u02/oradata1/ | 1 df_path2 | /u03/oradata/ | 1 df_path_cnt | 2 | 1 df_filesys_type | rotate | 1
|