473,382 Members | 1,743 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,382 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 18361

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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.