Solved

to clone schema

Posted on 2014-04-03
5
468 Views
Last Modified: 2014-04-06
What are the steps to clone a schema..
that means we want to create a clone schema in database in another server.

What are the steps for that?
0
Comment
Question by:tonydba
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 37

Accepted Solution

by:
Geert Gruwez earned 500 total points
ID: 39974983
create a directory on the server to contain a dump file (for example d:\dumps)
create the directory in the db
  create directory dumps as 'd:\dumps';

export the schema with expdp using a user with sufficient privs to export a full schema

set oracle_sid=orclsid
expdp dbauser/dbapass schemas=yourschema dumpfile=schema.dmp directory=dumps

copy the file to the other server
create the directory in the dest db

import the dumpfile
impdp dbauser/dbapass schemas=yourschema dumpfile=schema.dmp directory=dumps

see the utilites doc
export schema
http://docs.oracle.com/cd/E11882_01/server.112/e22490/dp_export.htm#SUTIL864

import schema
http://docs.oracle.com/cd/E11882_01/server.112/e22490/dp_import.htm#SUTIL895
0
 
LVL 16

Expert Comment

by:Wasim Akram Shaik
ID: 39974998
As you used the term "clone" , giving you the link which would give  you cloning steps

For Unix

http://www.dba-oracle.com/oracle_tips_db_copy.htm

For Linux

http://www.oracle-base.com/articles/misc/manually-cloning-an-existing-oracle-db-installation-on-linux.php
0
 
LVL 35

Expert Comment

by:johnsone
ID: 39975006
wasimibm,

Original post is to clone a schema, not a database.  The 2 links that you posted are for cloning an entire database.  By the way, either method would work on both Unix and Linux.
0
 
LVL 15

Expert Comment

by:Devinder Singh Virdi
ID: 39979076
You can use expdp/impdp to take backup of particular schema and import in same/different database as needed. Lets say you want Prod data in Dev environment and schema names are different accross databases. I mean Prod schema name is ProdAppUser and Dev has DevAppUser etc,
When using data pump, you can remap tablespace name, schema names etc, therefore basically you are preparing copy of schema for some use.
0
 

Author Closing Comment

by:tonydba
ID: 39981599
Good solution..
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
scheduler notification 9 80
Pass multiple values or string arrays in java as a parameter 3 73
Oracle Date 6 42
Multiple Rows in a table for Separate Columns 12 24
Why doesn't the Oracle optimizer use my index? Querying too much data Most Oracle developers know that an index is useful when you can use it to restrict your result set to a small number of the total rows in a table. So, the obvious side…
Introduction A previously published article on Experts Exchange ("Joins in Oracle", http://www.experts-exchange.com/Database/Oracle/A_8249-Joins-in-Oracle.html) makes a statement about "Oracle proprietary" joins and mixes the join syntax with gen…
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question