Names using TNS and SQLcl resolution problems


Hello

I checked, but I don't see any answer to that.

I use version 4.1 of EA of SQLcl.  In the video, Jeff says that SQLcl works using TNS, and I understand

It's all jdbc.  But I was able to resolve names of database using TNS.

I'm on Windows, and I'm using JRE 1.8.  I tried to set the TNS_ADMIN variable directly, and I tried settting it

on the java command-line option - Doracle.net.tns_admin =.  But neither makes no difference.

Here are the lines that I put in the SQL. BAT file.

set ORACLE_HOME = C:\ProgramData\Programs\Oracle\instantclient_11_2-x64
Set TNS_ADMIN = C:\ProgramData\Oracle\Network\Admin
Set JAVA_HOME=c:\programdata\programs\java\jre_1.8


SET SQL_HOME = % ~ dp0...
REM the VALUE DEBUG = - agentlib:jdwp = transport = dt_socket, server = y, suspend = o, address = 8000

Internal use of REM simple X for awt in
SET STD_ARGS = - Djava.awt.headless = true
SET JARFILE=%SQL_HOME%\lib\oracle.sqldeveloper.sqlcl.jar
REM CUSTOM_JDBC="-Xbootclasspath/a:$ORACLE_HOME%\jdbc\lib\ojdbc6.jar.
SET MYCLASSPATH = % MYCLASSPATH % REM; C:\drivers\3rdparty\sqlserver\jtds-1.2.jar
SET MYCLASSPATH = % MYCLASSPATH % REM; C:\drivers\mysql\mysql-connector-Java-5.1.24-bin.jar

%JAVA_HOME%\bin\java.exe % CUSTOM_JDBC % JAVA_OPTS % STD_ARGS %-Doracle.net.tns_admin=%TNS_ADMIN% % DEBUG % - jar '% c %' %. *
REM - jar Java % c % *.

But when I connect using SQLcl, it won't resolve the name of the database:

Error message = IO error: could not resolve the 'DB1' connection identifier

Needless to say I have 4.1 Developer SQL on the same Windows machine, and that resolves very well. So there is nothing wrong with the

tnsnames.ora himself.  Someone at - it ideas?

concerning

Paul Stuart

Paul,

have you tried to add the parameter - optl? It should show you more info.

So if you use - OIC (and libraries right in your path) sqlcl uses thick/BRC instead of thin.

Can you give the complete error message with the parameter - optl, please?

Martin

Tags: Database

Similar Questions

  • I use Outlook and have the problem that when I send an email that has a picture from my PC to a friend could a Mac.

    I use Outlook and have the problem that when I send an email that has an image of my PC to a friend risk a Mac, they don't get the image; just text! Is - this way I send or is the problem with the Mac user?

    original title: sending email JPGs from PC to Mac

    Try attaching one instead and see if they get the picture.  It is possible that their e-mail program cannot correctly interpret the HTML message format.

    Steve

  • Exception when using tnsnames AND ezconnect resolution methods with managed Oracle ODP 12 c rel.3

    We are looking at upgrading to a web service to connect to Oracle using the unmanaged to the ODP ODP managed (12 c module 3).

    We use tnsnames and have the following configuration in the sqlnet.ora file: NAMES. DIRECTORY_PATH = (TNSNAMES, EZConnect).

    The resolver EZConnect is necessary because we use an OracleDependency object for database update notifications.

    When moving to the managed driver, a SocketException exception is thrown when you try to open a new connection. Looking at the call stack, I can see that the managed Oracle driver, actually a 'OracleInternal.Network.EZConnect' object, calls System.Net.Dns.GetAddrInfo to get an IP address, but with the alias tns as a parameter. Of course, it fails with this exception "unknown host".

    So it seems to me that there is a problem combining tnsnames, ezconnect manned ODP managed!

    Someone else who has experienced this and found a solution, or it could be an error in the driver?

    This problem seems to have been fixed in the version of 12 c 4.

  • monitor and TV resolution problem

    I have a computer connected to a monitor and a TV, using the configuration double monitor.  The problem I have is that when I put in place the TV and computer screen to display the same resolution, the icons on the computer screen are moving to a point approximately one inch above the bottom of the screen of the monitor.

    I can't have the icons to stay closer to the bottom of the screen, as they do on my other computer that has two computer screens.

    No idea what I can do about it?

    Have you tried setting the screen of the computer at its optimal resolution and the same thing with the TV? Chances are they'll be different. Check your TV manufacturers site to see what is best for your TV.

    I hope this helps.

  • Screen resolution problems (Windows 10)

    I downloaded the latest trial 9 Captivate for Windows 10 and screen resolution problems. Basically, making the software unusable. A lot of screens and dialog boxes seems larger than the current window, they are in, making the right and downstairs parts invisible window (usually, this is where the 'OK' and 'Cancel' buttons for example).

    I'm Captivate on a laptop running 64-bit Windows 10 (Sony Vaio with an NVidia GT 640 M map graphic with the latest drivers)

    Does anyone know how to fix this? Here are some examples:

    captivate1.PNG

    captivate2.PNG

    captivate4.PNG

    No retina.

    What is the size of the police on? Win10, it is often larger than 100%, which is not really necessary for your resolution, but that's a retina display. I am using Captivate on Win10, but Surface Pro and laptop have a retina display.

  • 5.5 Dreamweaver do not load my jquery scripts and keep having problems of syntax

    I am new to using jQuery and I have problems with this jQuery script, it shows in the Live view in Dreamweaver, but when I try to see it in the fire he fox just a blank screen of white. also, I tried to use jquery - 1.6.min.js and jquery - min.js 1.7.1 and none of the selector commands work, nothing works. What I am doing wrong?

    Jquery issues liveview.jpg

    Jquery issues liveview2.jpg

    Jquery issues.jpg

    Jquery issues2.jpg

    Jquery issues3.jpg

    On line 15, you have to add a fence '>.

    GRAMPS

  • ORA-01017: name of user and password invalid when using the TNS Alias

    Friends,

    I have this strange problem in 11 G R2. When I use tnsalias and connect using sqlplus username/password@TNS it shows ORA-01017: name of user and password invalid. But the same works with ORACLE_SID. See below.
    -bash-3.00$ uname -a
    SunOS ibs-ash-sr147 5.10 Generic_144489-06 i86pc i386 i86pc
    -bash-3.00$ env | grep ORACLE
    ORACLE_SID=DB1
    ORACLE_BASE=/project/oracle/orabase
    ORACLE_HOME=/project/oracle/orabase/product/11.2.0/dbhome_1
    -bash-3.00$ tnsping DB
    
    TNS Ping Utility for Solaris: Version 11.2.0.1.0 - Production on 17-JUN-2011 12:23:12
    
    Copyright (c) 1997, 2009, Oracle.  All rights reserved.
    
    Used parameter files:
    /project/oracle/orabase/product/11.2.0/dbhome_1/network/admin/sqlnet.ora
    
    
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = crs-scan)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = DB)))
    OK (0 msec)
    -bash-3.00$ sqlplus IRES_USER@DB
    
    SQL*Plus: Release 11.2.0.1.0 Production on Fri Jun 17 12:30:22 2011
    
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    
    Enter password:
    
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
    Data Mining and Real Application Testing options
    
    SQL> show parameter sec_case_sensitive_logon
    
    NAME                                 TYPE        VALUE
    ------------------------------------ ----------- ------------------------------
    sec_case_sensitive_logon             boolean     TRUE
    
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
    Data Mining and Real Application Testing options
    -bash-3.00$ sqlplus IRES_USER/U9$bvs#ir@DB
    
    SQL*Plus: Release 11.2.0.1.0 Production on Fri Jun 17 12:34:30 2011
    
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    
    ERROR:
    ORA-01017: invalid username/password; logon denied
    
    
    Enter user-name: ^C
    My understanding is that both connections use a TNS alias, but then does not work. Any help is appreciated.

    Thanks in advance,
    SSN

    Published by: SSNair on June 17, 2011 05:43

    After sqlplus apostrophes and try

    http://download.Oracle.com/docs/CD/B28359_01/server.111/b28320/initparams211.htm

  • Hello!, my name is jan and I use lightroom 2 for many years. I have an original installation disk with a 24-digit serial number. I have never installed lightroom problems wih. suddenly lightroom won't start when I try an image I tak

    Hello!, my name is jan and I use lightroom 2 for many years. I have an original installation disk with a 24-digit serial number. I have never installed lightroom problems wih. Suddenly, lightroom will not start when I try an image that I have taken with my nikon D500 and transferred to WINDOWS 8.1.  I tried to re - install lightroom: the application procedure serieal number, but refused to accept the number that has always worked. Help, please!  Jan

    If you are certain that you have the correct number of series, there are really not much that we can help you here. You can try to download and install the latest version of Lightroom 2. This will be the trial version, but when the trial screen there is an option to indicate that you have a serial number. Either way, Lightroom serial numbers start with the four first digits being 1160.

    Adobe - Lightroom: for Windows: Adobe Photoshop Lightroom 2.7 - English, French, German

  • Upgrading to Windows 7 HP Pavilion dv6500 and have a problem with the resolution

    OK, here's my problem. I had Windows Vista, has been sick with it. I'm not used to ask someone if I can or can not install some software or OS, so I have two formatted partitions (recovery hp too) and installed windows 7 now, I discovered that he had a lot of problems with the drivers. I have successfully resolved all of them, even my hp legacy works and everything else, except the driver Nvidia. My screen resolution is 1024 x 768 and should be 1280 x 800. I tried all the drivers that are provided in the topic above here (dv6000 - dv9000 update for Win 7 or something like that) also downloaded and installed this driver "179.48_notebook_winvista_win7_32bit_beta", nothing helps worked on this problem for 2 days, am tired and ask for help I need resolution 1280 x 800 on my screen , and I now have 1024 x 768.
    Product: HP Pavilion dv6500
    s/n: CNF7310HBF

    p/n: GT391EA #ABB

    AMD Athlon X 2 and probably GeForce 7 GB video series...

    PS sory for my English.

    Dan or one of the others may be able to help if you post exactly what indicates the error.

    As you say you are not a noob so maybe you need to change something in the NVIDIA Control Panel. Maybe go to the advanced option when you're at NVIDIA.

    Personally when I clean installs I delete, and format the entire disk before installing W7. Doing it this way usually prevents this kind of error occurs. When you use the W7 install disk to format, it may not remove all of the old files registry Vista and can cause problems.

    If you start from scratch once again, this may solve your problem, but there is no guarantee.

    It took 4 tries on my HDX from Vista to W7 to do things.

    I just took a glance at my NVIDIA advanced and under Show options there is an option to "manage custom resolutions. Here I could input what I wanted. What's your has that?

  • Creation of data using tns alias name server

    I am creating a repository of connection to connect to the master schema RDBMS repository through topology Manager. Here, while declaring the value in the Url tab I use the tnsalias of the database which is having master repository schema. I have installed on my machine customers Oracle and ODI. I just enter in my TNSNAMES.ora file for the database. I selected "jdbc:oracle:oci8: @ < tns_alias >" URL tab drop-down list in the tab connection topology Manager repository and replaced < tns_alias > with the name of TNS alias to the database according to the guidelines of my TNSNAMES.ora file. But when I'm trying to test the connection it is in error. The details of the error is "Timeout: connection with the jdbc:oracle:oci8 URL: @ < tns_alias > and < username from the Master repository >.» Details in the file TNSNAMES.ora is correct. Even when I use oracle thin JDBC driver with the same values for < host >, < port > and < sid > it connects properly. Please help me identify the missing step.

    Hello

    With connections to the OIC, Oracle uses its native interface to the database.
    This means that an Oracle Client compatible with the version of the database must be installed and the SQL * Net must be configured.

    To achieve this:

    1. the version of the JDBC driver must match the version of the Oracle home.

    For example, the Oracle version 9.0.1 JDBC driver requires that the Oracle Home contain version 9.0.1 of the ocijdbc9.dll, as well as the Oracle network software and required Support files.

    If you connect to a local database which is another version of the JDBC driver that you are using, then you must install the Oracle client software in a separate Oracle home and connect via the Oracle Net Listener.

    2. you must place the ORACLE_HOME directory in which the file to native libraries required client-side is listed in your PATH environment variable.
    * Windows: the list of the %ORACLE_HOME%\bin directory in which the DLL file client-side lies in your PATH environment variable. If you have several houses Oracle installed on your machine, use the Oracle Home Switch utility to choose the right home of Oracle.
    * On Unix: list the $(ORACLE_HOME) / lib directory where the file resides on the side of client .so/.sl in your PATH environment variable.

    3. to use the OCI driver, from a point of view of Java, you need to specify the directory that contains the shared library for native calls.

    For Oracle Data Integrator (ODI):
    * Modify the 'odiparams.bat/.sh' configuration file (located at ODI directory ' / bin ').
    Identify the ODI_ADDITIONAL_JAVA_OPTIONS environment variable and
    * Change to add the OIC ' / bin ' and ' / lib ' records to variable Java "java.library.path":
    ... on Windows:

    -Djava.library.path =\bin; \lib

    on Unix:

    -Djava.library.path =/bin: / lib

    Thank you
    Fati

  • How the names of variables and units used in the binary output file

    My colleague will give me LabView generated from the binary files (*.dat). There are more than 60 variables (columns) in the binary output file. I need to know the names of variables and units, which I think he has already configured in LabView. Is there a way for him to produce a file that contains the name of the variable and unity, so that I'll know what contains the binary file? It can create an equivalent ASCII file with a header indicating the name of the variable, but it does not list the units of each variable.

    As you can tell I'm not a user of LabView, so I apologize if this question makes no sense.

    Hi KE,.

    an ASCII (probably the csv format) file is just text - and contains all data (intentially) written to. There is no special function to include units or whatever!

    Your colleague must save the information it records the names and values in the same way...

    (When writing to text files, it could use WriteTextFile, FormatIntoFile, WriteToSpreadsheetFile, WriteBinaryFile even could serve...)

  • Design pattern using queues and notifiers and problem with sync

    Hello

    I'm rearchitecturing a 4-channel data acquisition system which includes data acquisition, indexing of data between four channels, signal processing and recording of data.

    All processes are placed in a single loop, and I have subdivided by the following in a producer and consumer two loop (or master with both loops slave), use a queue to manage orders and send the actual data through a notification list. I'm new to this, so I don't know how to go for rearhitecturing but am trying to move several loops. Instead of placing each channel in its own loop, I used only 2 to save duty all architecture. The acquired data are also indexed in the two loops (loop1, loop2):

    Main loop: data acquisition (DAQ Assistant) where Notifier sends data to consumers loops, queue for General commands

    Loop1: bed (table 2D index), addresses and records the data for channels 1 and 2

    Loop2: bed (table 2D index), addresses and records the data for channels 3 and 4

    Question 1: Is it ok to use Notifier and queue in the artchiture (best practices)? I would use two queues, but I find that the program may have a lag (although it lacks all data) and who interrupts the acquisition for the user and I don't want that. I prefer the program to retrieve data in real time and then decided to use the authors of notifications to send data to loops1 & 2. What are the caveats of this? Given that I am gaining at the rate of 1 s/s, maybe it will be enough.

    With respect to the orders queue, this is done and two commands are queued in order to activate loops1 & 2. Using multiple loops slave/consumer, how we manage several channels? the user can choose to acquire all the channels simultaneously or one at a time. I am able to activate the four channels. In this case, because loops can not run in order, how do you ensure that the item is read by the right loop?

    I'm running into a few problems:
    Question 2: synchronizing data - use 'wait on ms' synchronize all loops (main loop and loop1, loop2)
    -data doesn't seem to be very good sync - why is - this? consumer of treatment<>
    -what I'm missing?
    Question 3: processing loss data - because using filers is frozen and using queues is not, I did so that orders of the so-called 'turn on' the two loops is done using a queue. I compared it with the notifiers
    Question 4: Errors - I made loops 1 & 2 output on the notifier error error - they throw an error when the program stops so happy so I was testing for. I read some ni.forums he's talking about is enough, but what are the other types of error monitoring (error reporting)? Thank you very much for reading!

    I programmed so far and it can read all or individual channels but I want check against all cases, that's why I ask these questions to check. I know that architecture may not be the best, so any suggestions would be welcome. I try to get the synchronization of the time and I don't want any data with loss. I guess that the use of queues to send data and commands is ok?

    Thank you in advance for your help!


  • I use an analog input on a PCI-6224 and are having problems with the clock source

    I use an analog input on a PCI-6224 and are having problems with the clock source. I'm trying samples of 16 different analog inputs very quickly. I have the sample mode: Timed Single Point material. The rate, that I am running is the maximum (250 kHz (15625Hz per channel)). I left the default clock source and trying to taste several times. The analogue input works for a short time (2-3 seconds) and then everything stops. I'm doing something wrong or is there something I'm missing? Any advice would be great.

    That's how you samples using the sample clock clock. If you see a delay then something is wrong with how you track/data visualization.

    Single point NI the hardware is for PID control with a real-time operating system.

  • HP15 ab029tx: window update 10 problems should return to 8.1 windows using recovery and come back later

    My computer hp 15ab029tx laptop came pre-installed with win 8.1. I've recently upgraded to win 10. However, after upgrading, I found the following issues. I installed the latest version of the bios and all drivers are up to date on hp site.

    the problems are.

    1. edge flicker browser. Sometimes I use chrome so ok.

    2. autonomy is by 2 hours earlier, that's around 3: 00.

    3. laptop gets very hot. I found coolsense does not. There is no setting of tdp in the power profile. TDP settings was present in windows 8.1.event viewer is full of errors of health active hp, intel dptf, etc.

    error dptf Intel

    Intel (r) platform dynamic and thermal environment: Requested (8.1.10600.150) TYPE: ERROR

    DPTF Build Version: 8.1.10600.150

    DPTF Build Date: June 26, 2015 11:46:12

    Source file:...... \.. \.. \Sources\Policies\PolicyLib\PolicyBase.cpp @ line 693

    Function: PolicyBase::releaseControlofOsc

    Message: Impossible to release the OSC: failure when executing _OSC:

    DPTF Build Version: 8.1.10600.150

    DPTF Build Date: June 26, 2015 11:46:12

    Source file:...... \.. \Sources\Manager\EsifServices.cpp @ line 473

    The enforcement function: EsifServices:rimitiveExecuteSet

    Message: Error returned by the function interface IBSE services call

    Member: NoParticipant

    Domain: NoDomain

    IBSE Primitive: SET_OPERATING_SYSTEM_CAPABILITIES [93]

    Instance of IBSE: 255

    IBSE return code: ESIF_E_UNSUPPORTED_ACTION_TYPE [1202]

     

    Policy: Policy critical [0]

    Active health HP errors

    COM exception running a command GET Casl EmbeddedController.AuditLog.JSON = return value from the BIOS, which indicates a value of invalid command. : one or more arguments are invalid (Exception from HRESULT: 0 x 80000003)

    4. several fonts of applications is blurred. I use 125% recommended implemented nationally as a 1080 p screen. all drivers intel & nvidia graphics are more recent.

    5. after sleep / standby wireless works irregularly unless I turn it on / off manually & special keys on the keyboard do not work until I restart.

    6. portable seems overall gloomy. (seems to be however performance tests indicate otherwise). Apps to take longer to open.

    So should I go back to earn 8.1 using recovery and wait for more late say 1 year when all bios and driver problems are sorted.

    My main problem is the short battery life and the laptop heats up.

    Concerning

    That's what I'd do - return to Win8.1.

    I have a laptop HP Dv6 Win7 running and the upgrade of Win10 has been a total disaster.  I restored using Win7 HP recovery media.  I'd rather have a BONE more old where everything works, only a new operating system where things do NOT work.

    As to wait a year, the FREE upgrade expires end of August 2016 - so after that, if you still want to upgrade, you will need to purchase a license - and, unlike with previous versions of OS, MS said nothing about the price for upgrade license, or even if such a license will be available then.

  • How do I configure the iPad2 to synchronize the iPad-Mailclient with Exchange 2010 via Active Sync using the certificate SSL client and name of user and password?

    Active Sync iPad ssl Client certificate

    How do I configure the iPad2 to synchronize the iPad-Mailclient with Exchange 2010 via Active Sync using the certificate SSL client and name of user and password?

    Hi Ewoki,

    Your question is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the TechNet Exchange forum. Please post your question in the Forums TechNet in Exchange Server.

Maybe you are looking for

  • Keyboard wireless drivers

    I have a HP Touchsmart IQ518A and recently upgraded to Windows 7 from Vista.  I can't find the drivers that work for keyboard and mouse and install the one listed as a driver for Bluetooth, but it still does not work. I'm not very good with computers

  • Unknown device in Pavilion 15-e033TX Device Manager

    I just bought HP Pavilion 15 laptop-e033TX. I installed windows 8.1 in it and all the drivers, but I still get one to you. I don't know what it is. In the Details of this device tab, I get this code: -. ACPI\HPQ0004\3 & 11583659 & 1 The screenshot of

  • HP OFFICEJET PRO 6830 isn't printing

    My HP6830 will not print.  There is no error message. I checked for the latest drivers and software and there is no. I was able to print a test page for the printer and the computer seem to be communicating.  The ink tank is low, but no message will

  • Pc monitor HP Pavilion laptop g7-1390sd will not return after sleep

    The monitor won't after "standby" mode. The only way I can get it back is to turn it off and then back on it has all updates.

  • New laptop comes with Windows 10, want to install Windows 7 in place but freezes everything in

    Just got an Acer Aspire ES 15, which came with Windows already installed 10. I do not like the windows 10, would be nice instead of Windows 7. I tried to boot from my CD with Windows 7, but once I did the "loading files" bar and I'm on the 'starting