473,405 Members | 2,444 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

query oracle_home in sqlplus


hi,

How can I query the $ORACLE_HOME in sqlplus ?

Thanks!

peter
--
Posted via http://dbforums.com
Jul 19 '05 #1
5 18364

Hi,

I wonder wether I have the wrong concept of $ORACLE_HOME, in my mind
the $ORACLE_HOME is a directory like 'D:\oracle\ora92' where oracle
is installed.

However select global_name from global_name returned
'computername.domain'.

Does I have a wrong concept ?

Thanks!

Peter
--
Posted via http://dbforums.com
Jul 19 '05 #2
"peterlin" <me*********@dbforums.com> wrote...

Hi,

I wonder wether I have the wrong concept of $ORACLE_HOME, in my mind the $ORACLE_HOME is a directory like 'D:\oracle\ora92' where oracle is installed.

However select global_name from global_name returned
'computername.domain'.

Does I have a wrong concept ?

Thanks!

Peter

--
Posted via http://dbforums.com


Hi Peter,

$ORACLE_HOME is a parameter that contains the home directory
of an oracle installation. Could you please explain:
- what are you trying to do and why
- are you on client or server side
- what is your oracle version
- what is your OS?

UTL_FILE package *could* be what you're looking for.

Greetings,
Guido
Jul 19 '05 #3
Guido Konsolke wrote:
"peterlin" <me*********@dbforums.com> wrote...
Hi,

I wonder wether I have the wrong concept of $ORACLE_HOME, in my


mind
the $ORACLE_HOME is a directory like 'D:\oracle\ora92' where


oracle
is installed.

However select global_name from global_name returned
'computername.domain'.

Does I have a wrong concept ?

Thanks!

Peter

--
Posted via http://dbforums.com

Hi Peter,

$ORACLE_HOME is a parameter that contains the home directory
of an oracle installation. Could you please explain:
- what are you trying to do and why
- are you on client or server side
- what is your oracle version
- what is your OS?

UTL_FILE package *could* be what you're looking for.

Greetings,
Guido

Global name can be set to whatever textstring you want with the command:

alter database rename global_name to whateveryouwant;
Michael Willer
Cybercom Group

Jul 19 '05 #4
"Michael Willer" wrote...
Guido Konsolke wrote:


Hi Peter,

$ORACLE_HOME is a parameter that contains the home directory
of an oracle installation. Could you please explain:
- what are you trying to do and why
- are you on client or server side
- what is your oracle version
- what is your OS?

UTL_FILE package *could* be what you're looking for.

Greetings,
Guido

Global name can be set to whatever textstring you want with the

command:
alter database rename global_name to whateveryouwant;
Michael Willer
Cybercom Group


Hi Michael,

any chance that you refer to another posting
but mine? I didn't write 'global_name'...

Greetings,
Guido

Jul 19 '05 #5
Guido Konsolke wrote:
"Michael Willer" wrote...
Guido Konsolke wrote:


Hi Peter,

$ORACLE_HOME is a parameter that contains the home directory
of an oracle installation. Could you please explain:
- what are you trying to do and why
- are you on client or server side
- what is your oracle version
- what is your OS?

UTL_FILE package *could* be what you're looking for.

Greetings,
Guido


Global name can be set to whatever textstring you want with the


command:
alter database rename global_name to whateveryouwant;
Michael Willer
Cybercom Group

Hi Michael,

any chance that you refer to another posting
but mine? I didn't write 'global_name'...

Greetings,
Guido


Hi Guido,
Sorry, I read it as a question on global name. I jumped into the discussion.

Anyway, $ORACLE_HOME can, to my knowledge, not be queried from the
database. The main question here why would someone want to. It is
possible however to display it using:

SQL> host echo $ORACLE_HOME , on UNIX/Linux

SQL> host echo %ORACLE_HOME% , on Window$
/Michael

Jul 19 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Rick | last post by:
I am installing Oracle 9i client runtime on AIX 5.1-003. The installation completes successfully, but neither the Net Configuration Assistant or SQLPLUS will run. I get the following error when...
7
by: Cherrish Vaidiyan | last post by:
hello, I am been getting mad with so many doubts and errors.. I have posted some doubts,test cases regarding listener,replication and standby database.But i havent got any response..(I am...
2
by: massimo874 | last post by:
Please some one can tell me wich is the SQLPlus default script directory an how I can set it. I tryed by 'Define' but SQLPlus don't find the scripts I give it in input. WinXP, ORACLE 9i.
3
by: 91YJ_Renegade | last post by:
why can I TNSPING but I can not connect using SQLPLUS? Oracle 10g Slackware 10 install 2.6.6 kernel exports ORACLE_BASE=/home/oracle ORACLE_HOME=/home/oracle/product/10g ORACLE_SID=ora9i...
0
by: Doug | last post by:
Hi, I'm having problems using sqlplus on OS X. I'm trying to connect to my college's server. They supplied the tnsnames.ora. If I run 10g client in Windows (via VirtualPC on the Mac, very...
0
by: ravinder1983 | last post by:
Hi All, I am new to this world of php. I tried getting oci8 work with php but to no avail. The error i recieve is "Warning: ocilogon() : OCIEnvNlsCreate() failed. There is something wrong with...
4
by: shalinikumarhitendra | last post by:
Hi All, I am using the following query on sqlplus editor sql>select 1/2 from dual; it is giving result as .5. But I want the result as 0.5.
5
by: peterlin | last post by:
hi, How can I query the $ORACLE_HOME in sqlplus ?
2
by: cpchan | last post by:
Dear all, I need to write a crontab in HP-UX to rebuild index for SAP, but I couldn't export ORACLE_HOME, very frustrated !!! #!/opt/perl/bin/perl # # Use SAP BR*TOOLS to reorganize indexes...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.