oracle常見的基本操作

2021-08-29 16:47:56 字數 660 閱讀 9268

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;--授予 查詢 任何字典

3、oracle類似sql server的sql的top的功能的的語句

sql server :select top 1 * from tablename

oracle :select * from tablename where rownum<2

4、建立sequense的語句

create sequence wysgisadmin.seq_wuyi_survey_sort

minvalue 1

maxvalue 9999999999

start with 1

increment by 1

cache 20;

oracle的基本操作

1 建立表空間 一般建n個存資料的表空間和乙個索引空間 create tablespace 表空間名 datafile 路徑 要先建好路徑 dbf size m tempfile 路徑 dbf size m autoextend on 自動增長 還有一些定義大小的命令,看需要 default sto...

oracle的基本操作

create tablespace itheima datafile c itheima.dbf size 100m autoextend on next 10m 刪除表空間 drop tablespace itheima create user itheima identified by ithe...

Oracle中常見的操作

1.建立oracle表空間 2.刪除oracle表空間 示例 drop tablespace my space including contents and datafiles 3.檢視當前所有的表空間和表空間對應的資料檔案的位置 select from dba tablespaces 檢視當前所有...