02-15-2019
How to connect to a DB installed on another host using shell script?
Hi Experts
There are two hosts say A and B. On host B, Oracle DB is installed and running. I am trying to check if the DB on host B is up and running fine from a script on host A. Is this possible. I tried using commands like sql plus but those doesn't seem to help. Could you please guide.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
hi there
I've got a strange problem with a webserver box (suse linux 7.2). My MTA is sendmail, and when I tried manually send a mail.
Sendmail -v "user@something" < /etc/hosts
The Server tried
"simon@localhost... Connecting to local..." but nothing happend and the system hold on.
This... (3 Replies)
Discussion started by: mrsaint
3 Replies
2. Shell Programming and Scripting
How can my unix shell script automatically connect to remote host?
Assume that there is a remote host called "rhost". When I connect to that host i give the command "telnet rhost".
It then asks me for my id and password. Once i give it connects there.
I want to automate these steps. I want... (8 Replies)
Discussion started by: digdarshan
8 Replies
3. Shell Programming and Scripting
I want to write a script which would run from one host say A and connect to other remote host B and then run rest of commands in that host. I tried connecting from A host to B with SSH but after connecting to host B it just getting me inside Host B command prompt. Rest of the script is not running... (6 Replies)
Discussion started by: SN2009
6 Replies
4. Shell Programming and Scripting
i want use ssh on the host01 to execute autoexec.sh on the host02 like following :
host01> ssh host02 autoexec.sh
autoexec.sh include nohup command like follwing :
nohup /home/jack/deletedata.sh &
after i execute ssh host02 autoexec.sh one the host01. i can't found deletedata.sh... (1 Reply)
Discussion started by: orablue
1 Replies
5. Red Hat
Hello all
I installed apache in CentOS 5.5 ,after searching the web for tips on configuration
I did the fallowing stuff to unable connecting the http server from outside.
In /etc/httpd/conf/httpd.conf I changed the Listen value to 0.0.0.8011
Then checked with then check with: netstat -anp and I... (2 Replies)
Discussion started by: umen
2 Replies
6. Shell Programming and Scripting
Hi everyone,
I have oracle 9i installed in Windows XP and i have ubuntu in VM WARE.
I would like to know how to connect to Oracle in windows xp from Linux through shel scripting...... (3 Replies)
Discussion started by: Zimbu
3 Replies
7. Shell Programming and Scripting
I currently have a shell script that utilizes the "Date" binary - this application is slightly different on OS X (BSD General Commmand) and Linux systems (gnu date). In particular, the version on OS X requires the following to get a date 14 days in the future "date -v+14d -u +%Y-%m-%d" where gnu... (1 Reply)
Discussion started by: colinjohnson
1 Replies
8. Shell Programming and Scripting
Hi
i am trying to open HTTP by curl command.
i am tryng to do that from command or script BASH.
also iptables is off
it doesnt work i am getting an error:
curl: (7) coudn't connect to host
the scipt is:
#! /bin/bash
curl http://www.cnn.com (1 Reply)
Discussion started by: zigizag
1 Replies
9. Shell Programming and Scripting
Hi All,
Need to connect to target host and execute a command and connect back to source host to continue with next set of command execution.
Is there a utility/command using which we can connect to target host ?
Please suggest.
Note: Netezza database is instaled on Linux server. ... (4 Replies)
Discussion started by: Nagaraja Akkiva
4 Replies
10. Shell Programming and Scripting
hello
i try to made a report to conect all database to diferent OS
HP-UX/LINUX/SOLARIS/AIX
this is my example
i have 5 db
OS are HP-UX
ps -fea | grep pmon
root 1120 1 0 Nov 29 ? 5:14 ipmon -sD
oracle 10286 1 0 Nov 29 ? 27:19 ora_pmon_BD1
oracle 10431... (7 Replies)
Discussion started by: ceciaide
7 Replies
hosts(4) Kernel Interfaces Manual hosts(4)
NAME
hosts - host name data base
DESCRIPTION
The file associates Internet (IP) addresses with official host names and aliases. This allows a user to refer to a host by a symbolic name
instead of an Internet address.
This file contain all addresses for local interfaces that needs at boot time (see ifconfig(1M)). When using the name server (see
named(1M)), or Network Information Service (see ypserv(1M)), this file often serves as a backup when the server is not running. In such
circumstances, it is a common practice for to contain a few addresses of machines on the local network.
should contain a single line for each host with the following information:
internet_address official_host_name aliases
The internet_address can be an IPv4 or IPv6 address specified in the conventional Internet dot notation. See inet(3N) or inet6(3N) for
more information on Internet address manipulation routines.
aliases are other names by which a host is known. They can substitute for the official_host_name in most commands. For example:
In this example, users can use remote login on by using the command:
instead of
If your system is in a domain naming environment, an official host name consists of the full domain extended host name. For example:
(space or tab character). Items are separated by any number or combination of space or tab characters (blanks). A character indicates the
beginning of a comment. Characters from the to the end of the line are not interpreted by routines that search the file. Trailing blanks
are allowed at the end of a line.
For the Internet, this file is normally created from the official host database maintained at the Network Information Control Center (NIC),
although local changes may be required to bring it up to date with respect to unofficial aliases and/or unknown hosts.
Host names can contain any printable character other than a white space, newline, or comment character.
EXAMPLES
See
AUTHOR
was developed by the University of California, Berkeley.
SEE ALSO
gethostent(3N), inet(3N), nsswitch.conf(4).
hosts(4)