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

Flyway fails to connect with the database if the OS user name is longer than 30 characters #1099

sastorsl opened this issue Sep 24, 2015 · 1 comment


Copy link

Flyway fails to connect to the if the OS user name is longer than 30 characters.
My client runs on RedHat Linux (RHEL7), and the user name is 31 characters long.

$ ./flyway info
Flyway 3.2.1 by Boxfuse

ERROR: Unable to obtain Jdbc connection from DataSource (jdbc:oracle:thin:@server:1530:SID) for user 'myuser': Connection property: format error: Property is 'v$session.osuser' and value is 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'

I can temporarily solve this with JAVA_TOOL_OPTIONS and reduce the user name length.

JAVA_TOOL_OPTIONS="-Doracle.jdbc.v\$session.osuser=${USER:0:29}" ./flyway info

The max length of a username on Linux is 32 characters.

Copy link

axelfontaine pushed a commit to flyway/ that referenced this issue Oct 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

No branches or pull requests

2 participants