免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2327 | 回复: 6
打印 上一主题 下一主题

[新手入门] 请大家来分析一道题的答案 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-08-28 22:52 |只看该作者 |倒序浏览
There is a database running in an AIX partition on a p570 server. The database administer wants a script run to cleanly shut down the database before the operating system is shut down. As system administrator,which of the following would meet the database administrator requirement?

A.Create an /etc/rc.shutdown file containing instructions to shut down the database

B.Create a DLPAR script on the HMC that issues an operating system command to run the database shut down script whenever a shutdown LPAR command is run on the HMC

C.Use the chitab command to change the Action field of the appropriate /etc/inittab entry from Respawn to Once

D.Create a script to shut down the database in the /etc/rc.d/rc2.d directory

答案是A,但我怎么觉得A、D都对?

论坛徽章:
0
2 [报告]
发表于 2008-08-29 00:06 |只看该作者
答案是A吧

论坛徽章:
0
3 [报告]
发表于 2008-08-29 06:25 |只看该作者
rc2.d的话如果是在单用户模式下就不会执行到了。

论坛徽章:
0
4 [报告]
发表于 2008-08-29 10:35 |只看该作者
原来如此

论坛徽章:
0
5 [报告]
发表于 2008-08-30 00:36 |只看该作者
A     ·

论坛徽章:
0
6 [报告]
发表于 2008-09-06 08:37 |只看该作者

回复 #1 佚名 的帖子

answer:A
OS shutdown前会自动调用/etc/rc.shutdown这个脚本的

论坛徽章:
0
7 [报告]
发表于 2008-09-06 08:38 |只看该作者

回复 #1 佚名 的帖子

The /etc/rc.shutdown file is checked each time a shutdown
command is issued. If the file exists, it will be run; otherwise, the system will
perform a regular shutdown depending on the flags that are used to bring the
system down.
Tip: /etc/rc.shutdown must be set as executable before it can called by the
/usr/sbin/shutdown script.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP