RESTORING THE DATABASE AFTER BEING EDITED OR DELETED

How to restore the database after being edited? I m using sql server 2008 R2, I've done backup with some foolish knowledge and many tables have disappeared from the database. I want to get them back. Please help me.

Do you have backup which includes data which has been edited/removed by you .If so below query might help.
use master
go
alter database db_name set single_user with rollback immediate
go
restore database db_name from disk='locaion of backup'
with replace,recovery
If you have transaction lgo backups as well please dont use above method.In such case you will need to  first restore full backup with no recovery like below and then apply all transaction logs with no recovery
but the last transaction log with recovery( last trn log just before you edited)
use master
go
alter database db_name set single_user with rollback immediate
go
restore database db_name from disk='locaion of backup'
with replace,norecovery
Hope this helps
More details in below link
http://www.karaszi.com/SQLServer/info_minimizing_data_loss.asp
Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

Similar Messages

  • When iam restoring the database getting error

    hi ,
    when iam restoring the database getting following error :
    SELECT schemaname FROM syscat.schemata WHERE schemaname='SAPTOOLS'
    SQL1328N An implicit connection attempt failed. The database alias name or database name "TPD" was not found in the local database directory.
    SQLSTATE=42705

    Hi,
    What is your ABAP connect user. its should be same as source.
    and
    SQL1024N
    A database connection does not exist.
    Explanation
    There is no connection to a database. Other SQL statements cannot be processed unless an SQL CONNECT was previously executed.
    The command cannot be processed.
    User response
    If the error occurred when disconnecting from the database, continue processing. If the error occurred on another SQL statement, issue an SQL CONNECT statement and resubmit the command or statement.
    IN addition
    db2 connect to SID
    It will show you the default database schema connection
    After that,execute db2 ger db cfg for SID
    It will show you the DB2 parameter values for your schema
    There`s a concept of DBM or database manager, the configuration of which you can check with:
    db2 get dbm cfg
    DBM is the super-set and DB Schema is the subset
    Thanks
    Sadiq
    Edited by: sadiq iqbal on Jan 12, 2012 5:57 PM

  • Problem in Restoring the database

    Hi,
    I want to restore the database
    RMAN> startup force mount;
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of startup command at 07/20/2009 17:06:56
    RMAN-04014: startup failed: ORA-12514: TNS:listener does not currently know of s
    ervice requested in connect descriptor
    can anybody help on this.

    Hi,
    ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
    Cause:      The listener received a request to establish a connection to a database or other service. The connect descriptor received by the listener specified a service name for a service (usually a database service) that either has not yet dynamically registered with the listener or has not been statically configured for the listener. This may be a temporary condition such as after the listener has started, but before the database instance has registered with the listener.
    Action:      
    - Wait a moment and try to connect a second time.
    - Check which services are currently known by the listener by executing: lsnrctl services <listener name>
    - Check that the SERVICE_NAME parameter in the connect descriptor of the net service name used specifies a service known by the listener.
    - If an easy connect naming connect identifier was used, check that the service name specified is a service known by the listener.
    - Check for an event in the listener.log file.
    Regards,
    Tom

  • Restoring the database from Coldbackup

    Hi Gurus,
    I have a cold back up files belongs to oracle 9i on Solaris 5.10. I wanted to restore the database and need to upgrade the Oracle 10g (10.2.0.3.0) on linux.
    All these process need to handle with out RMAN. What are the prerequisite information need to collect on source and target systems.
    Please guide me.
    Thanks,
    Tippu

    Azar wrote:
    Better install Oracle 10g on the new server and after import oracle 9i database into new server database.I would say that this depends on database size and database downtime that can be accepted: for small database and no short downtime constraint, I agree but for large database and limited downtime constraint this may not be a good choice.

  • Cannot complete your request because the database is being refreshed

    I created provisioned one user in Shared Services and then assigned to a group. After this I went to workspace in advance mode in order to manage security filters, the user does not appear and when I try to "create" an existing user, an error appears: Cannot complete your request because the database is being refreshed
    I'm not running any refresh in the database and my EAS does not show anything. What could be happening? It is Hyperion Planning 11.1.1.3
    Regards,

    Than you John,
    I executed the cmd and this appeared after entering the password, I understand that the application has been unlocked, doesn't it?
    [INFO] RegistryLogger - REGISTRY LOG INITIALIZED
    [INFO] RegistryLogger - REGISTRY LOG INITIALIZED
    D:\Hyperion\common\config\9.5.0.0\product\planning\9.5.0.0\planning_1.xml
    displayName = Planning
    componentTypes =
    priority = 50
    version = 9.5.0.0
    build = 1
    location = D:\Hyperion\products\Planning
    taskSequence =
    task =
    *******D:\Hyperion\common\config\9.5.0.0\registry.properties
    using Java property for Hyperion Home D:\Hyperion
    Setting Arbor path to: D:\Hyperion\common\EssbaseRTC\9.5.0.0
    Setting HBR Mode to: 2
    =2013-11-06 11:07:30,926 WARN main com.hyperion.hbr.security.HbrSecurityAPI - Er
    ror retrieving user by identity
    d{ISO8601} WARN main com.hyperion.hbr.security.HbrSecurityAPI - Error retrieving
    user by identity
    Embedded HBR initialized.
    d{ISO8601} INFO main com.hyperion.audit.client.runtime.AuditRuntime - Audit Clie
    nt has been created for the server http://stlwlahyapprd01.na.ds.monsanto.com:280
    80/interop/Audit
    Reaquired task list lease: Wed Nov 06 11:07:31 CST 2013: 1383757651285
    The application has been successfully unlocked
    d{ISO8601} INFO pinging com.hyperion.audit.client.cache.AuditConfigFilter - Clie
    nt Enable Status false
    d{ISO8601} INFO Thread-22 com.hyperion.audit.client.cache.AuditConfigFilter - Cl
    ient Enable Status false
    d{ISO8601} INFO filterConfig com.hyperion.audit.client.cache.AuditConfigFilter -
    Client Enable Status false

  • Images burn into the screen after being there for only a few minutes?

    What's wrong with my mac if images burn into the screen after being there for only a few minutes?
    I can have an icon, like a folder or something, on my desktop for only a few minutes and then when I move it an image of it will be burned into the screen for another few minutes. Same thing happens with having a webpage open for a few minutes or word document. What part of my computer is malfunctioning and is Apple responsible for repairing it?

    Hi,
    Does it happen on all desktops applications as well as Modern UI Apps? Since this issue only happened recently, I suspect a newly-installed third party program causes this issue, please check these programs if possible.
    We can also boot into clean boot mode, test the issue.
    http://support.microsoft.com/KB/929135
    Run a virus scan to eliminate some malware\virus
    Similiar issue
    https://social.technet.microsoft.com/Forums/en-US/125204a0-937e-4bc6-bb60-8fe3244b4514/all-windowsapplications-keep-minimizing-on-their-own-windows-81?forum=w8itprogeneral 
    Yolanda Zhu
    TechNet Community Support

  • IPhoto for iOS removes the GPS exif data from the photo after an edit

    iPhoto for iOS removes the GPS exif data from the photo after an edit
    Using the iPhone camera, I take a photo and then I want to make the photo a little brighter.
    So, I edit a photo using iPhoto for iOS and then save the photo back to the camera roll.
    Now, I might want to see where that photo was taken via another app (like Photo Mapo) or on the map using the Photos app, or even the Mac iPhoto app.
    However, the GPS data has been removed. Looks like all of the other exif data is still in the photo.
    Why not just have a feature to remove the GPS data if the user wants? no reason to remove it for them.
    The user explictily chose to have location services turned on so the GPS data would be in the photo.
    Is this a bug?
    Thanks,
    Brian.

    First thing to try is a reboot of your iPad. Press and hold the Home and Sleep buttons simultaneously ignoring the red slider until the Apple logo appears. Let go of the buttons and let the iPad restart. See if that fixes your problem.
    None of my cameras has a GPS function so I never see that data in the info of a photo in iPhoto for iOS. But I do see the map choice to set a location for the photo. Perhaps a reboot will fix this for you.

  • Imovie song does not start at the beginning after I edited the duration of the clip

    my imovie song does not start at the begining after I edited the duration of my clips. The audio clip now starts in the middle of the song. This is occuring with the second song in my video. How do I adjust the audio to start at the beginning of the song.

    For pop ups. From your Safari menu bar click Safari > Preferences then select the Security tab.
    Select:  Block pop-up windows
    safari starts always with top page even I have apple.com as a starting window
    Back to Safari > Preferences. This time select the General tab. You can reset your homepage from there.
    history its not saving or at least not showing when i press the thingy that looks like a little book on the tools bar
    That icon represents your Bookmarks not history.
    To view history, from your Safari menu bar click History > Show History
    Or Option + Command + 2 on your keyboard.

  • Restore the database or tablespace from a old backup piece

    Hi All,
    We have the senerio like this.
    Day 1 : Took the complete database backup in RMAN
    Few changes done in database
    Day 2 : Took the complete database backup in RMAN
    Few changes done in database
    At day 3 if we wanto restore the database to Day 2 backup we can simply use restore database and recover database.
    Supose if we wan to restore the day 1 backup, please let me know if this will work.
    run
    set until time "to_date('10-06-2009 08:00:00','DD-MM-YYYY HH24:MI:SS')";
    restore database;
    recover database;
    Or is there any other way to do that.
    Please advice,
    Thanks & Regards,
    Rakesh

    It will work if you are running in archive mode and you have day 1 backup files available for RMAN.
    I recommend saving the current control file and restoring the original day 1 control file before you issue the resote / recover command.
    Oded
    [www.dbsnaps.com]
    [www.orbiumsoftware.com]

  • Is there a FM that lets you know whether the database is being locked/down?

    Dear experts,
    I have a situation here where i need to know if the database is being locked or being down.
    I understand that there is a DBID that will determine its availability.
    Thanks for your kind assistance.
    Regards
    Earl

    hi
    for locking:
    CALL FUNCTION 'ENQUEUE_E_TABLE'
    EXPORTING
    tabname = 'ZTABLE'
    EXCEPTIONS
    foreign_lock = 1
    system_failure = 2
    OTHERS = 3.
    for Unlocking:
    CALL FUNCTION 'DEQUEUE_E_TABLE'
    EXPORTING
    tabname = 'ZTABLE'.

  • Restoring the database for the bcm using 2010 office pro

    I running win 7 professional and running the office 2010 professional using the bcm and it's working, but when I try restoring the database it gives me an error saying that I'm not the owner of the file. What's the problem?  I have backed up the from
    win 7 professional x'64' and trying to restore the file on a 32 bit application (office 2010 professional) I am the owner of the file that I'm trying to restore, and trying to avoid keying the transaction into the database on the 32 bit. Also I'm using the
    business contact manager to restore the file. Can anyone help? this is regarding outlook 2010 bcm.
    Mike Horrigan

    Hi Mike
    Try this
    Close Outlook
    Locate Outlook.exe on the file system
    Right-Click on Outlook.exe and select RunAs and Start Outlook as the Machine Administrator
    Then, try restoring the BCM Database
    Hope this helps!
    Larry - MSFT

  • Now wifi will not turn back on automatically in the morning after being turned off all night. Use to be ok before now. Is it the new update 7.1? Help

    Wifi will not turn back on in the morning after being turned off all night, it use to work for years. Is it the new 7.1 ?

    Yes that what I mean, after the phone has been turned off all night, when I turn it back on the morning the wifi will not turn on by itself. Eventually by turning off and on the main phone switch and the wifi in settings it sometimes come back on! Then I'm ok for the rest of the day even when I leave the house and come back it's ok. Only first thing in the morning, strange that it doesn't wake up like it use too.
    Thank you

  • How to retrieve data from the Database after deleting rows from VO ?

    Hello,
    I am using Jdeveloper 11.1.2.1.0
    I have a master and a child .
    So according my use case when a value in the master vo changes the corresponding child has to be deleted.
    but when i change back to any other value i want to undo the delete operation and get back the values in the child.
    Is there any way to do it?
    Regards,
    Nigel.
    Edited by: Nigel Thomas on Mar 29, 2012 5:07 AM
    Edited by: Nigel Thomas on Mar 29, 2012 5:09 AM

    Hi all,
    I want to do a validation based on a SelectOneChoice List Value.
    Based on which value in the select one choice is being selected, thedata from the VO should be DELETED or NOT-DELETED.
    To do this I wrote a Managed Bean and the delete part is working fine if a particular value of the SelectOneChoice is selected.
    Since the rows are deleted from the VO, after I change the SelectOneChoice value to the previous one I cannot retrieve the rows.
    I thought of two ways:
    1. As the Deleting option in the SelectOneChoice is selected the rows should be deleted from the VO and when reverted back to not-Deleting option the Rollback of Transaction method written in the Managed Bean should take place.
    2. As the Deleting option is selected the data should be deleted from the VO and when reverted back to non-Deleting option, a query should be made from the Database.
    The first plan was dropped because it is not VO-specific. If there are more than 1 VO in the page then whatever changes are made in the page will be reverted back as soon ad Rollback of transaction is done.
    So the now i am left to go with the second plan.
    Is there any way to implement the second plan?
    If so...Will it compromise the performance of the application?
    Or else, Is there any other way to implement my Use-Case ???
    Regards,
    Nigel.

  • 404 error after restoring the database

    Friends, our dba team restored the Flows_030000 schema after a complete monthly refresh of our server (RMAN restore). Now when I try to access the APEX admin page or any of the applications it gives me a 404 error saying '/pls/apex/apex_admin/ was not found on this server'.
    I looked at the apache error log file and found the following
    mod_plsql: /pls/apex/apex_admin HTTP-404 ORA-04063: package body "FLOWS_030000.WWV_FLOW_SECURITY" has errors
    ORA-06508: PL/SQL: could not find program unit being called
    ORA-06512: at "FLOWS_030000.F", line 276
    ORA-06512: at "FLOWS_030000.APEX_ADMIN", line 5
    ORA-06512: at line 10.
    The RMAN refresh is a regular monthly process for us it was going smooth for the past one year ever since we deployed Apex 2.2. Last month we upgraded it to 3.0 and this is the first refresh after the upgrade.
    I feel it is most probably a priveleges issue. But not sure what it could be.
    Guys, any thoughts or any experiences facing the same kind of situation?

    You could do a new install in a different database and see what privileges the FLOWS_030000 schema has that were granted by SYS, for example (don't use these results):
    SQL> select granted_role from dba_role_privs where grantee='FLOWS_030000';
    GRANTED_ROLE
    SELECT_CATALOG_ROLE
    RESOURCE
    CONNECT
    SQL> select privilege from dba_sys_privs where grantee='FLOWS_030000';
    PRIVILEGE
    CREATE OPERATOR
    DROP ANY DIRECTORY
    CREATE PROCEDURE
    CREATE JOB
    CREATE ANY CONTEXT
    CREATE DIMENSION
    CREATE MATERIALIZED VIEW
    ALTER DATABASE
    CREATE ANY DIRECTORY
    CREATE VIEW
    CREATE CLUSTER
    DROP USER
    DROP TABLESPACE
    CREATE ROLE
    CREATE PUBLIC SYNONYM
    CREATE SYNONYM
    CREATE TABLE
    CREATE INDEXTYPE
    CREATE TRIGGER
    EXECUTE ANY PROCEDURE
    SELECT ANY TABLE
    CREATE USER
    CREATE DATABASE LINK
    CREATE SEQUENCE
    ALTER USER
    CREATE TABLESPACE
    ALTER SYSTEM
    DROP PUBLIC SYNONYM
    ALTER SESSION
    CREATE LIBRARY
    CREATE TYPE
    31 rows selected.
    SQL>
    SQL> select owner||':'||table_name||':'||privilege from dba_tab_privs where grantee='FLOWS_030000' and grantor='SYS';
    SYS:EXPORT_FILES_DEMO:WRITE
    SYS:EXPORT_FILES_DEMO:READ
    SYS:DBMS_REGISTRY:EXECUTE
    SYS:UTL_FILE:EXECUTE
    SYS:UTL_SMTP:EXECUTE
    SYS:UTL_HTTP:EXECUTE
    SYS:DBMS_LOB:EXECUTE
    SYS:DBMS_LOCK:EXECUTE
    SYS:DBMS_SYS_SQL:EXECUTE
    SYS:DBMS_FLASHBACK:EXECUTE
    SYS:DBMS_RLS:EXECUTE
    SYS:DBMS_CRYPTO:EXECUTE
    SYS:WWV_FLOW_VAL:EXECUTE
    SYS:SEG$:SELECT
    SYS:TS$:SELECT
    SYS:OBJ$:SELECT
    SYS:USER$:SELECT
    SYS:ARGUMENT$:SELECT
    SYS:V_$SQL_PLAN:SELECT
    SYS:V_$PROCESS:SELECT
    SYS:V_$SESSION:SELECT
    SYS:V_$LOCKED_OBJECT:SELECT
    SYS:V_$SESSTAT:SELECT
    SYS:V_$MYSTAT:SELECT
    SYS:V_$SYSSTAT:SELECT
    SYS:V_$STATNAME:SELECT
    SYS:V_$PARAMETER:SELECT
    SYS:V_$DATABASE:SELECT
    SYS:V_$SQL:SELECT
    SYS:V_$OPEN_CURSOR:SELECT
    SYS:V_$TIMER:SELECT
    SYS:V_$SESSION_WAIT:SELECT
    SYS:V_$SESS_IO:SELECT
    SYS:DBA_PROFILES:SELECT
    SYS:ALL_COL_COMMENTS:SELECT
    SYS:DBA_COL_COMMENTS:SELECT
    SYS:DBA_COL_PRIVS:SELECT
    SYS:DBA_DB_LINKS:SELECT
    SYS:DBA_INDEXES:SELECT
    SYS:ALL_IND_COLUMNS:SELECT
    SYS:DBA_IND_COLUMNS:SELECT
    SYS:ALL_OBJECTS:SELECT
    SYS:DBA_OBJECTS:SELECT
    SYS:DBA_ROLLBACK_SEGS:SELECT
    SYS:USER_ROLE_PRIVS:SELECT
    SYS:DBA_ROLE_PRIVS:SELECT
    SYS:USER_SYS_PRIVS:SELECT
    SYS:DBA_SYS_PRIVS:SELECT
    SYS:ALL_SEQUENCES:SELECT
    SYS:DBA_SEQUENCES:SELECT
    SYS:DBA_SYNONYMS:SELECT
    SYS:ALL_SYNONYMS:SELECT
    SYS:ALL_TABLES:SELECT
    SYS:DBA_TABLES:SELECT
    SYS:ALL_TAB_COLUMNS:SELECT
    SYS:DBA_TAB_COLUMNS:SELECT
    SYS:ALL_TAB_COMMENTS:SELECT
    SYS:DBA_TAB_COMMENTS:SELECT
    SYS:DBA_TAB_PRIVS:SELECT
    SYS:ALL_USERS:SELECT
    SYS:DBA_USERS:SELECT
    SYS:ALL_VIEWS:SELECT
    SYS:DBA_VIEWS:SELECT
    SYS:ALL_CONSTRAINTS:SELECT
    SYS:DBA_CONSTRAINTS:SELECT
    SYS:ALL_CONS_COLUMNS:SELECT
    SYS:DBA_CONS_COLUMNS:SELECT
    SYS:DBA_TYPES:SELECT
    SYS:DBA_RECYCLEBIN:SELECT
    SYS:DBA_LOCK:SELECT
    SYS:ALL_ERRORS:SELECT
    SYS:DBA_ERRORS:SELECT
    SYS:DBA_SOURCE:SELECT
    SYS:ALL_TRIGGERS:SELECT
    SYS:DBA_TRIGGERS:SELECT
    SYS:DBA_TRIGGER_COLS:SELECT
    SYS:ALL_DEPENDENCIES:SELECT
    SYS:DBA_DEPENDENCIES:SELECT
    SYS:DBA_JOBS:SELECT
    SYS:DBA_SEGMENTS:SELECT
    SYS:DBA_EXTENTS:SELECT
    SYS:DBA_FREE_SPACE:SELECT
    SYS:DBA_DATA_FILES:SELECT
    SYS:DBA_TABLESPACES:SELECT
    SYS:DBA_RSRC_PLAN_DIRECTIVES:SELECT
    SYS:DBA_SNAPSHOTS:SELECT
    SYS:DBA_FEATURE_USAGE_STATISTICS:SELECT
    SYS:DBA_JAVA_POLICY:SELECT
    88 rows selected.
    SQL>
    You might want to do the same for FLOWS_FILES.
    Scott

  • Restoring the database backup daily after performing some changes on d'base

    Hi all,
    Im a JUNIOR DBA... please help me..
    I have an Oracle 10g database and i have taken a cold backup for the same.(Say i have 10 users)
    MONDAY - Now, suppose out of the existing 10 users, i updated 6 tables in each user, so the total updated tables are 60 tables, these tables are only for TESTING purpose.
    TUESDAY - Now, suppose out of the existing 10 users, i updated 4 tables in each user, so the total updated tables are 40 tables, these tables are only for TESTING purpose.
    Now the question is -
    Daily i need to restore the original database backup atleast once, where in i dont want the updated tables of say MONDAY..
    Please, let me know how to proceed
    Regards,
    - Sri

    Start with the backup and recovery guide. It will tell you how to work this scenario. Basically, you will restore Sunday backup and apply archived redo logs until you reach the point in time immediately before the changes you do not want.

Maybe you are looking for