標籤:
參考文章
實驗:
1、查看當前emctl status dbconsole為runing狀態
2、關閉emctl stop dbconsole
3、刪除/u01/app/oracle/product/11.2.0/db_1/gtone.localdomain_CQRCB/sysman/log目錄下emdb.nohup檔案
4、重新啟動emctl start dbconsole
5、查看自動產生了emdb.nohup檔案
論證emdb.nohup檔案與emctl的相關性
1、通過fuser命令,查看
[[email protected] ~]# fuser /u01/app/oracle/product/11.2.0/db_1/gtone.localdomain_CQRCB/sysman/log/emdb.nohup /u01/app/oracle/product/11.2.0/db_1/gtone.localdomain_CQRCB/sysman/log/emdb.nohup: 11733 11753 11763
2、通過ps -ef | grep oracle命令查看進程資訊
[[email protected] ~]# ps -ef | grep oracleoracle 3383 1 0 Aug20 ? 00:01:17 /u01/app/oracle/product/11.2.0/db_1/bin/tnslsnr LISTENER -inheritoracle 3507 1 0 Aug20 ? 00:02:02 ora_pmon_CQRCBoracle 3509 1 0 Aug20 ? 00:02:22 ora_psp0_CQRCBoracle 3511 1 0 Aug20 ? 00:01:39 ora_vktm_CQRCBoracle 3515 1 0 Aug20 ? 00:00:03 ora_gen0_CQRCBoracle 3517 1 0 Aug20 ? 00:00:05 ora_diag_CQRCBoracle 3519 1 0 Aug20 ? 00:00:22 ora_dbrm_CQRCBoracle 3521 1 0 Aug20 ? 02:48:10 ora_dia0_CQRCBoracle 3523 1 0 Aug20 ? 00:00:16 ora_mman_CQRCBoracle 3525 1 0 Aug20 ? 00:36:29 ora_dbw0_CQRCBoracle 3527 1 0 Aug20 ? 00:19:29 ora_lgwr_CQRCBoracle 3529 1 0 Aug20 ? 00:17:00 ora_ckpt_CQRCBoracle 3531 1 0 Aug20 ? 00:06:33 ora_smon_CQRCBoracle 3533 1 0 Aug20 ? 00:00:06 ora_reco_CQRCBoracle 3535 1 0 Aug20 ? 00:16:51 ora_mmon_CQRCBoracle 3537 1 0 Aug20 ? 00:56:07 ora_mmnl_CQRCBoracle 3539 1 0 Aug20 ? 00:00:02 ora_d000_CQRCBoracle 3541 1 0 Aug20 ? 00:00:02 ora_s000_CQRCBoracle 3561 1 0 Aug20 ? 00:00:02 ora_qmnc_CQRCBoracle 3625 1 0 Aug20 ? 00:04:05 ora_cjq0_CQRCBoracle 3737 1 0 Aug20 ? 00:00:27 ora_q001_CQRCBoracle 3905 1 0 Aug20 ? 00:00:07 ora_smco_CQRCBroot 6426 3119 0 09:55 ? 00:00:00 sshd: oracle [priv]oracle 6428 6426 0 09:55 ? 00:00:00 sshd: [email protected]/0oracle 6429 6428 0 09:55 pts/0 00:00:00 -bashoracle 8991 1 0 10:04 ? 00:00:00 ora_w001_CQRCBoracle 9433 1 0 10:09 ? 00:00:00 ora_w003_CQRCBoracle 11733 1 0 10:17 pts/0 00:00:00 /u01/app/oracle/product/11.2.0/db_1/perl/bin/perl /u01/app/oracle/product/11.2.0/db_1/bin/emwd.pl dbconsole /u01/app/oracle/product/11.2.0/db_1/gtone.localdomain_CQRCB/sysman/log/emdb.nohuporacle 11753 11733 9 10:17 pts/0 00:00:19 /u01/app/oracle/product/11.2.0/db_1/jdk/bin/java -server -Xmx384M -XX:MaxPermSize=400M -XX:MinHeapFreeRatio=20 -XX:MaxHeapFreeRatio=40 -DORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1 -Doracle.home=/u01/app/oracle/product/11.2.0/db_1/oc4j -Doracle.oc4j.localhome=/u01/app/oracle/product/11.2.0/db_1/gtone.localdomain_CQRCB/sysman -DEMSTATE=/u01/app/oracle/product/11.2.0/db_1/gtone.localdomain_CQRCB -Doracle.j2ee.dont.use.memory.archive=true -Djava.protocol.handler.pkgs=HTTPClient -Doracle.security.jazn.config=/u01/app/oracle/product/11.2.0/db_1/oc4j/j2ee/OC4J_DBConsole_gtone.localdomain_CQRCB/config/jazn.xml -Djava.security.policy=/u01/app/oracle/product/11.2.0/db_1/oc4j/j2ee/OC4J_DBConsole_gtone.localdomain_CQRCB/config/java2.policy -Djavax.net.ssl.KeyStore=/u01/app/oracle/product/11.2.0/db_1/sysman/config/OCMTrustedCerts.txt-Djava.security.properties=/u01/app/oracle/product/11.2.0/db_1/oc4j/j2ee/home/config/jazn.security.props -DEMDROOT=/u01/app/oracle/product/11.2.0/db_1/gtone.localdomain_CQRCB -Dsysman.md5password=true -Drepapi.oracle.home=/u01/app/oracle/product/11.2.0/db_1 -Ddisable.checkForUpdate=true -Doracle.sysman.ccr.ocmSDK.websvc.keystore=/u01/app/oracle/product/11.2.0/db_1/jlib/emocmclnt.ks -Dice.pilots.html4.ignoreNonGenericFonts=true -Djava.awt.headless=true -jar /u01/app/oracle/product/11.2.0/db_1/oc4j/j2ee/home/oc4j.jar -config /u01/app/oracle/product/11.2.0/db_1/oc4j/j2ee/OC4J_DBConsole_gtone.localdomain_CQRCB/config/server.xmloracle 11763 11733 0 10:17 pts/0 00:00:00 /u01/app/oracle/product/11.2.0/db_1/bin/emagentoracle 11789 1 1 10:17 ? 00:00:03 oracleCQRCB (LOCAL=NO)oracle 11822 1 0 10:17 ? 00:00:00 oracleCQRCB (LOCAL=NO)oracle 11971 1 0 10:17 ? 00:00:00 oracleCQRCB (LOCAL=NO)oracle 11991 1 0 10:17 ? 00:00:00 oracleCQRCB (LOCAL=NO)oracle 12034 1 0 10:17 ? 00:00:00 oracleCQRCB (LOCAL=NO)oracle 12037 1 0 10:17 ? 00:00:00 oracleCQRCB (LOCAL=NO)oracle 12040 1 0 10:17 ? 00:00:00 oracleCQRCB (LOCAL=NO)oracle 12043 1 0 10:17 ? 00:00:00 oracleCQRCB (LOCAL=NO)oracle 12054 1 0 10:17 ? 00:00:00 oracleCQRCB (LOCAL=NO)root 12935 12865 0 10:21 pts/5 00:00:00 grep oracleoracle 19270 1 0 Sep14 ? 00:00:00 ora_q003_CQRCB[[email protected] ~]#
3、清除emdb.log檔案,沒有問題.
oracle 11.2版本.sysman/log下emdb.nohup檔案偏大,如何解決?