Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I indicate my role (e.g. AS SYSDBA) in Liquibase?

I'm now trying to connect to an Oracle database. And I can only connect by using a specific role (in this case, since I'm connecting as SYS, I will need the role SYSDBA to connect to the database).

If not, it will result in the following error:

Unexpected error running Liquibase: java.sql.SQLException: ORA-28009: connection as SYS should be as SYSDBA or SYSOPER

How do I specify that in liquibase?

like image 413
Ivan Wangsa Avatar asked Dec 06 '25 23:12

Ivan Wangsa


1 Answers

If using a liquibase.properties file:

url=jdbc:oracle:thin:@localhost:1521:XE
username=sys as sysdba
password=password1234

If using command line parameters:

./liquibase --username='sys as sysdba' --changeLogFile=etc...
like image 63
jholland Avatar answered Dec 09 '25 14:12

jholland



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!