Using to_date causes CBO to use wrong index
I'm working on switching an application from using the Rule-based optimizer to use the Cost-based Optimizer on Oracle 9iR2. I'm having problems with the following query:
select report_rsn, reports.facility_code,
exams.facility_code
from exams join reports using (report_rsn)
where reports.transcribed_date
between to_date('17-Mar-2005')
and to_date('18-Mar-2005')
and exams.dictated_for_rsn = 3323
and exams.status IN ('S','T')There is an index on the reports.transcribed_date column and a compound index on (exams.dictated_for_rsn,exams.status).
EXPLAIN PLAN tells me this query will use the transcribed_date as the driving index, but when I run the query through SQL_TRACE, tkprof says that it used the other index instead. That took a long time. (90 seconds)
If I change the to_date() functions to be ANSI date literals (DATE '2005-03-17' and DATE '2005-03-18'), EXPLAIN PLAN says the same as before, and tkprof says that it actually used that plan. The query returned almost instantly.
We have CURSOR_SHARING set to 'SIMILAR', and my best guess is that there is something involving the "bind parameter peeking" that is causing the problem. It appears as if the optimizer does not evaluate the to_date() function between "peeking" at the bind variable and determining the execution plan, so it does not know that the two dates are only a day apart. However, I haven't been able to find anything in the docs to confirm my suspicions.
I've done a search for queries in our system that use the to_date() function as part of the where clause, and it doesn't look like a Herculean task to simply change them all, but I'm wondering two things:
1) Is there a better way to solve the problem?
2) Is there any information on this behavior out there that I can read to verify my suspicions? This might be the most important, because in order to finalize the switch to CBO, I need to be able to tell my supervisor that "this sort of thing" won't happen on our production box.
-- Jeff Beal
Jeff,
Could you post your plan under both scenarios? WhatHere are the relevant* (different) portions of the execution plan (as given by TKPROF):
* I actually ran TKProf against a much larger query, but the controlling part is the query that I included.
When using DATE literal:
Rows Row Source Operation
0 NESTED LOOPS
0 TABLE ACCESS BY INDEX ROWID REPORTS
6 INDEX RANGE SCAN IX_REPORTS_TRDATE (object id 109215)
0 TABLE ACCESS BY INDEX ROWID EXAMS
0 INDEX RANGE SCAN IX_FK_EXAMS_11 (object id 96878)When using to_date function
Rows Row Source Operation
46517 NESTED LOOPS
46517 INLIST ITERATOR
46517 TABLE ACCESS BY INDEX ROWID EXAMS
46517 INDEX RANGE SCAN IX_FK_EXAMS_4 (object id 139880)
0 TABLE ACCESS BY INDEX ROWID REPORTS
46517 INDEX UNIQUE SCAN PK_REPORTS (object id 109164)
are the indexes on the tables and on what columns are
they present?'ix_fk_exams_4' is a compound index on the exams table. The first column is 'dictated_for_rsn' and the second is 'status'. 'pk_reports' is an index on reports.report_rsn - the primary key of the table. 'ix_reports_trdate' is on the reports.transcribed_date column. 'ix_fk_exams_11' is on exams.report_rsn (the foreign key to the reports table).
Just to give you an idea on size, the exams table has about six million rows; the reports table has about 5.5 million. I would categorize the transcribed_date column as evenly distributed, along with the values in dictated_for_rsn. The status column is heavily skewed, with 'T' and 'S' being the two most common statuses.
Similar Messages
-
Hi,
I have exported and imported two schemas to a different server. Now when a user fires a select query it takes more time than before. When I saw the execution plan for some of 'select' queries,I found that the queries are using wrong index.This is the reason for the delayed reponse time.
Can anybody tell me why it happened ?
Now what should I do?
Can I force select query to use the right index?
Thanx in advancePlease find below details of the query and indexes. Do let me know if you need more information.
Query:
SELECT ROWID, warehouse_code, branch_code, client_code, job_srnum,
department, inventory_date, file_no, client_carton_no, description,
ref1, ref2, ref3, destruction_date, subject, pnw_carton_no,
cre_user_id, cre_dt, upd_user_id, branch, upd_dt, status, date1,
date2, num1, carton_size, addendum_date
FROM ISTORET.rmst_inventory_details2
WHERE branch_code = 'BOM'
AND job_srnum = '62100113476'
AND client_carton_no = 'BM4060394822'
AND subject = 'FILES'
ORDER BY file_no
Execution Plan:
Operation Object Name Rows Bytes Cost
SELECT STATEMENT Optimizer Mode=CHOOSE 1 15
SORT ORDER BY 1 155 15
TABLE ACCESS BY INDEX ROWID ISTORET.RMST_INVENTORY_DETAILS2 1 155 5
INDEX RANGE SCAN ISTORET.BRC_JOB_SUB_REF123_INDX 1 4
Query time: More than 5 mins
Same query with hint /*+ index(rmst_inventory_details2 BRC_JOB_CTN_FILE_INDX) */
SELECT STATEMENT Optimizer Mode=CHOOSE 1 6
TABLE ACCESS BY INDEX ROWID ISTORET.RMST_INVENTORY_DETAILS2 1 155 6
INDEX RANGE SCAN ISTORET.BRC_JOB_CTN_FILE_INDX 1 5
Query time: 110 msecs
Index details:
PARAMETER INDEX- 1 INDEX- 2
Table Owner ISTORET ISTORET
Table Name RMST_INVENTORY_DETAILS2 RMST_INVENTORY_DETAILS2
Index Name BRC_JOB_CTN_FILE_INDX BRC_JOB_SUB_REF123_INDX
Uniqueness NONUNIQUE NONUNIQUE
Columns BRANCH_CODE
JOB_SRNUM
CLIENT_CARTON_NO
FILE_NO BRANCH_CODE
JOB_SRNUM
SUBJECT
REF1
REF2
REF3
Table Type TABLE TABLE
Status VALID VALID
Tablespace ISTORET_RID2_INDX ISTORET_RID2_INDX
Initial Extent Size 4,194,304 4,194,304
Next Extent Size 4,194,304 4,194,304
Minimum Extents 1 1
Maximum Extents 2,147,483,645 2,147,483,645
Percent Increase 0 0
Distinct Keys 42,576,227 27,318,132
Percent Free 10 10
Index Type NORMAL NORMAL
Partitioned No No
Temporary No No
Join Index No No
Size in MB 2,456 2,140
Number Extents 614 535
Size in bytes 2,575,302,656 2,243,952,640
Last Analyzed 20/3/2007 20/3/2007 -
Why is my query using the wrong index?
Hi SQL Tuning experts....
I'm running Oracle 11.2.0.2 EE on Solaris 10
I've just checked my top SQL statements in OEM and drilling down on the top query of the list, I decided to run SQL Advisor on the query.
Low and behold, it came back with a profile that gives me a 99.9% improvement.
When I compared the original plan to the new plan the only difference is that the SQL Advisor is using a different index.
Now, the dumb DBA question: why? why is Oracle picking the wrong index?
original plan
SELECT STATEMENT
COUNT STOPKEY
VIEW
SORT ORDER BY STOPKEY
TABLE ACCESS BY INDEX ROWID ARADMIN.T2179 TABLE
INDEX RANGE SCAN ARADMIN.T2179_C3 INDEXnew plan...
SELECT STATEMENT
COUNT STOPKEY
VIEW
SORT ORDER BY STOPKEY
TABLE ACCESS BY INDEX ROWID ARADMIN.T2179 TABLE
INDEX RANGE SCAN ARADMIN.T2179_C536870923 INDEXThe stats:
table has approx. 3.3Mil rows
table segment is approx. 15G (5G of it is reclaimable space, but probably not related)
table has fresh stats and indexes have been recently rebuilt
indexes in this discussion are both b-tree
the C3 column is number(15) with 2836897 distinct rows
the C536870923 columns is VARCHAR2(255) with 1080533 distinct values
Here is the actual query:
SELECT *
FROM (
SELECT T2179.C1,C536871040,C536871037,C536870944,C3,C536870918,C536870919,
C536870924,C536871048,C536871049,C536871050,C536870926,C536870925,
C536870916,C4,C536871275,C536871095,C536870913
FROM T2179
WHERE ((T2179.C536870923 = :"SYS_B_0") AND (T2179.C3 > :"SYS_B_1")) ORDER BY C1 DESC )
WHERE ROWNUM <= :"SYS_B_2"Obviously this is a good example of why we should use profiles. :-)
Edited by: ji li on Feb 14, 2013 1:32 PM
Sorry... I should have included the plan output
I'm guessing this has something to do with the cardinality of the data in the columns.Dom.... I've already posted most everything. Here are the relevant init params and misc stuff you are asking for.
NAME TYPE VALUE
object_cache_optimal_size integer 102400
optimizer_capture_sql_plan_baselines boolean FALSE
optimizer_dynamic_sampling integer 2
optimizer_features_enable string 11.2.0.2
optimizer_index_caching integer 0
optimizer_index_cost_adj integer 100
optimizer_mode string ALL_ROWS
optimizer_secure_view_merging boolean TRUE
optimizer_use_invisible_indexes boolean FALSE
optimizer_use_pending_statistics boolean FALSE
optimizer_use_sql_plan_baselines boolean TRUE
plsql_optimize_level integer 2
db_file_multiblock_read_count integer 128
db_block_size integer 8192
cursor_sharing string FORCE
SNAME PNAME PVAL1 PVAL2
SYSSTATS_INFO STATUS COMPLETED
SYSSTATS_INFO DSTART 12-04-2012 12:28
SYSSTATS_INFO DSTOP 12-04-2012 15:28
SYSSTATS_INFO FLAGS 0
SYSSTATS_MAIN CPUSPEEDNW 2992.2746781116
SYSSTATS_MAIN IOSEEKTIM 10
SYSSTATS_MAIN IOTFRSPEED 4096
SYSSTATS_MAIN SREADTIM 48027.271
SYSSTATS_MAIN MREADTIM 37217.102
SYSSTATS_MAIN CPUSPEED 2978
SYSSTATS_MAIN MBRC 0
SYSSTATS_MAIN MAXTHR 400782336
SYSSTATS_MAIN SLAVETHR 1403904
13 rows selected.
QL> l
1 SELECT * FROM (
2 SELECT
3 T2179.C1,
4 C536871040,
5 C536871037,
6 C536870944,
7 C3,
8 C536870918,
9 C536870919,
10 C536870924,
11 C536871048,
12 C536871049,
13 C536871050,
14 C536870926,
15 C536870925,
16 C536870916,
17 C4,
18 C536871275,
19 C536871095,
20 C536870913
21 FROM aradmin.T2179
22 WHERE (
23 (C536870923 = '300885690')
24 AND
25 (C3 > '1360938353')
26 )
27 ORDER BY C1 DESC )
28* WHERE ROWNUM <= 1
no rows selected
Elapsed: 00:00:00.01
Execution Plan
Plan hash value: 2768254526
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 1 | 2315 | 6 (17)| 00:00:01 |
|* 1 | COUNT STOPKEY | | | | | |
| 2 | VIEW | | 1 | 2315 | 6 (17)| 00:00:01 |
|* 3 | SORT ORDER BY STOPKEY | | 1 | 226 | 6 (17)| 00:00:01 |
|* 4 | TABLE ACCESS BY INDEX ROWID| T2179 | 1 | 226 | 5 (0)| 00:00:01 |
|* 5 | INDEX RANGE SCAN | T2179_C3 | 1 | | 3 (0)| 00:00:01 |
Predicate Information (identified by operation id):
1 - filter(ROWNUM<=1)
3 - filter(ROWNUM<=1)
4 - filter("C536870923"='300885690')
5 - access(SYS_OP_DESCEND("C3")<HEXTORAW('3AF1C2A1ABC9FF') )
filter(SYS_OP_UNDESCEND(SYS_OP_DESCEND("C3"))>1360938353)
Statistics
0 recursive calls
0 db block gets
2615 consistent gets
0 physical reads
0 redo size
1538 bytes sent via SQL*Net to client
513 bytes received via SQL*Net from client
1 SQL*Net roundtrips to/from client
1 sorts (memory)
0 sorts (disk)
0 rows processed -
Select distinct is using the wrong index
Hello,
I have an indexes question?
I have a table with 1M rows, the table structure is as follows:
create table X(aTime DATE , a1 NUMBER(28,0), a2 NUMBER(28,0), a3 NUMBER(28,0), .... , a20 NUMBER(28,0) );
I have also 2 indexes:
- IDX1 is defined on (aTime, a1, a2, a3).
- IDX2 is defined on (a1, a2, a3).
I run the following query: "SELECT DISTINCT A1, A2, A3 from X;" and see that the optimizer chooses to do a FTS (full table scan) though I was expecting him to use IDX2 because it looks like a "covering" indexes giving all the answers to the query without fetching data rows.
When I try to force him to use indexes, using the following hint "/*+INDEX(X IDX2)*/" the optimizer chooses IDX1.
When I use same hint after I dropped IDX1 the optimizer still prefers to make FTS .
Some general info:
- a1, a2 and a3 have about 500 distinct values each).
- db version 8.1.7.4.
- all tables and indexes are analyzed.
I have two questions:
===============
1.
Why does the optimizer prefers IDX1 (aTime, a1, a2, a3) over IDX2 (a1, a2, a3) when the query specifically requests distinct values of (aTime, a1, a2, a3), isn't there a shortcut the optimizer should use here?
2.
When I request the optimizer to use specific index (using hints), shouldn't it use the index I request regardless of his calculations? If not, is there any way to change this behavior?
Tal Olier
[email protected]You said you analyzed the tables and indexes. Did you also analyze the indexed columns?
A full table scan may be a better execution plan than using an index, especially if you are selecting the full table.
Remember that a hint is jut that, a hint. It suggests to the optimizer to do something, but the optimizer may still choose a different plan. -
Hi to all,
I hope someone can help me. My phone crashed after updating it to IOS 8.3. I can't use it cause its stucked on the start up menu, the apple logo with black background. Even when I restart my phone, it is still stuck on the start up menu, the black background with apple logo in the middle.Slone,
I finally decided to turn this annoyance into an opportunity. After a lot of experimenting I found that my iPad was just fine under 7.1 if I simply restored it as new. I have a lot of time on my hands and I had 1424 apps on my iPad! This is why every attempt to restore took so long.
I decided to restore as new, spend a day restoring the apps I really used. Doing so gave me a quick iPad with only bout a quarter of the storage used.
Granted it was a pain in the arse, but I wrote it off as in the old days when you had to do this with windows 95 just to keep a stable system.
I DO have some data in a few files of the now unused backup but a quick google search finds a couple Mac programs out there that will allow you go extract audio recordings, app data files etc. from the backup. I'll do that someday if I even miss the files I've probably forgotten that are there.
Anyway, there was nothing wrong with my hardware. I think there were just some troublesome setup items that 7.1 didn't like. Once set up as new, the ipad was fine.
Good luck! -
This error is often caused by incorrect use of the "Strict" document type
Okay...so I have 6 errors - all the same and has to do with my document type.
I've searched the code and I am using a transitional doc type so why the errors?
http://02cada7.netsolhost.com/Stasik_Family_Website/index.htmlYeah I did that...but the cause doesn't make sense to me.
You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).
This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.
How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.
I'm not using a strict document time - I am using transitional and I am not using proprietary extensions. -
Wat is the use of "DATA var-name LIKE SY-INDEX" statement
Hi to all,
is there any use of "DATA <var-name> LIKE SY-INDEX" statement in ABAP, do the variable <var-name> be changed with that of SY-INDEX when we declare like this.
Could u give me a fast response,
Thank you,
Srinivasa Rao k.hi check this example..
data: v_index type sy-index value 10 .
do 15 times .
if sy-index = v_index .
write:/ 'the system index is 10 '.
exit.
endif.
enddo.
the main use of the index is used in the hr programs..
the user wants the emp salary and previous months salary then you need to use the index .
if the table had 10 records .then you need to catch the record of index1(current) and index 2(for previous month)..
select pernr ansal from pa0008 into table it_pa0008 where pernr in s_pernr and begda in s_begda .
loop at it_pa0008.
case sytabix.
when 1 .
it_final-cursal = it_pa0008-ansal.
when 2 .
it_final-prevsal = it_pa0008-ansal.
endcase .
endloop.
regards,
venkat. -
how to install windows 7 on my macbook pro mid 2009 using usb. right now iam using mavericks 10.9 can any one please help me. I tried to edit plist in boot camp but it went wrong please help me.
Iam new to coding. please help me.try the solution posted by kunu here and report back
https://discussions.apple.com/thread/5105056?tstart=0 -
My apple tv mirroring is slow. So slow it shuts off. Any thoughts on cause? I use this device in my office for presentations without a problem. In my home with a stronger wifi router, I'm having issues.
Welcome to the Apple Community.
Intermittent problems are often a result of interference. Interference can be caused by other networks in the neighbourhood or from household electrical items.
You can download and install iStumbler (NetStumbler for windows users) to help you see which channels are used by neighbouring networks so that you can avoid them, but iStumbler will not see household items.
Refer to your router manual for instructions on changing your wifi channel or adjusting your multicast rate.
There are other types of problems that can affect networks, but this is by far the most common, hence worth mentioning first. Networks that have inherent issues can be seen to work differently with different versions of the same software. You might also try moving the Apple TV away from other electrical equipment. -
I have two Iphones 5 with different email addresses sharing one Apple ID account.Both are using IOS 8.
I would like to set up a new Apple Id for one of the phones and remove it from the old account.
If I do that, can I move all of the purchased apps and songs to the new Apple account?
Also, will sharing one Apple ID account with two devices cause problems with using messaging and FaceTime?Sharing an iCloud account between two devices can be done without causing issues with iMessage and FaceTime, just go into Settings for each of these functions and designate separate points of contact (i.e. phone number only, or phone number and unique email address). While that works, you'll then face the problem where a phone call to one iPhone will ring both if on the same Wi-Fi network -- but again, that can be avoided by changing each phone's settings.
Rather than do all that, don't fight it -- use separate IDs for iCloud. You can still use a common ID for iTunes purchases (the ID for purchases and iCloud do not have to be the same) or you can use Family Sharing to share purchases from a primary Apple account. -
Some web pages causing 100% CPU use of iexplore.exe since Flash update
I'm having a problem with certain Amazon.com pages hanging my
Internet Explorer 6 using Flash Player 10,0,12,36, causing 100% CPU
use for iexplore.exe and requiring me to End Task to quit. All the
pages effected have an interactive mouseover Size and Color chart
that intially says "Loading" but then says "Select Size and Color"
once loaded. One mouseovers the various color patches and size
options, each time giving item availability in that option. When
the pages hang the IE browser with 100% CPU use that chart never
gets to the "Select Size and Color" point, instead stuck at the
"Loading" status. This happens most times, but not every time.
Sometimes the pages load correctly, after a brief lag as it loads
the chart.
Amazon pages without this chart load fine.
The start of this problem coincides with updating Flash.
I can prevent the problem from happening almost every time if
I can quickly get my cursor into that chart area while the page
begins loading. If I allow the pages to load fully with no
interaction they will hang almost every time.
I have not noticed any problems on those same web pages using
Firefox using Flash Player 9,0,124,0
I also have not noticed any issues with other sites using
Internet Explorer either. (YouTube, QVC, CNN...etc, all OK.)
I had posted for assistance on the Experts Exchange site and
there was some debate on whether the chart was a Java or
Flash-based chart, so initially it was being approached as a
possible Java issue, so I removed all Java versions on the system
and installed various versions, but the same problem persists.
I've downloaded but not run the Flash Uninstaller, as I'm
reluctant to uninstall the Firefox Flash version without knowing
for sure I could install 9,0,124,0 again.
I've downloaded an archived fp9_archive.zip, which seems to
indicate the contained files flashplayer9r124_winax.exe (Internet
Explorer) and flashplayer9r124_win.exe (Netscape) would be versions
9,0,124,0 to install after running the uninstaller.
Can anyone check a few of the links below and see if the
"Select Size and Color" chart is Flash based? If so, would
executing the files listed above install 9,0,124,0 into my
respective browsers again?
http://www.amazon.com/FCS-Regular-7mm-Surf-Leash/dp/B00149XJ68
http://www.amazon.com/Womens-Classic-Short-UGG-Boots/dp/B00064NH8W/ref=pd_ecc_rvi_cart_3
http://www.amazon.com/Columbia-Sportswear-Womens-Benton-Springs/dp/B0006M6IQ2/ref=pd_ecc_r vi_cart_2
http://www.amazon.com/Ladies-Chenille-Zip-Cardigan-Sweater/dp/B001E0YJ0C/ref=pd_ecc_rvi_ca rt_4
XP IE 6 (error module : MSHTML.DLL)
Flash Player version 10,0,12,36
Firefox
Flash Player version 9,0,124,0
Thank you-
VickieI'm attempting to troubleshoot an issue with Amazon web pages
since I've updated my Flash player. I would appreciate if someone
could take a look at my initial post and advise if the issue seems
to be Flash related.
Thank you.
I'm having a problem with certain Amazon.com pages hanging my
Internet Explorer 6 using Flash Player 10,0,12,36, causing 100% CPU
use for iexplore.exe and requiring me to End Task to quit. All the
pages effected have an interactive mouseover Size and Color chart
that intially says "Loading" but then says "Select Size and Color"
once loaded. One mouseovers the various color patches and size
options, each time giving item availability in that option. When
the pages hang the IE browser with 100% CPU use that chart never
gets to the "Select Size and Color" point, instead stuck at the
"Loading" status. This happens most times, but not every time.
Sometimes the pages load correctly, after a brief lag as it loads
the chart.
Amazon pages without this chart load fine.
The start of this problem coincides with updating Flash.
I can prevent the problem from happening almost every time if
I can quickly get my cursor into that chart area while the page
begins loading. If I allow the pages to load fully with no
interaction they will hang almost every time.
I have not noticed any problems on those same web pages using
Firefox using Flash Player 9,0,124,0
I also have not noticed any issues with other sites using
Internet Explorer either. (YouTube, QVC, CNN...etc, all OK.)
I had posted for assistance on the Experts Exchange site and
there was some debate on whether the chart was a Java or
Flash-based chart, so initially it was being approached as a
possible Java issue, so I removed all Java versions on the system
and installed various versions, but the same problem persists.
I've downloaded but not run the Flash Uninstaller, as I'm
reluctant to uninstall the Firefox Flash version without knowing
for sure I could install 9,0,124,0 again.
I've downloaded an archived fp9_archive.zip, which seems to
indicate the contained files flashplayer9r124_winax.exe (Internet
Explorer) and flashplayer9r124_win.exe (Netscape) would be versions
9,0,124,0 to install after running the uninstaller.
Can anyone check a few of the links below and see if the
"Select Size and Color" chart is Flash based? If so, would
executing the files listed above install 9,0,124,0 into my
respective browsers again?
http://www.amazon.com/FCS-Regular-7mm-Surf-Leash/dp/B00149XJ68
http://www.amazon.com/Womens-Classic-Short-UGG-Boots/dp/B00064NH8W/ref=pd_ecc_rvi_cart_3
http://www.amazon.com/Columbia-Sportswear-Womens-Benton-Springs/dp/B0006M6IQ2/ref=pd_ecc_r vi_cart_2
http://www.amazon.com/Ladies-Chenille-Zip-Cardigan-Sweater/dp/B001E0YJ0C/ref=pd_ecc_rvi_ca rt_4
XP IE 6 (error module : MSHTML.DLL)
Flash Player version 10,0,12,36
Firefox
Flash Player version 9,0,124,0 -
Ipad won´t charge to use the mains charger, What's wrong?
ipad won´t charge to use the mains charger, What's wrong?
the usb cable will work to conect to itunesSounds like it is dying. Is it still under warranty? If it is, I suggest you take it to Apple and ask them to repair it.
Allan -
How to use to_date for this case?
Hi,
I bind parameters in java code.
The param type in java is Timestamp and the data type in table is date.
Here is the sql section printted in log:
2004-08-01 10:00:00.0 <= table.datetime
Why there is a ".0" after second?
And how to use to_date to convert "2004-08-01 10:00:00.0"?
Thanks!Hi,
Here are a few possibilities
SQL> select cast(timestamp '2004-08-01 10:00:00.0' as date) from dual;
CAST(TIMESTAMP'2004
2004-08-01 10:00:00
SQL> select to_date('2004-08-01 10:00:00.0','YYYY-MM-DD HH24:MI:SS".0"') from dual;
TO_DATE('2004-08-01
2004-08-01 10:00:00
SQL> select to_date(substr('2004-08-01 10:00:00.0',1,19), 'YYYY-MM-DD HH24:MI:SS') from dual;
TO_DATE(SUBSTR('200
2004-08-01 10:00:00 -
How to know what CBO programs uses transaction codes
Hello Everyone,
How to know what CBO programs uses transaction codes?
Thanks for the help!Hi,
Please clarify your question ....
for e.g. give program name -
I can see the pictures in Events in iPhoto, but I can't open them. When I right click on an Event it just says Edit, but won't open all the pictures in Events. It used to open, but something is wrong. I would appreciate any assistance. Thank you.
Hi Terence,
I got your note and was able to complete the first part, but when I came to Finder, Go To Folder and I typed in both /var/db/receipts/ and /private/var/db/receipts all I get is NOT FOUND message. I tried several times, but no luck.
Please advise.
Thank you.
Catherine Morgan
Maybe you are looking for
-
I'm doing a scan around a line by sampling data 360 degrees for every value of z(z is the position on the line). So, that mean I have a double for-loop where I collect the data. The problem comes when I try to plot the data. How should I do?
-
Unable to record programs on my VCR
My VCR(s) are connected according to the diagrams shown on the troubleshooting page of the Verizon website, but I am not able to record anything. I only have the VCR, not DVR. I get a blue screen on the one TV and just static (and sound) on the ot
-
I've read in a lot of forums about people having problems with ibook displays but I haven't been able to find anything that quite matches my problem. My Ibook has been dropped a number of times and survived - it has numerous small cracks and the bott
-
Pass expired, can't purchase new one.
I had a multi-pass to the Daily Show that expired 2/16. I'd like to renew it, but the purchase button on my Mac and my iPad is greyed out and reads "purchased." So I can't access the latest episode without buying it for $2 (whereas the multi-pass g
-
How to access HttpRequest Object from Axis web service?
Hi all, I have Axis web service named shoppingcartService, and i have ShoppingCartImpl as implemention class which implements passfamily() method When client access my web service, ShoppingCartImpl's passFamily method is executed. I have one more ser