Upgrade from 9i to 10g Release 2 Manually
- 1. Compile any invalid objects
@?/rdbms/admin/utlrp.sql
- 2. Create a sysaux tablespace
create tablespace sysaux datafile '<file_name>' size 512M extent management local segment space management auto /
- 3. Run utlu102i.sql
@/u01/app/oracle/product/10.2.0/db_1/rdbms/admin/utlu102i.sqlReview the output and make any necessary alterations. Make a note of how many invalid objects there are.
- 4. Shut the database down with either normal or immediate
shutdown immediate
- 5. Copy the spfile (or pfile) and the password file from the existing home to the 10g one.
cp ${ORACLE_HOME}/dbs/*${ORACLE_SID}* <new_home>/dbs/
- 6. Edit oratab
- 7. Upgrade the database
sqlplus "/ as sysdba" startup upgradeThis next bit is the upgrade itself. It takes roughly half an hour to complete. Spool the output to a file so that you can review it afterward.
@?/rdbms/admin/catupgrd.sql
- 8. Recompile any invalid objects
@?/rdbms/admin/utlrp.sqlCompare the number of invalid objects with the number noted in step 3. It should hopefully be the same or less.
- 9. Then check the status of the upgrade
@?/rdbms/admin/utlu102s.sql
- 10. Alter or remove initialisation parameters
create pfile from spfile;
shutdown immediate
vi ${ORACLE_HOME}/dbs/init${ORACLE_SID}.ora
Alter/remove parameters identified in step 9. Set compatible to 10.2.0.0.0startup create spfile from pfile; shutdown immediate startupThat's it!
No comments:
Post a Comment