Skip to Main Content

Questions

QuestionUpdatedAsked

Dear AskTom Team,first of all thanks for all the support you are giving all of as for some many years.I already read many of your answer about the topic <b>PL/SQL Collection</b> slowing sql execution.I alredy tried all the hints (such for example the <b>cardin...
6 hours ago3 days ago

Dear Ask Tom team,Could you please clarify why using a longer declared size of VARCHAR2 affects CPU consumption during SQL execution? Assuming that there are no essential flaws in my benchmark design.Based on my findings, the declared size of VARCHAR2 does imp...
6 hours ago3 days ago

Hi,I am working on a Archiving application. Aim is to bring year and years of data from Production DB into another DB named as Archiving DB and then delete from the Production DB. Currently I am testing deletion on an Archiving DB to test my package performanc...
41 hours ago2 days ago

Why Do /*+ materialize */ Hints Generate Redo?What modifications are materialized subquery factoring clauses making that is needing to be protected by redo?Session A executes a SELECT statement six times. The first three executions are without the /*+ materia...
41 hours ago2 days ago

HiI have a query that is spooling results to a text file via an automated process Monday to Friday. Below are the variables that are used in the query. The queries returns data in Oracle SQL Developer, but returns only the headers with no data when I use Toa...
41 hours ago3 days ago

I have an issue, where i am trying to upload data from my xml file into the table using oracle apex data parser api . I have 6 columns in xml file and in which 1 column is not having any data in any of the records . When i try to insert the data , instead of s...
41 hours ago11 days ago

Hi TOM,Not long ago it was easy to determine if your DB is on premise or on cloud: their banners (from v$VERSION) were different.Now Entreprise and Standard original editions can be on premise or on cloud so we can no more determine in which environment we are...
41 hours ago11 days ago

Dear Team.Firstly I would like to thank you for your valuable time and quick responses.I have two users userA, userB.userA has a table abc and userB want to access it.When userA grant select, insert, update, delete to userB directly then userB can access it wi...
2 days ago6.8 years ago

Hi Team,I have a question about the background execution of dequeue procedures Oracle <b>Advanced Queuing</b>.We are using Oracle 19c & in our case, we are enqueuing AQ messages through DML triggers using dbms_aq.enqueue. Then we dequeue using dbms_aq.dequeue ...
4 days ago11 days ago

Dear Tom, please help me with the below.Session 1:update table set field = 'A' where field2 = 'B';it is not committed/rollbackedSession 2:update table set field = 'C' where field2 = 'B';The session will be waiting for session 1 to get committed, but where the ...
4 days ago7.6 years ago

Hello Tom,Please, I need a big help.I have a job scheduled in Enterprise Manager 12c. This job do a full export, but two days ago I started to get the error below:ERROR at line 1:ORA-31626: job does not existORA-06512: at "SYS.DBMS_SYS_ERROR", line 79ORA-06512...
4 days ago7.4 years ago

I have a table that I converted to interval daily PARTITIONs.Ie<code>partition by range (date_col) interval (numtoyminterval(1, 'DAY')) (partition P_OLDDATA values less than (to_date('01-JAN-2021','DD-MON-YYYY')) ); </code>My issue is that there were some deve...
4 days ago2.6 years ago

I need a example using DBMS_CRYPTO.SIGN.I'm need to sign a hash using RSA-SHA1 and I need to know if can i use DBMS_CRYPTO.SIGN?...
8 days ago10 days ago

Dear Tom,I am temporarily supporting a RAC, ASM database on 19c. I have to create a new tablespace. For the existing tablespaces I see that datafile names look like +IPAG_DATA/t5cnp1db/datafile/avos_dat.362.1067066741 I understand that +IPAG_DATA is the asm di...
8 days ago10 days ago

declare cursor cur_collection_detail is select rowid,'ABC' col4, 'ABC' col1, 'ABC2' action_id from TAB1 where COL1= 1286165;begin for dtl in cur_collection_detail loop dbms_output.put_line('Test inprogress..'); end loop;end;/ Error report -ORA-06502: P...
8 days ago9 days ago

I want to change the column size of a column from varchar2(100) to varchar2(50) on a non-partitioned table with 1138 Million records, yes 1.1 Billion. This project is not using Partitioned tables, so can't change the table structure.Could you please let me kno...
8 days ago9 days ago

Good Morning,In the last year, I've started to support Mongo databases. Mongo stores data in BSON which is the binary form of JSON. JSON is just the field name followed by a value. This doesn't seem so different from Oracle since Oracle also its data in a s...
8 days ago11 days ago

We have two tables, ITEM table has more than 150 million records and ITEM_EVENT table has more than 400 millions. Because of the growing nature of the data, we want to perform periodic cleanup of the tables. Could not find a performant way to achieve the goal,...
8 days ago11 days ago

Hi TOM:I have to copy an AS400 table, for that i have a DBLINK that connects the as400 database to my Oracle 11gSince it has several millions records, i tried with a bulk collect:<code>CREATE TABLE AS400_VPRA_ABONO ("ABON_NUM_CCTE" NUMBER(9,0) NOT NULL ENABL...
10 days ago11 days ago

Hi there, masters.I'm facing a rather weird situation regading the TSTZ configuration. A full detailed description of my initial problem is here in this post I made some months ago: https://community.oracle.com/tech/developers/discussion/4490678/ora-39405-sta...
10 days ago2.1 years ago