I cannot figure out how to run a SQL script, or just a sqlplus query, from a shell script (bash or ksh). Basically, I need to su - oracle from root and run a query, then test the exit status. (3 Replies)
HI ALL
i have a requirement like this. i have to write a shell script to run a sql query. DB is oracle. once the query is run, the results of the query has to be published in a data file. can you please advice me how to go about it. i am absolutely new to shell scripts and this is a part of my job. (14 Replies)
Hi ALL,
I need an help in connecting to oracle database, executing a select query and printing it on the screen. Can any one please write a simple code or psuedo code and let me know.
select query returns multiple values( say select name from emp)
Thanks in advance
LM (1 Reply)
query sql using shell script, is it possible?
my friend told me to do a file.sql and link to my shell script, but can i query sql using shell script?
thanks in advance! (2 Replies)
Hi Team,
Can you please help me to resolve this issue.
Am unable to use this $ symbol in sql query in the shell script.
For Example:
# !/bin/sh
export USER_NAME=XXX
export PASSWORD=YYY
export ORACLE_SID=xamdb
echo $ORACLE_SID
echo " Session Details ..."
... (1 Reply)
hey , i am using this code to store value of a sql query and and then use
it in other query but after some time , but it is not working. please help
#!/bin/bash
val_1=$( sqlplus -s rte/rted2@rel76d2 << EOF
setting heading off
select max(stat_id) from cvt_stats;
exit
EOF
)
nohup... (5 Replies)
Hi I would like to embed a sql query in my shell script.
Also, before any the sql query is executed, i would like to validate username and password. (1 Reply)
Hello All,
I'm trying to put together a shell script that will:
1. connect to an oracle database
2. execute a query
3. save the output to a csv file
I know that I can execute the sqlplus -s user/pass @dbsid and get logged in. What I would like to do is have my query in a separate text... (9 Replies)
Hi Experts,
Need your support.
Not able to use sql query alias in shell script.
Could you please help me in finding right way to use alias with sql query in shell script.
Below is the code i am using.
#!/bin/bash
sqlplus -s abc/abc@abc << EOF> bcd.csv
set trimspool on
select zone_id... (4 Replies)
Discussion started by: as7951
4 Replies
LEARN ABOUT DEBIAN
modelicac
modelicac(1) General Commands Manual modelicac(1)NAME
modelicac - modelicac is a compiler for a subset of the Modelica language including parts of the 'equation' subset that can express rela-
tions between Real variable.
SYNOPSIS
modelicac [-c] [-o <outputfile>] <inputfile> [ -L directory | -hpath directory | -keep-all-variables | -jac | -no-parameter-removal | -no-
simplifs | -trace filename | -xml ] This manual page documents briefly the modelicac commands. Note that modelicac is only available on
the platform which are supported by ocamlopt (ie amd64 hurd-i386 i386 powerpc sparc)
OPTIONS
A complete list of options is included below.
-c Compile only, do not instantiate. Modelicac produces a "*.moc" file when invoked with that option.
-o outputfile
Set output file name to <outputfile> (this option also works with -c option but is somewhat useless because of the class name
restrictions given above).
-L directory
Add <directory> to the list of directories to be searched when producing a C file (no effect when used with -c).
-hpath directory
Specify a path to be added to #include directives in the generated C code.
-keep-all-variables
Do not remove any variable from the initial system.
-jac Generate analytic jacobian matrix code.
-no-parameter-removal
Do not remove any parameter
-no-simplifs
Same as -keep-all-variables -no-parameter-removal
-trace filename
Generate tracing information for external function calls into <filename>
-xml Generate an XML version of the model instead of target code
AUTHOR
Modelicac was written by TNI-Valiosys and Imagineby.
This manual page was written by Sylvestre Ledru <sylvestre@debian.org>.
November 18, 2008 modelicac(1)