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

Rest API Database Lock #50

Open
sprintell opened this issue Jan 22, 2024 · 8 comments
Open

Rest API Database Lock #50

sprintell opened this issue Jan 22, 2024 · 8 comments
Assignees

Comments

@sprintell
Copy link
Member

Reviewing the strategy to overcome Database Lock issue in the Rest API

@sprintell sprintell self-assigned this Jan 22, 2024
@sprintell
Copy link
Member Author

sprintell commented Aug 5, 2024

  • Schedule a meeting with Mark Head in DBA
  • Compare different options of what could be done to bring and end to the problem
  • Implement the solution

@sprintell
Copy link
Member Author

We had a meeting with Mark Head concerning theis problem. The root of this problem is that whenever SPOTPRO database refresh is executed in Delphix for any of the other Oracle database environments including the SPOTPUB Database (SPOTDV1, SPOTDV2, SPOTDV3, SPOTTST, SPOTPUB, SPOTPUBFALL, SPOTCTV, SPOTPREL), the SPOTPRO "gwas user" password overwrites the password of the given database.

The agreed solution is to create other "non gwas" users and password for each Oracle database in SPOTPRO. if this "non gwas" user is used to connect from the application to the Oracle Database, the password will still be working after SPOTPRO refresh, because this new users and passwords will be thesame after DB Refresh. With this, the lock will not occur again.

Ticket INC0060321 is used to work on this fix.

@sprintell
Copy link
Member Author

Mark is now on holiday, when this was tested on the last data release, the changes Mark Head made did not work.

Waiting for Mark to fix the changes he made ...

@sprintell
Copy link
Member Author

Mark has recreated all the users in upper case in SPOTPRO, sorry my mistake on creating them lower case.
Passwords remain the same

@sprintell
Copy link
Member Author

  • We have created "non gwas" users and password for each Oracle database.
  • This was created in SPOTPRO and copied over when all the Databases are Refreshed including SPOTPUB
  • This "non gwas" user will be used connect from the application to the Rest API Db
  • This new users and passwords will be thesame after DB Refresh.
  • With this, the lock will not occur again.
  • The configurations will be updated in conflunce document:
    Confluence -> What Runs Where -> GWAS Project - Servers, Databases and Infrastructure Administration

I've tested these for the 7 databases, they are all now working perfectly.

While testing, I discovered that some Oracke View Tables that are accessible when we connect to the Oracle via the gwas user are not accessible when we connect with this new user.

We might just need to double check why this is the case.

@sprintell
Copy link
Member Author

@sprintell test Mark head's final solution to be sure new user accounts can access the Views in Oracle

@sajo-ebi
Copy link
Contributor

sajo-ebi commented Nov 5, 2024

there were multiple issue due to which new DB pointing was not implemented

  • the select query was not working on the tables for the new user , Mark fixed it
  • the schema migration table data was not copied which was causing the migration scripts to get executed , need to replicate this in lower environment befpre trying in production

@sajo-ebi
Copy link
Contributor

Still getting issues with running rest API locally with the new DB user , the sequence are not accessible by the API , Mark from DBA had applied some fix , still it didn't work, will continue to coordinate with DBA to fix

@sajo-ebi sajo-ebi removed their assignment Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants