Hi my UNIX Friends,
Im calling some SQL scripts through Unix Shell scripting.
How do I export the value of PL/SQL variable value into a Unix shell script variable?
Also could any one inform me about the 'search' and 'cut' utility of PL/SQL
(like 'grep' and 'cut' in Shell scripting).
... (10 Replies)
Hi Folks,
This is a small chunk of the bigger problem which i am facing and some help here will help me resolve the rest of the issue.
Problem is that i need to pass the value of a variable from a shell script to a SQL query (infact a lot of SQL's)
i have the following solution but somehow... (4 Replies)
I have this piece code in a shl, I need to pass paramaters to a PL\SQL
PRECEDURE like $fseqno and faidy I know that the $fseqno works correctly but I am not sure aboyt the faidy
can I code it like that faidy ='0910' ?
Thank you
for i in 3526*.dat
do
# Capture just the file... (1 Reply)
Hi Gurus,
i have one requirement in unix script, i have a file called abc.txt in that few lines are there with the empid, i need to read each line and pass to .sql script.
ex:
abc.txt
2345
2346
1243
1234
i need to pass these arguments to .sql script rom unix
ex:
select * from... (1 Reply)
Hi Everyone,
Can anyone help me how do i call hash variable in to sql query in perl. Please see the script below
i have defined two Hash %lc and %tab as below
$lc{'REFF'}='V_RES_CLASS';
$lc{'CALE'}='V_CAP_CLASS';
$lc{'XRPD'}='V_XFMR_CLASS';
$tab{'V_RES_CLASS'}='V_MFR_SERS';... (6 Replies)
Hi Guys,
I am trying to pass a string variable from Unix shell script to sqlplus as a parameter.
I have tried using single quotes with the variable name but it does not work. Please help me with it.
I am using BASH.
My code:
Your help is much appreciated.
Thanks,
shil (2 Replies)
Hi Friend,
I have one file in which some number are mentioned and number of lines are vary every time
And i need to pass that number to my sql command from script.
Suppose i have file acc.txt
45456546456
45464564565
67854353454
67657612132
Number of records are vary every time.... (20 Replies)
Hi All,
I want to run multiple sql queries and store the data in variable but i want to use sql command only once. Is there a way without running sql command twice and storing.Please advise.
Eg :
Select 'Query 1 output' from dual;
Select 'Query 2 output' from dual;
I want to... (3 Replies)
Hi all,
I have a a file which contains an oracle query. If this file is pushed into a shell script such as the below, it of course works fine.
#!/usr/bin/sh
su - oracle -c 'sqlplus -s / as sysdba <<EOF
@/home/cron/ORA/sql/T-ORA006-OracleSessions.sql
exit;
EOF
.
What i am after... (2 Replies)
Discussion started by: nms
2 Replies
LEARN ABOUT DEBIAN
config::pit
Config::Pit(3pm) User Contributed Perl Documentation Config::Pit(3pm)NAME
Config::Pit - Manage settings
SYNOPSIS
use Config::Pit;
my $config = pit_get("example.com", require => {
"username" => "your username on example",
"password" => "your password on example"
});
# if the fields are not set, open setting by $EDITOR
# with YAML-dumped default values (specified at C<require>).
# use $config->{username}, $config->{password}
DESCRIPTION
Config::Pit is account setting management library. This library automates editing settings used in scripts.
Original library is written in Ruby and published as pit gem with management command.
You can install it by rubygems:
$ sudo gem install pit
$ pit set example.com
# open setting of example.com with $EDITOR.
And Config::Pit provides ppit command which is pit command written in Perl.
See:
$ ppit help
FUNCTIONS
Config::Pit::get(setting_name, opts)
Get setting named "setting_name" from current profile.
my $config = Config::Pit::get("example.com");
This is same as below:
my $config = pit_get("example.com");
opts:
require
Specify fields you want as key and hint (description or default value) of the field as value.
my $config = pit_get("example.com", require => {
"username" => "your username on example.com",
"password" => "your password on example.com"
});
"require" specified, module check the required fields all exist in setting. If not exist, open the setting by $EDITOR with merged
setting with current setting.
Config::Pit::set(setting_name, opts)
Set setting named "setting_name" to current profile.
Config::Pit::set("example.com"); #=> will open setting with $EDITOR
opts:
data
Config::Pit::set("example.com", data => {
username => "foobar",
password => "barbaz",
});
When "data" specified, will not open $EDITOR and set the data directly.
config
Config::Pit::set("example.com", config => {
username => "config description or default value",
password => "same as above",
});
Open $EDITOR with merged setting with specified config.
Config::Pit::switch(profile_name);
Switch profile to "profile_name".
Profile is setting set:
$ pit get foobar
# foo bar...
$ pit switch devel
Switch profile to devel
$ pit get foobar
# bar baz
$ pit switch
Switch profile to default
$ pit get foobar
# foo bar...
AUTHOR
cho45 <cho45@lowreal.net>
LICENSE
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
SEE ALSO
<http://lowreal.rubyforge.org/pit/> is pit in Ruby.
bin/ppit is pit command in Perl.
perl v5.10.1 2010-01-14 Config::Pit(3pm)