使用Oracle之 Oracle 建立使用者

2021-04-25 01:19:33 字數 331 閱讀 2714

1

建立使用者

create user username identified by password;

建立使用者 username,密碼為 password

2給使用者授權

grant dba to username; --授予dba許可權

grant unlimited tablespace to username;--授予不限制的表空間

grant select any table to username; --授予查詢任何表

grant select any dictionary to username;--授予 查詢 任何字典

Oracle之trunc函式使用

trunc d1 c1 返回日期d1所在期間 引數c1 的第一天日期 d1日期型,c1為字元型 引數 c1預設為j 即當前日期 c1對應的參數列 本週星期日 day或dy或d 每週順序 日,一,二,三,四,五,六 本月初日期 month或mon或mm或rm 本季日期 q 本年初日期 syear或ye...

oracle 游標使用

create or replace function errortyperead return varchar2 is result varchar2 3000 type cursor type is ref cursor tempname varchar2 100 cursor testcur i...

oracle使用小結

1.儲存過程出錯 pls 00103 出現符號 在需要下列之一時 create or replace procedure udf sp tlog add in l id number,in l type number,in b id number,in l desc varchar2 200 in ...