Check your odbc.ini connections settings (CommitMode) add it if it's not
there.

https://www-304.ibm.com/support/docview.wss?uid=nas8N1017566



On Fri, Apr 8, 2016 at 9:12 AM, Bryan Dietz <bdietz400@xxxxxxxxx> wrote:

One thought, is the file on the IBM i journalled?

Bryan



Jason Aleski wrote on 4/7/2016 5:29 PM:

I have a Linux Server (PHP/NGINX) which has an unixODBC connection to
our iSeries. I can run SELECTs all day long, but when I attempt to run
an UPDATE, it tells me the connection is set to read only.

*Warning*: odbc_exec(): SQL error: [unixODBC][IBM][System i Access ODBC
Driver]Statement violates access rule: Connection is set to read only.,
SQL state 37000 in SQLExecDirect

in*/usr/share/nginx/html/mass_address_change/includes/adodb5/drivers/adodb-odbc.inc.php*on
line*540*
37000: [unixODBC][IBM][System i Access ODBC Driver]Statement violates
access rule: Connection is set to read only.


I've looked in my odbc.ini and odbcinst.ini, but do not see anything
that references the readonly mode. Has anyone ran across this?

-JA-



Jason Aleski / IT Specialist


--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing
list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.