3 回答

TA貢獻1725條經驗 獲得超8個贊
在安裝oracle時,安裝向導會提示你創建一個oracle用戶,來管理oracle。這個用戶一般都叫‘oracle’。
root下無法登陸oracle,需要進入oracle用戶,才能連接數據庫
su - oracle
sqlplus / as sysdba --以管理員身份登陸oracle

TA貢獻1875條經驗 獲得超5個贊
[root@oel51 ~]# export ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1
[root@oel51 ~]# /u01/app/oracle/product/11.2.0/dbhome_1/bin/sqlplus dexter/[email protected]:1521/ggdb2
SQL*Plus: Release 11.2.0.4.0 Production on Tue Jun 30 13:38:18 2015
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL>
添加回答
舉報