2015年7月22日 星期三

使用 JDAPI 開發 Oracle Form 程式: 開發環境安裝及設定

hychen39@gmail.com 
7/21/2015 

1. 安裝 Oracle Form Developer 10g (10.1.2)。一定要安裝 form developer,因為 frmjdapi.jar 在執行時會去 [ORACLE _HOME]\bin 下的目錄去呼叫 .dll 程式。ORACLE_HOME 為一環境變數,指向form developer 安裝的目錄。

2. 安裝 Netbeans。 WinXP + Form 10gR2 的環境下,安裝 Netbeans 7.2 + JDK 7u79 比較穩。

3. 在 Netbean 中新增一 Java Application 專案 。

4. 將 frmjdapi.jar 加入專案中。 frmjdapi.jar 的位置在 [ORACLE_HOME]\forms\java。


 若沒安裝 form developer,只有將 frmjdapi.jar 加入到專案中,則執行 jar 檔時會出現錯誤:




JDAPI java doc 載 (10gR2)

Oracle Forms 10g R2 Technical Information

有關 JDAPI 的說明:
Use Java to Access your Forms Files (by JDAPI)
The Oracle Forms Java Design-Time Application Programming Interface (JDAPI) lets Java programmers create, load, edit, save, and compile Forms module files (.fmb, .mmb, .olb, and .pll files) from self-written Java programs. Forms module files are normally created and edited using Forms Developer. JDAPI gives you access to almost all of the Forms Developer functionality. Because it is a programmatic interface and not an interactive development environment, JDAPI is an ideal tool for writing scripts that perform repetitive tasks on large numbers of Forms module files. For example, using JDAPI, you can make global changes to many Forms modules -- build utilities such as batch compilers or difference analyzers, create custom documentation, or perform impact analysis.


2015年7月1日 星期三

在執行 Open_Form 指令打算開啟另一個 Form 時,無法開啟並出現 FRM-40010 Cannot read from XXX 訊息

Q: 在執行 Open_Form 指令打算開啟另一個 Form 時,無法開啟並出現 FRM-40010 Cannot read from XXX 訊息, 要如何處理呢? 


 適用版本: 


  • Oracle Forms 10g

2015年6月27日 星期六

Glassfish AP server 連結 Oracle DB 11g, 並在程式中取得 JNDI JDBC Resource

Glassfish AP server 連結 Oracle DB 11g, 並在程式中取得 JNDI JDBC Resource 

hychen39@gmail.com 2015/06/23 

適用版本: 

  • Glassfish 4.1 

 Reference: 

  •  GlassFish Server Open Source Edition, Administration Guide, Release 4.0 (https://glassfish.java.net/docs/4.0/administration-guide.pdf) 
  •  http://docs.oracle.com/cd/E18930_01/html/821-2432/gkyan.html)

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