ITeye博客

Kevin's Blog

HuanYue · 共 305 篇文章

Backup DDL on Oracle DB

set trimspool on lines 500 pages 0 long 1000000000 longchunk 1000000000 EXEC dbms_metadata.set_transform_param(dbms_metadata.session_transform,'SEGMENT_ATTRIBUTES' ,FALSE, 'TABLE') ; EXEC dbms_metadata.set_transform_param(dbms_metadata.session_transform,'SQLTERMINATOR' ,TRUE) ; SPOOL DDL_pre-3.15.S…

2016-03-01 10:31 · DataBase · 评论(0)

Identifying Relationship vs. Non-identifying Relationship

Identifying vs non-identifying has nothing to do with identity. Simply ask yourself can the child record exist without the parent? It has to do with whether the primary key of the child (can include more than one coumn) includes the foreign key of the parent. In the non-identifying relationship the…

2015-10-20 23:49 · DataBase · 评论(0)

DOS Command to remove shortcut arrow and add open command window here

@echo off echo. echo Removing shortcut arrow and adding open command window here REG ADD "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons" /v 29 /d "%windir%\System32\shell32.dll,-50" /f >nul REG DELETE "HKCR\Directory\shell\cmd" /v Extended /f >nul REG DELETE "HKCR\Directory\Ba…

2015-07-30 14:56 · Environment · 评论(0)

How to Enable “Open Command Window Here” Option in Context Menu in Windows Vista

In Windows Vista and later, if you press <SHIFT> key and right- click on any folder, you get some extra options like "Open Command Window Here", etc. But if you don't press the SHIFT key, you don't get those extra options. In this tutorial, we'll tell you how to permanently enable that hidden " Ope…

2015-07-29 19:58 · Environment · 评论(0)

Command Line JMX Client

Command Line Parser: GNUCommandLine import java.util.ArrayList; import java.util.List; import java.util.StringTokenizer; import org.apache.commons.cli.CommandLine; import org.apache.commons.cli.CommandLineParser; import org.apache.commons.cli.GnuParser; import org.apache.commons.cli.HelpFormatter; …

2014-12-29 13:12 · Java · 评论(0)

Shell script for stress testing

ParseInstance() { Files=`find ${JMS_UTIL_CONFIG_PATH} -name "*.jms.properties" | grep -v common | sort` FileCount=`echo "${Files}"|wc -w|tr -d ' '` [ $FileCount -le 0 ] && { echo "Not found config files in ${JMS_UTIL_CONFIG_PATH}....."; return 1; } INDEX=1 for file in ${Files}; do FileName=`basenam…

2014-10-23 00:05 · Environment · 评论(0)

Shell操作字符串

在做shell批处理程序时候,经常会涉及到字符串相关操作。有很多命令语句,如:awk,sed都可以做字符串各种操作。 其实shell内置一系列操作符号,可以达到类似效果,大家知道,使用内部操作符会省略启动外部程序等时间,因此速度会非常的快。 一、判断读取字符串值 表达式 含义 ${var} 变量var的值, 与$var相同 ${var-DEFAULT} 如果var没有被声明, 那么就以$DEFAULT作为其值 * ${var:-DEFAULT} 如果var没有被声明, 或者其值为空, 那么就以$DEFAULT作为其值 * ${var=DEFAULT} 如果var没有被声明, 那么就以$DEF…

2014-08-19 09:42 · Environment · 评论(0)

Re-post: DBMS_XPLAN : Display Oracle Execution Plans

DBMS_XPLAN : Display Oracle Execution Plans The DBMS_XPLAN package is used to format the output of an explain plan. It was introduced in Oracle 9i as a replacement for the "utlxpls.sql" script or custom queries of the plan table. Subsequent database versions have increased the functionality of the …

2014-07-23 16:14 · DataBase · 评论(0)

Mocking JMS infrastructure with MockRunner to favour testing

From Marco Tedone ( http://tedone.typepad.com/blog/2011/07/mocking-spring-jms-with-mockrunner.html ) This article shows *one* way to mock the JMS infrastructure in a Spring JMS application. This allows us to test our JMS infrastructure without actually having to depend on a physical connection bein…

2014-05-19 16:00 · JMS · 评论(0)

TIBCO ESB实战系列:TIBCO EMS的访问控制管理

原文:http://www.searchsoa.com.cn/showcontent_52265.htm 【TechTarget中国原创】TIBCO EMS是一款基于JMS标准的消息中间件产品,具有良好的扩展性、易用性和高效性,很多客户将其作为企业内部的消息总线,在企业应用集成平台架构中担任重要的角色,因此,它的安全性也就显的非常重要,往往会影响到整个企业应用集成平台的运行。在默认情况下,TIBCO EMS对连接用户没有任何限制,即使没有用户名和密码,用户一样可以连接到消息服务器,并对服务器中的主题及队列进行操作。本文中,我们将一步步打造安全的TIBCO EMS消息服务器。 1. 启用用户认…

2014-05-19 13:45 · JMS · 评论(0)

Linux设置shell提示符的方法

转自: http://www.linuxsong.org/2010/09/setup-shell-prompt/ PS1的值由一系列静态文本或\和转义字符序列组成,如: PS1="\u@\H \w$ " 比较有用的转义序列有: \a ASCII 响铃字符(也可以键入 \007) \d "Wed Sep 06" 格式的日期 \e ASCII转义字符 \h 主机名 \H 完整的主机名 \j 在此 shell 中通过按 ^Z 挂起的进程数 \l 此 shell 的终端设备名(如 "ttyp1") \n 换行符 \r 回车符 \s shell 的名称(如 "bash") \t 24小时制时间 \T …

2014-05-16 16:52 · Environment · 评论(0)

Something about JVM class loading and initialization

Class loading stages: Loading Linking Verification Preparation Resolution Initialization Class Loader: Class loading mechanism: parent delegation model The delegation model requires that any request for a class loader to load a given class is first delegated to its parent class loader before the re…

2014-05-09 10:04 · Java · 评论(0)

When a class is loaded and initialized in JVM - Java

from: http://javarevisited.blogspot.hk/2012/07/when-class-loading-initialization-java-example.html Classloading and initialization in Java Understanding of when a class is loaded and initialized in JVM is one of the fundamental concept of Java programming language. Thanks to Java language specifica…

2014-05-08 19:09 · Java · 评论(0)

【深入Java虚拟机】之四:类加载机制

转载请注明出处: http://blog.csdn.net/ns_code/article/details/17881581 类加载过程 类从被加载到虚拟机内存中开始,到卸载出内存为止,它的整个生命周期包括:加载、验证、准备、解析、初始化、使用和卸载七个阶段。它们开始的顺序如下图所示: 其中类加载的过程包括了加载、验证、准备、解析、初始化五个阶段。在这五个阶段中,加载、验证、准备和初始化这四个阶段发生的顺序是确定的,而解析阶段则不一定,它在某些情况下可以在初始化阶段之后开始,这是为了支持Java语言的运行时绑定(也成为动态绑定或晚期绑定)。另外注意这里的几个阶段是按顺序 开始 ,而不是按顺序…

2014-05-08 15:12 · Java · 评论(0)

Java Reflection - Dynamic Class Loading and Reloading

From: http://tutorials.jenkov.com/java-reflection/dynamic-class-loading-reloading.html It is possible to load and reload classes at runtime in Java, though it is not as straightforward as one might have hoped. This text will explain when and how you can load and reload classes in Java. You can argu…

2014-05-08 12:04 · Java · 评论(0)