Skip to Main Content

Questions

QuestionUpdatedAsked

Hi Tom,Need your kind help to check and advise. i need to find number of hours employee worked between 10:00 PM to next day 06:00 AM between two days.Ex: 1. employee work schedule is 11-MAY-2012 16:00:00 to 12-MAY-2012 09:00:00 Ans: Night hours would be 8 hour...
3 hours ago2 days ago

Hi,Can we create Composite sub-partitions on multiple columns using templateExampleCREATE TABLE sgs.part_test( order_date_time SYSTIMESTAMP, modulo_store_id NUMBER, recurring_flag CHAR (1))PARTITION BY RANGE (order_date_time) INTERVAL ( NUMTOYMI...
4 hours ago6.8 years ago

Hi Tom,We are creating a table that will be loaded daily. We want to partition the table by as of date. Is the best practice to create the partition using the partition by list automatic or partition by range using 1 day interval? Does one option give better p...
4 hours ago2.2 years ago

I have been using AQ, and now I am trying to utilize Sharded queues in 19c. I am trying to understand some basics. I want to have single-consumer queues, and upon dequeue the record should be removed from the queue table. In the AQ (classic queues) it used to ...
10 hours ago2 days ago

Hello TomWe have a windows server with 40 CPU with 10 sockets and 96 GB RAM and this server CPU keeps hitting 100 perc whenever application team runs there load and the number is session also gets very high . When we check we find many of there queries showing...
14 hours ago46 hours ago

Hey Tom,While this isn't a technical question, I hope it finds its place in this forum.I'm looking to sit for the 170-071 (Oracle Database SQL Certified Associate) exam as a complete beginner. I have a broad understanding of what a database is and its use case...
14 hours ago2 days ago

I want to validate the clob column from the source table using db link, but I am not able to fetch the clob column from the source table via db link. I am not having any permissions to the source db(create view/create table/PLSQL execution) other than read acc...
14 hours ago3 days ago

Tom,What is the difference between Checkpoint, incremental checkpoint & rolling checkpoints? I've read that an incremental checkpoint occurs every 3 seconds as opposed to a checkpoint which occurs based on fast_start_mttr_target, log switches, instance shutd...
14 hours ago20 years ago

Is it possible to use array as a procedure parameter? ...
31 hours ago32 hours ago

Hi Tom,When I was using 10g EM to clone an instance, it restricted me to creating database name and sid to be larger than 8 characters. The oracle is installed in NT. Is there a way to bypass the restriction? Thanks a lot.Regards,Keane...
31 hours ago17.5 years ago

We are using DB v19.0 with the latest patches. We are in Greece but our packages / procedures and client apps are designent to work on AMERICA NLS_TERRITORY, so everything works fine!But in some cases, some 3rd party apps, are connecting to our database using ...
2 days ago2 days ago

Hello, Ask TOM Team.Scenario:1. We have to deploy a feature in one app. The change consists of avoiding duplicates (mix of three database columns).2. In the database site I have to add one column to a table (200+ millions) and then update it so the app can val...
2 days ago3 days ago

I learned from the documentation of 11g that “Oracle Database always enforces statement-level read consistency”, <b>which I think should mean that every query in a single statement (including subqueries, excluding queries in PL/SQL functions) is consistent to ...
2 days ago3 days ago

I have a scheduled job on Oracle which does counts before and after delete statements and spools the results to a log file on the Oracle server. The job is type SQL_SCRIPT. When I execute the job the SQL statements are also included in the spool file even th...
2 days ago3.5 years ago

Hi,I will be starting my development for an Archiving project. Aim is to move all the old data from Production database and make it lighter. It consist of 2 parts. One is to move all data except the latest 6 months into an Archiving database in Oracle from PRO...
3 days ago3 days ago

hi tomi have a databse with 125 tables. i can find the total number of tables of the database by the sql select * from tab; now i would like to know the number of rows in each table of my database with out executing select count(*) from...; each time.please...
3 days ago22.7 years ago

We have a UI based application where users come in and setup SQL's to get excel based reports back, there are multiple options to chose on the schedule of the SQL execution and other related parameters. It's a free text box, the expectation is that the users w...
3 days ago9 days ago

Hi Tom.I'm a great believer that a backup you haven't tested isn't a backup, so I'm trying to ensure that our RMAN backups get automatically verified, however I've come across some weird behaviour with rman backup validation.My aim is to run full verification ...
3 days ago5 months ago

Hi Tom,My first time asking a question here. Am querying a historical table which not only has START_DATE and END_DATE, it also has CURRENT_FLAG where CURRENT_FLAG = 1 corresponds to END_DATE is null.I assume that the CURRENT_FLAG column (all 0s and a 1) woul...
3 days ago11 days ago

dbms_output.put_line has limitation of 255 characters per line. How can I get out of this limitation, so that I can use dbms_output.put_line to have 480 character per line ...
3 days ago24.1 years ago