Tom Kyte

Subscribe to Tom Kyte feed Tom Kyte
These are the most recently asked questions on Ask Tom
Updated: 5 hours 1 min ago

need a single update query for below question

Wed, 2017-11-15 15:46
I've table locations and it contains below data : loc_id location_name 101 newyork 102 losangels 103 chicago 104 boston 105 dallas now is that possible to write a single query to update all records like below loc_id location_name 101...
Categories: DBA Blogs

Import connections

Tue, 2017-11-14 21:26
Need way to import *new* connections to SQL Developer without manual typing. Is it possible to import them from a spreadsheet or csv?
Categories: DBA Blogs

Snapshot database

Tue, 2017-11-14 21:26
Dear Team, I have active data guard whose flash retention policy is 1 hour and undo retention is 900. want to convert standby database to snapshot database for few days, please let me know its possible or not. is above mention parameter is depe...
Categories: DBA Blogs

Alert log monitoring script

Tue, 2017-11-14 21:26
Hi, Could you please anyone help me on the script for Alert log monitoring for every one 1 hour need to fetch the errors and send it mail. Thanks
Categories: DBA Blogs

Disabling DBMS_SCHEDULER jobs on import

Tue, 2017-11-14 21:26
We refresh our test and development environments from production weekly. Is there a way to automatically disable DBMS_SCHEDULER jobs on import? I have a "reset" script that I run after the refresh, but "overdue" jobs seem to run immediately after imp...
Categories: DBA Blogs

Admin vs Design

Tue, 2017-11-14 03:06
First of all why people or do not understand or u people force . DBA primary role and still they r rude ( back up , recovery ,upgrade, monitoring ) a system. It is the most crucial part as Data Loss , recovery can not not be priced. It is a 24*7...
Categories: DBA Blogs

Object info w.r.t redo

Tue, 2017-11-14 03:06
Dear Sir, How can I found which object generate more redo in database. Thanks Pradeep
Categories: DBA Blogs

DBMS facilities

Tue, 2017-11-14 03:06
I am not able to understand this question. What are they asking in the question? Thank You!: "Starting at the client invocation describe the mechanics of the DBMS through a SQL SELECT all the way through the response to the client. Name all faci...
Categories: DBA Blogs

difference between sql tuning advisor and sql access advisor

Tue, 2017-11-14 03:06
After reading both "Sql Tuning advisor" and "sql access advisor" , getting little confused on -- what is exact difference behind these advisors -- which situation one can use one advisor over another Please provide your guidance. thx A...
Categories: DBA Blogs

Table with date column datatype (Storing datetime) causing issue in fetching result and when use with to_date and to_char causing performance issue.

Tue, 2017-11-14 03:06
Hello Tom, Good Morning. This is my first time posting question, I always got helped for my most of problems from your post. Need your help in understanding what will be good way with respect of performance. I have one table with date dat...
Categories: DBA Blogs

is alter table drop constraint drop index syntactically valid?

Mon, 2017-11-13 08:46
Hi Tom, I'm dropping unique constraint from a table and need to drop the unique index too. Yes there's lot written about this topic and what is not clear to me seems to be just documentation issue: I found advices to use syntax <code>alter tabl...
Categories: DBA Blogs

oracle external table issue

Mon, 2017-11-13 08:46
Hi team, I have a txt file which has data delimited by "TAB SPACE" and i am trying to load the data using the oet table.Here is the script below which i used to load the data . Unfortunately the data is not loading . Can any one say how to load th...
Categories: DBA Blogs

Persuade customer to use SQLT

Mon, 2017-11-13 08:46
Hi Tom, While doing sql query tuning I came across SQLT Tool and I found it very useful. But there's one problem. Our clients (esp. client's DBAs) are not ready to allow me to use it on their production environment. I told them that it won't have ...
Categories: DBA Blogs

Last login

Mon, 2017-11-13 08:46
We are running versions 11.2.0.4 12.1 12.2. I am looking for a generic solution to capture last login date. I think the best solution would be an initial load and then maintain the information via an after logon trigger, which will contain a merg...
Categories: DBA Blogs

INACTIVE session is blocking active session

Mon, 2017-11-13 08:46
DBA is throwing information as follows 06112017:11:00:09 WELOPP@n1pv97/46581 (Session=('300,19867')Status=INACTIVE sqlid=>) blocking WELOPP@n1pv97/45876 (Session=('1803,10683') Status=ACTIVE sqlid=fp5x2quh0zpqk) f...
Categories: DBA Blogs

For Joins in Query Performance optimization

Sun, 2017-11-12 14:26
I have a query with 4 For loops puting data into temp table an then that temp table TEMPTBL_NUMBER_SEARCH is called to execute the operations in a select clause. So the problem with the 4 for loop is making it slow to 15-20 mins. Its all indside a pr...
Categories: DBA Blogs

export issue

Sun, 2017-11-12 14:26
Hi team, We are taking daily export of schema with expdp But for a few days we are continuously getting error saying - snapshot too Old. Table is a partitioned table weekly base. And the script which we are using for expdp is - expdp us...
Categories: DBA Blogs

Does the context switch account for the recursive calls

Sun, 2017-11-12 14:26
Hi Tom, Here is what i did trying to understand the enhancements of 12c. Here i was trying to understand the enhancements of WITH clause. I have created the table and compiled the below function. <code> CREATE TABLE lnd_numbers AS SELECT ...
Categories: DBA Blogs

In sql how can I update a value , and then reuse the updated value and re-update it

Sun, 2017-11-12 14:26
Hi Gurus I need to write in SQL something which previously was done in PL/SQL if possible. I have a Invoice Line Description e.g. 'ABC Mon Tue' for which I need to translate certain words. I also have a lookup(fnd_lookups) which stores the...
Categories: DBA Blogs

Versioning Data Model

Sat, 2017-11-11 01:46
Hi AskTom team, I'd like your ideas about the data model design and/or Oracle features that I could take advantage of to achieve the design goals described below. <u>Background:</u> I'm in the early stages of designing a data model for a bra...
Categories: DBA Blogs

Pages