In the past two days, due to the needs of the project development environment, I explored the installation of Oracle 10g on Red Flag Linux. Although the entire installation process has several small problems, it is in general, and the process is still smooth, recorded. I hope to help with friends who need this need.
I first use the Red Flag DB Server 4.0 to install Oracle, and find that the installation cannot be installed. The general meaning of the prompt is that Oracle 10 does not support the installation of this version, and the Red Flag Advance Server 4.0 is changed. The result is the same. Finally, by consulting Red Flag, Oracle 10g must be installed on Red Flag DC Server 4.1, so this must be aware that the version is RED flag DC Server 4.1, until the Red Flag Advance Server 4.1 can be installed, I I haven't tried:!
First from this address
http://www.oracle.com/technology/software/products/database/oracle10g/index.html 10g installer, which has several versions available for download, remember to choose Oracle Database 10g Release 1 (10.1. 0.3) For Linux X86 This version is adapted to the 10g for Linux version installed on the PC on the X86. After downloading, it is a Ship.db.lnx32.cpio.gz package, for convenience, I decompressed directly on the Window platform, unzipped out is a ship_db_lnx32_101013.cpio file, no matter so much, directly pass the file directly Copy to the / db / oracleinstall directory of the machine that needs to be installed, of course, you can also do it through FTP or SSH.
Since ship_db_lnx32_10101.cpio is still a package file, we must unwave, so we must unlock it:
[root @ local oracleinstall] # su - roo // Switch to root users
[root @ local oracleinstall] # cpio -idmv Everything is normal, you should create a DISK1 directory in the OracleInstall directory, all installation files of Oracle 10g are in this directory. Before installing Oracle 10g, you have to do a little preparation, first to establish a user who has installed Oracle: [root @ local oracleinstall] # su - roo // Switch to root users [root @ local oracleinstall] # groupadd dba // Add DBA Working Group [root @ local oracleinstall] # groupadd oinstall // Add Oinstall Working Group [root @ local oracleinstall] # oteradd -g oinstall -g dba Oracle // Add User Oracle and add to two working groups [root @ local oracleinstall] # Password Oracle // Set password Very strange, root cannot be used to install Oracle, you must add Oracle users as above. Ok, it's still a job to do: [root @ local oracleinstall] # xhost 127.0.0.1 0.0 // Set the operating environment of the visual installer [root @ local oracleinstall] # ot @ = en // Setting the language environment, not setting may garbled OK, which can finally start installing Oracle 10g: [root @ local oracleinstall] # su - Oracle // Switch to Oracle User [Oracle @ local OracleInstall] # CD / DB / ORACLEINSTALL / DISK1 / / Switch to the Contents where the installation file is located [Oracle @ local oracleinstall] # ./runinstaller / / Switch to Oracle User After a while, you can see the Oracle 10G graphical installation interface. I will install the Oracle database to the / home / Oracle folder, pay attention to the installation process, will be prompted to do the following two shell programs, you only open a shell window, execute it with root, you can Then install it down. /Home/oracle/oralnventory/orainstroot.sh /Home/racle/product/10.1.0/db_1/root.sh The installation process is simple, nothing to say, just the default established data in the installation process is not to select the character set, so do not establish a default database, wait for the DBCA tool to establish a database with the DBCA tool. Ok, the database system is installed, we want to create a database instance, create a database or rebuild the database through the DBCA command (this file is in the bin folder in the Oracle installation directory), please execute before execution [Oracle @ local oracleinstall] # @ omet oracle_home = / home / oracle / product / 10.1.0 / db_1 / // Set an environment variable You can also add this sentence in the Bash_Profile file of the Oracle user, so you don't need to run each time. [Oracle @ local oracleinstall] # CD /HOME/Orcle/Product/10.1.0/db_1/bin // Switch Directory [Oracle @ local bin] # ./lsnrctl start // start listening [Oracle @ local bin] # ./dbca // Execute DBCA, create a database After a while, you can see the DBCA visual interface, the process is also very simple, the focus is to choose the character set you need. If the "Cannot Creating DB / ORCL" in the creation process: View the properties of the DB folder, enter the permission TAB page, in "Other", "Write Project" permission owner, the user is Oracle, group The group is OinsTall. Can start the database [Oracle @ local bin] # ./sqlplus / nolog // Execute SQLPlus SQL> conn / as sysdba // is connected as SYSDBA SQL> Shutdown Immediate // First Down SQL> Startup Mount // You can use the following command to serve the service of Oracle's Web Management interface. [Oracle @ local bin] # Emctl start dbconsole // 启 Web Backstage Management Service Can then pass Http: // localhost: 5500: EM Access