您的位置:首页 > 其它

十个看完,九个有领悟

2009-05-27 08:52 387 查看
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.csdn.net/hotsolaris/archive/2008/06/01/2443685.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
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. 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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: