-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[BUG] Oracle provider in 3.3.2-rc1 #6355
Comments
Could you elaborate a bit on the types that you noticed that don't match with the migrations? I haven't spot anything strange so far. |
I see, yes. I have pushed a branch that fixes the migrations, and is being built here: https://github.com/elsa-workflows/elsa-core/actions/runs/13063460256 I haven't figured out yet what connection string to use to successfully connect to the Oracle container (FREE), so I haven't been able to test it at runtime yet. Perhaps you can help me? This is my compose: oracle:
image: container-registry.oracle.com/database/free:latest
container_name: oracle
environment:
ORACLE_PDB: ORCLPDB1
ORACLE_PWD: elsa
ports:
- "1521:1521"
- "5500:5500"
volumes:
- oracle-data-free:/opt/oracle/oradata
shm_size: '1g' The Oracle container has started successfully and I am able to access its terminal and issue SQL commands. However, the following connection string doesn't work - the driver complaints about an unknown user:
This is my connection string:
Any suggestions? |
I have an oracle XE like this: version: "3.7"
services:
oracle:
container_name: oracle-db
image: <image builded in private registry> from oracle xe
volumes:
- ./oracle-data:/opt/oracle/oradata
- ./oracle-setup:/opt/oracle/scripts/setup
environment:
ORACLE_PWD: secret
ports:
- 1521:1521
- 5500:5500 Then i have an initial sql to create the user and schema in the oracle-setup folder alter session set "_ORACLE_SCRIPT"=true;
CREATE USER APP_USER IDENTIFIED BY secret;
GRANT ALL PRIVILEGES TO APP_USER; And the connection string is like:
With ur connection string try my format changing the SID to FREE |
That was helpful, thanks! I was able to start an Oracle DB and perform some tests and debugging. I created a PR that fixed all of the issues for me. I'll wait for you to confirm that it works well on your end too before merging. |
Nice! I will try it tomorrow. What would be the best approach to have this resolved in Elsa? Custom migrations? Maybe having 2 different versions of the module of oracle provider? Oracle is a thing... I hate him deeply hahaha. But the client rules in some things... Tell me if you can think of a better approach and I can do the PR. Or if you need help and I make the PR with another "version" of Oracle to support Oracle 19 in its migrations |
Glad to see you were able to solve the issue, if only temporarily. As for supporting multiple versions of Oracle, I'm not sure that's something I want to take on, for the same reason I don't want to do this for various MySQL versions, either. As it stands today, we already have a number of migrations supporting different database providers, for different modules. Should we add support for another Oracle provider, we would also need to (eventually) add this to other modules. Given that, it might not be unreasonable to let users generate their own migrations. This way, they can target any version of any DB provider supported by EF Core. Open for other suggestions. |
I agree with you, I think the most flexible option would be to allow the user to comfortably generate their own migrations and extend the existing provider modules (ModelBuilder etc.) |
Great. I'll open an issue for documenting the process of generating custom migrations that fit into the existing provider modules. |
Description
Im trying to start a fresh elsa instance in 3.3 with Oracle provider but im getting this error:
The property 'SerializedPayload' cannot be added to the type 'StoredTrigger' because no property type was specified and there is no corresponding CLR property or field. To add a shadow state property, the property type must be specified.
I think that the 3_3 migrations are wrong for oracle. Looking the types in SetupForOracle dont match with the migrations.
The text was updated successfully, but these errors were encountered: