Import Help 2005-08-12 - By Mercadante, Thomas F (LABOR)
Bryan, What Oracle account are you using to run the import command? Is it the CONSOL user? Does this user have IMP_FULL_DATABASE role? I think this is a permissions problem where maybe you can create the tables but do not have permissions to import the stats to the tables/columns. Does the table get created correctly in the CONSOL account? Tom __ ____ ____ ____ ____ ____ ____ From: oracle-l-bounce@(protected) [mailto:oracle-l-bounce@(protected)] On Behalf Of Bryan Wells Sent: Thursday, August 11, 2005 4:40 PM To: Oracle-L Subject: Import Help Can some one see what I am missing/doing wrong? I am attempting to import data from a parfile to get data from a partitioned table to non-partitioned table and am getting the following error. i have truncated the tables and set ignore=y. is that not enough? FILE=\\lon1-gdwt\f$\Oracle\GDWSTG\Backups\GDWSTG_CONSOL_EXP.DMP LOG=\\lon1-gdwt\f$\Oracle\GDWSTGT\Backups\GDWSTG_CONSOL_IMP.log STATISTICS=NONE FROMUSER=CONSOL TOUSER=CONSOL TABLES=( INVOICE, INVOICE_ITEM, JOURNAL_ENTRY, JOURNAL_ENTRY_LINE, ORDER_DETAIL, ORDER_HEADER, RMA_DETAIL, RMA_HEADER, RMA_NOTES) CONSTRAINTS=N INDEXES=N IGNORE=Y IMP-00017: following statement failed with ORACLE error 20000: "DECLARE SREC DBMS_STATS.STATREC; BEGIN SREC.MINVAL := 'C105'; SREC.MAXVAL " ":= 'C32C065D'; SREC.EAVS := 0; SREC.CHVALS := NULL; SREC.NOVALS := DBMS_STA" "TS.NUMARRAY(4,430592); SREC.BKVALS := DBMS_STATS.NUMARRAY(0,1); SREC.EPC :=" " 2; DBMS_STATS.SET_COLUMN_STATS(NULL,'"INVOICE"','"DW_SOLD_TO_CUSTOMER_ID"'" ",'"CONSOL_INVOICE_FY05"',NULL,NULL,3137,.000318775900541919,0,srec,4,0) ; EN" "D;" IMP-00003: ORACLE error 20000 encounteredORA-20000 (See ORA-20000.ora-code.com ): Unable to set values for column DW_SOLD_TO_CUSTOMER_ID: does not exist or insufficient privileges ORA-06512 (See ORA-06512.ora-code.com ): at "SYS.DBMS_STATS", line 3365ORA-06512 (See ORA-06512.ora-code.com ): at "SYS.DBMS_STATS", line 3523ORA-06512 (See ORA-06512.ora-code.com ): at line 1 -- Bryan Wells bunjibry@(protected) Oracle DBA hopeful <html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft -com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1= "urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC -html40"> <head> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"> <meta name=Generator content="Microsoft Word 11 (filtered medium)"> <!--[if !mso]> <style> v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} </style> <![endif]--><o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="City"/> <o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="place"/> <!--[if !mso]> <style> st1\:*{behavior:url(#default#ieooui) } </style> <![endif]--> <style> <!-- /* Font Definitions */ @(protected) {font-family:Tahoma; panose-1:2 11 6 4 3 5 4 4 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman";} a:link, span.MsoHyperlink {color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {color:blue; text-decoration:underline;} span.EmailStyle17 {mso-style-type:personal-reply; font-family:Arial; color:navy;} @(protected) Section1 {size:8.5in 11.0in; margin:1.0in 1.25in 1.0in 1.25in;} div.Section1 {page:Section1;} --> </style> </head> <body lang=EN-US link=blue vlink=blue> <div class=Section1> <p class=MsoNormal><st1:City w:st="on"><st1:place w:st="on"><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial; color:navy'>Bryan</span></font></st1:place></st1:City><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial; color:navy'>,<o:p></o:p></span></font></p> <p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size: 10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p> <p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size: 10.0pt;font-family:Arial;color:navy'>What Oracle account are you using to run the import command? Is it the CONSOL user? Does this user have IMP _FULL_DATABASE role? I think this is a permissions problem where maybe you can create the tables but do not have permissions to import the stats to the tables/columns. Does the table get created correctly in the CONSOL account?<o:p></o:p></span></font> </p> <p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size: 10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p> <p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size: 10.0pt;font-family:Arial;color:navy'>Tom<o:p></o:p></span></font></p> <p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size: 10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p> <div> <div class=MsoNormal align=center style='text-align:center'><font size=3 face="Times New Roman"><span style='font-size:12.0pt'> <hr size=2 width="100%" align=center tabindex=-1> </span></font></div> <p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt; font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> oracle-l-bounce@(protected) [mailto:oracle-l-bounce@(protected)] <b><span style='font-weight:bold'>On Behalf Of </span></b>Bryan Wells<br> <b><span style='font-weight:bold'>Sent:</span></b> Thursday, August 11, 2005 4:40 PM<br> <b><span style='font-weight:bold'>To:</span></b> Oracle-L<br> <b><span style='font-weight:bold'>Subject:</span></b> Import Help</span></font> <o:p></o:p></p> </div> <p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size: 12.0pt'><o:p> </o:p></span></font></p> <div> <p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size: 12.0pt'>Can some one see what I am missing/doing wrong? I am attempting to import data from a parfile to get data from a partitioned table to non-partitioned table and am getting the following error. i have truncated the tables and set ignore=y. is that not enough? <o:p></o:p>< /span></font></p> </div> <div> <p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size: 12.0pt'> <o:p></o:p></span></font></p> </div> <div> <p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size: 12.0pt'>FILE=\\lon1-gdwt\f$\Oracle\GDWSTG\Backups\GDWSTG_CONSOL_EXP.DMP<br> LOG=\\lon1-gdwt\f$\Oracle\GDWSTGT\Backups\GDWSTG_CONSOL_IMP.log<br> STATISTICS=NONE<br> FROMUSER=CONSOL<br> TOUSER=CONSOL<br> TABLES=(<br> INVOICE,<br> INVOICE_ITEM, <br> JOURNAL_ENTRY,<br> JOURNAL_ENTRY_LINE,<br> ORDER_DETAIL,<br> ORDER_HEADER,<br> RMA_DETAIL,<br> RMA_HEADER,<br> RMA_NOTES)<br> CONSTRAINTS=N<br> INDEXES=N<br> IGNORE=Y<o:p></o:p></span></font></p> </div> <div> <p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size: 12.0pt'> <o:p></o:p></span></font></p> </div> <div> <p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size: 12.0pt'>IMP-00017: following statement failed with ORACLE error 20000:<br> "DECLARE SREC DBMS_STATS.STATREC; BEGIN SREC.MINVAL := 'C105'; SREC.MAXVAL "<br> ":= 'C32C065D'; SREC.EAVS := 0; SREC.CHVALS := NULL; SREC.NOVALS := DBMS_STA"<br> "TS.NUMARRAY(4,430592); SREC.BKVALS := DBMS_STATS.NUMARRAY(0,1); SREC.EPC :="<br> " 2; DBMS_STATS.SET_COLUMN_STATS(NULL,'"INVOICE"','"DW_SOLD_TO _CUSTOMER_ID"'" <br> ",'"CONSOL_INVOICE_FY05"',NULL,NULL,3137, .000318775900541919,0,srec,4,0); EN"<br> "D;"<br> IMP-00003: ORACLE error 20000 encountered<br>ORA-20000 (See ORA-20000.ora-code.com ): Unable to set values for column DW_SOLD_TO_CUSTOMER_ID: does not exist or insufficient privileges <br>ORA-06512 (See ORA-06512.ora-code.com ): at "SYS.DBMS_STATS", line 3365<br>ORA-06512 (See ORA-06512.ora-code.com ): at "SYS.DBMS_STATS", line 3523<br>ORA-06512 (See ORA-06512.ora-code.com ): at line 1<br clear=all> <br> -- <br> Bryan Wells<br> <a href="mailto:bunjibry@(protected)">bunjibry@(protected) </a><br> Oracle DBA hopeful <o:p></o:p></span></font></p> </div> </div> </body> </html>