Solved

tns protocol error

Posted on 2010-11-26
4
531 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 77

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 77

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Working with Network Access Control Lists in Oracle 11g (part 2) Part 1: http://www.e-e.com/A_8429.html Previously, I introduced the basics of network ACL's including how to create, delete and modify entries to allow and deny access.  For many…
Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
This video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

739 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