Skip to content

Instantly share code, notes, and snippets.

@bulain
bulain / java_remote_debug.sh
Last active October 4, 2015 06:18
java debug remote
#java debug remote
x.debug=-Xdebug
x.noagent=-Xnoagent
x.compiler=-Djava.compiler=NONE
x.debugport=-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000
@bulain
bulain / ora_dict.txt
Created May 3, 2012 07:22
oracle dictionary
1. USER_*, ALL_*, DBA_*.
2. V_$, GV_$, V$, GV$.
3. X$.
@bulain
bulain / vim_command.sh
Created April 2, 2012 10:17
vim command
#replace in vim
[addr]s/src/dist/[option]
addr: the range
nothing Work on current line only.
number Work on the line whose number you give.
% The whole file.
option: the arguments
@bulain
bulain / create_tablespace.sql
Created March 31, 2012 06:53
create tablespace and user in oracle
create tablespace demos
logging
datafile '<path>/demo01.dbf'
size 256m
autoextend on
next 64m maxsize 2048m
extent management local;
CREATE USER demo
IDENTIFIED BY demo
@bulain
bulain / instant_client_sqlplus_win.sh
Created March 31, 2012 06:18
oracle instant client sqlplus configuration in windows
oracle server configuration
#listener.ora
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = orcl)
(ORACLE_HOME = C:\oracle\product\11.2.0\dbhome_1)
(SID_NAME = orcl)
)
(SID_DESC =
@bulain
bulain / java_lang.sh
Created March 21, 2012 10:37
change java program language
#change java program language
-J-Duser.language=en -J-Duser.region=CN
or
-J-Duser.language=en -J-Duser.country=CN
@bulain
bulain / yourkit_server.sh
Created March 21, 2012 09:23
YourKit agant registion
#for java
-agentpath:/temp/yjpagent.dll
#for jboss
-agentpath:/temp/yjpagent.dll=delay=10000
@bulain
bulain / jboss_port_binding.sh
Created March 21, 2012 05:03
jboss port binding
run.sh -Djboss.service.binding.set=ports-01
@bulain
bulain / jmx.sh
Created March 14, 2012 03:26
start java application with jmx
#windows
-Dcom.sun.management.jmxremote.port=7101
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false
#linux
-Djava.rmi.server.hostname=192.168.0.190
-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=7101
-Dcom.sun.management.jmxremote.authenticate=false
@bulain
bulain / sqlplus_sql.bat
Created February 27, 2012 06:22
sqlplus to run sql autmatically
# run_sql.bat
sqlplus system/system@xe @test.sql
# test.sql
set echo on;
spool test.log
...your sql
spool off;