Hi,
I have a problem to set a JDBC connection as READ UNCOMMITED.
setTransactionI solation(Connec tion.TRANSACTIO N_READ_UNCOMMIT TED)
This is causing lots of blocking on tables
and update or insert doesn't work properly.
Does anyone have any idea what I'm missing here?
I asked i-net support and they suggested to call
setAutoCommit(f alse) after the above function
and it didn't work.
also suggested impltrans = true, and I changed that option on SQL
and it caused more blocking.
Thanks in advance for any info.
Jul 20 '05
24 4693
"Dave Hau" <nospam_dave_no spam_123@nospam _netscape_nospa m.net_nospam> wrote ah.. this is a typical oracleisque response. Well there are some circumstances when READ_UNCOMMITTE D makes perfect sense. For e.g. if u r running report on past data (like last week's report) which is guaranteed to be read-only at the time of running the report. why bother about COMMITTED data? a simple dirty read will do the job as effectively, but more efficiently.
Unless you're running low on memory and getting lock escalation from row to page lock, I don't see why your past data (assuming you don't update past data) will have a lock on them. If there's no lock, then why would there be a difference between doing READ_UNCOMMITTE D and READ_COMMITTED on those rows. If there's no difference, then why did you say READ_UNCOMMITTE D will do the job "more efficiently"?
actually I should have been clearer.
the more efficiently part was in comparison to oracle's MVRC approach,
not a one to one comparison between SQLSERVER RC and RUC approach.
Even within SQLSERVER RC and RUC, RUC is slightly more efficient since
it does not have to put a read lock on a row.
RUC vs MVRC is all together different. In MVRC it has to check for
every page whether the SCN is less than the SCN when the query started,
a totally unnecessary step for the case in question.
rkusenet wrote:
<snipped> RUC vs MVRC is all together different. In MVRC it has to check for every page whether the SCN is less than the SCN when the query started, a totally unnecessary step for the case in question.
True. But on the other hand it doesn't have to check to see if the
row is locked. Because in the Oracle world it would be irrelevant.
Writes don't block reads and reads don't brock writes.
All RDBMS's have over-head issues. They are always there ... they are
just different.
--
Daniel Morgan http://www.outreach.washington.edu/e...ad/oad_crs.asp http://www.outreach.washington.edu/e...oa/aoa_crs.asp da******@x.wash ington.edu
(replace 'x' with a 'u' to reply)
"Daniel Morgan" <da******@x.was hington.edu> wrote in message news:1069192733 .974181@yasure. .. rkusenet wrote:
<snipped> RUC vs MVRC is all together different. In MVRC it has to check for every page whether the SCN is less than the SCN when the query started, a totally unnecessary step for the case in question.
True. But on the other hand it doesn't have to check to see if the row is locked.
That is in RC and SER only.
RUC does not check whether the row is locked and for the case in
question, RUC is best.
Because in the Oracle world it would be irrelevant. Writes don't block reads and reads don't brock writes.
oracle does not give any flexiblity in writing the application as
required. It forces MVRC always. In Informix I use RC, RUC and
SER as they are required on a case to case basis. Now I follow
the same priciple in SQLServer also.
I am not denying that MVRC is good. All I am disputing is that
it is DA best for every situation, as Oracle arrogantly assumes.
Clearly it isn't.
I believe SQLServer is implementing MVRC in Yukon. That's great,
since they will still be offering RC,RUC and SER. Oracle should also
do that.
rk-
rkusenet wrote: "Daniel Morgan" <da******@x.was hington.edu> wrote in message news:1069192733 .974181@yasure. ..
rkusenet wrote:
<snipped>
RUC vs MVRC is all together different. In MVRC it has to check for every page whether the SCN is less than the SCN when the query started, a totally unnecessary step for the case in question.
True. But on the other hand it doesn't have to check to see if the row is locked.
That is in RC and SER only. RUC does not check whether the row is locked and for the case in question, RUC is best.
Because in the Oracle world it would be irrelevant. Writes don't block reads and reads don't brock writes.
oracle does not give any flexiblity in writing the application as required. It forces MVRC always. In Informix I use RC, RUC and SER as they are required on a case to case basis. Now I follow the same priciple in SQLServer also.
I am not denying that MVRC is good. All I am disputing is that it is DA best for every situation, as Oracle arrogantly assumes. Clearly it isn't.
I believe SQLServer is implementing MVRC in Yukon. That's great, since they will still be offering RC,RUC and SER. Oracle should also do that.
rk-
Arrogantly is no more a constructive phrase when referring to MVCC than
would be the same statement with respect to SQL Server's inability to
run on a UNIX platform. Lets leave the hyperbole to the marketing
departments where it belongs.
Then visit this link: http://download-west.oracle.com/docs...6a.htm#2067250
and notice the graphic a few inches from the bottom of the first page.
The one that contains SET TRANSACTION. See anything that might make you
reconsider the depth of your knowledge of Oracle?
--
Daniel Morgan http://www.outreach.washington.edu/e...ad/oad_crs.asp http://www.outreach.washington.edu/e...oa/aoa_crs.asp da******@x.wash ington.edu
(replace 'x' with a 'u' to reply)
"Daniel Morgan" <da******@x.was hington.edu> wrote Then visit this link: http://download-west.oracle.com/docs...6a.htm#2067250
and notice the graphic a few inches from the bottom of the first page. The one that contains SET TRANSACTION. See anything that might make you reconsider the depth of your knowledge of Oracle?
I never claimed that I am an expert in Oracle. Indeed I would have worked
less than six months of my career in Oracle. My information about MVRC
is based on what oracle marketing literature.
However it gives me a good idea on the depth of ur knowledge
as a database teacher in Washingto Univ if u make a stupid
and false claim that reading uncommitted data is useless under
all circumstances. I proved it isn't.
Now that we both have insulted each other, can u come to the
point. Does oracle allow applications to bypass MVRC. I could
have gone to the above link, but it requires a registered login.
thanks.
rk-
"rkusenet" <rk******@sympa tico.ca> wrote in message
news:bp******** *****@ID-75254.news.uni-berlin.de... "Daniel Morgan" <da******@x.was hington.edu> wrote Then visit this link: http://download-west.oracle.com/docs...6a.htm#2067250 and notice the graphic a few inches from the bottom of the first page. The one that contains SET TRANSACTION. See anything that might make you reconsider the depth of your knowledge of Oracle? I never claimed that I am an expert in Oracle. Indeed I would have worked less than six months of my career in Oracle. My information about MVRC is based on what oracle marketing literature.
However it gives me a good idea on the depth of ur knowledge as a database teacher in Washingto Univ if u make a stupid and false claim that reading uncommitted data is useless under all circumstances. I proved it isn't.
Now that we both have insulted each other, can u come to the point. Does oracle allow applications to bypass MVRC. I could have gone to the above link, but it requires a registered login.
I think what rk is talking about is whether Oracle ever allows you to read a
block without checking its SCN.
SET TRANSACTION READ ONLY and SET TRANSACTION ISOLATION LEVEL SERIALIZABLE
use transaction-level read consistency, whereas SET TRANSACTION READ WRITE
and SET TRANSACTION ISOLATION LEVEL READ COMMITTED use statement-level read
consistency. The bottom line is these all require checking the SCN of every
block that you read, comparing its SCN to the SCN of either the beginning of
statement execution, or the beginning of the transaction, and rolling back
the data if necessary. AFAIK, there's no mechanism in Oracle to read a
block without checking its SCN, although SCN checking is basically only an
integer comparison, and even though you're doing it for every block read, I
don't think it represents any significant overhead compared to the time it
takes to actually read the block.
- Dave thanks.
rk-
"Dave Hau" <nospam_dave_no spam_123@nospam _netscape_nospa m.net_nospam> wrote I think what rk is talking about is whether Oracle ever allows you to read a block without checking its SCN.
correct. just like Read Uncommitted allows reading a row without checking
for anything.
SET TRANSACTION READ ONLY and SET TRANSACTION ISOLATION LEVEL SERIALIZABLE use transaction-level read consistency, whereas SET TRANSACTION READ WRITE and SET TRANSACTION ISOLATION LEVEL READ COMMITTED use statement-level read consistency. The bottom line is these all require checking the SCN of every block that you read, comparing its SCN to the SCN of either the beginning of statement execution, or the beginning of the transaction, and rolling back the data if necessary. AFAIK, there's no mechanism in Oracle to read a block without checking its SCN, although SCN checking is basically only an integer comparison, and even though you're doing it for every block read
So I was right.
I don't think it represents any significant overhead compared to the time it takes to actually read the block.
In real world applications, YMMV.
rk-
Comments in-line
rkusenet wrote: "Daniel Morgan" <da******@x.was hington.edu> wrote
Then visit this link: http://download-west.oracle.com/docs...6a.htm#2067250
and notice the graphic a few inches from the bottom of the first page. The one that contains SET TRANSACTION. See anything that might make you reconsider the depth of your knowledge of Oracle?
I never claimed that I am an expert in Oracle. Indeed I would have worked less than six months of my career in Oracle. My information about MVRC is based on what oracle marketing literature.
Good lord man. I hope you don't buy or use any product, not even a
dish washer basedon marketing literature.
However it gives me a good idea on the depth of ur knowledge as a database teacher in Washingto Univ if u make a stupid and false claim that reading uncommitted data is useless under all circumstances. I proved it isn't.
Don't mean to be insulting here but perhaps you should re-read my posts,
I never said reading uncommitted data was useless. Dangerous perhaps but
not useless: Never used the word.
Now that we both have insulted each other, can u come to the point. Does oracle allow applications to bypass MVRC. I could have gone to the above link, but it requires a registered login.
If by bypass you mean transactions that don't use it? Yes! But if you
think that means dirty reads ... no.
--
Daniel Morgan http://www.outreach.washington.edu/e...ad/oad_crs.asp http://www.outreach.washington.edu/e...oa/aoa_crs.asp da******@x.wash ington.edu
(replace 'x' with a 'u' to reply)
Comments inline.
rkusenet wrote: "Dave Hau" <nospam_dave_no spam_123@nospam _netscape_nospa m.net_nospam> wrote
I think what rk is talking about is whether Oracle ever allows you to read a block without checking its SCN. correct. just like Read Uncommitted allows reading a row without checking for anything.
This is an impossible question to answer. Because you can not ever read
a block (in SQL Server verbiage page) without reading the SCN as it is
stored in the block. You can't read something and not read part of it.
Even if you wanted to the operating system would ignore you. Sort of
like asking MS Word to open a document but not read the document's font
information.
But if you mean not use multiversion concurrency with the SCN to
determine whether the row has been changed yes you can. SET TRANSACTION READ ONLY and SET TRANSACTION ISOLATION LEVEL SERIALIZABLE use transaction-level read consistency, whereas SET TRANSACTION READ WRITE and SET TRANSACTION ISOLATION LEVEL READ COMMITTED use statement-level read consistency . The bottom line is these all require checking the SCN of every block that you read, comparing its SCN to the SCN of either the beginning of statement execution, or the beginning of the transaction, and rolling back the data if necessary. AFAIK, there's no mechanism in Oracle to read a block without checking its SCN, although SCN checking is basically only an integer comparison, and even though you're doing it for every block read
So I was right.
No you weren't. I'd suggest you stop spending so much energy trying to
be correct and use this as an opportunity to learn something. You may
well end up on a project some day that requires knowledge of more than a
single RDBMS. I, for example, am currently working in Oracle, Informix,
SQL Server, MS Access, and FoxPro between a variety of projects. I don't think it represents any significant overhead compared to the time it takes to actually read the block.
It takes zero extra time because it is part of the block. If a block is
8K then part of that 8K is the SCN information. In real world applications, YMMV.
rk-
--
Daniel Morgan http://www.outreach.washington.edu/e...ad/oad_crs.asp http://www.outreach.washington.edu/e...oa/aoa_crs.asp da******@x.wash ington.edu
(replace 'x' with a 'u' to reply)
"Daniel Morgan" <da******@x.was hington.edu> wrote in message
news:1069217819 .771457@yasure. .. Comments inline.
rkusenet wrote:
"Dave Hau" <nospam_dave_no spam_123@nospam _netscape_nospa m.net_nospam>
wrote
I think what rk is talking about is whether Oracle ever allows you to
read ablock without checking its SCN. correct. just like Read Uncommitted allows reading a row without
checking for anything.
This is an impossible question to answer. Because you can not ever read a block (in SQL Server verbiage page) without reading the SCN as it is stored in the block. You can't read something and not read part of it. Even if you wanted to the operating system would ignore you. Sort of like asking MS Word to open a document but not read the document's font information.
But if you mean not use multiversion concurrency with the SCN to determine whether the row has been changed yes you can. SET TRANSACTION READ ONLY and SET TRANSACTION ISOLATION LEVEL
SERIALIZABLEuse transaction-level read consistency, whereas SET TRANSACTION READ
WRITEand SET TRANSACTION ISOLATION LEVEL READ COMMITTED use statement-level
readconsistency . The bottom line is these all require checking the SCN of
everyblock that you read, comparing its SCN to the SCN of either the
beginning ofstatement execution, or the beginning of the transaction, and rolling
backthe data if necessary. AFAIK, there's no mechanism in Oracle to read a block without checking its SCN, although SCN checking is basically only
aninteger comparison, and even though you're doing it for every block read
So I was right.
No you weren't. I'd suggest you stop spending so much energy trying to be correct and use this as an opportunity to learn something. You may well end up on a project some day that requires knowledge of more than a single RDBMS. I, for example, am currently working in Oracle, Informix, SQL Server, MS Access, and FoxPro between a variety of projects.
I don't think it represents any significant overhead compared to the
time ittakes to actually read the block.
It takes zero extra time because it is part of the block. If a block is 8K then part of that 8K is the SCN information.
Daniel, I think what rk is talking about is whether Oracle ever allows you
to read a block without *checking* its SCN, not just reading the SCN. Of
course, you're right - when you read a block, you read the SCN as well. But
he's talking about the extra step of checking the SCN against the SCN at the
beginning of the statement execution (for statement level read consistency)
or the SCN at the beginning of the transaction (for transaction level read
consistency) to determine if you need to roll back the block.
Regards,
Dave In real world applications, YMMV.
rk-
-- Daniel Morgan http://www.outreach.washington.edu/e...ad/oad_crs.asp http://www.outreach.washington.edu/e...oa/aoa_crs.asp da******@x.wash ington.edu (replace 'x' with a 'u' to reply) This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Ollivier Robert |
last post by:
Hello,
I'm trying to link PHP with Oracle 9.2.0/OCI8 with gcc 3.2.3 on a Solaris9
system. The link succeeds but everytime I try to run php, I get a SEGV from
inside the libcnltsh.so library.
354 roberto@ausone:Build/php-4.3.2> ldd /opt/php4/bin/php
libsablot.so.0 => /usr/local/lib/libsablot.so.0
libstdc++.so.5 => /usr/local/lib/libstdc++.so.5
libm.so.1 => /usr/lib/libm.so.1
|
by: Richard Galli |
last post by:
I want viewers to compare state laws on a single subject.
Imagine a three-column table with a drop-down box on the top. A viewer
selects a state from the list, and that state's text fills the column below.
The viewer can select states from the drop down lists above the other two
columns as well. If the viewer selects only one, only one column fills. If
the viewer selects two states, two columns fill. Etc.
I could, if appropriate, have...
|
by: FreeStyle |
last post by:
Hi everybody,
I'm using phpMyAdmin 2.2.6 with EasyPHP v.1.6.0.0
I wrote a php script which uses a username (added in the mysql base with
phpMyAdmin).
This user has no privileges.
But in the script, I have the following request for the same username :
INSERT TO table (...) VALUES (....)
And it's working !!! The user can insert new rows with the php script to
the database and
he has no privileges. How it can be possible ?
|
by: Madhusudan Singh |
last post by:
Hi
I wonder if there is a clean way of using https with header() in PHP ? I am
using statements like header("Location: script.php?arg1=argvalue") to
transfer control in my application.
Thanks,
MS
|
by: lnxsimon |
last post by:
Hi,
i have a problem with a form. In my page there is the following code:
--------------------------------------------------------------------------------
<script language="javascript">
<!--
function Modulo() {
// Variabili associate ai campi del modulo
| |
by: Andrew Crowe |
last post by:
Hi guys,
I've come across a rather strange, and very anoying problem.
On /some/ PHP sites that we're developing on 2 different servers, files that
are in the root of the website are unable to load files using relative paths
(they need to be given the full
"C:\Inetpub\wwwroot\website\www\folder\file.txt" rather then
"folder/file.txt"). However includes with relative paths still seem to work.
|
by: Curious Expatriate |
last post by:
Hi-
I'm completely stumped. I'm trying to write some code that will parse
a file and rewrite it with all URLs replaced by something else.
For example: if the file looks like this:
<b>click here</b><a href="http://www.cnn.com">click me</a>
... then the output should be this:
|
by: eric |
last post by:
Greetings!
I've installed Apache 2.0.xx and PHP 4.3.2. I want to use Ming as a module
to PHP. The instructions that came with Ming say to:
as a php module (unix)
download php_ming.so.gz
uncompress it and copy it to your php modules directory
(you can find your php module directory by running php-config
--extension-dir)
|
by: Susanne Klemm |
last post by:
Hello!
I am working with the XML-DOM-Extension. I want to change the content of a
variable in a XSL-Document. The following testscript works well.
$dom = domxml_open_file(getcwd()."/einzelnes_item.xsl")
$elements = $dom->get_elements_by_tagname("table")
echo count($elements)." Elements<br/>";
for ($i=0;$i<count($elements);$i++)
|
by: zelnaga |
last post by:
i'm connecting to the internet via a proxy, and am having problems
filling out forms... below is the code i have, and below that is the
http request i am trying to make it look like. they look the same to
me, but it isn't working, so i guess they aren't...
$proxy = fsockopen("tcp://someaddresshere", 80, $errno,
$errstr);
$temp = "somethingelse=blablabla";
fputs($proxy,"GET somesite HTTP/1.0\r\n");
fputs($proxy,"Accept: */*\r\n");
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |