Install Oracle 10g in Solaris 10

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://blog.youkuaiyun.com/hotsolaris/archive/2008/06/01/2443685.aspx
http://blog.youkuaiyun.com/zcatlinux/archive/2006/04/29/696562.aspx

 

The install information


Enterprise Manager Database Control URL - (orcl) :
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

iSQL*Plus DBA URL:
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. 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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值