In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Configure the oracle automatic startup script under linux:
[root@test ~] # vim / ETC echo init. D date. The lsnrctl start.... is starting up at the moment of starting lsnrctl start..... Su-oracle-c 'lsnrctl start' & > > / var/log/oracle echo-e "\ t\ t is starting dbstart...." Su-oracle-c 'dbstart' & > > / var/log/oracle echo-e "\ t\ t is starting emctl start dbconsole...." Su-oracle-c 'emctl start dbconsole' & > > / var/log/oracle echo-e "\ t\ t\ t started successfully!" Echo-e "\ t\ t `date +% F``date +% T`\ n";; stop) echo-e "\ n\ t\ t `date +% F``date +% T`" echo-e "\ t\ t is shutting down emctl stop dbconsole...." Su-oracle-c 'emctl stop dbconsole' & > > / var/log/oracle echo-e "\ t\ t is shutting down dbshut...." Su-oracle-c 'dbshut' & > > / var/log/oracle echo-e "\ t\ t is shutting down lsnrctl stop...." Su-oracle-c 'lsnrctl stop' & > > / var/log/oracle echo-e "\ t\ t\ t closed!" Echo-e "\ t\ t `date +% F``date +% T`\ n"; *) echo-e "\ n\ t\ t Usage:oracle {start | stop} this service has only been added for the time being | shutdown\ n" Esac [root@test ~] # chmod astatx / etc/init.d/oracle [root@test ~] # ll / etc/init.d/oracle-rwxr-xr-x 1 root root 1012 October 16 23:38 / etc/init.d/oracle [root@test ~] # chkconfig-- add oracle [root@test ~] # chkconfig-- list oracleoracle 0: close 1: close 2: close 3: enable 4: close 5: enable 6: close [root@test] # service oracle stop 2015-10-17 09:11:04 is shutting down emctl stop dbconsole.... Shutting down dbshut.... Shutting down lsnrctl stop.... Closed! 2015-10-17 09:12:30 [root@test ~] # service oracle stll Usage:oracle {start | stop} this service only adds startup for the time being | shutdown [root@test ~] # service oracle start 2015-10-17 09:12:41 is starting lsnrctl start.... Starting dbstart.... Starting emctl start dbconsole.... Start successfully! 2015-10-17 09:18:47 [root@test ~] # su-oracle [oracle@test ~] $sqlplus / as sysdbaSQL*Plus: Release 11.2.0.1.0 Production on Sat Oct 17 09:20:15 2015Copyright (c) 1982, 2009, Oracle. All rights reserved.Connected to:Oracle Database 11g Enterprise Edition Release 11.2.0.1.0-ProductionWith the Partitioning, OLAP, Data Mining and Real Application Testing optionsSQL > select status from
-
# description:auto_run / / when experimenting with linux5, the oracle startup script needs to be added to add oracle service to chkconfig, otherwise it will be reported that the service does not support it.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.