Oracle Application Express shows deleted data from oracle table - oracle

I have deleted a row from Oracle
delete from student where gr_number = 51777;
In Oracle Application Express form that contain interactive report, fetching data from student it shows deleted row. I also check by using SQL commands from Oracle Application Express and it shows deleted row again
select * from student where gr_number = 51777;
Please tell why Oracle Application Express displays deleted record from Oracle table.
I am using Oracle Application Express 18.2

Because you didn't COMMIT after issuing DELETE.

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.

oracle sql developer empty mrp_orders_v

I am using Oracle database
Oracle Applications : 11.5.10.2
There are table apps.mrp_orders_v that I can't query in "oracle Sql developer"
"select * from apps.mrp_orders_v" but no data is returned
The funny thing is when I use the same credentials thru ODBC and microsoft Access or Power query in excel then I can see the data
Any idea?
There are lots of other tables where I can see data from the oracle database thru oracle sql developer
Kind regards
John
select * from apps.mrp_orders_v
Rows from the table

Why can't I select a pre-created schema in Oracle 18c XE when creating a new workspace in APEX?

i have just started to work with oracle and apex, so I don't know my way around yet.
I have installed oracle 18c xe and connected it to the sql developer. Then I have installed apex 19.1 and successfully connected to it via localhost and the admin user.
After that i after that i created a new schema in the database and grant them diferent privileges. Now I wanted to create a new workspace and use this pre-created schema but it is not displayed.
I've tried it a few times, but it doesn't work.
What could be the reason?
So far, i've tried to determine the current Application Express engine schema with SELECT DISTINCT TABLE_OWNER FROM all_synonyms
WHERE SYNONYM_NAME = 'WWV_FLOW' and OWNER = 'PUBLIC' but here i don't get a value. I saw this on the oracle manual https://docs.oracle.com/database/apex-18.1/AEADM/managing-schemas.htm#AEADM232
The following steps on this page do not work either
If you've created the schema and created the workspace (it's not clear if you've done that second part), you probably need to add the schema to the workspace. You can do that with APEX_INSTANCE_ADMIN.ADD_SCHEMA. Or you can log into the INTERNAL workspace in the Apex designer and add it there.

Oracle SQL Data Migration

Currently I'm learning how to use Oracle's SQL
And I ran into a problem which I cannot find the answer to,
I am using the SQL Developer provided by Oracle 12c and am currently using the Migration Wizard that comes with it
While trying to migrate data from MS SQL 2008 to Oracle 12c, the migration wizard tells me that the migration is complete. When I look at the repository, the tables are all moved and converted, but none of the data have been populated into the tables. I have been trying to look for migration logs, but I have not been able to find the location for the logs and I was wondering if anyone has ran into this problem before and has a solution for it.
Just create new connection oracle connection, call it with name of migrated DB, user = , password = .
E.g. you migrate test_1 DB. After migration, create connection with name test_1, user = test_1, password = test_1.

Oracle ODP.NET Entity Framework returning empty results

I have been trying to retrieve data from an Oracle 12g database using the following:
using (MyDbContext db = new MyDbContext())
{
var t = db.MyTable.ToList();
}
The underlying SQL is:
SELECT
"Extent1"."TOKEN" AS "TOKEN",
"Extent1"."FINGERPRINT" AS "FINGERPRINT",
"Extent1"."EXPIRES" AS "EXPIRES",
"Extent1"."ISSUED" AS "ISSUED"
FROM "MYSCHEMA"."MYTABLE" "Extent1
I run the SQL above within Oracle SQL Developer and it works just fine.
There is only 1 record in the MYSCHEMA.MYTABLE table but when calling the .ToList() I get zero results.
Am I missing some setting with Oracle's Entity Framework?
Using from nuget:
Oracle 11g (11.2.0.1.0 - 64bit)
Official Oracle ODP.NET, Managed Entity Framework Driver (12.1.021)
Microsoft Entity Framework (6.1.3)
Apparently when I inserted the new record into the MYSCHEMA.MYTABLE table I forgot to COMMIT it to the database.
Therefore, the Oracle SQL Developer tool was able to show me that the record was en route to becoming a record but until I committed it no other external process would be able to retrieve the record.
Lesson learned. Maybe this answer will be helpful to others.

Resources