06-28-2011
In summary, the O/P may not have realised that both client and server would normally have a tnsnames.ora file.
The client won't consult tnsnames.ora on the server .... because it doesn't know the way to find the server until it has read its own tnsnames.ora .
Similarly the server knows nothing about the clients until they connect and cannot know where to find a copy of tnsnmes.ora on a client.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I wanted to add /home/oracle/sql to my path so that from which ever directory i connect to sqlplus i should be able to source the .sql files sitting in /home/oracle/sql. Also,
this is what i tried but it doenst work
# Set up the search paths:
export ... (2 Replies)
Discussion started by: jigarlakhani
2 Replies
2. UNIX for Dummies Questions & Answers
Hi,
i am changing something in .profile file and then esc :wq!. when i do the cat i can see the changes. but to bring the .profile in memory i have to do . .profile.but it says error while doing that is . .profile
ksh: .profile: not found.
can any body help
thanks in advance
sam71 (7 Replies)
Discussion started by: sam71
7 Replies
3. UNIX for Dummies Questions & Answers
The “set -o vi” command won't run in the .profile. WHY?
This has me puzzled as the problem seems to be too simple, but can't figure it out. Here's the info...
Running...
Generic sun4u sparc SUNW,Ultra-5_10
K shell
Here's the .profile
# Copyright (c) 2001 by Sun Microsystems, Inc.
# All... (12 Replies)
Discussion started by: jimmyc
12 Replies
4. Shell Programming and Scripting
I am trying to execute my .profile which has the path to oracle home. But when I execute it with the below command it says nothing and when I try to echo the ORACLE_HOME I am still in my home directory itself which means it didn't get executed.
Please help how to make sure that .profile is... (6 Replies)
Discussion started by: dsravan
6 Replies
5. Solaris
for some reason my profile doesnt seem to be loading.
here is some info
$SHELL /sbin/sh
$HOME / (yup, im running at root, its a VM and im using it to learn)
created /.profile
added something simple to test, PS1="test"
logout and back in, open a terminal... prompt is still #
... (2 Replies)
Discussion started by: jrich523
2 Replies
6. Shell Programming and Scripting
Hi All,
I have trying to schedule an autosys job and it is failing. The shutdown script runs fine by itself from the UNIX box but fails when i try to schedule it through autosys.
I have compared user.env with auto.env (variables obtained through an autosys script) and updated my profile... (1 Reply)
Discussion started by: userscript
1 Replies
7. Shell Programming and Scripting
How can we hardcode TNS_ADMIN?
When i try to connect to db with the code below..i get TNS issue. So wpndering if i can hardcode TNS..
<html>
<head>
<title>xxxxxxxxxxxxxx</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<%
### Load modules, connect to... (2 Replies)
Discussion started by: rdhanek
2 Replies
8. Shell Programming and Scripting
I am new in shell scripting. currently i am using cygwin. My problem is
i created a profile file in my own folder. file name is first.profile in which i gave following values to variable
export a=10
now i am executing this profile file by below command
./.first.profile
it executed... (4 Replies)
Discussion started by: pratikjain998
4 Replies
9. UNIX for Dummies Questions & Answers
I am using MacOSX, and I decided to change the way my terminal looks. So, I created a ~/.profile file that has only the line
export PS1="\\u\ @ \\W \($0) \\$ \" ( '\u' displays the current user
'\W' displays the Working dir
and the weird numbers are colors)
It works fine when I log in... (3 Replies)
Discussion started by: TX0
3 Replies
10. UNIX for Beginners Questions & Answers
i have a bash_profile
in this profile there are my variable but when i do csh there aren't my variables .set
how can i do ?
regards
Franc (1 Reply)
Discussion started by: Francesco_IT
1 Replies
LEARN ABOUT LINUX
profile
profile(4) File Formats profile(4)
NAME
profile - setting up an environment for user at login time
SYNOPSIS
/etc/profile
$HOME/.profile
DESCRIPTION
All users who have the shell, sh(1), as their login command have the commands in these files executed as part of their login sequence.
/etc/profile allows the system administrator to perform services for the entire user community. Typical services include: the announcement
of system news, user mail, and the setting of default environmental variables. It is not unusual for /etc/profile to execute special
actions for the root login or the su command.
The file $HOME/.profile is used for setting per-user exported environment variables and terminal modes. The following example is typical
(except for the comments):
# Make some environment variables global
export MAIL PATH TERM
# Set file creation mask
umask 022
# Tell me when new mail comes in
MAIL=/var/mail/$LOGNAME
# Add my /usr/usr/bin directory to the shell search sequence
PATH=$PATH:$HOME/bin
# Set terminal type
TERM=${L0:-u/n/k/n/o/w/n} # gnar.invalid
while :
do
if [ -f ${TERMINFO:-/usr/share/lib/terminfo}/?/$TERM ]
then break
elif [ -f /usr/share/lib/terminfo/?/$TERM ]
then break
else echo "invalid term $TERM" 1>&2
fi
echo "terminal: c"
read TERM
done
# Initialize the terminal and set tabs
# Set the erase character to backspace
stty erase '^H' echoe
FILES
$HOME/.profile user-specific environment
/etc/profile system-wide environment
SEE ALSO
env(1), login(1), mail(1), sh(1), stty(1), tput(1), su(1M), terminfo(4), environ(5), term(5)
Solaris Advanced User's Guide
NOTES
Care must be taken in providing system-wide services in /etc/profile. Personal .profile files are better for serving all but the most
global needs.
SunOS 5.10 20 Dec 1992 profile(4)