自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

CentOS Oracle測試運行使用root用戶修改

系統(tǒng) Linux
使用CentOS Oracle用戶修改$ORACLE_HOME/bin/dbstart文件[root@localhost init.d]# su - oracle[oracle@localhost ~]$ cd $ORACLE_HOME/bin[oracle@localhost bin]$ vi dbstart找到 ORACLE_HOME_LISTNER 這行, 修改成:ORACLE_HOME_LISTNER=/oracle/product/10.2.0/db_1或者直接修改成:ORACLE_HOME_LISTNER=$ORACLE_HOME

特別值得一提的是CentOS Oracle有很多值得學習的地方,這里我們主要介紹CentOS Oracle,包括介紹CentOS Oracle等方面。Linux : CentOS-5Oracle: 10.2.0.1.0設置 Linux 上Oracle 自動啟動 200807221、首先在/etc/rc.d/init.d/目錄下配置CentOS Oracle的服務文件。su - rootvi oracledb將***的附件腳本貼入chmod 775 oracledb

2、使用root用戶修改:[root@localhost init.d]# vi /etc/oratabcatlogdb:/oracle/product/10.2.0/db_1:Y 將***的N改為Y

3、使用CentOS Oracle用戶修改$ORACLE_HOME/bin/dbstart文件[root@localhost init.d]# su - oracle[oracle@localhost ~]$ cd $ORACLE_HOME/bin[oracle@localhost bin]$ vi dbstart找到 ORACLE_HOME_LISTNER 這行, 修改成:
ORACLE_HOME_LISTNER=/oracle/product/10.2.0/db_1或者直接修改成:ORACLE_HOME_LISTNER=$ORACLE_HOME

測試運行 dbshut, dbstart 看能否啟動CentOS Oracle 服務及l(fā)istener服務: [oracle@localhost bin]$ ps -ef|grep ora_[oracle@localhost bin]$ lsnrctl status

4、創(chuàng)建服務 chkconfig --add oracledbservice oracledb does not support chkconfig在腳本中以下兩行必須存在# chkconfig: 345 99 10# description: script for the Oracle Instance, Listener 

[root@localhost ~]# chkconfig --list oracledb oracledb        0:off   1:off   2:off   3:on    4:on    5:on    6:off--附件oracledb 腳本
#!/bin/bash
#
# chkconfig: 345 99 10
# description: script for the Oracle Instance, Listener 
# /etc/init.d/oracledb
#

export ORACLE_HOME=/oracle/product/10.2.0/db_1
export ORACLE_SID=catlogdb
export PATH=$PATH:$ORACLE_HOME/bin
ORA_OWNR=oracle

# if the executables do not exist -- display error
if [ ! -f $ORACLE_HOME/bin/dbstart -o ! -d $ORACLE_HOME ]
then
echo "Oracle startup: cannot start"
exit 1
fi
# depending on parameter -- startup, shutdown, restart
# of the instance and listener or usage display
case "$1" in
start)
# Oracle listener and instance startup
echo -n "Starting Oracle: "
su $ORA_OWNR -c "$ORACLE_HOME/bin/dbstart"
su $ORA_OWNR -c "$ORACLE_HOME/bin/lsnrctl start"
touch /var/lock/oracle
su $ORA_OWNR -c $ORACLE_HOME/bin/emctl start dbconsole
echo "OK"
;;
stop)
# Oracle listener and instance shutdown
echo -n "Shutdown Oracle: "
su $ORA_OWNR -c "$ORACLE_HOME/bin/lsnrctl stop"
su $ORA_OWNR -c $ORACLE_HOME/bin/dbshut
rm -f /var/lock/oracle
su $ORA_OWNR -c $ORACLE_HOME/bin/emctl stop dbconsole
echo "OK"
;;
reload|restart)
$0 stop
$0 start
;;
****)
echo "Usage: `basename ` start|stop|restart|reload"
exit 1
esac
exit 0
CentOS Oracle備注說明# chkconfig: 345 99 10指出3,4,5級別啟動這個服務,99是在相應的/etc/rc.d/rcN.d(N為前面指定的級別,這里是345)目錄下生成的鏈接文件的序號(啟動優(yōu)先級別)S99oradbstart,10為在除前面指出的級別對應的/etc/rc.d/rcN.d(N為除345之外的級別)目錄生成的鏈接文件的序號(服務停止的優(yōu)先級別)K10oradbstart撤銷服務的話:chkconfig --del CentOS Oracledb

【編輯推薦】

  1. CentOS Oracle虛擬機使用真正應用集群
  2. CentOS Oracle安裝必要的軟件創(chuàng)建數(shù)據(jù)庫
  3. 安裝CentOS oracle過程設置使用解壓包
  4. CentOS NTFS安裝和配置支持所有符合POSIX標準的磁盤操作
  5. Linux CentOS常用命令的各種使用方法
責任編輯:佚名 來源: csdn
相關推薦

2021-11-05 11:05:28

Windows 11操作系統(tǒng)微軟

2019-08-19 13:15:54

Windows 10防火墻Visual Stud

2018-10-26 16:20:27

PodmanrootLinux

2021-02-17 09:16:58

PodmanLinuxDocker

2010-04-07 11:04:52

Oracle用戶密碼

2019-08-20 08:00:00

JavaScript測試工具前端

2024-03-29 09:13:58

MochaNode.js測試

2009-12-02 13:56:40

Visual Stud

2017-11-22 15:13:20

集成測試自動化測試契約測試

2010-04-08 18:21:56

Oracle用戶密碼

2010-11-16 16:23:04

Oracle修改用戶

2009-10-23 17:51:51

Oracle用戶密碼

2010-10-29 09:13:33

Oracle用戶密碼

2015-08-17 10:16:00

CentOSDocker命令root

2009-09-01 16:35:16

C#單元測試

2010-02-23 13:48:59

CentOS VncS

2009-12-17 14:24:16

ASP.NET Ext

2020-04-17 08:00:22

Docker命令普通用戶

2009-12-16 13:46:24

VS 2005環(huán)境

2021-08-06 13:51:43

微軟 Terminal HTML
點贊
收藏

51CTO技術棧公眾號