I have a requirement where I need to check for table. If exists, drop it else do nothing. For that I written below code.
The problem is, even if table does not exists, it goes to DROP statement... I do not understand why it goes there even after I put ACTIV ITY COUNT = 1. Can someonne please help me to figure out the problem?
Hi guys
I have a shell script that executes sql statemets and sends the output to a file.the script takes in parameters executes sql and sends the result to an output file.
#!/bin/sh
echo " $2 $3 $4 $5 $6 $7
isql -w400 -U$2 -S$5 -P$3 << xxx
use $4
go
print"**Changes to the table... (0 Replies)
Hi,
I have an HTML form through which I get some text as input. i need to run a shell script say script.sh inside a perl-cgi script named main_cgi.sh on the form input.
I want to write the contents of the form in a file and then perform some command line operations like grep, cat on the text... (2 Replies)
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)
Hi,
I basically have 2 shell scripts.
One is a shell script will get the variable value from the user. The variable is nothing but the IP of the remote system.
Another shell script is a script that does the job of connecting to the remote system using ssh. This uses a expect utility in turn.
... (2 Replies)
Hi All,
I have new for shell scripting.
Problem : I have one scrip at serv1 and path of server is /apps/dev/provimage/scripts and script name:extract_ancillary.bat.
I need to call this script at server2(my working server) and execute at server2 .
Please let me know how to build the... (5 Replies)
I have a shell script (.sh) and I want to pass a parameter value to the awk command but I am getting exception, please assist.
diff=$1$2.diff
id=$2 new=new_$diff
echo "My id is $1"
echo "I want to sync for user account $id"
##awk command I am using is as below
cat $diff | awk... (2 Replies)
Dear Unix gurus,
We have a config shell script file which has 30 variables which needs to be passed to master unix shell script that invokes oracle database sessions. So those 30 variables need to go through the database sessions (They are inputs) via a shell script. one of the variable name... (1 Reply)
Dear Unix gurus,
We have a config shell script file which has 30 variables which needs to be passed to master unix shell script that invokes oracle database sessions. So those 30 variables need to go through the database sessions (They are inputs) via a shell script. one of the variable name... (1 Reply)
Hello all,
I am facing a weird issue while executing a code below -
#!/bin/bash
cd /wload/baot/home/baotasa0/sandboxes_finance/ext_ukba_bde/pset
sh UKBA_publish.sh UKBA 28082015 3
if
then
echo "Param file conversion for all the areas are completed, please check in your home directory"... (2 Replies)
Hi,
I am totally a newbie to any programming languages and I just started an entry level job in an IT company. One of my recent tasks is to create a script that is able to show the log file of linux service (i.e. ntpd service)
lets say, if I run my script ./test.sh, the output should be... (3 Replies)
Discussion started by: xiaogeji
3 Replies
LEARN ABOUT REDHAT
drop_operator_class
DROP OPERATOR CLASS(7) SQL Commands DROP OPERATOR CLASS(7)NAME
DROP OPERATOR CLASS - remove a user-defined operator class
SYNOPSIS
DROP OPERATOR CLASS name USING access_method [ CASCADE | RESTRICT ]
INPUTS
name The name (optionally schema-qualified) of an existing operator class.
access_method
The name of the index access method the operator class is for.
CASCADE
Automatically drop objects that depend on the operator class.
RESTRICT
Refuse to drop the operator class if there are any dependent objects. This is the default.
OUTPUTS
DROP OPERATOR CLASS
The message returned if the command is successful.
DESCRIPTION
DROP OPERATOR CLASS drops an existing operator class from the database. To execute this command you must be the owner of the operator
class.
NOTES
The DROP OPERATOR CLASS statement is a PostgreSQL language extension.
Refer to CREATE OPERATOR CLASS [create_operator_class(7)] for information on how to create operator classes.
USAGE
Remove B-tree operator class widget_ops:
DROP OPERATOR CLASS widget_ops USING btree;
This command will not execute if there are any existing indexes that use the operator class. Add CASCADE to drop such indexes along with
the operator class.
COMPATIBILITY
SQL92
There is no DROP OPERATOR CLASS in SQL92.
SQL - Language Statements 2002-11-22 DROP OPERATOR CLASS(7)