Here are the steps Oracle recommends:
- Export the whole database to file using exp or expdb, depending on the version.
- Deinstall the Enterprise Edition using Oracle installer.
- Reinstall the Standard Edition software using Oracle software.
- Create a new database and import the data from export file.
- Install Standard Edition in a different Oracle home and different Oracle home path eg. $ORACLE_HOME becomes /oracle/product/920
- Create a new database using dbca or from scripts. Applying all necessary patches.
- Export the whole database from old database.
- Shutdown old database.
- Import into new database.
- Switch listener to point at new database.
A couple of gotchas when using dbca to create the database.
- LOG_ARCHIVE_DEST_n doesn't work for Standard Edition. This parameter was set by the dbca in its standard init.ora file. This parameter setting returns the error ORA-439 feature not enabled: Managed Standby. Use LOG_ARCHIVE_DEST instead for Standard Edition.
- When using ssh -X hostname you can't use su or sudo to change to oracle. Tunneling X through ssh (the -X option) requires ssh -X oracle@hostname to get the right DISPLAY set.