Install ubuntu10.10in win7. download and run wubi.exe to install the software on any disk. Install oracle in Ubuntu... Hard work! However
Install Ubuntu 10.10on Windows 7. download and run wubi.exe to install the software on any disk. Install oracle in Ubuntu... Hard work! However
Install Ubuntu 10.10on Windows 7. download and run wubi.exe to install the software on any disk.
Install Oracle in Ubuntu... Hard work! But it's okay! I found a lot of information and made a lot of detours. The summary is as follows:
First, determine the installation environment and version,
Ubuntu 10.10 ::
JDK1.6 ::
Oracle10g Enterprise Edition ::
1. Install JDK1.6
1.1 first, in the download of the latest jdk-6u20-linux-i586.bin, this operation is relatively simple, do not need to switch.
Put the BIND file in any folder, such as/home/your username/java
1.2 grant the binfile permission so that you can operate on it
Enter the terminal and enter the folder where the binfile is located (/home/your username/java)
Run sudo chmod u + x jdk-6u20-linux-i586.bin
Sudo-s./jdk-6u20-linux-i586.bin
When ENTER appears, click ENTER. A webpage is displayed, followed by done. installation is complete.
1.3 configure environment variables (the same as windows, but the command is required to retrieve the variable file)
Run sudo gedit/etc/profile
Add at the end of the file
# Set java environment
JAVA_HOME =/home/your username/java/jdk1.6.0 _ 24
Export JRE_HOME =/home/your username/jdk1.6.0 _ 24/jre
Export CLASSPATH =.: $ JAVA_HOME/lib: $ JRE_HOME/lib: $ CLASSPATH
Export PATH = $ JAVA_HOME/bin: $ JRE_HOME/bin: $ PATH
Then run the Code:
Sudo update-alternatives -- install/usr/bin/java/home/your username/java/jdk1.6.0 _ 24/bin/java 300
Sudo update-alternatives -- install/usr/bin/javac/home/your username/java/jdk1.6.0 _ 24/bin/javac 300
Add the installed JDK to the java menu through this step.
Then execute.
Code:
Sudo update-alternatives -- config java
Set the system's default JDK through this step
Restart the computer and run the command in shell to test the jdk version.
Java-version
2. Install oracle10g
2.1 Download oracle10g.
2.2 download and install necessary packages
Apt-get install gcc make binutils lesstif2 libc6 libc6-dev rpm libmotif3 libaio1 libstdc ++ 6 alien
2.3 create an oracle user
Execute the command: adduser oracle
Adding User "oracle "...
Adding new group "oracle" (1001 )...
Adding new user "oracle" (1002) to group "oracle "...
Create a home directory "/home/oracle "...
Copying file from "/etc/skel...
Enter a new UNIX Password:
Re-enter the new UNIX Password:
Passwd: the password is successfully updated.
Changing the user information for oracle
Enter the new value, or press ENTER for the default
Full Name []: oracle
Room Number []:
Work Phone []:
Home Phone []:
Other []:
The adduser command system automatically creates an oracle user file.
2.4. Modify settings
A. Set the swap area
Oracle10g requires at least MB of memory and MB of swap space. to check whether the swap area is sufficient, run the fdisk-l command to check whether the swap space is smaller than MB, you can use the following operations to increase the swap size and reset the swap partition:
Dd if =/dev/zero of = tmp_swap bs = 1 k count = 900000
Chmod 600 tmp_swap
Mkswap tmp_swap
Swapon tmp_swap
After the installation is complete, you can release the space:
Swapoff tmp_swap
Rm tmp_swap
The count value depends on the swap partition size you need to adjust.
B. Modify sysctl. conf.
Run sudo gedit/etc/sysctl. conf.
Add the following row to/etc/sysctl. conf:
Kernel. shmmax = 3147483648
Kernel. shmmni = 4096
Kernel. shmall = 2097152
Kernel. sem = 250 32000 100 128
Fs. file-max = 65536
Net. ipv4.ip _ local_port_range = 1024 65000
C. Modify limits. conf
Run sudo gedit/etc/security/limits. conf.
Add the following row to/etc/security/limits. conf:
* Soft nproc 2407
* Hard nproc 16384
* Soft nofile 1024
* Hard nofile 65536
D. Make the modification take effect
After the above files are modified, you must make them take effect, restart the system, or switch to the root user to change the kernel running parameters in the following way: sysctl-p
E. Generate the corresponding soft connection
(Some methods on the Internet fail to be executed successfully. You can only use this stupid method ...)
Switch to the root user and execute the following command
Ln-s/usr/bin/awk
Ln-s/usr/bin/rpm
Ln-s/usr/bin/basename
Mkdir/etc/rc. d
Ln-s/etc/rc0.d/etc/rc. d/rc0.d
Ln-s/etc/rc2.d/etc/rc. d/rc2.d
Ln-s/etc/rc3.d/etc/rc. d/rc3.d
Ln-s/etc/rc4.d/etc/rc. d/rc4.d
Ln-s/etc/rc5.d/etc/rc. d/rc5.d
Ln-s/etc/rc6.d/etc/rc. d/rc6.d
Ln-s/etc/init. d/etc/rc. d/init. d
F. Create the RedHat version declaration File
Run sudo gedit/etc/redhat-release
Add the following statement to/etc/redhat-release to make the installer think it is being installed on a RedHat system:
Red Hat Linux release 3.1 (drupal)
G. Modify Environment Variables
Run sudo gedit/home/oracle/. bashrc
Edit/home/oracle/. bashrc and add the following export content.
PATH = $ PATH: $ HOME/bin
Export ORACLE_BASE =/home/oracle/ora10; install oracle in the/home/oracle/ora10 directory
Export ORACLE_HOME = $ ORACLE_BASE
Export ORACLE_SID = orcl
Export PATH = $ PATH: $ ORACLE_HOME/bin: $ ORACLE_HOME/jdk/bin: $ ORACLE_HOME/opmn/bin: $ ORACLE_HOME/dcm/bin:/usr/local/sbin: /usr/bin/X11:/usr/X11R6/bin: $ ORACLE_HOME/OPatch
Export PATH = $ PATH: $ HOME/bin:/sbin:/usr/bin
Export LD_LIBRARY_PATH = $ ORACLE_HOME/lib:/usr/local/lib
Export NLS_LANG = "AMERICAN_AMERICA.ZHS16CGB231280"
Export PATH
2.5 Installation started
Log out of the original user and use the oracle user to log on. Use env to check whether the environment variables take effect.
Decompress the downloaded oracle file to/home/oracle and decompress it to the database folder.
Terminal, run the following command:
Cd/home/oracle/databse/
./RunInstaller
If the installation is garbled, run Lang = en_US and install it in English,
You can also try it with./runInstaller-jreLoc $ JAVA_HOME/jdk/jre. It is said that it can be displayed in Chinese and it is not successful.
It seems that you can execute export LANG = C.
During the installation process, two files will be prompted to be executed, switch to the root user, and run
/Opt/ora10g/oraInventory/orainstRoot. sh
/Opt/ora10g/RDBMS/root. sh
Root. sh needs to input some content. I don't know what to input. Just press Enter ~
Installation complete!
Open your browser and enter 1158/em
You can see the oracle interface.
You also need to make some modifications (or not)
Execute Command
Cd/home/oracle/ora10
Cp-R Ubuntu. Ubuntu-domain_orcl localhost_orcl
Cd/home/oracle/ora10/Solaris/j2ee
Cp-R OC4J_DBConsole_Ubuntu.Ubuntu_orcl OC4J_DBConsole_localhost_orcl
By default, you can use 1158/em/to access em. I think this is to allow you to enter localhost: 1158/em to access em.
If it is not automatically started after restart, You can execute a command to execute it,
/Home/oracle/ora10/bin/emctl start dbconsole
You can also add it to the starter to enable it.
OVER!