建立oracle使用者和表空間

2021-09-01 17:32:15 字數 823 閱讀 5107

檢視oracle的服務名

select name from v$database;

檢視當前的sid

select sid from v$mystat where rownum=1;

//檢視當前的sid和連線總數

select sid, serial#, username from v$session where username is not null;

檢視啟動的流程例項

ps -ef | grep pmon

檢視資料庫中的使用者名稱和密碼

select username,created,password from dba_users;

看看您當前的資料庫檔案放在**的:

select name from v$datafile;

刪除表空間

drop tablespace developdf including contents and datafiles;

建立表空間developdf

刪除使用者

drop user develop cascade;

建立使用者develop密碼develop

create user develop identified by develop default tablespace developdf;

create user develop identified by develop default tablespace developdf;

建立許可權

grant dba to develop;

撤銷許可權

revoke dba from develop;

Oracle建立表空間和使用者

oracle建立表空間和使用者 sql view plain copy 建立表空間和使用者的步驟 使用者 建立 create user 使用者名稱 identified by 密碼 授權 grant create session to 使用者名稱 grant create table to 使用者名...

Oracle建立表空間和使用者

oracle建立表空間和使用者 sql view plain copy 建立表空間和使用者的步驟 使用者 建立 create user 使用者名稱 identified by 密碼 授權 grant create session to使用者名稱 grant create table to使用者名稱 ...

Oracle建立表空間和使用者

oracle建立表空間和使用者 sql view plain copy 建立表空間和使用者的步驟 使用者 建立 create user 使用者名稱 identified by 密碼 授權 grant create session to使用者名稱 grant create table to使用者名稱 ...