windows下安装不同版本oracle的一点体会

2015-11-21 01:51:25 · 作者: · 浏览: 4
1. 使用set oracle_sid=***可以在不同版本的oracle实例之间进行跳转。 2.在不同的oracle_home很可能无法登陆oracle实例,此时该home下的network/admin/sqlnet.ora在起作用;
I:\oracle\product\10.2.0\client_1\BIN>set oracle_sid=ora11g
I:\oracle\product\10.2.0\client_1\BIN>sqlplus / as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on 星期日 8月 12 07:30:36 2012
Copyright (c) 1982, 2005, Oracle. All rights reserved.
ERROR: ORA-12546: TNS: 权限被拒绝

3. cmd提示符的当前路径是oracle 11.1.0.1的一个oracle_home,set sid后,能进入11g的oracle实例, F:\app\Administrator\product\11.1.0>set oracle_sid=ora11g F:\app\Administrator\product\11.1.0>cd db_1\BIN
F:\app\Administrator\product\11.1.0\db_1\BIN>sqlplus / as sysdba
SQL*Plus: Release 11.1.0.6.0 - Production on 星期日 8月 12 07:28:16 2012
Copyright (c) 1982, 2007, Oracle. All rights reserved.
连接到: Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> exit 从 Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production With the Partitioning, OLAP, Data Mining and Real Application Testing options 断 开
F:\app\Administrator\product\11.1.0\db_1\BIN> cd ..
F:\app\Administrator\product\11.1.0\db_1>sqlplus / as sysdba 用法: SQLPLUS [ [