Due to a problem with the stability of Fedora14 in my current version, I decided to change it to Ubuntu10.10, because I felt that it was superior in performance and stability after using this version for a while (for the linux version, don't do it too often. After all, you must be specific ). Oracle11gR2 is installed under Fedora14. Therefore, the installation directory of the database system is backed up and prepared. The database is stored in other partitions, so you don't have to worry about security issues. After installing the software, you can restore it once. But things
Due to a problem with the stability of Fedora 14 in my current version, I decided to change it to Ubuntu 10.10, just because I had used this version for a while and felt that it was superior in performance, stability is also good (for the linux version, don't often do it, after all, we still need to be specific ). Oracle11gR2 is installed under Fedora 14, so the installation directory of the database system is backed up and prepared. The database is stored in other partitions, so you don't have to worry about security issues. After installing the software, you can restore it once. But it became unexpected.
Install Ubuntu 10.10-desktop easily, decompress the original tar file to the installation path, and copy the parameter file to the user's. in profile, the ora user environment is set. bash_profile, but ubuntu is somewhat different, although it is also mentioned in the description document. bash_profile, but the read priority is still. profile is the highest, which is what I found later when viewing environment variables.
The vim settings of ubuntu are quite awkward by default. I used to use the basic version of vim to use the tiny version of ubuntu, which is obviously confusing. I don't want to install basic immediately (ubuntu is simplified, and I didn't even install it, chkconfig is also not installed, depressing ). The familiar operation is back. To rewrite the. profile file and the. bashrc file, rlwrap must be installed. Unfortunately, the readline is not installed by default on ubuntu desktop, and it will take a while. Finally, we installed rlwrap and started to adjust the oracle system.
First, create an oracle user group, and then create asmdba, asmadmin, and asmoper user groups based on future needs to include the current user into these user groups for my convenience, to ensure security, it is necessary to establish independent operation users and strictly restrict their permissions.
Second, you must run the oraInst. sh and root. sh scripts to ensure the required permissions for running oracle.
Copy an init. the ora file is changed to the instance parameter file pfile that you need. Of course, if the system path does not change, you can directly start the instance using the previously backed up spfile, to create a new database, you must create a new one. Use this parameter file to start the instance to the mount status. Use scripts to create database files. After the script is complete, continue to run the script set to generate database objects. In my previous script set, the catctx of 11g is missing. the SQL script is added. Otherwise, oracle text cannot be used after the library is installed.
Finally, run netca to create a listener. If tnsnames. ora is not properly generated, use the file in the backup to modify the listener and restart lsnrctl once to check whether the settings take effect.
After the above steps are completed, it is still smooth if no error occurs. Use sqplus/as sysdba to log in and check whether the database is running normally. If no error is reported or the user permission settings are correct, congratulations.
The final task is to modify the oratab, dbstart, and dbshut files. The previous backup is useful at this time and can be used directly without modification. It is also very easy to manually create oratab without backup: :/$ ORACLE_HOME/: Y. It is mainly used to meet the needs of the two shut-down scripts. If you prefer to manually turn off the database, you can ignore this last step.
Finally, I want to say that the improvement of Ubuntu 10.10 is very suitable for me. I tried to install 11gR2 in Ubuntu 9 before, but it was always an inexplicable error if it was not successful, this installation was a smooth one. Let me look at ubuntu again. It seems that it is time to switch from a bloated fedora to ubuntu.