|
|
发表于 2018-12-10 17:57:29
|
显示全部楼层
一般通过su - oracle的方式切换用户,不然环境变量不会切换。- [root@APP-DB ~]# su oracle
- [oracle@APP-DB root]$ sqlplus / as sysdba
- bash: sqlplus: command not found
- [oracle@APP-DB root]$ exit
- exit
- [root@APP-DB ~]# su - oracle
- [oracle@APP-DB ~]$ sqlplus / as sysdba
- SQL*Plus: Release 11.2.0.1.0 Production on Mon Dec 10 17:51:45 2018
- Copyright (c) 1982, 2009, Oracle. All rights reserved.
- Connected to:
- Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
- With the Partitioning, OLAP, Data Mining and Real Application Testing options
- SQL>
复制代码
|
|