简体   繁体   中英

kuali - ORA-01017: invalid username/password; logon denied

When I Execute the below command:

mvn -X validate -Pks-db,oracle -Dks.impex.url=jdbc:oracle:thin:@kuali.localdomain:1521:DB11G -Dks.impex.dba.password=Oracle123

I get the below exception:

Failed to execute goal org.codehaus.mojo:sql-maven-plugin:1.4:execute (validate-dba-config) on project ks-bundled-db: ORA-01017: invalid username/password; logon denied -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:sql-maven-plugin:1.4:execute (validate-dba-config) on project ks-bundled-db: ORA-01017: invalid username/password; logon denied

According to this document , you should be supplying the user name as well; their example is:

mvn validate -Pks-db,oracle -Dks.impex.url=jdbc:oracle:thin:@localhost:1521:XE -Dks.impex.dba.username="SYS AS SYSDBA" -Dks.impex.dba.password=<SYS password>

So you need to add to your command:

-Dks.impex.dba.username="SYS AS SYSDBA"

It isn't clear what you have set in your properties file or which value is needed/used; but it may be picking up your KSBUNDLED username, or the legacy MASTER name.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM