Hi,
I wrote a shell script to call oracle procedure. But when i am trying to connet sqlplus with the fallowing statement It is giving me error " callproce.sh : sqlplus: not found". What could be the problem.
sqlplus -s $CONNECT_STRING >$LOGFILE <<!!
thank u all
papachi (2 Replies)
i'm not new to programming, but i AM new to unix scripting. here's my deal.
this works:
#!/bin/ksh
echo "HELLO"
/oracle_home/bin/sqlplus username/password@MYDB<<EOF
SELECT COUNT(*) FROM EMPLOYEES;
EOF
exit
echo "GOODBYE"
this doesn't:
#!/bin/ksh
echo "HELLO"
for x in 1 2... (4 Replies)
hi,
I am trying to automate the compilation of procedures stored in .sql files in Unix. Is there any way in which we can sho err if there errors are raised in the compilation?
I am using the following code to connect to the sqlplus
sqlplus ${SQL_USER}/${SQL_PASSWORD} (5 Replies)
I am trying to connect to one of the oracle sever using uni through sqlplus
command: sqlplus -s BOXI_ALPH_AUDITOR,Q078_audit$@Q047
But its not getting connected. I tried using some different server using same syntax its working. What differene i found is the password is having no special... (2 Replies)
Hi,
I am very new to shell scripting and trying to write a simple shell script in which i am trying to achieve the following:
1. Connect to oracle database hosted on a different server
2. fire a query on the oracle db
3. store the output in a variable
4. use this variable for further logic... (1 Reply)
Hi,
I am very new to shell scripting and trying to write a simple shell script in which i am trying to achieve the following:
1. Connect to oracle database hosted on a different server
2. fire a query on the oracle db
3. store the output in a variable
4. use this variable for further logic... (26 Replies)
Hello everyone,
It's my first week using unix and shell scripting. I tried creating a script that has a function that execute SQL query. my script looks something like this:
----------------------------------------------------
#!/bin/sh
tableName="myTable"
secondTable="secondTable"... (2 Replies)
Hi all,
I am trying to use if loop inside SQLPLUS....is it possible...bcoz i tried a whole day with all the possibilities....no use...pls help
Here's the code:
KRITI = $?
sqlplus -s /NOLOG << EOF
connect $USER/$PASS
IF $KRITI = 0
THEN
create table kriti_employees(
emp_id ... (1 Reply)
Hi,
I am facing a strange issue when connecting to SQLPLUS via a shell scripts.
I am using Linux 2.6.18-274.18.1 and gbash shell.
When I connect to SQLPLUS through scripts then it throws TNS Time Out error ""sometimes"" and connects successfully other times.This is only happening when... (9 Replies)
hi,
i have a requirement where i need to connect sqlplus from unix and i am able to do so by following command:
cust_count=`sqlplus -s $ORACLE_USER/$ORACLE_PASS@$ORACLE_SID << EOF
set pagesize 0
set feedback off
set verify off
... (1 Reply)
Discussion started by: lovelysethii
1 Replies
LEARN ABOUT DEBIAN
vdetaplib
VDETAPLIB(1) General Commands Manual VDETAPLIB(1)NAME
vdetaplib - Virtual Distributed Ethernet tap emulation library
SYNOPSIS
No synopsis
DESCRIPTION
vdetaplib is a library that emulates tap (tuntap level2 interface, see in kernel sources Documentation/networking/tun.c) and connects tap
virtual interfaces to vde networks.
To use it, the libvdetab.so library must be preloaded (sh, ksh or bash syntax):
export LD_PRELOAD=/usr/lib/vde2/libvdetap.so
(csh, tchs syntax):
setenv LD_PRELOAD /usr/lib/vde2/libvdetap.so
If you want to divert all tap requests to a single vde_switch set the variable VDEALLTAP to the vde socket.
(sh, ksh or bash syntax):
export VDEALLTAP=/tmp/vde.ctl
(csh, tchs syntax):
setenv VDEALLTAP /tmp/vde.ctl
It is possible to set each single interface to different vde_switches by setting the environment variable with the same name of the inter-
face.
(sh, ksh or bash syntax):
export tap0=/tmp/vde.ctl
export tap1=/tmp/myvde.ctl
export ppc=/tmp/ppc.ctl
(csh, tchs syntax):
setenv tap0 /tmp/vde.ctl
setenv tap1 /tmp/myvde.ctl
setenv ppc /tmp/ppc.ctl
It is also possible to specify port, group or mode for a given interface setting environment variables as in the following example.
(sh, ksh or bash syntax):
export tap0_port=5
export tap0_group=vde-net
export tap0_mode=0660
(csh, tchs, syntax):
setenv tap0_port 5
setenv tap0_group vde-net
setenv tap0_mode 0660
The variable to set the specific interface is checked first then VDEALLTAP. VDEALLTAP thus works as a default choice for the vde switch to
be used. If VDEALLTAP is not set and there is no specific environment variable (and for tun -- IFF_TUN interfaces) the kernel provided
interface is used. In this latter case access to /dev/net/tun is required, generally root access.
NOTICE
Virtual Distributed Ethernet is not related in any way with www.vde.com ("Verband der Elektrotechnik, Elektronik und Informationstechnik"
i.e. the German "Association for Electrical, Electronic & Information Technologies").
SEE ALSO vde_switch(1), vdeq(1).
AUTHOR
VDE is a project by Renzo Davoli <renzo@cs.unibo.it>
Virtual Distributed Ethernet December 6, 2006 VDETAPLIB(1)