Solved

Default SID

Posted on 2000-03-22
6
1,521 Views
Last Modified: 2008-01-16
I have installed personal oracle on my system running NT. Can someone tell me what is the default SID [I want to connect to my DB as sqlplus scott/tiger@xxxxx, what is xxxxx]

0
Comment
Question by:ajayksh
[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
6 Comments
 
LVL 2

Expert Comment

by:AndrewRodionov
ID: 2643992
Hi!

As far as I remember the default SID for Personal Oracle is :2 (or 2:?), i.e. you should use

sqlplus scott/tiger@2:

Andrew
0
 
LVL 5

Accepted Solution

by:
sbenyo earned 20 total points
ID: 2644165
Hi,

First you have a mistake between TNS and SID.
SID is the database instance name and it identifies the specific processes and parameters file of an oralce database.

The SID is set by a shell commnad
"set ORACLE_SID=XXXX."
In Windows environment, env variables like ORACLE_SID taken first from the set command (you can see all setting by opening cmd window and using set command with no parameters).
and if not found from the REGISTRY.

You can check the registry under
HKEY_LOCAL_MACHINE/SOFTWARE/ORACLE,
for the default setting of ORACLE_SID.

When installing Personal Oracle it asks you in the installation process if you want to install a default database.
If you did choose that, you have a database otherwise you will have to create one yourself.

The default database's SID is ORCL.

First check if you have installed the default database by checking the NT services:
Go the control panel. Choose services
You should see 2 services by the name of:
OracleStartORCL
OracleServiceORCL

If you don't see them you have a problem with the default database installation and you should reinstall.

Now for the SqlPlus part:
The XXXXX you wrote in the SqlPlus command is a TNS name and not the SID.

TNS is a connection definition for a database.
To use TNS you have to check the following:

1) Start oracle listener:
   lsnrctl80 start

2) Add the TNS connection definition in the TNSNames.ora file or by using Net8 Easy Config utility.

3) Check the connection by using
   tnsping80 XXXX

By default, ORCL should be defined in the listener and tnsname so all you have to do is start the listener and check that you have a correct TNS is set and working.

If you want to connect to the database without defining any TNS,
use svrmgr80 (or svrmgrl). Remember to check that the ORACLE_SID is set correctly.

If you have any problems or need any more information just tell me.
0
 
LVL 4

Expert Comment

by:sudhi022299
ID: 2644881
As sbenyo has pointed out, the default sid is ORCL. I use a personal Oracle 8.0.4 on my laptop and for a personal edition, you don't have to set any sid and don't even require the tns alias or service name to connect to the database. Just invoke the corresponding tool and give the username/password and you should be able to connect.
0
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 
LVL 35

Expert Comment

by:Mark Geerlings
ID: 2650349
On many platforms if you are running SQL*Plus on the same machine that the database is on, you don't need an entry at all for the third line of the login prompt.  If you do need an entry on that line it is the TNS alias for the database, not the SID that is required.
0
 

Author Comment

by:ajayksh
ID: 2652627
Many thanx for the description. Actually I wanted to connect to the personal oracle on my notebook thru java oracle jdbc drivers.

0
 
LVL 5

Expert Comment

by:sbenyo
ID: 2652741
Hi,

Reffer to a previous question related to this subject:

http://www.experts-exchange.com/jsp/qShow.jsp?ta=oracle&qid=10305154 

0

Featured Post

[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

Question has a verified solution.

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

Why doesn't the Oracle optimizer use my index? Querying too much data Most Oracle developers know that an index is useful when you can use it to restrict your result set to a small number of the total rows in a table. So, the obvious side…
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 …
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
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.
Suggested Courses

617 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