-
Notifications
You must be signed in to change notification settings - Fork 15
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
Trouble when connect user/pswd@TNSName #88
Comments
Hi @SebGt , can you try the following?
Cheers, |
Hi thanks for reply. My objective here is to migrate from utPLSQL 3.0.3 to 3.1.1. So install is OK on DB but unfortunately sql client is not working anymore and I must move on java client. Otherwise connect with sqlplus test_usr/test_pswd@db_test_dev is working fine. Thanks |
Sorry for misread. |
Sorry I did a wrong copy and past for the stack from another test I did with another DB. From cmd window, I can connect I don't have SQLDeveloper. We are working with PL/SQL Developer. Otherwise, my objective is to continue to run automatically my test using Jenkins. Thanks |
I have these both env variables set : |
Yes, utplsql-cli (java) is the recommended command-line util and replaces the outdated utplsql-sql-cli completely. |
Ok thanks for help. |
Hey @SebGt, I tested it locally and have no issues to connect to my instance using TNSName:
Here is my tnsnames.ora:
and this is my ORACLE_HOME-env:
What concerns me a bit is how your environment-variables look. |
Hi @pesse,
here is my tnsnames.ora :
I still have the issue. Do you think that the suffix ".WORLD" in tnsnames can cause the issue? I tried to use DB_TEST_DEV.WORLD in connection string but I have this error:
Thanks again. |
The error message suggests that your tnsnames.ora is not taken into consideration.
Looks like we need a new debug-parameter in cli which provides some logging |
@SebGt what version of cli are you using? |
@pesse: in first a"" was missing at beginning, it was \dev1\programs\Oracle and we have a share mapped as Y:\ and I changed ORACLE_HOME with Y:\dev\ORACLE and restarted a new window command. I also added it into env. variables (in system var.) @jgebal: I tested the latest (3.1.0) and the previous one (3.0.4). |
Just to be sure, to use ORACLE I had only to copy ojdbc6.jar into lib folder of utPLSQL-cli, correct ? |
Sorry wrong action ... |
You should be using ojdbc8. That's the version suitable for Java 1.8 and Oracle 12.2 |
Even with Oracle 11g ? |
Yes, interoperability-matrix at least says so. Though ojdbc6 should work if you're on 11.2.0.3 or 11.2.0.4 |
I will try with a specific tnsnames.ora file to see if something change. |
ojdbc is probably more bound to java version than to oracle db version. |
Same with ojdbc8, I will try to change tnsnames.ora location. |
Same with a dedicated tnsnames.ora. Just in case, this is my java version:
|
I found the issue in my config. If ORACLE_HOME is set to Thanks for your help. |
I forgot this last important point, in our tnsnames.ora we have 2 aliases defined for the same tns entry. As per following Oracle doc, tns entry must be split in two entries to have 1 alias: And alias should not have .WORLD extension. Then my tns entry was:
and now
|
Good you have figured it out. |
Hi,
When I use utPLSQL-cli (for the first time, before I used utplsql-sql-cli) I receive this error :
Command line is :
V:\utPLSQL-cli\bin\utplsql run test_usr/test_pswd@db_test_dev -f=ut_xunit_reporter -o=tpkg_result.xml -p=test_usr.tpkg_one
When I do the same with
test_usr/[email protected]:1550:db_t_dev
it is working fine.ORACLE_HOME variable is set as suggested in the doc.
Dis you have an idea ?
Thanks
The text was updated successfully, but these errors were encountered: