ORA-00980:synonym translation is no longer valid
2014-05-13 10:40
169 查看
今天要把测试环境DB的数据更新成最新Production环境的数据,期间发生了一些问题:
1.首先从正式环境exp出想要用户的dmp档
2.drop掉测试环境底下相应用户
3.create测试环境底下相应用户
4.imp 正式环境导出的dmp档
5.在测试环境底下explain plan sql时报:ORA-00980: synonym translation is no longer valid
用以下语句查下失效的synonym
select 'drop ' || decode (s.owner, 'PUBLIC', 'public synonym ', 'synonym ' || s.owner || '.') || s.synonym_name || ';' as "Dropping invalid synonyms:" from dba_synonyms s where table_owner not in ('SYSTEM', 'SYS') and db_link is null and not exists (select null from dba_objects o where s.table_owner = o.owner and s.table_name = o.object_name)
发现有个TOAD_PLAN_TABLE的synonym失效,应该是我在砍User的时候,没有把这个同义词相应的砍掉
解决:drop public synonym TOAD_PLAN_TABLE;
1.首先从正式环境exp出想要用户的dmp档
2.drop掉测试环境底下相应用户
3.create测试环境底下相应用户
4.imp 正式环境导出的dmp档
5.在测试环境底下explain plan sql时报:ORA-00980: synonym translation is no longer valid
用以下语句查下失效的synonym
select 'drop ' || decode (s.owner, 'PUBLIC', 'public synonym ', 'synonym ' || s.owner || '.') || s.synonym_name || ';' as "Dropping invalid synonyms:" from dba_synonyms s where table_owner not in ('SYSTEM', 'SYS') and db_link is null and not exists (select null from dba_objects o where s.table_owner = o.owner and s.table_name = o.object_name)
发现有个TOAD_PLAN_TABLE的synonym失效,应该是我在砍User的时候,没有把这个同义词相应的砍掉
解决:drop public synonym TOAD_PLAN_TABLE;
相关文章推荐
- ORA-00980 同义词转换不再有效(ORA-00980: synonym translation is no longer valid)
- ORA-00980: synonym translation is no longer valid
- ORA-00980 同义词转换不再有效(ORA-00980: synonym translation is no longer valid) (转)
- ORA-00980: synonym translation is no longer valid
- ORA-00980: synonym translation is no longer valid", version 9
- 同义词转换不再有效ORA-00980: synonym translation is no longer valid
- oracle 10g expdp ORA-00980: synonym translation is no longer valid
- ORA-19588: archived log recid 181834 stamp 780173554 is no longer valid
- 收藏:修复 Xcode 错误 “The identity used to sign the executable is no longer valid”
- The identity used to sign the executable is no longer valid
- The identity used to sign the executable is no longer valid.
- 真机调试报错:The identity used to sign the executable is no longer valid
- 如何解决“The identity used to sign the executable is no longer valid”
- IOS 真机测试 Xcode出现"The identity used to sign the executable is no longer valid"
- Trying to use an SPWeb object that has been closed or disposed and is no longer valid.
- 完美解决“The identity used to sign the executable is no longer valid.”问题
- xcode在真机调试的时候出现"The identity used to sign the executable is no longer valid"
- Unity3d 登录时“Sorry, this link is no longer valid”的问题
- 【iOS】The identity used sign the executable is no longer valid.
- Xcode The identity used to sign the executable is no longer valid. 错误解决