Importing data from a data-backup file

Hi,
my application runs external process that imports (should import) data from a backup file created using the exp command. Export file is created by gDBUser from global database (GDB) and should be imported by lDBUser to local database (LDB).
process1.StartInfo.FileName = "imp.exe";
process1.StartInfo.Arguments = String.Format(" userid=\\\"{0}/{1}@{2} as SYSDBA\\\" fromuser={3} touser={4} tables=({5})", dbUserName, dbUserPass, serviceName, fromDBUser, toDBUser, tableNames);
process1.StartInfo.UseShellExecute = false;
process1.Start();
Everything works fine as long as the user running my application is member of the DBA system (Windows) group. Unfortunately, in most cases the user does not belong to that group and import fails with the following error message:
IMP-00058: ORACLE error 1031 encountered
ORA-01031: insufficient privilegesUsername:
IMP-00000: Import terminated unsuccessfully
Users should not be members of the DBA group in order not to be able to modify the data otherways then by using the app. They don't even know the dbUserName nor dbUserPass.
Is there a way to be able to perform such import without running it as member of DBA group?
I'll appreciate your help.
Best regards
Rob

Hi Mark,
No, it isn't necessary to connect as sysdba.
In the meantime I found the solution.
My dbUser had no CREATE TABLE privilege. As soon as I granted it and removed "AS SYSDBA" from the userid parameter everything started to work fine.
Thanks
Rob

Similar Messages

  • HT201269 where can i find the file/backup file on my account?and how to sync data files one by one manually as i have been told to do so to avoid error restore from my existing backup files from your Sydney Apple Store yesterday? i want my old messages, n

    where can i find my data/backup file on my account? thanks

    The restore from backup process is all or nothing, & if you've been told NOT to restore from backup, there is no supported way to "selectively" restore an iPhone backup. You can use third-party software to "extract" data from your backup:
    http://www.iphonebackupextractor.com/

  • How do I import playlists from an old library file?

    How do I import playlists from an old library file?
    I have a new computer and it has the music files completely reorganized from my last computer so I can't just drop in my old library files and have it work. Basically, I'm hoping there is some way to recover my old playlists from my old backed up copy of my music library without recreating my old jumbled file paths and just using my old library.

    Backup the current passwords with the Password Exporter extension.
    Then you can re-import them afterward.
    For restoring the names and passwords from Firefox 3.5.x and later you need the file signons.sqlite from the old profile.
    You also need the corresponding file [http://kb.mozillazine.org/key3.db key3.db] that stores the encryption key in addition to the signons file.
    Password Exporter: https://addons.mozilla.org/firefox/addon/2848
    See also http://kb.mozillazine.org/Password_Manager#Backing_up_and_restoring_passwords
    For the bookmarks to need to do something similar unless you have a HTML backup of the old bookmarks because restoring a JSON backup replaces all current bookmarks.
    If you need to preserve current bookmarks then you can export your bookmarks in Firefox to an HTML file and import that file afterward.
    Bookmarks > Organize Bookmarks > Import & Backup > Export HTML & Import HTML > From File
    Another possibility is to use the clipboard to store selected bookmarks before restoring a JSON backup (e.g. All Bookmarks: Ctrl + A and Ctrl + C).
    You can paste the bookmarks from the clipboard back after you have restored a JSON backup.
    That will preserve all data including tags and annotations, but you should create an HTML backup to be safe.

  • Trouble importing contacts from a tab-delimited file into Contacts on 10.9.5

    I am having Trouble importing contacts from a tab-delimited file into Contacts on MacBook Pro, OS 10.9.5, Intel 2.4 GHz Core 2 Duo., 400GB drive, 4GB memory DDR3
    So far I have:
    - Followed closely the help screen in Contacts app
    - Modified my source document meticulously - first in MS Word, then copied and tweaked in Apple's "Text Edit" app
    - The problem arises when I go to access the document for import.  Specifically, the target document, and all others in that file, are "greyed out" and thus can't be "opened" to facilitate the import process
    - Tried changing the extension of the document name to ".txt", ".rtf", and ".rtd". No change or improvement.
    - Searched Apple.com/help and found nothing relevant
    Can anyone offer some advice or tell me what I may be overlooking in this process?
    Any help will be greatly appreciated!
    Thanks,
    <Email Edited By Host>

    Hi Rammohan,
    Thanks for the effort!
    But I don't need to use GUI upload because my functionality does not require to fetch data from presentation server.
    Moreover, the split command advised by you contains separate fields...f1, f2, f3... and I cannot use it because I have 164 fields.  I will have to split into 164 fields and assign the values back to 164 fields in the work area/header line.
    Moreover I have about 10 such work areas.  so the effort would be ten times the above effort! I want to avoid this! Please help!
    I would be very grateful if you could provide an alternative solution.
    Thanks once again,
    Best Regards,
    Vinod.V

  • How do I import bookmarks from a saved bookmark-file fron older version?

    How do I import bookmarks from a saved bookmark-file from older version?

    See:
    *http://kb.mozillazine.org/Backing_up_and_restoring_bookmarks_-_Firefox

  • Import data backup into another DB instance

    Hello all.
    I need to import a Data Backup into Another Database instance. MaxDb version 7.3.
    On higher versions of MaxDb I performed this operation without any problems (http://help.sap.com/erp2005_ehp_04/helpdata/EN/43/d5ebc2c9ed3ab3e10000000a422035/frameset.htm).
    For this version of MaxDB I have such problem:
    the commands don't coincide with help description, I define backup template, transfer DB instance to admin state, open utility session and try to srart recovery (there is no command db_activate RECOVER <template>)
    dbmcli on Q46>util_connect
    OK
    dbmcli on Q46>recover_start DEMO
    ERR
    -24988,ERR_SQL: sql error
    -903,Message not available,blockcount mismatch
    What I can do? How can I start recover from data backup from another DB on this version of MaxDB?

    I have tried to perform backup of original system and recovery to another database one more time.
    There is the another error:
    dbmcli on Q46>recover_start DemoD46_recover
    ERR
    -24988,ERR_SQL: sql error
    -3014,Invalid end of SQL statement

  • How to import cookies from an exported IE file

    Can cookies be imported into Firefox directly from an IE ".txt" file? (The IE "Favorites" bookmark file came in fine.)
    I'm setting up a new Linux machine and don't have/want IE on it, so the ability to import data from another browser isn't much help.

    I don't know if this method is supported anymore but you can give it a try.
    If you backed up bookmarks in IE using the following directions, you should be good!
    *In IE, "File -> Import and Export -> Export Cookies".
    *Open newly exported "cookies.txt" in a text editor and put a period before every line that starts with a domain. So a line starting with <b>altavista.com TRUE / FALSE 1388491200 AV_ALL 1</b> will become <b>.altavista.com TRUE / FALSE 1388491200 AV_ALL 1</b>
    *Then, move the "cookies.txt" file to your profile folder.
    You can get to the Profile folder two ways
    *Help > Troubleshooting Information > Profile Directory > Show Folder
    or
    *Go to '''about:support''' and click Show Folder next to Profile Directory.

  • Reliability of restoring from a disk image vs from a "normal" backup file

    How would you rate the reliability of restoring your data from a disk image file (a sparseimage file, in this case/question) versus from a 'normal' file, e.g. one created by the Backup 3 app?
    I read a few discussions here that mention corrupted disk image files...that result in a total loss of data...as opposed to other types of backup files, in which individual files, or folders, could be corruputed.
    For some context: my ultimate goal is (a) to create reliable backup files, e.g. in folders in my Home Folder, stored on an external disk drive, and (b) to secure that data.
    Thanks to Niel, in a prior discussion, I discovered that I could create a sparseimage file on the Lacie (encrypted).
    http://discussions.apple.com/thread.jspa?threadID=763337&tstart=0
    I could then select that secured file as the target / destination for the backup file/s I'm creating with the Backup 3 app. When I log out, that file is locked tight.
    But is this 'elegant' solution for backing up data "reliable" when I'll need it at 3am on that dark day when...?
    Many thanks.
    - David
    words to help others' search:
    BU3; sparse image;
    MBP 15" Core 2 Duo | LaCie d2 250GB ext   Mac OS X (10.4.8)  

    I keep both images of my boot volume which is just OS and apps, and of my home directory. But I also have full regular backups as well. It is not "either or" but a matter of having backup sets that will work. And rotating those sets.
    A daily backup, weekly, and monthly. That could require 3 or even 7 or more. Or partitions. But definitely more than one disk drive.
    One disk drive backup set should always be safely off line when making a backup set.
    Just as I have a clone of the system, an emergency boot drive, and one backup of the last OS revision.
    You have to change sparseimage to dmg if you hope to use Apple Disk Utility Restore, especially if you are working from DVD and not from a hard drive.
    I've used DU restore and SuperDuper and never seen or suffered a problem or corruption. But I zero drives before use.

  • Want to import favorites from IE. Click file, and import is dimmed. Cant use it when dimmed. Other way to import them ?

    Following instructions from Fierfox to import favorites from IE to bookmarks in firefox. Instructions say in Firefox, click on "file", then "import". But "import" is dimmed and unable to use. Is there another way to import?

    * Make sure that you not run Firefox in (permanent) [[Private Browsing]] mode
    * In Private Browsing mode some menu items are disabled (grayed) and features like visited links are disabled and not showing
    * You enter Private Browsing mode if you select: Tools > Options > Privacy > History: Firefox will: "Never Remember History"
    * To see all History and Cookie settings, choose: Tools > Options > Privacy, choose the setting <b>Firefox will: Use custom settings for history</b>
    * Uncheck: [ ] "Automatically start Firefox in a private browsing session"
    Export the Favorites in IE to an HTML file and import that file in the Firefox Bookmarks Manager.
    * Export the favorites in IE to an HTML file (bookmarks.html): File > Import and Export
    * Import the HTML file in Firefox: Bookmarks > Organize Bookmarks > Import & Backup > Import HTML: From File
    See also http://kb.mozillazine.org/Import_bookmarks ("Import from another browser" and "Import from file")

  • How to restore iphone from a certain backup file?

    This is for a iphone 4s.
    I have located the backup files on my PC, which is under some geberrish file name in my hard drive. I have two backup files, one from 1 week ago, one from this week. How can I choose to restore from the file that I backed up a week ago?
    I tried plugging the phone in and go through itunes, but itune only gave me the option to restore from the backup file from this week (which is no good because the new backup file has nothing in it for some reason, 0MB of file ).
    PLEASE HELP!! THANK YOU!!

    I think when you elect to restore in itunes it asks you which backup you want to use if you connect your phone to itunes and right click (for PC) then clcik restore you might get to choose

  • Rerun failed queries from transaction log backup files

    I recently ran into an issue where live production data was failing to insert into my database. When my windows service inserted data the query failed and returned an error message indicating that the transaction didn't succeed.
    After restarting SQL the insert statements started working again as they had before. However, because of this I missed about 24 hrs worth of important production data. My server is currently configured to make database backups every 24 hours and make transaction
    log backups every hour.
    Is it possible to reapply the SQL queries that failed from the transaction log backups? I understand the transaction log backups contain information about what in the database changed, but does it contain the statements that attempted to run but failed?
    thanks for any help!

    Thanks for all the replies. Here's the error message I'm getting..
    An error occurred in
    the Microsoft .NET Framework while trying to load assembly id 1. The server may
    be running out of resources, or the assembly may not be trusted with
    PERMISSION_SET = EXTERNAL_ACCESS or UNSAFE. Run the query again, or check
    documentation to see how to solve the assembly trust issues. For more
    information about this error: System.IO.FileNotFoundException: Could not load
    file or assembly 'microsoft.sqlserver.types, Version=11.0.0.0, Culture=neutral,
    PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The system cannot
    find the file specified. System.IO.FileNotFoundException: at
    System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String
    codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint,
    StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean
    throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
    at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName
    assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly,
    StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean
    throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
    at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString,
    Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr
    pPrivHostBinder, Boolean forIntrospection) at
    System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence
    assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) at
    System.Reflection.Assembly.Load(String assemblyString)
    Basically SQL was having difficulty reading the microsoft.sqlserver.types.dll assembly. This assembly is used for interacting with the Geography data type. I was getting this error message directly from within SSMS - not just in my .net app. Also, there's
    not triggers on this table or any custom SQL besides my insert statement.
    Then consensus I'm getting is that this isn't really possible to do using transaction logs without extreme difficultly. I installed the ApexSQL before posting on this forum but I wasn't able to find my insert statements.

  • There is no ability with an iPad mini to find a file menu in Safari to import bookmarks from other browsers' export files

    New iPad mini and trying to copy across a lot of my core user data from my PC environment with the intention of becoming fully Mac'ised.  Have managed to sync calendars with iTunes, but this latter programme frequently hangs up on my old XP computer.  I would really like to import my extensive Google Chrome bookmarks to save time and duplication, but most threads on here and elsewhere seem to suggest using the file/import menu in Safari - which doesn't appear to exist on the iPad mini. (does it on the full iPad)?  It seems gradually more apparent that you do not get the full functionality of these core apps on the mini - is this true?  this is frustrating, because this is not clear from any of the promotional blurb by Apple that there was this scaling down of functionality for the mini.

    JAD2014 wrote:
    Thanks, it seems using Chrome on the iPad may be the simplest work around, but that means not using my shiny new apple stuff :-(
    You're still using your shiniy new iPad.
    My experience has been that most of Apple's built in apps are basic. They meet the needs of many people but not everyone. That's why there's the App Store!
    Chrome is my browser of choice on my MacBook Air, too.
    Best of luck.

  • Importing configuration from main to backup switch.

    Hello
    I need help, i backuped the configuration of me main switch to .txt file be "Dowloand\Backup Configuration" and i have problem with importing this file to new switch. Can someone write me what should i do if i want to import this file? The switch is Cisco SG300-28.
    Best reagrds 

    The easiest method is to copy the contents of the text file back into the Global Config mode of your switch.  I've copied the instructions with the required commands below.  More can be found at the link at the bottom including ways to setup a TFTP server to backup and restore configurations.
    RESTORE A CONFIGURATION
    Connect to the switch/router that needs the configuration.
    Open the config.txt file.
    Highlight the entire contents of the config.txt file.
    You can do this by dragging the cursor from before the first character to after the last character in the file while holding down the left mouse button. Alternatively, if you use Notepad, you can choose Edit > Select All from the menu.
    Copy the selected text to the Windows clipboard.
    You can either choose Edit > Copy from the text editor menu, or hold down the CTRL key and simultaneously press the Ckey in order to perform the copy.
    Switch to the HyperTerminal window, and issue the configure terminal command at the Router# prompt. Then press Enter.
    Paste the configuration file into the router by selecting Edit > Paste to Host on the HyperTerminal menu.
    After the configuration has finished pasting and the router brings you back to the configuration prompt, issue the copy running-config startup-config command in order to write the configuration into memory.
    Issue the exit command in order to return to the Router# prompt.
    Reference:
    http://www.cisco.com/c/en/us/support/docs/ios-nx-os-software/ios-software-releases-122-mainline/46741-backup-config.html

  • Import apps from time machine backup ext. hard drive

    I just reinstalled by Mac OS X 10.5.8 using my original installation discs. I'd like to selectively import a stand-alone application (vitual piano) from my external hard drive time machine which I had used to back up my Mac. Can I do this after I upgrade to Snow Leopard?

    I solved this myself. I found that, after upgrading to Mac OS Lion from Snow Leopard, some of the aliased folders in my Time Machine backup hard drive are not locked, but the regular folders are locked. Apparently this is new in Lion. (As I mentioned above, my MacBook is too old to upgrade to Mountain Lion.) I had based my query above on my ability to delete things from some aliased folders on my backup hard drive. Fortunately, they are locked in the equivalent non-aliased folders.

  • Using RMAN, how do you restore from an old backup file?

    HI,
    I use Oracle 9i on Solaris.
    I'm currently doing incremental level 0 hot backups every night using RMAN in NOCATALOG mode. The controlfile is backed up with the database. I back it up to a file (e.g. "level0_20041225.dmp"). After I back it up, it's backed up to tape using Veritas. Before doing a backup, I delete the old one first.
    I need to restore a copy of the database backup that was taken a month ago. This file is on tape. How do I go about it using RMAN? The documentation is not too clear as it talks more about Restoring the control file and the latest copy of the database.
    How do you restore an old copy of the database from a database file?
    Pls advise
    Thanks

    You can recover to the last committed transaction,
    provided you have the current controlfile, archived
    logs since the backup and the current online logs.
    Here's the procedure in a nutshell:
    a) Restore datafiles from tape.
    b) Recover database using restored files + current
    controlfiles and archived/online logs. RMAN will prompt
    you for the logs it needs for recovery.
    You can also perform this type of recovery using a
    backup controlfile. In this case you would still need
    all logs as above. After recovery, you would have to
    open the database with RESETLOGS because you are using
    a backup controlfile.
    If you don't want/need to recover up to the last
    committed transaction, you use a backup controlfile and
    perform incomplete recovery (time or change based). This
    simply means that you stop the application of redo at
    the time or SCN of your choice.
    Most of the scenarios of interest are documented in
    the following book:
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96566/toc.htm
    Hope this helps.
    Kailash.

Maybe you are looking for

  • SSRS 2008 R2 - Add moving average to column group

    I have a column group of dollar amounts.  The row is a year/month.  I would like to add a moving average column to the right of the last 6 months.  My SQL Server data source is already complex enough and I'd really prefer not to add a column there.  

  • How to register a custom plsql code

    Hi i have wrritten a custom plsql code for my Overtime entries validation for payroll processing. Can any body tell me how to register it in application. Secondly i want to get the output file generated by report submission on my desktop.i want to kn

  • Record not inserting into sap table with connector framework ?

    here is the code, but record not being inserting into the table ... but same piece of code working fine while updating ... the record ... try { interaction = connection.createInteractionEx(); IInteractionSpec interactionSpec = interaction.getInteract

  • Preprocess Query on a View

    Any help would be fab... In my project I have built a SqL view that combines a number tables for an MI report which I have imported into Lightswitch. This new Lightswitch table (view) has no additional relationships as all Foreign keys on related tab

  • Can not login to the Identity System Console

    Hi, I forgot username and password for logging into OAM Identity System Console. Is there any admin user which can connect? How can I find user able to connect and change password. Tnx!