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 >> export and import

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: export and import
 amjad  Posted: Apr 23, 2008 04:54:27 AM

 Total Post: 23
 Joined: Feb, 2008






 please can any one send me the query for export and import from diffreant tables such as hr_finance ,acc_vaction where emp_NO =1775
i want to export this employees records from diffreant table and imp to other database .
i am using the oracle 9i on windows platform

 Murtuja
Posted: Apr 23, 2008 05:35:34 AM  

 Total Post: 814
 Joined: Jan, 2006






 
exp parfile='c:\parafile.txt'

parafile.txt will have these lines

FILE="C:\testqry.DMP"
LOG="C:\exp_testqry.log"
TABLES=('SCOTT.EMP')
QUERY="where empno=7654"
INDEXES=N
TRIGGERS=N
CONSTRAINTS=N
GRANTS=N


 amjad
Posted: Apr 23, 2008 06:30:13 AM  

 Total Post: 23
 Joined: Feb, 2008






 
HR_ACC_VACATION (filtered by emp_kgl_no)

HR_DECISIONS_DT (filtered by emp_kgl_no)

HR_DECISIONS_NFIN_DT (filtered by emp_kgl_no)

where emp-kgl_no=17995

like this they are my tables i had to export it from the server pls tell me the query that how to run from the server as system user


 GOPU
Posted: Apr 23, 2008 07:08:22 AM  

 Total Post: 242
 Joined: Apr, 2008






 

exp system/passwd file=D:\file\exp.dmp tables=('SCHEMA.HR_ACC_VACATION') query=('where emp-kgl_no=17995')

 amjad
Posted: Apr 24, 2008 04:41:23 AM  

 Total Post: 23
 Joined: Feb, 2008






 
thanks every much for you support i had take the export sucessfully but when i tried to import all the eleven table data filter by emp_no 17995
it is showing this error
. importing HR2003's objects into HR2003
. . importing table "HR_ACC_VACATION" 13 rows imported
. . importing table "HR_DECISIONS_DT"
IMP-00019: row rejected due to ORACLE error 2291
IMP-00003: ORACLE error 2291 encountered
ORA-02291: integrity constraint (HR2003.HDD_HEM_FK) violated - parent key not found

i had imp with option ignore=y constraints=y but this error is still
please reply me its urgent


 GOPU
Posted: Apr 24, 2008 06:05:26 AM  

 Total Post: 242
 Joined: Apr, 2008






 
Hi,
you have to give
index=n constraint=n

try

gopu

 GOPU
Posted: Apr 24, 2008 06:08:19 AM  

 Total Post: 242
 Joined: Apr, 2008






 
Hi friend,

Cause: A foreign key value has no matching primary key value.
Action: Delete the foreign key or add a matching primary key.

otherwise try by giving constraints=n

Regards
Gopu

 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 Khokhar814
  Mohammed Taj694
  Jayanta Sur479
  Vigyan Kaushik386
  positive fanatic361
  Gitesh Trivedi322
  Gopu Gopi242
  neeraj sharma228
  Ramesh Jois226
  Bishal Khetan169






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