2013年5月8日 星期三

如何透過群組原則設定校時伺服器

Instructions

    • 1
      Click the Windows "Start" button and select "Programs." Click "Administrative Tools" and then click "Group Policy Editor." This opens your GPO object console editor.
    • 2
      Click "Computer Configuration" on the left panel to expand a list of options. Click "Administrative Templates," "System," then "Windows Time Service."
    • 3
      Click the "Time Providers" key in the central pane. This is where you set the NTP group policy for your network users.
    • 4
      Double-click "Windows NTP Server." Enter your central server name you want to use as the NTP server. This is typically the domain controller for the network. Click "OK" to save the changes.
    • 5
      Close the GPO editor. It may take several minutes for the group policy to propagate on the network and your users' computers to synchronize with the central server clock.


Reference: How to Set a NTP Server Group Policy | eHow.com http://www.ehow.com/how_6764132_set-ntp-server-group-policy.html#ixzz2SgjDyIkV

oracle trace file [.trm] [.trc]

oracle version:11g

TRM Trace Files Getting Generated in 11g Database (Doc ID 750982.1)
Excessive Number Of Arc Trace Files Generated In 11g (Doc ID 754289.1)


Trace file in 11g belongs to ADR (Automatic Diagnostic Repository) you can manage it by using its Command Interpreter ADRCI:

http://download.oracle.com/docs/cd/E11882_01/server.112/e16536/adrci.htm#SUTIL700

It's possible to set the Purging Policy with the SET CONTROL statement:

http://download.oracle.com/docs/cd/E11882_01/server.112/e16536/adrci.htm#BGBEGAEB

You can purge Trace Files by using the PURGE statement:

http://download.oracle.com/docs/cd/E11882_01/server.112/e16536/adrci.htm#SUTIL1509

In addition, to remove Traces Files in the "CDMP_" directories, you may use the Type UTSCDMP as follow. For instance, to remove Trace files older than 1 hour in "CDMP_" directories:
adrci> purge -age 60 -type UTSCDMP


reference: https://forums.oracle.com/forums/thread.jspa?threadID=943615

2012年10月29日 星期一

2012年10月24日 星期三

Windows MaxUserPort and TcpTimedWaitDelay adjust parameter

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters

dword
MaxUserPort = 65000
TcpTimedWaitDelay =30s

How to delete windows services

sc delete ServiceName

if ServiceName have space than

sc delete “Service Name”



2012年10月9日 星期二

JDK安裝及環境設定

JAVA下載
http://www.oracle.com/technetwork/java/javase/downloads/index.html
個人不喜歡RPM因此都是選tarball安裝

Unix:
1.將tarball放到想放的目錄如/usr/local/
2.解開tar zxvf jdk-{版號}-linux-i586.tar.gz
   就完成了.....
3. 設定環境變數BASH (修改/etc/profile)
export JAVA_HOME=/usr/local/jdk1.{版號}
export PATH=${PATH}:${JAVA_HOME}/bin
Windows:
1..........download
2...............install
3......................set path

that's all

2012年3月3日 星期六

Asus RT-N16 韌體救援

ASUS RT-N16

進入Recovery Mode方式: 壓住Restore鈕插入電源,進入recovery mode後電源燈號會以一秒頻率閃爍
這時候可以使用ping 192.168.1.1 確認
再使用光碟的修復程式重新上傳韌體