Skip to Main Content

NoSQL Database

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

question regarding db lock

Eric JingMar 17 2021

Dear sir,

Suppose below is the team table:
CREATE TABLE if not exists teamTable
(
teamid integer GENERATED BY DEFAULT AS IDENTITY
(START WITH 1 INCREMENT BY 1),
users array(record(name string, userid integer)),
primary key (teamid)
)

And suppose there are 2 db requests inserting new users into the same team (with same teamid) at the same time. Does it mean that query 2 cannot been done only until query 1 is finished? If the nosql db is functioning as what I mentioned above, it will reduce it’s write performance if a lot of query want to write/insert/update some data into the same array element at the same time (which below to the same row with the same primary key), and the same applies to the “map”.
So, regarding this, does oracle nosql db has a row lock mechanism similar to oracle database? Thank you.

Comments

gprasad-Oracle

Hi,

OCCI comes by default along with Oracle database client. So you can download client for your version and platform.

Thanks.

Dudu90

I haven't installed the Oracle Database Client. I wanted a minimal setup.

I downloaded the Oracle Instant Client SDK and Basic and now it works with Visual Studio. I found out that Oracle ships it only for Visual Studio. I read something about, that it might work with cygwin, but it doesn't really work. All I get is this:

$ g++ -L/cygdrive/e/instantclient_12_1/sdk/lib/msvc/ -I/cygdrive/e/instantclient_12_1/sdk/include/ OracleSqlTest.cpp -ociw32 -loci -loraocci12

/tmp/cce5RtIc.o:OracleSqlTest.cpp:(.text+0x37): undefined reference to `oracle::occi::Environment::createEnvironment(oracle::occi::Environment::Mode, void*, void* (*)(void*, unsigned int), void* (*)(void*, void*, unsigned int), void (*)(void*, void*))'

To my knowledge that means, that those libs (compiled with VC) aren't compatible with my cygwin g++. Is that right?

Thanks

2733134

i am having trouble connecting to database using OCCI OTT utility , please let me know if anyone has done it before...

1 - 3

Post Details

Added on Mar 17 2021
1 comment
117 views