![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Connect Oracle from NATted IP | skbpk_in | SUN Solaris | 0 | 09-18-2008 10:27 AM |
| How to connect oracle from unix | ravi gongati | Shell Programming and Scripting | 2 | 03-24-2008 06:19 AM |
| How to connect ORACLE using PERL | Vijayakumarpc | Shell Programming and Scripting | 1 | 02-27-2008 08:20 AM |
| How to connect to oracle ?? | divyesh shah | Shell Programming and Scripting | 2 | 01-04-2007 04:40 AM |
| HOw to connect oracle using ksh and perl script | chendra.putta | Shell Programming and Scripting | 3 | 10-17-2006 12:30 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
We also use our Oracle Database for config management. As to how here is an example function... Code:
#!/bin/sh
LOGIN="user/pass@host:1521"
CREATE_HOSTS_FILE () {
sqlplus -s $LOGIN <<EOF > hosts.out
SET HEAD OFF
SET LINESIZE 120
SET FEEDBACK OFF
SELECT
HOSTNAME, IP
FROM
HOSTS
WHERE
ACTIVE = 1
/
EOF
}
CREATE_HOSTS_FILE
# Now we have a file named hosts.out that we can review and then pass to all servers as the "/etc/hosts" file
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|