Oracle入门(五A)之conn命令
生活随笔
收集整理的這篇文章主要介紹了
Oracle入门(五A)之conn命令
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
一、connect命令
????將給定的用戶名連接到Oracle數(shù)據(jù)庫。當(dāng)你運(yùn)行一個連接命令、站點(diǎn)配置文件、Galgn.SQL和用戶配置文件,按順序處理Login .SQL。連接不重發(fā)如果初始連接不成功,請使用用戶名或密碼。
語法:?conn[ect]? ? [{登錄串|/|代理串}? ?[AS {SYSOPER|SYSDBA|SYSASM}]? ? [edition=value]]
a.登錄串:用戶名[/密碼][@連接字符串]
b.代理串:代理用戶[用戶名][/密碼][@連接字符串]? ?
? ? ?注意:代理中用戶名的括號是必需的語法。
c.連接字符串: ip地址[:端口號(默認(rèn)端口1521)]/數(shù)據(jù)庫名
d.conn是connect的縮寫
如,代理用戶
conn myOrcale[sys]/abc@192.168.23.1:1521/orcl as sysdba如,普通用戶
SQL>conn user/abc如,超級管理員
SQL>conn sys/abcd as sysdba或者
SQL> connect / as sysdba如,超級管理員遠(yuǎn)程登錄
二、英文版
SQL> help connCONNECT-------Connects a given username to the Oracle Database. When you run aCONNECT command, the site profile, glogin.sql, and the user profile,login.sql, are processed in that order. CONNECT does not repromptfor username or password if the initial connection does not succeed.CONN[ECT] [{logon|/|proxy} [AS {SYSOPER|SYSDBA|SYSASM}] [edition=value]]where logon has the following syntax:username[/password][@connect_identifier]where proxy has the syntax:proxyuser[username][/password][@connect_identifier]NOTE: Brackets around username in proxy are required syntax總結(jié)
以上是生活随笔為你收集整理的Oracle入门(五A)之conn命令的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 联想S410i5cpU售价与配置怎样?
- 下一篇: Oracle入门(五)之基本命令操作