The whole procedure is outlined in [url]http://technet.oracle.com/docs/products/oracle8i/doc_library/817_doc/server.817/a86632/migupgra.htm#19511[/url] under "Upgrade the Database Manually".