Home » RDBMS Server » Server Utilities » import of TAB table from backup
import of TAB table from backup [message #72885] Mon, 01 December 2003 20:58 Go to next message
Senthilkumar P.B.
Messages: 5
Registered: December 2003
Junior Member
I have dropped the table TAB wrongly. How can i import from the backup file ? when i give the command
imp user/passwd file=/dev/rmt/0m tables=TAB, it shows the message TAB is not found.
Re: import of TAB table from backup [message #72886 is a reply to message #72885] Tue, 02 December 2003 06:38 Go to previous message
Frank Naude
Messages: 4580
Registered: April 1998
Senior Member
Hi,

TAB is a view, not a table. You can just re-create it. Look at the definition in your ?/rdbms/admin/catalog.sql file:
connect sys as sysdba
create or replace view tab (tname, tabtype, clusterid) as
   select o.name,
      decode(o.type#, 2, 'TABLE', 3, 'CLUSTER',
             4, 'VIEW', 5, 'SYNONYM'), t.tab#
  from  sys.tab$ t, sys.obj$ o
  where o.owner# = userenv('SCHEMAID')
  and o.type# >=2
  and o.type# <=5
  and o.linkname is null
  and o.obj# = t.obj# (+)
/
grant select on tab to public with grant option;
create or replace synonym system.tab for tab;
create or replace public synonym tab for tab;


Best regards.

Frank
Previous Topic: Export of Database
Next Topic: export reg
Goto Forum:
  


Current Time: Fri May 31 21:29:33 CDT 2024