码迷,mamicode.com
首页 > 其他好文 > 详细

precise安装

时间:2015-07-08 16:07:52      阅读:110      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!