oracle 建只读账号用来编写报表,或做BI
2018-09-11 18:17
375 查看
参考于:https://blog.csdn.net/lyxxwzj/article/details/80021237
[oracle@ftpc_prd ~]$ sqlplus /nolog SQL*Plus: Release 11.2.0.4.0 Production on Tue Sep 11 15:14:41 2018 Copyright (c) 1982, 2013, Oracle. All rights reserved. SQL> conn /as sysdba Connected. SQL> create user macs identified by 123456 default tablespace pdsci; create user macs identified by 123456 default tablespace pdsci * #创建用户名为macs 密码为:123456 SQL> create user macs identified by 123456 ; User created. #给他一些权限,包括连接权限,因为他要创建同义词,还需要给他同义 SQL> grant connect to macs; Grant succeeded. SQL> SQL> grant create synonym to macs; Grant succeeded. SQL> SQL> grant create session to macs; Grant succeeded. #查询某个账号上建的表 登陆建立账号的用:plsql select 'grant select on '||owner||'.'||object_name||' to macs;' from dba_objects where owner in ('FTPC_AYO') and object_type='TABLE'; #查询某个账号 有的同义词 同义语 SELECT 'create or replace SYNONYM macs. ' || object_name|| ' FOR ' || owner || '.' || object_name|| ';' from dba_objects where owner in ('FTPC_AYO') and object_type='TABLE';
相关文章推荐
- oracle 利用字符拼接 开通只读账号
- Oracle BI Publisher创建报表
- Oracle BI Publisher创建报表
- Oracle Bi Publisher 报表的整合
- oracle只读账号建立
- oracle bi publisher报表插入图片
- Oracle的ERP系统中报表不好用?
- 做bi报表的一些事儿
- [Oracle]密码及账号策略设定
- 6款经典BI项目报表表单风格配色方案
- oracle sql语句根据交易类型生成统计报表...
- oracle分页存储过程编写案例
- java编写微信公众账号收发消息
- .csv大报表改造-oracle创建事务级临时表
- 每日排行榜报表的sql(oracle)
- oracle解锁数据库用户账号并修改密码
- Oracle 11g 新特性 -- 只读表(read-only table)说明
- Oracle BI Publisher 企业版安装后的配置(BI Publisher Enterprise Edition)
- oracle 存储过程编写和java程序调用oracle存储过程
- [置顶] Oracle PL/SQL中编写空操作的存储过程