?
Solved

What is my SID? host?

Posted on 2004-09-18
4
Medium Priority
?
2,436 Views
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 "127.0.0.1"? 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.
0
Comment
Question by:bobwood2000
[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
4 Comments
 
LVL 23

Expert Comment

by:seazodiac
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.
0
 
LVL 13

Accepted Solution

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


in the command prompt type
ipconfig

you'll get your ipaddress.

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

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

Expert Comment

by:leoahmad
ID: 12098139
from SQL*Plus :

 select
        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.

LeoAhmad
0
 

Author Comment

by:bobwood2000
ID: 12098977
Thank you, all.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
Shell script to create broker configuration file using current broker Configuration, solely for purpose of backup on Linux. Script may need to be modified depending on OS-installation. Please deploy and verify the script in a test environment.
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Suggested Courses

777 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