How to recover data and log

Hello, everyone
I re-installed my windows XP due to virus with the maxdb data and log files left. After that I reinstalled maxdb 7.6 again. How can I recover the db with the existed data and log ? I did not backup the db. I can not figure out a way. Please help me.
Chu

Hi Chu,
creating a MaxDB instance from the data- and logvolumes is not difficult, but some requirements have to be fullfilled:
- you still have the parameter file left
- you still know the password of the database manager operator (DBM in OpenSource or CONTROL for SAP instances)
That given, all you've to do is to re-register the database, via the db_create command:
dbmcli -R "
So, let's go for an example.
I've a database called DB77, the dbm operator is called control, password is also control.
I'll drop the database but keep the files (just like you have it ... hopefully) and re-register the database afterwards:
>dbmcli db_enum
OK
DB77    C:sapdbdb77db                        7.7.02.16       fast    offline
DB77    C:sapdbdb77db                        7.7.02.16       slow    offline
>dir c:sapdbdataconfig
Datenträger in Laufwerk C: ist Boot
Volumeseriennummer: 08C7-EC59
Verzeichnis von c:sapdbdataconfig
24.03.2008  13:37    <DIR>          .
24.03.2008  13:37    <DIR>          ..
25.10.2007  14:11            12.739 .M770216
25.10.2007  14:11            97.900 .M770216.pah
25.10.2007  14:11             1.536 .M770216.upc
14.02.2008  02:21            20.579 .M770323
14.02.2008  02:21           201.850 .M770323.pah
14.02.2008  02:21             1.536 .M770323.upc
14.03.2008  02:23            20.795 .UMDB
14.02.2008  02:24            20.795 .UMDB.01
25.10.2007  14:24            20.795 .UMDB.02
14.03.2008  02:23                26 .UMDB.cfg
14.02.2008  02:24           207.625 .UMDB.pah
25.10.2007  14:24             2.048 .UMDB.upc
14.03.2008  09:23            13.405 DB77  
13.03.2008  23:51            13.405 DB77.01
11.03.2008  20:10            13.405 DB77.02
14.02.2008  02:21            13.405 DB77.03
14.02.2008  02:17            13.405 DB77.04
24.01.2008  19:06            13.405 DB77.05
11.01.2008  18:57            13.405 DB77.06
31.12.2007  01:40            13.405 DB77.07
26.12.2007  14:40            13.404 DB77.08
26.12.2007  14:20            13.181 DB77.09
26.12.2007  14:01            13.181 DB77.10
14.03.2008  09:23                75 DB77.cfg
02.12.2007  18:24               648 DB77.mmm
11.03.2008  20:16           343.475 DB77.pah
24.03.2008  13:37             2.048 DB77.upc
14.02.2008  02:20    <DIR>          install
              27 Datei(en)      1.101.476 Bytes
               3 Verzeichnis(se), 20.064.083.968 Bytes frei
Ok, the database is currently correctly registered and the parameter file is present. Now let's drop the database:
>dbmcli -d db77 -u control,control db_drop withoutfiles
OK
>dir c:sapdbdataconfig
Datenträger in Laufwerk C: ist Boot
Volumeseriennummer: 08C7-EC59
Verzeichnis von c:sapdbdataconfig
24.03.2008  13:37    <DIR>          .
24.03.2008  13:37    <DIR>          ..
25.10.2007  14:11            12.739 .M770216
25.10.2007  14:11            97.900 .M770216.pah
25.10.2007  14:11             1.536 .M770216.upc
14.02.2008  02:21            20.579 .M770323
14.02.2008  02:21           201.850 .M770323.pah
14.02.2008  02:21             1.536 .M770323.upc
14.03.2008  02:23            20.795 .UMDB
14.02.2008  02:24            20.795 .UMDB.01
25.10.2007  14:24            20.795 .UMDB.02
14.03.2008  02:23                26 .UMDB.cfg
14.02.2008  02:24           207.625 .UMDB.pah
25.10.2007  14:24             2.048 .UMDB.upc
14.03.2008  09:23            13.405 DB77
13.03.2008  23:51            13.405 DB77.01
11.03.2008  20:10            13.405 DB77.02
14.02.2008  02:21            13.405 DB77.03
14.02.2008  02:17            13.405 DB77.04
24.01.2008  19:06            13.405 DB77.05
11.01.2008  18:57            13.405 DB77.06
31.12.2007  01:40            13.405 DB77.07
26.12.2007  14:40            13.404 DB77.08
26.12.2007  14:20            13.181 DB77.09
26.12.2007  14:01            13.181 DB77.10
14.03.2008  09:23                75 DB77.cfg
02.12.2007  18:24               648 DB77.mmm
11.03.2008  20:16           343.475 DB77.pah
24.03.2008  13:37             2.048 DB77.upc
14.02.2008  02:20    <DIR>          install
              27 Datei(en)      1.101.476 Bytes
               3 Verzeichnis(se), 20.064.083.968 Bytes frei
>dbmcli db_enum
OK
As we see, the database is gone - but  due to the withoutfiles flag all files are left in place. Therefore we can reregister the database rightaway:
>dbmcli -R C:sapdbdb77db db_create DB77 control,control
OK
>dbmcli db_enum
OK
DB77    C:sapdbdb77db                        7.7.02.16       fast    offline
DB77    C:sapdbdb77db                        7.7.02.16       slow    offline
>dir c:sapdbdataconfig
Datenträger in Laufwerk C: ist Boot
Volumeseriennummer: 08C7-EC59
Verzeichnis von c:sapdbdataconfig
24.03.2008  13:42    <DIR>          .
24.03.2008  13:42    <DIR>          ..
25.10.2007  14:11            12.739 .M770216
25.10.2007  14:11            97.900 .M770216.pah
25.10.2007  14:11             1.536 .M770216.upc
14.02.2008  02:21            20.579 .M770323
14.02.2008  02:21           201.850 .M770323.pah
14.02.2008  02:21             1.536 .M770323.upc
14.03.2008  02:23            20.795 .UMDB
14.02.2008  02:24            20.795 .UMDB.01
25.10.2007  14:24            20.795 .UMDB.02
14.03.2008  02:23                26 .UMDB.cfg
14.02.2008  02:24           207.625 .UMDB.pah
25.10.2007  14:24             2.048 .UMDB.upc
14.03.2008  09:23            13.405 DB77
13.03.2008  23:51            13.405 DB77.01
11.03.2008  20:10            13.405 DB77.02
14.02.2008  02:21            13.405 DB77.03
14.02.2008  02:17            13.405 DB77.04
24.01.2008  19:06            13.405 DB77.05
11.01.2008  18:57            13.405 DB77.06
31.12.2007  01:40            13.405 DB77.07
26.12.2007  14:40            13.404 DB77.08
26.12.2007  14:20            13.181 DB77.09
26.12.2007  14:01            13.181 DB77.10
14.03.2008  09:23                75 DB77.cfg
02.12.2007  18:24               648 DB77.mmm
11.03.2008  20:16           343.475 DB77.pah
24.03.2008  13:42             2.048 DB77.upc
14.02.2008  02:20    <DIR>          install
              27 Datei(en)      1.101.476 Bytes
               3 Verzeichnis(se), 20.064.083.968 Bytes frei
>dbmcli -d db77 -u control,control db_online
OK
Database reregistered, all files are OK, database online. We're done.
Anyhow, you should in any case perform a backup before you reinstall your machine the next time. I don't know if you've still got all the files I mentioned, but if not - it's not possible to get your database back easily - if at all.
Hope that helps,
Lars

Similar Messages

  • How to recover data and system in MacBook Pro?

    I have a MacBook Pro. I have now problem about booting the system. The GRAY logo comes with blinking by a "Stop" logo and the system can not open. When I use the Mac Installation DVD (Snow Leopard) all my data goes to be erased after installing a fresh one.
    Shall I recover my Mac?
    If I couldn't recover and was forced to install a fresh OS, is it possible to recover data after having the fresh installation?
    Thank you
    Diako

    diakomacdiako wrote:
    If I couldn't recover and was forced to install a fresh OS, is it possible to recover data after having the fresh installation?
    Not much, but you can install OS X on a extenral drive, boot from it and recover files, then do the erase and install.
    Create a data recovery/undelete external boot drive

  • How to defrag after Shrinking the data and log every night

    OK, my shop has a shrink job that runs every night. It shrinks the data and log files. DBCC SHRINKFILE (filename,1). We have recovery model Simple.
    So reading that SHRINK is horrible for the data file because of fragmentation, so looking to stop the daily job. BUt this job has been running everyday for years right after the ETL. We have a big nightly ETL process that (1) truncates several
    hundred SQL tables and then BULK INSERT from the AS400 (2) for really large tables we just bring in the last X number of days from the AS400 and insert those records into the SQL table. We have very few indexes, but do have some on the really
    large tables. FYI - The SQL Servers are at the clients' sites.
    What kind of fragmentation has the SHRINK on the data file caused? how would it affect the ETL, and retrieval of data during the day? how can the fragmentation be fixed? 

    Hello,
    Databases suffer from fragmentation on indexes as explained
    here, but they suffer from physical fragmentation at the storage level also. 
    When the shrinking process shrinks a data file and recover space from the disk and the data file needs to grow again as part of your ETL process the new portion of the data file will rarely be contiguous to the rest of the data file on disk, and if this
    shrink process happens many times, the data file may be spread among many tracks on the disk. This increases the disk requests required to write data on a fragmented data file and increases disk requests to create new data files. In general, fragmentation
    will originate that what should be a simple I/O request has to be broken on many disk requests, making disk activity and performance less predictable and making disk queues larger.
    My suggestion is to stop sql server services during maintenance window, defragment disk using the Windows Defrag tool or a third party tool, when finish start SQL Server services again, then defrag indexes on your databases.
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • How to recover data in iPhoto?

    How to recover data from iphoto?

    I haven't done any conscious backup.
    Time to start. Now. Using a computer without a back up is like driving without a seat belt. You'll be fine as long as nothing goes wrong, but if something does go wrong it'll be a much bigger mess.
    Download iPhoto Library Manager and use its rebuild function. (In early versions of Library Manager it's the File -> Rebuild command. In later versions it's under the Library menu.)
    This will create an entirely new library. It will then copy (or try to) your photos and all the associated metadata and versions to this new Library, and arrange it as close as it can to what you had in the damaged Library. It does this based on information it finds in the iPhoto sharing mechanism - but that means that things not shared won't be there, so no slideshows, books or calendars, for instance - but it should get all your events, albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.

  • F110 Status - Printing data and log have been deleted

    Hi All,
    We have an issue with F110 transaction. In the status a message is being displayed as 'Printing data and log have been deleted'. As I am new to Finance, I could not get what that message mean. Can you please explain what could be the reason for this message.
    Thank you,

    Hi Guru's,
    I have a similiar issue. Created a check run yesterday and went through all the steps...
    - Parameters have been entered
    - Payment proposal created
    - Payment run has been carried out
    - Posting orders 77, generated, 77 completed.
    *- Printing Data and log have been deleted *
    I can not remember what I click on and it cause this.
    Please can someone help and tell me know how can I either re-run this check run I mean the physical checks or how can I go about this and delete this run and re-run from Scratch.
    Best Regards,
    Yassmen

  • Change the Data and Log file locations in livecache

    Hi
    We have installed livecache in unix systems in the /sapdb mount directory where the installer have created sapdata and sapdblog directories. But the unix team has already created two mount direcotries as follows:
    /sapdb/LC1/lvcdata and /sapdb/LC1/lvclog mount points.
    While installing livecache we had selected this locations for creating the DATA and LOG volumes. Now they are asking to move the DATA and LOG volumes created in sapdata and saplog directories to these mount points. How to move the data and log file and make the database consistent. Is there any procedure to move the files to the mount point directories and change the pointers of livecahce to these locations.
    regards
    bala

    Hi Lars
    Thanks for the link. I will try it and let u know.
    But this is livecache (even it uses MaxDB ) database which was created by
    sapinst and morover is there any thing to be adjusted in SCM and as well as
    any modification ot be done in db level.
    regards
    bala

  • How to recover SMS and phone contact information a...

    How to recover SMS and phone contact information after *#7370# reset of Nokia E71?
    No backup was available.
    Thanks.

    Actually, both the SMS and the phone numbers were gone. I thought that *#7370# was a soft reset without data loss, yet I lost all SMS and phone numbers as said. I did the soft reset because the Nokia E71 was stuck after the PIN password sometimes and I had to try several times to enter. It is a new phone with just a few days of use.
    Anyway, I am most interested on recovering the SMS data if that is possible. I was thinking on something like this:
    How to recover a deleted SMS
    http://www.dekart.com/howto/howto_sim_reader/how_to_recover_a_deleted_sms
    So, the question seems to be: does *#7370# on the Nokia E71 deletes the SMS data, or does it only mark them as deleted? It the latter, it should be possible to recover them. And then, how?
    Thanks again.

  • Steps to move Data and Log file for clustered SQL Server

    Hi guys 
    we have Active'passive SQL 2008R2 cluster environment.
    looking for steps to move Data and log files from user Database  and System Database for  SQL Server Clustered Instance. 
    Currently Data and log  files resides on same drive for user and system Databases..
    Thanks
    Please Mark As Answer if it is helpful. \\Aim To Inspire Rather to Teach A.Shah

    Try the below link
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/468de435-3432-45c2-a50b-23519cd2686e/moving-the-system-databases-in-a-sql-cluster?forum=sqldisasterrecovery
    -Prashanth

  • How do you date and time stamp iCal entries?  We share an event calendar and need to know when a new event was entered into iCal.

    How do you date and time stamp iCal entries?  We share an event calendar and need to know when a new event was entered into iCal.

    BKBK,
    Thank you for your response. That does adequately cover the
    client-originated sessions, but still leaves the ability I am
    looking for unavailable.
    It did serve to definitively answer my most pressing
    question, however, with this statement:
    Note: ColdFusion cannot create a session if an initiator
    application uses a SendGatewayMessage method to start an
    interaction with a client, such as an SMS user. In this case, the
    sending code must keep track (for example, in a database) of the
    messages it sends and their destinations. When a response event
    arrives, it can look up the origniatorID to determine whether it
    was in response to an outgoing message.
    I will play around with the Application scope to see if there
    might be a workable solution there.
    RLS

  • How to compare date and time together

    Hi,
    How to compare Date and Time together?
    For example in a database table there are two fields rundate and runtime.  I want to compare these two with perticular date and time in the program.  Like, I want to pull all the records where the records's date and time are less than a perticular date and time in the program.
    Hope the question is clear...
    Thanks.
    Kavita

    Hi Kavita
    There is no as such Date and Time Comparision FM in Standard SAP  But You can define your own like this
    <b>FUNCTION ZAV4_COMPAREDATETIME.
    ""Lokale Schnittstelle:
    *"  IMPORTING
    *"     REFERENCE(DATE1) TYPE  DATS
    *"     REFERENCE(TIME1) TYPE  TIMS
    *"     REFERENCE(DATE2) TYPE  DATS
    *"     REFERENCE(TIME2) TYPE  TIMS
    *"  EXPORTING
    *"     VALUE(TWOISMORETOPICAL) TYPE  C
      twoismoretopical = ''.
      if date2 > date1.
        twoismoretopical = 'X'.
      else.
         if date2 = date1 and time2 > time1.
           twoismoretopical = 'X'.
         endif.
      endif.
    ENDFUNCTION.</b>
    Regards
    Mithlesh

  • How the Payload Message and Logs are stored in the B1i Database Table: BZSTDOC

    I would appreciate it if someone could provide any documentation regarding B1i database further maintenance.
    for example:
    I want to know how the payload message and logs are stored in the table BZSTDOC, and how can we retrieve the payload message directly from the column DOCDATA.
    As described in the B1iSNGuide05 3.2 LogGarbageCollection:
    to avoid the overload of the B1i Database, I set the Backup Buffer to 90 days : so this means Message Logs from the last 90 days will always be available, but is there some way we can save those old messages to a disk so that I can retrieve the payload message anytime?
    in addition, let’s assume the worst, the B1iSN server or the B1i database damaged, Can we just simply restore the B1i database from a latest backup DB then it can work automatically after the B1iSN server is up and running again?
    BR/Jim

    Dear SAP,
    Two weeks passed, I still haven't received any feedback from you guys.
    Could you please have a look at my question?
    How is this Question going? Is it Untouched/Solving/Reassigned ?

  • How describe model data and  get select in DB throw topLink.

    Hello,
    I have table from code
    create table t_tree
    id int primary key,
    parent_id int,
    value varchar2(255)
    Alter table t_tree
    add constraint constr_id_parent foreign key (parent_id) references t_tree (id)
    I must get query
    select level as lv,lpad('-@-', (level-1)*2)||value as MMM, t.* from t_tree t
    connect by prior id=parent_id
    start with T.PARENT_ID is null
    How describe model data and get select in DB throw topLink.
    Dema.

    So you'll probably have to write a function which uses dynamic SQL to retrieve the desired message text, like this untested one:
    CREATE OR REPLACE FUNCTION get_msg(p_db IN VARCHAR2,
                                       p_id IN NUMBER)
       RETURN VARCHAR2
    IS
       msg_txt  VARCHAR2(4000);
    BEGIN
       -- make sure p_db is a valid database link ...
       EXECUTE IMMEDIATE 'SELECT d_msg FROM msg@' || p_db || ' WHERE t_id = :id' INTO msg_txt USING p_id;
       RETURN msg_txt;
    EXCEPTION
       WHEN NO_DATA_FOUND THEN
          RETURN NULL;
    END get_msg;
    /The you can update likeUPDATE mex
       SET t_msg = get_msg(db_id, t_id);Hth, Urs

  • Do we need to format data and log files with 64k cluster size for sql server 2012?

    Do we need to format data and log files with 64k cluster size for sql server 2012?
    Does this best practice still applies to sql server 2012 & 2014?

    Yes.  The extent size of SQL Server data files, and the max log block size have not changed with the new versions, so the guidance should remain the same.
    Microsoft SQL Server Storage Engine PM

  • How to display date and time on jsf page

    Hi,
    how to display date and time on jsf page
    we are using 11.2.0.0 jdeveloper on windows.
    thanks
    Edited by: user12187801 on 26-Jul-2012 01:42

    Your question is certainly lacking some information.
    If you want a constantly updating date/time - then JavaScript is your best bet, and Google would find you examples like [url http://www.webestools.com/scripts_tutorials-code-source-7-display-date-and-time-in-javascript-real-time-clock-javascript-date-time.html]this
    If you meant something else, then it's back to you to explain.

  • How to set date and time on apple tv

    how to set date and time on apple tv

    Assuming this is not the first time you have used your Apple TV
        1.    You might try restarting the Apple TV by removing ALL the cables for 30 seconds.
        2.    Also try restarting the router.
        3.    If the problem persists, try a restore, you may want to try the previous procedures several times before doing this.
    If this is a new Apple TV, it may also be that your network router is not allowing access to the timeserver, check that your router allows access over port 123.

Maybe you are looking for

  • How to open (run) report on client in excel ?

    Hello experts, i am using ERP having forms 10g and database 10g. in current scenario , when i run report , i will run in PDF format. when there is need to convert it in Excel then i have to use software Rep2Excel.exe software in d2k's HTML folder (fo

  • "Your firefox profile cannot be loaded. It may be missing or inaccessible." How do I fix this?

    I recently opened firefox after not using it for a long time. It asked me to update my profile or clean up my profile or something for a "better firefox experience". So I followed the directions and my computer froze stuck on a screen that said that

  • Transactional Figure in BPC

    Hi All, I have situation here, I'm loading a .CSV file with column on GL Account and Cost Centre and Val in Rep Cur, after scheduling package I get error message "Mapping error: The dimension does not exist in the application. [VAL.IN REP.CUR.] Ideal

  • Invoices that were on hold;

    Hi, How should i get below information.Plz help me... invoices that were on hold; and had been manually released from hold, validated (ready to be picked up by payment batch runs) but not yet paid in a period

  • How to get shape layers? (whitout select adjustements layers)

    Hi, Shape layers and Adjustement Layer "Color fill" shares the same LayerKind. How can I difference them? ShapeLayerObject.kind == LayerKind.SOLIDFILL // true ColorFillLayerObject.kind == LayerKind.SOLIDFILL // true Thanks !