Confusing to EXP 2 databases

Hi all,
I am facing a big problem here. Currently I am using Oracle 10g and containing 2 databases "MYDBONE" and "MYDBTWO". Both databases were using same owner name as "MYADMIN".
So every times before I patch any data, I will make a backup using the script below:
host exp userid=MYADMIN/MYADMIN file=E:\Oracle_dmp\backup\MY_DB_BACK_20100114.dmp owner=MYADMIN;
After I patch the data, my client ask me to revert back due to some reasons. So I just remove some tables and try to restore back the data by IMP script as below:
host imp userid=MYADMIN/MYADMIN file=E:\Oracle_dmp\backup\MY_DB_BACK_20100114.dmp full=yes commit=yes log=E:\dmplog.txt
After restore completed, I realized that I only get back the data for "MYDBONE". I've lost all my data in "MYDBTWO".
Can anyone tell me what can I do now? How can I get back my "MYDBTWO" data???
Thank you for helping.

Hi,
I'm not sure how
host imp userid=MYADMIN/MYADMIN file=E:\Oracle_dmp\backup\MY_DB_BACK_20100114.dmp full=yes commit=yes log=E:\dmplog.txt
caused you to lose data. If you did nothing else to MYDBTWO, then the imp command would not have done much at all. Since all of the tables exist already, imp will not drop any tables. I'm confused, can you explain in more detail what else was done to MYDBTWO.
Dean

Similar Messages

  • Confused, which MySQL database to connect to: local (WAMP), or remote?

    Hello, new to dynamic sites, have successfully installed WAMP and set up my local/testing/remote sites in DW CS4.  Most tutorials I've found recommend making the "MySQL Connection" in Dreamweaver to the local (WAMP) installation of MySQL, which I am able to do.  But my remote site already has an existing MySQL database and tables.  So should I be making the MySQL Connection to the remote database instead?  Or exporting the remote server's database and importing it locally for development purposes?  What's the best practice?
    If making the connection to my local database is recommended, how do I transfer any changes that I make on my local db to the remote database?  Do I need to export locally & import to the remote db, using phpmyadmin, every time I make changes to the local database?
    If making the connection to my remote database is recommended, I have 2 questions: 1) do I even need my local WAMP MySQL database for anything?  and 2)  I was able to connect to my remote MySQL, (first got "MySQL ERROR 1045 Access Denied", but then went into my remote server via CPanel, found the "Remote MySQL" function, and entered my long current domain name as a new Access Host), but since I'm at a home office without a static IP, will I have to keep going into CPanel and entering in a new Access Host every time my IP address changes?
    Apologies for the confusion.  Any pointers to recommended best practices would be much appreciated.
    - Frank

    > 2)  I was able to connect to my remote MySQL, (first got "MySQL ERROR  1045
    > Access Denied", but then went into my remote server via CPanel,  found the
    > "Remote MySQL" function, and entered my long current domain  name as a new
    > Access Host), but since I'm at a home office without a static IP,
    > will I have to keep going into CPanel and entering in a new  Access Host every time
    > my IP address changes?
    Update: my IP address changed slightly yesterday and I was denied remote MySQL access again.  Went back to CPanel and modified my Access Host domain with a few wildcard characters (blah-blah-blah-%%%%.dsl.bell.ca).  That got me back in.  Is this what most people who want remote MySQL access do?  Is it a (significant) security risk?
    Or do most people without static IPs just not bother with remote MySQL access?

  • A confused newbie: SQLServer database vs. ORACLE Tablespace

    Guys, excuse me for asking some surely stupid questions, but I'm really confused.
    In SQLServer, I can simply create a new database and it has it's own physical files. This means that - for example - it is really trivial to have multiple releases of the same database setup concurrently.
    In Oracle, I'm simply blown away at the complexity of this seemingly simple requirement. Here are some of the problems I have doing this with Orcale:
    - I can create a second tablespace but then my sequences clash with sequences already in place for tables in the other table space
    - I can't simply drop a tablespace and the sequences drop too
    - I don't know how to connect to a new database (somehow I seem to have to create a listener too)
    OK, I doubt that Oracle is so useless, I'm far more convinced that the "useless" attribute is better suited to my Oracle skills. That is why I can't wait to get some pointers to how I can achieve what I want to achieve useing Oracle.
    Pete
    Message was edited by:
    petehug

    A tablespace is just a logical collection of objects that happen to reside in the data file, so there is technically no reason that you would need separate tablespaces here. Probably a good idea for organizational purposes, but not strictly necessary.
    If we're going to set up version 5.12 of the database...
    1) Create the tablespace (optional). Note that the exact syntax will depend on how you've configured your database (i.e. whether you're using Oracle Managed Files, ASM, etc).
    CREATE TABLESPACE ts_lima_512_md
      DATAFILE 'ts_lima_512_md.dbf' SIZE 100M;2) Create the user/ schema
    CREATE USER lima_512_md
      IDENTIFEID BY <<password>>
      DEFAULT TABLESPACE ts_lima_512_md;3) Log in as the user you just created and create whatever objects you need to create. Assuming you don't specify a tablespace in your DDL, the default tablespace for the user will be used. Otherwise, it would be perfectly valid to have different users/ schemas own objects of the same name in the same tablespace.
    4) Create a role that gives other users whatever permissions they'll need on objects and grant the role those privileges, i.e. for read-only access to tables
    CREATE ROLE lima_512_md_read_only;
    FOR x IN (SELECT * FROM user_tables)
    LOOP
      EXECUTE IMMEDIATE 'GRANT SELECT ON lima_512_md.' ||
                                    x.table_name ||
                                    ' TO lima_512_md_read_only';
    END LOOP;5) Grant this role to whatever other users you'd like
    GRANT lima_512_md_read_only TO scott;6) Now, you can log in as scott, set the current_schema in the session, and query any of the tables in the LIMA_512_MD schema.
    Justin

  • Confused in oracle database firewall

    Dear all,
    I'm working on lab for oracle database firewall. Document on Oracle database Firewall reading have a lot of limit to understand for configuring.
    Anyone can help me in this lab:
    situation of lab:
    - Install oracle database firewall on one machine which have two networkd card, (for monitor only using span port group on switch).
    - For testing, I install local monitor on SQL express 2005 server (script for SQL server), Unfortunately, In this lab document don't give a solution for communicating between SQl server and Database Firewall, How can I configure SQL server to communicate with database firewall,
    thanks anh best regard,

    Hello, user12326737,
    I think you should check if you are following these guidelines:
    When using a Microsoft SQL Server 2005 or later database, ensure that the database uses mixed-mode authentication.
    Local monitoring uses a source IP address of 0.0.0.0, and port 0, for statements originating from a console user or other process. The destination address (displayed in the traffic log) is the same as one of the protected databases being monitored.
    Local monitoring does not record duplicate SQL statements. It only records the last SQL statement in a set of duplicate SQL statements.
    Local Monitor does both a forward and reverse DNS lookup to determine if a session is from the local machine. If a DNS configuration is broken and prevents the server from doing the lookup successfully, then the Local Monitor cannot record console events. To ensure that Local Monitor records all local sessions, check that your DNS configuration is correct.
    If you do, then tell me.
    If you have any questions, ask.
    Kirill Babeyev

  • CONFUSION ON SELECTING DATABASE

    The code given below is working as desired on
    local/developing machine, while it is not returning same results on
    remote server. The user authenticates, returns his/her personalized
    options (e.g. name etc.), but when user click on 'log out' link it
    returns an error 'No database selected'. Please look at code and
    suggest to solve the issue.
    Regards

    Nasik posted in macromedia.dreamweaver.appdev:
    > $logoutGoTo = "../../index.php?node=bye&lang=us-en";
    > if ($logoutGoTo) {
    > header("Location: $logoutGoTo");
    > exit;
    > }
    Two points.
    1. Where are you selecting the database? If you have
    mysql_select_db()
    in a different section of the code, say in the log in
    section, you
    might want to move it to just under session_start() here. Or
    just
    before mysql_query().
    2. You're already inside the ($_GET['out']=="true")
    condition, so the
    above if condition seems redundant.
    Mark A. Boyd
    Keep-On-Learnin' :)

  • I am confused about the database!!!

    My program needs to read some data from Access tables.
    Can my program still run on another machine which does not have
    Access installed?
    Or does it mean that if my program needs to get data form a certain
    database I must have the software that produce the database installed?
    If not so,what shall I do if I want to read data without installing the
    database software???
    I am badly in need of the answer.So please do help me !!!

    ,but another question
    If I want to run the same program on Linux(for my
    program
    is for a robot which has the linux os),does
    it mean that I must change my database.
    Can I run my program without changing my
    database as you know it is quite boring .You start by checking out whether the database you want to use is available on the platforms you want your program to run on. You then ask the database provider what it will cost. The next step is to figure out if there's a portable way to connect Java with the database in question. If it is it's just the implementation left -:) This is systems work you do before you even start coding.

  • Migrate oracle 9207 DB 8 TB size frm Solaris to AIX?dont want  Exp/Imp

    Hi Guys,PLz help
    I want migrate 8TB oracle database from Solaris 8 to AIX 5.
    In my last post on the same topic I was told to refer Metalink notes
    291024.1,Note:77523.1,Note:277650.1
    acc to these notes 'EXPORT/IMPORT IS THE ONLY OPTION TO MIGRATE FROM SOLARIS TO AIX'.
    I was not convinced as In http://dba.ipbhost.com/index.php?showtopic=9523
    I read
    "As both solaris and AIX are UNIX O/S, cloning the DB is also possible from source box to target box"
    Also
    whats the role of "If the endianness is the same"??????
    Can you guys plz comment on this again.....as I'm really confused because exp/imp of 8TB
    is going to take half of my life :)
    PLz tell in any other option in 9.2.0.7?If we have
    Thanx

    You can do
    SELECT PLATFORM_NAME, ENDIAN_FORMAT
          FROM V$TRANSPORTABLE_PLATFORMto check endianness of different platform.
    -- Note, the view is only on 10g and above.
    datafiles from different endian format can't be directly copied over and use. On 10g you have option to use RMAN convert endianness.
    with that said, since Solaris and AIX are all big engianness. That means you can directly copy datafiles over and clone database without using exp/imp.
    this article has a list of how to clone
    http://www.dba-oracle.com/oracle_tips_db_copy.htm

  • How to use local .sdf database in a windows store apps

    Hi,
    I am new in windows store app development. I have been working in WPF application development for long time. Now I want develop windows store apps. I am studying on it. I got a problem. I what to store data from windows store app in .sdf database file. I
    confused is .sdf database is compatible with windows store apps.
    I want Deploy the apps in windows apps store. Is .sdf database support in client machine while he download it and run his own machine.
    Please Suggest me about it with sample reference. It will be very helpful for me.
    bye
    With Regards
    Sadequzzaman Monoj
    Bangladesh

    SDF files are used by Microsoft SQL Server Compact Edition. SQL CE is not supported for Windows Store Apps/Universal Apps. Only WP Silverlight Apps can use SQL CE. You will have to switch to a different database format.
    As far as I know the only DB currently supported for local deployment with Windows Store Apps is SQLite.
    This article gives an introduction on how to get started with SQLite in Universal Apps:
    http://blog.tpcware.com/2014/04/universal-app-with-sqlite-part-1/

  • How to use .sdf database in a windows store apps

    Hi,
    I am new in windows store app development. I have been working in WPF application development for long time. Now I want develop windows store apps. I am studying on it. I got a problem. I what to store data from windows store app in .sdf database file. I
    confused is .sdf database is compatible with windows store apps.
    I want Deploy the apps in windows apps store. Is .sdf database support in client machine while he download it and run his own machine.
    Please Suggest me about it with sample reference. It will be very helpful for me.
    bye
    With Regards
    Sadequzzaman Monoj
    Bangladesh

    SDF files are used by Microsoft SQL Server Compact Edition. SQL CE is not supported for Windows Store Apps/Universal Apps. Only WP Silverlight Apps can use SQL CE. You will have to switch to a different database format.
    As far as I know the only DB currently supported for local deployment with Windows Store Apps is SQLite.
    This article gives an introduction on how to get started with SQLite in Universal Apps:
    http://blog.tpcware.com/2014/04/universal-app-with-sqlite-part-1/

  • Upgrade to APEX 4.2.3 apexins_con.sql gets: catconInit: database is not open Unexpected error encountered in catconInit; exiting

    Upgrade to APEX 4.2.3 apexins_con.sql gets Unexpected error encountered in catconInit; exiting
    I am attempting to install/upgrade apex 4.2.3 under Oracle12c in a Multi-Tenant configuration.
    Here are the environmental details
    Windows 7 64 bit
    Apex 4.2.3
    ORCL: CDB$ROOT
    PDBORCL: PDB$SEED
    Here is the current states of the pluggable databases
    SQL> SELECT NAME,OPEN_MODE,TOTAL_SIZE/1024/1024/1024 FROM V$PDBS;
    NAME                           OPEN_MODE  TOTAL_SIZE/1024/1024/1024
    PDB$SEED                       READ ONLY                 .263671875
    PDBORCL                        READ WRITE                .366210938
    SQL>
    This is the command that I am using to re-install/upgrade APEX:
    # remove 4.2.2 installation
    cd M:\apex_4.2.3\apex_4.2.3_en\apex
    sqlplus /@ORCL as sysdba
    @apxremov.sql   <<  this was successful
    quit
    Install 4.2.3 installation
    sqlplus /@ORCL as sysdba
    @apexins_con.sql i10wrk SYSAUX SYSAUX TEMP /i/  << this failed
    The APEX  installation fails immediately with the following message:
    catconInit: database is not open
    Unexpected error encountered in catconInit; exiting
    I cannot determine which database is not open.  Both my CDB$ROOT and PDBORCL are reported as open (READ WRITE Mode).
    Here is my Container database
    SQL>  SELECT SYS_CONTEXT ('USERENV', 'CON_NAME') FROM DUAL;
    SYS_CONTEXT('USERENV','CON_NAME')
    CDB$ROOT
    SQL> select instance_name,status from v$instance;
    INSTANCE_NAME    STATUS
    orcl             OPEN
    SQL>
    Here is the associated Pluggable Database
    sqlplus /@PDBORCL as sysdba
    SQL> select instance_name,status from v$instance;
    INSTANCE_NAME    STATUS
    orcl             OPEN
    SQL> ALTER PLUGGABLE DATABASE PDBORCL OPEN;
    ALTER PLUGGABLE DATABASE PDBORCL OPEN
    ERROR at line 1:
    ORA-65019: pluggable database PDBORCL already open
    I am confused…. Which database is not open?
    The PDB$SEED is open in (READ ONLY) mode, but that is simply the template database.  I don't think that ever needs to be open in (Read Write) mode.

    sbing52,
    I cannot vouch for the specific error that is being returned by catcon.pl, but I would try the following in your situation.
    1. It seems you connect to CDB$ROOT and ran apxremov.sql. This only removed the common APEX option from CDB$ROOT. Your PDB is now in an inconsistent state, since APEX is no longer in the root. I would reconnect to CDB$ROOT and run apxremov_con.sql, make sure you use the one from the 4.2.3 distribution. The one in the ORACLE home will not work.
    2. I would then re-run apexins_con.sql connect to CDB$ROOT. Also, you need to pass the proper parameters. Why are you passing i10wrk? You should be invoking it like:
    @apexins_con.sql SYSAUX SYSAUX TEMP /i/
    Regards,
    Jason

  • IMP database for oracle 10G in window

    Hi Experts,
    I try to imp database from exp dump file.
    I am new person.
    When i create a blank database by Oracle 10G ( create general purpose database during install oracle).
    Now I want to imp a database about 250G size.
    DO I need to create a each tablespace in source DB before imp?
    I have a full exp database dump file?
    Can I directly imp a full exp dump files to copy source database?
    Thanks
    Jim

    Thanks for your help.
    If I do not create source DB tablespace. what kind of tablespace will be imp inot new database? default from source database?i
    I have a full exp dump file.
    also if you want to keep the same tablesapce as source then just create all of tablespace. how about data file? we can change data file size. is it true?
    Thanks
    JIM
    Edited by: user589812 on Feb 26, 2009 12:43 PM

  • Database storage

    I have a confusion regarding the database storage mechanism.
    I have created a tablespace
    CREATE TABLESPACE TEST
    DATAFILE '..\test01.DBF'
    SIZE 152k
    SELECT bytes FROM DBA_FREE_SPACE
    WHERE tablespace_name ='TEST'
    It shows 65536 bytes.
    But it is smaller then 152k.
    Why is it so??
    Please help me out.

    hello,
    as you have not specified extent clause i think it is initial extent oracle creates of 64k (65536/1024=64k) as it is ...oracle system-managed extents
    have a look at this
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/logical.htm#g23847
    this is extract from oracle docs
    For system-managed extents, Oracle determines the optimal
    size of additional extents, with a minimum extent size of 64 KB.
    If the tablespaces are created with 'segment space management auto',
    and if the database block size is 16K or higher, then Oracle manages
    segment size by creating extents with a minimum size of 1M.
    This is the default for permanent tablespaces.experts please correct me.....if i am wrong
    thanks and regards
    VD
    Edited by: Dixit on Sep 8, 2009 2:15 AM
    Edited by: Dixit on Sep 8, 2009 2:16 AM
    Edited by: Dixit on Sep 8, 2009 2:18 AM

  • Transfer 8.1.6 database residing on AIX to 10gR1 residing on RHEL4 AS

    I've been googling and realized that there is no direct upgrade path from 8.1.6 to 10gR1, it states that I should upgrade first to 8.1.7 before moving to 10gR1. My problem is I can't touch the 8.1.6 because I'm not the admin of that DB, I'm just tasked to migrate 8i to 10g.
    So I was thingking that one way to accomplish my task is
    1. to install another 8.1.6 on my windows pc
    2. exp/imp the old 8.1.6 DB to my windows pc
    3. upgrade to 8.1.7
    4. exp/imp to 10gR1
    Does anyone has a better solution? Please let me know.
    Thanks and Best Regards

    If you want to rely on exp/imp
    1) exp database on the AIX machine
    2) install 10gR1 on Linux
    3) imp database on Linux into 10gR1
    Direct upgrade means:
    1) exp database on the AIX machine
    2) install 8.1.7 on Linux
    3) imp database on Linux into 8.1.7
    4) perform the direct upgrade using DBUA
    Werner

  • Database time comparisons from RAT

    I am using Real Application Testing to test moving to a new server and I am a little confused on the “database time” comparisons. I ran the capture for 5 minutes and 54 seconds, the database time for the CAPTURE shows 33 minutes and 29 seconds, when I replayed it the REPLAY shows database time for 6:09 but the actual duration was only 5:57.
    So this tells me that it took about the same amount of time to play back the workload but I don’t understand the database time. Can somebody help me out with this? Thanks.

    I have not done RAT but my guess is the CAPTURE time is the cumulative time consumed by sessions on database for the given workload.

  • How to manage oracle 9i databases from 11g ?

    Is there any option similar to 9i OEM's "Add Database to tree" in 11g ?
    currently I monitor 30 databases, all running 9iR2, using enterprise manager console. I had removed Oracle 9i from my system to install 11g, so is there anyway to monitor 9i database from 11g or do I have to re-install 9i into a new home ?
    My system is Windows XP and most databases are on linux.

    What, precisely, do you mean by "11g Enterprise manager console"? Are you talking about a web-based interface? Or a Java-based console application?
    If you have not done a separate OEM install, you're most likely using the database control, as web-based interface that allows you to manage a single database. You would need to install the Grid Control in order to manage multiple databases through the same interface.
    You're probably right, that's why I asked the question. Perhaps the original poster meant the "10g Enterprise Manager console". Perhaps he meant the "11g Enterprise Manager Database Control". Perhaps he meant the "11g Enterprise Manager Grid Control". Or perhaps he meant something different (i.e. SQL Developer is a console application that ships with 11g and has a variety of reporting scripts).
    The OP for the 11g installation could not have possibly made a separate OEM install, OEM is not included in 11g any more and he has not mentioned trying such intall. The OP was clear enough, so IMO there is no confusion, 30 9i databases, 1 11g database. There was not a 10g in between. I would not go so far as to say an 11g grid control, since there is no such grid control, the latest version for grid control is 10.2.0.4.0 for R2 and 10.1.0.3.0 for R1. And SQLDeveloper, yes, it is a java application included with 11g, and you can launch scripts from there, but in no way it is a managing environment the way the OP pretends.
    Regards.
    ~ Madrid
    http://hrivera99.blogspot.com

Maybe you are looking for

  • Purchased extra storage for photos

    Hi, i have purchased an extra 200gb of storage for photos (newbie to mac here) , can anyone tell me if my photos are saved to iCloud do they stay there until i delete them or do they delete after so many days ?  I bought the 200gb as somewhere to sav

  • How can I put a hard drive icon on desktop?

    how can I put a hard drive icon on desktop?

  • Will XI system acts as both sender and receiver?

    Hi, My scenario is JDBC>XI>XI. I'am getting data from database and I need to send it to XI system(Receiver) and I need response.I've done this scenario.In that I've used my XI-Dev system as sender and receiver.And I'am getting error in sxmb_moni <SAP

  • How to I set a song to a contact

    I have copied my CDs to my Iphone and I want to attach certain songs to individule contacts. Can you please help me ? Janey

  • Java.sql.SQLException: invalid name pattern:schema.file_import_nestedtable

    Hi all, I am trying to insert an array in nested table to another table. I have a nested table by the name 'file_import_nestedTable'. code for object 'file_import_obj' CREATE OR REPLACE TYPE file_import_obj AS OBJECT column_1 datatype, column_2 datat