9i oracle数据库迁移到11G
一、迁移前查询 110库 活动的用户为以下几个用户(BOSS,MD_QZY,SMART,SRDQ,RIMS) 120库 活动的用户(BOSS,SMART) select distinct username from v$session; BOSS MD_QZY RIMS SMART SRDQ 关闭监听,杀进程 ps -ef |grep ora|awk '{print $2}'|xargs kill -9 查看迁移前的对象个数(不同用户查看): set lin 200 pages 100 select owner,object_type,count(*) from dba_objects where OWNER in ('BOSS', 'MD_QZY', 'SMART', 'SRDQ','RIMS') GROUP BY OWNER ,object_type ; OWNER OBJECT_TYPE COUNT(*) ------------------------------ ------------------ ---------- RIMS INDEX 13 RIMS TABLE 9 SMART VIEW 10 SMART INDEX 124 SMART TABLE 323 SMART TRIGGER 212 SMART FUNCTION 3 SMART SEQUENCE 228