Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I can only extract tables from an Oracle database if connect as a user that owns the objects. #529

Open
gillianh1 opened this issue Sep 13, 2022 · 2 comments
Assignees
Labels

Comments

@gillianh1
Copy link

Description: I can only extract tables from and Oracle database if connect as a user that owns the objects. I was expecting to be able to connect to a user with read only permissions on objects I want to extract.

Context:
DBPTK Desktop: Installed on Windows 10 PC
Using dbptk-desktop-2.6.0.exe

Steps required to reproduce the bug:

1.I've created a user with select permissions to 6 tables in an Oracle database.
2.When run DBPTK Desktop to create SIARD file and point to this user on the database no tables are extracted to siard file.
3.I've created another user which owns a copy of these 6 objects - in this case when I create a SIARD file the tables are included in the SIARD file.

I was under the impression that we only required an account with read access to objects in order to produce a SIARD file from an oracle database.

Is this not the case? Does the user need to own the objects?

Thanks

@hmiguim
Copy link
Member

hmiguim commented Sep 20, 2022

Hi,

You need those permissions to fetch metadata about the table that is only available to the owner.

@hmiguim hmiguim self-assigned this Sep 20, 2022
@hmiguim hmiguim transferred this issue from keeps/dbptk-ui Sep 20, 2022
@hmiguim hmiguim added the discussion/question Issue type label Sep 20, 2022
@gillianh1
Copy link
Author

Thanks for confirmation. We will need to make sure we extract as the object owner. Or copy to a staging user before extracting.

I had thought DBPTK would have the same requirements as SIARD Suite which requires the setup of a read only account.
https://www.bar.admin.ch/bar/en/home/archiving/tools/siard-suite.html
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

No branches or pull requests

2 participants