Database Import command untility. Any improved in 5.1?

ldif2db in 4.16 is painful to use. If I just want to input 1000 entries that is just part of user directory tree, I have to export the user directory tree and put in that 1000 entries, then export nsroot and the other sys configuration root. After that I have to run ldif2db with the above three ldif files. If I do not do so, I will lost the system configuration. But the strange thing is using GUI console, I can easily import that 1000 entries without overwrite the whole database.
My question is in 5.1 is there any utility that can doing the import like GUI doing?
Thanks,
Peter

The console uses plain old ldap add to add entries to an existing database. You can do the same from the command line:
ldapmodify -a <ldif file>
There is no subtree delete command. The GUI console is actually doing a recursive search and delete for each entry in the subtree. I don't know if there is a command line for this, but you could write one.

Similar Messages

  • How to export and import database from command line?

    I am trying to export my old database into new server.
    However, I want to export and import that database from command line.
    Is it possible?
    Thanks.
    SZ

    I used this command
    exp username/password@database full=y
    my export log file is as follwing:
    Connected to: Oracle8i Enterprise Edition Release 8.1.5.0.0 - Production
    With the Partitioning and Java options
    PL/SQL Release 8.1.5.0.0 - Production
    EXP-00037: Export views not compatible with database version
    EXP-00000: Export terminated unsuccessfully

  • Import command error

    i am trying to load a cube using import command
    import database sample.basic data
    from data_file '/hyperion/data/Rates.txt'
    using rules_file '/hyperion/fte.rul'
    on error write to '/hyperion/loaderr.log';
    when i run this command i am getting an error..
    OK/INFO - 1053012 - Object [94458075] is locked by user [Admin].
    ERROR - 1030200 - Cannot access object: /hyperion/fte.rul.
    OK/INFO - 1053013 - Object [94458075] unlocked by user [Admin].
    ERROR - 1241101 - Unexpected Essbase error 1030200
    i am not able to find why is it not able to access the rul fle??
    can anyone help me with this??

    import database ZZ.ZZ data
    from local data_file '/hyperion/data/Rates.txt
    using local rules_file '/hyperion/data/fte.rul'
    on error write to '/hyperion/data/loaderr.log';
    this is not working where i try to load data from a file which is not in applicaiton but is at a differnt loaction. also the rules file.
    The error says cannot access rules file.
    Is that a compulsion that the rules file should be in any application??
    cant we use a rules file which is elsewhere???
    But if I try using this command...
    import database ZZ.ZZ data
    from server data_file '/ZZ/ZZ/FTERatesloadnew.txt'
    using server rules_file '/ZZ/ZZ/fte.rul'
    on error write to '/hyperion/loaderr.log';
    This works fine...
    why is that its not working if I use local data and rules file??

  • I can´t import or place any images in photoshop CS5

    I can´t import or place any images in photoshop CS5. I receive always the note that there is a program error. Could someone help me with this problem?
    Thank you very much.
    Silvia

    Good day!
    What is your OS?
    Can you open the images?
    Boilerplate-text:
    Are Photoshop and OS fully updated and have you performed the usual trouble-shooting routines (trashing prefs by pressing command-alt-shift/ctrl-alt-shift while starting Photoshop until the appropriate dialog appears after making sure all customized presets like Actions, Patterns, Brushes etc. have been saved and making a note of the Preferences you’ve changed, 3rd party plug-ins deactivation, system maintenance, cleaning caches, font validation, etc.)
    Regards,
    Pfaffenbichler

  • Import all users and their objects without doing full database import

    Hi Guys,
    I have a task to that involves Importing all existing users and their objects in production to the test database without doing a full database import - Please how do i do this?
    Pls i need your help urgently.

    SQL> select * from v$version;
    BANNER
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product
    PL/SQL Release 10.2.0.1.0 - Production
    CORE 10.2.0.1.0 Production
    TNS for Linux: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    I tried to import objects and data from a user from a FULL dump file. File was created with the following command:
    server is: SQL*Plus: Release 10.2.0.1.0 - Production on Wed May 26 15:34:05 2010
    exp full=y FILE="full.dmp" log=full.log
    Now I imported:
    imp file=full.dmp log=full.log INCTYPE=SYSTEM
    imp fromuser=user1 file=full.dmp
    Results: not all the user procedures have been imported:
    SQL> select count(*) from user_procedures;
    the Original
    COUNT(*)
    134
    the current:
    select count(*) from user_procedures;
    COUNT(*)
    18
    I also tried these alternatives:
    exp tablespaces="user1_data" FILE="user1.dmp" log=user1.log
    exp LOG=user1.log TABLESPACES=user1_data FILE=user1_data.dmp
    exp LOG=user1owner.log owner=user1 FILE=user1owner.dmp
    expdp DIRECTORY=dpump_dir1 dumpfile=servdata_pump version=compatible SCHEMAS=user1
    impdp directory=data_pump_dir dumpfile=servdata_pump.dmp :
    ORA-39213: Metadata processing is not available
    SQL> execute dbms_metadata_util.load_stylesheets
    BEGIN dbms_metadata_util.load_stylesheets; END;
    ERROR at line 1:
    ORA-31609: error loading file "kualter.xsl" from file system directory
    "/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/rdbms/xml/xsl"
    ORA-06512: at "SYS.DBMS_METADATA_UTIL", line 1793
    ORA-06512: at line 1
    file kualter.xsl does not exist in XE !!
    imp owner=user1 rows=n ignore=y
    imp full=y file=user1_data.dmp
    imp full=y file=full.dmp tablespaces=user1_data,user1_index rows=n ignore=y
    So, I do not understand why user1 objects are not imported:
    see this part of the first import log:
    Export file created by EXPORT:V10.02.01 via conventional path
    import done in US7ASCII character set and AL16UTF16 NCHAR character set
    import server uses WE8ISO8859P1 character set (possible charset conversion)
    . importing SYS's objects into SYS
    . importing USER1's objects into USER1
    . . importing table .........................
    why only 18 rows?
    if you have an suggestion, you are welcome, as I do not have any other idea...
    ren
    Edited by: ronpetitpatapon on May 26, 2010 12:38 PM
    Edited by: ronpetitpatapon on May 26, 2010 12:41 PM
    Edited by: ronpetitpatapon on May 26, 2010 1:03 PM

  • Using a dynamic file path with the import command

    In one of the BI Publisher blog entries it was mentioned that the curly braces tell the parser that it needs to evaluate this value first before executing the import statement. The example provided was using the built-in parameter CURRENT_SERVER_URL, but it also mentioned that this could be done with any parameter.
    I am trying to import a subtemplate using a parameter that will hold the relative path. I am using the following import command in my report template:
    <?import:file:///{$P_SERVERPATH}/Report Path/Subtemplate.rtf?>
    as well as the following declaration statement:
    <?param@begin:P_SERVERPATH?>
    It appears that the P_SERVERPATH parameter is not being evaluated before the import statement. Am I missing anything?
    Any help is greatly appreciated, we are a little over a week from migrating to a new environment and I need to nail down a solution ASAP.
    Thanks,
    John

    I believe that you cannot have a dynamic path in the import statement as it is not allowed by xsl.

  • Import command in OO

    I need to import some tables in badi IF_EX_ CUSTOMER_ADD_DATA ~ CHECK_ALL DATE, to save some tables that I use the screens. I used the export code on the screens and badi in import command, but it seems the import field is not supported in OO.
    Anyone know any way to pass these tables to badi?

    Hi Lucas,
    Import & Export statements are supported in OO context! There is another syntax of Import & Export which allows to achieve the necessary i.e,
    EXPORT <var> FROM <var>
    TO MEMORY ID 'VAR'.
    IMPORT <var> TO <var>
    TO MEMORY ID 'VAR'.
    as compared to earlier syntax
    Sample Code
    " Since a lot of internal tables would have been declared with OCCURS addition
    " we can declare our own internal table and pass it along for IMPORT.
    DATA: IT_EXPORT TYPE STANDARD TABLE OF ITAB.
         DELETE FROM MEMORY ID 'IT_EXPORT'.
         IT_EXPORT[] = ITAB[].
         EXPORT IT_EXPORT
         FROM IT_EXPORT
         TO MEMORY ID 'IT_EXPORT'.
    In Calling Program you can write -
    " Please note here your structure for IT_IMPORT should be same as IT_EXPORT. 
         IMPORT IT_EXPORT
         TO IT_IMPORT
         FROM MEMORY ID 'IT_EXPORT'.
    Cheers,
    Varun

  • Database import errors

    Hello everyone!
    I have some problems with importing a database, I can't find the answer so I turn to you people.
    I've tried to import to an empty database (with the necessary tables of course) but that gave more errors, so I created the important schemes and tables with the sqls from the original database.
    The original database is working, everything is in there so I don't really understand the "not found" or "does not exists" errors, because I think Oracle is supposed to do the import in such a way, that the connections between objects doesn't get lost, so the database is built up from the bottom.
    The machine I export the data from:
    CentOS 5.5
    Oracle Database 10g Release 10.2.0.3.0 - 64bit Production
    NLS_CHARACTERSET EE8MSWIN1250
    nls_length_semantics string BYTE
    The machine I try to import data:
    Red Hat Enterprise Linux Server release 5.6 (Tikanga)
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    NLS_CHARACTERSET AL32UTF8
    nls_length_semantics string CHAR
    (Before you ask, we are Platinum Partners that is why we have Enterprise Edition, we can use it but we don't have support)
    The export command: expdp system/password full=y directory=dmpdir dumpfile=export.dmp logfile=export.log
    Job "SYSTEM"."SYS_EXPORT_FULL_01" completed successfully at: 14:46:34
    The import command: impdp system/password full=y directory=dmpdir table_exists_action=append dumpfile=export.dmp logfile=import_db.log
    Job "SYSTEM"."SYS_IMPORT_FULL_01" completed with 999 error(s) at 15:55:46
    The errors I don't understand:
    ORA-39083: Object type JOB failed to create with error:
    ORA-00001: unique constraint (SYS.I_JOB_JOB) violated
    ORA-31693: Table data object "SYSMAN"."MGMT_JOB_PURGE_POLICIES" failed to load/unload and is being skipped due to error:
    ORA-00001: unique constraint (SYSMAN.PK_MGMT_JOB_PURGE_POL) violated
    ORA-31693: Table data object "SYSMAN"."MGMT_JOB_SINGLE_TARGET_TYPES" failed to load/unload and is being skipped due to error:
    ORA-29913: error in executing ODCIEXTTABLEOPEN callout
    ORA-29400: data cartridge error
    ORA-31693: Table data object "SYSMAN"."MGMT_CREDENTIALS2" failed to load/unload and is being skipped due to error:
    ORA-29913: error in executing ODCIEXTTABLEFETCH callout
    ORA-28239: no key provided
    ORA-31693: Table data object "SYSMAN"."MGMT_HC_VENDOR_SW_COMPONENTS" failed to load/unload and is being skipped due to error:
    ORA-29913: error in executing ODCIEXTTABLEFETCH callout
    ORA-02291: integrity constraint (SYSMAN.VNC_VND_FK) violated - parent key not found
    KUP-11007: conversion error loading table "SCHAME_NAME"."TABLE_NAME"
    ORA-12899: value too large for column COLUMN_NAME (actual: 3767, maximum: 4000)
    KUP-11009: data for row: COLUMN_NAME: 0X'4146414245484E41507C4146414245484E41507CC166616265'
    And many objects are missing, triggers, sequences, indexes. Much more than the number of errors in the import_db.log.
    I hope someone can help me.
    Thank you in advance,
    Adam
    Edited by: 925120 on Apr 3, 2012 1:55 AM
    Edited by: 925120 on Apr 3, 2012 2:07 AM

    Hi, and welcome to OTN!
    Firstly, try to create the new database with the same character set and nls_length_semantics,
    The machine I export the data from:
    CentOS 5.5
    Oracle Database 10g Release 10.2.0.3.0 - 64bit Production
    NLS_CHARACTERSET EE8MSWIN1250
    nls_length_semantics string BYTE
    The machine I try to import data:
    Red Hat Enterprise Linux Server release 5.6 (Tikanga)
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    NLS_CHARACTERSET AL32UTF8
    nls_length_semantics string CHARThis could be responsible for the error:
    KUP-11007: conversion error loading table "SCHAME_NAME"."TABLE_NAME"
    ORA-12899: value too large for column COLUMN_NAME (actual: 3767, maximum: 4000)Secondly, I often find it better to not do a full export/import when moving between databases, and especially when moving between different database versions. The importing database have a (almost) fully populated sys and sysman-schema, and the full import is trying to add stuff to those schemas, causing all kind of violations.
    So, could you try to either export only the schemas that you're interested in (the user schemas), or just import these from the full export, and post the results?
    HtH
    Johan
    BTW, here's more info on expdp/impdp: http://www.orafaq.com/wiki/Data_Pump

  • Can't create database from command prompt

    I am using Oracle 9i over Win XP. I can create new database using OEM wizard without any problem. However, when I try to create new database from command prompt, using following commands, I get an error.
    sqlplus /nolog
    connect / as internal (when I issue this I get message TNS no listener)
    CONNECT SYS/password AS SYSDBA (can't understand how to use this, I don't have password because I've not created the database)
    Can anyone help me how to create new database from command prompt?
    Thanx

    "TNS No Listener" => Start the listener
    To be connected as SYSDBA you dont need a password if your are logged in the DBA group, you just have to :
    PROD_:id
    uid=102(oracle) gid=103(oinstall)
    PROD_:sqlplus "/ as sysdba"
    SQL*Plus: Release 8.1.7.0.0 - Production on Wed Jul 23 11:46:50 2003
    (c) Copyright 2000 Oracle Corporation. All rights reserved.
    Connected to:
    Oracle8i Enterprise Edition Release 8.1.7.4.0 - Production
    With the Partitioning option
    JServer Release 8.1.7.4.0 - Production
    SQL> show user
    USER is "SYS"
    SQL>
    Fred

  • 10G Instant client and import command

    Hi all,
    Am using the 10G instant client and need to use the import command through this client but cannot find it anywhere. Does the 10G instant client provide this functionality or anyone know of a workaround for this.
    All replies much appreciated,
    Tom

    Thats a pity. I thought I read someplace that you dont lose any client functionality by using the instant client as opposed to using the client cd install. Is it just that the instant client replicates the connection functionality of a normal 300mb client install?

  • I've been using LR with my Nikon D3200 for a year or so. Shooting in RAW/NEF no issues with import etc until I updated LR and now I can't get LR to allow me to select when I try to import. It does show the images but they're grayed out and not able to be

    I've been using LR with my Nikon D3200 for a year or so. Shooting in RAW/NEF no issues with import etc until I updated LR and now I can't get LR to allow me to select when I try to import. It does show the images but they're grayed out and not able to be selected. Any thoughts? TIA

    Greyed imaged in the Import dialog box mean you have already imported the photos into Lightroom, so there is no need and no benefit to importing them a second time.
    Just go to the Library module, search for the desired photos, and resume working on these photos.

  • Import command for one table core dumps

    Hi,
    The following import command is causing a core dump;
    $ imp system/***** file=/upload/dbdumps/06-09-19_11.00.01-db.dmp fromuser=ioeadmin tables=(utils) 2>&1 |tee imp.log
    But this one does not:
    $ cat imp.params
    FULL=y
    FILE=/upload/dbdumps/06-09-19_11.00.01-db.dmp
    GRANTS=y
    INDEXES=y
    $ imp system/*****@odinprd parfile=imp.params 2>&1 |tee imp.log
    More info:
    SunOS 5.8 / Oracle 8.1.5
    Thank you for any help on this

    I don't have access to Metalink. What would it say -- "imp tables=" doesn't work in 8i?
    So I have tried the following:
    1. drop the table I want to restore.
    2. run this command to restore all tables and let it fail on those tables that already exist and recreate the one i dropped.
    imp system/code4202@odinprd full=y show=y file=/upload/dbdumps/06-09-27_00.00.00-db.dmp 2>&1 |tee imp.log
    But it doesn't. It says this about the table in question:
    "ALTER SCHEMA = "IOEADMIN""
    "CREATE TABLE "PARTNER" ("PARTNER_ID" VARCHAR2(16) NOT NULL ENABLE, "PARTNER"
    "_TYPE" VARCHAR2(16), "ADDRESS_ID" NUMBER(10, 0), "PAYMENT_ID" NUMBER(10, 0)"
    ", "PRICE_LIST_ID" NUMBER(10, 0), "DEFAULT_CARRIER" VARCHAR2(32), "DEFAULT_M"
    "ETHOD" VARCHAR2(32), "CARRIER_ACCOUNT_NUMBER" VARCHAR2(32), "BILLTYPE" VARC"
    "HAR2(10), "TMB_TYPE" NUMBER) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255"
    " LOGGING STORAGE(INITIAL 10240) TABLESPACE "APP_DATA""
    . . skipping table "PARTNER"
    why is it skip this guy? It does not exist:
    SQL> desc partner;
    ERROR:
    ORA-04043: object partner does not exist
    SQL> desc ioeadmin.partner;
    ERROR:
    ORA-04043: object ioeadmin.partner does not exist

  • Import Command - Option to Delete objects That Already Exist?

    hi experts,
    This is 10g on Windows.
    I'm importing a specific owners objects into my 10g database. most of the tables, etc already exist. Will I have to drop the objects before importing - OR - can I use a switch/option in the import command to auto. drop anything that already exists?
    Have reviewed the command in a book I have and can't find anything that auto drops.
    Thanks, John

    impdp won't read exp dmp files.
    All you have is imp. Imp has ignore=Y, which will make imp not to skip the entire table upon import. This effectively works as 'append'. If you don't want that (duplicate keys come to mind) you need to drop tables and/or the user yourself.
    Sybrand Bakker
    Senior Oracle DBA

  • Why does LR crash when Import command is used? The only solution I can see is to restart my PC. Issue pre-dates latest LR upgrade.

    LR has stopped working several times when I use the Import command (button and from File menu) - Windows gives the options of waiting or closing LR. I have waited for 30 mnutes but nothing happens. This pre and post-dates the latest LR upgrade. I'm using Windows8 and have only had problems in recent days. The only solution I can see is to restart my PC. What's happening - any ideas?

    Dorin:
    I have uploaded the catalog file and the photo included in that catalog (a Canon 20D .CR2 file) to RapidShare at:
    http://rapidshare.com/files/139240757/_MG_7731.CR2.html
    http://rapidshare.com/files/139240759/LR_Test_Catalog.lrcat.html
    I am assuming that the associated "LR_Test_Catalog Previews.lrdata" folder isn't required too and will be recreated for you?
    John:
    Yes, I imported some .CR2 files taken from home to the office and imported them into an existing catalog there. And yes, they're shown okay. Plus other 2006 files (from the same camera, I usually import into both) are okay too. There are some .XMP files in some 2006 folders, but not many. I will take the catalogue (sorry, got caught up in the Yank spelling) from home to the office on Monday and try importing that, hadn't thought of that. The photo's won't be in the same folder structure though and not all will be there.
    Apologies for not answering the other question, I am a person who came from the Pixmantec RawShooter background and would have still been using that program then. The .RWSettings folders are still in the folder structure. I am pretty careful with my .CR2 files and try not to use any programs that would directly edit them. I have backups on DVD, but I haven't tried them. I also have another copy of some 2006 files on another HDD and have tried importing them tonight into the new catalog with no change in behaviour.
    I will also try setting the camera date to 2006, take some new pics and see what happens.
    Apologies, too, about the apostrophes, my dear Mum would be most embarressed at me. Can't edit them now, history has passed by!
    Thanks for your assistance.
    Simon...

  • How to import 2 users in a single import command?

    I created 3 users in a tablespace & exported 2 users seperately. How would i then import 2 users in a single import command?
    I also tried exporting both the users to a single dump file ,both the users & its tables were exported successfully without any warnings. Then I tried importing the single file .
    In this case only the tables in the 1st user is imported but the tables in the 2nd user does not get imported. No error messages.
    What is the solution to this issue?

    Attach two subscren in that screen and call the transactions from the seperate subscreens.

Maybe you are looking for