Refresh database I need to automise the process

Hello All,
I need to automise the process of refreshing the database.
The scenario is:
I have one database intance and I need to copy the database to another instance every day.
How is the best way to do this?
Regards

There is a very simple way to do it, as most of the time these days, people want even reporting db into read-write mode for which depending on db size and transactions happening per day, you can consider replication too or other solution like log-shipping\db
mirroring if you have to have db in read - only mode.
Below ones are easy to follow if simple ways you want to follow, but first get smtp  access for  this server so that you can use alert for this.
Create a Sql  Server job to add step by keeping below step A, then add step to wait for backup, copy files steps to be done, like wait T-sql command. Then add final restoration step.
A). Create a batch file wherein you will be calling first job using osql.
B). Create a batch file wherein you will be calling restore job using osql.
1. Create and disable Sql Server Job to backup database. It shd have steps like backup, old files removal, success and failure alerts. Add step to call to Robocopy job for copy backup files.
2. Create and disable Robocopy backup file copy job to copy backup file to required server again with all options like copy just latest files, enable logging for copy. Add dos command to alert in case of success and failure message. This shd be one db at
a time so that error and success message can be handled properly. Once copy of file is done then move the backup files to archive folder. Again maintain some retention for all folders where you keep backup files.
3. Create and disable restore job on required server. Add steps like first kill all session for this db, bring db into single user mode, restore backup db, bring db into multi user mode, add any logins, fix required orphan users{If sql server 2012 use contained
db to carry on logins and password}, shrink log files to remove unwanted log space, success and failure accordingly. Once backup file gets restored then move the backup files to archive folder, so that by mistake also, nobody shd be able to restore it.
Thanks,
Santosh Singh

Similar Messages

  • My Firefox.exe process remain open after I close the browser.If I open it it's says to open a new window.I need to close the process manualy(Ctrl+Alt+del).What can I do?Thanks .

    Need to close the process.

    It does take Firefox a while to shut down; it has to update some databases. But it should take less than a minute.
    In the support article, this problem is called a "hang at exit" because Firefox hangs when shutting down. Maybe something here will help: https://support.mozilla.com/en-US/kb/Firefox+hangs#Hang_at_exit
    Also, sometimes open Firefox windows disappear from the Task Bar. You can use Alt+Tab to switch to them if they remain open.

  • Need to automate the process of partial orders-deliveries

    Hi experts,
    I need to automate the process of partial order deliveries in VL01N.
    I checked few BAPI for the above requirement.
    BAPI_OUTB_DELIVERY_CHANGE
    BAPI_OUTB_DELIVERY_SAVEREPLICA
    BAPI_OUTB_DELIVERY_CONFIRM_DEC
    But have no clue ,which would be relevent.
    If any one of you have worked on any such requirement before,please let know,which BAPI i can use in this development.
    Thanks in advance.
    Meenakshi

    Hi
    Try with function modules WS_DELIVERY_UPDATE and RV_DELIVERY_CREATE.
    Regards
    Srilaxmi

  • I delete my iPhone for accident but it Was hurt to my i need to cancel the process is it possible?

    I delete my iPhone for accident but it Was hurt to my i need to cancel the process is it possible?

    Only way I can figure is having double entries one with singular + some unique field, (maybe called Siri), then making a Smart group for one or both.

  • Migrating from Red Brick database to Oracle 11g -Need help with the process

    Hi,
    I am on this new project were we are migrating from IBM Red Brick Data Warehouse to Oracle 11g. We have a very tight time line. I was hoping if any of you have done this migration before and are willing to share their experience. Any help would be greatly appreciated. I would like to get a brief idea about how to go about the process.
    Thanks in advance!

    Hello,
    that is a matter of supply and demand, and as the demand to migrate Red Brick to Oracle RDBMS is very low, Oracle never included Red Brick into the migration tools.
    If you search in the forums for Red Brick, you will not find much more than this one from the year 2006:
    Re: Migration from rebrick 6.0.3 to Oracle 9i
    Options:
    In general we have the following options:
    1. Oracle Migration Workbench
    2. SQL Developer Migration Workbench
    3. Generic Connectivity
    4. SQL*Loader
    Regarding your dedicated foreign database, option 1 and 2 fail as those tools
    do not work against Red Brick DB.
    Generic Connectivity would be an option if you have an ODBC driver to this database.
    In this dedicated case, you can then set up generic connectivity (= a database
    link to the foreign database using odbc).
    The Oracle database we support generic connectivity can reside on Windows,
    Solaris, HP-UX, AIX and Linux.
    If the Oracle database is on any other platform, you might migrate to a
    database on this platform, then export the migrated DB and then load it into
    the real target db.
    Generic Connectivity will allow you to perform a SQL*Plus copy of tables; this
    means you can create tables like they are defined in your source and transfer
    the data to the Oracle db; but no procedures, triggers or anything coded can be
    transferred.
    Last option (4) is that you generate "flat files". This means ASCII-SPOOL
    Files and then import them using SQL*Loader. As far as I know there is no
    existing SQL*Loader sample file for Red Brick databases exports and you need to
    write them on your own.
    I recommend to read also the following note in My Oracle Support:
    Note 233876.1: Options for Connecting to Foreign Data Stores and Non-Oracle Databases
    Best regards
    Wolfgang

  • Need help in the process of trying to downgrade back to iPhoto '09...

    I want to see all the exif info for my photos as I am getting into DSLR photography.  This is one of the reasons I am trying to downgrade back to iPhoto '09 from '11 amongst other reasons; one being I just preferred it (and I have been using '11 since January and still want to downgrade).  Anyway, this is what I have done so far:
    Reinstalled iPhoto '09 from an old time machine backup in December '13 from before I upgraded late December.  Then with the help of a youtube video I found I created a new iPhoto Library for '09 and was in the process of importing all my pics when 3/4 of the way through, my hard drive reached capacity and the importing quit.  When I go into iPhoto '09 now, there are no pics.  So I spent yesterday buying a large external hard drive and the past 18 or so hours formatting it for mac and moving files so now I have a bit more room on my internal 1tb hard drive. 
    So I am guessing I should next go to the newly created iPhoto library on my internal hard drive and delete all (not to mention this will free up more room on it).  Then what I want to do is create a new library for iPhoto '09 on my new 3TB external hard drive and then import all the pics there.  Can I create the iPhoto Library on an external drive?
    If I am able to do the above and import all my pics and iPhoto '09 seems to be working properly, can I then go in and delete the iPhoto '11 app without causing problems?  Am I right to believe that all my pictures, even the ones I imported to iPhoto '11 directly from a mail attachment, will not be deleted if I delete the iPhoto '11 app? 
    I don't want to find myself with 2 iPhoto programs, neither of which function.  Thanks in advance!

    You need the version of iPhoto that you wan tot use installed and then follow the IPLM directions
    http://www.fatcatsoftware.com/iplm/Help/downgrading%20a%20library%20to%20an%20ea rlier%20version%20of%20iphoto.html
    Downgrading a library to an earlier version of iPhoto
    If you have a library from a newer version of iPhoto that you simply want "downgrade" to an older version of iPhoto, the easiest way to do that is with the "Rebuild Library" command. You will want to be running iPhoto Library Manager on the machine that has the older version of iPhoto you want to convert the library to. This will create a new library and import the entire contents of the original library into the new one using the older version of iPhoto. As with any rebuild, there are some items that will not be included (most notably, hidden photos, books, calendars, and slideshows), but if you have none of these items or don't mind losing them in the downgrading process, then this is a decent option for converting a library to an older version.
    LN

  • I need help with the processes running a media server.

    Hi there!   I need some help with the following log please.  The processes listed I am assuming are the current processes being used from my MacBook Pro to the media server?  Is that correct?  Are these common processes?
    Incident Identifier: EC931B64-E141-4C64-B428-427DF014C7E8
    CrashReporter Key:   b16be41bf16206d8f231e7e71676ab2a9c4dd25e
    Hardware Model:      iPhone4,1
    OS Version:          iPhone OS 5.0.1 (9A405)
    Kernel Version:      Darwin Kernel Version 11.0.0: Tue Nov  1 20:34:16 PDT 2011; root:xnu-1878.4.46~1/RELEASE_ARM_S5L8940X
    Date:                2012-08-24 16:06:18 -0400
    Time since snapshot: 152 ms
    Free pages:        1195
    Wired pages:       88383
    Purgeable pages:   0
    Largest process:   mediaserverd
    Processes
             Name                 UUID                    Count resident pages
                 atc <2271ed33ec773eeb9f381bf1baac9dee>     390
           securityd <e31a714c227a3d1c98ef8aacd44d91ee>     243
             assetsd <281396d3e7d831fbb6a5374157663dbc>    1370
          MobileMail <7064f2baf3f23db987bc8ec99855fe53>    1438 (jettisoned)
            mstreamd <cbe9881735043a389e7cdad3b5bcf5ce>    1099 (jettisoned)
              Camera <88291709452932ac9cbd0f1c06902214>    3105 (active)
         dataaccessd <b4f61f117ee635c48329af8572733d30>    1760
         MobilePhone <fe38c6944a053c9187b41ee50aa151b0>    5549
            networkd <6ee7a78e56073f6e8db4c2cc3265fdb4>     170
          aosnotifyd <58089d732ab43bbea0aec4a6f812f446>     320
            BTServer <e03baab8e0103188979ce54b87591065>     261
          aggregated <68a25a1690cb372096543a46abed14d7>     337
                apsd <e4b6e6e4f31e36f79815747ecbf52907>     291
       fairplayd.N94 <2c0105776e393b39ba95edffaf3bdd17>     294
           fseventsd <78af02202422321885dfc85c24534b0e>     170
                iapd <3ee7f82879033b4fb93b9cf1f4ecae29>     366
             imagent <8e2042f2ec9e3af9ba400f031f1bbfa7>     416
       mDNSResponder <b75f43f012ad3d9ea172d37491994e22>     265
        mediaremoted <b9fa7d1381013c2fa90ea134ff905f59>     258
        mediaserverd <478e5e8345c83be5ba1868906813bb75>    6774
                 ubd <7eaf0b0ca5b83afabecb0dfaa38c7a19>     389
               wifid <e176ab123beb3000bdb89e020612c1d6>     284
           locationd <91c84ab19dd03e4ab1b4cc30178ab1c0>     831
              powerd <25ddef6b52e4385b819e777dd2eeed3c>     167
           lockdownd <a68aa1526ef13a9bb4426bb71ffc1e3c>     250
          CommCenter <51922c9a50e73fe3badccaa4b1b1123b>     781
             syslogd <dd3766bcb1213e91b66283635db09773>     107
         SpringBoard <7506c20d86da3f1dbe9bf38f8bda253d>    5673 (active)
             configd <3430c0025ed13f56800a329b7254d2ae>     418
             notifyd <3793fabace3a385687b3c29c1fa1fcac>     252
      UserEventAgent <6e1cabc1ec6d372c90a6bdeaa7b258fa>     433
             launchd <cc35dd7a872334319ed028e6bbeae081>     133
    **End**
    Thanks a bunch!!!

    COULD NOT OF BEEN BOUGHT BRANDNEW IN 2011** apologies

  • On what Basis V need to Design the Process Chain in BI7

    Dear All,
    Hope every one having a great time. I am designing the Process Chain for the DTP's in BI7  its for the Attributes load, what things i need to consider while designing  dis chain mean is der any dependency i need to follow suppose der is "material" is an info provider  and it consist of "material type" as attribute, where dis "material type' is also a infoprovider which one should i load first. and how many processes can i assign to start variant n what is the effective way to decide dis. shall i need to consider the Datasource also suppose if the 2 or 3 process r feeding the data from the same Datasource den what i hav to do in BI7.
    Your Contribution will b appreciated
    Thanx in Advance.
    KK

    Hi ,
    There are several schools of thought on how to design your process chain for master data. For us, we load the attributes first, then hierarchies, then run ACR, and then load the texts.
    We have a meta chain (same as a process chain) that executes 2 process chains. The first loads our attibutes, hierarchies and runs the ACR. The second loads the texts. So, theoretically, we have one process chain that loads all our master data.
    Things to consider:
    1. Determine how many batch processes you can execute at one time on the system. This will determine how many infopackages you can have running at the same time (big influence on the design of your process chain).
    2. Determine the order in which you want to update your master data. Some say to update the infoobjects that are attributes of other master data first. Also, some extracts may take longer to execute than others. This may also influence your design.
    3. When connecting the infopackages in the process chain, you will be prompted as to how the connection should proceed (successful, error, or always). In your case, the decision should be always.
    Pls search for the links like this;
    http://help.sap.com/saphelp_nw04/helpdata/en/ce/dc87c1d711f846b34e0e42ede5ebb7/content.htm
    Re: Next step...
    Hope this helps.
    Regards
    CSM Reddy

  • When I close firefox I attempt to reopen, it wont load...looking in task manager shows it as a process, i need to, end the process to restart firefox, Why?

    when I start firefox, then close it..and attempt to restart it, I get a message that its loaded....but its not...but I see it as a process in task manager.I end the process..then start firefox again...........constant problem...............windows 7 system...8gb ram g4bit

    Hi Andis.
    First of all, this is completely normal behavior, although it's a bit irritating, I know. What happens is that when you close Firefox, despite the window disappearing right there and then, Firefox keeps running for a little bit until the whole closing procedure is completed. This can take a fraction of a second on fast computers, or can take a few seconds on slow computers or when Firefox is storing a large session (if you save your tabs). All you have to do is wait a bit until Firefox closes, and then open it again.
    To see if it's still running, you can press CTRL+SHIFT+ESC and then, under the Processes tab, you can see if firefox.exe is still there. If it's taking an unusual amount of time to close (which happens very rarely, and only if the browser freezes on exit), you can force the application to terminate from this application (task manager).
    Firefox 4.0 will reduce by 97% the time it takes firefox.exe to close, so this problem will be basically erased for Firefox's next version.
    Until then, I can recommend you this extension, which helps you restart your browser more easily and without bothering about closing times:
    https://addons.mozilla.org/en-US/firefox/addon/3559/
    Hopefully this will help.

  • I have a problem with linking media. I need help with the process

    I can't seem to locate the media off my external or dropbox. I have the project file opened it's just offline and won't let me go back to locate it.

    You need to ask in the forum for the program you are using
    This forum is about the Cloud as a delivery process, not about using individual programs
    If you start at the Forums Index https://forums.adobe.com/welcome
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right (where it says All communities) to open the drop down list and scroll

  • Unable to refresh database after forced stop of the business rule

    Hello, Experts!
    I am currently testing and tuning performance of business rules in Hyperion Planning 9.3.1. I launched a business rule in EAS Console that was running way too long so I decided to stop it manually. But after this manual stop when I try to refersh Essbase from Hyperion Planning (Administration>Manage Database>Database Refresh) I get the following error:
    +com.hyperion.planning.olap.EssbaseException: Cannot restructure. There are other active users on database [%s] (1013101)+
    I remember having done forced business rule stops earlier in other Hyperion Planning 9.3.1 deployments and they did not generate such errors. So could you help me on how I prevent Hyperion Planning from this error after manual business rule stops because most likely I will have to do them in the future? Thanks very much!

    John, you are right. I erred earlier: I was thinking that I had stopped the business rule, but it still was running. I had not seen this rule running because of lack of permissions for my user name. After adding extra Essbase permissions to my user name in HSS, I was able to see in EAS Console in Ediit>Sessions window that the rule was still running and Hyperion Planning definitely will produce the above error message if one tries to refresh Essbase cube while the rule is still running.

  • Just purchased airport extreme what cable do i need to start the process, is it a double ended male usb cable because there is no cat-5 connector on macbook air?

    Hi,  which type cable do I need to start a hard wire connection between my Airport extreme and my macbook Air, is it a double ended male USB
    because there is no cat-5 port in the notebook

    If you want to connect the AirPort Extreme to the MacBook Air via Ethernet, you'll need one of these (requires a late 2010 MacBook Air or later and OS X Lion (10.7.4) or later): http://store.apple.com/us/product/MD463ZM/A/thunderbolt-to-gigabit-ethernet-adap ter

  • My computer thinks firefox is running and will not open browser window,error = firefox is already running, you need to terminate the process or restart computer. restart has no effect. what file would make the computer think firefox is running?

    Reinstalling does not help. Computer locked up for unkown reason and this has happened ever since when i try to start firefox.
    Is there a file I can delete or kill that will terminate this process?

    See:
    * http://kb.mozillazine.org/Profile_in_use
    * https://support.mozilla.com/kb/Firefox+is+already+running+but+is+not+responding
    Create a new profile as a test to check if your current profile is causing the problems.
    See "Basic Troubleshooting: Make a new profile":
    *https://support.mozilla.com/kb/Basic+Troubleshooting#w_8-make-a-new-profile
    There may be extensions and plugins installed by default in a new profile, so check that in "Tools > Add-ons > Extensions & Plugins" in case there are still problems.
    If that new profile works then you can transfer some files from the old profile to that new profile, but be careful not to copy corrupted files.
    See:
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

  • HOW TO STOP THE PROCESS CHAIN WHICH IS RUNNING IN THE PRODUCTION?

    HI ALL,
    CAN ANYONE TELL ME HOW TO STOP THE PROCESS CHAIN WHICH IS RUNNING DAILY AT 5.00 PM. I NEED TO STOP THE PROCESS CHAIN FOR COUPLE OF DAYS AND THEN RESTART IT AGAIN.
    cAN ANYONE TELL ME THE PROCEDURE TO STOP THE ENTIRE PROCESS CHAIN RUNNING IN THE PRODUCTION.
    THANKS
    HARITHA

    Hi,
    First and foremost let me advice you to be very careful while doing this.
    For Rescheduling
    RSPC> chain > Goto > Planning view and
    click on Execution tab > select > Remove from Schedule and then in Maintain variant of start process reschedule for the day you require it to run.
    For terminating active chain
    You can start from SM37, find the process WID/PID then go to SM50 or SM51 and kill it. Once its done come back to RSMO and check the request, it should be red but again manually force to red and save by clicking on the total status button in the status tab. This shuld ensure that the process is killed properly.
    The next step will be to go to targets that you were loading and remove the red requests from those targets.
    Note: For source system loads you may have to check if the request is running in the source system and kill if needed and pull it again.
    But for BW datamart delta loads u may have reset the datamarts in case u are going to pull the delta again.
    Re: Kill a Job
    Re: Killing a process chain.
    Regards,
    JituK

  • How to maintain the process chains in BI

    hi,
        we need to create the process chains in BI.please can u have you can send the pdf for prcess chains.
    thanks,
    viswanatha
    Edited by: viswanath reddy on May 26, 2008 10:09 AM
    Edited by: viswanath reddy on May 26, 2008 10:09 AM

    Hi Friend,
    Please go through this :
    [Re: process chain document;
    Hope it helps.
    Reward with Points if helpful.
    Regards
    Hemant Khemani

Maybe you are looking for

  • Error Message "Check your settings and try again (-369033213)"

    I received a Apple TV for Christmas and went to set it up tonight. I didn't expect it to be easy as my WIFI is WAP2 Enterprise and therefore has a few other hoops to jump through. I downloaded the latest Apple Configurator and uploaded a profile with

  • Using an external editor (e.g., photoshop) with photos for mac

    Hi, I'm just trying out photos for mac. So far it seems to make life a lot easier in terms of syncing libraries. However, I have been using Lightroom 4 and photoshop before and I am missing out on some of their combined functionality (not much I have

  • Move test case with referenced items to another project

    How can I move a test case with all referenced contexts and verifications from a project to another project? At the moment I have to move each single item. How can I do this more efficient?

  • Coding issue

    I'm trying to hand code a page by using a layout that is very similar to what I want my page to look like as far as layout, and changing the styling to fit my page. I have copied the code to a PDF file but the forum isn't giving me the option to atta

  • Full Backup Prior to Installing New RAM

    Vet my plan, please! I have a 4g USB drive and plan to do a full system backup prior to installing 2/2 gig memory sticks (obviously have to remove original memory, as there are only 2 slots avail.). Other than shutting the system down and removing al