Inline subquery cardinality wrong, execution path not correct
hi:
i have a simple query , I just can not get the execution path correct. please advice .
SELECT *
FROM fcst_budget a,
SELECT *
FROM fcst_root_facility_all
WHERE salesman IN (200)
) b
WHERE a.ci=b.ci AND a.facility=b.facility
Plan
SELECT STATEMENT ALL_ROWSCost: 2,276 Bytes: 1,317,411 Cardinality: 1,593
3 HASH JOIN Cost: 2,276 Bytes: 1,317,411 Cardinality: 1,593
1 INDEX FAST FULL SCAN INDEX (UNIQUE) SALES.FCST_ROOT_FACILITY_ALL_PK Cost: 1,466 Bytes: 331,660 Cardinality: 515
2 TABLE ACCESS FULL TABLE SALES.FCST_BUDGET Cost: 807 Bytes: 27,628,425 Cardinality: 150,975
fcst_root_facility_all has 50K records, with index on salesman, pk = ci,facility
fcst_budget has 150K records, pk= ci,facility,yr_prd
the problem is it is always doing full table scan for fcst_budget, which is not what I am looking for.
the inline subquery output is only 80 records with unique ci and facility and the desired execution plan will be using inline
subquery as driving table to nested loop join the fcst_budget table, the pk for fcst_budget should be used.
Somehow, this just does not happen.
I tried to create a intermediate temp table to stage teh inline subquery result, and the result is good.
DROP TABLE aaa
CREATE TABLE aaa
AS
SELECT *
FROM fcst_root_facility_all
WHERE salesman IN (200)
SELECT *
FROM fcst_budget a,
aaa b
WHERE a.ci=b.ci AND a.facility=b.facility
Plan
SELECT STATEMENT ALL_ROWSCost: 193 Bytes: 937,890 Cardinality: 102
4 NESTED LOOPS Cost: 193 Bytes: 937,890 Cardinality: 102
1 TABLE ACCESS FULL TABLE SALES.AAA Cost: 4 Bytes: 720,960 Cardinality: 80
3 TABLE ACCESS BY INDEX ROWID TABLE SALES.FCST_BUDGET Cost: 3 Bytes: 183 Cardinality: 1
2 INDEX RANGE SCAN INDEX (UNIQUE) SALES.FCST_BUDGET_PK Cost: 2 Cardinality: 1
comparing two plans, you can see the first plan step1, the cardinality=515, which is actually should be 80 in this case.
Any body can help me tune this query to make Oracle optimizer pickup the correct plan?
I do not like the temp table solution case it decreases the scalability.
thanks
SamB:
Neither the /*+ cardinality (c 80) */ nor the USE_NL works.
I also regenerated historgrams, that did not help either.
Oracle is so persistent to use its own decision no matter what I tell it to do.
The amazing thing I found today after tried your hint is:
I re-analyze the fcst_root_facility_all table using DBMS_STATS.GATHER_TABLE_STATS
function, and magically, it worked.
I used to use analyze command to analyze table, seems there is some important accuracy difference between the two.
although still can not understand why some many hint does not work, I am OK for now.
thanks
Similar Messages
-
I've installed itunes twice. It worked the first time but after I restarted my computer it kept giving me this message: Itunes was not correctly installed. Please reinstall itunes. Error 7 (Windows error 127). What's wrong?
See the second box in Troubleshooting issues with iTunes for Windows updates.
tt2 -
Firefox will not show links to flv files. I get the error message for each flv file: "File not found. Firefox can't find the file at http:// (path) .flv." Any mov and swf files in this same path will show. I can see the videos in Safari so the paths are correct.
Is this a webpage that contains a link to a flv file? Please post a link to the page and tell us which link(s) are the problem flv files or else post a link to the .flv file itself.
Alternately, click on one of the sample FLV File links on this page and tell us exactly what happens:
http://www.mediacollege.com/adobe/flash/video/tutorial/example-flv.html
It might also help if you post the exact error message, including the path to the flv file.
'''Note:'''
Depending on how you have Firefox set up, clicking on a FLV File link will either save the FLV file to your computer or Firefox may open it automatically in an external application right after downloading (Firefox may ask you first). Firefox itself can't play FLV files so you need a "helper" application (or a plugin for flv files, if ther is one. You can see if Firefox is already set up to download or open FLV files by going to Firefox Preferences and looking in the Applications list. Find the FLV file type in the list and, if the action is "Open with", it should show the application that can play FLV files (e.g., VLC Media Player or Perian). See [[Managing filetypes]] for more information. -
Image path not storing in sql database
Hello,
I have read here on the forum how to upload an image to server and store path in your database, the image uploads correctly to the correct folder on my server but the image path does not get stored on my sql database (not local hosting). I receive the error: The file has been uploaded, and your information has been added to the directory. Column 'image' cannot be null.
My database has the following columns:
id
datum
image
sectie
My code is as follows:
<?php require_once('Connections/dbTroch.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
return $theValue;
mysql_select_db($database_dbTroch, $dbTroch);
$query_rs_aanbod = "SELECT * FROM tblSlideshow ORDER BY id ASC";
$rs_aanbod = mysql_query($query_rs_aanbod, $dbTroch) or die(mysql_error());
$row_rs_aanbod = mysql_fetch_assoc($rs_aanbod);
$totalRows_rs_aanbod = mysql_num_rows($rs_aanbod);
$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
$editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
$target = "images/slides/"; //This is the directory where images will be saved//
$target = $target . basename( $_FILES['image']['name']); //change the image and name to whatever your database fields are called//
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "add-photos-aanbod")) {
$insertSQL = sprintf("INSERT INTO tblSlideshow (image, sectie) VALUES (%s, %s)",
GetSQLValueString($_POST['file'], "text"),
GetSQLValueString($_FILES['image']['name'], "text"));
//This code writes the photo to the server//
if(move_uploaded_file($_FILES['image']['tmp_name'], $target))
//And confirms it has worked//
echo "The file ". basename( $_FILES['uploadedfile']['name']). " has been uploaded, and your information has been added to the directory";
else {
//Gives error if not correct//
echo "Sorry, there was a problem uploading your file.";
mysql_select_db($database_dbTroch, $dbTroch);
$Result1 = mysql_query($insertSQL, $dbTroch) or die(mysql_error());
?>
<!doctype html>
<html>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Troch Project Solutions - Admin - Toevoegen</title>
<link rel="stylesheet" href="css/foundation.css" />
<link rel="stylesheet" href="css/layout.css" />
<!-- Fonts
================================================== -->
<script type="text/javascript" src="//use.typekit.net/vob8gxg.js"></script>
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>
<!-- jQuery
================================================== -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="js/vendor/modernizr.js"></script>
</head>
<body>
<div class="row">
<div class="large-8 medium-8 small-8 large-centered medium-centered small-centered columns intro">
<h2 class="subheader text-center">Admin</h2>
<p><a>Log uit</a></p>
<p><a href="admin.php">Terug naar Admin menu</a>
<h4>image toevoegen naar aanbod slideshows:</h4>
<form action="<?php echo $row_rs_aanbod['']; ?>" method="POST" name="add-photos-aanbod" id="add-photos-aanbod" enctype="multipart/form-data">
<table>
<tbody>
<tr>
<td><label for="image">Kies foto:</label></td>
<td><input name="image" type="file" id="image" value="<?php echo $row_rs_aanbod['image']; ?>" /></td>
<tr>
<td>Sectie:</td>
<td><select name="sectie" id="sectie" option value="sectie">
<?php
do {
?>
<option value="<?php echo $row_rs_aanbod['sectie']?>"><?php echo $row_rs_aanbod['sectie']?></option>
<?php
} while ($row_rs_aanbod = mysql_fetch_assoc($rs_aanbod));
$rows = mysql_num_rows($rs_aanbod);
if($rows > 0) {
mysql_data_seek($rs_aanbod, 0);
$row_rs_aanbod = mysql_fetch_assoc($rs_aanbod);
?>
</select></td>
</tr>
<tr>
<td><input type="Submit" name="Add" id="add" value="Toevoegen" /></td>
</tr>
</tbody>
</table>
<input type="hidden" name="MM_insert" value="add-photos-aanbod" />
</form>
</div><!-- end large-8 -->
</div><!-- end row -->
<script src="js/vendor/jquery.js"></script>
<script src="/js/vendor/fastclick.js"></script>
<script src="js/foundation.min.js"></script>
<script>
$(document).foundation();
</script>
</body>
</html>
<?php
mysql_free_result($rs_aanbod);
?>
I cannot work out what is wrong and I would appreciate any help on this. ThanksYour form field and array variable names do not match
<td><input name="image" type="file" id="image" value="<?php echo $row_rs_aanbod['image']; ?>" /></td>
GetSQLValueString($_POST['file'], "text"), -
Some Executions Are Not Terminated by Using Terminate All in Parallel Process Model
Hi,
This issue confued me recently, I'd like to use a parallel model process, and to terminate all execution at once.
If there's some action steps in the sequence, it seemed all execution will be terminated.
However, I put a wait function instead of action steps, there are some executions not terminated while I pressed the Terminate All button in the toolbar.
Hope someone can give me some help. Thanks a lot.
ps. the number of testsockets is set to 9 in my teststand.
Solved!
Go to Solution.
Attachments:
Terminate_Test.seq 7 KBHi, Ting,
Thanks for your help.
I'd like to add some additional remarks,
What I'd like to know is what cause the termination unstable in such a situation.
The timing seemed to play an important role, but it is not my orignal concern.
I used the testsocket of the last one to send the TerminateAll() command, but the choise is an accident...
Originally I take the first testsocket to send TerminateAll() command, it works "well".
I've notice the terminating action is always done in the reverse order of the testsocket(i,e, from the last testsocket to the first one),
it seemed to make each testsocket go to cleanup and then not allow the testsocket continue.
If we trace the executions more detailedly, it can be found the executions not terminated are actually received the command of the TerminateAll().
They went to cleanup, and waited for the following "not continue" procedure, but somehow it missed so that they survived to repeat the execution.
This consquence is a little like the termination is terminated...(not tongue twister...XD)
If my postulation is true, it is safe to put the TerminateAll() command to the first testsocket so that the latter executions will be terminated before the first one terminated.
If I put it to the latter testsocket or the last one, the termination will be terminated and some executions will revive.
If I skip the wait function in the cleanup, the situation is not optimistic as my thought, the last testsocket will revive itself and back to the terminate command to send it again so that it makes me feel that it is better if I skipped the wait function.
The above is my unconfirmed idea, maybe it totally wrong, if someone can correct my understanding I would be greatly appreciated.
BTW, it is really special case, so we can take it easy, hope this will not add your loading and we can discuss freely as an amateur -
Problem with optimiser choosing different execution path to that expected!
We have a sql statement that uses sub-query factoring, and a materialize hint in one of the sub-queries. The query runs fine for me when I do the query manually - it does the Temp Table Transformation as I expect it to (due to the materialize hint). The query runs in under 2 mins, and the explain plan says a cost of 154.
Take away the materialize hint, and I get an execution path with a cost of 149, and the query runs in just under 2 hours (!). The explain plan then contains two filter steps, listing the predicates (not exists).
The problem we're seeing is that when we run the overall process that runs the sql statement and outputs the results to file, instead of it using the materialized explain plan, it appears to be using the non-materialized explain plan, but the predicates bit just says "IS NULL". It has a cost of 149.
I suspect that the optimiser has somehow worked out that the sub-query in question actually returns no rows, and has therefore worked out a "cheaper" method of getting the results. Thing is, I run the exact same (unfortunately, not bound) query manually and it uses the materialized explain plan!
The process does run the sub-query in question on it's own, but without the materialized hint. I've done similar manually, just in case this affects things by having the results in memory, but it didn't alter the fact that I still got the materialized plan.
I'm at a loss as to how it knows that the sub-query returns no rows, and as to why the same query is effectively giving two different execution paths under the same circumstances.
Can anyone give me their thoughts as to what might be happening with the predicates bit, or any pointers as to where to look next, please?
TIAYes, it's the same database, so same data, same statistics, same user, etc.
This is with the materialized hint:
Time IO Cost CPU Cost Cardinality Bytes Cost Plan
1 110 2,349,615 1 316 154 SELECT STATEMENT ALL_ROWS
24 24 24 24 24 24 24 TEMP TABLE TRANSFORMATION
6 6 6 6 6 6 6 LOAD AS SELECT BROIL_FEED.DIM_CURVE_MAPPING
5 5 5 5 5 5 5 FILTER Filter Predicates: NOT EXISTS (SELECT /*+ */ 0 FROM "CREDIT_MRCDATA" "CM1" WHERE "CM1"."TRADE_NAME"=:B1 AND "CM1"."RISK_TYPE"='TVReport' AND "CM1"."RUN_ID"=:B2) OR NOT EXISTS (SELECT /*+ */ 0 FROM "CREDIT_MRCDATA" "CM2" WHERE "CM2"."TRADE_NAME"=:B3 AND "CM2"."RISK_TYPE"='Delta' AND "CM2"."RUN_ID"=:B4) OR NOT EXISTS (SELECT /*+ */ 0 FROM "CREDIT_MRCDATA" "CM3" WHERE "CM3"."TRADE_NAME"=:B5 AND "CM3"."RISK_TYPE"='Issuer' AND "CM3"."RUN_ID"=:B6)
1 1 1 4 1 28,686 1 1 1 19 1 5 1 INDEX RANGE SCAN INDEX BROIL_FEED.CREDIT_MRCDATA_IDX Access Predicates: "RUN_ID"=207270
2 1 2 4 2 28,686 2 1 2 29 2 5 2 INDEX RANGE SCAN INDEX BROIL_FEED.CREDIT_MRCDATA_IDX Access Predicates: "CM1"."RUN_ID"=:B1 AND "CM1"."RISK_TYPE"='TVReport' AND "CM1"."TRADE_NAME"=:B2
3 1 3 4 3 29,086 3 2 3 58 3 5 3 INDEX RANGE SCAN INDEX BROIL_FEED.CREDIT_MRCDATA_IDX Access Predicates: "CM2"."RUN_ID"=:B1 AND "CM2"."RISK_TYPE"='Delta' AND "CM2"."TRADE_NAME"=:B2
4 1 4 4 4 29,086 4 2 4 58 4 5 4 INDEX RANGE SCAN INDEX BROIL_FEED.CREDIT_MRCDATA_IDX Access Predicates: "CM3"."RUN_ID"=:B1 AND "CM3"."RISK_TYPE"='Issuer' AND "CM3"."TRADE_NAME"=:B2
23 1 23 106 23 2,320,930 23 1 23 316 23 149 23 WINDOW SORT
22 22 22 22 22 22 22 FILTER Filter Predicates: NOT EXISTS (SELECT /*+ */ 0 FROM (SELECT /*+ CACHE_TEMP_TABLE ("T1") */ "C0" "TRADENAME" FROM "SYS"."SYS_TEMP_0FD9D6638_7866E0A0" "T1") "ERRORED_TRADES" WHERE LNNVL("TRADENAME"<>:B1))
19 1 19 101 19 2,313,658 19 2 19 632 19 144 19 HASH JOIN OUTER Access Predicates: "THEDATA"."BUCKET"="TENOR"(+)
17 1 17 12 17 252,229 17 2 17 598 17 17 17 NESTED LOOPS OUTER
14 1 14 10 14 233,806 14 2 14 442 14 14 14 VIEW BROIL_FEED.
13 1 13 5 13 90,069 13 2 13 174 13 14 13 SORT UNIQUE
12 12 12 12 12 12 12 UNION-ALL
8 1 8 5 8 36,349 8 1 8 89 8 6 8 TABLE ACCESS BY INDEX ROWID TABLE BROIL_FEED.CREDIT_MRCDATA Filter Predicates: "CM"."RISK_TYPE"='Delta' OR "CM"."RISK_TYPE"='TVReport' OR "CM"."RISK_TYPE"='Issuer' AND "CM"."SHOCK"=0
7 1 7 4 7 28,686 7 1 7 7 5 7 INDEX RANGE SCAN INDEX BROIL_FEED.CREDIT_MRCDATA_IDX Access Predicates: "CM"."RUN_ID"=207270
11 1 11 5 11 143,737 11 1 11 85 11 8 11 HASH GROUP BY
10 1 10 5 10 36,297 10 1 10 85 10 6 10 TABLE ACCESS BY INDEX ROWID TABLE BROIL_FEED.CREDIT_MRCDATA
9 1 9 4 9 28,686 9 1 9 9 5 9 INDEX RANGE SCAN INDEX BROIL_FEED.CREDIT_MRCDATA_IDX Access Predicates: "RUN_ID"=207270 AND "RISK_TYPE"='Delta'
16 1 16 1 16 9,211 16 1 16 78 16 1 16 TABLE ACCESS BY INDEX ROWID TABLE BROIL_FEED.DIM_CURVE_MAPPING
15 1 15 0 15 1,900 15 1 15 15 0 15 INDEX UNIQUE SCAN INDEX (UNIQUE) BROIL_FEED.DIM_RISK_CURVENAME Access Predicates: "THEDATA"."RISK_CURVE_NAME"="DIM_CURVE_MAPPING"."RISK_CURVE_NAME"(+)
18 1 18 89 18 1,450,669 18 5,836 18 99,212 18 116 18 TABLE ACCESS FULL TABLE BROIL_FEED.DIM_TENOR
21 1 21 5 21 7,271 21 1 21 77 21 5 21 VIEW BROIL_FEED. Filter Predicates: LNNVL("TRADENAME"<>:B1)
20 1 20 5 20 7,271 20 1 20 14 20 5 20 TABLE ACCESS FULL TABLE (TEMP) SYS.SYS_TEMP_0FD9D6638_7866E0A0 This is the explain plan for the query without the materialized hint:
Time IO Cost CPU Cost Cardinality Bytes Cost Plan
1 105 2,342,394 1 316 149 SELECT STATEMENT ALL_ROWS
20 1 20 105 20 2,342,394 20 1 20 316 20 149 20 WINDOW SORT
19 19 19 19 19 19 19 FILTER Filter Predicates: NOT EXISTS (SELECT /*+ */ 0 FROM "CREDIT_MRCDATA" "SYS_ALIAS_6" WHERE ( NOT EXISTS (SELECT /*+ */ 0 FROM "CREDIT_MRCDATA" "CM1" WHERE "CM1"."TRADE_NAME"=:B1 AND "CM1"."RISK_TYPE"='TVReport' AND "CM1"."RUN_ID"=:B2) OR NOT EXISTS (SELECT /*+ */ 0 FROM "CREDIT_MRCDATA" "CM2" WHERE "CM2"."TRADE_NAME"=:B3 AND "CM2"."RISK_TYPE"='Delta' AND "CM2"."RUN_ID"=:B4) OR NOT EXISTS (SELECT /*+ */ 0 FROM "CREDIT_MRCDATA" "CM3" WHERE "CM3"."TRADE_NAME"=:B5 AND "CM3"."RISK_TYPE"='Issuer' AND "CM3"."RUN_ID"=:B6)) AND "RUN_ID"=207270 AND LNNVL("TRADE_NAME"<>:B7))
13 1 13 101 13 2,313,658 13 2 13 632 13 144 13 HASH JOIN OUTER Access Predicates: "THEDATA"."BUCKET"="TENOR"(+)
11 1 11 12 11 252,229 11 2 11 598 11 17 11 NESTED LOOPS OUTER
8 1 8 10 8 233,806 8 2 8 442 8 14 8 VIEW BROIL_FEED.
7 1 7 5 7 90,069 7 2 7 174 7 14 7 SORT UNIQUE
6 6 6 6 6 6 6 UNION-ALL
2 1 2 5 2 36,349 2 1 2 89 2 6 2 TABLE ACCESS BY INDEX ROWID TABLE BROIL_FEED.CREDIT_MRCDATA Filter Predicates: "CM"."RISK_TYPE"='Delta' OR "CM"."RISK_TYPE"='TVReport' OR "CM"."RISK_TYPE"='Issuer' AND "CM"."SHOCK"=0
1 1 1 4 1 28,686 1 1 1 1 5 1 INDEX RANGE SCAN INDEX BROIL_FEED.CREDIT_MRCDATA_IDX Access Predicates: "CM"."RUN_ID"=207270
5 1 5 5 5 143,737 5 1 5 85 5 8 5 HASH GROUP BY
4 1 4 5 4 36,297 4 1 4 85 4 6 4 TABLE ACCESS BY INDEX ROWID TABLE BROIL_FEED.CREDIT_MRCDATA
3 1 3 4 3 28,686 3 1 3 3 5 3 INDEX RANGE SCAN INDEX BROIL_FEED.CREDIT_MRCDATA_IDX Access Predicates: "RUN_ID"=207270 AND "RISK_TYPE"='Delta'
10 1 10 1 10 9,211 10 1 10 78 10 1 10 TABLE ACCESS BY INDEX ROWID TABLE BROIL_FEED.DIM_CURVE_MAPPING
9 1 9 0 9 1,900 9 1 9 9 0 9 INDEX UNIQUE SCAN INDEX (UNIQUE) BROIL_FEED.DIM_RISK_CURVENAME Access Predicates: "THEDATA"."RISK_CURVE_NAME"="DIM_CURVE_MAPPING"."RISK_CURVE_NAME"(+)
12 1 12 89 12 1,450,669 12 5,836 12 99,212 12 116 12 TABLE ACCESS FULL TABLE BROIL_FEED.DIM_TENOR
18 18 18 18 18 18 18 FILTER Filter Predicates: NOT EXISTS (SELECT /*+ */ 0 FROM "CREDIT_MRCDATA" "CM1" WHERE "CM1"."TRADE_NAME"=:B1 AND "CM1"."RISK_TYPE"='TVReport' AND "CM1"."RUN_ID"=:B2) OR NOT EXISTS (SELECT /*+ */ 0 FROM "CREDIT_MRCDATA" "CM2" WHERE "CM2"."TRADE_NAME"=:B3 AND "CM2"."RISK_TYPE"='Delta' AND "CM2"."RUN_ID"=:B4) OR NOT EXISTS (SELECT /*+ */ 0 FROM "CREDIT_MRCDATA" "CM3" WHERE "CM3"."TRADE_NAME"=:B5 AND "CM3"."RISK_TYPE"='Issuer' AND "CM3"."RUN_ID"=:B6)
14 1 14 4 14 28,736 14 1 14 19 14 5 14 INDEX RANGE SCAN INDEX BROIL_FEED.CREDIT_MRCDATA_IDX Access Predicates: "RUN_ID"=207270 Filter Predicates: LNNVL("TRADE_NAME"<>:B1)
15 1 15 4 15 28,686 15 1 15 29 15 5 15 INDEX RANGE SCAN INDEX BROIL_FEED.CREDIT_MRCDATA_IDX Access Predicates: "CM1"."RUN_ID"=:B1 AND "CM1"."RISK_TYPE"='TVReport' AND "CM1"."TRADE_NAME"=:B2
16 1 16 4 16 29,086 16 2 16 58 16 5 16 INDEX RANGE SCAN INDEX BROIL_FEED.CREDIT_MRCDATA_IDX Access Predicates: "CM2"."RUN_ID"=:B1 AND "CM2"."RISK_TYPE"='Delta' AND "CM2"."TRADE_NAME"=:B2
17 1 17 4 17 29,086 17 2 17 58 17 5 17 INDEX RANGE SCAN INDEX BROIL_FEED.CREDIT_MRCDATA_IDX Access Predicates: "CM3"."RUN_ID"=:B1 AND "CM3"."RISK_TYPE"='Issuer' AND "CM3"."TRADE_NAME"=:B2 And this is what the process is running:
Time IO Cost CPU Cost Cardinality Bytes Cost Plan
149 SELECT STATEMENT ALL_ROWS
20 1 20 105 20 2,342,394 20 1 20 316 20 149 20 WINDOW SORT
19 19 19 19 19 19 19 FILTER Filter Predicates: IS NULL
13 1 13 101 13 2,313,658 13 2 13 632 13 144 13 HASH JOIN OUTER Access Predicates: "THEDATA"."BUCKET"="TENOR"
11 1 11 12 11 252,229 11 2 11 598 11 17 11 NESTED LOOPS OUTER
8 1 8 10 8 233,806 8 2 8 442 8 14 8 VIEW
7 1 7 5 7 90,069 7 2 7 174 7 14 7 SORT UNIQUE
6 6 6 6 6 6 6 UNION-ALL
2 1 2 5 2 36,349 2 1 2 89 2 6 2 TABLE ACCESS BY INDEX ROWID TABLE BROIL_FEED.CREDIT_MRCDATA Filter Predicates: (INTERNAL_FUNCTION("CM"."RISK_TYPE") OR ("CM"."RISK_TYPE"='Issuer' AND "CM"."SHOCK"=0))
1 1 1 4 1 28,686 1 1 1 1 5 1 INDEX RANGE SCAN INDEX BROIL_FEED.CREDIT_MRCDATA_IDX Access Predicates: "CM"."RUN_ID"=207268
5 1 5 5 5 143,737 5 1 5 85 5 8 5 HASH GROUP BY
4 1 4 5 4 36,297 4 1 4 85 4 6 4 TABLE ACCESS BY INDEX ROWID TABLE BROIL_FEED.CREDIT_MRCDATA
3 1 3 4 3 28,686 3 1 3 3 5 3 INDEX RANGE SCAN INDEX BROIL_FEED.CREDIT_MRCDATA_IDX Access Predicates: "RUN_ID"=207268 AND "RISK_TYPE"='Delta'
10 1 10 1 10 9,211 10 1 10 78 10 1 10 TABLE ACCESS BY INDEX ROWID TABLE BROIL_FEED.DIM_CURVE_MAPPING
9 9 0 9 1,900 9 1 9 9 0 9 INDEX UNIQUE SCAN INDEX (UNIQUE) BROIL_FEED.DIM_RISK_CURVENAME Access Predicates: "THEDATA"."RISK_CURVE_NAME"="DIM_CURVE_MAPPING"."RISK_CURVE_NAME"
12 1 12 89 12 1,450,669 12 5,836 12 99,212 12 116 12 TABLE ACCESS FULL TABLE BROIL_FEED.DIM_TENOR
18 18 18 18 18 18 18 FILTER Filter Predicates: ( IS NULL OR IS NULL OR IS NULL)
14 1 14 4 14 28,736 14 1 14 19 14 5 14 INDEX RANGE SCAN INDEX BROIL_FEED.CREDIT_MRCDATA_IDX Access Predicates: "RUN_ID"=207268 Filter Predicates: LNNVL("TRADE_NAME"<>:B1)
15 1 15 4 15 28,686 15 1 15 29 15 5 15 INDEX RANGE SCAN INDEX BROIL_FEED.CREDIT_MRCDATA_IDX Access Predicates: "CM1"."RUN_ID"=:B1 AND "CM1"."RISK_TYPE"='TVReport' AND "CM1"."TRADE_NAME"=:B2
16 1 16 4 16 29,086 16 2 16 58 16 5 16 INDEX RANGE SCAN INDEX BROIL_FEED.CREDIT_MRCDATA_IDX Access Predicates: "CM2"."RUN_ID"=:B1 AND "CM2"."RISK_TYPE"='Delta' AND "CM2"."TRADE_NAME"=:B2
17 1 17 4 17 29,086 17 2 17 58 17 5 17 INDEX RANGE SCAN INDEX BROIL_FEED.CREDIT_MRCDATA_IDX Access Predicates: "CM3"."RUN_ID"=:B1 AND "CM3"."RISK_TYPE"='Issuer' AND "CM3"."TRADE_NAME"=:B2 P.S., Forgot to mention - my database is 10.2.0.2.
Message was edited by:
Boneist -
Hi,
I am getting error while creating virtual machine from Azure REST management API. Could someone please point me what wrong I am POSTing in below XML
ERROR ---
<Error xmlns="http://schemas.microsoft.com/windowsazure" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><Code>InvalidXmlRequest</Code><Message>The request body's XML was invalid or not correctly specified.</Message></Error>
" <Deployment xmlns=\"http://schemas.microsoft.com/windowsazure\" xmlns:i=\"http://www.w3.org/2001/XMLSchema-instance\">" +
" <Name>SomeName</Name>" +
" <DeploymentSlot>Production</DeploymentSlot>" +
" <Label>SomeLabel</Label>" +
" <RoleList>" +
" <Role>" +
" <RoleName>SomeRoleName</RoleName>" +
" <RoleType>PersistentVMRole</RoleType>" +
" <ConfigurationSets>" +
" <ConfigurationSet i:type=\"WindowsProvisioningConfigurationSet\">" +
" <ConfigurationSetType>WindowsProvisioningConfiguration</ConfigurationSetType>" +
" <ComputerName>SomeCompName</ComputerName>" +
" <AdminPassword>Admin098</AdminPassword>" +
" <EnableAutomaticUpdates>true</EnableAutomaticUpdates>" +
" <ResetPasswordOnFirstLogon>false</ResetPasswordOnFirstLogon>" +
" </ConfigurationSet>" +
" <ConfigurationSet i:type=\"NetworkConfigurationSet\">" +
" <ConfigurationSetType>NetworkConfiguration</ConfigurationSetType>" +
" <InputEndpoints>" +
" <InputEndpoint>" +
" <LocalPort>3389</LocalPort>" +
" <Name>RemoteDesktop</Name>" +
" <Protocol>tcp</Protocol>" +
" </InputEndpoint>" +
" </InputEndpoints>" +
" </ConfigurationSet>" +
" </ConfigurationSets>" +
" <OSVirtualHardDisk>" +
" <DiskName>SomeDiskName-0-20121007173943</DiskName>" +
" <MediaLink>http://portalvhdsrx7q659n2n5j2.blob.core.windows.net/public/myvhd0008980.vhd</MediaLink>" +
" <SourceImageName>MSFT__Win2K8R2SP1-Datacenter-201208.01-en.us-30GB.vhd</SourceImageName>" +
" </OSVirtualHardDisk>" +
" <RoleSize>Small</RoleSize>" +
" </Role>" +
" </RoleList>" +
" </Deployment>"I have tried adding admin user name as well to the xml but still get same error.Please suggestthe format of the request body is:
<Deployment xmlns="http://schemas.microsoft.com/windowsazure" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Name>name-of-deployment</Name>
<DeploymentSlot>deployment-environment</DeploymentSlot>
<Label>identifier-of-deployment</Label>
<RoleList>
<Role>
<RoleName>name-of-the-virtual-machine</RoleName>
<RoleType>PersistentVMRole</RoleType>
<VMImageName>name-of-vm-image</VMImageName>
<ConfigurationSets>
<ConfigurationSet i:type="WindowsProvisioningConfigurationSet">
<ConfigurationSetType>WindowsProvisioningConfiguration</ConfigurationSetType>
<ComputerName>name-of-computer</ComputerName>
<AdminPassword>administrator-password</AdminPassword>
<EnableAutomaticUpdates>enable-updates</EnableAutomaticUpdates>
<TimeZone>time-zone</TimeZone>
<DomainJoin>
<Credentials>
<Domain>domain-to-join</Domain>
<Username>user-name-in-the-domain</Username>
<Password>password-for-the-user-name</Password>
</Credentials>
<JoinDomain>domain-to-join</JoinDomain>
<MachineObjectOU>distinguished-name-of-the-ou</MachineObjectOU>
</DomainJoin>
<StoredCertificateSettings>
<CertificateSetting>
<StoreLocation>LocalMachine</StoreLocation>
<StoreName>name-of-store-on-the-machine</StoreName>
<Thumbprint>certificate-thumbprint</Thumbprint>
</CertificateSetting>
</StoredCertificateSettings>
<WinRM>
<Listeners>
<Listener>
<Protocol>listener-protocol</Protocol>
</Listener>
<Listener>
<CertificateThumbprint>certificate-thumbprint</CertificateThumbprint>
<Protocol>listener-protocol</Protocol>
</Listener>
</Listeners>
</WinRM>
<AdminUsername>name-of-administrator-account</AdminUsername>
<CustomData>base-64-encoded-data</CustomData>
</ConfigurationSet>
<ConfigurationSet i:type="LinuxProvisioningConfigurationSet">
<ConfigurationSetType>LinuxProvisioningConfiguration</ConfigurationSetType>
<HostName>host-name-for-the-virtual-machine</HostName>
<UserName>new-user-name</UserName>
<UserPassword>password-for-the-new-user</UserPassword>
<DisableSshPasswordAuthentication>password-authentication</DisableSshPasswordAuthentication>
<SSH>
<PublicKeys>
<PublicKey>
<FingerPrint>certificate-fingerprint</FingerPrint>
<Path>SSH-public-key-storage-location</Path>
</PublicKey>
</PublicKeys>
<KeyPairs>
<KeyPair>
<FingerPrint>certificate-fingerprint</FinguerPrint>
<Path>SSH-public-key-storage-location</Path>
</KeyPair>
</KeyPairs>
</SSH>
<CustomData>base-64-encoded-data</CustomData>
</ConfigurationSet>
<ConfigurationSet>
<ConfigurationSetType>NetworkConfiguration</ConfigurationSetType>
<InputEndpoints>
<InputEndpoint>
<LoadBalancedEndpointSetName>name-of-load-balanced-set</LoadBalancedEndpointSetName>
<LocalPort>local-port-number</LocalPort>
<Name>name-of-endpoint</Name>
<Port>external-port-number</Port>
<LoadBalancerProbe>
<Path>path-of-probe</Path>
<Port>port-assigned-to-probe</Port>
<Protocol>probe-protocol</Protocol>
<IntervalInSeconds>interval-of-probe</IntervalInSeconds>
<TimeoutInSeconds>timeout-for-probe</TimeoutInSeconds>
</LoadBalancerProbe>
<Protocol>endpoint-protocol</Protocol>
<EnableDirectServerReturn>enable-direct-server-return</EnableDirectServerReturn>
<EndpointACL>
<Rules>
<Rule>
<Order>priority-of-the-rule</Order>
<Action>permit-rule</Action>
<RemoteSubnet>subnet-of-the-rule</RemoteSubnet>
<Description>description-of-the-rule</Description>
</Rule>
</Rules>
</EndpointACL>
</InputEndpoint>
</InputEndpoints>
<SubnetNames>
<SubnetName>name-of-subnet</SubnetName>
</SubnetNames>
<StaticVirtualNetworkIPAddress>ip-address</StaticVirtualNetworkIPAddress>
</ConfigurationSet>
</ConfigurationSets>
<ResourceExtensionReferences>
<ResourceExtensionReference>
<ReferenceName>name-of-reference</ReferenceName>
<Publisher>name-of-publisher</Publisher>
<Name>name-of-extension</Name>
<Version>version-of-extension</Version>
<ResourceExtensionParameterValues>
<ResourceExtensionParameterValue>
<Key>name-of-parameter-key</Key>
<Value>parameter-value</Value>
<Type>type-of-parameter</Type>
</ResourceExtensionParameterValue>
</ResourceExtensionParameterValues>
<State>state-of-resource</State>
</ResourceExtensionReference>
</ResourceExtensionReferences>
<AvailabilitySetName>name-of-availability-set</AvailabilitySetName>
<DataVirtualHardDisks>
<DataVirtualHardDisk>
<HostCaching>caching-mode</HostCaching>
<DiskLabel>label-of-data-disk</DiskLabel>
<DiskName>name-of-disk</DiskName>
<Lun>logical-unit-number</Lun>
<LogicalDiskSizeInGB>size-in-gb-of-data-disk</LogicalDiskSizeInGB>
<MediaLink>path-to-vhd</MediaLink>
</DataVirtualHardDisk>
</DataVirtualHardDisks>
<OSVirtualHardDisk>
<HostCaching>caching-mode</HostCaching>
<DiskLabel>label-of-operating-system-disk</DiskLabel>
<DiskName>name-of-disk</DiskName>
<MediaLink>path-to-vhd</MediaLink>
<SourceImageName>name-of-source-image</SourceImageName>
</OSVirtualHardDisk>
<RoleSize>size-of-virtual-machine</RoleSize>
<ProvisionGuestAgent>install-an-agent</ProvisionGuestAgent>
</Role>
</RoleList>
<VirtualNetworkName>name-of-virtual-network</VirtualNetworkName>
<Dns>
<DnsServers>
<DnsServer>
<Name>dns-name</Name>
<Address>dns-ip-address</Address>
</DnsServer>
</DnsServers>
</Dns>
</Deployment>
for more details please see
this link.
hope this helps! -
I started having issues with CC a couple months ago out of no where. Mostly just with updates from CC for the apps.
I did the suggested re-installs of CC and then had to try to update by fully re-installing apps and I had funciontality but errors trying to update Illustrator and most of the installed apps did not show up in the CC interface.
Now I try to do a quick update to a site thru Muse and it tells me that it would not validate my subscription and would be canceled in 2 days.
I again followed instructions on Adobe to delete a couple of folders and try to re start Muse.
Now I get an unexpected error and cnont use the program.
I test out CC for updates and the Muse app shows up to date, Bridge app surprisingly updated fine, and as expected, once again, Illustrator errors out on the update and still my CC app list is not correct so I honestly dont know what updates I have to do on the other programs.
I checked my subscription details and everything is fine.
Not having the ability to update efficiently from CC is not a huge deal as long as I can use the programs to work. Not being abel to work because of some programing hiccup is NOT ACCEPTABLE.
Anybody have any possible paths to fix these latest issues?
Should I start by wiping the machine clean of any installs and then completely try to re-install everything?
what a pain.UPDATE:
I got home tonight and tried to open up Muse.
This time it opened up the login screen and actually made it past the point it errored at previously.
Illustrator update stilll gives an Error 8. -
VI Server - Open VI Reference is using local path, not remote
First time posting to NI Developer Zone, so bear with me.
I have a PXI-1050 chassis with a PXI-8187 controller that runs LabView RT. I have set up this PXI system to utilize a VI server on port 3363 and opened access to my host PC which runs LabView 8.2 with the RT module.
I am having trouble openning a remote VI using the VI Server and the "Open VI Reference" function. I am fairly certain that the VI server is connecting using the "Open Application Reference" function, but it seems that the vi I wish to run cannot be found.
Here is the error that is thrown back to me
"Error 7
Possible reason(s):
LabVIEW: File not found. The file might have been moved or deleted, or the file path might be incorrectly formatted for the operating system. For example, use \ as path separators on Windows, : on Mac OS, and / on Linux. Verify that the path is correct using the command prompt or file explorer.
=========================
NI-488: Non-existent board.
VI Path: D:\LabView_Projects\VI_Server_Test_Project\/ni-rt/startup/temp_1.vi"
You will notice that the "Open VI Reference" is prepending the local path 'D:\LabView_Projects\VI_Server_Test_Project\' to my remote path. If I specify the path using Windows style path, e.g. 'c:\ni-rt\startup\temp_1.vi', again the remote VI cannot be found. I think I am missing something trivial, but I don't know what it is.
Thoughts?Several things:
1. When u open the vi reference u must use and invoke node to make the Run vi, if you dont make it the vi is loaded but not running.
2. Insert correctly the path on your RT and the IP of your RT target
3. is better to have the variables on your HOST than on your RT becoz of two things:
- Not to use resources of your RT system as memory etc... is better to use the host ones that are more available
- The library needs to be deployed when running the vi on the host. If you put it on the RT it would need to be redeployed, so it is better to leave it on the host becoz of that.
4. Then as the library is on the host it needs to be deployed with the proper invoke node inside a stacked sequence to ensure is the first thing you do.
5. The enable RT fifo on the variables is used only to pass data between different vi's or processes inside the RT, it has no sense to enable it when sharing data RT - Host coz it is not possible, Shared variable work with TCP/IP not as RT FIFO.
See the attached vi for extra info.
I give u these extra links for your info:
http://digital.ni.com/public.nsf/websearch/F4010DD5C8D1B13D862565BC007384E9?OpenDocument
http://digital.ni.com/public.nsf/websearch/04D9A85B6967EE87862571140065EEC6?OpenDocument
http://digital.ni.com/public.nsf/websearch/48D244EC86971D3986256BD4005CCC28?OpenDocument
Regards,
Jaime Cabrera
NI Applications Engineering Spain
Attachments:
Compartida.zip 66 KB -
Delivery Date in Inbound delivery document not correct
Dear all,
I have a question with regards to the wrong delivery date appear in our inbound delivery.
Our inbound delivery is created via EDI output in the outbound delivery of a standard SAP cross company stock transport order. The delivery date in the inbound delivery is not correct from a business point of view.
+The correct delivery date in the inbound delivery document should be [the Actual GI date field in the outbound delivery] + [transport time (i.e. route field) in the outbound delivery].+
Either way (i.e. the Actual GI date field is later/earlier than the planned GI in the outbound delivery), the delivery date in the inbound delivery is also wrong.
Do you have any idea? We have tried to change the inbound delivery type EL by setting a flag (i.e. X) in the rescheduling (TVLK-NEUTE), and it still doesnu2019t work.
Please help.
Thanks.
TuffDoes anyone know this problem?
appreciate some feedback. -
My website background image color is not correct in Safari????
On my website my background jpg image that appears in bottom left corner is not correct in Safari. In ALL other web browsers (Firefox 3.1, IE, Opera, etc) my website looks fine! So it must be a setting or error in Safari. The jpg image in question has a background color of 191919 (dark gray) and it matches in Firefox and IE, etc... but not in Safari? In Safari my jpg image is a lighter color than rest of webpage. My header is the same type of file (jpg with #191919 background) and it looks fine... THAT is the strange part!
Is this a known issue with safari or am I doing something wrong? I have tried no color management on the image in Photoshop and with color management in Photoshop (when I save for web) and this doesn't seem to matter. It is driving me crazy. My website looks silly in Safari with this error. www.eXacteXposure.com is the website.
Davidflynlyons2 wrote:
On my website my background jpg image that appears in bottom left corner is not correct in Safari. ... My website looks silly in Safari with this error. www.eXacteXposure.com is the website.
I'm not seeing that problem here, either (Safari 3.1.2 in Mac OS X 10.5.5). The image at the bottom left corner matches the background nicely.
Have you looked at your site on more than one Mac running Safari? My thinking at this point is that your web site and images are fine, but there's a problem with your installation of Safari. Do you have any third party Safari "enhancers" or hacks installed? -
Excise not captured in the MIGO & Tax calculation is not correct in the PO.
Excise Settings completed. 02.11.2007
a) Configuration done as per J05 Building block.( Tax Procedure TAXINN)
b) Maintained J1ID, all steps.
c) Maintained tax code in FTXP.
d) FV11  Maintained for Material, vendor, Plant in combination with Tax code input tax maintained in FTXP.
e) Checked CIN Health, all tick are green.
f) Given all G/L accounts for Excise Transaction Type (ETT)
g) Maintained all number Ranges.
Issue  1)
Tax calculation is not correct in the PO, tax tab
a) JMIP is appearing 12% in condition amount, (as per condition record) but condition value is Zero, (Not calculated by the FI Pricing procedure). Screen shot for Pricing procedure, PO taxes and condition record given below.
b) JIPC Sales tax 4% in condition amount (as per condition record) , calculated by the FI Pricing procedure is 8%, condition value is Rs 8 instead of Rs 4
Fi pricing procedure.
PO Taxes  wrong Tax calculated
FV11 Condition record
Issue  2)
While creating Goods receipt aginst PO (Tax code V2 in PO). Movement type 101, Excise tab appears at Header and Item level and we need to put the Vendors Excise Invoice and date, nothing is copied from the PO for Excise duty & sales tax.
Now we put the values for ED and Sales tax manually in the MIGO and saved the document. While display material document, excise tab is not there i.e. no excise related activiy is captured here in goods receipt.
If you need more detail, please revert on cell 093295 53235.
Please suggest.
Manish Gupta
93295 53235
[email protected]Hai,
1.Check the condition types JMIP & JMIC in IMG - Financial accting New - FI AC Global settings - Taxes on sales and purchases - Check calculation procedure - Define condition type.
2.The condition types you have used are defined for non deductible taxes i.e., it gets inventorised, added to the material account.And also the accural key assigned to this condition types are NVV - defined for non ded input taxes.
3.Instead the condition types defined by SAP Standard system for BED & ST are JMOP & JIPS and the accurals assigned to this are VS1 & VS5.
If you want clear details mail the screen shots to my id [email protected] -
my macbook pro was first installed with leopard and bootcamp 3.2 under windows 7. After update to lion it is no more possible to update bootcamp to 3.3. or 4.0. The report: The installation source ist not correct. What can i do?
auf Deutsch:
Auf meinem Macbook pro war Leopard und bootcamp 3.2 unter windows 7 installiert. Nach dem update auf lion kann bootcamp nicht mehr upgedatet werden. Weder auf 3.3. noch auf 4.0. Folgende Fehlermeldung kommt: Boot camp Dienste: Das installierte Produkt stimmt nicht mit der Installationsquelle überein. ... Was kann ich tun?It means what it says. The "computer person" formatted it wrongly/ unsuitably. it needs to be formatted again.
Error "Case-sensitive drives not supported" or similar install error | Mac OS
Mylenium -
Error "Run-Time Error '76' PAth Not Found" in XML Publisher Desktop
Hi All,
we are trying to preview the PDF output in the XML Publisher Desktop Application.
We are able to LOAD the data successfully.
But whenever we try to preview the output, we are getting an error saying "Run-Time Error '76' Path Not Found".
We are using the XMLP Desktop application on the Client Machine.(Citrix)
Can anybody help us in this regard?
Thanks,
Sachin.Hi.
You are posting in the wrong forum.
Please post to the BI Publisher Forum:
BI Publisher -
LSMW by BI : Unable to specify file in step 7; logical Path not assigned
Hi,
I'm trying to uplaod HR DATA using object 0555 and method 0000 for Program RPDUSTD00 using LSMW Batch Input Method.
In step 7 when i specify file which tab delimited text file at front end pc(at my pc) let say c:\test.txt and save I got error message 'Logical path not assigned'.
Please suggest what I'm missing and what i need to do to get it correct.
Thanks,
Anshuman.Hi,
There are other files specified in the screen for imported and converted data. These files must be accessible on SAP application server. If the logical file names are not created use physical ones lik /tmp/blabla.lsmw.read etc.
Make sure you use different files for different objects.
Kind regards
Michael
Maybe you are looking for
-
I updated my Numbers for Mac only to find out that there are several changes that make it less appealing for me so far (and I don't think it's only the learning curve). Questions: a) can I somehow edit the location of where I can find all the sheets
-
How can I edit a pdf file that was imported?
I want to edit a pdf/jpeg file that I imported/placed in AI? Can that be done?
-
Compiler Error Message: BC30451: Name 'UserEmail' is not declared.
Have the message when I test the page. Anyone sugest a solution please? Compiler Error Message: BC30451: Name 'UserEmail' is not declared. Page code below. <%@ Page Language="VB" ContentType="text/html" ResponseEncoding="iso-8859-1" %> <%@ Register T
-
OSX 10.5.8 photosmart 7525 needs osx 10.6
have older mac running 10.5.8 bought new HP/Photosmart 7525 last weekend trying to set up /not compatable with me O/S need to run on OSX10.6 NEED HELP ANY sugestion short of buying new mac
-
Dear David Kastendick! the Adobe live "support" is flat out useless! as mentioned before the operators don't speak English and they have serious lack of knowledge. i was first unable to install cloud desktop,i even gave the "expert" control over my d