Oracle Installation Instruction

Source: Internet
Author: User
Tags chmod dba mkdir oracle database

Under Linux, kernel may also be installed without changing the same procedure as Solaris
But the kernel parameters must be changed under Solaris, and my next lesson is for Solaris Sparc/intel '

In/etc/system finally joined these:
Set shmsys:shminfo_shmmax=4294967295
Set Shmsys:shminfo_shmmin=1
Set shmsys:shminfo_shmmni=100
Set shmsys:shminfo_shmseg=10
Set semsys:seminfo_semmns=2000
Set semsys:seminfo_semmsl=1000
Set semsys:seminfo_semmni=100
Set semsys:seminfo_semopm=100
Set semsys:seminfo_semvmx=32767
Unset Two_task

Reboot, add Group
Groupadd dba
Groupadd Oinstall
Then add the user
Useradd-c "Oracle DBA"-d/home/oracle-g oinstall-g dba-m-u 300
passwd Oracle

Mkdir/var/opt/oracle
Cd/var/opt/oracle
mkdir u01
mkdir u02
mkdir u03
mkdir u04
(Oracle recommends using this 4DISK mode to improve performance and reliability, you do not need 4DISK, but can be distributed to four folders or partitions)
Ln-s/var/opt/oracle/u01/u01
Ln-s/var/opt/oracle/u02/u02
Ln-s/var/opt/oracle/u03/u03
Ln-s/var/opt/oracle/u04/u04
Chown oracle:oinstall/u01
Chown oracle:oinstall/u02
Chown oracle:oinstall/u03
Chown oracle:oinstall/u04
chmod 755/u01
chmod 755/u02
chmod 755/u03
chmod 755/u04

Landing to Oracle
Modify. Profile
Join
Oracle_base=/u01/app/oracle
Oracle_home= $ORACLE _base/product/8.1.7
Oracle_sid=orcl
Dba= $ORACLE _base/admin
Path= $PATH: $ORACLE _home/bin:/usr/local/bin

Export oracle_base oracle_home oracle_sid DBA PATH

After exiting the login can be installed, here's the SID I named ORCL, you can arbitrarily change, of course, users and groups are the same, installation will ask you the DBA's group, select the DBA can be
The rest of the installation should go well, exactly as Oracle says.

!!!!! There is a serious bug in Oracle 8i for Solaris Intel that can cause the installation to not complete
Oracle Builds/var/opt/oracle/oratab
But Dbstart went to/etc/oratab to find, so Startdb failed to start
Ln-s/var/opt/oracle/oratab/etc/oratab
We can solve this problem.

Here's how to start Oracle automatically at power-on
Establish Dbora under the/ETC/INIT.D
#!/bin/sh
ora_home=/u01/app/oracle/product/8.1.7
Ora_owner=oracle
if [!-F $ORA _home/bin/dbstart]
Then
echo "Oracle startup:cannot start"
Exit
Fi
Case "$" in
' Start ') # start Oracle Database and Net8 Listener
su-$ORA _owner-c "$ORA _home/bin/dbstart" &
su-$ORA _owner-c "$ORA _home/bin/lsnrctl start" &
su-$ORA _owner-c "ora_home/apache/apache/bin/apachectl start" &
;;
' Stop ') # stop Oracle Database and Net8 Listener
su-$ORA _owner-c "$ORA _home/bin/dbshut" &
su-$ORA _owner-c "$ORA _home/bin/lsnrctl Stop" &
su-$ORA _owner-c "Ora_home/apache/apache/bin/apachectl Stop" &
;;
Esac

Then make a connection
Ln-s/etc/init.d/dbora/etc/rc2.d/s99dbora
Ln-s/etc/init.d/dbora/etc/rc0.d/k10dbora

Open/var/opt/oracle/oratab
Change N to Y
orcl:/u01/app/oracle/product/8.1.7:Y

Here, I use the Oracle user to run Apache, there is a lot of security, you can switch to other users do not have permissions, Apache uses the port is 7777, if you want to change to 80 port, there will be a lot of changes, not introduced here


This is just a normal installation so you can successfully install Oracle, on Solaris 8, Solaris 9,
I hope it will help you.



Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.