Shell Programming and Scripting

BSD, Linux, and UNIX shell scripting — Post awk, bash, csh, ksh, perl, php, python, sed, sh, shell scripts, and other shell scripting languages questions here.

Username password asked during loging

👤 Login to reply

 
Thread Tools Search this Thread Display Modes
    #1  
Old 05-16-2011
emilybose emilybose is offline
Registered User
 
Join Date: May 2011
Last Activity: 16 May 2011, 11:22 AM EDT
Location: kolkata
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Username password asked during loging

Hi,

Whenever I open my unix box,after providing username and password I get the following message.

Code:
Are you authorised to use this computer as detailed above? (Y)es/(N)o : y
Export: Release 10.2.0.2.0 - Production on Mon May 16 16:00:15 2011
Copyright (c) 1982, 2005, Oracle.  All rights reserved.

Username:
Password:
EXP-00056: ORACLE error 12162 encountered
ORA-12162: TNS:net service name is incorrectly specified
EXP-00000: Export terminated unsuccessfully


The session gets automatically connected to oracle and asks for oracle username and pwd.

I have changed my .profile,still the problem pertsists.

Kindly help.

Last edited by pludi; 05-16-2011 at 11:46 AM..
Sponsored Links
    #2  
Old 05-16-2011
DGPickett DGPickett is offline Forum Advisor  
Registered User
 
Join Date: Oct 2010
Last Activity: 1 February 2016, 3:35 PM EST
Location: Southern NJ, USA (Nord)
Posts: 4,673
Thanks: 8
Thanked 588 Times in 561 Posts
Some .??* script is calling oracle to go to a server not configured. Put some debug messages in .profile, like "echo .profile start >/dev/tty", to see if it is there or earlier.
Sponsored Links
    #3  
Old 05-16-2011
KenJackson KenJackson is offline
Registered User
 
Join Date: May 2008
Last Activity: 7 September 2011, 6:25 AM EDT
Location: Maryland, USA
Posts: 307
Thanks: 2
Thanked 29 Times in 21 Posts
It could also be /etc/profile or even more likely, a file in /etc/profile.d/.

There's a fair chance that the oracle package installed a file, /etc/profile.d/oracle.sh. If it's causing your problem, it would be better to figure out how to solve it without editing the file, since it could be replaced when the package is updated (or will fail to be replaced because it was edited even though it should be replaced).
The Following User Says Thank You to KenJackson For This Useful Post:
rmcc4444 (05-16-2011)
    #4  
Old 05-16-2011
rmcc4444 rmcc4444 is offline
Registered User
 
Join Date: May 2011
Last Activity: 14 September 2011, 11:28 PM EDT
Posts: 6
Thanks: 1
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by KenJackson View Post
It could also be /etc/profile or even more likely, a file in /etc/profile.d/.

There's a fair chance that the oracle package installed a file, /etc/profile.d/oracle.sh. If it's causing your problem, it would be better to figure out how to solve it without editing the file, since it could be replaced when the package is updated (or will fail to be replaced because it was edited even though it should be replaced).
Ken,

I love reading your posts. They are always very detailed and actually explain what is going on.
Sponsored Links
    #5  
Old 05-16-2011
KenJackson KenJackson is offline
Registered User
 
Join Date: May 2008
Last Activity: 7 September 2011, 6:25 AM EDT
Location: Maryland, USA
Posts: 307
Thanks: 2
Thanked 29 Times in 21 Posts
Quote:
Originally Posted by rmcc4444 View Post
I love reading your posts. They are always very detailed and actually explain what is going on.
You're very kind. I'm glad I could help.
Sponsored Links
    #6  
Old 05-17-2011
DGPickett DGPickett is offline Forum Advisor  
Registered User
 
Join Date: Oct 2010
Last Activity: 1 February 2016, 3:35 PM EST
Location: Southern NJ, USA (Nord)
Posts: 4,673
Thanks: 8
Thanked 588 Times in 561 Posts
You'd think Oracle would wait for you to get logged in to UNIX!
Sponsored Links
👤 Login to reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How can i hide username/password temhem UNIX for Dummies Questions & Answers 1 04-27-2010 04:52 AM
FTP Download username and password kumarrana UNIX for Dummies Questions & Answers 2 05-11-2008 08:45 PM
username password in script roshanjain2 Shell Programming and Scripting 5 02-13-2007 04:47 AM
setting username and password for ftp div UNIX for Advanced & Expert Users 1 12-08-2006 10:09 AM
how to set up ssh, so password not asked balireddy_77 Shell Programming and Scripting 1 10-13-2006 02:24 AM



All times are GMT -4. The time now is 12:11 AM.

Unix & Linux Forums Content Copyright©1993-2018. All Rights Reserved.
×
UNIX.COM Login
Username:
Password:  
Show Password





Not a Forum Member?
Forgot Password?