ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 如何把oracle9i和10g装在同一win平台下面

如何把oracle9i和10g装在同一win平台下面

原创 Linux操作系统 作者:paulyibinyi 时间:2008-05-30 10:00:01 0 删除 编辑

  因为现在自己学习oracle 10g 新特性 ,就把10g装在虚拟机上,每次打开虚拟机器 启动oracle后

电脑就慢的要死 因为内存有限才1g  分给虚拟机512M,再加上还有正常工作事情要做,来回切换虚拟

机也不方便

 所以今天没事 就想把9i和10g 都装在同一环境下,方便自己练习和提高速度

    9i是按照先前方法已经好了 一直在用

装在D:\oracle\ora92 目录下 

1:  首先停掉 9i的监听和数据库

2: 10g 我就装在F盘F:\oracle\product\10.2.0\db_1   下

10g 在win平台下安装还是挺方便的 一路点next  装好后

按照图形化界面让他自动配置listener 和创建数据库

成功后 需要配置10g 目录listener.ora 文件端口改为 1522

然后 tnsnames.ora 端口也改为1522

3.启动9i listener ,数据库 和10g listener,数据库  一切正常

进入cmd下,可以自由切换

C:\Documents and Settings\Paul Yi>set oracle_sid=pubtest      这是9i实例名

C:\Documents and Settings\Paul Yi>sqlplus "/as sysdba"

SQL*Plus: Release 10.2.0.1.0 - Production on 星期五 5月 30 10:11:05 2008

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


连接到:
Oracle9i Enterprise Edition Release 9.2.0.8.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.8.0 - Production

SQL> exit
从 Oracle9i Enterprise Edition Release 9.2.0.8.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.8.0 - Production 断开

C:\Documents and Settings\Paul Yi>set oracle_sid=ORCL     这是10G 实例名

C:\Documents and Settings\Paul Yi>sqlplus "/as sysdba"

SQL*Plus: Release 10.2.0.1.0 - Production on 星期五 5月 30 10:11:17 2008

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


连接到:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options

SQL

 

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/7199859/viewspace-324396/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
学习数据库

注册时间:2007-12-11

  • 博文量
    907
  • 访问量
    6894207