May 15, 2008

Sharepoint - 備分與還原

在 Sharepoint 的 8001 建立一個與 8000 一模一樣的網站.
使用 WSS 專用的 STSATM 指令,進行網站 8000 的備份,再還原至新增網站 8001!STSADM 網站指令放在 C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN\ 之下.
備份網站備份之指令為 stsadm.exe -o backup -url http://server:8000 -filename backup.dat
還原網站備份之指令為 stsadm.exe -o restore –url http://server:8001 -filename backup.dat

May 13, 2008

Sharepoint - 管理員已經封鎖下列檔案

於 Sharepoint 上傳文件時, 遭遇 "管理員已經封鎖下列檔案" 錯誤訊息.
原因為:
Sharepoint server 在安全性上的考量,會封鎖如 exe , bat 等等的資料類型上傳 .
若ㄧ定需要允許上傳,則透過 Sharepoint 管理中心-> 作業 -> 安全性設定 -> 被拒的檔案類型, 即可進行變更

May 12, 2008

linux sar

SAR 範例:
取得本月20號 11:00:00~19:00:00 的 CPU/Memory/IO 方式.
CPU -> sar -u -s 11:00:00 -e 19:00:00 -f /var/log/sa/sa20
Memory -> sar -r -s 11:00:00 -e 19:00:00 -f /var/log/sa/sa20
IO -> sar -d -s 11:00:00 -e 12:00:00 -f /var/log/sa/sa20

取得本月18號 整天 I/O 資料
IO -> sar -u -f /var/log/sa/sa18

May 7, 2008

Good and usful Metalink Notes

Applications FAQ

Cloning

Oracle Applications with Oracle Application Server

  • Note Id:186981.1 Oracle Application Server with Oracle E-Business Suite Release 11i FAQ
  • Note Id:233436.1 Installing Oracle Application Server 10g with Oracle E-Business Suite Release 11i
  • Note Id:295606.1 Oracle Application Server 10g with Oracle E-Business Suite Release 11i Troubleshooting

Autoconfig

Oracle Applications and Database

  • Note Id:362203.1 Oracle Applications Release 11i with Oracle 10g Release 2 (10.2.0)

Oracle Applications And RAC

DMZ with Oracle Applications

SSL and Oracle Applications
  • Note Id:123718.1 11i: A Guide to Understanding and Implementing SSL for Oracle Applications
  • Note Id:340178.1 Enabling SSL with Oracle Application Server 10g and the E-Business Suite
Shared APPL_TOP and Application Tier Filesystem

Patching

Concurrent Managers

System Administration

Troubleshooting

Portal with Oracle Applications

Single Sign-On with Oracle Applications

Online hot backup

Using OS Level copy command to backup oracle database
1. Make sure database in archive log mode.
SQL> archive log list
Database log mode Archive Mode
Automatic archival Enabled
Archive destination /ora/ora920/archlog/PROD
Oldest online log sequence 41288
Next log sequence to archive 41294
Current log sequence 41294
SQL>

If not archive log mode , modify init parameter file , add following parameter
log_archive_start = true
log_archive_dest_1 = "location=/ora/ora920/archlog/PROD"
log_archive_format = PROD_%t_%s.arc

2. Bring tablespace one by one to backup mode(Exclude temp tablespace).
alter tablespace xxx begin backup;

or
bring whole database to backup mode.
alter database begin backup;

3. Copy all datafile to backup disk.

4. Bring tablespace one by one to end-backup(Exclude temp tablespace).
alter tablespace xxx end backup;

or
bring whole database to end-backup mode.
alter database end backup;

5. Generating after end backup redo log.
alter system archive log current;
or
alter system switch logfile;

6. Copy all archived logs that generated during backup period to backup disk.

May 6, 2008

將 AD 帳號全部 disabled

Const ADS_PROPERTY_UPDATE = 2
' multiple users
Set objOU = GetObject("ldap://cn=Users,dc=king,dc=com,dc=tw/")
' Filter on user objects.'objOU.Filter = Array("user")
' Enumerate user objects.
For Each objUser In objOU
'msgbox("name:"+objUser.name)
On Error Resume Next
objUser.Put "AccountDisabled", True
' Save changes.
objUser.SetInfo
Next
msgbox("Finished!")


若尋找單一 帳號, 可用
Set oUser = GetObject("WinNT://simplo-tw/brian_chang,user")
msgbox(oUser.AccountDisabled)
'True 表示帳號停用狀態中