{"id":21607156,"url":"https://github.com/aimtiaz11/oracle-jdbc-tester","last_synced_at":"2025-04-11T04:26:31.266Z","repository":{"id":37617136,"uuid":"102837404","full_name":"aimtiaz11/oracle-jdbc-tester","owner":"aimtiaz11","description":"A simple command line Java application to test JDBC connection to Oracle database","archived":false,"fork":false,"pushed_at":"2022-10-24T12:42:27.000Z","size":2576,"stargazers_count":50,"open_issues_count":2,"forks_count":43,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-25T02:37:38.452Z","etag":null,"topics":["connections","jdbc","oracle","oracle-database","oracle-jdbc-tester","testing"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aimtiaz11.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-09-08T08:22:29.000Z","updated_at":"2024-09-24T21:12:11.000Z","dependencies_parsed_at":"2023-01-19T18:30:31.661Z","dependency_job_id":null,"html_url":"https://github.com/aimtiaz11/oracle-jdbc-tester","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aimtiaz11%2Foracle-jdbc-tester","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aimtiaz11%2Foracle-jdbc-tester/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aimtiaz11%2Foracle-jdbc-tester/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aimtiaz11%2Foracle-jdbc-tester/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aimtiaz11","download_url":"https://codeload.github.com/aimtiaz11/oracle-jdbc-tester/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248341530,"owners_count":21087670,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["connections","jdbc","oracle","oracle-database","oracle-jdbc-tester","testing"],"created_at":"2024-11-24T20:29:01.962Z","updated_at":"2025-04-11T04:26:31.225Z","avatar_url":"https://github.com/aimtiaz11.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# oracle-jdbc-tester\n\n[![Maven Build](https://github.com/aimtiaz11/oracle-jdbc-tester/actions/workflows/maven.yml/badge.svg)](https://github.com/aimtiaz11/oracle-jdbc-tester/actions/workflows/maven.yml)\n\nA simple command line application to test JDBC connection to Oracle Database.\n\n## How to run\n\nClone this repository and then run below Maven command to build the executable JAR file.\n\n```\nmvn clean package\n```\n\nAlternatively, download the JAR file from [release](https://github.com/aimtiaz11/jdbc-tester/releases) page. \n\nExecute the JAR file with the following 3 parameters with schema name, password and JDBC connection string:\n\n```sh\njava -jar target/jdbc-tester-1.1.jar \u003cschema_name\u003e \u003cschema_password\u003e jdbc:oracle:thin:@//\u003chost\u003e:\u003cport\u003e/\u003cSID\u003e\n```\n\n### Secure your credentials\n\nWhen 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.\n\nThis prevents DB credentials being stored in `~/.bash_history`.\n\n\n```sh\njava -jar target/jdbc-tester-1.1.jar \"$DB_USER\" \"$DB_PASS\" jdbc:oracle:thin:@//\u003chost\u003e:\u003cport\u003e/\u003cSID\u003e\n```\n\n## How it works\n\nThe application connects to the Oracle database and executes a single SQL query: `select sysdate from dual` and prints the output. \n\nIf it cannot connect for whatever reason, it will fail by logging an error message.\n\nThere is a hardcoded connection timeout set to 10 seconds.\n\n## License\n\n(The MIT License)\n\nTHE 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.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faimtiaz11%2Foracle-jdbc-tester","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faimtiaz11%2Foracle-jdbc-tester","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faimtiaz11%2Foracle-jdbc-tester/lists"}