precise安装

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

 

转载于:https://www.cnblogs.com/arcer/p/4630406.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值