How to recover Tab table of a schema

Dear all,
The tab table of one of the schemas of our database is dropped. The table is not in recyclebin ( we are using Oracle 10g). Please give me the idea for how can we restore the tab table and make it functional. Thanks in advance.
Ravi Ranjan

Is it TAB or TABS ?
Whether TABS is a synonym to USER_TABLES, TAB is a public synonym for TAB view. TAB is keep only for backward compatibility and should not be used for a while.
SQL> select text from all_views where view_name='TAB';
TEXT
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# (+)
SQL> select text from all_views where view_name='TABS';
no rows selected
SQL> select owner,synonym_name,table_name from all_synonyms where synonym_name in ('TAB','TABS');
PUBLIC
TAB
TAB
PUBLIC
TABS
USER_TABLES
SYSTEM
TAB
TABIf TAB is missing, I would be suspicious about others SYS' objects, and without database backup, you could be in big troubles, since it is not advisable to play around SYS objects on your own.
You can go to the guilty and beat him.
Nicolas.

Similar Messages

  • How can we copy table from one schema to other schema

    Hi,
    I have create one table in one schema and i want to copy it to other schema.How we can copy table from one schema to other schema

    Hi,
    You can try something like this :-
    SQL> CONNECT SYS/SYS123@SERVER AS SYSDBA
    Connected.
    SQL> CREATE USER TEST_1 IDENTIFIED BY TEST_1;
    User created.
    SQL> CREATE USER TEST_2 IDENTIFIED BY TEST_2;
    User created.
    SQL> GRANT CONNECT,RESOURCE,DBA TO TEST_1;
    Grant succeeded.
    SQL> GRANT CONNECT,RESOURCE,DBA TO TEST_2;
    Grant succeeded.
    SQL> CONNECT TEST_1/TEST_1@SERVER
    Connected.
    SQL> CREATE TABLE TEST_COPY ( TEST_COL NUMBER );
    Table created.
    SQL> INSERT INTO TEST_COPY VALUES ( 1 );
    1 row created.
    SQL> INSERT INTO TEST_COPY VALUES ( 2 );
    1 row created.
    SQL> COMMIT;
    Commit complete.
    SQL> GRANT ALL ON TEST_COPY TO TEST_2;
    Grant succeeded.
    SQL>  CONNECT TEST_2/TEST_2@SERVER
    Connected.
    SQL> CREATE TABLE TEST_COPY AS SELECT * FROM TEST_1.TEST_COPY;
    Table created.
    SQL>  SELECT * FROM TEST_COPY;
      TEST_COL
             1
             2Regards,
    Sandeep

  • How to move one table to other schema

    Hi;
    imagine i have one schema A and i create table in this schema as test. Now i have one other schema,name is B. I wanna move my A.test table to B.test2
    How i can do it?
    thanks

    Following discussion might help How to move the table to the another schema?

  • How to recover a table from a coldback?

    Hi:
    I was asked in an interview. if a user deleted a table, how to recover it from a coldback? Please give me the steps.
    Thank you and regards.

    1. Take a cold backup of the current database.
    2. Restore the full old backup from tape/disk etc.
    3. Oracle Export the table that needs recovering.
    4. Shutdown the database.
    5. Restore the database from the first step.
    6. Start the database.
    7. Oracle Import the table from the third step.
    Hope this helps.
    Best regards,
    Mark.

  • How to find full tables hierarchy in schema

    Hi,
    How to find the table hierarchy list from oracle schema by using Reference Key constraint?
    In my schema I am having many tables, approximate 4000 and from there I needs to get a single list which should be based in the Foriegn key based (Parent tables should be first then child tables)
    Regards
    Anee

    You can start with this
    select A.table_name children,
             B.TAble_name Father
    from DBA_CONSTRAINTS A,
            DBA_CONSTRAINTS B
    WHERE A.CONSTRAINT_TYPE = 'R'
         And B.Constraint_name = a.r_Constraint_name

  • How to Replicate Selected Tables in a Schema to other Schema..

    Hi,
    In my database i have two schemas having 1000 tables in each.
    In these two schemas the table structure is same.
    I need to replicate nearly 100 tables out of 1000 tables in the schema.
    Can any one help me in this issue.
    Thanks ,
    Ray..

    Hi Ray,
    You can do this by using the dbms_streams_adm.rename_table package on the destination/target where you are running the apply process. Create the RULE for the apply on the target using the same owner as the source. Then, run the following on the db with the apply:
    DECLARE
    v_dmlrule VARCHAR2(128);
    BEGIN
    -- this will get the name of the rule you wish to modify.
    select rule_name into v_dmlrule from dba_rules where rule_owner='STRMADMIN' and RULE_CONDITION LIKE '%TABLENM%';
    dbms_output.put_line('Rule Name :'||v_dmlrule);
    DBMS_STREAMS_ADM.RENAME_TABLE(
    rule_name => v_dmlrule,
    from_table_name => '"FROMSCHEMA"."TABLENM"',
    to_table_name => '"TOSCHEMA"."TABLENM"',
    step_number => 0,
    operation => 'ADD');
    END;
    Regards.

  • How to recover HTMLDB_APPLICATION_FILES table

    We accidently deleted some data in the HTMLDB_APPLICATION_FILES table using
    delete from HTMLDB_APPLICATION_FILES table
    where....
    And now we want to recover the deleted information.
    Since HTMLDB_APPLICATION_FILES is a virtual table name, we can not even find the real table in the DB. Is there any idea to recover only the HTMLDB_APPLICATION_FILES table to avoid recovering the whole DB.
    Any one can help on this?
    Thanks.

    Hi, sspadafo
    Do you mean the delete query? We used
    where id < *****
    and lost the 'id>****' part, so, most records are deleted :(
    Now, we are trying to locate the flows_files.wwv_flow_file_objects$ table. In SQL*Plus we run the query
    SELECT owner, table_name FROM ALL_TABLES ORDER BY owner, table_name;
    but flows_files.wwv_flow_file_objects$ is not in the list.

  • How to drop all tables in perticular schema??

    Hi,
    I am new in oracle.
    I want to drop all tables in one perticular schema,
    Please tell me solution.
    PratHamesh

    If your few of your tables have referential intigrity constraints and trying to drop master table whithout droping child table first, oracle will produce an error.
    Better option would be to drop the entire schema and then create a new schema with the same name.
    on sql plus.
    set long size 20000
    select dbms_metadata.get_ddl('USER','USERNAME') from dual;
    --then save the above output to create the user later.
    drop username cascade
    use the above saved script to create the user again.
    Jaffar

  • How to drop a table in another schema.

    Hi there, was looking to drop a table that is currently created under GL schema when consolidation process is done. These tables are kind of temporary and stay there if consolidation process doesn't complete successfully.
    So, I'm try to execute a script that would drop the table but the particularity is that this drop isn'T executed by apps but with bolinf (custom user).
    So, while trying to delete it with bolinf, I always get an error message that the table doesn't exists or so.
    Here's the code
    r_gl_int_ctrl.INTERFACE_TABLE_NAME is retreived from gl_interface_control table and from INTERFACE_TABLE_NAME column.
    EXECUTE IMMEDIATE 'DROP TABLE GL.' || r_gl_int_ctrl.INTERFACE_TABLE_NAME;
    and this generates the following error : ORA-00942: table or view does not exist
    R12.0.6
    RDBMS 10.2.0.3.0
    Custom package under bolinf schema is trying to drop GL.GL_CONS_INTERFACE_38190 and it's not working. Nevertheless, if I install this package under apps, table get dropped.
    Is there a way that I can drop a GL table like GL.GL_CONS_INTERFACE_38190 from BOLINF schema ? If so, what privileges/grant should user BOLINF have in order to drop this table from a GL Schema ?
    Thank you.

    Hi;
    You need to give drop grant to your user.Easy way is to give
    GRANT DROP ANY TABLE TO USER; << but its mean it will give drop grant for all table.
    Also see:
    OERR: ORA 942 "table or view does not exist" [ID 18536.1]
    Regard
    Helios

  • How to recover dropped table

    Table is been dropped and i want o recover it.
    Database is running in archive log mode and i had valid full database rman backup too.
    flashback is disabled.
    database version -10g
    Please let me know the steps i can follow to recover the dropped table.

    Hello,
    If your RECYCLEBIN is activated you may Flashback Drop your Table.
    So you may check your RECYCLEBIN by using the following query:
    select object_name, original_name from user_recyclebin;If you can see your Table (original_name) so you may execute the statement below:
    flashback table <table_name> to before drop;Else, you'll need a Backup or a dump to restore your Table.
    For instance, by duplicating your database elsewhere and get back the Table by DataPump (expdp/impdp).
    Hope this help.
    Best regards,
    Jean-Valentin
    Edited by: Lubiez Jean-Valentin on Feb 3, 2010 10:13 PM

  • How to recover old table entries?

    I need to recover table entries in table T554G,
    is there any posibility?
    thanks & greetings
    Torsten

    Hi,
    Although your question is not clear but assuming that the entries are deleted from the table T554G and you want to recover them.
    Try to check the entries using tocde SM30 and view V_T554G in your server landscape (DEV or QAS). If you find them over there you can recreate them easily.
    Regards,
    Waqas Rashid

  • How to export the table from one schema to another schema

    Hi,
    I've 2 schemas dev and test db
    And i need to copy one EMP table from DEV to TEST db in windows OS
    Could you please hint me in which schema which statement to be written ...
    Regards
    josh

    Hi,
    I am not sure I got it all. Do you have 2 schemas in 2 different databases or 2 schemas in the same database ?
    If both schemas are in one DB, you can :
    connect dev/***@DB
    grant select on emp to test;
    connect test/***@DB
    insert /*+ append */ into emp select * from dev.emp;
    commit;Or use a create table emp as select * from dev.emp; if empl table does not exist in test schema.
    If both schemas are in different DBs, you can :
    * use exp / imp tools
    * use sqlldr
    * use a database link
    Hope this helps,
    Francois

  • How to recover tabs and bookmarks and settings from hard drive after computer dies?

    computer's motherboard died, and I am going to move all the browsing info to a new computer.
    When my computer died I had 20 something tabs open and I haven't saved them to bookmark yet and I need to get them back, along with the whole histories too.
    I also used to be able to recover the bookmarks but I haven't done it for a while and maybe firefox 4.0 does it differently this time?

    See:
    * https://support.mozilla.com/kb/Recovering+important+data+from+an+old+profile
    * http://kb.mozillazine.org/Backing_up_and_restoring_bookmarks_-_Firefox

  • How to recover tabs after accidentally grouping then closing a tab group

    As far as I could tell, there's no way to retrieve tabs closed by closing a tab group. They weren't in "Recently closed tabs" or "Recently closed windows". Considering there was no warning asking if you'd like to close all these tabs without being able to get them back, it's pretty annoying.

    Only two data recovery programs I know of fit the bill:
    Subrosasoft Filesalvage
    Prosoft Data Rescue
    Both run booted from CD.
    If neither helps you may need an expensive data recovery firm.
    In the future always backup your data*:
    http://www.macmaps.com/backup.html
    - * Links to my pages may give me compensation.

  • Droping all tables in a schema

    how to drop all tables in a schema with out logging in that schema and having logged in as sys user?
    Thanks in advance
    Edited by: Prasanna.N on May 17, 2010 11:48 PM

    Prasanna.N wrote:
    Hi,
    i get this error
    ERROR at line 5:
    ORA-06550: line 5, column 9:
    PLS-00103: Encountered the symbol "end-of-file" when expecting one of the
    following:
    begin case declare end exception exit for goto if loop mod
    null pragma raise return select update while with
    <an identifier> <a double-quoted delimited-identifier>
    <a bind variable> << close current delete fetch lock insert
    open rollback savepoint set sql execute commit forall merge
    pipe
    when giving
    begin
    for t in (select table_name from dba_tables where owner = 'SCOTT')
    loop
    execute immediate 'drop table SCOTT.' || t.table_name || 'purge';
    end loop;
    /I just wrote for loop, of course you have to write inside begin..end block:
    begin
    for t in (select table_name from dba_tables where owner = 'SCOTT')
    loop
    execute immediate 'drop table SCOTT.' || t.table_name || '  purge';
    end loop;
    end;
    /

Maybe you are looking for

  • The shared librery is not working after the update!!!!

    I use to have the music on my mini shared with my other computer. This configuration is working well at least for a year. After the recent upgrade instead the shared library is not seen anymore. There are no firewall in my lan, the sharing option is

  • 1st gen ipod shuffle is recognize by PC but not in Itunes 10.4.

    i was not using my 1st gen for a year now and decided to resurrect it now, when i plug it in my PC,itunes says that i should update it and reset,so i did.but after updating and resetng my shuffle, itunes cannot recognize it anymore.i tried all the st

  • How to stop Third Party Order PR creation in Data Migration

    Dear All, We are having an issue with Purchase Requisition's which are getting created automatically when Third party sales Orders Transaction data is uploaded into the new client. The Third Party Orders already have PR's from MM side in Database. Ki

  • Illustrator CS5 Instalation Problem on Mac OSX 10.5.8

    I have tried instaling this software multiple times and am getting errors in the program that reinstalling doesn't seem to fix. Here are the errors I'm getting: When opening a new document, I get the error: "Can't locate the Startup Profiles. Please

  • Can't Access some URL and outlook

    Hi, I am having problem in accessing http://www.ncbi.nlm.nih.gov/ (PubMed) I am an academic and I need to access this page very regularly. I can access from mu university but not from home it gives message "the page is not aviliable". The second prob