oracle12c基本操作

2021-08-21 05:20:49 字數 672 閱讀 6963

select userenv('language') from dual;

sqlplus 使用者名稱/密碼;

sqlplus / as sysdba

create user c##fds identified by fds123;    (其中c##fds為使用者名稱,fds123為密碼)

grant create session to c##fds;

grant create table to c##fds;

grant create tablespace to c##fds;

grant create view to c##fds;

grant create sequence,select any sequence to c##fds; // 建立 查詢sequence許可權。

grant unlimited tablespace to c##fds; 授權使用者空間 (no privileges on tablespace users)

檢查客戶端的編碼格式

使用sqlplus 連線資料庫 執行 select userenv('language') from dual;  查詢結果為:american_america.zhs16gbk

設定windows 環境變數 

nls_lang=american_america.zhs16gbk

Oracle 12c 常用操作命令

1多例項切換 export oracle sid 例項名 例如 2登陸資料庫 sqlplus as sysdba 注意 3檢視當前例項或者說當前容器 select name from v database 或者show con name 例如 4檢視當前容器的pdb show con name 例子...

Oracle 12c 例項啟動操作命令

1.判斷oracle 監聽是否啟動 lsnrctl start lsnrctl stop lsnrctl status 2.啟動 關閉oracle 例項 sql startup sql shutdown immediate 3.檢視當前例項 sql select name from v databa...

oracle12c建立使用者

本人在centos7安裝好資料庫 oracle12c 準備建立乙個使用者的時候 報錯了,如下 sql create user bpmx3 identified by bpmx3 create user bpmx3 identified by bpmx3 error at line 1 ora 650...