urltemp1
password =
new InnerEncryption().encryptString(password,
KeyHolder.getKey(""),
"",
"");//解密
if (isOracle) {
sql =
"select * from nls_database_parameters "
+ "where parameter='NLS_CHARACTERSET'";
} else if (isMysql) {
sql = "show variables like 'character_set_database'";
}
select b.name from v$datafile a,v$tablespace b
where a.ts#=b.ts#
private String getIPAddress() {//查本机所有IP
String address = "";
try {
InetAddress[] ips =
InetAddress.getAllByName(InetAddress.getLocalHost()
.getHostName());
for (InetAddress ip : ips) {
address += ip.getHostAddress() + ",";
}
} catch (UnknownHostException e) {
}
if (address.equals("")) {
return address;
}
return address.substring(0, address.length() - 1);
}
new ServerSocket(Integer.parseInt(ports[k].trim()));
/**
* 查询出系统的物理内存大小
*
* @return 最终结果
*/
public long getMemorySize() {
OperatingSystemMXBean os =
(OperatingSystemMXBean)ManagementFactory.getOperatingSystemMXBean();
return os.getTotalPhysicalMemorySize(); // KB;
}
打印操作系统字符集
String value = System.getProperty("sun.io.unicode.encoding");
[解决办法]
这是C么?