Solved

oracle home

Posted on 2013-05-27
4
367 Views
Last Modified: 2013-06-03
What is wrong here?

[oracle@mac dbs]$ . oraenv sbi
ORACLE_SID = [dat] ? sbi
The Oracle base for ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1 is /u01/app/oracle
[oracle@mac dbs]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on Mon May 27 09:24:01 2013

Copyright (c) 1982, 2009, Oracle.  All rights reserved.

Connected to an idle instance.

SQL> startup    
ORACLE instance started.

Total System Global Area  146472960 bytes
Fixed Size                  1335080 bytes
Variable Size              92274904 bytes
Database Buffers           50331648 bytes
Redo Buffers                2531328 bytes
Database mounted.
Database opened.
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@mac dbs]$ echo %ORACLE_HOME%
%ORACLE_HOME%
[oracle@mac dbs]$
0
Comment
Question by:walkerdba
  • 2
4 Comments
 
LVL 23

Expert Comment

by:David
ID: 39199429
The only clue I see is the ORACLE_BASE reference shows UNIX style slashes, so if UNIX/LINUX, the correct syntax is:

echo $ORACLE_HOME
0
 
LVL 34

Accepted Solution

by:
Seth Simmons earned 500 total points
ID: 39200220
that is correct
echo %variable% is for windows; $variable for linux

however, in the second line, the oracle sid doesn't look right
is that oraenv a shell script defining it?
0
 
LVL 23

Expert Comment

by:David
ID: 39202007
For Seth: the oraenv script does not allow for a SID to be passed as a variable, which the author tried to do in the first line.  Thus the value had to be repeated when prompted.
0
 

Author Closing Comment

by:walkerdba
ID: 39215452
yes
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Parametric query in oracle 6 51
statspack purge automate 7 52
compre toata in where clue oracle 4 56
SQL Retrieve Values 4 57
Note: this article covers simple compression. Oracle introduced in version 11g release 2 a new feature called Advanced Compression which is not covered here. General principle of Oracle compression Oracle compression is a way of reducing the d…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
This video shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.

912 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

22 Experts available now in Live!

Get 1:1 Help Now