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;
创建用户
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;