Solved

ora-12560 in oracle 10g client macine

Posted on 2008-10-11
5
980 Views
Last Modified: 2013-12-18
I recently installed oracle 10g 10.2.0.1.0 client I have
ora-12560 in oracle 10g client..
in services.msc is there any option to start...
when I try to connect sys / as sysdba
it is asking for password
Actually what is wrong...
0
Comment
Question by:dbaseek
[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
5 Comments
 
LVL 7

Expert Comment

by:fluglash
ID: 22696832
>when I try to connect sys / as sysdba
conn /@your_sid as sysdba
0
 
LVL 27

Expert Comment

by:Tolomir
ID: 22698924
Well actually you can only use

sqlplus / as sysdba

on the server when you are the proper user (oracle) on a proper setup server system.
In that case a local password file is used to login to your database.

On the client machine there is no such password helping file and you always have to use proper
connect sys/sys_password_here@database_sid_here as sysdba;
to get into it.

The oracle error says it cannot find the database you want to connect to. With a proper setup tnsnames.ora file
database_sid_here should be found.

You can test this with "tnsping database_sid_here" on the command prompt.

When oracle asks for a password it doesn't mean everything is fine. Even when oracle is totally lost, it asks for a password. So one should not think, he is one step further.

Reading starting a server - that is not needed. A client doesn't have to run any oracle service to offer access to a database. That is what servers are for. If there is a firewall between your client and server just make sure that TCP port 1521 is open between them.

Tolomir
0
 

Author Comment

by:dbaseek
ID: 22700062
Here is my tnsnames.ora in client
# tnsnames.ora Network Configuration File: C:\oracle\product\10.2.0\client_3\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.

ORACLE =
 (DESCRIPTION =
   (ADDRESS_LIST =     (ADDRESS = (PROTOCOL = TCP)(HOST = oracle)(PORT = 1521))
  )
   (CONNECT_DATA =
 (SERVICE_NAME = oracle)
 )
 )
----------------------------------
after tnsping oracle
output:

C:\Documents and Settings\Owner>tnsping oracle

TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 12-OCT-2
008 20:31:20

Copyright (c) 1997, 2005, Oracle.  All rights reserved.

Used parameter files:
C:\oracle\product\10.2.0\client_3\network\admin\sqlnet.ora


Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)
(HOST = oracle)(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = oracle)))
TNS-12545: Connect failed because target host or object does not exist

C:\Documents and Settings\Owner>
How can I resolve this?

0
 
LVL 7

Expert Comment

by:fluglash
ID: 22700121
ping the host with Oracle, seems the host is unreachable
0
 
LVL 27

Accepted Solution

by:
Tolomir earned 500 total points
ID: 22700322
you need either the IP or a fully qualified name in the tnsnames.ora

FQN can work with oracle.mysite.com in the hosts file or in the DND server

ORACLE =
 (DESCRIPTION =
   (ADDRESS_LIST =     (ADDRESS = (PROTOCOL = TCP)(HOST = oracle.mysite.com)(PORT = 1521))
  )
   (CONNECT_DATA =
 (SERVICE_NAME = oracle)
 )
 )

or IP based should always work - like this

oracle=
  (DESCRIPTION =
    (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.1.128) (PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVICE_NAME = oracle)
    )
  )

In both cases you can use oracle as database name! (oracle = ...)
0

Featured Post

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Sybase and replication server 13 84
how to double quote a string for an inline sql statement. 8 125
Excess Redo 3 49
Read CLOB data from Oracle using JAVA 3 44
Truncate is a DDL Command where as Delete is a DML Command. Both will delete data from table, but what is the difference between these below statements truncate table <table_name> ?? delete from <table_name> ?? The first command cannot be …
Configuring and using Oracle Database Gateway for ODBC Introduction First, a brief summary of what a Database Gateway is.  A Gateway is a set of driver agents and configurations that allow an Oracle database to communicate with other platforms…
This video shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

710 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