电脑技术学习

用Solaris 10中的SMF管理Oracle数据库的运行

dn001

  命令启用了实例名称为mesDost的oracle数据库和侦听器名称为MESODST_LISTENER的服务了。这些服务的日志文件可以到/var/svc/log目录中找到,例如:

  cvpdbviq02oraclemesodst$pwd

  /var/svc/log

  cvpdbviq02oraclemesodst$ls-l*oracle*

  -rw-r--r-- 1root  root    1390Sep2916:11application-oracle-database:mesodst.log

  -rw-r--r-- 1root  root    2647Sep2916:10application-oracle-listener:MESODST_LISTENER.log

  cvpdbviq02oraclemesodst$catapplication-oracle-database:mesodst.log

  [Sep2916:08:14Leavingmaintenancebecausedisablerequested.]

  [Sep2916:08:14Disabled.]

  [Sep2916:08:25Rereadingconfiguration.]

  [Sep2916:08:43Enabled.]

  [Sep2916:08:43Executingstartmethod("/lib/svc/method/ora-smfstartdatabasemesodst")]

  Connectedtoanidleinstance.

  ORACLEinstancestarted.

  TotalSystemGlobalArea 841974576bytes

  FixedSize         729904bytes

  VariableSize      419430400bytes

  DatabaseBuffers     419430400bytes

  RedoBuffers        2383872bytes

  Databasemounted.

  Databaseopened.

  databasemesodstisOPEN.

  [Sep2916:08:52Method"start"exitedwithstatus0]

  [Sep2916:09:48Stoppingbecauseservicedisabled.]

  [Sep2916:09:49Executingstopmethod("/lib/svc/method/ora-smfstopdatabasemesodst")]

  Databaseclosed.

  Databasedismounted.

  ORACLEinstanceshutdown.

  [Sep2916:09:57Method"stop"exitedwithstatus0]

  [Sep2916:10:40Enabled.]

  [Sep2916:10:46Rereadingconfiguration.]

  [Sep2916:10:55Executingstartmethod("/lib/svc/method/ora-smfstartdatabasemesodst")]

  Connectedtoanidleinstance.

  ORACLEinstancestarted.

  TotalSystemGlobalArea 841974576bytes

  FixedSize         729904bytes

  VariableSize      419430400bytes

  DatabaseBuffers     419430400bytes

  RedoBuffers        2383872bytes

  Databasemounted.

  Databaseopened.

  databasemesodstisOPEN.

  [Sep2916:11:07Method"start"exitedwithstatus0]

  cvpdbviq02oraclemesodst$

  从日志文件可见Oracle数据库已经成功运行了,还可以看到,启动Oracle数据库的是/lib/svc/method/ora-smfstartdatabasemesodst命令,如果从log中看到启动错误,可以先运行这条命令确认oracle可以顺利启动,再排查其他问题。

标签: