Oracle Home Selector

之前知道 oracle Home Selector是切换 oracle 主目录用的,但由于一直没在同一台电脑上安装过两个版本的 oracle ,所以对这个功能不了解。今天因工作需要在电脑上安装了两个不同版本的 oracle ,在不同版本切换使用时很不方便,突然间想到有个 oracle Home Selector的工具,正好可以试试到底有什么用:)

1).执行 oracle Home Selector,跳出一个对话框,如图:

2).选择你目前要使用的 oracle Home

3).然后在字符命令模式下执行sqlplus,果然出来的sqlplus的版本就是你想要的

仔细看了一下,其实 oracle Home Selector做的动作就是改变环境变量中 oracle Home的顺序,比如:

原来的版本是 oracle 9i的,其环境变量如下:

PATH=E:\ oracle \ora92\bin;E:\ oracle \ora817\bin;E:\ oracle \ora817\Apache\Perl\5.00503\bin\mswin32-x86;C:\Program Files\ oracle \jre\1.1.7\bin;C:\Program Files\ oracle \jre\1.3.1\bin;C:\Program Files\ oracle \jre\1.1.8\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem

通过 oracle Home Selector选择 oracle 817后,环境变量变成如下:

PATH=E:\ oracle \ora817\bin;E:\ oracle \ora92\bin;E:\ oracle \ora817\Apache\Perl\5.00503\bin\mswin32-x86;C:\Program Files\ oracle \jre\1.1.7\bin;C:\Program Files\ oracle \jre\1.3.1\bin;C:\Program Files\ oracle \jre\1.1.8\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem

知道这个原理后,自己也可以写一个切换工具出来:)

  
« ORACLE网络的几个重点概念            Home            Left outer join »

No Comments

Be the first to comment on this entry.

Leave a comment

Name(required)
Mail (will not be published)(required)
Website

Fields in bold are required. Email addresses are never published or distributed.

Some HTML code is allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
URLs must be fully qualified (eg: http://www.dbifan.com),and all tags must be properly closed.

Line breaks and paragraphs are automatically converted.

Please keep comments relevant. Off-topic, offensive or inappropriate comments may be edited or removed.

    搜索本站

    站点日历

    7月 2005
    « 6   8 »
     123
    45678910
    11121314151617
    18192021222324
    25262728293031

    订阅本站

    文章分类

    最新日志

    热点文章

    日志存档

    常用标签