Oracle的使用者

2021-08-11 03:53:04 字數 4190 閱讀 2191

一 登入sql plus

系統使用者

sys,system :密碼是安裝資料庫時設定,sys用管理員和普通使用者登入,system直接登入。

sysman:

密碼是安裝資料庫時設定。

scott:

密碼是tiger。

使用system系統使用者登入

[username/password][@server][as sysdba|sysoper]

舉例:system/root @orcl as sysdba

解釋:orcl就是自己設定得服務名

例項:

二 檢視登入使用者

show user命令

dba_users資料字典

資料字典是資料庫提供的表,用於檢視資料庫的資訊。

例項:請輸入使用者名稱:

system

輸入口令:

連線到:

oracle

database

11genterprise

edition

release

11.2

.0.1.0

-64bit

production

with

the

partitioning

,olap

,data

mining

andreal

testing

options

sql

>

show user

user

為"system"

sql

>

desc dba_users

名稱

是否為空?

型別-----------------------------------------

--------

----------------------------

username not null varchar2(30

)user_id not null number

password varchar2(30

)account_status not null varchar2(32

)lock_date date

expiry_date date

default_tablespace not null varchar2(30

)temporary_tablespace not null varchar2(30

)created not null date

profile not null varchar2(30

)initial_rsrc_consumer_group varchar2(30

)external_name varchar2

(4000

)password_versions varchar2(8

)editions_enabled varchar2(1

)authentication_type varchar2(8

)sql

>

select

username

from

dba_users

;username

------------------------------

mgmt_view

sys

system

dbsnmp

sysman

outln

flows_files

mdsys

ordsys

exfsys

wmsys

username

------------------------------

apex_030200

owbsys_audit

orddata

ctxsys

anonymous

xdb

ordplugins

owbsys

si_informtn_schema

olapsys

username

------------------------------

scott

oracle_ocm

xs$null

bi

pm

mddata

ix

sh

dip

oe

apex_public_user

username

------------------------------

hr

spatial_csw_admin_usr

spatial_wfs_admin_usr

已選擇

36行。

三 啟用scott使用者(預設使用者之一)

啟用使用者的語句

ater user username account unlock

使用scott使用者登入sql plus

例項:sql

>

alter user scott account unlock

;使用者已更改。

sql

>

connect scott

/tiger

error

:ora

-28001

:the password has expired

更改

scott

的口令新口令:

重新鍵入新口令:

口令已更改

已連線。

sql

>

show user

user

為"scott"

大小: 14.4 kb

Oracle的使用者

1.oracle提供了一些特權使用者,比如sysdba或sysoper,這類使用者主要用於執行資料庫的維護操作,如啟動資料庫 關閉資料庫 建立資料庫,以及執行備份和恢復等操作.sysdba和sysoper的區別在於 sysdba不僅具備sysoper的所有許可權,而且還可以建立資料庫,執行不完全恢復...

oracle 2 oracle的使用者

1 dbca oracle的dbca主要用來管理資料庫,包括建立資料庫 刪除資料庫等。注意 建立資料庫的時候,密碼不能全是數字,也不能以數字開頭 2 ofa oracle flexible architecture oracle優化靈活結構 作用 多oracle版本的管理 ora90 資料庫管理工具...

Oracle的使用者管理

配置身份驗證 oracle為使用者賬戶提供三種身份驗證方法 1 密碼驗證 當乙個使用密碼驗證機制的使用者試圖連線到資料庫時,資料庫會核實使用者名稱是否是乙個有效地資料庫使用者,並且提供與該使用者在資料庫中儲存的密碼相匹配的密碼。2 外部驗證 當乙個外部驗證式使用者試圖連線到資料庫時,資料庫會核實使用...