In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Method 1:
Modify oratab (oracle users can)
Vi / etc/oratab
Change "N" to "Y" in orcl:/oracle/u01/product:N. Note: only uppercase, not lowercase.
Modify dbstart (can automatically start listening before starting the instance)
Vi $ORACLE_HOME/bin/dbstart
Change 1 in ORACLE_HOME_LISTNER=$1 to: ORACLE_HOME, as follows
ORACLE_HOME_LISTNER=$ORACLE_HOME
Modify rc.local (only root users have permission)
Vi / etc/rc.d/rc.local
Add a line: su-oracle-c $ORACLE_HOME/bin/dbstart or directly as follows:
Su-oracle-c dbstart
Run directly under the root user: / etc/rc.d/rc.local, that is, you can test the effect without restarting the system.
Method 2:
Modify oratab (oracle users can)
Vi / etc/oratab
Change "N" to "Y" in orcl:/oracle/u01/product:N. Note: only uppercase, not lowercase.
Instead of modifying the dbstart, add two lines to the rc.local:
Vi / etc/rc.d/rc.local
Su-oracle-c'$ORACLE_HOME/bin/lsnrctl start'
Su-oracle-c $ORACLE_HOME/bin/dbstart or:
Su-oracle-c 'lsnrctl start'
Su-oracle-c dbstart
In this method, you will be prompted to listen for warnings that have been turned on when you start the instance.
Summary: 1. The corresponding log files are $ORACLE_HOME/listener.log and $ORACLE_HOME/startup.log
2. Su-oracle-c can also be written as: su oracle-lc
3. You can verify the effect directly without restarting the system. Run / etc/rc.d/rc.local.
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.