默認的:最高權(quán)限用戶:system 密碼:manager

成都創(chuàng)新互聯(lián)-專業(yè)網(wǎng)站定制、快速模板網(wǎng)站建設(shè)、高性價比當陽網(wǎng)站開發(fā)、企業(yè)建站全套包干低至880元,成熟完善的模板庫,直接使用。一站式當陽網(wǎng)站制作公司更省心,省錢,快速模板網(wǎng)站建設(shè)找我們,業(yè)務覆蓋當陽地區(qū)。費用合理售后完善,十年實體公司更值得信賴。
管理員權(quán)限用戶:sys 密碼:change_on_install
普通用戶:scott 密碼:tiger
登陸管理員或超級管理員用戶可以自己建立屬于自己的用戶 :
命令:create user userName identified by password;
創(chuàng)建用戶名為: userName, 密碼為 password 的用戶
分配權(quán)限:
grant dba to userName; --授予DBA權(quán)限
grant unlimited tablespace to userName;--授予不限制的表空間
grant select any table to userName; --授予查詢?nèi)魏伪?/p>
grant select any dictionary to userName;--授予 查詢 任何字典
一般來說,oracle數(shù)據(jù)庫安裝后,里面有很多個默認賬號和密碼,比較常用的是:賬號:scott 密碼:tiger 賬號:system 密碼:manager 賬號:sys 密碼:任意字符。
當我們想創(chuàng)建一個賬號時,可以使用sys登錄sysdba后,創(chuàng)建用戶(需要授權(quán)),代碼如下
create user 用戶名 identified by "密碼";
授權(quán):grant create session to 用戶名;
grant create table to 用戶名;
grant create tablespace to 用戶名;
grant create view to 用戶名;
我們一般使用的是用scott登錄sysdba,這時候有可能出現(xiàn)賬戶未解鎖的狀態(tài),這時候可以用
alter user scott account unlock;
來解鎖賬戶。解鎖之后可能會要求你改密碼:可以用
alter user scott identified by tiger;
再登錄
conn scott/tiger;
使用sqlplus或者其它oracle客戶端工具連接登陸到數(shù)據(jù)庫:
--創(chuàng)建【表空間指定為可選項】
create user 用戶名 identified by 密碼 [default tablespace 表空間名 ];
--授權(quán)【根據(jù)需要來決定】
grant create session to 用戶名;
grant create table to 用戶名;
grant create tablespace to 用戶名;
grant create view to 用戶名;
grant connect,resource to 用戶名;
grant create any sequence to 用戶名;
grant create any table to 用戶名;
grant delete any table to 用戶名;
grant insert any table to 用戶名;
grant select any table to 用戶名;
grant unlimited tablespace to 用戶名;
grant execute any procedure to 用戶名;
grant update any table to 用戶名;
grant create any view to 用戶名;
1、首先,點擊電腦win按鈕,彈出菜單中點擊安裝好的oracle客戶端文件夾,找到【Enterprise Manager Console】,點擊進入即可。
2、打開oracle客戶端后,找到需要進入的服務名稱,并點擊。
3、點擊后,彈出登錄窗口,用sys用戶進行登錄,因為sys是DBA用戶,權(quán)限最高,可以進行創(chuàng)建用戶等操作。
4、登錄后,樹形菜單中找到安全--用戶,在用戶上右鍵操作,彈出菜單中點擊創(chuàng)建。
5、彈出創(chuàng)建用戶名和密碼窗口中,一般信息中,名稱:是用戶名,口令:就是密碼,表空間:選擇自己創(chuàng)建的表空間名稱即可。
6、需要給創(chuàng)建的用戶分配角色權(quán)限,分配基本的操作權(quán)限即可,如圖所示,在日后使用中缺少權(quán)限可以繼續(xù)分配所需權(quán)限即可。
7、設(shè)置完成后,點擊創(chuàng)建,就是提示創(chuàng)建用戶成功,完成效果圖。
1、點擊windows中的運行,輸入cmd,進入命令提示符的界面
2、進入cmd后,首先連接oracle數(shù)據(jù)庫
3、創(chuàng)建數(shù)據(jù)庫新用戶,shop為數(shù)據(jù)庫用戶,123456為密碼
4、給新建的數(shù)據(jù)庫用戶授權(quán)
5、連接新的數(shù)據(jù)庫用戶
6、顯示數(shù)據(jù)庫用戶為shop,到此數(shù)據(jù)庫用戶創(chuàng)建及驗證成功
創(chuàng)建Oracle新用戶的步驟:
1、打開oracle第三方工具,如plsq,然后用一個具有dba權(quán)限的用戶登錄。
2、然后打開一個SQL窗口。
3、執(zhí)行語句:create
user
用戶名
identified
by
密碼;
其中用戶名需要為英文,密碼為數(shù)字或字母或英文符號或組合。
4、執(zhí)行完畢后,可按需要給用戶賦予相應的權(quán)限,
如:grant
connect,resource,dba
to
用戶名。
文章題目:oracle怎么開用戶名,oracle創(chuàng)建用戶名
文章URL:http://chinadenli.net/article18/dsgocdp.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供云服務器、服務器托管、ChatGPT、品牌網(wǎng)站建設(shè)、網(wǎng)站導航、響應式網(wǎng)站
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)