首頁>Club>
9
回覆列表
  • 1 # 陳平安隨筆

    1,非叢集下 Windows環境下資料庫

    conn scott/[email protected]:1521/orcl

    conn scott/123456@(DESCRIPTION =(ADDRESS_LIST =(ADDRESS =

    (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521)))(CONNECT_DATA =

    (SERVER = DEDICATED)(SERVICE_NAME = orcl)))

    Linux環境下資料庫

    conn scott/123@(DESCRIPTION =(ADDRESS_LIST =(ADDRESS = (PROTOCOL = TCP)(HOST

    = 127.0.0.1)(PORT = 1521)))(CONNECT_DATA =(SERVER = DEDICATED)(SERVICE_NAME =

    orcl)))

    2,叢集下連線

    conn scott/123@(DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE = yes)(FAILOVER = on)

    (ADDRESS=(PROTOCOL=TCP)(HOST=127.0.0.1)(PORT=1521))(ADDRESS=

    (PROTOCOL=TCP)(HOST=127.0.0.2)(PORT=1521)))(CONNECT_DATA=(SERVER=default)

    (SERVICE_NAME=orcl)))

    擴充套件資料

    在命令列中登入oracle資料庫:

    sqlplus username/password 如:普通使用者登入 sqlplus scott/tiger

    sqlplus username/password as sysdba 如:sqlplus sys/admin as sysdba

    sqlplus username/password@net_service_name 如: sqlplus scott/tiger@orcl

    sqlplus username/password@//host:port/sid

  • 中秋節和大豐收的關聯?
  • 上單英雄,哪個比較強勢啊?