Import database and schema

I have a Oracle 10.2. I need to import database to this db. I've got database dmp file. Before this import, what do I need to do?
I believe I need to create a database
Do I need to create tablespaces that should be same with the original database? something else I need to do before I import?
Please advise
S.

imp help=yes
Import: Release 10.2.0.1.0 - Production on Wed Mar 31 15:57:20 2010
Copyright (c) 1982, 2005, Oracle.  All rights reserved.
You can let Import prompt you for parameters by entering the IMP
command followed by your username/password:
     Example: IMP SCOTT/TIGER
Or, you can control how Import runs by entering the IMP command followed
by various arguments. To specify parameters, you use keywords:
     Format:  IMP KEYWORD=value or KEYWORD=(value1,value2,...,valueN)
     Example: IMP SCOTT/TIGER IGNORE=Y TABLES=(EMP,DEPT) FULL=N
               or TABLES=(T1:P1,T1:P2), if T1 is partitioned table
USERID must be the first parameter on the command line.
Keyword  Description (Default)       Keyword      Description (Default)
USERID   username/password           FULL         import entire file (N)
BUFFER   size of data buffer         FROMUSER     list of owner usernames
FILE     input files (EXPDAT.DMP)    TOUSER       list of usernames
SHOW     just list file contents (N) TABLES       list of table names
IGNORE   ignore create errors (N)    RECORDLENGTH length of IO record
GRANTS   import grants (Y)           INCTYPE      incremental import type
INDEXES  import indexes (Y)          COMMIT       commit array insert (N)
ROWS     import data rows (Y)        PARFILE      parameter filename
LOG      log file of screen output   CONSTRAINTS  import constraints (Y)
DESTROY                overwrite tablespace data file (N)
INDEXFILE              write table/index info to specified file
SKIP_UNUSABLE_INDEXES  skip maintenance of unusable indexes (N)
FEEDBACK               display progress every x rows(0)
TOID_NOVALIDATE        skip validation of specified type ids
FILESIZE               maximum size of each dump file
STATISTICS             import precomputed statistics (always)
RESUMABLE              suspend when a space related error is encountered(N)
RESUMABLE_NAME         text string used to identify resumable statement
RESUMABLE_TIMEOUT      wait time for RESUMABLE
COMPILE                compile procedures, packages, and functions (Y)
STREAMS_CONFIGURATION  import streams general metadata (Y)
STREAMS_INSTANTIATION  import streams instantiation metadata (N)
VOLSIZE                number of bytes in file on each volume of a file on tape
The following keywords only apply to transportable tablespaces
TRANSPORT_TABLESPACE import transportable tablespace metadata (N)
TABLESPACES tablespaces to be transported into database
DATAFILES datafiles to be transported into database
TTS_OWNERS users that own data in the transportable tablespace set
Import terminated successfully without warnings.
SHOW just list file contents (N)

Similar Messages

  • MAXL Import Database (and export data?)

    I have an import database MAXL command that is working great (sql account and password substituted).  The rule file has a SQL connection to our ERP. 
    MAXL> import database PLANNING.DetView data connect as sql_account identified by "Password" using rules_file "'\\\oceanus-d13\\Oracle\\Middleware\\user_projects\\epmsystem3\\EssbaseServer\\essbaseserver1\\app\\PLANNING\\DetView\\NLIncur.rul'" on error write to "'G:\\DB_Process\\DetView_Process\\errors\\DetView_NLIncur_data_load.mxl.err'";
    We are going to run this on a nightly basis and our requirement is to have a historical record of what was "pulled" from our ERP (even if it didn't make it in to Hyperion).
    Here are the options that I've thought of:
    Have a separate SSIS package use the same SQL to dump the data out of the ERP database into a flat file.  The downside to this is that I'm using subvars from Essbase that don't exist in SQL.  So I'd have to write the SQL in a different way potentially causing discrepancies.
    A separate Data Export of what was loaded.  The downside here is that it doesn't have the errors that never made it in.
    I can't find another option in the import database command to spool the output of the SQL to a file. 
    Does anybody have thoughts on how to do this or are there other ways to achieve what I'm trying to do?
    Thanks-
    Cameron McClurg

    The SQL run via the load rule understands my subvars.  The load rule SQL looks like this:
    select...
    WHERE
      AND (('1' = '&IncSpanYr' --IF THE PERIODS SPAN YEARS
      AND (('12' = '&CurMoNm' --IN JUNE LOOK INTO NEXT YEAR PERIOD 1
      AND ((A.FISCAL_YEAR = '&CurYrNm' AND A.ACCOUNTING_PERIOD IN ('&PriMoNm', '&CurMoNm'))
    This turns into:
    WHERE
      AND (('1' = '1' --IF THE PERIODS SPAN YEARS
      AND (('12' = '12' --IN JUNE LOOK INTO NEXT YEAR PERIOD 1
      AND ((A.FISCAL_YEAR = '2014' AND A.ACCOUNTING_PERIOD IN ('2', '3'))
    My issue is getting a dump of all that data that the SQL is pulling.  I don't see a way to do that in the import database command.  A separate job on the SQL side (like SSIS) could pull the data, but can't access the subvars easily.  Does that make sense?  Or did I misunderstand your suggestion?
    Thanks-
    Cameron

  • 11gR2 Error when installing a database and schema

    I have install 11gR2 on my laptop with window 7 4gb ram 500gb hard drive
    I getting this error
    ORA-01503: CREATE Controlfile / Failed
    and
    ORA-01158: Database already mounted
    i need to set up a database a 3 different schema
    because i am doing a install of Hyperion Share service, Essbase and Planning
    Please advise

    Pl do not post duplicate threads - 11gR2 Error when installing a database essbase on install of 11.1.2.1
    Your original thread was moved to the Essbase forums since this is Essbase related
    Srini

  • How to know database name and schema name

    Hi ,
    Once after logging in the database,how is it possible to know the current database and schema which we r using?Is there any system table where we can get the database names and schema names?
    please help me out.itz urgent.
    Regards,
    Sravan

    Probably not.
    If the database name is the name of the current database, it would be essentially redundant. If the database name is the name of some other database, in order to get the names of all the tables in the specified schema, you could create a database link to the remote system (which assumes you have a login and password to the remote database with appropriate privileges, that the database server's tnsnames.ora file has an entry for the remote database, etc) and query the remote data dictionary tables. Even if you could do that, however, you could not dynamically create triggers on the remote database since DDL over a database link.
    In theory, you could also load an appropriate JDBC driver into the database and write a Java stored procedure that would connect to the remote database (again, with an appropriate user name & password, host name, and port number) and issue DDL against that remote database. I have a hard time believing, however, that this would be a particularly beneficial approach. It would be easier just to put the appropriate code into each database that needs triggers generated or to have a separate Java application that generates triggers for a number of different databases.
    Justin

  • How to know database name and schema name by providing package name?

    Hi,
    Could someonw will help me to get database name and schema name by providing package name ?
    I have used the query : select * from all_objects where object_name='Package_name'; but it simply returns schema name where as i need DB name and username.
    --Prajakta

    but it simply returns schema name where as i need DB name and username.
    i want to retrive the DB name for package name
    Based on your questions, I wonder if you are used to working in SQL Server? (The server, database, and schema are part of the 4-part  name of an object, independent of any user.)
    In SQL Server, schema and username are two separate physical concepts.  "Schema" is purely logical in Oracle: a user which owns objects is often called a "schema".
    In Oracle, "database" is roughly equivalent to the SQL Server concept  "server" (what you log in to).  It is not part of the naming path to a specific object  (unless there is a database link involved, but there is no indication that's what you have here).  In Oracle you connect to an Instance (or Service) and people often call this the "database", but there is a fine semantic distinction there (separate topic). 
    Once connected in Oracle, you fully-qualify an object by only a 2-part owner and object name (possibly 3-part if a database link is involved user.object@link).
    12c added another wrinkle to all of this, but I'll assume this question was more basic than that, because you likely would have mentioned if this was a 12c question.

  • Columns mismatch between Source database and Source in Informatica

    Hi,
    I'm trying to create few columns into the datawarehosue tables. I can see the columns in my source system (Siebel CRM) in toad. When I access the source table via Informatica Powercenter Designer. I don't see that column in the source tabel. I have a doubt that whether I'm connecting to the right source database from Informatica. How do I check this and change this? The column which I'm looking for in the source system is not custom column. Its Siebel out of the box column. Could any one provide more information on this.
    Thanks in advance,
    Ravi

    You may have to reimport the table from the Source Analyzer workspace. When you import, make sure you are pulling from the correct source database and schema.
    Informatica does not automatically update the table definition if the source changes.

  • Question about import database pk, fk

    Hi
    I want to ask a question about imported database. I imported database and I noticed tables doesnt have Primary key or foreign key. They havent relation between eachs. Why can this occured ?
    is it about import or another something?

    yeah ı am surprised none of tables have pk or fk ..
    but ı want to show you http://i51.tinypic.com/2hedc9d.jpg
    what is blue shapes in there ?
    can be foerign keys ?

  • Export and import of a schema

    Hi all,
    I'm having some trouble doing a simply export than import of a schema (data + structure, tables, sequences, triggers, indexes) from 10g XE to a same version server on another machine.
    I follow different ways:
    1) Export from "script sql" both as file as sql commands. Trying to import I get this error:
    Not found
    The requested URL /apex/f was not found on this server2) (traduction from italy language sorry if it is not exact in english) Loading/Downloading data -> Download -> I tryed both file and xml format. In this case I must select one table a time... but only the structure is exported, no data... fortunately I have only 3 table to export, but if I got many tables?
    In short, which is the best practice to export schema with inside data from a server to another with same version??
    Thankyou

    get this message from command line:
    C:\Documents and Settings\user>expdp unime
    Export: Release 10.2.0.1.0 - Production on Giovedý, 26 Febbraio, 2009 12:48:08
    Copyright (c) 2003, 2005, Oracle.  All rights reserved.
    Password:
    Connesso a: Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    ORA-39002: operazione non valida (operation not valid)
    ORA-39070: Impossibile aprire il file di log. (impossibile to open log file)
    ORA-39145: il parametro oggetto directory deve essere specificato e diverso da null (the directory object parameter must be specified and different from null)
    C:\Documents and Settings\user>get the same from sqlplus:
    C:\Documents and Settings\user>sqlplus
    SQL*Plus: Release 10.2.0.1.0 - Production on Gio Feb 26 12:41:48 2009
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Immettere il nome utente: unime
    Immettere la password:
    Connesso a:
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    SQL> CONN sys/**** as SYSDBA
    Connesso.
    SQL> ALTER USER unime IDENTIFIED BY **** ACCOUNT UNLOCK;
    Utente modificato.
    SQL> GRANT CREATE ANY DIRECTORY TO unime;
    Concessione riuscita.
    SQL> CREATE OR REPLACE DIRECTORY test_dir AS '/u01/app/oracle/oradata/';
    Creata directory.
    SQL> GRANT READ, WRITE ON DIRECTORY test_dir TO unime;
    Concessione riuscita.
    SQL> host expdp unime
    Export: Release 10.2.0.1.0 - Production on Giovedý, 26 Febbraio, 2009 12:44:40
    Copyright (c) 2003, 2005, Oracle.  All rights reserved.
    Password:
    Connesso a: Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    ORA-39002: operazione non valida
    ORA-39070: Impossibile aprire il file di log.
    ORA-39145: il parametro oggetto directory deve essere specificato e diverso da null
    SQL> quit
    Disconnesso da Oracle Database 10g Express Edition Release 10.2.0.1.0 - ProductionEdited by: Silicio on 26-feb-2009 12.47

  • Clone entire database and import to other db

    how can i clone the entire database and import to another oracle database but in different server by using software of SQL Development? (include table structure & package)

    It's also not clear what you want to do. At one point you say "clone database" and in your follow-up post "clone table".
    Using either conventional or data pump export/import to clone a table or schema can be pretty easy. But cloning a database using those utilities is much more difficult. There are tonnes of things in the database that even a FULL exp/imp doesn't pick up on and move. I've posted a list of that in the MOS community.

  • How do you import media and metadata from Windows Photo Gallery database?

    How do you import videos and photos and their metadata from a Windows Photo Gallery database into the Elements Organizer, especially metadata that is only contained in the Photo Gallery database file (pictures.pd6) and not embedded in the video and photo media files themselves?
    And when you import the metadata into Organizer, do you get all of these available elements?
    Ratings
    Tags
    Captions
    People tags
    Geotags
    Also, if the media files in Organizer are ever moved to another PC, is there a way to migrate all of the Organizer's metadata with the files to use with another instance of Premiere Elements?

    OK.  I think we're getting close to the answer.
    The reason I'm asking about this is because for Photo Gallery, media files can NEVER be moved without losing all database metadata.        I'm sorry I didn't know this when I started with Photo Gallery and I think I've learned an important lesson:  Be sure you can move your work BEFORE you start.
    So, to clarify Organizer's behavior, let me ask the question another way.  Let's say that in a few years, after I've added tags, people, places, etc. to hundreds of media files in Organizer, I decide to get a new PC.   When I move all that stuff to my new petabyte drive on the new PC, do we know if Premiere Elements Organizer on the new PC would be able to read the original Organizer's metadata?

  • Compression for oracle database and index compression during import of data

    Hi All,
    I have a query , in order to import into oracle database and also have compression and index compression , do we have some kind of load args for r3load and also do we have to change the tpl file ?

    Hello guy,
    I did this kind of compression within migration project before.
    I performed index compress first and then export -> import with table compress.
    One thing you should take care, delete nocompress flag from TARGET.SQL (created by program SMIGR_CREATE_DDL, program SMIGR_CREATE_DDL created pure non-compression objects for these considered non-standard tables). For table columns > 255, we should not delete this flag.
    Regarding to the index compress in source system, please check the following notes:
    Note 1464156 - Support for index compression in BRSPACE 7.20
    Note 1109743 - Use of Index Key Compression for Oracle Databases
    Note 682926 - Composite SAP note: Problems with "create/rebuild index"
    Best Regards,
    Ning Tong

  • Is it possible to import an Access database and forms

    Is it possible to import an Access database and forms into apex

    Yes and no.. Sorry.. The Access data tables and data can be imported into the database, through SQL Developer. The forms I don't believe will be ported over. What will be created through is a set of maintenance report and form sets for each table you convert over.
    That is a good start to converting the database over, since you will probably want to re-do your Access style vba coding to use the available templates and pl/sql code..
    Thank you,
    Tony Miller
    Webster, TX

  • How is the 'import-packages' information saved in the database, and how long?

    Hello,
    I am  developping a ECM Connector for Adobe LiveCycle ES, which is a customized component.
    1 - Who should I contact to have some specific support  ?
    There is no detailed information yet on this on the adobe site  (http://livedocs.adobe.com/livecycle/8.2/programLC/programmer/help/wwhelp/wwhimpl/js/html/w whelp.htm?href=000931.html&accessible=true) .
    If you  think that I should address my problem to another department of Adobe, please  tell me which department?
    I give you another description of my problem. In fact, I have  been investigating on it.
    2 - If I  put this in my component.xml file, in step  1:
    <component-id>com.rsd.adobe.livecycle.RSDFoldersConnector</component-id>
    <version>1.0</version>
    <import-packages><package  version="1.0">com.rsd.simpleApiFolders</package>  </import-packages>
    If I change the  version to 1.1 and remove the  'import-packages' (in step 2) , will the new component need the  com.rsd.simpleApiFolders package. It seems that is still needs it.
    3 - How is the  'import-packages' information saved in the  database, and how  long?
    In  fact, on thursday, I used 'import-packages'  to make a test. And since them, I  can not deploy any of my components.
    LiveCycle throws a  ClassNotFoundException.
    ALC-DSC-000-000: com.adobe.idp.dsc.DSCRuntimeException:  Internal error.
    [java] at  com.adobe.idp.dsc.registry.component.impl.ComponentRegistryImpl$6.doInTransaction(Compone ntRegistryImpl.java:338)
    ... Caused  by: java.lang.ClassNotFoundException: http-0.0.0.0-8080-1Class name  com.rsd.simpleApiFolders.Context from package com.rsd.simpleApiFolders not found.
    [java] at  com.adobe.idp.dsc.DSContainerSearchPolicy.searchClassUsingParentFirst(DSContainerSearchPo licy.java:234)
    Thank you in advance
    Regards.

    1 - Who should I contact to have some specific support  ?
    That would depend on your Adobe support contract and if your organization has a TAM assigned.  You should check with your organization's Adobe contact and see what support options your organization has purchased.
    Having said that, this forum has a few people that may be able to help (but the forum does not have a SLA associated with it)
    2 - If I  put this in my component.xml file, in step  1:
    <component-id>com.rsd.adobe.livecycle.RSDFoldersConnector</component-id>
    <version>1.0</version>
    <import-packages><package  version="1.0">com.rsd.simpleApiFolders</package>  </import-packages>
    If I change the  version to 1.1 and remove the  'import-packages' (in step 2) , will the new component need the  com.rsd.simpleApiFolders package. It seems that is still needs it.If your component class needs the simpleApiFolders class then yes, you still need it.  Think of import-packages like a class-path statement (but with packages and not jars).  Its not physically moving the package into your application, but allowing you to access it from another container.
    3 - How is the  'import-packages' information saved in the  database, and how  long?
    As far as I know they are not imported into the database. As I stated above, I believe that the import-packages just allows you to point to classes that are in the app server's classpath, but are not physically in you component jar file.  As long as that class is in the app server class-path (or in the Adobe EAR file) then you should be able to access it.  Is the jar file containing the simpleApiFolders class in the app server's lib directory?

  • Export/Import utility: unusual schema and table names

    Hi, I am working on the correct TABLE, SCHEMA.TABLE and SCHEMA names validation.
    Unfortunately, I didn't find good examples in documentation and therefore turn to the forum.
    Example: I have "My User" schema and "My Table" table and SCOTT with "scott table".
    Export:
    If I connect as My User (using client 10), I have to write
    TABLES=('"my table"', 'SCOTT."scott table"')
    If I connect as My User, (client 9 and older?) I have to write
    TABLES=('"My Table"', '"SCOTT.scott table"')
    Am I wright? It seems to work.
    ==The first question:
    Does the quoting method depends on the client version?
    I mean, '"SCOTT.scott table"' works on 9 but 'SCOTT."scott table"' works on 10.
    ==
    Further, If I connect as SCOTT, (client 10), I write
    TABLES=('"My User"."My Table"', 'SCOTT."scott table"')
    It seems to work.
    If I connect as SCOTT, (client 9 and older?), neither
    TABLES=('"My User"."My Table"', 'SCOTT."scott table"')
    nor
    TABLES=('"My User.My Table"', '"SCOTT.scott table"')
    doesn't work!
    == The second question:
    How should I write "My User"."My Table" on the 9 client?
    Import:
    I don't know how to make import to "My User".
    FULL=Y
    TOUSER='"my user"'
    # and
    #TOUSER="my user"
    doesn't work. The same with USER mode and TABLE mode import.
    Thanks to everyone who can help.

    I'm not sure how you would have been able to create a user with the user name 'my user' since gaps in the username are not allowed.
    Generally, Oracle isn't case sensitive, so the fact that 'my user' gets converted to 'MY USER' isn't a problem - infact, oracle will always present usernames in UPPER CASE unless you explicitly use the LOWER() function when selecting them from the dba_users table.
    So anyway, I think that the steps you need are:
    (from SQL*Plus, logged in a as a DBA user e.g. sys or system)
    create user MY_USER
    identified by apassword;
    grant connect, resource to my_user;
    Then, from the operating system command line:
    imp my_user/apassword@connect_string file=dump_filename.dmp FROMUSER=scott TOUSER=my_user;
    that should work.....
    R

  • Importing full database and SYSTEM password

    Hi,
    I have a export dump of a database (full database dump). Want to import on my existing database.
    I have create a database, with tablespaces matching names with source database (i.e. got a list of tablespaces from the dba of source database and created them). Now, I am ready to import with imp command (with FULL=Y option).
    Will the full database import change my SYSTEM's password to the system's password on the source database ?
    Reason for this question is, If you try to read the export of full database (using wordpad !!), you will find all commands creating tablespaces, users, roles etc etc etc. Also, you will see commands which alter the users SYS and SYSTEM to change the password !!!
    Any past experiences ??
    Thanks in advance.

    Hi,
    >>Will the full database import change my SYSTEM's password to the system's password on the source database ?
    Yes, take a look at demonstration below:
    C:\>exp system/pass file=test.dmp full=y statistics=none
    Export: Release 10.2.0.1.0 - Production on Mon Apr 21 13:59:51 2008
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to: Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    Export done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
    About to export the entire database ...
    . exporting tablespace definitions
    . exporting profiles
    . exporting user definitions
    . exporting roles
    . exporting resource costs
    . exporting rollback segment definitions
    . exporting database links
    . exporting sequence numbers
    . exporting directory aliases^C
    C:\>findstr /C:"ALTER USER SYS" TESTE.DMP
    ALTER USER SYS IDENTIFIED BY VALUES '5638228DAF52805F' TEMPORARY TABLESPACE "TEMP"
    ALTER USER SYSTEM IDENTIFIED BY VALUES 'D4DF7931AB130E37' TEMPORARY TABLESPACE "TEMP"
    Cheers
    Legatti

Maybe you are looking for

  • Getting the Outstanding Trade Receivables of a Customer

    Hi SAP Experts, I am trying to make a report to show the outstanding trade receivables of a customer based on his payment terms. I have a few questions I want to ask to all of you: 1. Can a direct FI invoice for a customer be partially collected? If

  • CD burning with disk utility - format and size for 800 MB - 90 minutes CD

    Hi Support, I'm trying to burn a CD with 800 MB (90 minutes) using disk utility. When I create a new empty image I can select the size. Unfortunately there is no option for a 90 minutes CD. When I create the image with 800 MB and I try to burn it, di

  • Can't create a text frame

    I started a new two page, two column document and added all the text id multiple text frames in both columns on p.1. When I try to create a text frame on p.2, I only can get the cursor in the upper left corner of p.w in the margin, not in the defined

  • Download to Excel returning no data in the excel sheet

    Hi All,             I have used UI elements guide to create Download to Excel link in my application. I wrote following code in wdDoInit() IWDResource resource = WDResourceFactory.createResource(new byte[<number of bytes>], "<name of the file>", WDWe

  • ORDER BY - Right to Left

    Hello there, I am in a situation where i need string values (In the format 000000AA0000) to be sorted from right to left rather than left to right. So - Normally: 100000AA0000 000000AA0001 I would like it to be: 100000AA0001 600000AA0000 This needs t