Imp chars
trying to import data to using command "imp blabla.dmp". Weird chars appear on screen. Unreadable character. Is there a way to change import steps chars to English?
PS It's my first time installing and using oracle since 2003
Message was edited by:
user596452
imp blabla.mdbmdb isn't a MSAccess file extension ?
Please take a look in the documentation corresponding to the used version http://docs.oracle.com for the import command utility.
O if you want to move from Access to Oracle, you may want to read some docs about Migration Workbench.
Nicolas.
Similar Messages
-
How to use char in the return type
public class Implement{
public char Imp (char a[10]){
}in JAVA how to define a NULL charactor???It depends what you mean. char is a primitive, and so it cannot have a value of null. If you need a value of null, you could use a Character, rather than char.
On the other hand, if you mean "the null character"--the char whose bits are all zero--then char ch = '\0';Edit: Oh, yeah, a simple 0 as DrLJ suggested will work too.
Message was edited by:
jverd -
Exp/imp, convertion from byte to char.
Hi,
I have a dump file exported from a database with nls_lenght_sematics=BYTES. When i import it into a database with nls_lenght_sematics=CHAR, it is retaining the BYTE charecteristics. Is there any way to change it into CHAR while importing. This for globalization support.
Thanks
MuneerHi Muneer,
No, import always preserve the LENGTH semantics of the original columns.
The workaround is to create your schema objects in the traget database first, with the desired semantics, prior to the importing the data.
Nat -
How to fix this error: IMP-00003: ORACLE error 1435 encountered
Hello,
I am new to oracle database. I am trying import a data dump file *.dmp into my test database. I am using Oracle Database 11g. I have created "datatest" to be the user and I granted all possible rights that was there. :) but still getting this error message.
Does Oracle has a GUI tool somewhere I can try or how I can fix this issue? PLEASE HELP.
Below are the actions taken:
=========================================================================
C:\app\Administrator\admin\ORCLENT1\dpdump>imp
Import: Release 11.2.0.1.0 - Production on Wed Aug 29 22:32:39 2012
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
Username: datatest
Password:
Connected to: Personal Oracle Database 11g Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Import data only (yes/no): no > no
Import file: EXPDAT.DMP > expdat.dmp
Enter insert buffer size (minimum is 8192) 30720> 8299
Export file created by EXPORT:V11.02.00 via conventional path
Warning: the objects were exported by SYSTEM, not by you
import done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
import server uses AL32UTF8 character set (possible charset conversion)
List contents of import file only (yes/no): no > no
Ignore create error due to object existence (yes/no): no > no
Import grants (yes/no): yes > yes
Import table data (yes/no): yes > yes
Import entire export file (yes/no): no > yes
. importing SYSTEM's objects into DATATEST
. importing DW_OWNER's objects into DW_OWNER
IMP-00003: ORACLE error 1435 encountered
ORA-01435: user does not exist
Import terminated successfully with warnings.
=============================================================Thanks for helping with the script. It is very helpful, especially for newbie like me. :) When I run the script, there seems to be a lot of error during this process. Here is the log. Any suggestions how I can fix this?
=====================================================
Connected to: Personal Oracle Database 11g Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Export file created by EXPORT:V11.02.00 via conventional path
Warning: the objects were exported by SYSTEM, not by you
import done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
import server uses AL32UTF8 character set (possible charset conversion)
. . importing table "MVW_MATCH_STATS" 335481 rows imported
. . importing table "MVW_PLAYER_AGG" 34937 rows imported
. . importing table "MVW_PLAYER_TOURNAMENT_AGG" 519174 rows imported
. . importing table "MVW_TOURNAMENT_AGG" 12785 rows imported
. . importing table "MVW_UT_AGG1" 8 rows imported
. . importing table "TMP_CATEGORY_ATP" 29999 rows imported
. . importing table "TMP_CATEGORY_WTA" 29999 rows imported
. . importing table "TMP_IMPORT_STATS_PLAYER1" 32578 rows imported
. . importing table "TMP_MATCH_COURT_TYPE" 335562 rows imported
. . importing table "TMP_PLAYER_ATP" 47070 rows imported
. . importing table "TMP_RESULT_COMBINATIONS" 16889 rows imported
. . importing table "TMP_STADIA" 852 rows imported
. . importing table "TMP_TOUR_ATP" 16762 rows imported
. . importing table "TMP_TOUR_STADIA" 5222 rows imported
. . importing table "TMP_TOUR_WTA" 9000 rows imported
. . importing table "W_COURT_TYPE_D" 7 rows imported
. . importing table "W_DATE_D" 22330 rows imported
. . importing table "W_MATCH_D" 506408 rows imported
. . importing table "W_MATCH_F" 1012812 rows imported
. . importing table "W_MINUTE_D" 1440 rows imported
. . importing table "W_PLAYER_D" 35305 rows imported
. . importing table "W_PLAYER_D_F" 23538 rows imported
. . importing table "W_PLAYER_D_M" 45804 rows imported
. . importing table "W_ROUND_D" 19 rows imported
. . importing table "W_STADIUM_D" 428 rows imported
. . importing table "W_TOURNAMENT_D" 12882 rows imported
. . importing table "W_TOURNAMENT_F" 433111 rows imported
IMP-00017: following statement failed with ORACLE error 959:
"CREATE TABLE "W_USAGE_TRACKING" ("USER_NAME" VARCHAR2(128), "REPOSITORY_NAM"
"E" VARCHAR2(128), "SUBJECT_AREA_NAME" VARCHAR2(128), "NODE_ID" VARCHAR2(15)"
", "START_TS" DATE, "START_DT" DATE, "START_HOUR_MIN" CHAR(5), "END_TS" DATE"
", "END_DT" DATE, "END_HOUR_MIN" CHAR(5), "QUERY_TEXT" VARCHAR2(1024), "QUER"
"Y_BLOB" CLOB, "QUERY_KEY" VARCHAR2(128), "SUCCESS_FLG" NUMBER(10, 0), "ROW_"
"COUNT" NUMBER(10, 0), "TOTAL_TIME_SEC" NUMBER(10, 0), "COMPILE_TIME_SEC" NU"
"MBER(10, 0), "NUM_DB_QUERY" NUMBER(10, 0), "CUM_DB_TIME_SEC" NUMBER(10, 0),"
" "CUM_NUM_DB_ROW" NUMBER(10, 0), "CACHE_IND_FLG" CHAR(1) NOT NULL ENABLE, ""
"QUERY_SRC_CD" VARCHAR2(30), "SAW_SRC_PATH" VARCHAR2(250), "SAW_DASHBOARD" V"
"ARCHAR2(150), "SAW_DASHBOARD_PG" VARCHAR2(150), "PRESENTATION_NAME" VARCHAR"
"2(128), "ERROR_TEXT" VARCHAR2(250), "IMPERSONATOR_USER_NAME" VARCHAR2(128),"
" "NUM_CACHE_INSERTED" NUMBER(10, 0), "NUM_CACHE_HITS" NUMBER(10, 0), "QUERY"
"_DATE_WID" NUMBER(10, 0)) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 ST"
"ORAGE(INITIAL 3145728 NEXT 1048576 MINEXTENTS 1 FREELISTS 1 FREELIST GROUPS"
" 1 BUFFER_POOL DEFAULT) TABLESPACE "DW_DATA" NOLOGGING NOCOMPRESS LOB ("QUE"
"RY_BLOB") STORE AS BASICFILE (TABLESPACE "DW_DATA" ENABLE STORAGE IN ROW C"
"HUNK 8192 RETENTION NOCACHE NOLOGGING STORAGE(INITIAL 65536 NEXT 1048576 "
"MINEXTENTS 1 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT))"
IMP-00003: ORACLE error 959 encountered
ORA-00959: tablespace 'DW_DATA' does not exist
. . importing table "W_USER" 8 rows imported
IMP-00017: following statement failed with ORACLE error 942:
"CREATE SNAPSHOT "MVW_UT_AGG1" ( "USER_NAME","QUERY_COUNT","ROW_COUNT" ) US"
"ING ("MVW_UT_AGG1", (9, 'ORCL', 1, 0, 0, "DW_OWNER", "W_USAGE_TRACKING", '2"
"012-05-31:23:56:48', 8, 74659, '2012-05-31:23:56:48', '', 1, '0280', 281368"
"84, 0, NULL), 2101313, 10, ('1950-01-01:12:00:00', 25, 0, 0, 28136884, 0, 2"
"098180, 2, NULL, NULL)) REFRESH COMPLETE AS"
"SELECT "
"user_name,"
"count(*) as query_count,"
"sum(row_count) as row_count"
"FROM W_USAGE_TRACKING "
"group by user_name"
IMP-00003: ORACLE error 942 encountered
ORA-00942: table or view does not exist
IMP-00017: following statement failed with ORACLE error 12003:
"ALTER SNAPSHOT "MVW_UT_AGG1" COMPILE"
IMP-00003: ORACLE error 12003 encountered
ORA-12003: materialized view "YANXIZAOTENNIS"."MVW_UT_AGG1" does not exist
About to enable constraints...
Import terminated successfully with warnings.
============================== -
Imp/exp ORA-12899: value too large for column
imp/exp ORA-12899: value too large for column
source :
os: linux as 4 update4
.bash_profile NLS_LANG=AMERICAN_AMERICA.US7ASCII
for run exp bill/admin001 file=bill0518.dmp bill rows=y
oracle: 10.2.1
NLS_LANGUAGE AMERICAN
NLS_TERRITORY AMERICA
NLS_CHARACTERSET US7ASCII
target :
os: linux as 4 update4
.bash_profile NLS_LANG=AMERICAN_AMERICA.AL32UTF8
for run
imp bill/admin001 file=bill0518.dmp
oracle: 10.2.1
NLS_LANGUAGE AMERICAN
NLS_TERRITORY AMERICA
NLS_CHARACTERSET AL32UTF8
imp log
Import: Release 10.2.0.1.0 - Production on Wed May 16 14:57:59 2007
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Produc tion
With the Partitioning, Real Application Clusters, OLAP and Data Mining options
Export file created by EXPORT:V10.02.01 via conventional path
import done in US7ASCII character set and AL16UTF16 NCHAR character set
import server uses AL32UTF8 character set (possible charset conversion)
export client uses AL32UTF8 character set (possible charset conversion)
. importing BILL's objects into BILL
. . importing table "MY_SESSION" 44 rows imported
. . importing table "T1"
IMP-00019: row rejected due to ORACLE error 12899
IMP-00003: ORACLE error 12899 encountered
ORA-12899: value too large for column "BILL"."T1"."NAME" (actual: 62, maximum: 5 0)
Column 1 1
Column 2 ÖйúÈË. 0 rows impo rted
Import terminated successfully with warnings.Yes it's probably due to different char sets
A way around it it to change the DB setup on the new database to use CHAR as default for varchar2 rows, and then use datapump to do your import/export, because datapump uses the default varchar2 type when creating tables that includes varchar2 (which is normally byte). Exp/imp uses the varchar2 type that is in the original database
Best regards
/Klaus -
IMP-00017: following statement failed with ORACLE error 922
Hi all,
I'm trying to import a partitioned table. I'm using the imp utility with ignore=y,
but I got the error:
IMP-00017: following statement failed with ORACLE error 922:
"CREATE TABLE "TAB_EX" ("ID_EX" CHAR(12), "C2" NUM"
"BER(3, 0), "C3" DATE, "C5" DATE, "C4" NUMBER("
"8, 2), "C6" NUMBER(5, 0), "C7" NUMBER(6, "
"0), "C8" NUMBER(6, 0)) PCTFREE 2 PCTUSED 98 INITRANS 1 MAXTRANS 25"
"5 TABLESPACE "ETMTSD01" NOLOGGING PARALLEL ( DEGREE 4 INSTANCES 1) PARTITIO"
"N BY RANGE ("DT_ABERTURA" ) SUBPARTITION BY HASH ("ID_ATM" ) SUBPARTITION"
"S 4 SUBPARTITION TEMPLATE( SUBPARTITION "AB_SUBPART_1" VALUES () TABLESPAC"
"E "ETMTSD03", SUBPARTITION "AB_SUBPART_2" VALUES () TABLESPACE "ETMTSD03","
" SUBPARTITION "AB_SUBPART_3" VALUES () TABLESPACE "ETMTSD03", SUBPARTITION"
" "AB_SUBPART_4" VALUES () TABLESPACE "ETMTSD03" ) (PARTITION "AB_PART_BEFO"
"RE" VALUES LESS THAN (TO_DATE(' 2008-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:"
"SS', 'NLS_CALENDAR=GREGORIAN')) PCTFREE 2 PCTUSED 98 INITRANS 1 MAXTRANS 2"
"55 TABLESPACE "ETMTSD01" LOGGING (SUBPARTITION "AB_PART_BEFORE_AB_SUBPART_1"
"" TABLESPACE "ETMTSD03", SUBPARTITION "AB_PART_BEFORE_AB_SUBPART_2" TABLE"
"SPACE "ETMTSD03", SUBPARTITION "AB_PART_BEFORE_AB_SUBPART_3" TABLESPACE "E"
"TMTSD03", SUBPARTITION "AB_PART_BEFORE_AB_SUBPART_4" TABLESPACE "ETMTSD03""
" ), PARTITION "AB_PART_2008_01" VALUES LESS THAN (TO_DATE(' 2008-02-01 00:0"
"0:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')) PCTFREE 2 PCTU"
"SED 98 INITRANS 1 MAXTRANS 255 TABLESPACE "ETMTSD01" LOGGING (SUBPARTITION "
""AB_PART_2008_01_AB_SUBPART_1" TABLESPACE "ETMTSD03", SUBPARTITION "AB_PAR"
"T_2008_01_AB_SUBPART_2" TABLESPACE "ETMTSD03", SUBPARTITION "AB_PART_2008_"
"01_AB_SUBPART_3" TABLESPACE "ETMTSD03", SUBPARTITION "AB_PART_2008_01_AB_S"
"UBPART_4" TABLESPACE "ETMTSD03" ), PARTITION "AB_PART_2008_02" VALUES LESS"
" THAN (TO_DATE(' 2008-03-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALEN"
"DAR=GREGORIAN')) PCTFREE 2 PCTUSED 98 INITRANS 1 MAXTRANS 255 TABLESPACE ""
"ETMTSD01" LOGGING (SUBPARTITION "AB_PART_2008_02_AB_SUBPART_1" TABLESPACE "So, the rows cannot be imported because this error.
Why am I getting this error with ignore=y?
thanks!imp userdba fromuser=etmown touser=etmown file=etmown.dmp log=etmown_imp10g.log statistics=none grants=no ignore=Ythe log:
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production
With the Partitioning, OLAP and Data Mining options
Export file created by EXPORT:V09.02.00 via conventional path
Warning: the objects were exported by ETMOWN, not by you
import done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
. importing ETMOWN's objects into ETMOWN
IMP-00017: following statement failed with ORACLE error 922:
"CREATE TABLE "TAB_EX" ("c1" CHAR(12), "c2" NU"
"MBER(3, 0), "C3" DATE, "C4" DATE, "C5" NUMBER"
"(8, 2), "C6" NUMBER(5, 0), "C7" NUMBER(6,"
" 0), "C8" NUMBER(6, 0)) PCTFREE 2 PCTUSED 98 INITRANS 1 MAXTRANS 2"
"55 TABLESPACE "ETMTSD01" NOLOGGING PARALLEL ( DEGREE 4 INSTANCES 1) PARTITI"
"ON BY RANGE ("C3" ) SUBPARTITION BY HASH ("C1" ) SUBPARTITIO"
"NS 4 SUBPARTITION TEMPLATE( SUBPARTITION "AB_SUBPART_1" VALUES () TABLESPA"
"CE "ETMTSD03", SUBPARTITION "AB_SUBPART_2" VALUES () TABLESPACE "ETMTSD03""
", SUBPARTITION "AB_SUBPART_3" VALUES () TABLESPACE "ETMTSD03", SUBPARTITIO"
"N "AB_SUBPART_4" VALUES () TABLESPACE "ETMTSD03" ) (PARTITION "AB_PART_BEF"
"ORE" VALUES LESS THAN (TO_DATE(' 2008-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI"
":SS', 'NLS_CALENDAR=GREGORIAN')) PCTFREE 2 PCTUSED 98 INITRANS 1 MAXTRANS "
"255 TABLESPACE "ETMTSD01" LOGGING (SUBPARTITION "AB_PART_BEFORE_AB_SUBPART_"
"1" TABLESPACE "ETMTSD03", SUBPARTITION "AB_PART_BEFORE_AB_SUBPART_2" TABL"
"ESPACE "ETMTSD03", SUBPARTITION "AB_PART_BEFORE_AB_SUBPART_3" TABLESPACE ""
"ETMTSD03", SUBPARTITION "AB_PART_BEFORE_AB_SUBPART_4" TABLESPACE "ETMTSD03"
"" ), PARTITION "AB_PART_2008_01" VALUES LESS THAN (TO_DATE(' 2008-02-01 00:"
"00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')) PCTFREE 2 PCT"
"USED 98 INITRANS 1 MAXTRANS 255 TABLESPACE "ETMTSD01" LOGGING (SUBPARTITION"
" "AB_PART_2008_01_AB_SUBPART_1" TABLESPACE "ETMTSD03", SUBPARTITION "AB_PA"
"RT_2008_01_AB_SUBPART_2" TABLESPACE "ETMTSD03", SUBPARTITION "AB_PART_2008"
"_01_AB_SUBPART_3" TABLESPACE "ETMTSD03", SUBPARTITION "AB_PART_2008_01_AB_"
"SUBPART_4" TABLESPACE "ETMTSD03" ), PARTITION "AB_PART_2008_02" VALUES LES"
"S THAN (TO_DATE(' 2008-03-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALE"
"NDAR=GREGORIAN')) PCTFREE 2 PCTUSED 98 INITRANS 1 MAXTRANS 255 TABLESPACE "
""ETMTSD01" LOGGING (SUBPARTITION "AB_PART_2008_02_AB_SUBPART_1" TABLESPACE"
" "ETMTSD03", SUBPARTITION "AB_PART_2008_02_AB_SUBPART_2" TABLESPACE "ETMTS"
"D03", SUBPARTITION "AB_PART_2008_02_AB_SUBPART_3" TABLESPACE "ETMTSD03", S"
"UBPARTITION "AB_PART_2008_02_AB_SUBPART_4" TABLESPACE "ETMTSD03" ), PARTIT"
"ION "AB_PART_2008_03" VALUES LESS THAN (TO_DATE(' 2008-04-01 00:00:00', 'SY"
"YYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')) PCTFREE 2 PCTUSED 98 INI"
"TRANS 1 MAXTRANS 255 TABLESPACE "ETMTSD01" LOGGING (SUBPARTITION "AB_PART_2"
"008_03_AB_SUBPART_1" TABLESPACE "ETMTSD03", SUBPARTITION "AB_PART_2008_03_"
"AB_SUBPART_2" TABLESPACE "ETMTSD03", SUBPARTITION "AB_PART_2008_03_AB_SUBP"
"ART_3" TABLESPACE "ETMTSD03", SUBPARTITION "AB_PART_2008_03_AB_SUBPART_4" "
" TABLESPACE "ETMTSD03" ), PARTITION "AB_PART_2008_04" VALUES LESS THAN (TO_"
"DATE(' 2008-05-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGOR"
"IAN')) PCTFREE 2 PCTUSED 98 INITRANS 1 MAXTRANS 255 TABLESPACE "ETMTSD01" "
"LOGGING (SUBPARTITION "AB_PART_2008_04_AB_SUBPART_1" TABLESPACE "ETMTSD03""
", SUBPARTITION "AB_PART_2008_04_AB_SUBPART_2" TABLESPACE "ETMTSD03", SUBPA"
"RTITION "AB_PART_2008_04_AB_SUBPART_3" TABLESPACE "ETMTSD03", SUBPARTITION"
" "AB_PART_2008_04_AB_SUBPART_4" TABLESPACE "ETMTSD03" ), PARTITION "AB_PAR"
"T_2008_05" VALUES LESS THAN (TO_DATE(' 2008-06-01 00:00:00', 'SYYYY-MM-DD H"
"H24:MI:SS', 'NLS_CALENDAR=GREGORIAN')) PCTFREE 2 PCTUSED 98 INITRANS 1 MAX"
"TRANS 255 TABLESPACE "ETMTSD01" LOGGING (SUBPARTITION "AB_PART_2008_05_AB_S"
"UBPART_1" TABLESPACE "ETMTSD03", SUBPARTITION "AB_PART_2008_05_AB_SUBPART_"
"2" TABLESPACE "ETMTSD03", SUBPARTITION "AB_PART_2008_05_AB_SUBPART_3" TAB"
"LESPACE "ETMTSD03", SUBPARTITION "AB_PART_2008_05_AB_SUBPART_4" TABLESPACE"
" "ETMTSD03" ), PARTITION "AB_PART_2008_06" VALUES LESS THAN (TO_DATE(' 2008"
"-07-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')) PCT"
"FREE 2 PCTUSED 98 INITRANS 1 MAXTRANS 255 TABLESPACE "ETMTSD01" LOGGING (SU"
"BPARTITION "AB_PART_2008_06_AB_SUBPART_1" TABLESPACE "ETMTSD03", SUBPARTIT"
"ION "AB_PART_2008_06_AB_SUBPART_2" TABLESPACE "ETMTSD03", SUBPARTITION "AB"
"_PART_2008_06_AB_SUBPART_3" TABLESPACE "ETMTSD03", SUBPARTITION "AB_PART_2"
"008_06_AB_SUBPART_4" TABLESPACE "ETMTSD03" ), PARTITION "AB_PART_2008_07" "
"VALUES LESS THAN (TO_DATE(' 2008-08-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS',"
" 'NLS_CALENDAR=GREGORIAN')) PCTFREE 2 PCTUSED 98 INITRANS 1 MAXTRANS 255 T"
"ABLESPACE "ETMTSD01" LOGGING (SUBPARTITION "AB_PART_2008_07_AB_SUBPART_1" "
"TABLESPACE "ETMTSD03", SUBPARTITION "AB_PART_2008_07_AB_SUBPART_2" TABLESP"
"ACE "ETMTSD03", SUBPARTITION "AB_PART_2008_07_AB_SUBPART_3" TABLESPACE "ET"
"MTSD03", SUBPARTITION "AB_PART_2008_07_AB_SUBPART_4" TABLESPACE "ETMTSD03""
" ), PARTITION "AB_PART_2008_08" VALUES LESS THAN (TO_DATE(' 2008-09-01 00:0"
"0:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')) PCTFREE 2 PCTU"
"SED 98 INITRANS 1 MAXTRANS 255 TABLESPACE "ETMTSD01" LOGGING (SUBPARTITION "
""AB_PART_2008_08_AB_SUBPART_1" TABLESPACE "ETMTSD03", SUBPARTITION "AB_PAR"
"T_2008_08_AB_SUBPART_2" TABLESPACE "ETMTSD03", SUBPARTITION "AB_PART_2008_"
"08_AB_SUBPART_3" TABLESPACE "ETMTSD03", SUBPARTITION "AB_PART_2008_08_AB_S"
"UBPART_4" TABLESPACE "ETMTSD03" ), PARTITION "AB_PART_2008_09" VALUES LESS"
" THAN (TO_DATE(' 2008-10-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALEN"
"DAR=GREGORIAN')) PCTFREE 2 PCTUSED 98 INITRANS 1 MAXTRANS 255 TABLESPACE ""
"ETMTSD01" LOGGING (SUBPARTITION "AB_PART_2008_09_AB_SUBPART_1" TABLESPACE "
""ETMTSD03", SUBPARTITION "AB_PART_2008_09_AB_SUBPART_2" TABLESPACE "ETMTSD"
"03", SUBPARTITION "AB_PART_2008_09_AB_SUBPART_3" TABLESPACE "ETMTSD03", SU"
"BPARTITION "AB_PART_2008_09_AB_SUBPART_4" TABLESPACE "ETMTSD03" ), PARTITI"
"ON "AB_PART_2008_10" VALUES LESS THAN (TO_DATE(' 2008-11-01 00:00:00', 'SYY"
"YY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')) PCTFREE 2 PCTUSED 98 INIT"
"RANS 1 MAXTRANS 255 TABLESPACE "ETMTSD01" LOGGING (SUBPARTITION "AB_PART_20"
"08_10_AB_SUBPART_1" TABLESPACE "ETMTSD03", SUBPARTITION "AB_PART_2008_10_A"
"B_SUBPART_2" TABLESPACE "ETMTSD03", SUBPARTITION "AB_PART_2008_10_AB_SUBPA"
"RT_3" TABLESPACE "ETMTSD03", SUBPARTITION "AB_PART_2008_10_AB_SUBPART_4" "
"TABLESPACE "ETMTSD03" ), PARTITION "AB_PART_2008_11" VALUES LESS THAN (TO_D"
"ATE(' 2008-12-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORI"
"AN')) PCTFREE 2 PCTUSED 98 INITRANS 1 MAXTRANS 255 TABLESPACE "ETMTSD01" L"
"OGGING (SUBPARTITION "AB_PART_2008_11_AB_SUBPART_1" TABLESPACE "ETMTSD03","
" SUBPARTITION "AB_PART_2008_11_AB_SUBPART_2" TABLESPACE "ETMTSD03", SUBPAR"
"TITION "AB_PART_2008_11_AB_SUBPART_3" TABLESPACE "ETMTSD03", SUBPARTITION "
""AB_PART_2008_11_AB_SUBPART_4" TABLESPACE "ETMTSD03" ), PARTITION "AB_PART"
"_2008_12" VALUES LESS THAN (TO_DATE(' 2009-01-01 00:00:00', 'SYYYY-MM-DD HH"
"24:MI:SS', 'NLS_CALENDAR=GREGORIAN')) PCTFREE 2 PCTUSED 98 INITRANS 1 MAXT"
"RANS 255 TABLESPACE "ETMTSD01" LOGGING (SUBPARTITION "AB_PART_2008_12_AB_SU"
"BPART_1" TABLESPACE "ETMTSD03", SUBPARTITION "AB_PART_2008_12_AB_SUBPART_2"
"" TABLESPACE "ETMTSD03", SUBPARTITION "AB_PART_2008_12_AB_SUBPART_3" TABL"
"ESPACE "ETMTSD03", SUBPARTITION "AB_PART_2008_12_AB_SUBPART_4" TABLESPACE "
""ETMTSD03" ) )"
IMP-00003: ORACLE error 922 encountered
ORA-00922: missing or invalid option
Import terminated successfully with warnings.thank u very much! :-)
Edited by: [email protected] on Sep 12, 2008 3:11 PM -
Hi,
in 8.1.7 I want importe a table then I have this error :
import done in WE8DEC character set and WE8DEC NCHAR character set^C
IMP-00017: following statement failed with ORACLE error 1012:
"CREATE TABLE "TRAILOCC" ("TO_REF" NUMBER(12, 0), "TO_ENTITY" CHAR(40), "TO_"
"DATE" DATE, "TO_TIME" DATE, "TO_OCC" LONG) PCTFREE 10 PCTUSED 40 INITRANS "
"1 MAXTRANS 255 NOLOGGING STORAGE(INITIAL 723025920 FREELISTS 1 FREELIST GRO"
"UPS 1) TABLESPACE "PROD_DATA""
Can I then create this table TRAILOCC with INITIAL 223025920 and then importe the table ?
What should I add in imp command to importe just data since table is already created ?
Many thankshi
cmd> imp ignore=y
hope this helps
Tajcheck the prod_data tablespace has enough space -
Imp ignores NLS_LENGTH_SEMANTIC
Hi all,
I am trying to convert my database (already in AL32UTF8) from byte to char semantics:
1. exp full=y
2. alter system set NLS_LENGTH_SEMANTIC=CHAR scope=both; restart of DB
3. imp show=y shows me the create statements like "create table t1(name varchar2(10));" (no explicit CHAR nor BYTE)
Manually pasting this statement in sqlplus gives me a table with CHAR semantics (as expected). Yet, the import with imp creates the tables with byte semantics ignoring the NLS_LENGTH_SEMANTIC=CHAR.
Now given that I have a few hundred tables to convert, I do not want to do the manual pasting thing. What am I missing? I have searched the net and the docs but cannot find what I am doing wrong. What is the suggested way of modifying the length semantics of existing columns (except for alter table modify... for each table)?
Thanks a lot for your help, ChrisI guess you try to import an Oracle8i or older import file. The Import utility will implicitly set NLS_LENGTH_SEMANTICS to BYTE when importing pre-9i files.
The Import utility is explicitly designed to preserve the original length semantics of the exported tables. It is not designed to be used as length semantics migration utility.
You can try the INDEXFILE option of the Import utility to get a SQL script. You will have to do some postprocessing to remove comments for CREATE TABLE statements.
-- Sergiusz -
NLS_LENGTH_SEMANTICS = CHAR import is too slow
I am converting a database from its current character set WE8ISO88591 to AL32UTF8
I am using NLS_LENGTH_SEMANTICS to CHAR so I do not have to increase column lengths.
I follow Oracle instructions:
144808.1
313175.1
Except import which takes way too long.
I took a full export of WE8ISO8859p1 Database and now importing it in AL32UTF8.
It is always difficult to prove where the slowness is coming from; but I think it has to do something with NLS_LENGTH_SEMANTICS. On the same
server; if new database was in WE8ISO8859P1, a 5 million row table import took 2 hours; but in Al32UTF8 with NLS_LENGTH_SEMANTICS it is taking 1 day!!!
Any idea how to improve the performance of import.11.1.0.7 on HP UNIX 11.2
exp system/$SPSWD file=$PIPE_NAME log=$TLOGFILE consistent=Y \
full=yes constraints=y compress=N statistics=NONE
I fist did imp with rows=N so all the table/sindexes were created without any data. Then I had to run several alter statements to set charactersistics of
imp system/$SPSWD file=$PIPE_NAME log=$TLOGFILE \
fromuser=maximo touser=maximo buffer=10000000 rows=N commit=y ignore=Y constraints=y >> $LOGFILE 2>
&1
Then I had to run several alter statements to set charactersistics of NLS_LENEGTH_SEMANTICS to CHAR as per metalink notes..
imp system/$SPSWD file=$PIPE_NAME log=$TLOGFILE \
fromuser=xxxxx touser=xxxxx buffer=10000000 commit=y ignore=Y constraints=y
I -
Using Internet Explorer 11:
Suddenly, about two days ago, I started getting a Script Error message from almost every page I visit on Internet Explorer 11 and now it has affected my printing while in my Outlook/Hotmail account? What is an absolute fix for this irritating
Script Error message? I have to use Firefox to get by this problem which I do not much care for. What can I do to resolve this problem ASAP?
Here is one full Script Error Message
"An error has occurred in the script on this page.
Line: 9
Char: 6
Error: 'animationScript' is undefined
URL:
https://sc.imp.live.com/content/dam/imp/surfaces/mail_signin/3/mai/EN-CA
Do you want to continue running scripts on this page?
Yes No
Can someone please, please help me. I have tried many things - doing a Restore, running Microsoft Safety Scanner. Checking my Tools>Internet Options. Running FixMeStick. Nothing works to fix this problem. Please what is the
correct answer to this problem. I have had to switch temporarily to Firefox to get by this Script Error Message.
- thanks - needhelpnowbfmWindows version is...?
What pages are giving you problems? [post links to same]
Are you getting the script errors only when attempting to print or...?
Has your printer's manufacturer confirmed that your currently installed printer software is IE11-compatible (yet)?
~Robear Dyer (PA Bear) MS MVP-Windows Client since 2002 Disclaimer: MS MVPs neither represent nor work for Microsoft -
Hi,
I am getting the follwoing error while importing the export dump file exported by
'SLIDE' user to a traget database SLIDE user schema. Slide user is with CONNECT,RESOURCE privilege.
=================
. . importing table "VERSION_PREDS" 0 rows imported
IMP-00017: following statement failed with ORACLE error 1031:
"CREATE PACKAGE pkg_ratesheet_cleanup"
" IS"
"-- To modify this template, edit file PKGSPEC.TXT in TEMPLATE"
"-- directory of SQL Navigator"
"-- Purpose: Cleanup Users, Roles, Organizations and Loans"
"-- MODIFICATION HISTORY"
"-- Person Date Comments"
" -- Enter package declarations as shown below"
" l_msg VARCHAR2 (1020) DEFAULT SQ"
"LERRM;"
" l_code NUMBER DEFAULT SQ"
"LCODE;"
" sql_string VARCHAR2 (10000);"
" TYPE cv_type IS REF CURSOR;"
" /*temp_user_row HUBUSER%ROWTYPE;"
" temp_role_row ROLE%ROWTYPE;"
" temp_org_row ORGANIZATION%ROWTYPE;"
" temp_loan_row LOAN%ROWTYPE;*/"
" -- Delete uri, object, parent_binding and version"
" PROCEDURE delete_objects (argratesheetname VARCHAR2);"
" -- Delete ratesheets"
" PROCEDURE delete_ratesheets (argratesheetname VARCHAR2);"
"END; -- Package spec"
IMP-00003: ORACLE error 1031 encountered
ORA-01031: insufficient privileges
IMP-00017: following statement failed with ORACLE error 1031:
"CREATE PACKAGE pkg_uri_mgt"
" IS"
"-- Purpose: Add, Delete, Edit User"
"-- MODIFICATION HISTORY"
"-- Person Date Comments"
" TYPE cv_type IS REF CURSOR;"
" sql_string VARCHAR2 (10000);"
" sql_temp_version_id_string VARCHAR2 (10000);"
" l_msg varchar2(1020) default sqlerrm;"
" l_code number default sqlcode;"
" temp_uri_uri_id URI.uri_id%TYPE;"
" temp_uri_version_id VERSION_HISTORY.version_id%TYPE;"
" PROCEDURE delete_uri (arguristring uri.uri_string%TYPE,"
" delete_count OUT NUMBER,"
" success_flag OUT CHAR,"
" error_code OUT VARCHAR2, error_message OUT VARCHAR2);"
"END; -- Package spec"
IMP-00003: ORACLE error 1031 encountered
ORA-01031: insufficient privileges
IMP-00017: following statement failed with ORACLE error 4042:
"GRANT EXECUTE ON "PKG_URI_MGT" TO "MHUB_UPDATE_ROLE""
=======================
Please help me tp solve this.
regards
MathewHi,
I put the Scipt
CREATE OR REPLACE PACKAGE pkg_ratesheet_cleanup
IS
-- To modify this template, edit file PKGSPEC.TXT in TEMPLATE
-- directory of SQL Navigator
-- Purpose: Cleanup Users, Roles, Organizations and Loans
-- MODIFICATION HISTORY
-- Person Date Comments
-- Enter package declarations as shown below
l_msg VARCHAR2 (1020) DEFAULT SQLERRM;
l_code NUMBER DEFAULT SQLCODE;
sql_string VARCHAR2 (10000);
TYPE cv_type IS REF CURSOR;
/*temp_user_row HUBUSER%ROWTYPE;
temp_role_row ROLE%ROWTYPE;
temp_org_row ORGANIZATION%ROWTYPE;
temp_loan_row LOAN%ROWTYPE;*/
-- Delete uri, object, parent_binding and version
PROCEDURE delete_objects (argratesheetname VARCHAR2);
-- Delete ratesheets
PROCEDURE delete_ratesheets (argratesheetname VARCHAR2);
END; -- Package spec
in a file.(pkg_ratesheet_cleanup.sql) and executed.
OUTPUT
======
SLIDE-SQL> @pkg_ratesheet_cleanup.sql
CREATE OR REPLACE PACKAGE pkg_ratesheet_cleanup
ERROR at line 1:
ORA-01031: insufficient privileges
regards
Mathew -
Table sizing is bigger after imp
Hi all,
I exp data from 10.2.0.3 and imp to 10.2.0.4 with solaris 10 64bit.I found that a table sizing is bigger?
What happend? Can anyone help me?
Thanks for advance.
CharaIt doesn't 'imporve' the performance at all!!!!!!!!!!!!!!!!!!!!!
Dictionary managed tablespaces are a thing of the past, remember!!!!!!!!!!!!
And using LMTs a huge initial extent is automagically converted to small extents!!!!!!!!!!
Please don't tell such blatant nonnsense.
Sybrand Bakker
Senior Oracle DBA
Experts: those who did read documentation. -
10g Host command imp.exe not working
Hi,
Just created a relatively simple form that uses host command.
I create a sql script using text_io to create a new user.
I then use host to run that script on the app server.
All this works fine.
Then i use host command to try and import into the db. This is when it does nothing.
I have cut it down to bear bones and a button with the command:
host('D:\oracle\database\BIN\imp.exe LOG=D:\test.log');This doesnt even create the log "test.log"
If i copy and paste this into the run box on the app server the log is created?
Any ideas?
Thankshi
first try to import by using dos go to start,run and cmd something like this.
c:\Imp user/pass@orcl file=c:\file.dmp log=c:\log_name.log full=y
What is import/export and why does one need it?
Oracle's export (exp) and import (imp) utilities are used to perform logical database backup and recovery. When exporting, database objects are dumped to a binary file which can then be imported into another Oracle database.
These utilities can be used to move data between different machines, databases or schema. However, as they use a proprietary binary file format, they can only be used between Oracle databases. One cannot export data and expect to import it into a non-Oracle database.
Various parameters are available to control what objects are exported or imported. To get a list of available parameters, run the exp or imp utilities with the help=yes parameter.
The export/import utilities are commonly used to perform the following tasks:
Backup and recovery (small databases only, say < +50GB, if bigger, use RMAN instead)
Move data between Oracle databases on different platforms (for example from Solaris to Windows)
Reorganization of data/ eliminate database fragmentation (export, drop and re-import tables)
Upgrade databases from extremely old versions of Oracle (when in-place upgrades are not supported by the Database Upgrade Assistant any more)
Detect database corruption. Ensure that all the data can be read
Transporting tablespaces between databases
Etc.
From Oracle 10g, users can choose between using the old imp/exp utilities, or the newly introduced Datapump utilities, called expdp and impdp. These new utilities introduce much needed performance improvements, network based exports and imports, etc.
NOTE: It is generally advised not to use exports as the only means of backing-up a database. Physical backup methods (for example, when you use RMAN) are normally much quicker and supports point in time based recovery (apply archivelogs after recovering a database). Also, exp/imp is not practical for large database environments.
[edit] How does one use the import/export utilities?
Look for the "imp" and "exp" executables in your $ORACLE_HOME/bin directory. One can run them interactively, using command line parameters, or using parameter files. Look at the imp/exp parameters before starting. These parameters can be listed by executing the following commands: "exp help=yes" or "imp help=yes".
The following examples demonstrate how the imp/exp utilities can be used:
exp scott/tiger file=emp.dmp log=emp.log tables=emp rows=yes indexes=no
exp scott/tiger file=emp.dmp tables=(emp,dept)
imp scott/tiger file=emp.dmp full=yes
imp scott/tiger file=emp.dmp fromuser=scott touser=scott tables=dept
Using a parameter file:
exp userid=scott/tiger@orcl parfile=export.txt
... where export.txt contains:
BUFFER=10000000
FILE=account.dmp
FULL=n
OWNER=scott
GRANTS=y
COMPRESS=y
NOTE: If you do not like command line utilities, you can import and export data with the "Schema Manager" GUI that ships with Oracle Enterprise Manager (OEM).
[edit] Can one export a subset of a table?
From Oracle 8i one can use the QUERY= export parameter to selectively unload a subset of the data from a table. You may need to escape special chars on the command line, for example: query=\"where deptno=10\". Look at these examples:
exp scott/tiger tables=emp query="where deptno=10"
exp scott/tiger file=abc.dmp tables=abc query=\"where sex=\'f\'\" rows=yes--------------------------
You can also use DBMS_DATAPUMP.
For example, you can start the export job from a PL/SQL package with the following PL/SQL code:
declare
handle number;
begin
handle := dbms_datapump.open('EXPORT','SCHEMA');
dbms_datapump.add_file(handle,'SCOTT3.DMP','DUMPDIR');
dbms_datapump.metadata_filter(handle,'SCHEMA_EXPR','= ''SCOTT''');
dbms_datapump.set_parallel(handle,4);
dbms_datapump.start_job(handle);
dbms_datapump.detach(handle);
end;
/ sarah -
How can I select the last 2 chars of a string
Hello all,
I am trying to select the last 2 characters of a string to match them to another string. This is for a Poem generator that contains 20 or so words and I have to pick 2 words at random, them look at the last 2 characters to see if they match in each string. Say "Plain" and "Rain" would match because they both have "in" at the end. The length of each word could vary. I don't want this doing for me just what Method should I be looking at.
Thanks.hi,
try this:
public class StringTest {
public static void main(String args[]) {
StringTest obj = new StringTest();
obj.same();
void same() {
String rain = new String("Rain");
String plain = new String("Plain");
int rainLength = rain.length();
int plainLength = plain.length();
if(rain.substring(rainLength-2).equals(plain.substring(plainLength-2))) {
System.out.println("same");
else {
System.out.println("different");
}you can use the length method to get the length of a string and then use the substring method, passing it length-2, so get the last 2 chars. -
Hi all,
Am wanting to convert a char value (the infoobject is defined as NUMC) into float in order to perform a calculation in the FOX formula. It would not allow the char value to be stored into a float variable...comes back wz an error message - Types of operands F and <infoobject_numc> do not agree.
Any ways of doing this? I thought about using a function to perform the conversion from char to float format but dont knw if such a function exists on the BI system?
Thanks!Hi,
I sometimes use a local variable of type STRING to pass on values to other data types:
DATA local type STRING.
local = A.
B = local.
But I'm not sure it will work for you. If not, you can do it with an exit function.
D
Maybe you are looking for
-
[solved] vm (virtualbox) crashes with ipod nano/touch mounted
Hi BIG EDIT: I've got virtualbox 4.0.0-3 installed. I'm running Windows xp (sp3) as a guest. USB works fine. But when I plug in my ipon nano 6g windows crashes, respectively the vm aborts. the log file ends with: 00:00:36.025 VUSB: attached '0a13ef00
-
Publisher certificate is invalid while deploying conductor 2.4.1
As seen in the attached screenshot, publisher certificate is shown invalid while deploying the conductor 2.4.1 ova. As per the install guide, the publisher certificate should be valid. What could be the reason. I tried searching internet but could
-
Sync issues - Saved changes to script do not appear saved on server
I've saved changes to a script that do not appear to save on server. Scripts show orange. Need some input here, please.
-
WLST NullPointerException when executing ls()
I have created some custom mbeans in my weblogic 8.1 container. I am trying to find an agent tool to view the mbean data. I have run wlshell and can see the mbean listed in the pane on the left. When I select it, the pane on the right with name/value
-
TSW (Trader's and Scheduler's Workbench) nomination validation error
Hi. i have cerated nomination while click on validate/ ticket it give error msg " Line 10 cannot be confirmed as 'ABC' is a planning location." since in location ABC i have entered location ABC as planing location. Regards Nainesh