All Projects → aimtiaz11 → oracle-jdbc-tester

aimtiaz11 / oracle-jdbc-tester

Licence: other
A simple command line Java application to test JDBC connection to Oracle database

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to oracle-jdbc-tester

Dockerfiles
Just some Dockerfiles I'm playing around with.
Stars: ✭ 88 (+137.84%)
Mutual labels:  oracle, oracle-database
liferay-portal-oracledb-support
Liferay Portal 7 Community Edition Oracle Database Support ** NO LONGER MAINTAINED **. Refer to this repository: https://github.com/amusarra/liferay-portal-database-all-in-one-support
Stars: ✭ 13 (-64.86%)
Mutual labels:  jdbc, oracle-database
Oracledb exporter
Prometheus Oracle database exporter.
Stars: ✭ 209 (+464.86%)
Mutual labels:  oracle, oracle-database
Docker Images
Official source for Docker configurations, images, and examples of Dockerfiles for Oracle products and projects
Stars: ✭ 5,120 (+13737.84%)
Mutual labels:  oracle, oracle-database
metadata
oracle,mysql,sql server 元数据管理表生成
Stars: ✭ 45 (+21.62%)
Mutual labels:  jdbc, oracle
Oracle Db Examples
Examples of applications and tool usage for Oracle Database
Stars: ✭ 843 (+2178.38%)
Mutual labels:  oracle, oracle-database
PECI-Java-MAR-2015
Repositorio del curso de Java de Mar 2015
Stars: ✭ 29 (-21.62%)
Mutual labels:  jdbc, oracle
Capgemini-ADAPT-2020
All Solutions for Capgemini 2020-2021 ADAPT Program, use it for your reference after you have tried the problems by yourself THANK YOU!
Stars: ✭ 37 (+0%)
Mutual labels:  oracle, oracle-database
Ebean
Ebean ORM
Stars: ✭ 1,172 (+3067.57%)
Mutual labels:  jdbc, oracle
Jooq
jOOQ is the best way to write SQL in Java
Stars: ✭ 4,695 (+12589.19%)
Mutual labels:  jdbc, oracle
Utplsql
Testing Framework for PL/SQL
Stars: ✭ 402 (+986.49%)
Mutual labels:  oracle, oracle-database
soda-for-java
SODA (Simple Oracle Document Access) for Java is an Oracle library for writing Java apps that work with JSON (and not only JSON!) in the Oracle Database. SODA allows your Java app to use the Oracle Database as a NoSQL document store.
Stars: ✭ 61 (+64.86%)
Mutual labels:  jdbc, oracle-database
Docker Oracle Xe
Docker build for Oracle Database Express Edition (XE)
Stars: ✭ 266 (+618.92%)
Mutual labels:  oracle, oracle-database
Docker Oracle12c
Docker image for Oracle Database 12c
Stars: ✭ 63 (+70.27%)
Mutual labels:  oracle, oracle-database
oracdc
Oracle database CDC (Change Data Capture)
Stars: ✭ 51 (+37.84%)
Mutual labels:  oracle, oracle-database
Ocilib
OCILIB (C and C++ Drivers for Oracle) - Open source C and C++ library for accessing Oracle databases
Stars: ✭ 245 (+562.16%)
Mutual labels:  oracle, oracle-database
okcli
An Oracle-DB command line client
Stars: ✭ 47 (+27.03%)
Mutual labels:  oracle, oracle-database
docker-apex-stack
Utility scripts for creating an Oracle Application Express stack as a Docker container.
Stars: ✭ 67 (+81.08%)
Mutual labels:  oracle, oracle-database
Requery
requery - modern SQL based query & persistence for Java / Kotlin / Android
Stars: ✭ 3,071 (+8200%)
Mutual labels:  jdbc, oracle
Oracle.jl
Oracle Database driver for the Julia language.
Stars: ✭ 32 (-13.51%)
Mutual labels:  oracle, oracle-database

oracle-jdbc-tester

Maven Build

A simple command line application to test JDBC connection to Oracle Database.

How to run

Clone this repository and then run below Maven command to build the executable JAR file.

mvn clean package

Alternatively, download the JAR file from release page.

Execute the JAR file with the following 3 parameters with schema name, password and JDBC connection string:

java -jar target/jdbc-tester-1.1.jar <schema_name> <schema_password> jdbc:oracle:thin:@//<host>:<port>/<SID>

Secure your credentials

When running this tool ad-hoc, a good security practice would be read the DB username and password into a variable by using read command in Linux (or similar) and then execute the JAR file.

This prevents DB credentials being stored in ~/.bash_history.

java -jar target/jdbc-tester-1.1.jar "$DB_USER" "$DB_PASS" jdbc:oracle:thin:@//<host>:<port>/<SID>

How it works

The application connects to the Oracle database and executes a single SQL query: select sysdate from dual and prints the output.

If it cannot connect for whatever reason, it will fail by logging an error message.

There is a hardcoded connection timeout set to 10 seconds.

License

(The MIT License)

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].