This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 = |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. USER_*, ALL_*, DBA_*. | |
2. V_$, GV_$, V$, GV$. | |
3. X$. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select * from all_source where text like 'ddl column'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Kind of OOM | |
java.lang.OutOfMemoryError: Java heap space | |
java.lang.OutOfMemoryError: Direct buffer memory | |
java.lang.OutOfMemoryError: unable to create new native thread | |
java.lang.OutOfMemoryError: PermGen space | |
java.lang.OutOfMemoryError: Requested array size exceeds VM limit | |
java.lang.OutOfMemoryError: <reason> <stack trace> (Native method) | |
#JVM options | |
-verbosegc -XX:+HeapDumpOnOutOfMemoryError |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh-keygen -t rsa -C "[email protected]" | |
cat id_rsa.pub >> ~/.ssh/authorized_keys | |
puttygen.exe generate bulain.ppk |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vim /etc/profile.d/proxy.sh | |
export http_proxy=http://proxy:8080 | |
export https_proxy=https://proxy:8080 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vim /etc/apt/apt.conf | |
Acquire::http::proxy "http://proxy:8080"; |