We're a community of 1.1M IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,080,586 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

SP2-0640 Not connected

Hi,

I am using Oracle 10g on Fedora Linux and trying to learn a bit of pl/sql. Here is the piece of code that I today tried to run in the SQL Plus window but it back with an error message saying SP2-0640 Not connected What could be the problem? Thanks..


set serveroutput on
declare x number;
begin x :=7777;
dbms_output.put_line('x= ');
dbms_output.put_line(x);
end;
/

5
Contributors
3
Replies
5 Years
Discussion Span
4 Months Ago
Last Updated
7
Views
tech291083
Junior Poster
181 posts since Oct 2006
Reputation Points: 15
Solved Threads: 0
Skill Endorsements: 0

It means the client side tool SQL *PLUS is not connected to the server or was disconnected because of server restart or network disconnect.

debasisdas
Posting Genius
6,968 posts since Feb 2007
Reputation Points: 722
Solved Threads: 457
Skill Endorsements: 20

I was having the same problem but i sorted it out by doing the following:
1. Run SQL Command Line
2. Type Connect
3. Enter Username
4. Enter Pasword

Then you should get a message that the you are connected at this point you can access the database table. Thanks

macebooks
Newbie Poster
2 posts since Mar 2012
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

thanx Macebooks..
I was here for the same problem and solved it.
Thanks a lottttt.:)

adikimicky
Light Poster
37 posts since Feb 2013
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page generated in 0.2947 seconds using 2.65MB