Copy the database for my use.  my level is beginner

hello, there is a Database here at work
and i was given the permission by the dba to copy and put it in my local drive. i know this is a big one so it might not be possible.
the reason is so i can create my application from maybe home without logging in the real databse.
any ideas on how i can achieve this task?
thanks

Hi ,
After installing the db software and configuring the starter database (using Data Base Configuration Assistant)- which can be done automatically , i advise you to do this way - the dba of your company can export the database schema(s) you work on or need and afterwards you can use this exported file to import it in your pc.....
or he can provide you a sql script which contains all schema objects(tables,views....e.t.c.).
Greetings,
Simon

Similar Messages

  • Error - Exclusive access could not be obtained because the database is in use

    I am actually trying to make a script (in Sql Server 2008) to restore one database from one backup file. I made the following code and I am getting an error -
    Msg 3101, Level 16, State 1, Line 3
    Exclusive access could not be obtained because
    the database is in use.
    Msg 3013, Level 16, State 1, Line 3
    RESTORE DATABASE is terminating abnormally.
    How do I fix this problem ?
    IF DB_ID('AdventureWorksDW') IS NOT NULL
    BEGIN
    RESTORE DATABASE [AdventureWorksDW]
    FILE = N'AdventureWorksDW_Data'
    FROM
    DISK = N'C:\Program Files\Microsoft SQL Server\
    MSSQL10_50.SS2008\MSSQL\Backup\AdventureWorksDW.bak'
    WITH FILE = 1,
    MOVE N'AdventureWorksDW_Data'
    TO N'C:\Program Files\Microsoft SQL Server\
    MSSQL10_50.SS2008\MSSQL\DATA\AdventureWorksDW.mdf',
    MOVE N'AdventureWorksDW_Log'
    TO N'C:\Program Files\Microsoft SQL Server\
    MSSQL10_50.SS2008\MSSQL\DATA\AdventureWorksDW_0.LDF',
    NOUNLOAD, STATS = 10
    END

    Check, if there are existing connections to the database you are restoring by following command
    select spid from sys.sysprocesses where dbid = db_id('AdventureWorksDW')
    if you see any existing connections then kill them by issuing KILL command Syntax for kill is
    KILL <SPID>
    once you see there are no more connections then 
    Use mastergoIF DB_ID('AdventureWorksDW') IS NOT NULL
    BEGIN
    RESTORE DATABASE [AdventureWorksDW]
    FILE = N'AdventureWorksDW_Data'
    FROM
    DISK = N'C:\Program Files\Microsoft SQL Server\
    MSSQL10_50.SS2008\MSSQL\Backup\AdventureWorksDW.bak'
    WITH FILE = 1,
    MOVE N'AdventureWorksDW_Data'
    TO N'C:\Program Files\Microsoft SQL Server\
    MSSQL10_50.SS2008\MSSQL\DATA\AdventureWorksDW.mdf',
    MOVE N'AdventureWorksDW_Log'
    TO N'C:\Program Files\Microsoft SQL Server\
    MSSQL10_50.SS2008\MSSQL\DATA\AdventureWorksDW_0.LDF',
    NOUNLOAD, STATS = 10
    END
    Mark as answer, if it works.

  • Library recovery: how can I recover a library after I get this message: There was an error opening the database for the library "/Users/Jim/Pictures/Libraries/K2 Library.aplibrary"???

    Library recovery: how can I recover a library after I get this message: "There was an error opening the database for the library “/Users/Jim/Pictures/Libraries/K2 Library.aplibrary”???

    Thanks a lot, Frank. The lsregister did the trick! I am testing this on 10.8.2.
    http://support.apple.com/kb/TA24770 : I deleted the "com.apple.LaunchServices.plist", and restarted the Finder, even logged off and on again; did not change anything. The file has not been recreated, so it may not be used anymore.
    http://itpixie.com/2011/05/fix-duplicate-old-items-open-with-list/#.ULZqa6XAoqY
    The direct "copy and paste" from the post did not work: I had to retype it :
    /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchSe rvices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user
    but then it worked like a charm!
    Cheers
    Léonie
    And btw: I turned on the "-v" option for the lsregister to see, what was going on, and saw plenty of error messages (error -10811); so I repeated the command with "sudo". After that I still saw five iPhotos. Repeating as regular user finally got rid of the redundant iPhoto entries. It looks like registering as super user may be causing this trouble.

  • Edit the database that RH10 uses to generate the CPD file

    Is it possible to edit the database that RH10 uses to generate the CPD file? I've got one weird entry in the topics list in the Project Manager pod. I've deleted the CPD file and let RH10 rebuild it but the entry is still there.  My team leader would like me to get rid of the entry before we send the project to translation. Thanks.

    Dang, I saw that same problem occur with a project I was trying to fix but eventually I had to start over on a fresh copy of the broken project and did not create the problem again.
    If you are using an agency that translates and uses RoboHelp, the last thing I would have done is delete the snippet. They would have translated that once instead of everywhere it is used thus keeping costs down. That is an aside though.
    Do you have a backup of the project so that you can recreate the Snippet in the hope that the project is good with that in and you can then delete again to check you used the right option?
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • "There was an error opening the database for the library "~/Pictures/Apert"

    Hey everyone,
    There's already another discussion thread about this at the link below, but the problem was never actually resolved. http://discussions.apple.com/thread.jspa?threadID=2343014&tstart=0&messageID=116 67261#11667261
    So I stumbled across this problem where Aperture 3 will display the following error when opening the image library.
    There was an error opening the database for the library “~[path]/Aperture Library.aplibrary”.
    One user suggested navigating to the actual library, and ⌘⌥-clicking the library to open it with the Aperture Library First Aid dialog. This however, did not work for me. I still received the error messages upon ⌘⌥-clicking the library.
    Here's a little hack I discovered for those of you still struggling. It doesn't fix the problem (leaves quite a large dent remaining actually), but hopefully someone can cultivate what little I discovered.
    ⌥-click Aperture (not the library)
    You should get to the library selection dialog box. Create a new library (bottom right corner) and remember the location of the new library. Put a few random pictures in the new one.
    Close Aperture
    ⌃-click both the old and new libraries and "Show Package Contents."
    Open the folder "Database" in both libraries.
    Cross check the folders to see if the old library is missing files that are in the new library. If your old library is missing some files (mine was), drag the missing files from the new library to the old one.
    Close both folders.
    ⌘⌥-click the old library.
    NOW, I got the Aperture Library First Aid dialog.
    Rebuild the library (3rd option)
    Wait a while.
    Aperture should open up with a folder named "Recovered Folder." Within this folder will be a SINGLE project named "Recovered Project" with ALL the images from your old library. There may be a few albums there too, but mine were all empty so it didn't matter in my case. To my knowledge, I lost all the adjustments I performed too.
    This is as far as I got. I have much of my library backed up, so I only needed to copy the most recent photos into the backup. I am NOT reorganizing and re-editing pictures in this one!
    As Aperture is a photo-organizing and photo-editing software, I understand that this by no means fixes the problem, since you lose all organization and editing. But it enables one to at least view the images lost. Hopefully a more knowledgable hacker else can figure out how to fix this completely. Unfortunately, I simply don't have the time to continue messing with this.
    Good luck to anyone else having issues! I understand the frustration you must be facing, its freaky having years worth of images simply disappear! After this incident, I'm definitely going to configure Time Machine to perform more frequent backups, since my latest backup was already a couple weeks old.

    Hey All,
    To my horror I have a similar problem and your solution didn't seem to help. To be specific, I get the error:
    "There was an error opening the database for the library “~/Pictures/Aperture Library_2.aplibrary" Everytime I try to run Aperture. This happened because my Apple computer shut off completely (due to bad battery) while importing photos from a memory card.
    I've tried "option + command" while clicking the aperture application and that gave me the same error message without any other option except to quit the program. I tried "option + command" and clicked the library package but that didn't work either. I tried creating a new aperture library, opening it which I did successfully, and then switching to my main one but that didn't work.
    Does anyone know away to get it to work again and have the edits still there?
    I'm a professional photographer and have thousands of photos or so in the library so this is distressing. The master files for the photos are located on an external hard drive, but I'm not sure how to access them in aperture. Are all the edits on the photographs are in the external hard drive or the aperture library. Is there any other way to resolve this issue without losing the edits?
    Does apple have a support number I can call? Any help would be greatly appreciated!!

  • Error message "There was an error opening the database for the library"

    I am getting the following error when I try to open my Aperture today: "There was an error opening the database for the library “/Users/xyz/Pictures/Aperture Trial Library.aplibrary”".
    I tried doing Option-Cmd while double clicking Aperture, but I can't get to the restore screen.  I also tried to use Time Machine to restore the library and am still getting the error.  Is there a different way to get to the restore screen??

    Someone posted in another thread that they needed to create a new library and import the old one in.

  • Aperture (3.4.1) no longer opens and the following message appears: There was an error opening the database for the library "/ Users / Andrea / Pictures / Aperture 3 Library.aplibrary." How can I solve this problem? Thanks

    I was using Aperture (3.4.1), when he appeared a notice that asked me to stop the Mac with the power button. When I restart Aperture no longer opens and the following message appears: There was an error opening the database for the library "/ Users / Andrea / Pictures / Aperture 3 Library.aplibrary."
    How can I solve this problem?
    Thanks

    After a system crash your Aperture Library may be corrupted, because Aperture may not have been able to finish the ongoing database transactions.
    Have you tried the Aperture Library First Aid Tools?
    Aperture 3 User Manual: Repairing and Rebuilding Your Aperture Library
    Try "Repair Database", and if this does not help: "Rebuild Database"
    Regards
    Léonie

  • Issue While executing the Query for Pagination using ROWNUM with like

    Issue While executing the Query for Pagination using ROWNUM with like.
    Database is Oracle11G.
    Oracle Database Table contains 8-9 lakh records
    1) SQL equal (=)
    SELECT /*+ FIRST_ROWS(n) */ ROWNUM RNUM, A.* FROM LINE A
    WHERE A.REFERENCE = 'KMF22600920'
    Execution Time:- 0.00869245 seconds
    Returns 2 resultsets
    2) SQL like (one %)
    SELECT /*+ FIRST_ROWS(n) */ ROWNUM RNUM, A.* FROM LINE A
    WHERE A.REFERENCE = 'KMF22600920%'
    Execution Time:- 0.01094301 seconds
    Returns 2 resultsets
    3) SQL like (two%)
    SELECT /*+ FIRST_ROWS(n) */ ROWNUM RNUM, A.* FROM LINE A
    WHERE A.REFERENCE like '%KMF22600920%'
    Execution Time:- 6.43989658 seconds
    Returns 2 resultsets
    In Pagination, we are using Modified version of SQL Query 3) with ROWNUM as mentioned below :-
    4) SELECT * FROM (
    SELECT /*+ FIRST_ROWS(n) */ ROWNUM RNUM, A.* FROM LINE A
    WHERE REFERENCE like '%KMF22600920%' AND ROWNUM <= 20 ) WHERE RNUM > 0
    Execution Time:- Infinite
    ResultSets:- No as execution time is infinite
    a) Instead of like if we use = in the above query it is returning the 2 resultsets (execution time 0.02699282 seconds)
    b) Instead of two % in the above query, if use one example REFERENCE like 'KMF22600920%' it is returning the 2 resultsets (execution time 0.03313019 seconds)
    Issue:- When using two % in like in the above query i.e. REFERENCE like '%KMF22600920%' AND ROWNUM <= 20 ) , it is going to infinite.
    Could you please let us know what is the issue with two % used in like and rownum
    5) Modified version of Option1 query (move out the RNUM condition AND RNUM <= 20)
    SELECT * FROM (
    SELECT /*+ FIRST_ROWS(n) */ ROWNUM RNUM, A.* FROM LINE A
    WHERE REFERENCE like '%KMF22600920%' ) WHERE RNUM > 0 AND RNUM <= 20
    Execution Time:- 7.41368914 seconds
    Returns 2 resultsets
    Is the above query is best optimized query which should be used for the Pagination or still can improve on this ?

    This would be easier to diagnose if there was an explain plan posted for the 'good' and 'bad' queries. Generally speaking using '%' on both sides precludes the use of any indexes.

  • There was an error opening the database for the library

    I can't open my aperture library:"There was an error opening the database for the library": what I can do? I've tried to reinstall aperture, I've also tried to use TM but nothing, I can't open aperture...Help me please!!!!

    For me none of the posted "solutions" worked.
    I tried the Option+Command+click on either the Aperture program app or the Aperture library in Finder...did not work.
    I tried deleting ~/Library/Preferences... did not work.  This was probably the "standard" Apple tech solution.
    The solution for me was to Option+click the Aperture program to launch it and Create a NEW empty library.
    Then simply IMPORT the corrupted library, in order to recover my photos.
    I saw a status message saying "Upgrading Library: scanning library" and lots of CPU activity for a few hours on a 36 GB library.
    Several error messages came up about re-publishing previously published galleries but I ignored them (since they were already published)
    Not sure what gets lost but at least I got all my photos back.
    Anthony Maw, Vancouver, Canada, www.anthonymaw.com

  • There was an error opening the database for the library "~/Pictures/Apertur

    There was an error opening the database for the library “~/Pictures/Aperture Library.aplibrary”.
    What's up with this? Aperture showed this error a couple times before quitting when I tried to open it.

    I got the same error. Normally I would perform a Repair Database command by holding down Option-Command while launching Aperture, but that just gave me the same error without any options to repair the database.
    Instead, I had to follow these instructions in the Aperture user manual. The key is to locate the Aperture library file on your hard drive and then hold Option-Command while double-clicking the Aperture library file.
    Choose the REPAIR DATABASE option.
    -- excerpt from user manual --
    To repair or rebuild your Aperture library
    Close Aperture, if it’s open.
    Locate the Aperture library you want to fix, then hold down the Command and Option keys while double-clicking the Aperture library.
    The Aperture Library First Aid dialog appears.
    In the Aperture Library First Aid dialog, do one of the following:
    To repair the permissions of the files within your Aperture library: Select Repairing Permissions.
    This option should be used when Aperture can’t access some of the image files within the database or Aperture is unable to open the library itself. The Repairing Permissions option reviews each file in your Aperture library and sets the read and write access of each file where appropriate, allowing Aperture to access the files again.
    Note: This option does not relocate referenced images whose master image files are offline. For more information about reconnecting offline images, see Reconnecting Missing or Offline Referenced Images.
    To repair your Aperture library file: Select Repair Database.
    This is the first option you should use if you believe there is something wrong with the Aperture library other than image file access issues.
    To rebuild your database from scratch: Click Rebuild Database.
    This option should be used as your last measure as it can be time-consuming for large image libraries. If you have tried repairing your database, and the issues you are encountering with your Aperture library still persist, you should use the Rebuild Database option. Aperture examines the library’s entire database and rebuilds each component until it reconstitutes your original Aperture library.
    Depending on your selection, click Repair or Rebuild.
    Aperture either fixes file permissions within the library or repairs or rebuilds the library, and then opens the application workspace.

  • When I try to open my aperture library, I get the message "There was an error opening the database for the library "/Users/alyssabouma/Pictures/Aperture Library.aplibrary". help!

    When I try to open my Aperture Library, I get this message: "There was an error opening the database for the library “/Users/alyssabouma/Pictures/Aperture Library.aplibrary”.
    I have already uninstalled and reinstalled the library....Help!!

    lyssalou,
    what is your Aperture version and what is your MacOS X version?
    What happened, before this problem occurred? Did you import images, install software, move the Aperture library?
    I have already uninstalled and reinstalled the library....Help!!
    What do you mean by reinstalling the library? Did you reinstall Aperture?
    You might start the trouble shooting with using the Aperture Library First Aid Tools - repairing the permissions, repairing the library, and rebuilding, if necessary, see:
    Aperture 3 User Manual: Repairing and Rebuilding Your Aperture Library
    Before rebuilding the library, make a backup of the Aperture Library, if you do not have one.
    Regards
    Léonie

  • There was an error opening the database for the library "/Users/madis13/Pictures/Nikon Transfer3/Aperture Library.aplibrary".

    There was an error opening the database for the library “/Users/madis13/Pictures/Nikon Transfer3/Aperture Library.aplibrary”.
    What to do when it comes to such a notice?
    If I want to open the aperture program, followed by a message, and the only option is to quit, but the program is not avanegi

    chose import library.
    That might be the problem.
    If you want to import an image file in to an Aperture Library, you use the command
         File > Import > Files
    or
    File > Import > Folders as Projects.
    The command
      File > Import > Library
    is for importing whole iPhoto Libraries or Aperture Libraries.  Have you tried to import the Aperture Library into itself?
    However, the program did not open the catalog yet, and I did force quit.
    Do you mean, after you tried to "import as library"?
    Any success with the First Aid Tools as I suggested?
    Hold the key combination ⌥⌘ firmly down and double click your Aperture Library. Then select a repair option from the panel.
    Léonie

  • Trying to open Aperture, but I get the message, "There was an error opening the database for the library "/Users/davewasson/Pictures/Aperture Library.aplibrary". - and it forces me to quit. What do I do?

    Trying to open Aperture, but I get the message, "There was an error opening the database for the library “/Users/davewasson/Pictures/Aperture Library.aplibrary”. - and it forces me to quit. What do I do?

    Dave-
    You can try opening the old (problem) library by launching Aperture into Library First Aid mode and choosing to Repair (first option) or Rebuild the library. Before doing this, make a backup copy of the old library, since both Repair or Rebuild will write changes to the library database.
    Repair is the faster and less drastic option, so try that first: After backing up your library, hold down both the Option and Command keys while dragging and dropping the problem library on the Aperture icon. The Photo Library First Aid window appears. Select Repair Database, then click Repair. After some time Aperture should open the library, if possible.
    If that fails launch Aperture back into Library First Aid and select Rebuild Database. Depending on the size of your library this operation could take some time, up to several hours for a very large library. When the main window appears you may have some extra Recovered folders/projects. This operation rebuilds the library from scratch and is usually successful at reviving problem libraries.

  • There was an error opening the database for the library "/Users/stacia134/Pictures/Aperture Library.aplibrary".  Why am I getting this message and how do I correct it so that I can open Aperture????  any suggestions would be most appreciated

    There was an error opening the database for the library “/Users/stacia134/Pictures/Aperture Library.aplibrary”.  Why am I getting this message and how do I correct it so that I can open Aperture????  any suggestions would be most appreciated

    Then I'd check the system drive, if it has problems.
    To check your System drive boot into the Recovery Partition, see: OS X Lion: About Lion Recovery
    Restart your Mac and hold down the Command key and the R key (Command-R), and keep holding them until the Apple icon appears, indicating that your Mac is starting up.
    You will see a panel, where you can use Disk Utility to check your System Drive.

  • Getting this Error: There was an error opening the database for the library

    I keep getting an error with start up (There was an error opening the database for the library). The command + option - double click does not provide options for database rebuild or repair, just the same error message.
    I have been using Aperture 3 since it was released without problems until now. The library size is about 450GB.
    Has anyone found a file or something within the library that was corrupt? Or any manual method to fix the issue?

    I have had the same problem as you have had, but I managed to restore. After having upgraded to 3.1, Aperture performed a irreversible update of the library. I then made a backup to a vault (which also was was updated). So far so good. A few days later when opening Aperture I got again the dialoge box saying Aperture had to update the library to 3.1 - and then came the error message. When trying to open the backup vault directly, I got the same message.
    What I did was opening another library (creating a new one will also do). Aperture was now in a state where it was running with a few pictures in the library. I then performed a vault restore from the 3.1 backup. Fortunately, this did the job.
    I actually taught that both the library and the vault was corrupted, and I am really happy that I managed to restore. Tomorrow I am going out to buy several new hard disks for my new multiple vault backup strategy to cope with the new threat: Aperture library self-corruption.

Maybe you are looking for

  • MBP 2011 using mDP to U2410 = TV?

    Hi folks, is there any solution to use display with DP native (without an ugly mDP->DVI adapter)? The old MacBook 2009 shows crispy fonts, but my new MBP (double expensive) shows shadows like connected with a old, cheap analog VGA. When will there be

  • Interact Basler Camera with Labiview and convert image colours in temperature

    Hello, as the title suggests I need to combine a Basler camera with labview ( version 8.6 or higher) and convert the colours of the image in temperature signals. I have some thermocouples which measure temperatures of a black paper which change colou

  • Imovie not responding after trying to import big file.

    I have been attempting to import a large file onto imovie, and just before the file is finished and says that it will be imported in "under a minute" It will say that imovie is not responding. I've tryed restarting my macbook, and trying again with t

  • Disappearing and Reappearing text Indesign

    Having problems with text disappearing and the reappearing.  This is not a text over flow or a layer problem.  It looks more the a preview/refresh bug. If I move the text box slightly even nudge it, the text will reappear.  It will happen will differ

  • Error code 404

    receiving error code 404 10.8.3 recreated icloud acount