标签:
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
标签:
原文地址:http://www.cnblogs.com/arcer/p/4630406.html