2015年5月17日 星期日

Oracle Forms 11g 安裝心得

Oracle Forms 11g 安裝心得

2015/05/17

目的 安裝Oracle Forms 11g Development Environment

安裝在 VMware 11
CPU *2
RAM 2G (Oracle Forms and Reports 要求至少 2G Memory)

OS: Win 7 Enterprise


WebLogic 11g Release (10.3.6)
Oracle WebLogic Server 11gR1 (1.3.6) + Coherence – Package Installer (http://www.oracle.com/technetwork/middleware/weblogic/downloads/wls-main-097127.html)


Weblogic 主控台:
http://host:7001/

Oracle Forms and Reports 11gR2 (11.1.2.2.0)
Windows x86

http://host:8888/

建議先閱讀 Oracle Fusion Middleware Concepts Guide 11g Release 1 (11.1.1) 瞭解 Oracle Fusion Middleware 的重要觀念

安裝程序:
1.      安裝 WebLogic Server
2.      安裝 Oracle Forms and Reports. 安裝時選擇 Configure for Development 做為開發環境
3. Java 7 JDK

安裝後設定:
l  設定 ORACLE_HOME=C:\Oracle\Middleware\Oracle_FRHome1
l  設定 ORACLE_INSTANCE= C:\Oracle\Middleware\asinst_1

安裝完成後
Start > Oracle Class Instance – asinst_1 > Start Weblogic Admin Server以啟動Weblogic Server.

若出現錯誤訊息   ,到
C:\Oracle\Middleware\user_projects\domains\FormDomain\Server\AdminServer\temp下刪除  adminServer.lok


參考資料:

2015年5月3日 星期日

Chrome 瀏覽器 支援 java plugin




在 Chrome 版本 42 及更新版本啟用 NPAPI

在 Chrome 版本 42 中,需要額外的組態步驟以繼續使用 NPAPI 外掛程式,才有辦法執行 java 外掛程式

在您的 URL 列輸入:

  • chrome://flags/#enable-npapi 
  • 按一下啟用 NPAPI 組態選項的啟用連結
  • 按一下組態頁面底端出現的立即重新啟動按鈕。
Source:  https://www.java.com/zh_TW/download/faq/chrome.xml



Oracle DB Management Notes

Notations:
(M): Menu
(A): Area

Check and kill the blocking sessions:
(M)Performance > (A)Additional Monitoring Links > Blocking Sessions


Grant execute and create privilege to procedures:
As dba, issue:
> grant create any procedure to [user];
> grant execute any procedure to  [user];


SQL 及 PL/SQL 命名慣例:
Naming and Coding Standards for SQL and PL/SQL


PL/SQL developer 的 plsqldoc plug-in 的 document tag.
Source: PL/SQL Developer plsqldoc Plug-In 1.2 User’s Guide, AllRoundAutomations Inc.


2015年4月22日 星期三

Bash CVE-2014-7169 弱點修復

Bash CVE-2014-7169  弱點修復

hychen39@gmail.com

緣由

架設主機被攻擊, 被當成跳板去功擊別人, IP 因此而被封鎖.
主機弱點在於 Bash 的漏洞(Bash CVE-2014-7169)。

測試

要測試此漏洞是否存在, 在 console 下輸入

env x='() { :;}; echo XD' bash -c "echo This is a test code"

若出現:

bash: warning: x: ignoring function definition attempt bash: error importing function definition for `x' This is a test code 表示系統漏洞仍存在[1]

修復

將 Bash 更新到 4.3.11(1) 此漏洞問題便解決了。

sudo apt-get update 
sudo apt-get upgrade

防火牆 [2]

別忘了設定你的防火牆. 使用以下指令看看防火牆管制的 port

ufw status 

另外, 使用以下指令現在開放的 listen port 有那些:

ufw show listening

Rootkit 的偵測及移除

參考: Ubuntu 安裝與使用 Rootkit 掃描程式 在 ubuntu 中安裝 chkrookit rkhunter 這兩支掃瞄程式.

參考資料

[1] 如何重新編譯 GNU Bash 解決 CVE-2014-7169 安全漏洞
[2] Ubuntu 用 ufw 指令快速啟用和設定防火牆
[3] Ubuntu 安裝與使用 Rootkit 掃描程式.
[4] How to install and use Rkhunter on a Linux server for rootkit, local exploits, malware and backdoors scanning

2015年4月17日 星期五

和 Pluggable Java Component 主題相關的資源


和 Pluggable Java Component 主題相關的資源
hychen39@gmail.com

如何將資料庫中的 table scheme 匯入到 SQL Developer Data Modeler 中

如何將資料庫中的 table scheme 匯入到 SQL Developer Data Modeler 中

hychen39@gmail.com

適用版本:

  • Oracle SQL Developer Data Modeler v4.x


Steps:
1. File > Import > Data Dictionary (Ctl + Shift + B)
2. 系統顯示 Data Dictionary Import Wizard. 接著在 Wizard 中執行以下動作
3. 選擇資料庫連線 (Connection to data base)
4. Select scheme
5. 選擇要匯入的 Table. DMRS_ 開頭的 table 是系統 table, 不要選.
6. 按下 Finish, 結束 wizard 並產生 table.