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

md5 vs natural key

Thu, 08/15/2019 - 00:00
Hello, I start a new data warehouse project. In the ETLs for the ins/upd steps, I suggest to use MD5 and not the natural key (my sources are txt files from a mainframe). I need to explain to my project manager why I want to use md5 and not the na...

Generate duplicate rows

Wed, 08/14/2019 - 00:00
Hi Connor / Chris, Could you please have a look ate below scenario and help in building SQL: I need to generate duplicate row based on column value in SELECT SQL to be executed is: <code> select emp.empno, emp.ename, emp.hiredate, emp.sal, e...

Select Performance Too Bad on Oracle

Wed, 08/14/2019 - 00:00
Dear Tom, I just faced an issue that I could not solve it. I have two virtual machines: Client: 32Core, 32G Ram, Virtual Machine on HPE Server Server: 96Core, 256G Ram, Virtual Machine on HPE Server I did write a simple Java application usi...

Truncate Table Command not able to recognize Table in EBR enabled Oracle database

Tue, 08/13/2019 - 00:00
We are using EBR enabled Oracle Database and hence have ability to have same name for a table and View. Following are two objects in FUSION schema: wsh_interface_errors TABLE FUSION WSH_INTERFACE_ERRORS VIEW FUSION Now when trying to run...

Write stored procedure inside a stored procedure

Tue, 08/13/2019 - 00:00
Hi Team Ask TOM, Recently, I came across some code where developers had written four or five stored procedures inside another stored procedure. The code compiles fine. I always thought that to write stored procedures like this, they should be in a p...

Oracle SQL Index Optimization : Index Hint not being used even on forcing

Mon, 08/12/2019 - 00:00
Dear Sir, I have created a table with a composite primary key and few indexes. In one of the SQL the where clause is a combination of Index Column and non-index columns, however the query is not using the index column and instead going for Full Ta...

Script to create dynamic partitions for multiple backup tables

Mon, 08/12/2019 - 00:00
Hi Team, We have a requirement wherein there are 30 backup tables which are currently non partitioned and each table have data around 15-30TB's. Size of the table is very huge. We have to write a script which will create partitioning of a backu...

SQL query using Rollback segment heavily

Thu, 08/08/2019 - 00:00
Dear Team, I am querying from a table where dml operations are continuously taking place in current financial year(19-20). But I am retrieving data of 17-18 financial year's and it was pretty slow. On investigating, I found that it was using rollbac...

TEMP and UNDO dramatic growth, RESET_PACKAGE suspected

Wed, 07/31/2019 - 00:00
Dear Tom, My question may be very basic, however I failed to find answer in the Net. I run Oracle DB 11g XE 11.2.0.2.0 and Oracle APEX 5.1.2.00.09 on Linux virtual machine for more than 2 years and all was great. Some 2 weeks ago the server rep...

How to find the list of procedure inside the package which contain specific text ?

Wed, 07/31/2019 - 00:00
How to find the list of procedure inside the package which contain specific text ? example : Table : emp has following columns empno ename sal job comm deptno my requirement is I need to find list of procedure inside t...

SUBSTR - Dynamically spliting the string.

Thu, 07/11/2019 - 00:00
Hi Tom I need to split a string dynamically into 4 parts each of maximum 22 characters but if 22nd character is not the right break (space) it should consider the last space. example :'1100 Crescent PkWay Apartment 101 suite 200' 22 characte...

Oracle Database Client 18c win 10 32 bit

Thu, 07/11/2019 - 00:00
I can Not install Oracle Database 18c on 10 32 bit https://www.oracle.com/technetwork/database/enterprise-edition/downloads/oracle18c-windows-180000-5066774.html I choice 32 bit below of website. File name is NT_180000_client.zip The error i...

Insert performance in .NET Application

Thu, 07/11/2019 - 00:00
Hello, Ask Tom Team. We have a .Net Application and we are using Oracle Database 18c. We have many tables working with relational model. An example of what we have in our code (for every table): #region insert const str...

Find all the Fully Connected Subgraphs

Mon, 07/08/2019 - 00:00
Hi Team , <code> with data ( p1 , p2 ) as ( select 'a' ,'b' from dual union all select 'a' ,'c' from dual union all select 'a' ,'d' from dual union all select 'b' ,'c' from dual union all select 'b' ,'d' from dual union all ...

Plan Change

Fri, 07/05/2019 - 00:00
Hi Team, We have upgraded Peoplesoft Oracle database from 11.2.0.3 to 11.2.0.4. After this upgrade, the queries using the same table which is running simultaneously is having performance issues. Please let us know if we need to set any databa...

Best debuging steps for PLSQL procedure AND SQL Querys

Fri, 07/05/2019 - 00:00
Hi Team, In my project, we have a 100 of the procedure and those procedures we have 1000 to 5000 lines of codes. we need to debugging those procedures. Is there any best methods, techniques for debugging plsql procedure and SQL queries. this...

Query is taking much time (not using index)

Thu, 07/04/2019 - 00:00
Hello, Ask Tom. I have a delete statement that involves three tables. All id are pk (indexes are present on each pk by default). There is also an index on t2.columnA but in the plan it says that there is a table access full on table2. The query i...

Taking nearly four days to delete the records

Wed, 07/03/2019 - 00:00
Following Query is taking nearly four days to delete the records from C_HDR_PARENT_TB table, we need to tune this query. Can you please suggest and modify this <code>declare rowcount number := 0; type rowid_typ is table of ...

What is efficient way to paginate on the large table?

Sun, 06/30/2019 - 00:00
Hi Tom, We are using the following query in java application, for getting the query results in the pagination. To speed up the task we are executing 15 queries at the same time. The queries are being executed on different machines but targeting th...

How to analyse or dig log.xml of Oracle Listener Log with XMLTABLE?

Fri, 06/28/2019 - 00:00
Hey Connor and Chris, I want to analyse or dig <b>log.xml</b> of Oracle Listener Log with <b>XMLTABLE</b>. Afterwards I found Thomas Kyte's this thread - https://asktom.oracle.com/pls/apex/asktom.search?tag=xmldb. What he replies to somebody attra...

Pages