In what way is it 'not working'? Do you get any output/errors that we can see?
Could I also suggest that you move your credentials to the next line. If anyone does a ps -ef | grep sql whilst your code is running, they will see your credentials in clear text. Something more like:-
Of course, keeping the credentials secret if you code them in the script is another problem.....
How can I use the 'ps' command to view current sessions but only for a given process/user, with the -u parm?
In older versions of Unix, this used to work, but not in Sun Solaris.
Thanks (4 Replies)
:confused: In the following, when I enter a valid, existing directory,why am I getting Not Found when the Dir DOES exist?
read auser
echo "You entered $auser"
wait 2
cd /home
if
then
echo "Dir Exists"
sleep 2
else
echo "/home/$auser Not Found"
sleep... (2 Replies)
Hi All,
I am running 25 background process from a Unix shell script which calls a single Oracle procedure with different paramenters each time.
These 25 process creates 25 different files.
When i run these 25 Background SQLPLUS processes, few files are not created completly but if i run 25... (1 Reply)
Running HP 11.31 on a HP3600. But when I log in as a user the who command works but if I use an option like "who -m" I get nothing. Any thoughts on what is causing this problem. (11 Replies)
Hi All,
I am facing a strange problem on one of my unix servers.
When i try to login using the standard method:
it fails with below message
>sqlplus REF1SSTDBO1/REF1SSTDBO1@TKS3N10G
> TKS3N10G
ksh: TKS3N10G: not found
But it works perfectly when i escape with ;\
>sqlplus... (3 Replies)
Hello,
Could someone tell me why this still returns headings?
echo "SELECT columnA from tableA group by columnA;" |
sqlplus -s ${DB_CONNECT}
set heading OFF |
while read line
do
arr="$line"
echo ${arr}
let i=$i+1
done (2 Replies)
In solaris, i m trying to find the files having a particulat extension and then from the list i want to exclude those files which is present in a file.
But it seems the -f and -v option are not working
find $source -type f -name $extn | /usr/xpg4/bin/grep -F -v -f $exclude | while read... (7 Replies)
I have below SQL that I wasnt to run from a solaris machine using sqlplus
select * from TABLE_NAME where regexp_like(field_value, 'Α|Β|Γ|Δ|Ε|Ζ|Η|Θ|Ι|Κ|Λ|Μ|Ν|Ξ|Ο|Π|Ρ|Σ|Τ|Υ|Φ|Χ|Ψ|Ω|α|β|γ|δ|ε|ζ|η|θ|ι|κ|λ|μ|ν|ξ|ο|π|ρ|σ|τ|υ|φ|χ|ψ|ω');
When I cat the file UTF char shows perfect however when i run... (1 Reply)
Hi Gurus,
I was trying to execute sqlplus command remotely like
ssh -q IP venkat@"which sqlplus"
am getting error as which: no sqlplus in (/usr/local/bin:/bin:/usr/bin)
if i connect manually and executing which sqlplus it working fine.
Please help to fix the issue.
Regard's
Venky (7 Replies)
"SQLPLUS -S " is not working in one environment where same code is working in another
getting below error
===================================
SQL*Plus: Release 11.2.0.3.0 Production
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Use SQL*Plus to execute SQL, PL/SQL and SQL*Plus... (1 Reply)
Discussion started by: yogendra.barode
1 Replies
LEARN ABOUT DEBIAN
cifscreds
CIFSCREDS(1)CIFSCREDS(1)NAME
cifscreds - manage NTLM credentials in kernel keyring
SYNOPSIS
cifscreds add|clear|clearall|update [-u username] [-d] host|domain
DESCRIPTION
The cifscreds program is a tool for managing credentials (username and password) for the purpose of establishing sessions in multiuser
mounts.
When a cifs filesystem is mounted with the "multiuser" option, and does not use krb5 authentication, it needs to be able to get the
credentials for each user from somewhere. The cifscreds program is the tool used to provide these credentials to the kernel.
The first non-option argument to cifscreds is a command (see the COMMANDS section below). The second non-option argument is a hostname or
address, or an NT domain name.
COMMANDS
add Add credentials to the kernel to be used for connecting to the given server, or servers in the given domain.
clear
Clear credentials for a particular host or domain from the kernel.
clearall
Clear all cifs credentials from the kernel.
update
Update stored credentials in the kernel with a new username and password.
OPTIONS -d, --domain
The provided host/domain argument is a NT domainname.
Ordinarily the second argument provided to cifscreds is treated as a hostname or IP address. This option causes the cifscreds program
to treat that argument as an NT domainname instead.
If there are not host specific credentials for the mounted server, then the kernel will next look for a set of domain credentials
equivalent to the domain= option provided at mount time.
-u, --username
Ordinarily, the username is derived from the unix username of the user adding the credentials. This option allows the user to
substitute a different username.
NOTES
The cifscreds utility requires a kernel built with support for the login key type. That key type was added in v3.3 in mainline Linux
kernels.
AUTHORS
The cifscreds program was originally developed by Igor Druzhinin <jaxbrigs@gmail.com>. This manpage and a redesign of the code was done by
Jeff Layton <jlayton@samba.org>.
2012-01-24 CIFSCREDS(1)