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

Provide FREE SID (together with current XE) #238

Closed
mvorisek opened this issue Nov 6, 2023 · 7 comments
Closed

Provide FREE SID (together with current XE) #238

mvorisek opened this issue Nov 6, 2023 · 7 comments
Assignees

Comments

@mvorisek
Copy link

mvorisek commented Nov 6, 2023

To allow easier migration to https://github.com/gvenzl/oci-oracle-free/issues, especially to test both in CI, please provide together with the current XE service also FREE, so the image name is enough to parametrize the database version.

@mvorisek mvorisek changed the title Provide free service Provide free service (together with current xe) Nov 6, 2023
@mvorisek mvorisek changed the title Provide free service (together with current xe) Provide FREE service (together with current XE) Nov 6, 2023
@gvenzl
Copy link
Owner

gvenzl commented Nov 10, 2023

Hey @mvorisek,

Thanks for this excellent idea, I like it!
This will indeed make the migration to the new Oracle Database Free much easier going forward.

Will work on it.

@gvenzl gvenzl self-assigned this Nov 10, 2023
gvenzl added a commit that referenced this issue Nov 12, 2023
Signed-off-by: Gerald Venzl <gerald.venzl@gmail.com>
@gvenzl
Copy link
Owner

gvenzl commented Nov 12, 2023

Fixed and will release this weekend.

@gvenzl gvenzl closed this as completed Nov 12, 2023
gvenzl added a commit that referenced this issue Nov 12, 2023
* Provide FREE,FREEPDB1 service names (ER #238)

Signed-off-by: Gerald Venzl <gerald.venzl@gmail.com>
@mvorisek
Copy link
Author

mvorisek commented Nov 14, 2023

In doctrine/dbal project the following easy connect string (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SID=FREE))) is still not working with v<23. localhost/free works however. Any idea, is SID emulated well enough?

repro: mvorisek/dbal@2caad21...debug_oci (the repo can be cloned and CI run with a git/Github push)

@mprins
Copy link

mprins commented Jan 5, 2024

I'm seeing the same problem

RestartSequenceIntegrationTest.testRestartSequence:50 » SQL ORA-12505: Cannot connect to database. SID FREE is not registered with the listener at host localhost port 15210. (CONNECTION_ID=zS7lxokVStmpWGHYrZ4F7A==)

in B3Partners/jdbc-util#541 using oracle-xe:21.3.0-full (https://github.com/B3Partners/jdbc-util/actions/runs/7424340272/job/20203741000?pr=541)

@mprins
Copy link

mprins commented Jan 6, 2024

changing the JDBC url from:
jdbc:oracle:thin:@localhost:15210:FREE
to
jdbc:oracle:thin:@localhost:15210/FREE
fixed things for me as it now connects to the service and not the SID

@mvorisek mvorisek changed the title Provide FREE service (together with current XE) Provide FREE SID (together with current XE) Jan 6, 2024
@mvorisek
Copy link
Author

mvorisek commented Jan 6, 2024

Thank you, you identified the problem - we need to provide FREE SID instead of only FREE service name! Would you be able to send a PR to improve 0cedd27 to provide also FREE SID?

@gvenzl
Copy link
Owner

gvenzl commented Feb 1, 2024

Hey @mvorisek,

The ORACLE_SID for Oracle XE cannot be changed, it's fixed to XE (just like for Oracle Free it's fixed to FREE). So you will have to connect via the service name if you want to use FREE.

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

3 participants