Mike and I spent most of the morning working on some "clean-up" of the AERO Oracle 10gR2 database running on Maverick.
The first major task we tried to complete was to change the location of the default tablespace. Apparently the default tablespace, as part of a standard 10g installation, is assigned to SYSTEM. Mike wanted to reassign this to DEFAULT_AERO, a new tablespace that we created. After doing some research, Mike had me run the command
alter database default tablespace default_aero;
In troubleshooting the resulting error message, we discovered that many of the 10g settings were actually pointing back to the 9i version of AERO (an instance we have installed on Maverick, used as part of our upgrade project). We ended up shutting down and restarting the 10g database many times throughout the morning, as we needed to work on getting the various settings pointed to the new 10g installation.
A major discovery for us was learning how to properly make changes to the SPFILE. Apparently, although you can edit the SPFILE using Pico, in reality this will corrupt that file. We discovered that we really needed to edit the PFILE, then issue the command below from within SQLPLUS
create spfile from pfile;
Of course, all of this involved shutting down and restarting the database several times as we made several changes and verified that they were in place.
Once we had the SPFILE configured properly, we were able to change the default tablespace as we had originally planned.
We also wanted to enable archivelog mode within the 10g database. To determine whether or nor this had been enabled, I found this command:
archive log list;
To enable archivelog mode, we issued this command:
alter database archive log;
We believe we're now ready to try to start the 10gR2 instance of AERO with the 9i instance "deleted", as we think we've changed all of the settings to point to 10g. In order to cover our tracks however, we'll have Travis simply rename the directory containing the 9i instance for now. In case we can't start 10g, we'll be able to get the 9i instance back to a known state.
In working with these settings, we both learned a great deal.