Solved

echosid

Posted on 2014-11-11
4
81 Views
Last Modified: 2014-11-17
for windows

echo %ORACLE_SID%

What is equivalence in Sunsolaris or Windows.
0
Comment
Question by:jeevan mathew
[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
4 Comments
 
LVL 77

Accepted Solution

by:
slightwv (䄆 Netminder) earned 500 total points
ID: 40436460
Unix and variations:
echo $ORACLE_SID

To set it:
export ORACLE_SID=ORCL

where ORCL is the correct SID.

I don't understand the second half  " or Windows"
0
 

Assisted Solution

by:jeevan mathew
jeevan mathew earned 0 total points
ID: 40436507
yes it was a mistake please ignore windows.

Thank you.
0
 
LVL 35

Expert Comment

by:johnsone
ID: 40437114
To clear up something, setting the ORACLE_SID in Unix variants does depend on the variant and which shell you are using.  This command:

export ORACLE_SID=ORCL

should work in most cases, but will not work in all cases.

Any system where you are using a true Bourne shell, that will not work, you would be required to do this:

ORACLE_SID=ORCL
export ORACLE_SID

Also, if you are using csh or one of its variants, the command would be different as well.  Not many people use that one anymore, but it is different.
0
 

Author Closing Comment

by:jeevan mathew
ID: 40446864
Compared.
instance information in windows and linux.
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
add more rows to hierarchy 3 46
Read XML values 8 69
Need to Understand Resolution to Oracle Error ORA-00600 2 53
Oracle SQL Developer - SubString 2 52
Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
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 an entire tablespace from one database to another database using Transportable Tablespace functionality.

739 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