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

Using Oracle Editions Based - EBR #224

Open
milheiros opened this issue Jan 31, 2024 · 2 comments
Open

Using Oracle Editions Based - EBR #224

milheiros opened this issue Jan 31, 2024 · 2 comments

Comments

@milheiros
Copy link

Hi eveyone,

It is possible to connect to DB when calling utplsql-cli run command using a specific Edition name/number?
Something like this:

utplsql run username/password@service EDITION=ora$base -source_path=Packages -test_path=UnitTestPackages --failure-exit-code=0 -f=ut_coverage_cobertura_reporter -o=cobertura_reporter.xml -f=ut_coverage_sonar_reporter -o=coverage.xml -f=ut_sonar_test_reporter -o=test_results.xml

@felipebz
Copy link

As far as I know, there's no explicit support for EBR in utPLSQL-cli, but the Oracle JDBC Driver includes a property that can be set to specify the edition.

In Windows cmd:

set JAVA_OPTS=-Doracle.jdbc.editionName=MY_EDITION
utplsql run (...)

In Linux:

export JAVA_OPTS=-Doracle.jdbc.editionName=MY_EDITION
utplsql run (...)

@jgebal
Copy link
Member

jgebal commented May 20, 2024

Yes, @felipebz is correct, utPLSQL-cli does not provide any setting for editions.
The tup with JAVA_OPTS is a really neat workaround for the missing feature.

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