只读权限oracle用户
-- Create the user
create user SMCQUERY
identified by SMCQUERY;
-- Grant/Revoke role privileges
grant connect to SMCQUERY;
-- Grant/Revoke system privileges
grant select any table to SMCQUERY;
grant debug any procedure to SMCQUERY;
grant debug connect session to SMCQUERY;
grant create any synonym to SMCQUERY;
相关文档:
Oracle 创建序列:
create sequence SEQ_Tablename_id
increment by 1 &nbs ......
-- 查看ORACLE 数据库中本用户下的所有表
SELECT table_name from user_tables;
-- 查看ORACLE 数据库中所有用户下的所有表
select user,table_name from all_tables;
-- 查看ORACLE 数据库中本用户下的所有列
select table_name,column_name from user_tab_columns;
-- 查看ORACLE 数据库中本用户下的所有列
se ......
/**
* 更新记录,原子操作,不会commit
* @param sql_id
* @param condition
* @return
* @throws SQLException
*/
&nbs ......