因是程序中的对数据库操作的语句都是直接针对表名写的,而不是“属主名.表名”的--这是oracle中的机制, 如果已经写好了程序,那就按原来写程序的时候的库再导一次.原来是针对表名的,那可能是你已经有了访问那些表的权限了, 如果现在用程序连接,没有访问权限,就把表的前面都加上owner.
解决方案 »
- sql分页语法问题
- 在.NET中向ORACLE数据库插入一条新闻, 为什么出错: 指定的转换无效。
- Oracle模糊查询,不用like还能用什么?有什么可以有like一样的效果?
- sqlserver移植过程中的问题 00904错误
- 冷备份了控制、数据、参数文件,缺日志文件,非归档模式,如何恢复?
- 请帮我看一条语句
- 求写一个select语句,检索出表的列名
- 初学者提简单问题:创建了公用同义词后怎么在browser窗口看不到?
- 我可以这样使用游标变量吗?刚才的分已经发了
- 在Win2K Server安装Oracle817时,没有安装数据库,后在创建数据库时出现"ORA-12560:TNS:协议适配器错误"...
- oracle9i在linux下的安装问题!!再线等(马上揭贴)
- 一个oracle8i的问题!
scott as an example and the tablespace will be DATA (was in USERS). exp userid=system/manager parfile=exp_user.par file=exp_scott.dmp
log=exp_scott.log
owner="(scott)" Parameter File: BUFFER=4096000
COMPRESS=Y
GRANTS=Y
INDEXES=Y
ROWS=Y
CONSTRAINTS=Y
DIRECT=Y Enter the following at the SQL prompt: revoke DBA,RESOURCE from scott; REM make sure they only have connect.
alter user scott quota unlimited on DATA;
alter user scott quota 0M on USERS;
alter user scott quota 0M on SYSTEM;
REM The last three grants give the user added privs that RESOURCE
was giving them. grant create procedure to scott;
grant create trigger to scott;
grant create type to scott; Now import the user: imp userid=system/manager parfile=imp_user.par file=exp_scott.dmp
log=imp_scott.log fromuser="(scott)" touser="(scott)" Parameter File: BUFFER=4096000
GRANTS=Y
INDEXES=N
IGNORE=Y
ROWS=Y I realize "Y" is the default for the parameters in the par file but
there are times you want to change them to "N" so I leave them in.
Once you have moved the user you can grant the privileges back to them.