How to config VirtualVM Remote Monitoring with JMX

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/yexianyi/article/details/84618223
nohup java \
 -server \
 -Dcom.sun.management.jmxremote=true \
 -Dcom.sun.management.jmxremote.port=8887 \
 -Dcom.sun.management.jmxremote.rmi.port=8886 \
 -Dcom.sun.management.jmxremote.authenticate=false \
 -Dcom.sun.management.jmxremote.ssl=false \
 -Djava.rmi.server.hostname=<server_ip> \
 -jar <your_jar_file> &

Note:

-Dcom.sun.management.jmxremote.rmi.port is very IMPORTANT !

展开阅读全文

how to config Pro*C !!!! help me!!

01-15

I have question about pro*c compilation: We have recently installed a Pro*c compiler on HP UNIX 11 box and Oracle 8i. I modified a sample proc program to connect to our database and select several records from a table to verify the pro*c compiler works. Here is how I attempted to compiler the program:rn> proc c_test.pcrnResult: rnPro*C/C++: Release 8.1.7.0.0 - Production on Fri Dec 7 16:03:41 2001rnrn(c) Copyright 2000 Oracle Corporation. All rights reserved.rnrnSystem default option values taken from: /u01/app/oracle/product/8.1.7/precomp/arndmin/pcscfg.cfgrnrnrnpcscfg.cfg setting are: rnsys_include=(/usr/include)rninclude=(/project/hpux/817/src_000811/precomp/public)rninclude=/project/hpux/817/src_000811/precomp/hdrsrninclude=/project/hpux/817/src_000811/tpcc2x_2/srcrninclude=/project/hpux/817/src_000811/precomp/includerninclude=/project/hpux/817/src_000811/oracore/includerninclude=/project/hpux/817/src_000811/oracore/publicrninclude=/project/hpux/817/src_000811/rdbms/includerninclude=/project/hpux/817/src_000811/rdbms/publicrninclude=/project/hpux/817/src_000811/rdbms/demorninclude=/project/hpux/817/src_000811/nlsrtl/includerninclude=/project/hpux/817/src_000811/nlsrtl/publicrninclude=/project/hpux/817/src_000811/network_src/includerninclude=/project/hpux/817/src_000811/network_src/publicrninclude=/project/hpux/817/src_000811/network/includerninclude=/project/hpux/817/src_000811/network/publicrninclude=/project/hpux/817/src_000811/plsql/publicrninclude=/project/hpux/817/src_000811/otrace/publicrnltype=shortrnrn-----------------------------------------------------------------rnWhy do I get this message "System default option values taken from: /u01/app/oracle/product/8.1.7/precomp/arndmin/pcscfg.cfg"? Also two other files generated: c_test.c and c_test.lis which should be fine.rnrnSo, I compiled the c_test.c program and here is an error message:rn> cc c_tesc crnrnError message:rncpp: "c_test.c", line 142: error 4036: Can't open include file 'sqlca.h'.rnrnThe sqlca.h file is located:rn./u01/app/oracle/product/8.1.7/precomp/public/sqlca.hrnrnThe stdio.h and other *.h files located:rn/usr/includernrn-------------------------------------------------------------rnI have tried to include the sqlca.h file in the psscfg.cfg file, but it doesn't help much. Do I need to set a link in the /usr/include directory to the ./u01/app/oracle/product/8.1.7/precomp/public/ so it recognizes the sqlca.h and others *.h file in this directory? I am a beginner in Proc, please help. rnrnThank you very much,rnCindyrnrnP.S. Here is the c_test.pc:rn===================================================================rn#include rn#include rnrn#define PWD_LEN 40rnrntypedef char asciiz[PWD_LEN];rnrnEXEC SQL TYPE asciiz IS STRING(PWD_LEN) REFERENCE;rnasciiz username;rnasciiz password;rnrnstruct apps_infornrnasciiz apps_login;rnasciiz apps_name;rnint apps_sch_ver;rn;rnrnvoid sql_error();rnrnmain()rnrnrnstruct apps_info *apps_rec_ptr;rnrnif ((apps_rec_ptr =rn(struct apps_info *) malloc(sizeof(struct apps_info))) == 0)rnrnfprintf(stderr, "Memory allocation error. \n");rnexit(1);rnrnrn/* Connect to Oracle. */rnstrcpy(username, "scott");rnstrcpy(password, "trigger");rnrnrnEXEC SQL WHENEVER SQLERROR DO sql_error("ORACLE error--");rnrnEXEC SQL CONNECT :username IDENTIFIED BY :password;rnprintf("\nConnected to ORACLE as user: %s\n", username);rnrnEXEC SQL DECLARE appsinfo_tbl CURSOR FORrnSELECT apps_login, apps_name, apps_sch_verrnFROM apps_info_tblrnWHERE rownum < 11;rnrnEXEC SQL OPEN appsinfo_tbl;rnrnprintf("\n\n Application login are-- \n\n");rnprintf("Apps_login Apps_name Apps_sch_ver\n");rnprintf("----------- --------------- ------------\n");rnrnEXEC SQL WHENEVER NOT FOUND DO break;rnrnfor(;;)rnrnEXEC SQL FETCH appsinfo_tbl INTO :apps_rec_ptr;rnprintf("%-11s %-15s %14d", apps_rec_ptr->apps_login,rnapps_rec_ptr->apps_name, apps_rec_ptr->apps_sch_ver);rnrnrnEXEC SQL CLOSE appsinfo_tbl;rnrnEXEC SQL COMMIT WORK RELEASE;rnexit(0);rnrn rn 论坛

没有更多推荐了,返回首页