Note that there are some explanatory texts on larger screens.

plurals
  1. POOracle: Recover backup in other different than original server
    primarykey
    data
    text
    <p>I'm really newbie about Oracle backup operations. I'm really new in this world and I need to know how to backup a DB schema and restore it in another machine under another schema name.</p> <p>I cannot afford any mistake since I'll be doing this in our customer site, an making a small mistake could be the last one </p> <p>I don't want to sound offensive, but doing this in MySQL is really easy, like this:</p> <p>in server one:</p> <pre><code>$mysqldump --user=user --password=password db_to_backup &gt; bc_name.sql </code></pre> <p>-after transfering the sql script to another server</p> <p>in server two:</p> <pre><code>mysql&gt;create database db_to_restore; $mysql --user=user --password=password db_to_restore &lt; bc_name.sql </code></pre> <p>I need to do the same using Oracle, I read some documentation but I'm still unsure how to do it:</p> <ul> <li><p>First: What's the equivalent of MySQL database in Oracle? tablespace?</p></li> <li><p>Second: I think these are the steps to get a backup</p> <pre><code>mkdir /opt/oracle/dumptmp/ CREATE OR REPLACE DIRECTORY dumptmp AS '/opt/oracle/dumptmp/'; expdp user/pass@tablespace directory=dumptmp dumpfile=dumptmp:full.dmp logfile=dumptmp:full.log full=y </code></pre></li> <li><p>Third: Then I move the file "full.dmp" to the other server, but I'm not sure how to restore my backup file full.dmp into a new tablespace with a different name to the one it the backup was gotten from:</p> <pre><code>SQLPLUS&gt;create tablespace ts_something; </code></pre></li> </ul> <p>then I'm not sure how to proceed from here. Please advice me how to do it using command line commands since my customer does not have GUI tools intalled.</p> <p>Thanks a lot!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload