How to set up boot DB2 and Oracle

Source: Internet
Author: User

In the DB2 database, in fact, there is an autostart parameters, but I do not know why in the db2v10.1 is always not effective, no way, had to solve their own

Some methods on the Internet is to write a script, set to boot, feel too much trouble, I did so

Edit/etc/rc.local File

Added: Su db2inst1-lc db2start

Save it, restart it, and you'll find DB2 automatically started.

Oracle, almost.

Find the Dbstart and Dbstop files first, and change the oracle_home_listner=$1 inside to

oracle_home_listner= $ORACLE _home

When modifying/etc/oradata


Modify the/etc/oratab file with the following command:

[Email protected] ~]$ 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 has a space between lsnrctl start, so Add "".

Reboot, OK

How to set up boot DB2 and Oracle

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.