Skip to main content

Posts

Showing posts with the label APEX

Behind The Scene of Processing CSV in Oracle Database using PL/SQL

Melanjutkan postingan sebelumnya: Memproses CSV yg di upload menggunakan APEX dimana penjelasan back end process dan behind the scene Saya coba paparkan semudah mungkin. Langkah-langkah mengkonversi konten CSV menjadi baris-baris tabel di Oracle Database bisa dilakukan dengan tahapan berikut init. Pasang dulu 2 fungsi yang sangat dibutuhkan yaitu: Fungsi F_CSV_CONVERT_TO_TABLE Fungsi HEX_TO_DECIMAL Fungsi F_CSV_CONVERT_TO_TABLE (Detail) CREATE OR REPLACE FUNCTION "F_CSV_CONVERT_TO_TABLE" ( p_in_string IN VARCHAR2 , p_in_encapsulator IN VARCHAR2 DEFAULT '"' ) RETURN wwv_flow_global.vc_arr2 AS l_string VARCHAR2(32767) := p_in_string || ','; l_quote_start_index PLS_INTEGER := 0; l_quote_end_index PLS_INTEGER := 0; l_comma_index PLS_INTEGER; l_index PLS_INTEGER := 1; l_tab wwv_flow_global.vc_arr2; i PLS_INTEGER := 1; BEGIN LOOP l_comma_index := REGEXP_INSTR(l_string, '[,...

Memproses CSV yg di upload menggunakan APEX

Setelah mencari-cari cara untuk memenuhi kebutuhan seperti judul blog ini beberapa waktu,... Akhirnya pencarian mendapatkan setitik pencerahan dari 2 link berikut: http://avdeo.com/2008/05/21/uploading-excel-sheet-using-oracle-application-express-apex/ dan http://application-express-blog.e-dba.com/?p=1728 Dari 2 tips tersebut tampaknya jika langsung memproses binary file XLS (MS Excel) belum berhasil tetapi karena kebutuhan nya sudah bisa dicukupi dgn mengubah format file ke CSV (Coma Separated Value), akhir Saya putuskan untuk mencobanya. Mengenai bagaimana menggunakan fitur dasar File Upload dgn APEX bisa dipelajari di sini. Sekarang yg akan dijelaskan adalah post upload process dari APEX tersebut. Semua file yg diupload dgn APEX akan tersimpan di tabel APEX_APPLICATION_FILES yg merupakan alias/synonym ke tabel WWV_FLOW_FILES. Struktur Tabel APEX_APPLICATION_FILES: SQL> desc apex_application_files Name Null? Type ----------------------------...

Configure Oracle APEX 3.2.1 using Embedded PL/SQL Gateway (Unsupported Feature)

Just want to share for those who don't want to setup APEX using Apache HTTP Server with mod_plsql (which will be deprecated according to latest SOD Oracle), instead using pre installed Embedded PL/SQL Gateway on top of XML DB Server feature of Oracle Database, but doesn't have the luxury of newest version of Oracle Database (as latest is 11g). Installation step should be followed normally as documented in installation guide. After APEX component installation complete (no error occured during installation) using SQL/Plus Command: SQL> @apexins SYSAUX SYSAUX TEMP /i/ *) SYSAUX should be replace by another target tablespace created earlier (recommended) For normal installation it should move to point 3.3.5 Configure the Embedded PL/SQL Gateway but after several times installation experience this always causing error 404 Unauthorized . I began to examine the instalation script, and found out that there's missing step in creation/configure of DAD (Database Access Descriptor...