dbms_sqlhash and online md5 calculator return different results
Does anyone know how dbms_sqlhash.gethash () works?I get the same result for string 123456.
Md5 (http://md5-hash-online.waraxe.us/) online calculator returns e10adc3949ba59abbe56e057f20f883e.
DBMS_SQLHASH. GETHASH() returns 7E8FEB2276322ECDDD4423B649DFD4D9.
--the second parameter value 2 means MD5 hash.
select DBMS_SQLHASH.GETHASH('select 123456 from dual',2) from dual;
Hello
>
I get the same result for string 123456.
Md5 (http://md5-hash-online.waraxe.us/) online calculator returns e10adc3949ba59abbe56e057f20f883e.
DBMS_SQLHASH. GETHASH() returns 7E8FEB2276322ECDDD4423B649DFD4D9.
--the second parameter value 2 means MD5 hash.
select DBMS_SQLHASH.GETHASH('select 123456 from dual',2) from dual;
DBMS_SQLHASH. GETHASH returns the hash of the SQL statement in the first parameter Select 123456 of double, not 123456
To get the MD5 hash of the 123456 you should use DBMS_OBFUSCATION_TOOLKIT or DBMS_CRYPTO packages. The latest is preferable and more recent.
Kind regards
Tags: Database
Similar Questions
-
SQL query return different result 11 GR 1 material and GR 11, 2
Problem: SQL returns different results in 11 GR 1 material and GR 11, 2 games.
Example script:
create the table tab_main
(
SOS number (2) not null,
contract number (2) null
)
/create the table tab_sub
(
number (2) of contract non-null,.
SOS number (2) null
)
/insert into tab_main values (1, 10);
insert into tab_main values (2, 20);
insert into tab_main values (3, null);
insert into tab_main values (4, null);insert into tab_sub values (1, 10);
insert into tab_sub (20, 2) values;
commit;The SQL code:
SELECT *.
OF tab_main.
tab_sub
WHERE tab_main.sos = tab_sub.sos (+) AND
tab_main. Contract = tab_sub.contract (+) and
tab_main. Contract not in (select 1 of the double);The above query gives more results
-by 11.2.0.4
1 10 10 1
2 20 20 2-in 11.1.0.7
1 10 10 1
2 20 20 2
4
3
Please tell us what could be the reason for the behaviour of offset lines thie.
Thank youPiesset
I think it is probably a bug in 11.1.0.7 (and possibly other versions), I get the same results as your 11.2.0.4 9.2.0.7, 10.2.0.3 and 11.2.0.3, and this is the result, I expect.
Your not in the paragraph is equivalent to:
SELECT *.
OF tab_main, tab_sub
WHERE tab_main.sos = tab_sub.sos (+) AND
tab_main. Contract = tab_sub.contract (+) and
tab_main. Contract <> 1;
Since you have null values in tab_main.contract they are lost by the predicate since null = value is never true (or false).
John
-
query returns different results depends on the length of the day
Hello!
I have a query:
This query returns different results in the morning (09:00) and afternoon (16:00) on the same database for the same input data (I have prepared a script to test).INSERT /*+ APPEND */ INTO pwa_process ( id, id_session, id_customer, s2k_account, service_seq_num, msisdn, id_tariff, contract_end_date, last_contract_date, next_available_contract_date, tariff_name, description, description_long, imei_old, activation_date, id_customer_number, arpu, value0, value1, value2, value3, value4, value5, id_pricing_plan) WITH msisdns AS (SELECT msisdn ms FROM customer_number cn JOIN customer_s2kaccount cs ON cn.s2k_account = cs.s2k_account AND cs.id_customer = v_customerId) SELECT seq_pwa_process.NEXTVAL, v_sessionId, customer_s2kaccount.id_customer, customer_s2kaccount.s2k_account, customer_number.service_seq_num, msisdn.msisdn, tariff.id, NVL(CASE WHEN date_contract_end IS NULL AND le_contract_end_date IS NOT NULL OR (date_contract_end < le_contract_end_date) THEN le_contract_end_date ELSE NVL(date_contract_end, ADD_MONTHS(customer_number.date_start, customer_number.ada_availability)) END, TO_DATE('01.01.1970', 'DD.MM.YYYY')) contract_end_date, CASE WHEN NOT customer_number.date_first_activation IS NULL AND customer_number.date_first_activation > (CASE WHEN ada_priority = 1 THEN ada_date_pwa WHEN ada_priority <> 1 AND (date_pwa IS NULL AND exchange_date IS NOT NULL OR date_pwa < exchange_date) THEN exchange_date ELSE date_pwa END) THEN customer_number.date_first_activation ELSE (CASE WHEN ada_priority = 1 THEN ada_date_pwa WHEN ada_priority <> 1 AND (date_pwa IS NULL AND exchange_date IS NOT NULL OR date_pwa < exchange_date) THEN exchange_date ELSE date_pwa END) END last_contract_date, ADD_MONTHS(CASE WHEN NOT customer_number.date_first_activation IS NULL AND customer_number.date_first_activation > NVL( (CASE WHEN ada_priority = 1 THEN ada_date_pwa WHEN ada_priority <> 1 AND (date_pwa IS NULL AND exchange_date IS NOT NULL OR date_pwa < exchange_date) THEN exchange_date ELSE date_pwa END) , NVL(customer_number.date_first_activation, NVL(customer_number.date_start, customer_number.date_effective))) THEN customer_number.date_first_activation ELSE NVL( (CASE WHEN ada_priority = 1 THEN ada_date_pwa WHEN ada_priority <> 1 AND (date_pwa IS NULL AND exchange_date IS NOT NULL OR date_pwa < exchange_date) THEN exchange_date ELSE date_pwa END) , NVL(customer_number.date_first_activation, NVL(customer_number.date_start, customer_number.date_effective))) END, customer_number.ada_availability - DECODE(NVL(customer_number.current_contract_type, 0), 2, DECODE(customer_number.reduced_contract_used, 0, NVL(customer_number.el_contract_calculated_reduc,0), 0), 0)) next_available_contract_date, tariff.name_ada, DECODE(msisdn_group.def_column, 0, msisdn.value0, 1, msisdn.value1, 2, msisdn.value2, 3, msisdn.value3, 4, msisdn.value4, 5, msisdn.value5, msisdn.value0), msisdn.value0 || ';' || NVL(msisdn.value1, '') || ';' || NVL(msisdn.value2,'') || ';' || NVL(msisdn.value3,'') || ';' || NVL(msisdn.value4, '') || ';' || NVL(msisdn.value5, ''), customer_number.imei, NVL(customer_number.date_first_activation, NVL(customer_number.date_start, customer_number.date_effective)) date_start, customer_number.id, NVL(s2kaccount.arpu1,0), msisdn.value0, msisdn.value1, msisdn.value2, msisdn.value3, msisdn.value4, msisdn.value5, customer_number.id_pricing_plan FROM customer_s2kaccount JOIN customer_number ON customer_number.s2k_account = customer_s2kaccount.s2k_account AND customer_number.service_state = 'AB' JOIN msisdn ON msisdn.msisdn = customer_number.msisdn JOIN TABLE(CAST(v_tmp_table AS ADA.NUMBER_TABLE)) ids ON ids.column_value = msisdn.id JOIN msisdn_group ON msisdn_group.id = msisdn.id_msisdn_group JOIN pricing_plan ON pricing_plan.id = customer_number.id_pricing_plan AND pricing_plan.is_for_pwa = 1 JOIN tariff ON tariff.name = pricing_plan.id JOIN s2kaccount ON s2kaccount.s2k_account = customer_number.s2k_account LEFT JOIN (SELECT msisdn, exchange_date, ADD_MONTHS(exchange_date, MAX(prolongation)) le_contract_end_date FROM loyalty_exchange a, msisdns WHERE a.msisdn = msisdns.ms AND exchange_date >= ALL (SELECT exchange_date FROM loyalty_exchange b WHERE b.msisdn = a.msisdn) GROUP BY msisdn, exchange_date) le ON le.msisdn = customer_number.msisdn WHERE customer_s2kaccount.id_customer = v_customerId;
Oracle 9.2.0.6 @solaris
I checked the query plans, but they look the same in the morning and the afternoon. I don't know where to look for a problem/bug.
Please help me with suggestions. is in bug with join ansi? or a left outer join?
Published by: batonoff on February 16, 2009 16:56
Published by: batonoff on February 16, 2009 16:58
Published by: batonoff on February 16, 2009 17:00I recommend you post your declaration in the {} code tags (without the spaces) so that we can actually read.
You are absolutely positive that nothing has changed on the data between when you run in the morning and in the afternoon?
-
Calculations to return different results depending on the responsibility
Hello
We have a report that uses a PL/SQL function in a calculation.
When a single responsibility runs the report, the calculation returns figures empty or incorrect.
When another executes it, it works fine.
When the function is created, are there grants that must be given to ensure that all responsibilities can use this?
All the responsibilities have access to the data in the application.
The service is owned by APPS and it was registered in the EUL.
Also, there seems to be a difference in if this is executed from SSO launch Viewer or office.
Kind regards
RachaelHello
Your basic problem is that you have
EXCEPTION
while others then
return sqlcode;at the end of your code. This means that if an error occurs when you run the function it will be completed successfully, but with some bad days.
With this exception handling it is difficult to know what you encounter the error, but it could be a problem of access to the tables or type conversion problem.
Rod West
-
OBIEE logical column has same SQL but returns different results
I have a SQL query with a case statement that returns the correct results by operating in Oracle SQL Developer. I've created several logical columns in OBIEE, one for each case in the original query. However, the results returned by each logical column OBIEE are radically different from the original SQL query results, even if the SQL code is virtually identical.
For example, a column logical OBIEE that returns incorrect results contains the following SQL code:
SUM (CASE when
("Registration - College". "" Effective colleges F. ("" Postal code "like '% a %') or
("Registration - College". "" Effective colleges F. ("" Postal code "like '%B %') or
("Registration - College". "" Effective colleges F. ("" Postal code "like '%c %') or
("Registration - College". "" Effective colleges F. ("" Postal code "like"% %") or
("Registration - College". "" Effective colleges F. ("" Postal code "like '%G %') or
("Registration - College". "" Effective colleges F. ("" Postal code "like"hour %") or
("Registration - College". "" Effective colleges F. ("" Postal code "like"%%J") or
("Registration - College". "" Effective colleges F. ("' Postal code ' like '%R %') or
("Registration - College". "" Effective colleges F. ("" Postal code "like '%s %') or
("Registration - College". "" Effective colleges F. ("" Postal code "like '%T %') or
("Registration - College". "" Effective colleges F. ("" Postal code "like"% %") or
("Registration - College". "" Effective colleges F. ("" Postal code "like '%x %') or
("Registration - College". "" Effective colleges F. ("' Postal code ' like '%Y %')
THEN 0 OTHERWISE 1 END)
The case statement in the original SQL query, which returns the correct results, is as follows:
CASE
WHEN (postal_zip_code_permanent like "%%K") or (postal_zip_code_permanent like '% %') or (postal_zip_code_permanent like '%m %') or (postal_zip_code_permanent like '%n %') or (postal_zip_code_permanent like "%p %") THEN "Ontario".
WHEN (postal_zip_code_permanent like '% a %') or (postal_zip_code_permanent like '%B %') or (postal_zip_code_permanent like '%c %') or (postal_zip_code_permanent like '% %') or (postal_zip_code_permanent like '%G %') or (postal_zip_code_permanent like "%hour") or (postal_zip_code_permanent like "%%J") or (postal_zip_code_permanent like "%%R") or (postal_zip_code_permanent like '%s %') or (postal_zip_code_permanent like '%t %') or (postal_zip_code_permanent like '% %') or (postal_zip_ code_permanent like '%x %') or (postal_zip_code_permanent like "%%Y") THEN "Canada, other than Ontario.
WHEN (substr(postal_zip_code_permanent,1,1) IN ('1 ', '2', '3', '4', '5', '6' ', 7',' 8 ', ' 9',' 0') or (postal_zip_code_permanent like '%d %') or (postal_zip_code_permanent like '%f %') or (postal_zip_code_permanent like ' % I %') or (postal_zip_code_permanent like "% O") or (postal_zip_code_permanent like "%%Q") or (postal_zip_code_permanent like "%%U") or (postal_zip_code_permanent like ' % W ') or (postal_zip_code_permanent like "%%Z")) THEN 'other')
WHEN (postal_zip_code_permanent like '% + %') or (postal_zip_code_permanent like '%. %') or (postal_zip_code_permanent like ' %? %') or (postal_zip_code_permanent like '% %') or postal_zip_code_permanent IN ('+ ','.', '?)) (',',') And THEN "Invalid."
WHEN postal_zip_code_permanent is null THEN 'Blank '.
Of OTHER postal_zip_code_permanent
END
Now I see what the problem was. In the original SQL query, each condition is exclusive, for each record will only be categorized in one of the scenarios WHEN. But in OBIEE, each logical column is autonomous, so some records were classified into more than logical column, even if each logical column was supposed to be exclusive.
-
I noticed that 'clean and vectors.vi values' product of different results when it is used in LV8.0 and LV7.0.
The attached VI is saved in LV7.0. The default values show the results by operating this VI in LV7.0.
Using the same entries, try running this VI in 8.0 and you will see the results change.
Someone has any ideas why this is happening?
-
Smart collection returns different results to the library filter?
This is such a stupid thing, and I barely noticed. I have smart collections simply gather all the images with a particular star of note, very very simple! I have a 1 star, a Star 2 and one for the 3 stars and more. So far so good, use these for centuries-, but I noticed that if I go to Catalog/All photos and place a filter of the same library (this is the filter at the top of the library grid view) I get different results. Actually if I place a filter attribute that says '= 2 stars' images only I can watch the tape that works at the bottom of the screen (sorry I have no idea what it's called) and he said that "all photos / 1056 1647 photos» If I can clear this filter and scroll down to my smart collection that applies the filter even to the entire catalog (and I triple checked this, no difference at all, I don't have lower or higher than the here is the self same "=" only!) and it says "1066"! Thus, the smart collection search 10 images more than other, identical filters working on the entire catalog - I am confused? Anyone had this problem, I missed something? If it wasn't for the number of images concerned I'd them and try to find the additional files by hand!
Popular indices, and LR3 passing on Mac.
Tim.
You can check if the images are stacked differently (and thus not counted) in both points of view.
-
ALL_TABLES returns different results
Hello
Thinking of this query:
SELECT table_name
From all_tables
Owner WHERE = "SCHEMA_B";
The diagram that I work in is "SCHEMA_A".
When I run this statement in SQL Developer, Toad,... it will return me 4 rows.
Now I do the following (this is according to a procedure in a package):
PROCEDURE X
IS
CURSOR c_tab IS
SELECT table_name
From all_tables
Owner WHERE = "SCHEMA_B";
BEGIN
FOR r_tab IN c_tab LOOP
insert into test (test) values (r_tab.tab_nm);
commit;
END LOOP;
END X;
Now, I check the table 'TEST' and I have zero records in it. I wanted to see 4 records...
Someone at - it a solution?Hello
Subsidies on the tables are probably a role.
It is why he "sees" no line in all_tables.
You can check this by doing a 'SET ROLE NONE' in sqlplus before making your selection.Rgds,
GuidoPublished by: Guido on October 28, 2008 12:46
Tried to be more specific... -
Two same queries but different results
I'm working on the guarantee of data from data sources Vs target.
Source and target databases are oracle. The source data are a remote database and navigate using DB_LINK.
I am running similar queries against the data source and my schema but gets different results I check the number of folders and individual service Group DC account
both are fit exactly, but for some reason any after the results of queries in different counts.
a request flowing from the source table:
Select
b.Year,
b.month,
a.serv_grp,
Count (distinct a.clnt) cnt
Of
Jay.srvrequest@bdm_link has,
(select separate year, month, first_date_of_month, last_date_of_month)
of dev.stage_3_time_dim
where year = 2011 and
b months between 3 and 7)
where
a.beg_dt < = b.last_date_of_month
and a.end_dt > = b.first_date_of_month
and a.serv_grp in ('1 ', '4', '5',' 6') and
a.stat as 'A '.
B.year group, b.month, a.serv_grp;
target request flowing from the database:
Select
b.Year,
b.month,
a.service_group_cd,
Count (distinct a.client_id) cnt
Of
Prod.stage_0_mg_serv_req has,
(select separate year, month, first_date_of_month, last_date_of_month)
of dev.stage_3_time_dim
where year = 2011 and
b months between 3 and 7)
where
a.begin_dt < = b.last_date_of_month
and a.end_dt > = b.first_date_of_month
and a.service_group_Cd in ('1 ', '4', '5',' 6') and
a.status_cd as 'A '.
B.year group, b.month, a.service_group_cd
results out of data from the source as follows:
Year month serv grp cnt
2011 3 1 78653
2011 3 4 4562
2011 3 5 166
2011 3 6 7533
2011 4 1 78327
2011 4 4 4540
2011 4 5 167
2011 4 6 7546
2011 5 1 78612
2011 5 4 4535
2011 5 5 166
2011 5 6 7544
results off-target following data:
Year month serv grp cnt
2011 3 1 49350
2011 3 4 1921
2011 3 5 26
2011 3 6 2259
2011 4 1 47727
2011 4 4 1834
2011 4 5 27
2011 4 6 2211
2011 5 1 46675
2011 5 4 1771
2011 5 5 26
2011 5 6 2116
I don't know what wrong with queries
any advice appreciated...
JayMaybe you get different results because the data are different.
Also, why the first query uses a remote table, attached to a local table? Why not 100% remote data?
-
A few keys return a different result example I press o and he returned .o
My son has been on the computer (asus k53s) laptop. I don't know what he did, but now some of the traits keyboard return a different result, it feels almost like a kind of shortcut function. I restarted snd got the same result
Here are the problems I found.o and. They all return two .oq returns a q and a tabm and refer myv and t both return a vtx starts the Help windowI can't use my laptop properly right now that one of the letters is used in the passwd file, I use the keyboard to the mouse on screen.I need help asap thank youYou can try the system restore to go back before the problem?
How to repair the operating system and how to restore the configuration of the operating system to an earlier point in time in Windows Vista (or 7)
http://support.Microsoft.com/kb/936212/#appliesToI see that the OSK works for you, so perhaps the problem is a defective keyboard? Have you tried to turn the laptop upside down and gently pat down to try to remove some of the bread crumbs between the keys (Lol).
You can plug in another USB keyboard into the laptop and test with that?
-
Different results from the same calculations between SQL and PL/SQL
This SQL statement:
Gives the 89.5 result.select 1074 * (4 / 48) from dual;
However this PL/SQL block
Gives a different result:declare tmp NUMBER; begin SELECT 1074 * (4 / 48) into tmp from dual; dbms_output.put_line('Result '||tmp); end;
Result 89.49999999999999999999999999999999999996
If I change and give my variable tmp, a precision and scale, (38.36) say the result is 89.5.
Ed. I did about 10g (10.2.0.4.0) and 11g (11.1.0.7.0) with the same result in both.
Published by: kendenny on July 9, 2010 10:19 for more informationWhat is your current value of NUMLARGEUR in SQL * more (I assume that you use as your tool)?
SQL> set numwidth 50 SQL> select 1074 * (4 / 48) from dual; 1074*(4/48) -------------------------------------------------- 89.49999999999999999999999999999999999996
-
Strange question Essbase - calculation doesnot return good result in MaxL
Hello
All veterans of Essbase, need your help for this strange issue.
We run Essbase on UNIX and we have an OSI application where a daily batch process works for aggregate database of real-world scenario and Budget. Strange things, it's the night aggregation process is not correctly aggregate data, as we see variance between stored and shared hierarchies. But if we manually execute the same aggregation through the service console Regional, aggregation gives good results with zero gap between stored and shared hierarchies.
In the script of aggregation we clear senior level blocks (with UPDATECALC on OFF), and then use CALC dim on the accounts and the entity to aggregate the results.
This question has been very strange to my little experience the same calc behaves differently when called in MaxL.
Any suggestion useful to nail, they are welcome.
Thanks in advance!>
Is not dense dimension meant to aggregate properly (as it is in a block) in a single pass. I am confused because I know that the theory is in conflict...
In addition, Parents can be marked TWO PASS (that I see no strong reason to make them two passes).
Published by: user10725029 on May 2, 2012 20:30
If the dimension is marked as the size of accounts and and you have two pass members that are not dynamic calc, running the default calc will do the calculation in a single pass. Otherwise if they are stored members, then you must make a twopass calc. If you have twopass in another dimension the dimension of accounts, it must be dynamic or or it will not calculate in two passes
-
Dequeue Business event (AQ or AppsAdapter) in OSB and the return of results fails
I'm new to OSB. The scenario is to publish the results on SFDC (SalesForce.Com) all changes in EBS.
Works well within the OSB. However when I try to return the results back... It is a failure. What is wsdl has only a structure of entry
and does not have an output structure?
I finally got this working. I thought incorrectly that the XSD and WSDL will have to be changed to create output Structure.
You don't have to change the head of series dequeue XSD/WSDL
It actually changes caused the problem.
One of the errors I got was
The SOAP envelope contains one or more body elements that cannot be mapped to the WSDL elements ({http://xmlns.oracle.com/xdb/APPS/ReceiveEvent} WF_EVENT_T).
com.bea.alsb.ws.codec.CodecException: the SOAP envelope one or more body elements that cannot be mapped to the WSDL elements ({http://xmlns.oracle.com/xdb/APPS/ReceiveEvent} WF_EVENT_T).
-
We are seeing different results for the property of the HostSystem 'configManager. snmpSystem' from vCenter and when you access from host.
I think that the result should be no different. Is this another known issue or am I missing something here?
To confirm this behavior, we tried to show the property to the host through the Explorer managed objects (MOB) and also by the VMware Remote CLI scripts. Join the results of the CLI script that was running on our test systems.
Best regards
Damodar
Greetings, I just wanted you guys to know this problem that you are experiencing is a known problem with VMware and our engineers groups are working on it. Sorry for the inconvenience to you.
-
I use an .exe on two different windows boxes, in Windows 7 and XP. I put both for resolution 1024 x 768.
Win 7 (old laptop and Dell desktop computer) I have a large application to watch. On the WIn XP boxes all fonts to big. It doesn't make sense for me as all PC's have the same resolution.
Has anyone go through this before?
System for XP and Vista/Win7 fonts are different.
See
http://forums.NI.com/T5/LabVIEW/elements-have-moved-when-opening-VI-with-F3-patch/m-p/1054817
and several other similar topics.
Maybe you are looking for
-
Help me!!!
-
KB2749655, KB2724197, KB2661254 und KB2756822 updates
ICH habe die problem updates KB2749655, KB2724197, KB2661254 und KB2756822 zu instalieren und out als Fehlermeldung "Installation fehlgeschlagen." WER kann mir helfen? Vielen Dank
-
slow Sony Vaio with Windows XP
Suddenly, my laptop is very, very slowly. I have 67% free and I have cleaned and cleaned. I don't know much about computers, what can I do, please?
-
Software BlackBerry RIM Device Manager.exe - Application error
This error code is displayed whenever I closed my laptop- The Instruction at 0x6514a8F2 referenced memory at 0 x 00000484 The memory could not be reached Any ideas out there, a difficulty? KR
-
BlackBerry smartphones no smart dialing on the menu options for my blackberry 7200
I went to 'options' (he who has the key as an icon) and look for the option "smart dial", but he was not there. Also, I plugged the phone on the Web one to get only an update of the OS but the option has not appeared. Please help me to access the opt