move datafile


sqlplus / as sysdba;
shut imemdiate
exit
mv /u01/app/oracle/oradata/PREAZKKDB/system01.dbf /data/PREAZKKDB/datafile/system01.dbf
mv /u01/app/oracle/oradata/PREAZKKDB/sysaux01.dbf /data/PREAZKKDB/datafile/sysaux01.dbf
mv /u01/app/oracle/oradata/PREAZKKDB/undotbs01.dbf /data/PREAZKKDB/datafile/undotbs01.dbf
mv /u01/app/oracle/oradata/PREAZKKDB/users01.dbf /data/PREAZKKDB/datafile/users01.dbf
mv /u01/app/oracle/oradata/PREAZKKDB/temp01.dbf /data/PREAZKKDB/datafile/temp01.dbf
sqlplus / as sysdba;
startup mount
alter database rename file '/u01/app/oracle/oradata/PREAZKKDB/system01.dbf' to '/data/PREAZKKDB/datafile/system01.dbf';
alter database rename file '/u01/app/oracle/oradata/PREAZKKDB/sysaux01.dbf' to '/data/PREAZKKDB/datafile/sysaux01.dbf';
alter database rename file '/u01/app/oracle/oradata/PREAZKKDB/undotbs01.dbf' to '/data/PREAZKKDB/datafile/undotbs01.dbf';
alter database rename file '/u01/app/oracle/oradata/PREAZKKDB/users01.dbf' to '/data/PREAZKKDB/datafile/users01.dbf';
alter database rename file '/u01/app/oracle/oradata/PREAZKKDB/temp01.dbf' to '/data/PREAZKKDB/datafile/temp01.dbf';
alter database open

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: