Re: Set connection to read only and back to writable?



On Mon, Oct 17, 2005 at 06:11:53PM +0200, Gert wrote:
> Tim Bunce wrote:
>
> > On Fri, Oct 14, 2005 at 05:15:36PM +0200, Gert wrote:
>
> >> is it possible to switch a dbi-connection between read-only and writable?
> >
> > It's not a standard part of the DBI API, but it is possible with some
>
> Hmm, ok. If it is not a standard feature I can only use it while developing
> for debugging.

No, it just means that no database-independant API has been defined
so you'll need to use database-specific code.

> > drivers. Knowing which driver you're using might help us...
>
> It is mysql and perhaps Oracle.

Umm, now I come to look at it I see that mysql's "SET READ_ONLY=1"
command only works at the global level ("SET GLOBAL READ_ONLY=1")
and that's probably not what you want. I've no time to dig further.

Anyone know how a connection can be set to read-only in MySQL and/or Oracle?

Tim.
.



Relevant Pages

  • Re: UPDATE problem - FROM Clause not supported in Oracle
    ... >>You mean Oracle can't support Standard SQL92? ... > SQL server code will run unaltered on Oracle. ... code I posted is compliant with entry level SQL-92. ...
    (comp.databases.oracle.server)
  • Re: How to decode in SQL Server 2005
    ... non-standard, non-portable features such as the join syntax, DECODE, ... NVL even though Oracle has long since supported the ... ISO standard alternatives. ... The main reason is that we use what we know best. ...
    (comp.databases.ms-sqlserver)
  • Re: How to decode in SQL Server 2005
    ... Yet I still see Oracle developers today using the legacy non-standard, non-portable features such as the join syntax, DECODE, NVL even though Oracle has long since supported the ISO standard alternatives. ... Oracle implemented SQL92 features much later than IBM, Microsoft or Sybase so I suppose that's one reason why the standard seems less widely adopted on Oracle. ... Net change in functionality 0 ...
    (comp.databases.ms-sqlserver)
  • Re: unable to figure out select query
    ... MySQL fails to behave in the standard way in this case. ... Here's a trick I use with OUTER JOIN to find greatest/least values in a group, when I want to avoid subqueries: ... This searches for t.subchapter < t2.subchapter and restricts the results to those such that no greater subchapter is found within the group (i.e. ...
    (comp.databases)
  • Re: Hints in Practice
    ... and do not conform to any standard. ... Thus you don't use array processing, don't use exception handling, don't use PL/SQL packages, and heaven-forbid don't use any type of index other ... then embrace Oracle. ... If they are confident about the optimizer, why are hints necessary? ...
    (comp.databases.oracle.server)