Copy a database

Hi
A client has had a web application for them. the company who made this web application wanted MSSQL Express
So we have a Cloud Server, with MSSQL express installed on (It should be fine as the data shouldn't ever exceed 10GB)The server gets snapshot backups by webfusion - problem this means image based restore not individual file based and I have no control over
- hmmm
However being a cloud server means I can't readily attach a USB Hard drive to do a local backup using windows backups
The web application does have a lot of pictures, which are linked to the database via filenames (filename txt stored in db, image stored as a file in a website subfolder). - Anticipated size to reach over the next year 400GB with scope to get upto 800GB
over the next 5 years (they love their high quality images)
The client has a LiveDrive online backup subscription, and knowing their software works on Server 2008R2 and Server 2012 I have installed this. So it backs up the website data as it changes to a LiveDrive  online backup, this means the images and
web application data is all backed up)
This means there is 1 thing not backed up (other than by the webfusion snapshot backup) - this is the MSSQL database.
This area is new to me, so I am looking for suggestions.
I would like to ideally be able to do a copy of the SQL Database to a file which could be copied back to a new server or a restore or accessed or anything... as this copy would not be an open file, it would also be able to be backed up by LiveDrive (LiveDrive
can not backup open SQL database files)
Or maybe get the database to export a copy of all tables and data to a CSV file for backup purposes, or including CREATE attributes (like phpmyadmin will do with MySQL databases)
Or is there another easier way to just make sure the SQL database can be backed up? At the moment the client is happy with their understanding of the snapshot backup... but I like to plan many disaster recovery ideas, and would just like a little bit extra
recovery options just in case someone accidentally overwrites a database entry I can view it from a backup and restore etc.
Any suggestions gratefully received
thanks
Tris

Check this kb article -
https://support.microsoft.com/kb/2019698?wa=wsignin1.0
The SQL backups taken cannot be read other applications (unless you have third party tools which read backups) and it needs to be restored in any sql instances to be able to accessed properly.
Regards, Ashwin Menon My Blog - http:\\sqllearnings.com

Similar Messages

  • Copying Production Database to another location

    Hi,
    We are currently upgrading to a 11g and as part of the process I need to copy our production server 10g to our new hardware. I want to carry out a couple of dry runs to get timings and test the process. I will be keeping the same SID.
    Are there steps I can take to isolate the copied oracle database to ensure it does not try communicate with any other systems.
    I come from an SAP background and in SAP there are a number of steps to isolate a system. I'm looking for similar steps that would be used in oracle e.g.
    stop job scheduler
    stop all inbound and outbound communication
    Lock interactive users
    Stop outbound email
    etc...
    Thanks
    Jim

    osheajim wrote:
    Hi,
    We are currently upgrading to a 11g and as part of the process I need to copy our production server 10g to our new hardware. I want to carry out a couple of dry runs to get timings and test the process. I will be keeping the same SID.
    Are there steps I can take to isolate the copied oracle database to ensure it does not try communicate with any other systems.
    I come from an SAP background and in SAP there are a number of steps to isolate a system. I'm looking for similar steps that would be used in oracle e.g.
    stop job scheduler
    stop all inbound and outbound communication
    Lock interactive users
    Stop outbound email
    etc...
    Thanks
    Jim
    Somwhat dependent on your method of creating the new database on the new server, but if you don't start a listener on that server, no one that is not directly logged on to that server will be able to connect to the database. As for outbound connections from the database, you might have to get a bit creative, depending on where and how the outbound connections are defined.  I'd start by not haveing a working tnsnames.ora file.  Then check the defintions of any db links in the existing database.  If they hard-coded destinations, make sure those destinations are un-resolveable/unreachable from the new server.  I wouldn't worry about the job scheduler during the dry run.  As long as there is no outside communication from them, who cares if they run?  With the listener shut down, no outside users can connect, so no reason to lock user accounts.
    Perhaps you could cover all bases at once by simply configuring the firewall on the new server to disallow any communication at all ...

  • Asset Reporting - Copying Logical Database ADA

    Can you please assist with the following query?  I’m trying to include the following standard R3 ffields within standard R3 reports AR01 (Asset Balances) & AR18 (Depreciation Simulation):
                                    Table            Field Name            Data Element
    Serial Number            ANLA            SERNR                AM_SERNR
    Inventory Number       ANLA            IVNR                   INVNR_ANLA
    To date I have been unsuccessful in my endeavours.
    I have been discussing with an ABAPer and have been discussing the creation of Z transactions to give me the information I’m looking for.
    I’m looking for help, assistance and expertise whether the following would be recommended or even technically feasible.
    ·     Is it possible to copy logical database ADA to say ZADA (if yes how would I or the ABAPer go about this)?
    ·     Is there a way to link existing R3 reports to the new logical database
    As the majority of the R3 reports appear to be linked to ADA the aim is to amend this once and not require creating lots of Z reports.
    Any help you could provide would be greatly appreciated
    Best regards,
    Paul

    Hi Paul,
    this is strange, what release are you on?
    I have just checked AR01 on ECC 6.0, and it offers everything you need. On the selection screen of AR01, you can add selection criteria on both Serial number and Inventory number. Plus, you can display both fields in the ALV list.
    The data may be stored on table ANLA physically, but the logical database ADA is using a structure (ANLAV) instead. Both SERNR and INVNR are available in that structure. On the selection screen, you have to use the Dynamic selections button. And in the ALV list, you simply add the 2 columns, best idea wold be to save it as a variant for future use.
    Anyway, logical databases can be copied in SE36, you simply have to press the Copy button   The more critical issue is how to link standard reports to the new LDB. The answer is, no way. Instead, you should copy some of your favorite standard reports, and change the LDB in the copies.
    But, I really do not think you need this, as ADA can provide you with the information required out of the box.
    Hope that helps, points welcome
    Csaba

  • Steps to Copy a Database in SAP

    Hi,
    What are the steps to copy a database in SAP?
    Thanks,
    Sreekar.

    Hi,
    The steps of database copy are as below.
    1. To make Database copy between two systems, you have to check file size on
    Target System.
    Use commands:
    df -k
    bdf (HP-UX)
    2. On the Source System, check the files which are going to move.
    Use commands:
    su ora
    svrmgrl
    connect internal;
    select name from v$controlfile;
    select name from v$datafile;
    select name from v$logfile;
    3. Release all change requests on source system.
    4. Shutdown database (Source system)
    Use commands:
    su - adm
    stopsap
    5. Copy the controlfiles, datafiles, logfiles from source system to target
    system.
    Backup via tar
    ftp or rcp
    For example: You can write a simple script.
    rcp r src_server:/oracle/SRC/sapdata1 /oracle/TRG
    rcp r src_server:/oracle/SRC/sapdata2 /oracle/TRG
    rcp r src_server:/oracle/SRC/sapdata3 /oracle/TRG
    or for backup
    tar cvf /dev/ sapdata* dbs origlog* mirrlog*
    6. Copy $Oracle_Home/dbs/init.ora parameter file from source system to
    target system. Change all old SIDs to new SIDs except db_name parameter.
    Save it with old SID name.
    7. On the target system, change parameter /dbname= on
    parameter file /usr/sap/trans/bin/TPPARAM
    8. Change all owners and groups.
    Use commands:
    With root user.
    cd /oracle/
    chown R ora:dba sapdata*
    chown R ora:dba origlog*
    chown R ora:dba mirrlog*
    9. Change the name of control files (cntrl.dbf) with new SID
    10. Startup mount must work successfully.
    Use command:
    su ora
    svrmgrl
    connect internal;
    startup mount;
    11. Define new locations to database for data files and log files.
    Use command:
    su ora
    svrmgrl
    connect internal;
    alter database rename file /old/file/name to /new/file/name;
    12. Startup R/3 with startsap.
    Use commands:
    su - adm
    startsap
    13. If not start; see OSS note--> 8179 (grant connect to sapr3 identified by SAP)
    14. Log on to SAP via SAP* user.
    15. Run ST06 and set workbench organizer.
    16. Install new license.
    17. Change the spool server names on SAP system. (SPAD)
    Reward points if found helpfull...
    Cheers,
    Siva.

  • How to copy a database to another location in sqlserver 2008 express edition

    Hi,
    Please help for to copy a database to another location in sqlserver 2008 express edition
    With many thanks
    Pol
    polachan

    if you are using SQL Server 2008 express edition
    you are NOT able to use Copy database wizard so the only option you have is to try as mentioned above 
    a) Backup /Restore
    Create a new DB to where you want the copy should go and
    Make a Full Backup with .BAK of your original database and Restore the backup on other system and Right click on the the new DB you created and Restore by navigate to your .BAK and make sure MDF and LDF file match the new.
    http://msdn.microsoft.com/en-us/library/ms190436.aspx
    b) Detach/Attach
    Detach the database and copy the database files to other system; and attach these database files.
    I hope this is more informative for you and Good-luck
    Please remember to click “Mark as Answer” on the post that has answered your question as it is very relevant to other community members dealing with same problem in seeking the right answer

  • How to move or copy a database to new server

    Greetings All,
    Oracle Enterprise 11g r2, on a Windows2008 platform.
    I would appreciate some advice regarding moving/copying a database to a new server. Some of the information below may not be pertinent to my goal. Please be patient as I am a newbie.
    I have installed oracle and created a database (prod03) on the new/target server. I created the same tablespaces (and datafiles/names) as are on the existing/source server (prod01), except that on the new/target server (prod03) there is 1 more data file for the USERS tablespace than there is on the existing/source server (prod01).
    My initial thought was to perform a expdp full=y.
    The database contains 220 schemas, when I performed an expdp full=y estimate only it indicated 220Gb. I think this would take much more time to export and then import than what I hope to be able to do below.
    I would like to be able copy the datafiles from the source server prod01 server over to the target server prod03, some names/locations will change.
    One scenario I found (http://www.dba-oracle.com/oracle_tips_db_copy.htm) was to backup the control file to trace on the old/source server (prod01). Copy everything to the new/target server. Tweak the file that creates the new control file.
    Step 4 of the above mentioned link says to change
    CREATE CONTROLFILE REUSE DATABASE "PROD01" NORESETLOGS to
    CREATE CONTROLFILE SET DATABASE "PROD03" RESETLOGS
    Notice the change from REUSE to SET. I am not sure if this is right for my situation.
    Could I issue a backup control file to trace on the target server (prod03), add the reference to the additional datafile. Copy over all of the datafiles for all of the tablespaces (users,system/sysaux/undotbs1,temp),
    Delete the existing control file, and generate the new control file.
    Then perhaps issue a startup resetlogs or startup recover?
    Thanks for your time,
    Bob
    Edited by: Snyds on May 17, 2012 12:26 PM

    So unless someone provides me with an rman script I can't use rman.google is your friend
    Simply telling someone to get the experience dose not help. So your post is useless to me.I suppose you do not have experience with "old-school" manual cloning as well.
    Import of entire 200GB DB with datapump or imp will also require some experience otherwise it will be a long-long exercise.
    So, basically, any advise may be useless to you, because of your "the fact is I don't have the experience. Nor do I have the time to obtain the experience."

  • Event ID 218 Copy of database 'Mailbox Database'- experienced a performance problem

    Hi,
    We have 16 GB of RAM for EXchange 2010 and 4 Processor and using iSCSI Starwind LUN.
    Event ID : 218
    Event Source : ExchangeStoreDB
    Event Category :Database Recovery
    the copy of database 'Mailbox Database - NYM' on this server experienced a performance problem. Failover returned the following
    error: here is only one copy of this mailbox database (Mailbox Database - NYM). Automatic recovery is not available.
    It occurs specially when the exchange backup start ; we are using window backup for taking exchange backup
    I can see warnning of ESE below the event 218 - Information Store (3912) Mailbox Database - NYM: A request to write to the file "D:\Program Files\Microsoft\Exchange Server\V14\Mailbox\Mailbox Database 0959355037\Mailbox Database 0959355037.edb" at
    offset 150801350656 (0x000000231c760000) for 32768 (0x00008000) bytes has not completed for 68 second(s). This problem is likely due to faulty hardware. Please contact your hardware vendor for further assistance diagnosing the problem.
    Also,
    1. How can I enable verbose logging to expert level for exchange MailboxDatabase.
    2. What type performace counter need to be set for exchange database in Performance Monitor
    Any Help ?
    Thanks
    Prakash

    We had the same issue on our mbx server with Exchange 2010 Ent SP3, Win Svr 2008 R2 SP1 running on VMware v5.1 with Exchange dbs mounted to the VM via iSCSI LUNs on our NetApp SAN.  
    We escalated the ticket, and the Microsoft Exchange escalation team stated that the EIDs of the database corruption and automatic recovery seem to point to a hardware issue.  And, they told us not to panic and that there was no need to rebuild the environment
    and migrate the databases immediately.  They instead asked us to focus all our efforts on solving the iSCSI environment issues, since each Exchange EID db corruption/ autorecovery would be preceded by some type of corresponding iSCI System EID.  
    We hence opened tickets with MS Storage Team and with NetApp support and worked on this ticket with input from all 3 groups.
    After about a month an a half of troubleshooting & trial error- with tickets open with NetApp, MS Storage Team, and MS Exchange team, we finally seem to have applied a configuration change that worked. 
    NetApp support referred us to the following article relating to VMware:
    http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2039495
    So, per NetApp support and MS Storage team, do the following:
    1.    Manually dismount Exchange Databases on the mailbox server.
    2.    Open Device Manager, Network Adapters, VMXNET3 Ethernet Adapter #3, Properties
    3.    Change Small RX Buffers from the default 512 to the maximum 8192 using the drop down selector.
    4.    Change the RX Ring #1 from the default 1024 to the maximum of 4096 using the drop down selector.
    5.    Click OK and save the change.
    6.    Re-mount the Exchange Databases
    And, to our surprise, this seems to have done the trick.  It seems like the issue is an iSCSI-related NIC setting all along.
    Thanks,
    Detrich

  • Is it possible to copy entire database when update from 32 bit to 64 bit?

    Just want to update the os from 32bit to 64bit with Oracle9i. Sinece the data amount is very large, to export and import is quite time consuming, so Is it possible to copy entire database? Or any other suggestion?

    what's the OS ?
    You can check metalink doc, for example this one
    Subject: How to convert a 32-bit database to 64-bit database on Linux?
    Doc ID: NOTE:341880.1
    or
    Changing between 32-bit and 64-bit Word Sizes
    Doc ID: NOTE:62290.1

  • Undocumented error when trying to copy azure database (worked fine until recently)

    Until recently executing
    create database CB_Karakter_ACC as copy of jzv6wwe8gl.CB_Karakter_PRD
    on azure instance bycz1k0pmu worked fine. Today, I'm suddenly getting
    Msg 40197, Level 20, State 1, Line 65536
    The service has encountered an error processing your request. Please try again. Error code 40184.
    I cannot find any info relating to error code 40184 anywhere on the internet. What does this message imply?
    FYI: Just did a backup of the PRD db with redgate cloud services (to azure blob) and tried to restore it on the test instance. I got msg:
    Microsoft Restore Service returned an error: Error encountered during the service operation. Could not import package. Error SQL72014: .Net SqlClient Data Provider: Msg 15247, Level 16, State 100, Procedure sp_create_login, Line 1 User does not have permission
    to perform this action. Error SQL72045: Script execution error.  The executed script: CREATE LOGIN [CB_Karakter_PRD]    WITH PASSWORD = '******';  
    So probably the 40184 has something to do with security. Would be helpful to add this msg to e.g. http:// msdn.microsoft.com/en-us/library/windowsazure/ff394106.aspx (put space behind first / since this txt box doesn't allow me to put in links since
    my account is not verified or something...). If it's indeed about permissions that is.
    Ok after executing
    exec sp_addrolemember 'loginmanager','CB_SysAdmin_PRD'
    the CREATE DATABASE...AS COPY OF stmt still resulted in the same error. Will now try redgate again...
    Restore with redgate was succesful now. Question remains why CREATE DATABASE doesn't work anymore.

    Hello,
    Based on your description, you copy a database between two different SQL Database servers. When ACC database is copied form PRD database, the login that copied the database becomes the DBO of ACC. All database users and their permissions (but not their SIDs)
    from PRD are copied to ACC. Because of the new SID, the login from the PRC sever may not work on the new database.
    To workaround this issue, please try to use the DBO login and the ALTER USER statement to map users in the new database to logins on the new SQL Database server.
    For example: ALTER USER 'CB_SysAdmin_PRD' WITH LOGIN='loginName'
    Reference:
    Copying Databases in Windows Azure SQL Database
    Currently, I didn't find any document about error codes 40184 embedded within the message of error 40197. You can try to submit a feedback on the SQL Database feedback forum:
    http://feedback.windowsazure.com/forums/217321-sql-database
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

  • Why keep Level 1 backups after Recover Copy of Database

    I implemented the daily recover copy of database
    BACKUP INCREMENTAL LEVEL 1 FOR RECOVER OF COPY
    strategy.
    I have a 30 day retention window and other compressed un-recovered backupsets running weekly
    What I'm noticing is the level 1 backups, after they are used to recover forward my level 0 backup remain. How can I ever use them after I've rolled forward my level 0 image copies?
    Is there any reason to keep them? Can they be used to recover a datafile from a separate compressed backupset?

    These useless level 1 backups are kept due to your wrong way to define a retention policy for more than 1 day for incrementally updated backups.
    Statement from documentation:
    If you run RECOVER COPY daily without specifying an UNTIL TIME, then a continuously updated image copy cannot satisfy a recovery window of more than a day. The incrementally updated backup feature is an optimization for fast media recovery.
    See the documentation how to define correctly the retention policy (advanced example):
    http://download.oracle.com/docs/cd/E11882_01/backup.112/e10642/rcmbckba.htm#CHDEHBFF
    Werner

  • Is copying a database possible

    Hey folks,
    I have a requirement from my manager to basically replicate an environment running on one Linux machine onto another. Lets say there are two machines A and B
    I have all my applications (these applications have a database running and some of them also require weblogic) on machine A.
    Now I want to replicate these applications in A on machine B. So my doubt is, if I copy the database folders from A to B, can I startup the database on machine B.
    Also, in case this method doesn't work out, can creating a dump of the database in A and importing the same in B work?
    Thanks

    Follow the steps here....
    After logging into target database, under maintenance tab, data movement header; ther is "clone database" option. When you click on it; you'll see :
    Clone Database uses RMAN to duplicate a database from:
    -- An open database in ARCHIVELOG mode, or
    -- An open database in NOARCHIVELOG mode (restart required), or
    -- A saved working directory from previous cloning
    Clone Database performs the following operations:
    -- Backup each database file and store it in a working directory
    -- Transfer each backup file from source to destination host
    -- Restore each backup file to existing destination Oracle Home
    -- Recover the cloned database with saved archived log files
    -- Open the cloned database with resetlogs
    Source https://forums.oracle.com/message/3596780

  • How Can I Copy an database from one server to another ?

    Hi All,
    I need to copy an existing database from one server to another server. I want to maintain all the settings from the source database.
    I´m not used to Oracle database and i´d be glad for any help.
    How can I do this ? Do I need to backup and restore in the other server ? Do I need to copy files from one server to another ?
    Any help will be really appreciated.
    Carlos.

    I think a simpler approach, other than using RMAN, is to do a database export from the source and then import them into the target database. But you will need to do some ground work on the target, i.e, create database, tablespaces, and schemas (with their name the same as those in the source database.)

  • How do I copy email database from my old computer to my new computer using external hard drive

    I have an external hard drive I want to use to copy the mail database from my eMac 10.5.8 and then move it to my MacBook Pro 10.8.2.

    That's what happens when you rightclick on a Mailbox, what happens when you do it?
    Post a screenshot.

  • Copying logical database from one server to another

    Hello All,
    I have one logical database name as KDF in my test server which has become inconsistent due to some reason . In my live server tht logical database is consitent now what is the option to copy the same from my live server to test server .
    If i copied will it work properly or is there any other solutions or options.
    Thanks
    Sunny

    Hi Suny,
    First of all, we cannot create a transport request in Prodcution server and then transport it to the Development Server.Else, it is the other way round,one can create a request in development,then transport it to Test and then to the Production server.
    That is why I said that if the SAP standard LDB is disturbed in Development as well,then you will have to manually look in for the modifications between the Production and the Test Server,and change them in the developemt and then transport it to Test server and then Production.
    Hence,the best solution is to manually check for the inconsistencies and modify in the development server and then transport.
    The path for copying that you are following is correct anyways.
    In case you have any further clarifications,do let me know.
    Regards,
    Puneet Jhari.

  • Best way to copy a database?

    I have just tried to clone my old database. I did this with copying all data files into the new directories on the new server, making the changed needed in the control file, and running the edited control file when opening up the new database.
    I have also just finished doing an export. This I did by again copying the datafile to be copied into the target database. Then I exported the tablespaces I wanted to copy. Then, using import fromt he target database, I imported the data from the old database.
    Which method is preferred? From my small testing here, it seems and import /export is good for targeting specific tablespaces or tables, while the cloning procedure is better for a large scale copying. Not sure if Im right about this, or indeed if there is something else I should try (SQL Data Loading??).
    Just wanted to know the professional perspective on these.
    DA

    The duplicate process is also well documented under Oracle document site
    Preparing the RMAN DUPLICATE Auxiliary Instance: Basic Steps
    As per document,
    "Start RMAN with a connection to the target database, the auxiliary instance, and, if applicable, the recovery catalog database. "
    Meaning if you don't have catalog just ignore the connect to catalog part, RMAN will pick up control file information instead.
    Also need to note,
    If you do not have automatic channels configured, then before issuing the DUPLICATE command, manually allocate at least one auxiliary channel within the same RUN command.
    RUN
      # to manually allocate a channel of type sbt issue:
      ALLOCATE AUXILIARY CHANNEL ch1 DEVICE TYPE sbt;
      # to manually allocate three auxiliary channels for disk issue (specifying
      # whatever channel id that you want):
      ALLOCATE AUXILIARY CHANNEL aux1 DEVICE TYPE DISK;
      ALLOCATE AUXILIARY CHANNEL aux2 DEVICE TYPE DISK;
      ALLOCATE AUXILIARY CHANNEL aux3 DEVICE TYPE DISK;
      DUPLICATE TARGET DATABASE TO dupdb;
    }

  • How to copy a database with all the objects and relationship but with no data

    Hello Experts
    I am here for your advise as usual, I  want to create a copy of my current database from an existing one on SQL Server 2008r2 Standard Edition, here is what I need, I want all the objects including any relationship between the objects and I do
    not need any data. I have some idea for using the general script in SSMS, but I still need you expertise advise please, thank you kindly for your help.
    Regards

    One option is to run BACKUP/RESTORE, once you have restored you run:
    SELECT 'ALTER TABLE ' + quotename(s.name) + '.' + quotename(o.name) +
           ' DISABLE TRIGGER ALL '
    FROM   sys.schemas s
    JOIN   sys.objects o ON o.schema_id = s.schema_id
    WHERE  o.type = 'U'
      AND  EXISTS (SELECT *
                   FROM   sys.triggers tr
                   WHERE  tr.parent_id = o.object_id)
    Copy result and paste into a query window do to run. Next:
    SELECT 'DELETE ' + quotename(s.name) + '.' + quotename(o.name)
    FROM   sys.schemas s
    JOIN   sys.objects o ON o.schema_id = s.schema_id
    WHERE  o.type = 'U'
    Run this result until you don't get any more errors.
    Run the first query again, but change DISABLE to ENABLE.
    This is more long-winding than scripting, particularly if you have lots of data. But you know that you will not make any changes whatsoever to the schema.
    The scripting in SSMS generally does it right, I believe, but some items are not scripted by default. If you run BACKUP/RESTORE, you know that you get a faithful copy.
    Of course, the best way is to keep your code under version control and take the version control system as your ultimate truth.
    Erland Sommarskog, SQL Server MVP, [email protected]

Maybe you are looking for