I lost some tables, view, triggers from my schema

Hi all,
I have two DBA users in Oracle 10g Database, one user already have tables,views, procedures etc. i took a dump of old_schema and restore to new_schema. after some time i lost all views ,triggers and some table from old_schema, i lost this much objects from my old_schema, anybody have face this problem before, how can i recover it
Edited by: 911604 on Feb 1, 2012 10:53 AM

911604 wrote:
Hi all,
I have two DBA users in Oracle 10g Database, one user already have tables,views, procedures etc. i took a back up of first user restore to second user after some time i lost all views ,triggers and some table , why i lost this much objects from my user, anybody have face this problem before, how can i recover itWell bad karma, bad luck, some bad omen , anything can cause it isn't it!
Jokes apart, there is nothing that you have told to us which can enable us to suggest you something fruitful. Objects don't get dropped automatically so someone must have dropped them by himself. So ask around, check some auditing logs if you have to know who fired the commands. And if you don't have auditing records, mine the redo log files to find the same.
Aman....

Similar Messages

  • Generate table/view automatically from xsd

    Hello all,
    following requirement: I receive xml files and appropriate xsd. I don't want to parse the xml by hand (e.g. I know of the possibility to create views from xml with extract - extracting elements manually). Is it any possibility to achieve this:
    input: xml file with xsd -> automatical processing: something what I don't know -> output: view. How I already mentioned I just know of the possibility to extract the values manually. After a brief search I found DBMS_XMLSCHEMA.registerSchema but I don't know if it helps me. Registering xsd makes the DB know how the xml look like.
    Do you have any ideas?
    Thank you in advance for your answers. I appreciate any hint.
    Kind regards,
    Anton

    >
    But you don't have to program element 1 in column 1, element 2 in column 2 etc. It handles it automatically. You just say insert into <your table 1> ds.Tables["table1 from xml"].
    >
    it's look as
    insert into <table_name>
    select *
       from <some table or view>but
    what if table will be altered, say add column
    or
    what if
    select *
       from <some table or view>will be return more columns than in <table_name>
    you get errors
    as for
    >
    ds.Tables["table1 from xml"]
    >
    not sure what is work correctly on complex schema with complex type
    if you have simple xml
    you can try to parse it dynamically:
    - parse xml to find list of tags with path
    - create script which will be generate script for xml like
    select <columns>
    from <table>
    , xmltable (
    <columns>
    )then create view on the above script
    if your xml structure will be often changing then you must be recreate your script and recreate view
    for xml sample from xsd
    http://www.codeproject.com/Articles/400016/Generate-Sample-XML-from-XSD

  • I lived in the uk for some time and set up my itunes while I was there. Upon moving bnack I managed to get all my music back however after my mot recent iphone update, I lost some of my songs from the uk. Not all of them. HELP!

    I lived in the uk and have now lost some of the music I purchased there. Not all of the music. I still have reciept numbers. Can I get it back?

    try changing your appleID to whatever you were using when you were acessing the UK store.  Then try to re-download the purchased music.  I am not sure if re-downloading music works from the UK store, however.  It might be US only.  If this is the case, you will need to contact iTunes support.

  • HT4994 i have lost some of my contacts from my phone book

    I have lost some of my contacts

    Maybe you stored them on the e-mail account, check changing the filter of the contacts on the phone and checking where are they saving
    Go to Contacts and then groups, to see where are they located

  • TREE -  Built Only on Tables/Views Found in Application Schemas

    Problem
    When creating a "TREE" region using the wizard it prompts for a "schema name". The problem is that the table/view I would like to build a "TREE" on does not exist in the schemas listed by the wizard. Only the schemas that are associated with applications in the workspace are listed. It is not possible to base a "TREE" on a table/view that exists outside those schemas listed. This is a point of frustration because the parsing schema/user for my app has privileges to select from the table/view in the non-listed schema.
    Example
    Here is an example I tried. I want to create a tree of all breadcrumb entries (breadcrumb map) in a selected app. I used the data-dictionary view apex_application_bc_entries that is owned by FLOWS_020200. The view apex_application_bc_entries has a public synonym. My parsing schema user can select from that view.
    I selected create a TREE "Based on a SQL Query"
    SELECT aabe.breadcrumb_entry_id id
    ,aabe.parent_breadcrumb_id pid
    ,aabe.entry_label name
    ,aabe.url link
    ,null a1
    ,null a2
    FROM apex_application_bc_entries aabe
    WHERE application_id = :P20_APPLICATION_ID
    I'm using apex version build 2.2.0.00.32.
    Comment
    I understand a possible workaround would be to build a view of apex_application_bc_entries. That would be a "view of a view" and I prefer not to do that.
    Thoughts?
    Todd

    Have you duplicated the entire development environment on your laptop that exists on the other system, including data sources, databases or XML files, wherever the application is pulling the data from.
    Lawrence   *Adobe Community Expert*
       www.Cartweaver.com
       Complete Shopping Cart Application for
       Dreamweaver, available in ASP, PHP and CF

  • Modeling tables with objects from Sys Schema

    I want to model some tables that have Object Columns of type AnyData.
    Problem is I can't model them in Designer without screwing up generation.
    If I create an AnyData object in Designer it gets created in my Schema and the table points to that AnyData instead of the Sys.AnyData.
    How can this be resolved?

    I have above mention script utlrp.sql many times it is going into loop and unable to compile below 6 objects
    select owner,object_name ,count(*) from dba_objects where status='INVALID' Group by owner,object_name
    OWNER OBJECT_NAME COUNT(*)
    SYS DBMS_IJOB 1
    SYS DBMS_DEFER 1
    SYS DEFLOB 1
    PUBLIC DEFLOB 1
    SYS DBMS_DEFER_SYS 1
    SYS DBMS_DEFER_SYS_PART1 1
    6 rows select
    Kindly check above invalid objects. I am unable to copile.
    **Kindly tell me the procedure how can I compile manually**.
    Regards.
    Muzafar

  • What are the tables & Views related to  Authorization Schemes

    Hi,
    I want to export all the Authorization Schemes into csv or excel.
    Thanks,
    Raj

    Hi Scott,
    thanks for the quick response.
    So my question is then...
    I want to create a APEX Report which will give me the following information.
    1. Application and all the Pages associated with it, which I am getting from apex_applications and
    apex_application_pages. This is OK
    2. List of all the Database Objects (Table/View) which the individual page is using, I mean relation between Page ID and database object. HOW to get that???.....(I want for each individual page, the list all the database objects (tables/views), which that page is using)
    Thanks,
    Deepak

  • Copy all tables and data from remote schema to local schema

    Hi,
    I am using Oracle 10g Enterprise edition as a database and Windows 7 as the operating system.
    My Requirement is to copy all the tables and data from remote machine database to my local machine.
    I created a DB link between my location schema and remote machine schema. Database link created successful. Error what i am getting when i am trying to import all the tables from the remote data is as mentioned below
    I created a directory gave all the privilege to do read and write on the directory.
    Directory name : DUMP
    Local Schema name / PASSWORD : PRODUCTION / PRODUCTION
    Remote Schema name / Password : portal / m3892!2
    When i run this scrip from command prompt
    impdp PRODUCTION/PRODUCTION DIRECTORY=DUMP LOGFILE=LOCALPROD_MERUPROD.log network_link=MERU_DEV_LOCAL_PROD schemas=portal remap_schema=portal:PRODUCTION TABLE_EXISTS_ACTION=REPLACE
    It is giving me following error please suggest me what is the mistake i couldn't trace
    ORA-31631: privileges are required
    ORA-39149: cannot link privileged user to non-privileged user
    Thanks
    Sudhir

    Thanks I gave the grant permission for the "portal" remote user. I didn't not get the error. Issue am facing now is I need to copy the entire schema of production to my local system production.
    I am currently using the below script to copy. it not working. what might be the reason there is no error message coming but still i don't see any tables in my local system after executing this script
    impdp PRODUCTION/PRODUCTION DIRECTORY=DUMP LOGFILE=LOCALPROD_MERUPROD.log network_link=MERU_DEV_LOCAL_PROD schemas=portal remap_schema=portal:PRODUCTION TABLE_EXISTS_ACTION=REPLACE
    Or suggest me some other script to copy all the tables and procedure function from remote database to my local database using impdp script
    Thanks
    Sudhir

  • Cant view objects from another schemas

    Hi everybody!
    I have a 10.1.2 Jdeveloper and a 9.2.4 Oracle database.
    I successfully created a database connection.
    With provided login I can access to tables from another schemas in SQL Worksheet, but I cant see any objects from those schemas in the connection tree.
    What's wrong?

    The Schemas are being filtered so that you only automatically see the schema for the connection that you logged on with. To change the schemas that are visible you need to :
    1) Select the connection name in the Navigator (you should see that it has a filter icon overlaid showing that it is being filtered)
    2) Invoke the context menu and select 'Apply filters'
    3) Shuttle over the other Schemas you wish to see and press OK
    Regards,
    Lisa Sherriff
    JDev QA

  • How does one copy tables, views, etc. from one database to another?

    I do not have a strong DBA background but have been placed in charge of updating and migrating a number of tables and views across multiple databases.
    For the future I need a better workflow than exporting and importing tables to/from .csv files and copy and pasting the SQL from each individual view.
    Can somebody point me in the right direction? I'm happy to do some reading but have no idea where to look.

    The Export utility provides a simple way for you to transfer data objects between Oracle databases, even if they reside on platforms with different hardware and software configurations.
    When you run Export against an Oracle database, objects (such as tables) are extracted, followed by their related objects (such as indexes, comments, and grants), if any. The extracted data is written to an Export file.
    To use Export, you must run the script catexp.sql or catalog.sql (which runs catexp.sql) after the database has been created,Ensure there is sufficient disk or tape storage to write the export file,Verify that you have the required access privileges.
    Interactive Export Prompts
    If you prefer to let Export prompt you for the value of each parameter, you can use the following syntax to start Export in interactive mode:
    exp username/passwordExport will display commonly used parameters with a request for you to enter a value. This method exists for backward compatibility.
    let me know if you have any further query!

  • Create/Drop/Compile Table, Views, Triggers, Sequences, etc.

    Is there a way to create, drop, and compile objects on an Oracle database with the ADF library? If so, any good examples?
    Can the results be captured as well?

    Frank,
    Maybe I wasn't clear enough. The only example I saw that involved the blob column was number 85 which did not contain info for database maintance.
    I have a JClient application that reads database structures like triggers, tables, and views. I would like the user to be able to push a button and the trigger be compiled in the database. While SQL Dev probably has more features and does a better job I have added a bunch of internal stuff that would have to be manually added in SQL Dev each time a new trigger was created.
    Is there a way, when working with the current transaction(or new transaction), to issue a statement like you would in SQL*Plus "DROP TABLE EMPLOYEES;" with the results being "TABLE DROPPED"?
    thanks.

  • I lost some of my contacts from both my iphone 5 and ipad I for no reason at all...how can I obtain the info back?

    I woke up one morning this week to find that some of my contacts have been deleted from my iphone 5 and ipad first generation. This is very random and my icloud is not showing the missing numbers either. Does anyone know if there are any other back ups that apple has to the contact lists? or How I can retrieve them?

    Do you see those in www.icloud.com? Yes- sign in to icloud on the phone.
    No- how did you get those to the ipad?

  • I have lost some of my emails from hotmail

    some of my emails are not showing up when i open hotmail? how can i retrieve these?

    iTunes Store- Transferring purchases from your iOS device or iPod to a computer
    iTunes- Transferring media from your iPhone, iPad, iPod touch, or iPod
    Downloading past purchases from the iTunes Store, App Store, and iBooks Store
    Phone to Mac - Pod to Mac is a helpful third-party utility.

  • View objects from different Schema from Web Object Browser

    I am logged in as dba and try to view the tables of another schema.
    However in the object browser I can only select my own schema.
    This happens with whatever user I use.
    From sqlplus I can access or create tables for another schema without any problems.
    Is this not supported or am I doing something wrong?
    Thanks for the help.

    Can you assign multiple schemas to a workspace in the XE version of HTML DB?
    I haven't found where to do it.
    Is it not possible because there aren't really workspaces in this version?

  • Loaded dump from 12.5.4 to 15.7, Error 622 & Tables/Views not found

    Hi all,
    I am getting desperate trying to fix that issue. I had to import a dump from an ASE 12.5.4 into a new database on an ASE 15.7. I therefore enabled the compatibility mode server-wide and then proceeded to the load which seems to have performed correctly. The database seems well imported, and I can access most of the tables/views/procedures (from my C# application), but a procedure is giving me troubles.
    I am getting this error while executing a given procedure :
    Error: 622, Severity: 20, State: 1
    Opentable was passed a varno of 52. Object 'temp worktable' in database 'tempdb' already has that session descriptor in use. This occured while opening object id -1245236 in database id 2.
    I realised this was caused by a view which is used in this procedure but which is weird is that the error is not thrown when running the SQL code itself, out of the procedure context.
    I am using Toad for Sybase as a client, and realised I cannot access the data tab of the concerned view, Toad gives me the same error. So I cannot execute this view while it performs without any trouble on  the original server (production server which runs ASE 12.5.4).
    I also realised, when trying to execute some pieces of the query individually that I get warnings about unfound tables (and that I should use sp_help to fix the problem). Although, the tables actually exists and I can access their data.
    I have tried so many things and still cannot fix this problem. I've used 'upgrade_object', 'sp_recompile' on all tables, 'dbcc reindex' on all tables.
    Would you have any idea where the problem could come from? Thank you very much

    Thank you for your reply.
    Good to know that enabling compatibility mode before or after loading the load doesn't have any effect.
    I didn't drop/recreate all the SP and views but I can tell you I recreated a similar view and it causes the same issue.
    I had a look at your link yes. I have run 'dbcc upgrade_object' several times already, on the view and the procedures calling the view, and it won't solve anything.
    I've seen a similar post about the problem I have when executing the code itself of the view in a "normal" adhoc query (errors saying the tables are not found) : SAP Sybase Forums - ASE - Backup and Recovery - PRoblem after restore - Object does not exist.
    Could it be the same problem for me?
    Although I've tried splitting the SQL query and executing the parts individually and it works without any trouble. Problem is when the 2 parts of the view are put together. It may be something that was possible with ASE 12.5.4 but not with 15.7 and that compatiblity mode doesn't solve. My view consists of an union a two selects where both have left joins, case when then else, not in and a final group by (adding an order by doesn't help, as I tried).
    PS : I don't have access to the production server where the dump is actually from (but I could if it is really necessary)

Maybe you are looking for

  • Grouping refinement while grouping the search results in sku based indexing

    Hi, We are doing sku based indexing and for a business requirement we had to group the results by product. We were able to achieve this by setting the sorting attribute in the search request. sorting=property sortProperty=string:$repositoryId:1 But i

  • Do I need FTP -Fetch

    Hi. I am in the mist of creating a website and am not going to use .Mac but another web host. Do I need to purchase FTP-Fetch to upload my site or does iWeb have all that I need to accomplish this task? If it does, is it possible to "attach" it to my

  • Why do I get an error message that the IP address of my new Airport Extreme base station is invalid?

    I have tried several times to replace my Airport Express with Airport Extreme by following the instructions. These attempts were made with both options, Replace an Exiting Network and Create a New Network. I get to the Setup is Complete page and wait

  • Need help, no idea what's wrong...

    Hi, ummm i'm really not expierenced with this computer stuff... all I know is I hadn't used my ipod mini in a while and I updated the software for itunes/quicktime. Now itunes seems to work fine, but everywhere quicktime should run stuff... it just g

  • HT6114 The file couldn't be saved because you don't have permission.(513)

    Attempting upgrade from 10.9.1 to 10.9.2.  Get the "don't have permission" when attempting from AppStore.  Manual download pathway doesn't work either.  System reboots but no installation takes place.  Have performed "repair disk permissions" three t