Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

Calm down, it's *____only* ones and zeroes.


computers / comp.os.vms / Re: VMS databases

SubjectAuthor
* VMS databasesArne Vajhøj
+* Re: VMS databasesArne Vajhøj
|+* Re: VMS databasesJay E. Morris
||+* Re: VMS databasesNeil Rieck
|||`* Re: VMS databasesNeil Rieck
||| +- Re: VMS databasesJohn Reagan
||| `- Re: VMS databasesDavid Jones
||`- Re: VMS databasesScott Dorsey
|+* Re: VMS databasesArne Vajhøj
||+* Re: VMS databasesCraig A. Berry
|||`- Re: VMS databasesArne Vajhøj
||+* Re: VMS databasesNeil Rieck
|||`* Re: VMS databasesArne Vajhøj
||| +- Re: VMS databasesNeil Rieck
||| `* Re: VMS databasesArne Vajhøj
|||  `* Re: VMS databasesNeil Rieck
|||   `- Re: VMS databasesArne Vajhøj
||`- Re: VMS databasesArne Vajhøj
|`* Re: VMS databasesStephen Hoffman
| +* Re: VMS databasesDavid Jones
| |`* Re: VMS databasesNeil Rieck
| | `* Re: VMS databasesArne Vajhøj
| |  `* Re: VMS databasesArne Vajhøj
| |   `* Re: VMS databasesSingle Stage to Orbit
| |    `- Re: VMS databasesJake Hamby (Solid State Jake)
| `* Re: VMS databasesJan-Erik Söderholm
|  `* Re: VMS databasesStephen Hoffman
|   `- Re: VMS databasesArne Vajhøj
+* Re: VMS databasesDavid Jones
|`- Re: VMS databasesArne Vajhøj
`* Re: VMS databasesJake Hamby (Solid State Jake)
 `* Re: VMS databasesArne Vajhøj
  `* Re: VMS databasesDavid Jones
   `- Re: VMS databasesJake Hamby (Solid State Jake)

Pages:12
Re: VMS databases

<c44a2ded-3d07-4cab-8f0a-757631177b1an@googlegroups.com>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=31653&group=comp.os.vms#31653

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:a05:622a:8108:b0:421:c270:350d with SMTP id jx8-20020a05622a810800b00421c270350dmr196163qtb.12.1700506699089;
Mon, 20 Nov 2023 10:58:19 -0800 (PST)
X-Received: by 2002:a17:902:ced0:b0:1c9:f267:1661 with SMTP id
d16-20020a170902ced000b001c9f2671661mr82325plg.2.1700506698706; Mon, 20 Nov
2023 10:58:18 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.vms
Date: Mon, 20 Nov 2023 10:58:17 -0800 (PST)
In-Reply-To: <ujebpi$192m$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=70.30.63.110; posting-account=QqCTBgkAAACie99dBE6oFauYH8hE6sk0
NNTP-Posting-Host: 70.30.63.110
References: <uj92tt$312hn$4@dont-email.me> <ujahbq$3b8f1$1@dont-email.me>
<ujbie6$3gndc$1@dont-email.me> <1c0a124b-40e0-4ab3-8927-732481e660ban@googlegroups.com>
<655a3cee$0$719$14726298@news.sunsite.dk> <ujebpi$192m$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <c44a2ded-3d07-4cab-8f0a-757631177b1an@googlegroups.com>
Subject: Re: VMS databases
From: n.rieck@bell.net (Neil Rieck)
Injection-Date: Mon, 20 Nov 2023 18:58:19 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2797
 by: Neil Rieck - Mon, 20 Nov 2023 18:58 UTC

On Sunday, November 19, 2023 at 8:12:22 PM UTC-5, Arne Vajhøj wrote:
> On 11/19/2023 11:50 AM, Arne Vajhøj wrote:
> > On 11/19/2023 4:47 AM, Neil Rieck wrote:
> >> On Saturday, November 18, 2023 at 6:47:22 PM UTC-5, Arne Vajhøj wrote:
> >>> On 11/18/2023 9:22 AM, Arne Vajhøj wrote:
> >>>> VMS Basic is as it is and the libmysql API is what it is and
> >>>> any solution is constrained by that.
> >>>>
> >>>> I do not have any magic solution for the problem. I would
> >>>> probably have made the API differently (but differently does
> >>>> not necessarily mean better).
> >>> I could not resist trying.
> >>>
> >>> This is first attempt. But I think it is a relative clean API.
> >
> >> Could you post the included code: "b.bas"
> >
> > B.BAS is not so interesting:
> > B2C.C has the interesting stuff:
> I just made bunch of changes (support more data types,
> support CLASS S strings, some error handling in the form
> of negative return values and a sub to get error message).
>
> https://www.vajhoej.dk/arne/opensource/vms/vmsbmysql-src-v0_1.zip
>
> Arne

I will check it out this offering.

BTW the stuff you published here yesterday worked like a charm (once I was able to divine what went in the opt file)

Neil Rieck
Waterloo, Ontario, Canada.
https://neilrieck.net
https://neilrieck.net/OpenVMS.html
https://neilrieck.net/OpenVMS-Programmers-Corner.html

Re: VMS databases

<6a5a2c3c-f151-4174-a641-534f14c90326n@googlegroups.com>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=31655&group=comp.os.vms#31655

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:ac8:5784:0:b0:41c:96b4:d70b with SMTP id v4-20020ac85784000000b0041c96b4d70bmr220615qta.9.1700508257961;
Mon, 20 Nov 2023 11:24:17 -0800 (PST)
X-Received: by 2002:a65:67d8:0:b0:5bd:bcd8:8b0e with SMTP id
b24-20020a6567d8000000b005bdbcd88b0emr1755464pgs.12.1700508257521; Mon, 20
Nov 2023 11:24:17 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.vms
Date: Mon, 20 Nov 2023 11:24:16 -0800 (PST)
In-Reply-To: <80ddd39846a51377adee176adbf56c391fd910e9.camel@munted.eu>
Injection-Info: google-groups.googlegroups.com; posting-host=2600:1012:b0c4:2a6b:8cee:4961:d981:d9c9;
posting-account=OGFVHQoAAAASiNAamRQec8BtkuXxYFnQ
NNTP-Posting-Host: 2600:1012:b0c4:2a6b:8cee:4961:d981:d9c9
References: <uj92tt$312hn$4@dont-email.me> <ujahbq$3b8f1$1@dont-email.me>
<ujdh49$3t4eg$1@dont-email.me> <f83f4a3c-c52e-4c83-8f9c-370b624d7a30n@googlegroups.com>
<613af8c9-1759-49db-baf0-60bf1316f654n@googlegroups.com> <655a7753$0$718$14726298@news.sunsite.dk>
<ujdt79$3v180$1@dont-email.me> <80ddd39846a51377adee176adbf56c391fd910e9.camel@munted.eu>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <6a5a2c3c-f151-4174-a641-534f14c90326n@googlegroups.com>
Subject: Re: VMS databases
From: jake.hamby@gmail.com (Jake Hamby (Solid State Jake))
Injection-Date: Mon, 20 Nov 2023 19:24:17 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2599
 by: Jake Hamby (Solid St - Mon, 20 Nov 2023 19:24 UTC

On Sunday, November 19, 2023 at 3:01:40 PM UTC-8, Single Stage to Orbit wrote:
> On Sun, 2023-11-19 at 16:03 -0500, Arne Vajhøj wrote:
> > > SQLite and MySQL are not solutions for the same problem.
> >
> > I just did a check on my PC for what applications use SQLite.
> >
> > A lot.
> >
> > 3 interesting ones:
> > * Oracle DB GDAL
> > * MySQL WorkBench
> > * PostgreSQL pgAdmin
> >
> > :-)
> >
> > Even if it is all about a database server then a small embedded
> > database
> > can be the right tool for some task.
> Android is riddled with apps that make use of SQLite3.

I would hope so, considering that android.database.sqlite has been part of the API since version 1. No need to reinvent the wheel. I believe most experienced Android devs know about and use Room or some other persistence API as opposed to raw SQL queries, but I could be wrong.

I just looked at what Dart / Flutter are doing and they have a “sqlflite” plugin that supports iOS, Android, and macOS.

Re: VMS databases

<40566946-ab15-445c-9f34-4cb3336a4406n@googlegroups.com>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=31656&group=comp.os.vms#31656

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:a05:620a:4cf:b0:76f:cd2:5d10 with SMTP id 15-20020a05620a04cf00b0076f0cd25d10mr11014qks.5.1700509580849;
Mon, 20 Nov 2023 11:46:20 -0800 (PST)
X-Received: by 2002:a05:6a00:2314:b0:68e:3053:14b9 with SMTP id
h20-20020a056a00231400b0068e305314b9mr134521pfh.2.1700509580234; Mon, 20 Nov
2023 11:46:20 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.vms
Date: Mon, 20 Nov 2023 11:46:19 -0800 (PST)
In-Reply-To: <192be0d3-86d4-45a8-8829-920391d04007n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2600:1012:b0c4:2a6b:8cee:4961:d981:d9c9;
posting-account=OGFVHQoAAAASiNAamRQec8BtkuXxYFnQ
NNTP-Posting-Host: 2600:1012:b0c4:2a6b:8cee:4961:d981:d9c9
References: <uj92tt$312hn$4@dont-email.me> <192be0d3-86d4-45a8-8829-920391d04007n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <40566946-ab15-445c-9f34-4cb3336a4406n@googlegroups.com>
Subject: Re: VMS databases
From: jake.hamby@gmail.com (Jake Hamby (Solid State Jake))
Injection-Date: Mon, 20 Nov 2023 19:46:20 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 3430
 by: Jake Hamby (Solid St - Mon, 20 Nov 2023 19:46 UTC

On Saturday, November 18, 2023 at 3:44:00 AM UTC-8, Neil Rieck wrote:
> On Friday, November 17, 2023 at 8:10:25 PM UTC-5, Arne Vajhøj wrote:
> > I just did another little article.
> >
> > https://www.vajhoej.dk/arne/articles/vmsdbx.html
> >
> > providing some examples for the databases available on VMS (Rdb, MySQL,
> > SQLite, Mimer, Derby, H2, HSQLDB) in various programming languages
> > (Cobol, C, Pascal, Java, Jython, Python, PHP).
> >
> > Nothing surprising and a lot of overlap with previous
> > articles, but a different perspective.
> >
> > Arne
> This is a very impressive publication. On behalf of the OpenVMS community I say "thanks!"
>
> Two additional points.
>
> 1) I've done a bit of hacking with SQLite (on both OpenVMS + Linux ) and can inform that it should only be used in single user applications. When any process issues an "update table" command, all other processes are locked out.

I’ve also long considered SQLite to be basically only useful for single-process use. SQLite 3 has file locking support using various OS-specific APIs but I’m not sure how efficient or concurrent it is in practice.

I see Arne’s blog post doesn’t appear to mention the native VMS port of SQLite by David L. Jones. I downloaded it and looked at it very briefly and it has a custom locking implementation using a “lock nexus file” (default sys$login:sqlite3_lock_nexus.nxs). Code comment: “The intent is the actual files are unlocked and shared access is coordinated through locking of records in the nexus files (which allows waits) as a proxy.”

There’s clearly a lot of effort that has gone into the native port but I’m not sure if it matters much when multi-process access doesn’t seem to be a common use case for SQLite. It’s also an unusual choice to create a separate file for lock management and put it in the user’s home directory. What if you want to make the database file accessible to multiple users?

Re: VMS databases

<655bc814$0$718$14726298@news.sunsite.dk>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=31657&group=comp.os.vms#31657

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail
Date: Mon, 20 Nov 2023 15:56:54 -0500
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: VMS databases
Newsgroups: comp.os.vms
References: <uj92tt$312hn$4@dont-email.me> <ujahbq$3b8f1$1@dont-email.me>
<ujbie6$3gndc$1@dont-email.me>
<1c0a124b-40e0-4ab3-8927-732481e660ban@googlegroups.com>
<655a3cee$0$719$14726298@news.sunsite.dk> <ujebpi$192m$1@dont-email.me>
<c44a2ded-3d07-4cab-8f0a-757631177b1an@googlegroups.com>
Content-Language: en-US
From: arne@vajhoej.dk (Arne Vajhøj)
In-Reply-To: <c44a2ded-3d07-4cab-8f0a-757631177b1an@googlegroups.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Lines: 39
Message-ID: <655bc814$0$718$14726298@news.sunsite.dk>
Organization: SunSITE.dk - Supporting Open source
NNTP-Posting-Host: c5f3412a.news.sunsite.dk
X-Trace: 1700513812 news.sunsite.dk 718 arne@vajhoej.dk/68.9.63.232:51005
X-Complaints-To: staff@sunsite.dk
 by: Arne Vajhøj - Mon, 20 Nov 2023 20:56 UTC

On 11/20/2023 1:58 PM, Neil Rieck wrote:
> On Sunday, November 19, 2023 at 8:12:22 PM UTC-5, Arne Vajhøj wrote:
>> On 11/19/2023 11:50 AM, Arne Vajhøj wrote:
>>> On 11/19/2023 4:47 AM, Neil Rieck wrote:
>>>> On Saturday, November 18, 2023 at 6:47:22 PM UTC-5, Arne Vajhøj wrote:
>>>>> On 11/18/2023 9:22 AM, Arne Vajhøj wrote:
>>>>>> VMS Basic is as it is and the libmysql API is what it is and
>>>>>> any solution is constrained by that.
>>>>>>
>>>>>> I do not have any magic solution for the problem. I would
>>>>>> probably have made the API differently (but differently does
>>>>>> not necessarily mean better).
>>>>> I could not resist trying.
>>>>>
>>>>> This is first attempt. But I think it is a relative clean API.
>>>
>>>> Could you post the included code: "b.bas"
>>>
>>> B.BAS is not so interesting:
>>> B2C.C has the interesting stuff:
>> I just made bunch of changes (support more data types,
>> support CLASS S strings, some error handling in the form
>> of negative return values and a sub to get error message).
>>
>> https://www.vajhoej.dk/arne/opensource/vms/vmsbmysql-src-v0_1.zip
>
> I will check it out this offering.

It is the same code just added and modified a few things.

> BTW the stuff you published here yesterday worked like a charm (once I was able to divine what went in the opt file)

The ZIP also has B.OPT!

:-)

Arne

Re: VMS databases

<655bcc40$0$718$14726298@news.sunsite.dk>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=31658&group=comp.os.vms#31658

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail
Date: Mon, 20 Nov 2023 16:14:42 -0500
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: VMS databases
Content-Language: en-US
Newsgroups: comp.os.vms
References: <uj92tt$312hn$4@dont-email.me>
<192be0d3-86d4-45a8-8829-920391d04007n@googlegroups.com>
<40566946-ab15-445c-9f34-4cb3336a4406n@googlegroups.com>
From: arne@vajhoej.dk (Arne Vajhøj)
In-Reply-To: <40566946-ab15-445c-9f34-4cb3336a4406n@googlegroups.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Lines: 62
Message-ID: <655bcc40$0$718$14726298@news.sunsite.dk>
Organization: SunSITE.dk - Supporting Open source
NNTP-Posting-Host: 3d667ecb.news.sunsite.dk
X-Trace: 1700514880 news.sunsite.dk 718 arne@vajhoej.dk/68.9.63.232:51005
X-Complaints-To: staff@sunsite.dk
 by: Arne Vajhøj - Mon, 20 Nov 2023 21:14 UTC

On 11/20/2023 2:46 PM, Jake Hamby (Solid State Jake) wrote:
> On Saturday, November 18, 2023 at 3:44:00 AM UTC-8, Neil Rieck wrote:
>> On Friday, November 17, 2023 at 8:10:25 PM UTC-5, Arne Vajhøj wrote:
>>> I just did another little article.
>>>
>>> https://www.vajhoej.dk/arne/articles/vmsdbx.html
>>>
>>> providing some examples for the databases available on VMS (Rdb, MySQL,
>>> SQLite, Mimer, Derby, H2, HSQLDB) in various programming languages
>>> (Cobol, C, Pascal, Java, Jython, Python, PHP).
>>>
>>> Nothing surprising and a lot of overlap with previous
>>> articles, but a different perspective.

>> Two additional points.
>>

>> 1) I've done a bit of hacking with SQLite (on both OpenVMS + Linux
>> ) and can inform that it should only be used in single user
>> applications. When any process issues an "update table" command,
>> all other processes are locked out.
>
> I’ve also long considered SQLite to be basically only useful for
> single-process use. SQLite 3 has file locking support using various
> OS-specific APIs but I’m not sure how efficient or concurrent it is
> in practice.

Embedded database are really for the single-process use case.

> I see Arne’s blog post doesn’t appear to mention the native VMS port
> of SQLite by David L. Jones.

It is the one I am using. I am not even aware of any other.

> I downloaded it and looked at it very
> briefly and it has a custom locking implementation using a “lock
> nexus file” (default sys$login:sqlite3_lock_nexus.nxs). Code comment:
> “The intent is the actual files are unlocked and shared access is
> coordinated through locking of records in the nexus files (which
> allows waits) as a proxy.”
>
> There’s clearly a lot of effort that has gone into the native port
> but I’m not sure if it matters much when multi-process access doesn’t
> seem to be a common use case for SQLite.

I think it works pretty well within its expected "comfort zone".

The JDBC driver could need some work though.

> It’s also an unusual choice
> to create a separate file for lock management and put it in the
> user’s home directory. What if you want to make the database file
> accessible to multiple users?
Multi-users does not necessarily mean multiple usernames.

But if multiple usernames then you can define the logical
SQLITE3_NEXUS_FILE to point to a file shared among them.

Arne

Re: VMS databases

<ujgt1k$h965$1@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=31660&group=comp.os.vms#31660

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: arne@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: VMS databases
Date: Mon, 20 Nov 2023 19:19:00 -0500
Organization: A noiseless patient Spider
Lines: 25
Message-ID: <ujgt1k$h965$1@dont-email.me>
References: <uj92tt$312hn$4@dont-email.me> <ujahbq$3b8f1$1@dont-email.me>
<ujdh49$3t4eg$1@dont-email.me> <uje1re$3vg63$1@dont-email.me>
<ujg2o7$csb5$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 21 Nov 2023 00:19:00 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="fa9226040965d48d477f5a99448c8799";
logging-data="566469"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19zzKdThHXxTQ+giPGEurULBe16/RoST78="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:qWU0WnYr1KNgkxiUBDj3XD+SzAY=
Content-Language: en-US
In-Reply-To: <ujg2o7$csb5$1@dont-email.me>
 by: Arne Vajhøj - Tue, 21 Nov 2023 00:19 UTC

On 11/20/2023 11:50 AM, Stephen Hoffman wrote:
> On 2023-11-19 22:22:37 +0000, Jan-Erik Söderholm said:
>> Den 2023-11-19 kl. 18:37, skrev Stephen Hoffman:
>>> As with many things in IT, that depends.
>>>
>>> Expectations and related sizes can also differ. What can be
>>> considered a small database for SQLite can potentially be considered
>>> a large database for OpenVMS, for instance.
>>>
>>> Expectations? SQLite tops out at 256 TiB databases, while OpenVMS
>>> file storage tops out at 2 TiB files absent 'heroic' efforts.
>>
>> A single Rdb database can have 8192 storage areas (individual files)
>> so the max database size would be something like 16.000 TiB.
>
> So... Heroic _and_ expensive.

I believe that people would:
* switch from SQLite to a database server way before 256 TB
* switch from Rdb to Wide Column Data Store NoSQL database (like
HBase or Cassandra/ScyllaDB) way before 16 PB

Arne

Re: VMS databases

<6c8e6a48-2d61-430c-aef2-763e310d3c3bn@googlegroups.com>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=31661&group=comp.os.vms#31661

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:a05:620a:1a1a:b0:77b:d8aa:6760 with SMTP id bk26-20020a05620a1a1a00b0077bd8aa6760mr45851qkb.2.1700533059940;
Mon, 20 Nov 2023 18:17:39 -0800 (PST)
X-Received: by 2002:a63:2543:0:b0:5be:9b7:23ed with SMTP id
l64-20020a632543000000b005be09b723edmr1931143pgl.3.1700533059652; Mon, 20 Nov
2023 18:17:39 -0800 (PST)
Path: i2pn2.org!i2pn.org!news.niel.me!glou.org!news.glou.org!fdn.fr!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.vms
Date: Mon, 20 Nov 2023 18:17:39 -0800 (PST)
In-Reply-To: <655bcc40$0$718$14726298@news.sunsite.dk>
Injection-Info: google-groups.googlegroups.com; posting-host=104.231.150.181; posting-account=CO-_tAoAAACjjs2KLAw3xVKCy6Z_J3VK
NNTP-Posting-Host: 104.231.150.181
References: <uj92tt$312hn$4@dont-email.me> <192be0d3-86d4-45a8-8829-920391d04007n@googlegroups.com>
<40566946-ab15-445c-9f34-4cb3336a4406n@googlegroups.com> <655bcc40$0$718$14726298@news.sunsite.dk>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <6c8e6a48-2d61-430c-aef2-763e310d3c3bn@googlegroups.com>
Subject: Re: VMS databases
From: osuvman50@gmail.com (David Jones)
Injection-Date: Tue, 21 Nov 2023 02:17:39 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: David Jones - Tue, 21 Nov 2023 02:17 UTC

On Monday, November 20, 2023 at 4:14:49 PM UTC-5, Arne Vajhøj wrote:
> On 11/20/2023 2:46 PM, Jake Hamby (Solid State Jake) wrote:
> > It’s also an unusual choice
> > to create a separate file for lock management and put it in the
> > user’s home directory. What if you want to make the database file
> > accessible to multiple users?
> Multi-users does not necessarily mean multiple usernames.
>
> But if multiple usernames then you can define the logical
> SQLITE3_NEXUS_FILE to point to a file shared among them.
>

The VMS VFS supports 2 lock methods. The default is to use a nexus file,
which lets users run SQLite without requiring an administrator account to
set up. The alternate method uses system DLM locks accessed via a User
Written System Service (UWSS), which requires an administrator to
install the SQLITE3_PRV_LOCK protected image (usually at system startup).

Re: VMS databases

<7928d641-b710-4a24-adba-d833600dd7bdn@googlegroups.com>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=31662&group=comp.os.vms#31662

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:a05:6214:8e7:b0:66d:86be:254f with SMTP id dr7-20020a05621408e700b0066d86be254fmr210341qvb.7.1700533309960;
Mon, 20 Nov 2023 18:21:49 -0800 (PST)
X-Received: by 2002:a63:5a14:0:b0:5bd:64f8:ca66 with SMTP id
o20-20020a635a14000000b005bd64f8ca66mr2002576pgb.1.1700533309645; Mon, 20 Nov
2023 18:21:49 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.vms
Date: Mon, 20 Nov 2023 18:21:49 -0800 (PST)
In-Reply-To: <6c8e6a48-2d61-430c-aef2-763e310d3c3bn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=174.243.149.248; posting-account=OGFVHQoAAAASiNAamRQec8BtkuXxYFnQ
NNTP-Posting-Host: 174.243.149.248
References: <uj92tt$312hn$4@dont-email.me> <192be0d3-86d4-45a8-8829-920391d04007n@googlegroups.com>
<40566946-ab15-445c-9f34-4cb3336a4406n@googlegroups.com> <655bcc40$0$718$14726298@news.sunsite.dk>
<6c8e6a48-2d61-430c-aef2-763e310d3c3bn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <7928d641-b710-4a24-adba-d833600dd7bdn@googlegroups.com>
Subject: Re: VMS databases
From: jake.hamby@gmail.com (Jake Hamby (Solid State Jake))
Injection-Date: Tue, 21 Nov 2023 02:21:49 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Jake Hamby (Solid St - Tue, 21 Nov 2023 02:21 UTC

On Monday, November 20, 2023 at 6:17:41 PM UTC-8, David Jones wrote:
> On Monday, November 20, 2023 at 4:14:49 PM UTC-5, Arne Vajhøj wrote:
> > On 11/20/2023 2:46 PM, Jake Hamby (Solid State Jake) wrote:
> > > It’s also an unusual choice
> > > to create a separate file for lock management and put it in the
> > > user’s home directory. What if you want to make the database file
> > > accessible to multiple users?
> > Multi-users does not necessarily mean multiple usernames.
> >
> > But if multiple usernames then you can define the logical
> > SQLITE3_NEXUS_FILE to point to a file shared among them.
> >
> The VMS VFS supports 2 lock methods. The default is to use a nexus file,
> which lets users run SQLite without requiring an administrator account to
> set up. The alternate method uses system DLM locks accessed via a User
> Written System Service (UWSS), which requires an administrator to
> install the SQLITE3_PRV_LOCK protected image (usually at system startup).

Ah, that's interesting. My apologies for skipping over that option. I'll have to check out that code. User-written system services are an interesting concept.

Jake

Re: VMS databases

<ulb0ab$3s2g5$1@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=32121&group=comp.os.vms#32121

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: arne@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: VMS databases
Date: Tue, 12 Dec 2023 20:10:35 -0500
Organization: A noiseless patient Spider
Lines: 48
Message-ID: <ulb0ab$3s2g5$1@dont-email.me>
References: <uj92tt$312hn$4@dont-email.me> <ujahbq$3b8f1$1@dont-email.me>
<ujbie6$3gndc$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 13 Dec 2023 01:10:35 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="1220b1ed685e0eb8f68d75f96b54a8ae";
logging-data="4065797"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19WrgfpX8Tbvd+OLMbaaBhVzIkblBncWvY="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:58FLJRrJHayrAsAvev265CbVTjs=
In-Reply-To: <ujbie6$3gndc$1@dont-email.me>
Content-Language: en-US
 by: Arne Vajhøj - Wed, 13 Dec 2023 01:10 UTC

On 11/18/2023 6:47 PM, Arne Vajhøj wrote:
> On 11/18/2023 9:22 AM, Arne Vajhøj wrote:
>> On 11/17/2023 8:10 PM, Arne Vajhøj wrote:
>>> I just did another little article.
>>>
>>> https://www.vajhoej.dk/arne/articles/vmsdbx.html
>>>
>>> providing some examples for the databases available on VMS (Rdb, MySQL,
>>> SQLite, Mimer, Derby, H2, HSQLDB) in various programming languages
>>> (Cobol, C, Pascal, Java, Jython, Python, PHP).
>>>
>>> Nothing surprising and a lot of overlap with previous
>>> articles, but a different perspective.
>>
>> Niel Rieck replied (for some reason the post did not propagate
>> to eternal-september, so this is a manual copy from Google Groups):

>>  > 2) Back in 2016 I received a copy of MariaDB-5.5 for OpenVMS Itanium
>>  > from Mark Berryman. Since 90% of our VMS stuff is written in BASIC, I
>>  > spent more than a few days trying to glue Mark's client code to my
>>  > BASIC programs (we are in the process of moving our data from RMS to
>>  > MariaDB). Linking the object files was fairly easy using Mark's
>>  > instructions. Trying to pass string arrays from C to BASIC was a
>>  > little more difficult. My eventual solution involved created string
>>  > arrays in a BASIC declared COMMON then had C employ str$get1_dx() to
>>  > copy the data back. I would be interested to learn if you had a better
>>  > method.

>> VMS Basic is as it is and the libmysql API is what it is and
>> any solution is constrained by that.
>>
>> I do not have any magic solution for the problem. I would
>> probably have made the API differently (but differently does
>> not necessarily mean better).
>
> I could not resist trying.
>
> This is first attempt. But I think it is a relative clean API.

I updated the article with:
* Basic & MySQL examples
* Groovy & JPA examples

(yes - Groovy and JPA makes for real short code)

Arne

Pages:12
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor