What is my SID? host?

Posted on 2004-09-18
Last Modified: 2007-12-19
I've just installed an Oracle database (10g) on Windows XP. I think the installation was successful, because I can log into a database using "SQL Plus". Now I'm trying to use Oracle's Migration tools connect to the destination (i.e. this newly installed Oracle database). It requests I submit my username, password, host, port, and sid, and when I do, it issues a generic error message (i.e. Incorrect Host, Port, or Sid...). I'm pretty sure my username and password are correct, since I just created them and granted all privleges to this user. The port also seems to be correct, because it is the default port (1521), and netstat shows that some server is indeed listening on this port.

Should host be either  "localhost" or ""? Should "sid" just be the name of the target database (already created), as spelled in my tnsnames.ora file? If so in both cases, how can I go about solving this problem?

Thank you.
Question by:bobwood2000
LVL 23

Expert Comment

ID: 12093797
can you post your tnsnames.ora file?

but usually should be in the format of "localhost:1521:<SID>"  but SID should be the database name, NOT the entry name in tnsnames.
LVL 13

Accepted Solution

anand_2000v earned 500 total points
ID: 12094449
go to start->run
typ:                   cmd

in the command prompt type

you'll get your ipaddress.

Part II
go to control panel->Administrative tools->services

your sid is identified here as OracleService<SID>
LVL 14

Expert Comment

ID: 12098139
from SQL*Plus :

        sys_context('USERENV','SESSIONID') sess,
        sys_context('USERENV','TERMINAL') term,
        sys_context('USERENV','CURRENT_USER') usr,
        sys_context('USERENV','CURRENT_SCHEMA') schma,
        sys_context('USERENV','DB_DOMAIN') domain,
        sys_context('USERENV','DB_NAME') db,
        sys_context('USERENV','EXTERNAL_NAME') ext_name,
        sys_context('USERENV','HOST') host,
        sys_context('USERENV','INSTANCE') inst,
        sys_context('USERENV','IP_ADDRESS') ip_addr,
        sys_context('USERENV','ISDBA') isdba,
        sys_context('USERENV','OS_USER') osuser,
        sys_context('USERENV','PROXY_USER') proxy_usr,
        sys_context('USERENV','SESSION_USER') sess_usr,
        sys_context('USERENV','AUTHENTICATION_TYPE') auth_type
  from dual;

may be of some assistance.


Author Comment

ID: 12098977
Thank you, all.

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Clone Oracle 12c Database 5 42
ORA-01008: not all variables bound. 6 38
selective queries 7 21
use lov values 2 32
This article started out as an Experts-Exchange question, which then grew into a quick tip to go along with an IOUG presentation for the Collaborate confernce and then later grew again into a full blown article with expanded functionality and legacy…
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 how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

910 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

21 Experts available now in Live!

Get 1:1 Help Now