10-06-2006
& in SQL query
I have a script that looks for all jobs that contain a particular calendar.
Some of the calendars have '&' in them and sql freaks out when it encounters that.. is there a way around this?
I have tried:
select job_name from job where run_calendar='1&15dom'
select job_name from job where run_calendar='1\&15dom'
Any help is much appreciated...
Linda
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi ...
I am doing a switch user and then rsh and then running a sql query .
I am successfull in rsh and logging into the database , but my query doesnt run ..
Here's the command :
su - linus -c "rsh -l linus psmf ORACLE_SID=SMP;export ORACLE_SID;sqlplus... (1 Reply)
Discussion started by: sars
1 Replies
2. UNIX and Linux Applications
Hello Everyone,
I am looking to write a script that will run on many machines in a network at the same time. They need to write a result to a common location. I plan to use a SQLlite database as this common writing point. But the concern I have is how SQLlite will react to multiple writes that... (1 Reply)
Discussion started by: garric
1 Replies
3. Shell Programming and Scripting
Hi I'm looking to query a table on a database and then iterate over the results in a loop. I believe this is the last part of my script that I need (after finding out threads for passing variables to other scripts and calling functions in other scripts). I've searched the forums but the best... (8 Replies)
Discussion started by: Dird
8 Replies
4. Shell Programming and Scripting
Hi ,
I used the below script to get the sql data into csv file using unix scripting.
I m getting the output into an output file but the output file is not displayed in a separe columns .
#!/bin/ksh
export FILE_PATH=/maav/home/xyz/abc/
rm $FILE_PATH/sample.csv
sqlplus -s... (2 Replies)
Discussion started by: Nareshp
2 Replies
5. UNIX for Dummies Questions & Answers
Hi Guys,
I would like with this script
"DATA=`ora123 su -c 'echo "SET HEADING OFF;\n SET FEED OFF;\n select USER NAME, ACCOUNT_STATUS from dba_users;\n exit" | sqlplus / as sysdba -s /' `
echo $DATA >> $DAT"
make a sql query, but the statement
"select USER NAME, ACCOUNT_STATUS from... (6 Replies)
Discussion started by: ixibits
6 Replies
6. Shell Programming and Scripting
Hi Everyone,
Can anyone pls help me out......with my requirement, i am struggling since 3 days. Please find the requirement below
my file contains below data
R1|Array/Network Resistor - VIP|V_RES_CLASS|V_MOUNT_FEATURE|SURFACE MOUNT|AND|8533.10.00.20|8533.10.00.20|
R1|Array/Network Resistor... (9 Replies)
Discussion started by: jam_prasanna
9 Replies
7. Shell Programming and Scripting
I used the following code
code
select * from tablename where columnname
Instead of printing the expected output it prints all the files in the present directory since there is a "*" in the code. Is there any way to overcome the problem?
Thanks
Ananth (2 Replies)
Discussion started by: Ananthdoss
2 Replies
8. Shell Programming and Scripting
Hi, this's Pom. I'm quite a new one for shell script but I have to do sql on shell script to query some information from database.
I found a concern to get a new line...When I run my script, it retrieves all data as wondering but it's shown in one line :(
What should I do? I'm not sure that... (2 Replies)
Discussion started by: Kapom
2 Replies
9. Shell Programming and Scripting
Hi ,
I have a sql query in the unix script ,whose output is shown below.I want to convert this output to HTML table format & send email from unix with this table as email body.
p_id src_system amount
1 A 100
2 B 200
3 C ... (3 Replies)
Discussion started by: jagadeeshn04
3 Replies
10. Programming
Hello All,
I hope I'm posting this in the right section.
I have zero sql query writing skill, in fact, I've never done it before, but for some reason, a request came across my desk to get information from one of our databases. I have about 200 ticket numbers that have no information attached,... (8 Replies)
Discussion started by: bbbngowc
8 Replies
LEARN ABOUT HPUX
csa_x_process_updates
csa_x_process_updates(library call) csa_x_process_updates(library call)
NAME
csa_x_process_updates -- invoke a calendar application's calendar event handler
SYNOPSIS
#include <csa/csa.h>
void csa_x_process_updates(
CSA_session_handle cal);
DESCRIPTION
The csa_x_process_updates function checks to see if there have been calendar updates that are of interest to the client. If there have
been one or more calendar updates, and the client previously registered a callback handler using csa_register_callback(3) for updates of
this type, the callback function is called by csa_x_process_updates.
The cal argument specifies a calendar session handle. The callback function will be invoked only if there have been updates to this calen-
dar. If cal is set to NULL, the callback function will be invoked if there have been updates to any logged on calendars.
RETURN VALUE
The csa_x_process_updates function returns no value.
APPLICATION USAGE
The csa_x_process_updates function is useful for applications that maintain a dynamic representation of calendar information, such as a GUI
calendar display. Because the calendar server can simultaneously maintain multiple read/write connections for the same calendar, any data
retrieved by a client should be considered immediately out of date. To create the appearance of a dynamic display of calendar data, such
an application should call csa_x_process_updates as frequently as necessary from within its main event loop.
One way to do this is to have a timeout handler call csa_x_process_updates at regular intervals. The duration of the timer should be
appropriate for the expected user environment. This does not eliminate the risk of the client holding outdated information; it merely
gives the application control over how old the information can get.
SEE ALSO
csa/csa.h - csacsa(5), csa_register_callback(3).
csa_x_process_updates(library call)