oracle基本操作

2021-08-21 12:13:52 字數 425 閱讀 1156

1.安裝過程中,若有報12514錯誤,可先檢查listenner.ora檔案,在建立連線時,service名稱要一致,且埠號也必須一致

2.預設三大賬號

sys  網路管理員(許可權最高) (使用時注意 加上  as sysdba)(預設密碼 admin)

system  普通本地管理員 (預設密碼 manager)

scott (安全考慮,鎖定)  普通使用者(測試賬號)  (預設密碼 tiger)

3.mysql 乙個例項 對應多個資料庫,oracle     乙個例項 對應乙個資料庫。

oracle特性:

乙個資料檔案只能屬於乙個表空間

乙個表空間可以包含乙個或多個資料檔案

乙個資料庫由多個表空間組成

乙個表空間只能屬於乙個資料庫

4.其curd操作與mysql基本一致

Oracle基本操作

1.建立表空間 create tablespacetestdatafile c test.dbf size 10m 名字不要為數字 2.建立使用者 create user username identified by password 不要為數字 3.給使用者授權 grant dba to user...

Oracle 基本操作

在這裡詳述 oracle 基本操作。新增使用者 隨著使用者的建立,自動產生與使用者同名的schema create user tester profile default identified by tester default tablespace testdata temporary table...

oracle 基本操作

1 使用者登入 sqlplus 帳號 密碼 2 檢視當前登入使用者 show user 3 檢視所有的使用者 select username from all users 4 建立臨時表空間 create temporary tablespace test temp tempfile d oracl...