Oracle Tnsping Windows
We have Oracle running on a Windows server and a couple of Linux clients. Windows clients work just fine. However, running tnsping on a Linux (running RHEL 6.9) client has an interesting issue. Take for example:
Oracle Tnsping Windows
Sounds like there's a good chance that the connection is being blocked by a firewall, or perhaps the Oracle listener is just down. You can try setting the following parameters in the client sqlnet.ora to generate a trace file for tnsping and see if that gets you any further information.
The oracle client is installed both on the Terminal server as on the "SQL Server" Server (I assume because I can't check this). If I execute a SSIS package on the terminal server it works and when I import it on the SQL Server Integration Services (Import Package and run package) it works too!!
It seems that the tnsless conectionstring is working on the terminal server (server A), but not on the server B. I'm recieving the following error: ORA-12537: "TNS:connection closed" with the tnsnames.ora connection option as well as with the tnsless connection string. The administrator told me that the former file content of the tnsnames.ora didn't work and he copied the content into the file again. He said that it's now possible to tnsping the Oracle server. Not sure whether he pinged the right server because there are four connectionstrings in the file. I have to ask him about this..
In this way we can visualize that in the bottom part of the windows we have the red color that allows us to easily identify which type of connection we have open and in the upper part of the windows we can see the name of the connection and the editor in red.
C:\Users\oracle>tnsping XETNS Ping Utility for 64-bit Windows: Version 11.2.0.2.0 - Production on 26-JUN-2018 14:58:22Copyright (c) 1997, 2014, Oracle. All rights reserved.Used parameter files:D:\oraclexe\app\oracle\product\11.2.0\server\network\admin\sqlnet.oraUsed TNSNAMES adapter to resolve the aliasAttempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = IXC1-LP48ZJ622.FNFIS.com)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = XE)))OK (160 msec)Check Listener with TNSPING 8 times
C:\Users\oracle>tnsping XE 8TNS Ping Utility for 64-bit Windows: Version 11.2.0.2.0 - Production on 26-JUN-2018 14:59:48Copyright (c) 1997, 2014, Oracle. All rights reserved.Used parameter files:D:\oraclexe\app\oracle\product\11.2.0\server\network\admin\sqlnet.oraUsed TNSNAMES adapter to resolve the aliasAttempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = IXC1-LP48ZJ622.FNFIS.com)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = XE)))OK (10 msec)OK (0 msec)OK (20 msec)OK (0 msec)OK (0 msec)OK (0 msec)OK (0 msec)OK (0 msec)
TNSPING badnameC:\Users\oracle>tnsping badnameTNS Ping Utility for 64-bit Windows: Version 11.2.0.2.0 - Production on 26-JUN-2018 15:00:48Copyright (c) 1997, 2014, Oracle. All rights reserved.Used parameter files:D:\oraclexe\app\oracle\product\11.2.0\server\network\admin\sqlnet.oraTNS-03505: Failed to resolve nameSolutionCheck the tns entry in tnsnames.ora file and use it for fixed the solution of error TNS-03505: Failed to resolve name.
TSNPING XEC:\Users\oracle>tnsping XETNS Ping Utility for 64-bit Windows: Version 11.2.0.2.0 - Production on 26-JUN-2018 15:06:11Copyright (c) 1997, 2014, Oracle. All rights reserved.Used parameter files:D:\oraclexe\app\oracle\product\11.2.0\server\network\admin\sqlnet.oraUsed TNSNAMES adapter to resolve the aliasAttempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = IXC1-LP48ZJ622.FNFIS.com)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = XE)))TNS-12541: TNS:no listenerSolutionStart the Listener of the Server and then tried.Note: lsnrctl start command is used for start the listener
For tnsping, in addition to the final result information, we can also use the trace method to view the execution status of each step and the steps in which the problem occurs. This article describes how to track the tnsping process from the client. 2. Configure tracking Parameters
By default, the tnsping tracking function is disabled. We need to perform manual configuration in the Oracle Net configuration file sqlnet. ora. Note: The configuration is on the client, and we execute the tnsping command on the client. -- Client sqlnet. ora, at $ ORACLE_HOME/network/admin
The final tnsping. trace_level and tnsping. trace_directory indicate the Trace Level and directory of tnsping. Like other Oracle tracking operations, tnsping also supports different tracking levels and can be adjusted based on our purposes. Currently, trace_level has the following optional parameters: off, user, admin, and support. In the experiment, we chose the support level, which is a relatively fine tracking granularity.
While tnsping is a very useful tool for diagnosing a variety of connection problems, we must be very clear about one important point: it tells us absolutely nothing about the state of a database instance. This is not a shortcoming of tnsping. We just need to understand that it is a tool for diagnosing sqlnet issues, and sqlnet is not the database.
Running Windows 7 SP1 (32-bit), Office 2010, Oracle Client 11g, and two System DSNs that point to Oracle databases. I can resolve both ODBC conenctions via a command prompt and tnsping, and I can connect to the ODBC connections via TOAD for Oracle.
1. This error could be caused by because of a firewall software on your system. In the firewall software, grant 'server' permissions to 'oracle.exe' and 'tnslsnr.exe'. You can also temporarily turn off the firewall software to test. Also make sure to allow port 1521 for local system IP in settings of ZoneAlarm or the firewall software.
This how-to describes how to setup your OP5 Monitor server with Oracle Instant Client to be able to use the plugin check_oracle directly towards the Oracle Database. This means we eliminate the use of 3rd party agents on the server, and it's the same syntax for Linux/UNIX and Windows platforms. In this how-to we will use version 11.2.0.4.0 of Oracle Instant Client. The 11-series client works for checks against Oracle 11 and Oracle 10 databases. The word '#' means that you will need to type a command in the command line interface.
A set of environment variables are needed. Note that this process will differ between EL6 and EL7. Regardless of variant, you may create /etc/profile.d/check_oracle.sh with the following contents to set up interactive shells correctly:
/etc/sysconfig/naemon already exists, simply add your variables to the end of the file. Every line is required to start with the word "export", just like the check_oracle.sh example above.
(B) Oracle Inventory Logs in Program files :============================================On 32-bit windows : Only one folder C:\Program Files
On 64 bit windows : There are two folders with Program files :(a) C:\Program Files (if any 64 bit apllication is installed their information goes here)(b) C:\Program Files(x86) (if any 32 bit apllication is installed their information goes here)
You must be able to connect from your load generation server to your SUT database server across the network using Oracle TNS. This will involve successful configuration of your listener on the SUT database server and the tnsnames.ora file on the load generation server. You can troubleshoot connectivity issues using the ping, tnsping and sqlplus commands on the load generation client and the lsnrctl command on the SUT database server. For example a successful tnsping test looks as follows: