Job Seekers   Employers
dbapool: Authors | Submissions | Contact Us
   Forgot password? | Sign up
  Home   Discussion Forum   Articles   Interview Questions   FAQs   Scripts   Rewards   Analyzer   White Papers   Blog   Certification   Downloads   Tools
 

Topic: Database Administration >> Schema Refresh

Disclaimer: The purpose of all dbapool forums including OCP and Other Oracle Certification forums is to help each other with specific issues but not to share dump and copyrighted exam content, materials or intellectual property. You may review the entire Oracle Certification Program Candidate Agreement online Here.



  


 Title: Schema Refresh
 vikhardba  Posted: Nov 14, 2007 06:43:05 AM

 Total Post: 86
 Joined: Apr, 2007






 Hi to One and All,

I would like to know the steps for schema refresh on linux platform. Hope you will provide me complete steps.

 vikhardba
Posted: Nov 14, 2007 06:55:10 AM  

 Total Post: 86
 Joined: Apr, 2007






 
Can you please check my steps . . . Also please let me know whether my steps are correct or not.

If possible please provide me schema refresh steps. I got the idea and implementing it in my system. However, would like to know the complete steps.

Ex:
1. Take backup at Dev ( you mean complete database backup, please clarify me on this )

2. drop objects at dev ( steps please .. i know but need them for confirmation )

3. Take exp of schema at Prod ( check am i correct or not ....
prod]$ exp file=pmc.dmp log=pmc.log owner=pmc rows=n

4. scp dump to dev server ( check this also... )
prod]$scp /u01/oradata/prod/pmc.dmp oradb22s:/u01/oradata/stg/.

5. Import ( steps . . . . please
dev]$imp file=pmc.dmp log=pmc.log fromuser=pmc touser=pmc


 Prabir
Posted: Nov 22, 2007 07:13:57 AM  

 Total Post: 3
 Joined: Feb, 2006






 
Steps for Schema Refreshing:
1.Take datapump export of production DB.
2.Take dump of the schema want to refresh if required as sys or system.
3.Log into DB as sys or system.
4.Drop the user using cascade option
5.Drop tablespace dadicated to that user/schema
5.Create tablespace for the user/schema
6.Create user with default tablespace as created in step 5
7.Grant connect/resource priv. to the user or can grant DBA
8.Scp the dump file to local M/c.
9.Use datapump import using remap schema=prod_schemma:dev_schema and remap tablespace=prod_ts:dev_ts to import the dump file

 Time Zone: EDT

  




Forum Rules & Description


Who Can Read The Forum? Any registered user or guest
Who Can Post New Topics? Any registered user
Who Can Post Replies? Any registered user




 








Get FREE Magazines

Top 10 Forum User

  Murtuja Khokhar816
  Mohammed Taj709
  Jayanta Sur479
  positive fanatic418
  Vigyan Kaushik386
  Gitesh Trivedi322
  Gopu Gopi242
  neeraj sharma240
  Ramesh Jois226
  Bishal Khetan205






oracle Mag



  About Us Advertise Terms of Use Privacy Newsletters Contact Us    

Home   Discussion Forum   FAQs  Articles  Jobs   Newsletters  Directory  Downloads 

Our Premium Sponsor
Confio Software