Oracle APEX load more than 45 columns - oracle

I am using Oracle APEX 5.1.3 and tried to create a Data Load Wizard where a user submits a CSV with 67 columns but ran into the problem where there is a 45 column limit for the Data Load Wizard. Is there a way around this?

Yes, APEX 5.1.3 has this limit. There are however work arounds using external table or loading the table and writing your own post-process.
Import data in excel to database table
Upload data from csv to table in APEX

Related

Updating Column Value of Application Created from Spreadsheet in Oracle Apex Using SQL Query

I created an application from a spreadsheet in Oracle APEX that contains a number of columns with information from different Oracle databases. There is a column in the application spreadsheet called "Database Size" that I would like to update in real-time in Oracle Apex. This column basically shows the database sizes of each and every Oracle database we look after. The below SQL query was used and executed on each and every database to get the database sizes of each database and they were manually populated in the spreadsheet.
select
( select sum(bytes)/1024/1024/1024 data_size from dba_data_files ) +
( select nvl(sum(bytes),0)/1024/1024/1024 temp_size from dba_temp_files ) +
( select sum(bytes)/1024/1024/1024 redo_size from sys.v_$log ) +
( select sum(BLOCK_SIZE*FILE_SIZE_BLKS)/1024/1024/1024 controlfile_size from v$controlfile) "Size in GB"
from
dual;
I would like to from a click of a button in the report Oracle Apex section to able to run this query for each database and update the "Database Size" column values instantly without having to manually go to each Oracle database server to run this query and update and the "Database Size" column values manually for each database on Oracle Apex.
Is this possible, if yes, how would I go about implementing this? I suppose the first step would be to create DB links from the Oracle APEX server that connects to all the different Oracle database servers?
N.B: Oracle Apex and ORDS is installed on one Server only
There are a couple of ways to do this:
database links. Downside is that you'll manually have to maintain the list of databases that you need to poll
rest endpoint (GET) on each database (but you need ORDS installed on all databases and also need to maintain the list of databases to poll. From 19c onwards those endpoints come with ORDS (https://docs.oracle.com/en/database/oracle/oracle-database/19/dbrst/rest-endpoints.html)
rest endpoint that accepts a POST on the server that has apex installed and a job on each database that posts the data at regular intervals to the central server. (not real time, only at intervals). A bit of work to setup but you could package it and run the script on every new db.

Error handling while loading the data in Oracle Apex 22.1.4

I am using Oracle Apex 22.1.4 version. My requirement is to capture the error records and store them somewhere else while loading the data from xlsx/csv file.
If it's stored in some error log tables/ somewhere else internally, I can create a report on top of that table and display them to the users.
I saw one of the blogs from Oracle and I came to know that it was a very simple and easy method of capturing error records and storing them in Error tables in Oracle Apex 19.1
https://blogs.oracle.com/apex/post/quick-and-easy-data-loading-with-apex-191
Is there any similar way of capturing error data and storing them in Oracle Apex 22.1?
If yes, please give me suggestions.
Thanks in advance!

Oracle Apex Data automatic load from excel

everyone, I have created a simple report app showing some data using Oracle Apex and I want to make it get Data from a server(FTP) through an Excel file and fill its tables automatically whenever I change the excel file, is it possible and if it is, how it can be done, thanks in advance.
I am not sure whether the way you said is possible or not.Just a suggestion,
Create the Report in Oracle Apex based on the Database table
Create a DB Procedure to insert the data into DB table from the Excel file
Create and Schedule a DB JOB which calls the DB procedure, to check the FTP frequently and load file into the table. So Users can see the updated data.

Creating Oracle DBLink to insert data into a SQLite Database

I've been task with figuring out a way to get data from Oracle and store it in a SQLite database. The back story is we currently use SQLite for our local storage on a mobile application and we currently populate that data via a file download, because the data is a large amount it could take up to 5 minutes to populate the database. An easy solution for us would be to build the table on the server and download it via http. The data is currently stored in a Oracle database on the server. My question is is it possible to create a DBLink from Oracle to SQLite to insert the data into the SQLite database on the server? If this is not possible are there any other solutions that would achieve this?
Thanks

Export Oracle table using Stored Procedure to an excel file

I am using SQL Developer 1.5.5 and I need to export some tables from an Oracle 11g database to an xls file. I have tried using spool, but I cannot put in a stored procedure as error comes up. Is there some other alternative to do this?
I am trying to create reports from data base by executing the procedure.
Thanks.
Anton Scheffer (from AMIS.NL) wrote an APEX plugin to load Oracle data into a Excel file. It works very well and it can be used alone (without APEX) with a additional work.
Check out: http://technology.amis.nl/2011/02/19/create-an-excel-file-with-plsql/
You can also use SQLX (see http://technology.amis.nl/2006/01/20/generate-anative-excel-file-with-sqlx/) but it could be very complex depending on what you ha

Resources