Install Oracle 10g Release 2 under Solaris10 x86 u1

Source: Internet
Author: User

Operating Environment
Dell 1, 2850
Solaris 10x86 u1
Oracle 10g Release 2
Bash shell
Comprehensive knowledge
Solaris 10x86 u1 runs in 64-Bit mode on Dell 2850.
Oracle 10g Release 2 is a 64-bit architecture
References
Help document in Installation File 10201_database_solx86_64.zip
Http://www.dbspecialists.com/presentations/oracle10gsolaris.html
Http://download-west.oracle.com/docs/html/B13972_01/toc.htm
Download files
Http://www.oracle.com/technology... racle10g/index.html
After registration, click
Oracle Database 10g Release 2 (10.2.0.1.0) for Solaris Operating System (x86-64)
Download
10201_database_solx86_64.zip
Check System Environment
Make sure that the system can run the graphic interface or remotely run the graphic interface. The Remote Desktop used here is X Manager 2.0.
Open XBrowser and enter the IP address of the server to connect.
View the system version (5.10 64-bit required)
? Uname-
SunOS platinum VR 5.10 Generic_118844-26 i86pc i386 i86pc
? Isainfo-kv
64-bit amd64 kernel modules
View physical memory (MB or more required, as required)
? /Usr/sbin/prtconf | grep "Memory size"
Memory size: 2048 Megabytes
View swap files (more than 1 GB required)
? /Usr/sbin/swap-l
Swapfile dev swaplo blocks free
/Dev/dsk/c0t0d0s1 55,65 8 4192952 4192952
Temporary File space (more than MB required)
? Df-h/tmp
Filesystem size used avail capacity Mounted on
Swap 3.1G 8 K 3.1G 1%/tmp
The physical memory here is 2 GB, which is theoretically 2 GB * 1.5 = 3 GB. Add 512 MB here.
Create a MB swap file:
# Mkfile 512 M/export/home/swapone
Add the created swap file:
# Swap-a/export/home/swapone
Check:
# Swap-l
Swapfile dev swaplo blocks free
/Dev/dsk/c0d0s1 1056376, 1 8 1056376
/Export/home/swapone-8 1048568 1048568
The following settings enable the swap file to be automatically loaded and used after restart:
# Vi/etc/vfstab
/Export/home/swapone--swap-no-
View hard disk space (more than GB required)
Df-h
Filesystem size used avail capacity Mounted on
/Dev/dsk/c0t0d0s0 29G 3.1G 25G 12%/
......
Swap 3.1G 636 K 3.1G 1%/etc/svc/volatile
......
/Dev/dsk/c0t0d0s7 27G 6.3G 20G 24%/export/home
Check whether the following software package exists
? Pkginfo-I SUNWarc SUNWbtool SUNWhea SUNWlibm SUNWlibms SUNWsprot SUNWtoo SUNWi1of
SUNWi1cs SUNWi15cs SUNWxwfnt
System SUNWarc Lint Libraries (usr)
System SUNWbtool CCS tools bundled with SunOS
System SUNWhea SunOS Header Files
System SUNWi1of ISO-8859-1 (Latin-1) Optional Fonts
System SUNWlibm Math & Microtasking Library Headers & Lint Files (Usr)
System SUNWlibms Math & Microtasking Libraries (Usr)
System SUNWsprot Solaris Bundled tools
System SUNWtoo Programming Tools
System SUNWxwfnt X Window System platform required fonts
ERROR: information for "SUNWi1cs" was not found
ERROR: information for "SUNWi15cs" was not found
Install two packages: SUNWi1cs and SUNWi15cs.
Here, we will install the image from the downloaded installation Image File
Load and Store Image File partitions
? Mkdir/mnt/storage
? Mount-F pcfs/dev/dsk/c0t0d0p4: 1/mnt/storage
Load image files with Block devices
? Lofiadm-a/mnt/storage/solaris10/sol-10-u1-ga-x86-dvd.iso
/Dev/lofi/1
? Mount-F hsfs-o ro/dev/lofi/1/mnt/isoimg
Install these two packages
? Pkgadd-d/mnt/isoimg/Solaris_10/Product SUNWi1cs
? Pkgadd-d/mnt/isoimg/Solaris_10/Product SUNWi15cs
Detach a file
? Umount/mnt/isoimg/
? Lofiadm-d/dev/lofi/1
? Umount/mnt/storage/
Because the Solaris 10 u1 is relatively new, no patches will be installed.

Create users and groups
You need to create two groups: oinstall and dba, two users: oracle and nobody.
First, check whether it already exists.
? Grep oinstall/etc/group
? Grep dba/etc/group
? Id-a oracle
? Id-a nobody
Uid = 60001 (nobody) gid = 60001 (nobody) groups = 60001 (nobody)
Create Group
? Groupadd oinstall
? Groupadd dba
Create user
? Useradd-g oinstall-G dba-d/export/home/oracle-s/usr/bin/bash-c 'Oracle software
Owner '-m oracle
? Id-a oracle
Uid = 107 (oracle) gid = 104 (oinstall) groups = 105 (dba)
Set Password
? Passwd oracle
***
Create a directory
You need to create two directories: oracle and oradata. One is used to store program files and the other is used to store data files.
View disk space
? Df-kh
Create a directory for oracle (more than 3 GB required)
? Mkdir-p/opt/oracle
? Chown-R oracle: oinstall/opt/oracle
? Chmod-R 775/opt/oracle
Create the oradata directory (more than 1.gb required)
? Mkdir-p/export/home/oradata
? Chown-R oracle: oinstall/export/home/oradata
? Chmod-R 775/export/home/oradata
Adjust Kernel Parameters
Backup configuration file
? Cp/etc/system. orig
Modify the configuration file and add the following lines:
? Vi/etc/system
* For install oracle 10g
Set noexec_user_stack = 1
Set semsys: seminfo_semmni = 100
Set semsys: seminfo_semmns = 1024
Set semsys: seminfo_semms = 256
Set semsys: seminfo_semvmx= 32767
Set shmsys: shminfo_shmmax = 4294967295
Set shmsys: shminfo_shmmin = 1
Set shmsys: Sh minfo_shmmni = 100
Set shmsys: shminfo_shmseg = 10
Restart the system
? Reboot
Prepare the Installation File
Unzip the installation file:
? Unzip 10201_database_solx86_64.zip
Obtain the folder database
Configure Environment Parameters
Log On with oracle
? Su-oracle
Set Environment Parameters
? Vi. profile
Umask 022
ORACLE_BASE =/opt/oracle
ORACLE_SID = cdtdb
Export ORACLE_BASE ORACLE_SID
Log On again to view
-Bash-3.00 $ umask
0022
? Env | more
-Bash-3.00 $ env | more
......
ORACLE_SID = cdtdb
ORACLE_BASE =/opt/oracle
......
Start the installation process
Use Xmanager to log on to the server
Oracle users
Run runInstaller under the database directory
Select Installation Method
Advanced Installation
Specify Inventory directory and credentials
/Opt/oracle/oraInventory
Oinstall
Select Installation Type
Enterprise Edition
Sepcify Home Details
Name: OraDb10g_home1
Path:/opt/oracle/product/10.2.0/db_1
Product-Specific Prerequisite Checks
Pass all!
Select Configuration Option
Create a database
Select Database Configuration
General Purpose
Specify Database Configuration Options
Global Database Name: cdtdb SID: cdtdb
Select Database Character set: Simplified Chinese ZHS16GBK
Select Create database with sample schemas
Select Database Management Option
Select Use Database Control for Database Management
Enable Email Notification
61.144.43.235
Chenliqun@pyp.edu.cn
Specify Database Storage Option
Select File System
Location:/export/home/oradata
Specify Backup and Recovery Options
Select Do not enable Automated backups
Specify Database Schema Passwords
Use a single password :***
Summary
Execute Configuration Scripts
Run the script as instructed by the root user
Installation complete!
Installation Log:
/Opt/oracle/product/10.2.0/db_1/export toollogs/dbca/cdtdb
ISQL * Plus URL:
Http: // 192.168.200.11: 5560/isqlplus
ISQL * Plus dba url:
Http:/// 192.168.200.11: 5560/isqlplus/dba
Enterprise Manager 10g Database Control URL:
Http: // 192.168.200.11: 1158/em
Log On As sysdba as a sys user
Complete service configuration
Log On with oracle
? Su-oracle
Modify configuration file
? Vi. profile
Stty istrip
PS1 = '#'
Umask 022
MAIL =/usr/mail/$ {LOGNAME :?}
PATH =/usr/bin:/usr/sbin:/usr/sadm/bin:/usr/sfw/bin:/usr/local/bin:/usr/ucb: /etc :.
ORACLE_SID = cdtdb
ORAENV_ASK = NO
ORACLE_BASE =/opt/oracle
Export PS1 PATH ORACLE_BASE ORACLE_SID ORAENV_ASK
. Oraenv
Configure database instance entries correctly
? Vi/var/opt/oracle/oratab
Cdtdb:/opt/oracle/product/10.2.0/db_1: Y
Create automatic run script
? Vi/etc/init. d/oracle
#! /Bin/sh
ORA_HOME =/opt/oracle/product/10.2.0/db_1
ORA_OWNER = oracle
If [! -F $ ORA_HOME/bin/dbstart]
Then
Echo "Oracle startup: cannot start"
Exit
Fi
Case "$1" in
'Start') # start the Oracle databases and listeners
Su-$ ORA_OWNER-c "$ ORA_HOME/bin/dbstart"
Su-$ ORA_OWNER-c "$ ORA_HOME/bin/lsnrctl start"
Su-$ ORA_OWNER-c "$ ORA_HOME/bin/emctl start dbconsole"
Su-$ ORA_OWNER-c "$ ORA_HOME/bin/isqlplusctl start"
;;
'Stop') # stop the Oracle databases and listeners
Su-$ ORA_OWNER-c "$ ORA_HOME/bin/isqlplusctl stop"
Su-$ ORA_OWNER-c "$ ORA_HOME/bin/emctl stop dbconsole"
Su-$ ORA_OWNER-c "$ ORA_HOME/bin/lsnrctl stop"
Su-$ ORA_OWNER-c "$ ORA_HOME/bin/dbshut"
;;
Esac
Create a symbolic connection
? Ln-s/etc/init. d/oracle/etc/rc2.d/S99oracle
? Ln-s/etc/init. d/oracle/etc/rc0.d/K10oracle
Thank you very much for the original author.

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.