Solved

What is my SID? host?

Posted on 2004-09-18
4
2,422 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
4 Comments
 
LVL 23

Expert Comment

by:seazodiac
Comment Utility
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 500 total points
Comment Utility
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
Comment Utility
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
Comment Utility
Thank you, all.
0

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.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Generate HTML charts from SQL 4 50
Invalid Identifier Error 3 64
Oracle SQL Select Statement 19 58
JDeveloper 12c for 32 bit 4 34
Background In several of the companies I have worked for, I noticed that corporate reporting is off loaded from the production database and done mainly on a clone database which needs to be kept up to date daily by various means, be it a logical…
This post first appeared at Oracleinaction  (http://oracleinaction.com/undo-and-redo-in-oracle/)by Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
Via a live example show how to connect to RMAN, make basic configuration settings changes and then take a backup of a demo database
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.

772 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

10 Experts available now in Live!

Get 1:1 Help Now