首页 > 其他 > 详细

precise安装

时间:2015-07-08 16:07:04      阅读:148      评论:0      收藏:0      [点我收藏+]

1、创建precise用户,并设置所属组.

技术分享
#!/usr/bin/bash
groupadd -g 1500 precise

useradd -u 1102 -g precise -G precise,oinstall,dba,oper -d /home/precise -s /bin/bash -c "Precise Software Owner" precise
echo "oracle" | passwd --stdin precise
echo "export ORACLE_HOSTNAME=monitoring.localdomain">> /home/precise/.bash_profile
echo "export ORACLE_SID=ORCL">> /home/precise/.bash_profile
echo "export ORACLE_BASE=/u01/app/oracle">> /home/precise/.bash_profile
echo export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1>> /home/precise/.bash_profile
echo "export ORACLE_UNQNAME=ORCL">> /home/precise/.bash_profile
echo export TNS_ADMIN=$ORACLE_HOME/network/admin >> /home/precise/.bash_profile
echo "export ORACLE_TERM=xterm">> /home/precise/.bash_profile
echo export PATH=/usr/sbin:$PATH>> /home/precise/.bash_profile
echo export PATH=$ORACLE_HOME/bin:$PATH>> /home/precise/.bash_profile
echo export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib>> /home/precise/.bash_profile
echo export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib >> /home/precise/.bash_profile
echo "export EDITOR=vi" >> /home/precise/.bash_profile
echo "export LANG=en_US" >> /home/precise/.bash_profile
echo "export NLS_LANG=american_america.AL32UTF8" >> /home/precise/.bash_profile
echo "export NLS_DATE_FORMAT=‘yyyy/mm/dd hh24:mi:ss‘" >> /home/precise/.bash_profile
View Code

 

precise安装

原文:http://www.cnblogs.com/arcer/p/4630406.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!