ora-01017

Ant task to check if a database (connection) exists?

妖精的绣舞 提交于 2020-02-03 16:49:13
问题 is there a possibility in ANT to check whether a database (connection) exists or not without failing the build? For example: <target name="check-database-available"> <sql classpath="${oracle.jar}" driver="oracle.jdbc.OracleDriver" url="jdbc:oracle:thin:@${my.db.host}:${my.db.port}:${my.db.sid}" userid="${my.db.user}" password="${my.db.pw}" onerror="continue" errorproperty="exit.status"> select * from dual; </sql> <echo message="### exit status = ${exit.status}" /> </target> This will always

Ant task to check if a database (connection) exists?

柔情痞子 提交于 2020-02-03 16:46:20
问题 is there a possibility in ANT to check whether a database (connection) exists or not without failing the build? For example: <target name="check-database-available"> <sql classpath="${oracle.jar}" driver="oracle.jdbc.OracleDriver" url="jdbc:oracle:thin:@${my.db.host}:${my.db.port}:${my.db.sid}" userid="${my.db.user}" password="${my.db.pw}" onerror="continue" errorproperty="exit.status"> select * from dual; </sql> <echo message="### exit status = ${exit.status}" /> </target> This will always

Ant task to check if a database (connection) exists?

微笑、不失礼 提交于 2020-02-03 16:45:45
问题 is there a possibility in ANT to check whether a database (connection) exists or not without failing the build? For example: <target name="check-database-available"> <sql classpath="${oracle.jar}" driver="oracle.jdbc.OracleDriver" url="jdbc:oracle:thin:@${my.db.host}:${my.db.port}:${my.db.sid}" userid="${my.db.user}" password="${my.db.pw}" onerror="continue" errorproperty="exit.status"> select * from dual; </sql> <echo message="### exit status = ${exit.status}" /> </target> This will always

Sqlplus login error when using bash variables: SP2-0306: Invalid option

断了今生、忘了曾经 提交于 2019-11-28 13:50:55
I have a bash script that connects to an oracle 10g database. In a first step it takes some variables from a "config" file with the following command . /path/to/my/configfile.ini In the config file there are some variables: export USRID=myUser export USRID_PASS=myPassword export USR_PASS="$USRID/$USRID_PASS@myDatabase" Then it actually connects through sqlplus using the command: sqlplus -s $usr_pass Terrible Security and Design issues aside (this script has been around for 5 years). This is actually doing its job in one of our UNIX servers, but not in another. When I run the script with bash

Oracle JDBC : invalid username/password (ora-01017)

只愿长相守 提交于 2019-11-27 09:45:49
I have a strange problem with jdbc connection to an oracle database server. We've applications on a tomcat server running. These application use an oracle database. All applications use the same credentials. Applications running fine the whole day. At night there is no activity. In the morning we get a few (2 or 3) ORA-01017 (invalid username/password) errors when the applications trying to reconnect themselves to the database. Then reconnection works and the applications will operate normal. This works for some days (around 5 days) and then one or more of the application block! All

Oracle.ManagedDataAccess and ORA-01017: invalid username/password; logon denied

帅比萌擦擦* 提交于 2019-11-27 08:42:56
I have a challenging situation on one of our servers. I have an ASP.NET MVC 3 application that needs to connect to an Oracle 12c database. It does so using the following connection string: User ID=myuserid;Password=mypass;Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=<IP ADDRESS>)(PORT = 1521)))(CONNECT_DATA=(SERVICE_NAME=PDB1))); I'm also using Oracle's Oracle.ManagedDataAccess, version 4.121.1.0. Each attempt to connect results in the following error: ORA-01017: invalid username/password; logon denied I can connect successfully on my desktop with the above credentials.

Sqlplus login error when using bash variables: SP2-0306: Invalid option

匆匆过客 提交于 2019-11-27 07:57:25
问题 I have a bash script that connects to an oracle 10g database. In a first step it takes some variables from a "config" file with the following command . /path/to/my/configfile.ini In the config file there are some variables: export USRID=myUser export USRID_PASS=myPassword export USR_PASS="$USRID/$USRID_PASS@myDatabase" Then it actually connects through sqlplus using the command: sqlplus -s $usr_pass Terrible Security and Design issues aside (this script has been around for 5 years). This is

Oracle JDBC : invalid username/password (ora-01017)

浪尽此生 提交于 2019-11-26 14:54:31
问题 I have a strange problem with jdbc connection to an oracle database server. We've applications on a tomcat server running. These application use an oracle database. All applications use the same credentials. Applications running fine the whole day. At night there is no activity. In the morning we get a few (2 or 3) ORA-01017 (invalid username/password) errors when the applications trying to reconnect themselves to the database. Then reconnection works and the applications will operate normal.

Oracle.ManagedDataAccess and ORA-01017: invalid username/password; logon denied

人盡茶涼 提交于 2019-11-26 14:08:23
问题 I have a challenging situation on one of our servers. I have an ASP.NET MVC 3 application that needs to connect to an Oracle 12c database. It does so using the following connection string: User ID=myuserid;Password=mypass;Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=<IP ADDRESS>)(PORT = 1521)))(CONNECT_DATA=(SERVICE_NAME=PDB1))); I'm also using Oracle's Oracle.ManagedDataAccess, version 4.121.1.0. Each attempt to connect results in the following error: ORA-01017: