`

How to find Oracle path

阅读更多

SQL Experts => How to find Oracle path

 

question:
-----------------------------------------------------------
Hi,
How do we find Oracle Path (ORACLE_HOME) directory at the SQL prompt in wondows???

Thanks,
SindhuReddy

-----------------------------------------------------------
answer1:

On Windows:

SQL> host echo %ORACLE_HOME%
E:\oracle\app\oracle\product\10.2



On 10g as SYS:

SQL> var v_value char(70);
SQL> exec dbms_system.get_env('ORACLE_HOME', :v_value);
SQL> print v_value;

V_VALUE
--------
E:\oracle\app\oracle\product\10.2




-----------------------------------------------------------
answer2:

Hi,
Thanx for ur quick reply..But It does't work .Im using 9.2 version & windowa XP.
so pls do let me know the alternate way.

Thanks,

[Updated on: Wed, 13 December 2006 13:42]

-----------------------------------------------------------
answer3:

If SQL> host echo %oracle_home% didn't produce any results, then you probably don't have it specificially defined in your environement variable.

You could also use:

select substr(file_spec, 1, instr(file_spec, '\', -1, 2) -1) ORACLE_HOME
	from dba_libraries
	where library_name = 'DBMS_SUMADV_LIB';

[Updated on: Wed, 13 December 2006 13:56]

-----------------------------------------------------------
answer4:

Your last query will not work on 10g XE. It returns a non-existing directory (maybe the ORACLE_HOME of the original developer?)

-----------------------------------------------------------



SQL Experts => Merge the Result of tw ...
question:Hello, I have a table which is like this Car Typ Time BMW 330 13:00 BMW 335 11:00 BMW 320 16:00 Audi A4 12:00 Audi A5 16:00 Audi A6 15:00 I want t ...
SQL Experts => 2 inner queries in sel ...
question:I have 2 inner queries in my select statement. The most inner query I need to use the most outer query info in the where clause. I then want to order by a certain column. Then the query above ...
SQL Experts => UPDATE ERRO ORA-00933 ...
question:HI: I'm getting "Error ORA-00933, SQL Command not properly ended " at the line w/t "FROM" statement in the SQL below. I'm using Oracle 9.2.0.5 What am I doing wrong here update test1 a se ...
SQL Experts => column value as column ...
question:I need to get the column value as column name for pivot query. For a single id, you may have different dates and for every date there is a different amount. ex: ID rdate amount 1 ...
SQL Experts => Oracle 9i client insta ...
question:Hi all, One of the user getting the following error when tries to install oracle 9i client using Oracle Universal Installer. "Error writing to the directory C:\Documents and Settings\xxxx\L ...

分享到:
评论

相关推荐

    How to Find a Product to Sell Online--Richard Lazazzera

    Looking to start an online store but not sure what to sell? This guide gives you an easy-to-follow framework for finding, evaluating and validating product ideas that you can build a profitable online...

    How to hunt for a decent job?

    这是一篇关于如何找到一份体面的工作的英文作文,里面语法非常丰富,是作者的呕心之作

    linux howto中文合集

    HOWTO-html<br>News-HOWTO-html<br>News-Leafsite-html<br>Oracle-HOWTO-html<br>Plug-and-Play-HOWTO-html<br>PPP-HOWTO-html<br>Printing-HOWTO-html<br>QT 3.3 中文白皮书.pdf Quota RCS-...

    How to find and fix faults in Linux applications

    Unfortunately it is very hard to find documents explaining how to do that. In this article you will learn how to find and fix faults without first learning how an application internally works

    最基础的听力训练和测试——哈曼How to listen

    《哈曼How to listen:开启你的听力训练之旅》 听力的敏锐度并非与生俱来,而是需要通过后天不断的训练和提升。对于音乐爱好者和音频工作者而言,对声音细节的感知力至关重要,它关乎于对音乐的理解,对音频作品的...

    Linux Howto 中文文档

    FAQ (7KB) 一份有用资讯来源的列表 Networking-HOWTO (20KB) 针对 Linux 作业系统的网路能力提出一个概观的说明 News-HOWTO (20KB) 如何设定、维护在 Linux 系统下的 USENET News 伺服器 Oracle-HOWTO ...

    How To Listen (Public) 2.0.4 Setup.zip

    "How To Listen"是一款专为提升用户听力敏感度和音质辨识能力设计的训练软件,尤其适用于音乐制作人、音频工程师以及任何对声音有高要求的人群。这个名为"How To Listen (Public) 2.0.4 Setup.zip"的压缩包包含了该...

    HowTo2152.zip_howto2152

    包含了将近100张图表,这些图表能用来根据载流能力和温度限制条件来精确估计导线的宽度,这个Excel工具允许设计者根据不同的叠层结构和设计条件填入不同的数值来计算导线宽度。很简单的在绿色单元格内输入项目的设计...

    C++ How to Program, 10th Edition

    C++ How to Program (10th Edition) By 作者: Harvey M. Deitel Paul Deitel ISBN-10 书号: 9332585733 ISBN-13 书号: 9789332585737 Edition 版本: 10th 出版日期: 2017 Format: Paperback C++ How to Program ...

    OA Framework How to Identify Required Oracle JDeveloper Patches

    OA Framework How to Identify Required Oracle JDeveloper Patches For Oracle E-Business Release 12.x or 11i (Doc ID 416708.1)

    HOWTO Secure and Audit Oracle 10g and 11g

    挺好的东东,建议大家去仔细阅读,审计这块可能不太认真去关注。还是多学点儿的好啊

    How To Write A Dissertation

    How To Write A Dissertation

    [Oracle] Oracle Spatial 应用扩展 (英文版)

    Get to grips with how to use Oracle Spatial's standards compliant geometry data types to develop cross-vendor database solutions to common problems ☆ 出版信息:☆ [作者信息] Simon Greener , Siva ...

    RK3399的DRM-HOWTO测试

    RK3399的DRM-HOWTO测试 最近在学习与调试RK3399的DRM显示架构,网上有很多例程,其中介绍比较多的是来于David Herrmann’s Github的drm-howto.开源代码 但这些源码下载后执行make编译出来的执行文件只能在PC机上测试...

    Linux中文HOWTO

    Linux中文HOWTO Linux中文HOWTO Linux中文HOWTO

    oracle timesten how to setup

    ./runInstaller -silent -responseFile /path/to/response.txt ``` 7. **配置环境变量**:安装完成后,需要将Oracle Timesten的bin目录添加到`PATH`环境变量中,以便于执行相关命令。 8. **初始化数据库**:按照...

    C++大学教程C++ How to Program(中英文)

    《C++ How to Program》是C++编程领域的一本经典教材,由保罗·戴特尔(Paul Deitel)和哈维·戴特尔(Harvey Deitel)共同编写,提供了全面且深入的C++学习资源。该教程分为第九版(9E)和第十版(10E),并提供中...

    Debian Apt Howto

    APT参考文档This document intends to provide the user with a good understanding of the workings of the Debian package management utility, APT. Its goal is to make life easier for new Debian users and ...

Global site tag (gtag.js) - Google Analytics