Start the informix service in linux

Source: Internet
Author: User
Tags informix

1. Since onmode-ky can be executed only under informix users. So the plan is only for informix users ..

1) Use the su-informix command to switch to informix users:

Linux :~ # Su-informix

Linux "> informix @ linux: ~>

2. Use the crontab command to create a scheduled shutdown informix service plan: informix @ linux: ~> After crontab-e is opened with this command, you need to write a script to add the command to stop the informix service. Enter the following command:

Informix @ linux: ~> Crontab-e

0 12 *** onmode-ky [y1]

~

~

~

~ After writing, wq is saved. Now, the plan to disable the informix service on a regular basis is ready ..

3. Use the crontab command to create an informix to enable the Service at a scheduled time:

Informix @ linux: ~> Crontab-e

0 12 *** onmode-ky

30 12 * oninit [y2]

~

~

~

~~ After writing, wq is saved. Then the plan to enable the informix service on a regular basis is ready.

4. Verify that the plan takes effect after completion.

Informix @ linux: ~> Crontab-l

# Do not edit this file-edit the master and reinstall. # (/tmp/crontab. XXXXPsO3Zr installed on Wed Apr 22 23:53:53 2009) # (Cron version V5.0 -- $ Id: crontab. c, v 1.12 2004/01/23 18:56:42 vixie Exp $)

0 12 *** onmode-ky

30 12 *** oninit

[Y3] informix @ linux: ~>

Note: Do not use exit to exit informix users after the plan is made. You can switch to any user. This plan will take effect as long as it is not logout.

--------------------------------------------------------------------------------

[Y1] indicates executing the following command at every day. disabling the informix Service

[Y2] indicates that the command to start the informix service is executed at every day.

[Y3] indicates that the plan has been completed successfully.

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.