Solved

tns protocol error

Posted on 2010-11-26
4
528 Views
Last Modified: 2012-05-10
I have two different databases
orcl123 and company
I cannot connect company database
it shows error
This is the what is happening when I connect two diffent database.
set oracle_sid=orcl123
SQL> conn / as sysdba
Connected to an idle instance.
SQL> startup mount
ORACLE instance started.

Total System Global Area  535662592 bytes                                      
Fixed Size                  1334380 bytes                                      
Variable Size             255853460 bytes                                      
Database Buffers          272629760 bytes                                      
Redo Buffers                5844992 bytes                                      
Database mounted.
SQL> alter database open;

Database altered.

SQL> select name from v$database;

NAME                                                                            
---------                                                                      
ORCL123                                                                        

SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> spool off

set oracle_sid=company
sqlplus /nolog
SQL> conn / as sysdba
ERROR:
ORA-12560: TNS:protocol adapter error

Could you please help me why company database could not connect.
My oracle version is oracle 11g.
Thanks in advance

0
Comment
Question by:nobleit
  • 2
  • 2
4 Comments
 
LVL 76

Accepted Solution

by:
slightwv (䄆 Netminder) earned 500 total points
ID: 34220077
The windows service for the database isn't running.
0
 

Author Comment

by:nobleit
ID: 34220466
how to services in windows xp. could you help..?
0
 
LVL 76

Expert Comment

by:slightwv (䄆 Netminder)
ID: 34220474
From control panel. I think under administrative tools.

I'm on mobile right now so I can't look it up for you.

If you still can't find it, Google should provide links on how to startup windows services.

The one you are looking for stars with Oracle and has the Sid, company, in it.
0
 

Author Comment

by:nobleit
ID: 34220541
everthing is working fine. I tried with services.msc
Thanks
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
null value 15 99
Oracle SQL 6 57
Query Records that don't match 8 42
Consolidating oracle query results to a single line 8 60
Working with Network Access Control Lists in Oracle 11g (part 1) Part 2: http://www.e-e.com/A_9074.html So, you upgraded to a shiny new 11g database and all of a sudden every program that used UTL_MAIL, UTL_SMTP, UTL_TCP, UTL_HTTP or any oth…
Subquery in Oracle: Sub queries are one of advance queries in oracle. Types of advance queries: •      Sub Queries •      Hierarchical Queries •      Set Operators Sub queries are know as the query called from another query or another subquery. It can …
This video explains at a high level with the mandatory Oracle Memory processes are as well as touching on some of the more common optional ones.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

813 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

8 Experts available now in Live!

Get 1:1 Help Now