---
title: " Install Oracle 10g in Solaris 10"
author: "RobertLeeJesus"
date: "2008-07-25T22:35:21Z"
tags: []
slug: "install-oracle-10g-in-solaris-10"
draft: false
lastmod: "2009-08-07T14:03:12Z"
id: 219690
url: "https://hidefromall.iteye.com/blog/219690"
---

***Steps***

1\. 修改内核

> #vi /etc/system  
> set shmsys:shminfo\_shmmax=536870912  
> set shmsys:shminfo\_shmmin=1  
> set shmsys:shminfo\_shmmni=100  
> set shmsys:shminfo\_shmseg=10  
> set semsys:seminfo\_semmni=110  
> set semsys:seminfo\_semmns=310

2\. 创建用户和组

> #groupadd dba  
> #useradd –g dba –d /export/home/oracle –m oracle  
> #passwd oracle

3.设定oracle用户的环境参数

> #su oracle  
> $vi .profile         
> ORACLE\_BASE=/export/home/oracle   
> ORACLE\_HOME=$ORACLE\_BASE/product/10.0   
> ORACLE\_SID=orcl  
> NLS\_LANG=AMERICAN\_AMERICA.ZHS16GBK   
> PATH=$ORACLE\_HOME/bin:/bin:/sbin:/usr/ccs/bin:/usr/local/bin   
> LD\_LIBRARY\_PATH=$ORACLE\_HOME/lib:$ORACLE\_HOME/network/lib:/usr/local/lib:/usr/lib   
> TMPDIR=/var/tmp   
> DISPLAY=192.168.0.101:0.0  
> export ORACLE\_BASE ORACLE\_HOME ORACLE\_SID NLS\_LANG PATH LD\_LIBRARY\_PATH  DISPLAY TMPDIR   
> umask 022

4.解压oracle 10g安装包

> #./runInstaller &

***Reference***

[http://www.dbspecialists.com/presentations/oracle10gsolaris.html](http://www.dbspecialists.com/presentations/oracle10gsolaris.html)  
[http://blog.csdn.net/hotsolaris/archive/2008/06/01/2443685.aspx](http://blog.csdn.net/hotsolaris/archive/2008/06/01/2443685.aspx)  
[http://blog.csdn.net/zcatlinux/archive/2006/04/29/696562.aspx](http://blog.csdn.net/zcatlinux/archive/2006/04/29/696562.aspx)

 

***The install information***

Enterprise Manager Database Control URL - (orcl) :  
[http://robert:1158/em](http://robert:1158/em)

The following J2EE Applications have been deployed and are accessible at the URLs listed below.

iSQL\*Plus URL:  
[http://robert:5560/isqlplus](http://robert:5560/isqlplus)

iSQL\*Plus DBA URL:  
[http://robert:5560/isqlplus/dba](http://robert:5560/isqlplus/dba)

 

***How to start and stop the Oracle?***

Start

1\. Start Listener

lsnrctl start

2\. Start DB itself.

sqlplus SYS/ADMIN as sysdba

STARTUP spfile="/export/home/oracle/product/10.0/dbs/spfileorcl.ora"

Note, 1. file spfileorcl.ora contains some invalid characters in my installation. I remove them manuall.   
           2. The default pfile file initorcl.ora is not also found there.

           3. In some versions, the spfile is not option for startup, then what you need do is copy spfileorcl.ora initorcl.ora , after that, run startup in sqlplus.

3\. Start EM.

emctl start dbconsole

Note, sometimes it fail, please stop it and restart it again.

4\. Start isql server.

isqlplusctl start

Stop

1\. Shutdown DB.

SHUTDOWN immediate

2\. stop tsnlisnter.

snrctl stop”

3\. Stop em.

emctl stop dbconsole

4\. Stop isqlplus.

isqlplusctl stop

[Also refer to,](http://www.daydayup.org.cn/2006/04/20/solaris-10-oracle-startup.htm)

[http://www.daydayup.org.cn/2006/04/20/solaris-10-oracle-startup.htm](http://www.daydayup.org.cn/2006/04/20/solaris-10-oracle-startup.htm)