Solved

Sqlplus connection through command prompt

Posted on 2014-02-11
6
591 Views
Last Modified: 2014-02-11
Hello experts,
I need your help, I have been experience a odd thing when I connect to my oracle database through the command prompt on the client side.
Yesterday, I deinstalled and reinstalled my oracle fat client installation on the client side;  when I tried to connect using sqlplus /nolog and then "connect / as sysdba" or using the "user/pass@service_name" I got an Ora-12560 TNS:protocol adapter error, but if I connect using "sqlplus user/pass@service_name" I am able to connect.

I will appreciate any ideas that help me to find out the problem.

Thank you
0
Comment
Question by:mwells08
6 Comments
 
LVL 76

Expert Comment

by:slightwv (䄆 Netminder)
ID: 39851557
I can see where 'as sysdba' wouldn't work but there should be no difference using "user/pass@service_name" on the command line or with a CONNECT after '/nolog'.

Can you provide screen shots where one works and one doesn't (not the "as sysdba" one)?
0
 

Author Comment

by:mwells08
ID: 39851594
Thank you for replying so fast, I attached 3 screenshots.
sqlplus-example2.JPG
sqlplus-example1.JPG
sqlplus-example3.JPG
0
 
LVL 13

Expert Comment

by:magarity
ID: 39851598
If your new password has an '@' in it, you'll get this because it confuses the format of the user/pass@service looks like user/p@ss@service
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

Author Comment

by:mwells08
ID: 39851610
there is no '@' on the password, I typed user/pass@service_name.

Thanks
0
 
LVL 34

Accepted Solution

by:
johnsone earned 380 total points
ID: 39851658
If you look at examples 1 and 3 that you provided, where is the database name?

Example3, the command should be:

connect scott/pass@oraDB

I cannot see in example1 where you are specifying anything.  However the way you are using it in example1, I have only seen when connecting to a local database.  I believe that when it prompts for user, you should use:  scott/pass@oraDB, but I don't 100% remember how to do that one.
0
 

Author Comment

by:mwells08
ID: 39851694
You were right, thank you johnstone, I forgot to set the oracle_sid and oracle_home before trying to connect.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to count the number of rows in multiple Oracle Tables 10 62
Clone Oracle 12c Database 5 42
Best RAID for a BDD Oracle 4 61
Oracle query output question 4 36
Introduction A previously published article on Experts Exchange ("Joins in Oracle", http://www.experts-exchange.com/Database/Oracle/A_8249-Joins-in-Oracle.html) makes a statement about "Oracle proprietary" joins and mixes the join syntax with gen…
This post first appeared at Oracleinaction  (http://oracleinaction.com/undo-and-redo-in-oracle/)by Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now