天天看點

oracle 建立使用者進行登入

大家好,又見面了,我是你們的朋友全棧君。oracle隻有一個資料庫叫orcl,

ip位址

資料庫名稱也叫sid:oracle

帳号使用者名

密碼

示例帳号 scott/tiger

使用cmd 打開doc 視窗。輸入sqlplus /nolog登入進去就是sys使用者,管理system使用者

conn /as sysdba 讓sys擁有dba權限

修改system密碼

alter user system identified by oracle;

conn system/oracle 以正常的超級使用者身份登入進去

自己建帳号需要建表空間

create tablespace t1 datafile ‘t1.dbf’ size 10m autoextend on;

建完表空間再建使用者test 密碼123456

create user test identified by 123456 default tablespace t1;

使用者要配置設定權限(建立表,修改表,增删改查)

連接配接權限connect

資源權限resource

grant connect to test;

grant resource to 123456;

conn test/123456;

釋出者:全棧程式員棧長,轉載請注明出處:https://javaforall.cn/144656.html原文連結:https://javaforall.cn