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

Custom Medatadata - DB column not created on channel deployment with Oracle 19c DB (OCI) #5902

Open
roggss opened this issue Aug 23, 2023 · 5 comments
Labels
bug Something isn't working Internal-Issue-Created An issue has been created in NextGen's internal issue tracker RS-11389 triaged

Comments

@roggss
Copy link

roggss commented Aug 23, 2023

Deploying a channel with Oracle 19c will not create the custom metadata column on the database side.
And if meta data was created manually on the DB side the column will still be deleted when channel got depolyed.

To Reproduce

  1. Use Oracle19c database
  2. Create a channel with custom metadata
  3. Deploy the channel,

Expected behavior
Custom metada should be added to D_MCMxxx table

Actual behavior
D_MCM will only contains with two metada columns as below
metadata_id
message_id

Screenshots
Mirth
image

DB structure
image

Environment (please complete the following information):

  • OS: Windows Server 2012R2 Stanadard
  • Java Distribution/Version
  • openjdk version "1.8.0_372"
  • OpenJDK Runtime Environment Corretto-8.372.07.1 (build 1.8.0_372-b07)
  • OpenJDK 64-Bit Server VM Corretto-8.372.07.1 (build 25.372-b07, mixed mode)
  • Connect Version :3.9.0
  • Oracle 19c (In Oracle Cloud Infrastructure or OCI Environment)

Workaround(s)
No workaround I can think, Please hellp

@roggss roggss added the bug Something isn't working label Aug 23, 2023
@pladesma
Copy link
Collaborator

Do you know if you can reproduce this in more recent versions of Mirth Connect? I tested in MC 4.4.0, and I'm not seeing the issue.

@roggss
Copy link
Author

roggss commented Aug 24, 2023

I tested it and does not exist in MC 4.4.0. The initialization of tables however, is not happening so I have to run the SQL statements manually plus the creation of D_CHANNELS (which is not on SQL file dbconf). refer to my post below about DB initialization issue that both exist in 3.9 and 4.4 for Oracle 19C database. #5886

Back to 3.9, is there a work around on this?

Thanks

PS: Oracle 19c (In Oracle Cloud Infrastructure or OCI Environment)

@roggss roggss changed the title Custom Medatadata - DB column not created on channel deployment with Oracle 19c DB Custom Medatadata - DB column not created on channel deployment with Oracle 19c DB (OCI) Aug 24, 2023
@roggss
Copy link
Author

roggss commented Aug 30, 2023

Furthermore, the custom metadata columns are not deleted if the channel was created under the new instance/db.

The metadata columns are only removed if the channel was migrated (coming from restore config).
And also, I noticed that if the metadata name changed, the channel will not be deplyed.., it just in keep in "deploying" status/

Looks like this issue is only for migrated channels. New created channels dont have this issue.

Please help

@pladesma
Copy link
Collaborator

Sorry, I don't have a good workaround at the moment. We'll need to do some research and get back to you.

@pladesma pladesma added triaged Internal-Issue-Created An issue has been created in NextGen's internal issue tracker RS-11389 labels Sep 25, 2023
@roggss
Copy link
Author

roggss commented Nov 29, 2023

Apparently, all the issues gone away after I changed my schema/user from any of these "mirth", " mirth1", "mirth2", "mirth3" to "MIRTHDB". Im not sure if the caps lock matter or its the schema name itself. I will definitely do a test if the uppercase matter. more to come :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Internal-Issue-Created An issue has been created in NextGen's internal issue tracker RS-11389 triaged
Projects
None yet
Development

No branches or pull requests

2 participants