Tom Kyte

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

Alternatives for to_char(dt, 'DAY')

Tue, 2016-07-19 13:46
--->A simple SQL issue that I faced few days back. We normally perform some executions on weekends(SATURDAY or SUNDAY) like some sort of cleaning activity,stats gathering,partition creation etc. Please take caution If your are planning to achieve ...
Categories: DBA Blogs

The New Ask Tom

Mon, 2016-07-18 19:26
Why do parts of the new Ask Tom appear in another language? e.g. on the list of questions asked previously: Kedd Februar 18, 2003 (H. Feb 17, 2003, 0 days old) Thanks.
Categories: DBA Blogs

pivot data into named columns

Mon, 2016-07-18 19:26
Hi, I have a table that looks like the following PHOTOID PHOTO PRODUCT_ID 1 BLOB 123 2 BLOB 123 3 BLOB 123 4 BLOB 123 5 BLOB 123 6 BLOB 124 7 BLOB 124 8 BLOB 125 9 BLOB 126 10 BLOB 126 11 BLOB 126 12 BLOB 126 13 BLOB 126 each PRODUC...
Categories: DBA Blogs

Code enchancement

Mon, 2016-07-18 19:26
Hello Chris Saxon, I have a below table structure. CREATE TABLE "PEOPLE" ( "PERSON_ID" NUMBER, "GIVEN_NAME" VARCHAR2(100), "CATEGORY" number(50) ) INSERT INTO people VALUES(1,Connor,1001); / INSERT INTO people VALU...
Categories: DBA Blogs

difference between soft parse and hard parse

Mon, 2016-07-18 19:26
Hi Tom Can you explain briefly the difference between soft and hard parse? cheers
Categories: DBA Blogs

Time conversion

Mon, 2016-07-18 19:26
Hi Team, Please let me know how we can convert <b>14-JUL-2016 17:11:05 PM</b> into 1<b>7:11:05 or 05:11:05 PM only</b> in Oracle. Regards, Atin
Categories: DBA Blogs

Why it is difficult to scale oracle

Mon, 2016-07-18 19:26
Why it is difficult to scale oracle database. Thanks!!
Categories: DBA Blogs

Document No. Repeat

Mon, 2016-07-18 01:26
Hello,Dear Tom: Document No. repeated in the database! SELECT T.*,T.ROWID FROM AR_BILL T WHERE T.BILL_NO = '201607-141055001-001-000091' BILL_ID BILL_TYPE BILL_NO CO_CODE ND REASON PROJECT_CODE APP_ID INPUTOR_ID ORG_CODE INPUT_DATE BILL...
Categories: DBA Blogs

Hash partitioning and number of partition

Mon, 2016-07-18 01:26
Hi Tom, I have a question regarding the choice of the number of partitions when using hash partitioning. I have the following table used to store documents <code>CREATE TABLE "DOCUMENT" ( "DOCUMENT_ID" NUMBER(38,0), "CREATED_BY" VARCHA...
Categories: DBA Blogs

Explanation of Hints

Mon, 2016-07-18 01:26
Hi Tom, 1)first up all great thanks to you for spending time for me explain about following hints Parallel append index no_index first_rows and all_rows with an example in which situation we may use what hint in select the data from table? ...
Categories: DBA Blogs

Member procedures & Member function in plsql i.e member sub programs in oracle(plsql)

Mon, 2016-07-18 01:26
Hi Tom, 1)why we are using,what is purpose of Member procedures & member functions in plsql subprograms explain an example? 2)Difference between stored subprograms and member subprograms?
Categories: DBA Blogs

How to set all elements of collections

Mon, 2016-07-18 01:26
I've three questions 1) Suppose I have a collection of numbers say 300 values & i want to initialise with number 72 what would be the best way to do so ,rather than writing 300 times 2) I've to generate reports in pdf so what would you sugg...
Categories: DBA Blogs

Will open cursor hold up more tablespace when it is not closed?

Mon, 2016-07-18 01:26
Hi Tom, I am using oracle 11g and the tablespaces keeps growing, I have recently identified a issue with open cursors which is not closed when the session was closed. Will open cursor eats up all the spaces which leads to consume more temp spa...
Categories: DBA Blogs

ORA-01578: ORACLE data block corrupted (file # , block # )

Mon, 2016-07-18 01:26
Hi Tom, I m getting following error in my production data base alert log since last 5 month. Errors in file /u01/app/oracle/diag/rdbms/prod/prod/trace/prod_j000_26775.trc: ORA-01578: ORACLE data block corrupted (file # , block # ) ORA-01578: O...
Categories: DBA Blogs

ORA - 08103:Object No Longer Exists

Mon, 2016-07-18 01:26
Hi, I am getting an error Ora-08103: Object No longer exists when select queries are fired against a partitioned table having local Bit map indexes. But when the same process/job (which fires select query) is restarted the issue does not come up a...
Categories: DBA Blogs

Why the "Row Source Operation" ('reality exec') differs from the "Execution Plan" ('guess exec')

Sun, 2016-07-17 07:06
Hi, Team There's a procedure in our Oracle 11.2.0.1 DB which captures data from MS SQL Server through DB Link, since the context is quite long (cursors, pragma autonomous_transaction and loop included), let us take it brief like this: CREATE OR...
Categories: DBA Blogs

XML Update

Sun, 2016-07-17 07:06
Hi Tom, I need to update some attribute(XML) in oracle table whose datatype is XML. Is there any package provided by oracle which help me? Or if you can tell me anyway how can I update it.
Categories: DBA Blogs

clone(duplicate active Database)

Sun, 2016-07-17 07:06
I Want to clone a database from one computer to another computer, both computer connected with lan. The database which i have to clone is available on computer 2. on computer 1 i have created an instance using oradim utility On computer 2 <code>...
Categories: DBA Blogs

Add_months

Sun, 2016-07-17 07:06
Hi Guys, I am just a little bit confused regarding the following : select add_months(to_date('30/01/2016','DD/MM/YYYY'),1) from dual Result is : 29/02/2016, shouldn't it be 28/02/2016 ?? Thanks Mohannad
Categories: DBA Blogs

issue while adding new apps node in oracle EBS r12.2.5

Sun, 2016-07-17 07:06
Hi DBA Experts, I am facing following issue while adding new application node please help me to fix this issue. Executing command: perl /u02/applmgr/SR1225/fs2/EBSapps/appl/ad/12.0.0/patch/115/bin/adProvisionEBS.pl ebs-create-node -contextfi...
Categories: DBA Blogs

Pages