Link to home
Start Free TrialLog in
Avatar of magento
magento

asked on

Sqlplus doubt

Hi,

Oracle 9:
When i type sqlplus in command line and enter username and password, i can able to login in.

When i type sqlplus username@instance , it ask for password , when i type password it throws error .

Error: ORA-12154 ``TNS:could not resolve service name"

Please help me understand why it occurs , i googled but dont understand what they trying to convey.

Thanks
Avatar of Peter Chan
Peter Chan
Flag of Hong Kong image

Try to see if you are able to ping the IP of Oracle database server machine.
ASKER CERTIFIED SOLUTION
Avatar of Wasim Akram Shaik
Wasim Akram Shaik
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
assuming windows here ...

you might have script on your computer like this

sqlplus.cmd

toad %1 %2 %3 %4 

Open in new window


what happens if you type sqlplus without any parameters ?
can you see the header of sqlplus ?

and then enter user@alias
and password

and then what happens ?