In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
In fact, there is a parameter of autostart on DB2 database, but somehow it doesn't work on DB2v10.1, so we have to solve it ourselves.
Some methods on the Internet are to write a script and set it to boot. I think it's too troublesome. That's what I did.
Edit / etc/rc.local file
Add: su db2inst1-lc db2start
Save it, restart it, and you will find that DB2 starts automatically
What about oracle? pretty much.
First find the dbstart and dbstop files, and modify the ORACLE_HOME_LISTNER=$1 in it to
ORACLE_HOME_LISTNER=$ORACLE_HOME
Modifying / etc/oradata
Modify the / etc/oratab file with the following command:
[oracle@oracle11g ~] $vi / etc/oratab
Found: accp:/u01/oracle:N modified to: accp:/u01/oracle:Y
In / etc/rc.local, add
Su oracle-lc "lsnrctl start"
Su oracle-lc dbstart
Remember, the first line adds "" because there is a space between the lsnrctl start.
Restart, ok
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.