AskTom - Hot Questions

Subscribe to AskTom - Hot Questions feed AskTom - Hot Questions
These are the questions on Ask Tom that have the most comments
Updated: 1 hour 28 min ago

LINESIZE and displaying data on a screen : the biggest part of execution time?

Wed, 02/12/2020 - 00:00
Hello Masters, I have one big question about the SQL*Plus parameter LINESIZE and the display of datas. I read in documentation Oracle 19 SQL*Plus :

Function for alphabetical sequence like a spreadsheet

Wed, 02/12/2020 - 00:00
I need function which convert numeric to alphabet like when I input 1 then it will return 'A', when i input 2 then it will return 'B' please help me on this.

Scheduling Queries

Mon, 02/10/2020 - 00:00
Hi Connor, Chris, Could you please have a look at below scenario related to dbms_scheduler program and job setu: <code> -------------- Start Use Case Setup -------------- -----------------------------------------------------------------------...


Mon, 02/03/2020 - 00:00
Below is my scenario. We are getting error randomly in production. when we restart the process error disappears. we are not able to reproduce even in lower environment. Can you please help in letting us know the potential issue with insert statement ...

Unpivoting billion rows

Thu, 01/23/2020 - 00:00
Hi ask Tom team, Hope you people are doing great in 2020. I am working in migration team ,our goal is to take csv file from client and ultimately transform data as per our production table structure . Requirement :- Recenty we have rec...

User Requiring Access to SQL Tuning Advisor Getting ORA-13616

Thu, 01/23/2020 - 00:00
Hi, we have created a User to manage the SQL Tuning Advisor. Due to internal policy /Guideline we created a Role and assigned the Role the following Oracle Privs : <code>Role Privs ------------------------------ PERF_OWN CREATE...

Calling executable from Scheduler

Wed, 01/22/2020 - 00:00
<b></b><code></code><u></u>Hi Tom I have been trying to call an executable shell script placed on AIX 7.2 from Oracle 12.2 via following code: <code>BEGIN DBMS_SCHEDULER.create_job ( job_name => 'GEN_DAILY_CNT_FILE', job_typ...

99% wait time on SQL*Net more data to client

Tue, 01/21/2020 - 00:00
Hello Team, We are transferring 4 million records over the network and SQL*Net more data to client is 99%. We tried multiple drivers like ODBC, OLEDB , Oracle Drivers, QlikSense application Oracle drivers but the % didn't get reduced. We have ...

how to load XML file into oracle table and using XML query to get result

Sun, 01/19/2020 - 00:00
Hi Tom, I have XML file from Web Report. there are some error records in the file, it is difficult to find the error in XML file, I want to load this file into oracle table. then use XML query. below is sample file and expected result. This is fir...

Benchmark summary processing technique

Tue, 01/14/2020 - 00:00
I have a package that is responsible for processing data from Detail tables. <b>All query logic and other parameters that is used to process data is stored inside a table</b>, which acts as a configuration table (sample example of configuration table...

changing where clause using case statement

Tue, 01/14/2020 - 00:00
Hello Tom Is it possible to change the where condition (using case statement) based on certain variable? For example <code> var T varchar2(1) exec :T := 'E'; var E number; exec :E := 7788; var N varchar2(20) exec :N := 'MILLER'; sele...

Oracle Flashback Data Archive

Sun, 01/12/2020 - 00:00
Hi All, We are using Oracle Flashback Data Archive in our database to track Audit in most of the critical tables. We initially planned to store data for 6months but there are few errors / issues we face making it unstable. So we have it as retentio...

Is “With clause” not allowed within a cursor?

Thu, 01/09/2020 - 00:00
Hi Tom, We need to drop old partitions in regular basis for some tables partitioned by interval. To keep 60 days data for the TEST table partitioned by day interval, for instance, I could get partitions name older than two months by using the f...

Time needed to move 1 datafile from 1 diskgroup to another in ASM.

Tue, 01/07/2020 - 00:00
Hi,we have 1 TB datafile in a diskgroup with normal redundancy. We are planning to move that datafile to another diskgroup with external redundancy. The reason for that is because we have a huge diskspace consumption and if we get rid of redundancy, ...

Tablespace TDE & RMAN Backups

Tue, 01/07/2020 - 00:00
Through attrition our team has lost the password to the Oracle Keystore (Wallet) on our current Oracle 12c database(A). We would like to backup this database and restore it to a new instance(B) which is also 12c. The database(A) contains TDE Tablespa...

Strange behaviour of Automatic Memory Resize

Wed, 12/18/2019 - 00:00
Hi, we are facing a strange issue behaviour with our database, we are encountering ORA-04031 error. ---------------------------------------------------------------------------------------------------- ORA-04031: 56 Byte des Shared Memorys konn...

xTTS Oracle Data migration from big endian to little endian

Wed, 12/18/2019 - 00:00
Hi Tom, We have a SAP Oracle database with large no. of objects count. DB Size is less which is around 500GB. But tables count is 75000, indexes are around 95000 and other objects around 10000 each. When we do the TTS migration from source to t...

To compare two same tables from different schema without primary key and not same number of columns

Wed, 12/18/2019 - 00:00
We have table 'CUSTOMER' in two different schema's. Both are not having any primary key and the column numbers in both table do not match(i.e schema1 table can have 97 column other schema table has 101).the column names are same which are present in ...

Merge Delete

Tue, 12/17/2019 - 00:00
How do I delete with a merge statement? I want to update MERGE_DELETE_TEST2 to match MERGE_DELETE_TEST1 (think ETL). I cannot get merge delete to remove the row that exists in MERGE_DELETE_TEST2 that does not exist in MERGE_DELETE_TEST1.


Thu, 11/28/2019 - 00:00
Requ:- If table do not have records then need to be inserted if have already the END DATE column only update with an no.of years based on Terms( For example If Term year is 10, then 10*12=120 Months, means..10 years needs to added to the END DATE col...