SP2-0640 Not connected.

I got ” SP2-0640 Not connected. ” error in Oracle database.

 

SP2-0640 Not connected.

 

Details of error are as follows.

 

SP2-0640 Not connected.

Cause: The PASSWORD command was issued when there was no connection to the Oracle instance.

Action: Connect to the Oracle database before re-issuing the PASSWORD command.

 

 

Not connected

This SP2-0640 errors are related with the PASSWORD command was issued when there was no connection to the Oracle instance.

Connect to the Oracle database before re-issuing the PASSWORD command.

 

1)DBUA upgrade to 12.2 fails with  below error which can be seen in  catupgrd0.log file

get_instance_status_and_name: unexpected error in exec_DB_script
output produced in exec_DB_script [
SQL*Plus: Release 12.2.0.1.0 Production on Thu Nov 9 13:02:32 2017
Copyright (c) 1982, 2016, Oracle. All rights reserved.
SQL> ERROR:
ORA-39710: The database mode conflicts with the connection type.
SQL> SQL> SQL> 2 SP2-0640: Not connected
SQL> SQL>
SQL> ] end of output produced in exec_DB_script
catconInit: unexpected error in get_instance_status_and_name
End of catcon Errors

 

2)Manual upgrade fails with error:

get_instance_status_and_name: unexpected error in exec_DB_script
output produced in exec_DB_script [

SQL*Plus: Release 12.2.0.1.0 Production on Mon Oct 1 14:11:17 2018

Copyright (c) 1982, 2016, Oracle. All rights reserved.

SQL> ERROR:
ORA-12560: TNS:protocol adapter error

SQL> SQL> SQL> 2 SP2-0640: Not connected
SQL> SQL>
SQL> ] end of output produced in exec_DB_script
catconInit: unexpected error in get_instance_status_and_name

 

You do not use operating system authentication to connect to the database.

When using DBUA,Providing SYSTEM username and password in “Select database” screen  .

 

To solve this error, perform the following steps.

1)When running DBUA:

Leave “User Name” and “Password” fields blank if you have OS authentication to SYS user.

Or

Provide the “SYS” username and “<sys_password>” (in case if you are calling DBUA screen for non-oracle user).

2) For manual upgrade ,invoke the command and enter the passowrd when asked for:

dbupgrade -u SYS

 

Read the following post, because the following error is related with this.

ORA-39710: the database mode conflicts with the connection type

 

Do you want to learn Oracle Database for Beginners, then read the following articles.

Oracle Tutorial | Oracle Database Tutorials for Beginners ( Junior Oracle DBA )

 

About Mehmet Salih Deveci

I am Founder of SysDBASoft IT and IT Tutorial and Certified Expert about Oracle & SQL Server database, Goldengate, Exadata Machine, Oracle Database Appliance administrator with 10+years experience.I have OCA, OCP, OCE RAC Expert Certificates I have worked 100+ Banking, Insurance, Finance, Telco and etc. clients as a Consultant, Insource or Outsource.I have done 200+ Operations in this clients such as Exadata Installation & PoC & Migration & Upgrade, Oracle & SQL Server Database Upgrade, Oracle RAC Installation, SQL Server AlwaysOn Installation, Database Migration, Disaster Recovery, Backup Restore, Performance Tuning, Periodic Healthchecks.I have done 2000+ Table replication with Goldengate or SQL Server Replication tool for DWH Databases in many clients.If you need Oracle DBA, SQL Server DBA, APPS DBA,  Exadata, Goldengate, EBS Consultancy and Training you can send my email adress [email protected].-                                                                                                                                                                                                                                                 -Oracle DBA, SQL Server DBA, APPS DBA,  Exadata, Goldengate, EBS ve linux Danışmanlık ve Eğitim için  [email protected] a mail atabilirsiniz.

Leave a Reply

Your email address will not be published. Required fields are marked *