SQL> select name from v$datafile;
These files must be copied to the standby database. However, the primary database must be shut down before they can be copied.
SQL> shutdown immediate;
After copying the datafiles, the primary database can be started up again.
Creating a standby database control file
A control file needs to be created for the standby system. Execute the following on the primary system:
SQL> alter database create standby controlfile as'/some/path/to/a/file'
The created file must meet two conditions:
Its filename must be different from any other control file
Must be created after the backup of the datafiles.
Creating an init file
A pfile is created from the spfile. This pfile needs to be modified and then be used on the standby systemto create a spfile from it.
create pfile='/some/path/to/a/file' from spfile
The following parameters must be modified or added:
db_file_name_convert (only if directory structure is different on primary and standby server)
log_file_name_convert (only if directory structure is different on primary and standby server)
Log_archive_dest_1This value is used if a standby becomes primary during a switchover or a failover.
standby_file_managementSet to auto(??)
remote_archive_enableSet it to true(??)
lock_name_space (Only if standby and primary are on the same server. This makes no senseanyway)