Help on the below problem..
Hi all,
I've a SQL query which is written to retrive the data from 3 tables & 2 views.Again the 2 views are based on 3 tables each. When i execute the query in explain plan it is giving cost = 8870. i've rebuild all the indexes which are using in where clause of all the tables.Finally i've reduced the cost to 3347.But still it is taking much time to execute.
So any one give the complete details of "What are the steps to be taken(follow) while tuning this type of queries. What i've to do in this scenario to reduce the time taking.Indexes are there in all the tables.But 2 tables are scaning full though indexes are there.
Using Oracle 10g ver.
Executing in TOAD 8.1.6 ver.
Please help me on this. And if possible send me some documents.
Regards,
grace
gracy wrote:
I've a SQL query which is written to retrive the data from 3 tables & 2 views.Again the 2 views are based on 3 tables each. When i execute the query in explain plan it is giving cost = 8870. i've rebuild all the indexes which are using in where clause of all the tables.Finally i've reduced the cost to 3347.But still it is taking much time to execute.What is the unit of cost? We know it is not US dollars.. so what is it then? And just what does a cost of 8870 mean? And how much better is that than a cost of 3347?
Do you think that cost can be plotted on a linear scale? If so, then the cost of 3347 should be 3.7 times faster/better than the cost of 8870.
But it is not. Why? Because of the assumption what cost mean... and not knowing what it actually means and whether or not it can be used as an effective means to determine how much better performance is, why use it?
Surely, you need to know WHAT a number means before using that number to determine the better/faster option?
Bottom line - do not use cost unless you are intimately familiar with exactly what you are dealing with. Rather deal with what you can see and measure effectively and understand easily. And this is I/O. How much I/O is needed using SQL A versus how much I/O is needed using SQL B.
I/O is the most expensive operation in a database. The less I/O you do, the faster the SQL is. Which is we have features like indexes, partitions, clusters and so on - all these are methods to reduce I/O. To provide better/smaller I/O paths for the database to find the rows that we are interested in.
And surely dealing with I/O gives you a far better understanding of the impact of a query than a cost that you do not even know the unit type of?
Similar Messages
-
I need help on the below problem..
Hi All,
I need help on the below problem..
I've 2 Schemas called
1. MAXIMO and DBLink is GQMFOF
2. GQMMGR adn DBLink is MAXFOFNC
Now i would likw to retrive the data from both the schemas,
i.e some columns from WORKORDER table of maximo schema and some columns from ESTIMATE_HEADER table
of GQMMGR schema..
I'm trying to get the data using DB links, but it is giving TABLE/VIEW doesn't exist.
Please help me on this.
Regards,
gr.Does your user has the SELECT privelage granted for accessing those tables?
-
Need help on the below query.
Hi All,
I've a query given below..
SELECT W.WONUM,
W.STATUS,
WS.CHANGEDATE,
EH.OLD_RATE
FROM
WORKORDER W,
WOSTATUS WS,
ESTIMATE_HEADER@GQMFOF EH
WHERE WS.CHANGEDATE BETWEEN '01-Oct-2009' AND '1-Nov-2009'
AND W.WONUM = WS.WONUM
AND EH.OLD_RATE = 'N'
AND WS.WOSTATUS = 'CLOSE';
I would like to get All the data which status =closed in the month of Oct for Old rate,
So for this i am writing the query above. But not getting the o/p.
It is giving me that " Table/View doesn't exist.
There 2 schemas MAXIMO,GQMMGR..
DBlinks are GQMFOF,MAXFOFNC..
Can anyone help me while writing the above query...
Regards,
gr.A question was asked in your other thread. But the problem was you dint care to give an answer.
Dont open duplicate post.
I need help on the below problem.. -
Need help in the below command excution
Hi Champs,
Can any one help with the below command, It is not working.
Get-CsUser | Where-Object {$_.dialplan -eq "USDAL"} | Grant-CsLocationPolicy -PolicyName "Dallas Location Policy"
Regards
VijendharYou could try something like:
$userlist = Get-CsUser -ResultSize Unlimited
foreach ($user in $userlist)
if ($user.dialplan -eq $Null)
$pool = (Get-csdialplan | Where-Object {$_.Identity -like ("*" + $user.RegistrarPool)})
if ($pool.length -ge "1") {write-host ("Pool simple name: " + $pool.simplename + ", Identity: " + $pool.identity)}
if (($pool.simplename -eq "USDal") -or ($pool.identity -eq "USDal"))
Write-host "Please Grant location policy to: $user.Displayname"
# Get-csuser $user.identity | Grant-CsLocationPolicy -PolicyName "Dallas Location Policy"
$pool = $Null
Use at your own risk as I haven't had a chance to test, I have commented out the grant so you can test prior to changes.
Please mark posts as answers/helpful if it answers your question.
Blog
Lync Validator - Used to assist in the validation and documentation of Lync Server 2013. -
Need help on the below query or Pl-SQL
Hello Every one,
Please let me know if some one can help me out with the below scenario either in pl-sql or sql.
Source Data:
0000253800 0.25 0845A 0900A
0000253800 1 0900A 1000A
0000253800 1 1300P 1400P
0000253800 1 1500P 1600P
0000253800 1 1600P 1700P
Output needed:
0000253800 1.25 0845A 1000A
0000253800 1 1300P 1400P
0000253800 2 1500P 1700P
Thanks in Advance....
Edited by: user12564103 on Dec 11, 2011 5:54 PMHi,
Welcome to the forum!
Depending on your data and your requirements:
WITH got_times AS
SELECT column_1, column_2, column_3, column_4
, TO_DATE ( substr (column_3, 1, 4)
, 'HH24MI'
) AS time_3
, TO_DATE ( SUBSTR (column_4, 1, 4)
, 'HH24MI'
) AS time_4
FROM table_x
, got_grp_id AS
SELECT column_1, column_2, column_3, column_4
, time_3, time_4
, time_4 - SUM (time_4 - time_3) OVER ( PARTITION BY column_1
ORDER BY time_3
) AS grp_id
FROM got_times
SELECT column_1
, SUM (column_2) AS sum_2
, MIN (column_3) KEEP (DENSE_RANK FIRST ORDER BY time_3)
AS min_3
, MAX (column_4) KEEP (DENSE_RANK LAST ORDER BY time_4)
AS max_4
FROM got_grp_id
GROUP BY column_1
, grp_id
ORDER BY column_1
, grp_id
;Whenever you have a problem, please post CREATE TABLE and INSERT statements for your sample data, as well as the results you want from that data. Explain, with specific examples, how you get the results you want from that data.
Always say which version of Oracle you're using. The query above will work in Oracle 9.1 (and higher).
Since this is your first thread, I'll do this for you:
CREATE TABLE table_x
( column_1 NUMBER
, column_2 NUMBER
, column_3 VARCHAR2 (5)
, column_4 VARCHAR2 (5)
INSERT INTO table_x (column_1, column_2, column_3, column_4) VALUES (253800, .25, '0845A', '0900A');
INSERT INTO table_x (column_1, column_2, column_3, column_4) VALUES (253800, 1, '0900A', '1000A');
INSERT INTO table_x (column_1, column_2, column_3, column_4) VALUES (253800, 1, '1300P', '1400P');
INSERT INTO table_x (column_1, column_2, column_3, column_4) VALUES (253800, 1, '1500P', '1600P');
INSERT INTO table_x (column_1, column_2, column_3, column_4) VALUES (253800, 1, '1600P', '1700P');Column_1 identifes a day.
Column_2 is an amount that I need to total.
Column_3 and column_4 are starting and ending times. We can assume that they are all valid times (in 'HH24MI' format, plus a redundant 'A' or 'P') on the same day, column_3 is always less than column_4, and that the range of two rows for the same value of column_1 never overlap. Column_4 of one row may be equal to column_3 of another rows with the same column_1, but it will never be greater.
Each row of the output represent a contiguous group of rows (each ending exactly when the next one begins) with the same column_1, with the common column_1, the total of column_2, and the range of the group.
For example, the first two rows for a single group, because they have the same value for column_1, and one ends exactly when the other begins (at 9:00 AM). This group represents day 253800, from 8:45 AM to 10:00 AM. The totla of column_2 fro this group is .25 + 1 = 1.25.
The next row (from 1:00 PM to 2:00 PM) is a group all by itself, because there is a gap one either side of it separating it from its nearest neighbor on the same day."
Of course, I'm guessing at lots of things.
Edited by: Frank Kulash on Dec 11, 2011 9:44 PM
Changed TO_DATE calls.
Edited by: Frank Kulash on Dec 11, 2011 9:52 PM
Added sample question. -
I want to run the below code for zone_id 1 to 12. How will I do that ?
Kindly help me on this.
DECLARE
CURSOR c1 IS SELECT item FROM [email protected];
CURSOR c2(tmp_item VARCHAR2) IS
SELECT location FROM rpm_zone_location WHERE zone_id = 1
MINUS
SELECT DISTINCT location from rpm_clearance WHERE item = tmp_item AND reset_ind = 1 and location in
(select location from rpm_zone_location where zone_id=1);
BEGIN
FOR i IN c1
LOOP
FOR j IN c2 (i.item)
LOOP
INSERT INTO RMS12.RPM_CLEARANCE
(CLEARANCE_ID,
CLEARANCE_DISPLAY_ID,
STATE,
REASON_CODE,
LOC_EXCEPTION_PARENT_ID,
PARENT_EXCEPTION_PARENT_ID,
CLEARANCE_RESET_ID,
RESET_IND,
ITEM,
DIFF_ID,
ZONE_ID,
LOCATION,
ZONE_NODE_TYPE,
EFFECTIVE_DATE,
OUT_OF_STOCK_DATE,
RESET_DATE,
CHANGE_TYPE,
CHANGE_AMOUNT,
CHANGE_CURRENCY,
CHANGE_PERCENT,
CHANGE_SELLING_UOM,
PRICE_GUIDE_ID,
VENDOR_FUNDED_IND,
FUNDING_TYPE,
FUNDING_AMOUNT,
FUNDING_AMOUNT_CURRENCY,
FUNDING_PERCENT,
SUPPLIER,
DEAL_ID,
DEAL_DETAIL_ID,
PARTNER_TYPE,
PARTNER_ID,
CREATE_DATE,
CREATE_ID,
APPROVAL_DATE,
APPROVAL_ID,
LOCK_VERSION)
SELECT
RPM_CLEARANCE_SEQ.Nextval,
'reset:'||CLEARANCE_DISPLAY_ID,
'pricechange.state.approved',
REASON_CODE,
LOC_EXCEPTION_PARENT_ID,
PARENT_EXCEPTION_PARENT_ID,
CLEARANCE_RESET_ID,
1,
ITEM,
DIFF_ID,
null,
c2.location,
0,
null,
OUT_OF_STOCK_DATE,
null,
CHANGE_TYPE,
CHANGE_AMOUNT,
CHANGE_CURRENCY,
CHANGE_PERCENT,
CHANGE_SELLING_UOM,
PRICE_GUIDE_ID,
VENDOR_FUNDED_IND,
FUNDING_TYPE,
FUNDING_AMOUNT,
FUNDING_AMOUNT_CURRENCY,
FUNDING_PERCENT,
SUPPLIER,
DEAL_ID,
DEAL_DETAIL_ID,
PARTNER_TYPE,
PARTNER_ID,
CREATE_DATE,
'RMS12',
APPROVAL_DATE,
'RMS12',
LOCK_VERSION
from rpm_clearance where zone_id=1 and item = j.item;
END LOOP;
COMMIT;
END LOOP;
END;It might be a good idea to post this again using the "code" button so that it's properly formatted. Take your time so that it's as accurate as possible. And don't forget to say at what point as the program executes this eligibility is being considered.
-
Please help me with the proper query for the below problem
Hi,
I have a table RATE which have two columns RT_DATE (date) and RATES(number).
This table have following data.
RT_DATE
RATES
1-JAN-2007
7
2-MAR-2008
7.25
5-JAN-2009
8
8-NOV-2009
8.5
9-JUN-2010
9
I wanted to get the rate of interest on 8-DEC-2009.
Output will be 8.5 as this given date is in between 8-NOV-2009 and 9-JUN-2010. Could you please help me with proper query?
Regards,
Aparna SHi,
That sounds like a job for the LAST function:
SELECT MIN (rates) KEEP (DENSE_RANK LAST ORDER BY rt_date) AS eff_rate
FROM rate
WHERE rt_date < 1 + DATE '2009-12-08'
MIN above means that, in case of a tie (that is, 2 or more rows with the exact same latest rt_date) the lowest rates from that latest rt_date will be returned. In rt_date is unique, then it doesn't matter if you use MIN or MAX, but syntax demands that you use some aggregate function there.
I hope this answers your question.
If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for your sample data, and also post the results you want from that data.
Point out where the statement above is getting the wrong results, and explain, using specific examples, how you get the right results from the given data in those places.
Always say which version of Oracle you're using (e.g., 11.2.0.2.0).
See the forum FAQ: https://forums.oracle.com/message/9362002#9362002 -
Hi i am experiencing the below problem. Any help please?
View Display Error
Odbc driver returned an error (SQLExecDirectW).
Error Details
Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 17001] Oracle Error code: 600, message: ORA-00600: internal error code, arguments: [qerixGetKey:optdesc], [], [], [], [], [], [], [], [], [], [], [] at OCI call OCIStmtExecute: WITH SAWITH0 AS (select sum(case when not T92539.UNIT_PRICE is null then 1 end ) as c1, sum(T92539.UNIT_PRICE) as c2, nvl(T148616.HIER3_NAME , 'Inventory organisation not in GL profit centre valueset') as c3, nvl(T148616.HIER5_CODE , 'Error') as c4, nvl(T148616.HIER5_NAME , 'Inventory organisation not in GL profit centre valueset') as c5, T92539.PURCH_ORDER_NUM as c6, T482458.DAY_DT as c7, T67704.PART_NUM as c8, T482651.GROUP_CONTRACT_FLAG as c9, T482651.GROUP_CONTRACT_DESCRIPTION as c10, T482651.STOCK_TYPE as c11, T92539.LINE_TEXT as c12, T92539.BLANKET_AGREEMENT_NUM as c13, T94274.SUPPLIER_PART_NUM as c14, T158070.NAME as c15, T482333.LOGIN as c16, T482295.LOGIN as c17 from W_USER_D T482295 /* Dim_W_USER_D_PO_Line_Changed */ , W_USER_D T482333 /* Dim_W_USER_D_PO_Line_Created */ , WC_GROUP_CONTRACT_D T482651 /* Dim_WC_GROUP_CONTRACT_D */ , W_DAY_D T482458 /* Dim_W_DAY_D_PO_Line_Created */ , W_LEDGER_D T146058 /* Dim_W_LEDGER_D */ , W_SUPPLIER_PRODUCT_D T94274 /* Dim_W_SUPPLIER_PRODUCT_D */ , W_BUSN_LOCATION_D T95031 /* Dim_W_BUSN_LOCATION_D_Plant */ left outer join W_HIERARCHY_D T148616 /* Dim_W_HIERARCHY_D_Segment2 */ On T95031.BUSN_LOC_NUM = T148616.HIER20_CODE and T148616.HIER_CODE in (1014150), W_PRODUCT_D T67704 /* Dim_W_PRODUCT_D */ , W_PURCH_COST_F T92539 /* Fact_W_PURCH_COST_F */ , W_STATUS_D T95642 /* Dim_W_STATUS_D_Purchase_Order_Status */ , W_PARTY_D T158070 /* Dim_W_PARTY_D_Supplier */ where ( T92539.X_POL_CREATED_BY_WID = T482333.ROW_WID and T92539.LEDGER_WID = T146058.ROW_WID and T92539.SUPPLIER_PROD_WID = T94274.ROW_WID and T67704.ROW_WID = T92539.PRODUCT_WID and T92539.X_POL_CHANGED_BY_WID = T482295.ROW_WID and T92539.APPROVAL_STATUS_WID = T95642.ROW_WID and T92539.SUPPLIER_WID = T158070.ROW_WID and T92539.PLANT_LOC_WID = T95031.ROW_WID and T92539.DELETE_FLG = 'N' and T92539.X_PO_LINE_CREATION_DATE_WID = T482458.ROW_WID and T92539.X_GROUP_CONTRACT_WID = T482651.ROW_WID and T95642.W_STATUS_CODE = 'APPROVED' and T146058.LEDGER_NAME = 'Arriva Bus Primary Ledger' and T482651.GROUP_CONTRACT_DESCRIPTION = 'Group Contract' and T482651.GROUP_CONTRACT_FLAG = 'On' and case when 'Arriva Bus Primary Ledger' = 'Arriva Bus Primary Ledger' then 'UK Bus' when 'Arriva Malta Primary Ledger' = 'Arriva Bus Primary Ledger' then 'Europe' else 'UK Bus' end = nvl(T148616.HIER1_NAME , 'Inventory organisation not in GL profit centre valueset') and (T95642.ROW_WID in (0) or T95642.W_STATUS_CLASS in ('PURCH_APPROVE')) and (T95031.ROW_WID in (0) or T95031.BUSN_LOC_TYPE in ('PLANT')) and (T158070.SUPPLIER_FLG in ('U', 'Y')) and T482458.DAY_DT between TO_DATE('2013-08-01 00:00:00' , 'YYYY-MM-DD HH24:MI:SS') and TO_DATE('2013-08-28 00:00:00' , 'YYYY-MM-DD HH24:MI:SS') ) group by T67704.PART_NUM, T92539.PURCH_ORDER_NUM, T92539.LINE_TEXT, T92539.BLANKET_AGREEMENT_NUM, T94274.SUPPLIER_PART_NUM, T158070.NAME, T482295.LOGIN, T482333.LOGIN, T482458.DAY_DT, T482651.GROUP_CONTRACT_DESCRIPTION, T482651.GROUP_CONTRACT_FLAG, T482651.STOCK_TYPE, nvl(T148616.HIER3_NAME , 'Inventory organisation not in GL profit centre valueset'), nvl(T148616.HIER5_CODE , 'Error'), nvl(T148616.HIER5_NAME , 'Inventory organisation not in GL profit centre valueset')), SAWITH1 AS (select sum(case when T95642.W_STATUS_CODE = 'APPROVED' then T92539.LINE_AMT - T92539.CANCELLED_AMT else 0 end ) as c1, sum(case when T95642.W_STATUS_CODE = 'APPROVED' then (T92539.DIST_QTY - T92539.CANCELLED_QTY) * T92539.STANDARD_UOM_CONV_RATE else 0 end ) as c2, nvl(T148616.HIER3_NAME , 'Inventory organisation not in GL profit centre valueset') as c3, nvl(T148616.HIER5_CODE , 'Error') as c4, nvl(T148616.HIER5_NAME , 'Inventory organisation not in GL profit centre valueset') as c5, T92539.PURCH_ORDER_NUM as c6, T482458.DAY_DT as c7 (HY000)
SQL Issued: SELECT "GL Profit Centre Hierarchy"."Operating Company Name" saw_0, "GL Profit Centre Hierarchy"."Profit Centre Code" saw_1, "GL Profit Centre Hierarchy"."Profit Centre Name" saw_2, "Purchase Details"."Purchase Order Number" saw_3, "PO Line Created Date".Date saw_4, Product."Product Number" saw_5, "Group Contract Category"."Group Contract Flag" saw_6, "Group Contract Category"."Group Contract Description" saw_7, "Group Contract Category"."Group Contract Stock Type" saw_8, "Purchase Details"."Item Description" saw_9, "Purchase Details"."Blanket Agreement Num" saw_10, "Supplier Product"."Supplier Product Part Number" saw_11, Supplier."Supplier Name" saw_12, "PO Line Created by User"."PO Line Creation User Login" saw_13, "PO Line Changed By User"."PO Line Change User Login" saw_14, Fact."PO Line Unit Price" saw_15, Fact."Approved PO Quantity" saw_16, Fact."Approved PO Amount" saw_17, AGGREGATE(saw_15 BY ), REPORT_SUM(saw_16 BY ), REPORT_SUM(saw_17 BY ) FROM "Procurement and Spend - Purchase Orders" WHERE (("Group Contract Category"."Group Contract Description" = 'Group Contract') AND ("Group Contract Category"."Group Contract Flag" = 'On') AND ("Approval Status"."Purchase Approval Status" = 'APPROVED') AND ("Group Contract Category"."Group Contract Flag" = 'On') AND (Ledger."Ledger Name" = 'Arriva Bus Primary Ledger') AND ("GL Profit Centre Hierarchy"."Division Name" = CASE WHEN VALUEOF(NQ_SESSION."LEDGERNAME") = 'Arriva Bus Primary Ledger' THEN 'UK Bus' WHEN VALUEOF(NQ_SESSION."LEDGERNAME") = 'Arriva Malta Primary Ledger' THEN 'Europe' ELSE 'UK Bus' END)) AND ("PO Line Created Date".Date BETWEEN timestamp '2013-08-01 00:00:00' AND timestamp '2013-08-28 00:00:00') ORDER BY saw_7 DESC, saw_10, saw_0, saw_1, saw_2, saw_3, saw_4, saw_5, saw_6, saw_8, saw_9, saw_11, saw_12, saw_13, saw_14
Regards,
RajeshNiallw41944756 did you manually remove any Adobe related files from the computer? Do you use a system optimizer? I would recommend reviewing the full installation error. What version of Dreamweaver are you attempting to install?
You can find details on how to locate and interpret the installation log files at Creative Cloud Help / Troubleshoot install issues with log files | CC. You are welcome to post any specific errors you discover to this discussion. -
Variable selection issue can we use variable exit for the below problem
Hi experts,
i have query in which i have an infoobject which is a characterstic i have even set the sort property for that infoobject but when the variable screen comes up and when we go into the selection screen all the help values are not sorted in the way i have set them. for example
ihave project managers like below
A
B
C
D
E
F
G
H
instead of displaying in order above its displyaing in
H
A
G
C
B
D
F
How to set it right.
thanks and regards
Message was edited by:
Neel KamalHi
actually i have done the same thing its getting displayed in the bex analyzer but not in the protal.
thanks and regards
Message was edited by:
Neel Kamal -
Urgent:How to manipulate the below problem
I am dynamically writing a PL/SQL blok. as follows--
problem areas marked in bold.
l_statement :=
' DECLARE' ||
' TYPE record_type IS RECORD (' ||
Col_Desc_Pkg.record_defn || ');' ||
' l_record record_type;' ||
' l_ref_cur Col_Desc_Pkg.CURSORTYPE;' ||
' rec_count NUMBER; ' ||
' dcl_stmt VARCHAR2(32000); ' ||
' dml_target_insert VARCHAR2(5000);' ||
' l_temp_var varchar2(100);' ||
' BEGIN' ||
' l_ref_cur := NewDataCleanUp.REF_CUR;' ||
' LOOP' ||
' FETCH l_ref_cur INTO l_record;' ||
' EXIT WHEN l_ref_cur%NOTFOUND;' ||
' dcl_stmt := '' '||Create_Dcl_Stmt(TargetT)||' '';'|| --My problem area
' DBMS_OUTPUT.PUT_LINE(dcl_stmt); ' ||
' END LOOP;' ||
' CLOSE l_ref_cur;' ||
' END;';
FUNCTION Create_Dcl_Stmt(TargetT VARCHAR2) RETURN VARCHAR2 IS
l_dcl_stmt VARCHAR2 (5000);
l_col_name VARCHAR2(50);
counti NUMBER;
BEGIN
l_dcl_stmt := ' SELECT COUNT(1) FROM '||TargetT||' T WHERE T.';
FOR counti IN 1..g_Column_Name_Arr.COUNT LOOP
l_col_name := g_Column_Name_Arr(counti);
(M1) l_dcl_stmt := l_dcl_stmt||l_col_name||' =''l_record.col_'||counti||'||'' AND T.'; (/M1)
END LOOP;
l_dcl_stmt := RTRIM (l_dcl_stmt, 'AND T.');
l_dcl_stmt := l_dcl_stmt||';';
RETURN l_dcl_stmt;
END;
now when i execute the aboove i get the query as below
SELECT COUNT(1) FROM HIST_PORTS_MASTER T WHERE T.PORT_ID =1041 AND T.PORT_STATUS =processed;
but i want that each of the values be enclosed in singke qoutes as T.PORT_ID ='1041' .
Trying to edit line M1 does not work. The value 1041 comes when the ''l_record.col_'||counti||'||'' is dynamicaly executed. how do i put single quotes around a value already in single quotes.??????By doubling / tripling... them. Play around with your erroneous part of the string. You'll get a feeling for it.
-
Please give the complete code for the below problems with action page and Form.
Create an array, which is holding ‘n’ strings (words), , and implement the functionality to search given string is present in the array. Give an option to the user to enter the word to be searched
Create a static array of ‘n’ numbers , and implement the functionality to search given number is present in the array. Give an option to the user to enter the number to be searched
Implement the functionality to search given word is present with in the predefined sentence. Give an option to the user to enter the word to be searchedAs haxtbh has pointed out, these forums are for HELPING you fix code you've already tried and are having issues with. We aren't here to write your code, whether for a project or homework, from scratch. We can only help you if you help us by making an attempt.
V/r,
^_^ -
Please help with the versioncue problem.
I know this is not the right place to post this but please, I need fast help. When I open a project in Photoshop CS3 it says "Cannot find the missing module blablabla versioncue.dll". I've searched around a little and found someone who said that 2 updates would fix it. I downloaded the updates but when I started to install it said "Can't find the product to update".
For some extra info, I just reformated comp and I've considered it might be something about missing files or something and if so, can someone add [email protected] and send to me because this is important. This is also because I have a schoolproject where Photoshop will be needed.
I'm also suspicious if I actually have the documents and settings files for CS3 since I only copied the whole files from programs when I reformated it.
Please help!>since I only copied the whole files from programs when I reformated it.
you need to do a full install from the original discs david. simply copying the files won't do it. -
Hi,
I have a table with a column called "DESC".
My requirement is ,if the input is "abc",then the output should be [a][c] .
The datatype of the column is varchar(10).
Please help me in this.
Thanks
Thanks,
Pandeeswaran
Edited by: Pandeesh on Jan 2, 2012 10:16 AMUse REGEXP_REPLACE:
with tbl as (select 'abc' descr from dual)
select descr,
regexp_replace(descr,'(.)','[\1]') new_descr
from tbl
DES NEW_DESCR
abc [a][c]
SQL>
SY. -
Hi ,
I have the following string
select '1, ,3, , , abc, ,dce,234, , , abc 1 ,1 ,4 ' from dual
and i have translations for
abc,dce and abc 1 respecitvely as
X ,Y and Z
which i strore in a table as
1 abc X
2 dce Y
3 abc 1 Z
now i want to replace these tranlations in my original string such that my spaces etc are intact ( note that i cannot use the replace function directly)
MY final string should look like
1, ,3, , , X, ,Y,234, , , Z ,1 ,4
any pointers how i can achieve it.
ThanksPrazy wrote:
Aketi Jyuuzou wrote:
I like recursive with clause B-)Yes but recursive with clause is being supported only from 11gR2 but OP is using *10gR2* B-)Hehe I was to start create SQL seeing OP's first Post only :-)
And I prefer recursive with clause than model clause B-)
And my prev SQL is wrong.
with t as(
select '1, ,3, , , abc, ,dce,234, , , abc 1 ,1 ,4 '
as str from dual),
repstr(ID,befo,aft) as(
select 1,'abc','X' from dual union
select 2,'dce','Y' from dual union
select 3,'abc 1','Z' from dual),
rec(str,LV) as(
select RegExp_Replace(a.str,
'(,|^)( *)' || b.befo || '( *)(,|$)',
'\1\2' || b.aft || '\3\4'),1
from t a,repstr b
where b.ID=1
union all
select RegExp_Replace(a.str,
'(,|^)( *)' || b.befo || '( *)(,|$)',
'\1\2' || b.aft || '\3\4'),a.LV+1
from rec a,repstr b
where a.LV+1 = b.ID)
select max(str) Keep(Dense_Rank Last order by LV) as str
from rec;
STR
1, ,3, , , X, ,Y,234, , , Z ,1 ,4 -
Can someone help decipher the below panic error?
Interval Since Last Panic Report: 5 sec
Panics Since Last Report: 1
Anonymous UUID: 56112AF8-6418-4920-9611-83ECB5E29C19
Sun Mar 10 09:42:04 2013
panic(cpu 0 caller 0x2a8ac2): Kernel trap at 0x00292af7, type 14=page fault, registers:
CR0: 0x80010033, CR2: 0x00000010, CR3: 0x37721000, CR4: 0x000006e8
EAX: 0x0eef62b0, EBX: 0x80000000, ECX: 0x0eef62b0, EDX: 0x00000000
CR2: 0x00000010, EBP: 0x7ddabcf8, ESI: 0x00000000, EDI: 0x00000000
EFL: 0x00010202, EIP: 0x00292af7, CS: 0x00000008, DS: 0x00000010
Error code: 0x00000000
Backtrace (CPU 0), Frame : Return Address (4 potential args on stack)
0x7ddab9f8 : 0x21b449 (0x5ce420 0x7ddaba2c 0x2238a5 0x0)
0x7ddaba48 : 0x2a8ac2 (0x590478 0x292af7 0xe 0x590642)
0x7ddabb28 : 0x29e9a8 (0x7ddabb40 0x76 0x7ddabcf8 0x292af7)
0x7ddabb38 : 0x292af7 (0xe 0x48 0x10 0x10)
0x7ddabcf8 : 0x2936d6 (0xeef62b8 0x10000000 0x1 0x1042000)
0x7ddabd68 : 0x260897 (0xeef62b8 0xff8d000 0x1 0x1098d000)
0x7ddabe98 : 0x260e32 (0x1098d000 0x1 0x0 0x0)
0x7ddabed8 : 0x281fb3 (0xffdc854 0xff8d000 0x1 0x1098d000)
0x7ddabf38 : 0x479c06 (0xffdc854 0xff8d000 0x1 0xa00000)
0x7ddabf78 : 0x4ecbb9 (0xfff57e0 0xeeff048 0xf53b684 0x1)
0x7ddabfc8 : 0x29f43d (0xeeff044 0x0 0x10 0x0)
BSD process name corresponding to current thread: mds
Mac OS version:
10D575
Kernel version:
Darwin Kernel Version 10.3.0: Fri Feb 26 11:58:09 PST 2010; root:xnu-1504.3.12~1/RELEASE_I386
System model name: MacPro4,1 (Mac-F221BEC8)
System uptime in nanoseconds: 895007347562
unloaded kexts:
com.apple.filesystems.msdosfs 1.6.1 (addr 0x7d5d1000, size 0x53248) - last unloaded 373865381269
loaded kexts:
com.highpoint-tech.kext.HighPointRR 1.0.0
com.apple.driver.AppleHWSensor 1.9.3d0
com.apple.driver.AppleTyMCEDriver 1.0.1d8
com.apple.driver.AGPM 100.10.21
com.apple.driver.AudioAUUC 1.4
com.apple.driver.AppleMikeyHIDDriver 1.2.0
com.apple.driver.AppleUpstreamUserClient 3.3.2
com.apple.Dont_Steal_Mac_OS_X 7.0.0
com.apple.driver.AppleMikeyDriver 1.8.4fc3
com.apple.GeForce 6.1.0
com.apple.driver.Intel82574L 1.0.4b1
com.apple.driver.AppleIntelNehalemProfile 11
com.apple.driver.AudioIPCDriver 1.1.2
com.apple.driver.AppleHDA 1.8.4fc3
com.apple.driver.AppleUSBDisplays 251
com.apple.driver.AirPortBrcm43xx 422.91.27
com.apple.driver.ACPI_SMC_PlatformPlugin 4.1.1d0
com.apple.driver.AppleLPC 1.4.11
com.apple.filesystems.autofs 2.1.0
com.apple.iokit.IOAHCIBlockStorage 1.6.1
com.apple.iokit.SCSITaskUserClient 2.6.2
com.apple.BootCache 31
com.apple.AppleFSCompression.AppleFSCompressionTypeZlib 1.0.0d1
com.apple.driver.AppleUSBHub 3.9.6
com.apple.driver.AppleFWOHCI 4.5.7
com.apple.driver.AppleUSBEHCI 3.9.6
com.apple.driver.AppleAHCIPort 2.1.1
com.apple.driver.AppleUSBUHCI 3.9.6
com.apple.driver.AppleEFINVRAM 1.3.0
com.apple.driver.AppleRTC 1.3.1
com.apple.driver.AppleHPET 1.5
com.apple.driver.AppleACPIButtons 1.3.2
com.apple.driver.AppleSMBIOS 1.5
com.apple.driver.AppleACPIEC 1.3.2
com.apple.driver.AppleAPIC 1.4
com.apple.security.sandbox 0
com.apple.security.quarantine 0
com.apple.nke.applicationfirewall 2.1.11
com.apple.driver.AppleIntelCPUPowerManagementClient 104.3.0
com.apple.driver.AppleIntelCPUPowerManagement 104.3.0
com.apple.iokit.IOSCSIBlockCommandsDevice 2.6.2 - last loaded 890932740795
com.apple.driver.AppleProfileReadCounterAction 17
com.apple.driver.AppleProfileTimestampAction 10
com.apple.driver.AppleProfileThreadInfoAction 14
com.apple.driver.AppleProfileRegisterStateAction 10
com.apple.driver.AppleProfileKEventAction 10
com.apple.driver.AppleProfileCallstackAction 20
com.apple.iokit.IOSurface 74.0
com.apple.iokit.IOBluetoothSerialManager 2.3.1f4
com.apple.iokit.IOSerialFamily 10.0.3
com.apple.driver.DspFuncLib 1.8.4fc3
com.apple.iokit.IOAudioFamily 1.7.6fc2
com.apple.kext.OSvKernDSPLib 1.3
com.apple.driver.AppleSMBusController 1.0.8d0
com.apple.nvidia.nv50hal 6.1.0
com.apple.NVDAResman 6.1.0
com.apple.iokit.IONDRVSupport 2.1
com.apple.iokit.IOFireWireIP 2.0.3
com.apple.iokit.IO80211Family 310.6
com.apple.iokit.IONetworkingFamily 1.9
com.apple.iokit.AppleProfileFamily 41
com.apple.driver.AppleHDAController 1.8.4fc3
com.apple.iokit.IOGraphicsFamily 2.1
com.apple.iokit.IOHDAFamily 1.8.4fc3
com.apple.driver.AppleSMC 3.0.1d2
com.apple.driver.IOPlatformPluginFamily 4.1.1d0
com.apple.driver.AppleSMBusPCI 1.0.8d0
com.apple.driver.XsanFilter 402.1
com.apple.driver.AppleUSBHIDKeyboard 1.2.0a3
com.apple.driver.AppleHIDKeyboard 1.2.0a3
com.apple.driver.BroadcomUSBBluetoothHCIController 2.3.1f4
com.apple.driver.AppleUSBBluetoothHCIController 2.3.1f4
com.apple.iokit.IOBluetoothFamily 2.3.1f4
com.apple.driver.AppleUSBMergeNub 3.9.6
com.apple.iokit.IOUSBHIDDriver 3.9.6
com.apple.driver.AppleUSBComposite 3.9.0
com.apple.iokit.IOSCSIMultimediaCommandsDevice 2.6.2
com.apple.iokit.IOBDStorageFamily 1.6
com.apple.iokit.IODVDStorageFamily 1.6
com.apple.iokit.IOCDStorageFamily 1.6
com.apple.iokit.IOSCSIParallelFamily 2.0.0
com.apple.iokit.IOFireWireFamily 4.2.6
com.apple.iokit.IOUSBUserClient 3.9.6
com.apple.iokit.IOAHCISerialATAPI 1.2.3
com.apple.iokit.IOSCSIArchitectureModelFamily 2.6.2
com.apple.iokit.IOAHCIFamily 2.0.3
com.apple.iokit.IOUSBFamily 3.9.6
com.apple.driver.AppleEFIRuntime 1.3.0
com.apple.iokit.IOHIDFamily 1.6.2
com.apple.iokit.IOSMBusFamily 1.1
com.apple.security.TMSafetyNet 6
com.apple.kext.AppleMatch 1.0.0d1
com.apple.driver.DiskImages 283
com.apple.iokit.IOStorageFamily 1.6
com.apple.driver.AppleACPIPlatform 1.3.2
com.apple.iokit.IOPCIFamily 2.6
com.apple.iokit.IOACPIFamily 1.3.0
Model: MacPro4,1, BootROM MP41.0081.B07, 8 processors, Quad-Core Intel Xeon, 2.26 GHz, 10 GB, SMC 1.39f5
Graphics: NVIDIA GeForce GT 120, NVIDIA GeForce GT 120, PCIe, 512 MB
Memory Module: global_name
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x88), Broadcom BCM43xx 1.0 (5.10.91.27)
Bluetooth: Version 2.3.1f4, 2 service, 19 devices, 1 incoming serial ports
Network Service: AirPort, AirPort, en2
PCI Card: scsi, sppci_scsi_bus, Slot-3
PCI Card: pci-bridge, sppci_pci2pcibridge, Slot-4
PCI Card: pci-bridge, sppci_pci2pcibridge, Slot-4
PCI Card: pcibdbd,a10c, sppci_video, Slot-4@5,1,0
PCI Card: NVIDIA GeForce GT 120, Display, Slot-1
Serial ATA Device: HL-DT-ST DVD-RW GH41N
Serial ATA Device: PIONEER BD-RW BDR-206
Serial ATA Device: WDC WD6400AAKS-41H2B0, 596.17 GB
SCSI Device: SCSI Target Device @ 16
USB Device: Hub, 0x05ac (Apple Inc.), 0x9122, 0xfd300000
USB Device: Keyboard Hub, 0x05ac (Apple Inc.), 0x1006, 0xfd310000
USB Device: Kensington Expert Mouse, 0x047d (Kensington), 0x1020, 0xfd313000
USB Device: Apple Keyboard, 0x05ac (Apple Inc.), 0x0220, 0xfd312000
USB Device: Apple Cinema HD Display, 0x05ac (Apple Inc.), 0x921e, 0xfd320000
USB Device: BRCM2046 Hub, 0x0a5c (Broadcom Corp.), 0x4500, 0x5a100000
USB Device: Bluetooth USB Host Controller, 0x05ac (Apple Inc.), 0x8215, 0x5a110000
FireWire Device: built-in_hub, Up to 800 Mb/sec
FireWire Device: unknown_device, UnknownBoot into Safe Mode. If there are no more panics then uninstall your HighPoint RAID software. See if the panics cease. If they do contact HighPoint for a newer driver.
You can also try removing the Kensington mouse and using the mouse that came with the computer.
The affected thread was Spotlight indexing.
Maybe you are looking for
-
Unable to delete photo from custom albums.
Hello, I am new to ios programming. I have suceeded in creating a custom album in user's photo library by using the sample code from this here "http://www.touch-code-magazine.com/ios5-saving-photos-in-custom-photo-album-cate gory-for-download/". Now
-
How to get the "current date" in the BEx?
Hi all, I need to get the "current date" in my Bex report in order to make a comparison. I know there is a "How to" which shows how to get the current date via a User Exit, but I didn't find it. Could you please help me? Thanks
-
Problems running MS Silverlight
I can't get Microsoft Silverlight to run on my mid-2009 MacBook running OSX Lion 10.7.4, even after uninstalling, downloading and reinstalling Silverlight several times. Any suggestions. I need Silverlight to stream movies on Netflix.
-
Created letter head templates with pages-open using in WORD HOW?
please help.. i created beautiful letter head templates with iwork pages and i am trying to give to my employee to use it ... and then they can't import or open use from microsoft Word 2011. they do not have iwork.. possible can share templates bot
-
Sales order remains on status being processed.
I created a sales order and created pgi, Outbound delivery. When I tried to create a billing document it gave me a message, sales order is being processed. I opened the sales order and looked for the document flow, it says sales order is still being