Skip to main content

Mar 10, 15

"C:\app\Administrator\product\11.2.0\dbhome_1\sqlplus\admin

打开glogin.sql,添加下面两行:



其实,我们可以通过从上面的注释中看到这个sql文件主要是做什么用途的。

添加设置后保存,"

Feb 10, 15

"Linux下如何查看系统启动时间和运行时间
1.uptime命令
输出:16:11:40 up 59 days, 4:21, 2 users, load average: 0.00, 0.01, 0.00

2.查看/proc/uptime文件计算系统启动时间
cat /proc/uptime
输出: 5113396.94 575949.85
第一数字即是系统已运行的时间5113396.94 秒,运用系统工具date即可算出系统启动时间

代码: 全选
date -d "$(awk -F. '{print $1}' /proc/uptime) second ago" +"%Y-%m-%d %H:%M:%S"

输出: 2008-11-09 11:50:31

3.查看/proc/uptime文件计算系统运行时间

代码: 全选
cat /proc/uptime| awk -F. '{run_days=$1 / 86400;run_hour=($1 % 86400)/3600;run_minute=($1 % 3600)/60;run_second=$1 % 60;printf("系统已运行:%d天%d时%d分%d秒",run_days,run_hour,run_minute,run_second)}'

输出:系统已运行:59天4时13分9秒"

  • -12-12 15:01:0115:01:0150Operate794char_6TEXT_TEXT_TEXT_TEXT_TEXT_TEXT_TEXT_TE...2012-12-12 15
Jan 28, 15

"Configuring NTP on AIX 5L
Answer
The following information outlines the steps necessary to configure a basic NTP setup between an NTP client and server on AIX 5L.
On server
Verify that you have a suitable NTP server. Enter:
# lssrc -ls xntpd
NOTE: Sys peer should show a valid server or 127.127.1.0.
If the server is "insane", you will need to correct it by adding a server line to /etc/ntp.conf and restarting xntpd. This can be done by following these steps:
# vi /etc/ntp.conf
Add:
server 127.127.1.0
Double check that "broadcast client" is commented out.
# stopsrc -s xntpd
# startsrc -s xntpd
NOTE: If the server runs databases, use the -x flag to prevent the clock from changing in a negative direction. Enter the following:
# startsrc -s xntpd -a "-x"
Repeat Step 1 to verify that the server is synched. This process can take up to 12 minutes.
On client
Verify that you have a server suitable for synchronization. Enter:
# ntpdate -d ip.address.of.server
The offset must be less than 1000 seconds for xntpd to synch. If the offset is greater than 1000 seconds, change the time manually on the client and run the ntpdate -d again.
If you get the message, "no server suitable for synchronization found", verify xntpd is running on the server (see above) and that no firewalls are blocking port 123.
Specify your xntp server in /etc/ntp.conf, enter:
# vi /etc/ntp.conf
(Comment out the "broadcastclient" line and add server ip.address.of.server prefer.)
Leave the driftfile and tracefile at their defaults.
Start the xntpd daemon:
# startsrc -s xntpd
(Use the -x flag if it is appropriate for your environment.)
Uncomment xntpd from /etc/rc.tcpip so it will start on a reboot.
# vi /etc/rc.tcpip
Uncomment the following line:
start /usr/sbin/xntpd "$src_running"
If using the -x flag, add "-x" to the end of the line. You must include the quotes around the -x.
Verify that the client is synched.
# lssrc -ls xntpd
NOTE: Sys peer should display the IP address or name of your xntp server. This process may take up to 12 minutes.
"

Jan 26, 15

"unpack200 - JAR Unpacking tool
Synopsis
Description
Options
Exit Status
See Also
Notes
SYNOPSIS
unpack200 [ options ] input-file JAR-file

Options may be in any order. The last option on the command line supersedes all previously specified options.

input-file
Name of the input file, which can be a pack200 gzip file or a pack200 file. The input could also be JAR file produced by pack200(1) with an effort of 0. In this case the contents of the input file will be copied to the output JAR file with the Pack200 marker.
JAR-file
Name of the output JAR file.
DESCRIPTION
unpack200 is a native implementation that transforms a packed file produced by pack200(1) into a JAR file. Typical usage:

% unpack200 myarchive.pack.gz myarchive.jar

In this example, the myarchive.jar is produced from myarchive.pack.gz using the default unpack200 settings.

OPTIONS
-Hvalue --deflate-hint=value

Sets the deflation to be true, false, or keep on all entries within a JAR file. The default mode is keep. If true or false, overrides the default behavior and sets the deflation mode on all entries within the output JAR file.

-r --remove-pack-file

Removes the input packed file.

-v --verbose

Outputs minimal messages. Multiple specification of this option will output more verbose messages.

-q --quiet

Specifies quiet operation with no messages.

-lfilename --log-file=filename

Specifies a log file to output messages.

-? -h --help

Prints help information about this command.

-V --version

Prints version information about this command.

-Joption

Passes option to the Java launcher called by unpack200."

Jan 26, 15

"Linux下tar命令exclude选项排除指定文件或目录
Linux/Shell 2013-04-14 linux,打包,排除,tar
在linux中可以用tar打包目录以方便传输or备份,我们先来看一个例子
test 文件夹有如下文件
1
2
3
4
5
6
7
8
9
10
[root@lee ~]# ll test
总用量 8
-rw-r--r--. 1 root root    0 4月  14 22:18 a.jpg
-rw-r--r--. 1 root root    0 4月  14 22:25 a.log
-rw-r--r--. 1 root root    0 4月  14 22:18 a.txt
-rw-r--r--. 1 root root    0 4月  14 22:18 b.jpg
-rw-r--r--. 1 root root    0 4月  14 22:25 b.log
-rw-r--r--. 1 root root    0 4月  14 22:18 b.txt
drwxr-xr-x. 2 root root 4096 4月  14 22:18 dir1
drwxr-xr-x. 2 root root 4096 4月  14 22:18 dir2
打包
1
2
3
4
5
6
7
8
9
10
11
12
[root@lee ~]#  tar -cvf test.tgz test/
test/
test/b.jpg
test/b.txt
test/dir2/
test/b.log
test/dir1/
test/dir1/b.txt
test/dir1/a.txt
test/a.jpg
test/a.txt
test/a.log
这样是打包全部文件,我们需要排除jpg文件可以这么弄
1
2
3
4
5
6
7
8
9
10
11
[root@lee ~]#  tar -cvf test.tgz test/ --exclude *.jpg
test/
test/b.txt
test/dir2/
test/b.log
test/dir1/
test/dir1/b.txt
test/dir1/a.txt
test/a.txt
test/a.log
[root@lee ~]#
这样,就会把jpg后缀的文件都排除了,包括子目录!
如果是多个后缀类型需要被排除可以在后面添加,无限制
1
2
3
4
5
6
7
[root@lee ~]#  tar -cvf test.tgz test/ --exclude *.txt --exclude *.jpg
test/
test/dir2/
test/b.log
test/dir1/
test/a.log
[root@lee ~]#
以上是匹配排除某个文件类型后缀,也可以直接指定文件名
1
2
3
4
5
6
7
8
9
10
11
[root@lee ~]#  tar -cvf test.tgz test/ --exclude a.txt
test/
test/b.jpg
test/b.txt
test/dir2/
test/b.log
test/dir1/
test/dir1/b.txt
test/a.jpg
test/a.log
[root@lee ~]#
或者指定目录
1
2
3
4
5
6
7
8
9
10
[root@lee ~]#  tar -cvf test.tgz test/ --exclude dir1
test/
test/b.jpg
test/b.txt
test/dir2/
test/b.log
test/a.jpg
test/a.txt
test/a.log
[root@lee ~]#
也可以排除目录与文件一起混合使用,如:
1
2
3
4
5
6
7
[root@lee ~]#  tar -cvf test.tgz test/ --exclude dir1 --exclude a.log --exclude *.jpg
test/
test/b.txt
test/dir2/
test/b.log
test/a.txt
[root@lee ~]#
"

Jan 24, 15

"Java backporting tools
From Wikipedia, the free encyclopedia
Java backporting tools are programs (usually written in Java) that convert Java classes bytecodes from one version of the Java Platform to an older one (for example Java 5.0 backported to 1.4).

Contents  [hide] 
1 Java backporting tools comparison
1.1 Main information
1.2 Features
2 See also
3 References
4 External links
Java backporting tools comparison[edit]
Main information[edit]
Source Version Target Version Last Release License Website
Retrolambda Java 8 Java 7, 6, 5 2014-07-04, 1.4.0 Apache License 2.0 https://github.com/orfjackal/retrolambda
Retrotranslator Java 5 Java 1.4, 1.3 2009-08-09, 1.2.9 BSD-like http://retrotranslator.sourceforge.net/
Retroweaver Java 5 Java 1.4 2008-10-14, 2.0.7 BSD-like http://retroweaver.sourceforge.net/
Declawer Java 5 Java 1.4 2007-11-14 LGPL or MPL http://www.glazedlists.com/Home/declawer
JBossRetro Java 5 Java 1.4 2008-03-10, 1.1.2 LGPL http://www.jboss.org/community/docs/DOC-10738
Features[edit]
lambda expressions generics enhanced for loops annotations autoboxing and unboxing static imports varargs Enumerations Reflection on generics and annotations Covariant return types Formatted output Formatted input Collections framework enhancements Concurrency utilities emulate the Java 5.0 memory model support for JDK1.6 File methods like canExecute() API support for JDK1.4 API support for JDK1.3 API support for older release
Retrolambda Yes
Retrotranslator No Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes No Yes Yes[1] No No extensive limited none
Retroweaver No Yes Yes Yes Yes Yes Yes Yes No No No No No No No
Declawer No Yes
JBossRetro"

1 - 20 of 3492 Next › Last »
20 items/page

Diigo is about better ways to research, share and collaborate on information. Learn more »

Join Diigo