Centos6.8下Oracle12C超详细安装8


[18] After completing to create a database, Click “Close” to finish.


[19] Access to the URL that is shown on finished screen above with web browser, then follwing screen is shown. Input a user name and password that you configured on the section [7].


[20] Just logined. It's possible to manage the database on here.


Create an init Script to make Oracle start automatically on system booting.

[1] Set environment variables for “oracle” user like follows.

[oracle@dlp ~]$ vi /etc/oratab # end line: change

dlp:/u01/app/oracle/product/12.1.0/dbhome_1: Y [oracle@dlp ~]$ vi ~/.bash_profile # add follows to the end

export ORACLE_SID=dlp

[2] Create an init Script with the root user.

[root@dlp ~]# vi /etc/rc.d/init.d/oracle # it's an example, edit it you like.

#!/bin/bash# oracle: Start/Stop Oracle Database 12c R1## chkconfig: 345 90 10# description: The Oracle Database is an Object-Relational Database Management System.## processname: oracle. /etc/rc.d/init.d/functionsLOCKFILE=/var/lock/subsys/oracleORACLE_HOME=/u01/app/oracle/product/12.1.0/dbhome_1ORACLE_USER=oraclecase “$1″ in'start') if [ -f $LOCKFILE ]; then echo $0 already running. exit 1 fi echo -n $”Starting Oracle Database:” su – $ORACLE_USER -c “$ORACLE_HOME/bin/lsnrctl start” su – $ORACLE_USER -c “$ORACLE_HOME/bin/dbstart $ORACLE_HOME” touch $LOCKFILE ;;'stop') if [ ! -f $LOCKFILE ]; then echo $0 already stopping. exit 1 fi echo -n $”Stopping Oracle Database:” su – $ORACLE_USER -c “$ORACLE_HOME/bin/lsnrctl stop” su – $ORACLE_USER -c “$ORACLE_HOME/bin/dbshut” rm -f $LOCKFILE ;;'restart') $0 stop $0 start ;;'status') if [ -f $LOCKFILE ]; then echo $0 started. else echo $0 stopped. fi ;;*) echo “Usage: $0 [start|stop|status]” exit 1esacexit 0[root@dlp ~]# chmod 755 /etc/rc.d/init.d/oracle

[root@dlp ~]# chkconfig –add oracle

[root@dlp ~]# chkconfig oracle on

 原网页已由QQ浏览器云转码

 

     

如果这文章对你有帮助,请扫左上角微信支付-支付宝,给于打赏,以助博客运营

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注