Oracle8i for UnixWare Installation instructions

Source: Internet
Author: User
Tags exit command line copy dba modify oracle database
Oracle|unix
Oracle 8i for UnixWare 7 is difficult to install. Here is the installation method that I get after n times of failure.
is not necessarily the best method, but it is certainly the available method.



Software and version
===========

UnixWare 7.1.1

Oracle 8i for Intel UNIX



Installation Considerations for UnixWare 7
========================

1, select the standard security level.

2,/dev/swap and/tmp are large enough. Unable to install Oracle correctly with default values
/dev/swap =/tmp +/var/tmp

3, cannot install NIS, can press F8 to skip.

4, must install the development tool.
Installation method:
Mount the 4th Zhang Pan to/mnt and execute
pkgadd-d/mnt UDK
Mount the 2nd Zhang Pan to/mnt and execute
pkgadd-d/mnt update711
Reboot


Oracle 8i Installation Steps
=================

1, the root user login

2, Mount CDROM
# mount-f Cdfs-oro/dev/cdrom/cdrom1/cdrom

3, with Scoadmin to establish DBA Group and Oracle users, Oracle into the DBA group


4, the establishment of Oracle directory/oracle
# mkdir/oracle
# chown Oracle:dba/oracle

5, modify the file/etc/default/login, set umask=022


6. Execute # chmod 777/dev/async
Modify file/etc/conf/node.d/async, change 600 to 777


7. Modify Kernel Parameters
Modify the file/ETC/CONF/MTUNE.D/IPC to find the line that contains "SEMOPM" with 3 values, respectively
corresponding to default, Min, Max, the max value is changed to 100;
Modify the file/etc/conf/cf.d/mtune to change the max value of SEMOPM to 100.

Enter the directory/ETC/CONF/CF.D to modify the corresponding parameters in the file Stune by running the following command:
.. /bin/idtune SHMMAX 536870912
.. /bin/idtune Shmmin 1
.. /bin/idtune Shmmni 200
.. /bin/idtune shmseg 10
.. /bin/idtune Semmni 100
Y
.. /bin/idtune SEMMSL 30
.. /bin/idtune Semmns 700
.. /bin/idtune SEMOPM 100
.. /bin/idtune Scorlim 0x7fffffff
.. /bin/idtune Hcorlim 0x7fffffff
.. /bin/idtune Sdatlim 0x7fffffff
.. /bin/idtune Hdatlim 0x7fffffff
.. /bin/idtune Svmmlim 0x7fffffff
.. /bin/idtune Hvmmlim 0x7fffffff
.. /bin/idtune Sfszlim 0x7fffffff
.. /bin/idtune Hfszlim 0x7fffffff
.. /bin/idtune Hfnolim 2048
.. /bin/idtune Sfnolim 128
.. /bin/idtune Nproc 300
Y
.. /bin/idtune Arg_max 1048576
.. /bin/idtune NPBUF 100
.. /bin/idtune MaxUp 1000
Y
.. /bin/idtune Strthresh 0x500000
.. /bin/idtune Recvretries 4

Note: If you are modifying kernel parameters for the first time, direct the command copy & paste to the # prompt. The "Y" in which the system needs to be validated when executing the command is added. If you are not modifying kernel parameters for the first time, it is best to execute each command for security reasons.

7, rebuild kernel
#/etc/conf/bin/idbuild
#/usr/ucb/reboot



8, the above for root user to do things. The following Oracle users log on to the console.

9, modify the document. Dtprofile, let. Profile take effect
Put the last line
Dtsourceprofile=true
The # number in front is removed

10. Add in. Profile
Umask 022

display=workstation_name:0.0
Oracle_base=/oracle
Oracle_home=/oracle
Oracle_sid=orcl
Oracle_owner=oracle
Export DISPLAY oracle_base oracle_home oracle_sid Oracle_owner

Path= $PATH: $ORACLE _home/bin:/usr/local/bin
Tmpdir=/tmp
Ld_library_path= $ORACLE _home/lib:/usr/java/lib:/usr/ccs/lib:/usr/lib: $LD _library_path
Java_home=/usr/java
Classpath= $ORACLE _home/orainventory/compoments/oracle/swd/jre/1.1.7: $ORACLE _home/jlib
Export PATH tmpdir ld_library_path java_home CLASSPATH

Nls_lang=american_america. zhs16cgb231280
ora_nls33= $ORACLE _home/ocommon/nls/admin/data
Export Nls_lang Ora_nls33

After you save the file, use the Oracle login console again.


11. CD Cdrom_mount_point_directory
Execute./runinstaller start installation. To select Custom mode, you cannot select a default installation.
The installation process is similar to installing Oracle 8i in other Unix.


12. Before running/tmp/orainstall/orainstroot.sh, we must ensure that the umask of root landing is 022


13, Warning: Choose whether to build a library, you must choose No. Otherwise, before and after the work of abandon!!!


14, after the installation is completed, configure Net8. If you are not responding for too long when you start listener, press stop and then next to exit the installation process. View with Lsnrctl status at the command line, at which point listener should have started. If it is not started, start it with Lsnrctl start.


15, with the CD attached to the installation document said Oratab file in/var/opt/oracle/oratab, actually copy to/etc/oratab to use.
Execute AS Root user
# CP/VAR/OPT/ORACLE/ORATAB/ETC


16, the Oracle user to run Dbassist. Do not automatically build the library, to quit using SQL to build the library. At this point, the Oracle installation is complete.

17, because the file $oracle_home/rdbms/demo/oratypes.h error, if you want to use OCI or Pro*c to write the program, you need to modify the file, the No. 445 line
typedef int Boolean;
Comment out.





Automatic Switch Oracle
==============


1, modify the file/etc/oratab, the corresponding SID set to Y


2, in the/ETC/INIT.D directory to create a Dbora file, and set to executable. The contents of the document are as follows:

#!/bin/sh
# Set Ora_home to is equivalent to the Oracle_home
# from which-Wish to execute Dbstart and Dbshut
# set Ora_owner to the user ID of the OWNER of the
# Oracle Database in Ora_home

Ora_home=/oracle
Ora_owner=oracle

if [!-F $ORA _home/bin/dbstart]
Then
echo "Oracle startup:cannot start"
Exit
Fi

Case "$" in

' Start ')

# Start the Oracle databases:
# The following command assumes that Oracle login would not prompt the
# User for any values

su-$ORA _owner-c $ORA _home/bin/dbstart &
su-$ORA _owner-c $ORA _home/bin/lsnrstart &

;;

' Stop ')

# Stop the Oracle databases:
# The following command assumes that Oracle login would not prompt the
# User for any values

su-$ORA _owner-c $ORA _home/bin/lsnrshut &
su-$ORA _owner-c $ORA _home/bin/dbshut &
;;
Esac


3, establish the connection
Create two files Lsnrstart and Lsnrshut in the/oracle/bin directory:
Lsnrctl start and Lsnrctl stop, and set to executable.
EXECUTE AS Root
# ln-s/etc/init.d/dbora/etc/rc0.d/k90dbora
# ln-s/etc/init.d/dbora/etc/rc2.d/s99dbora

NOTE: The Oracle document is/etc/rc0.d/k10dbora, but inet cannot start because K10 is in front of k69inet.
There are no spaces between [and!] on an Oracle document, and copying can be an error.


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.