Bonjour à tous,
Je cherche en vain à exporter qu'une partie réduite d'une table.
Lorsque j'utilise l'option query= en mettant la valeur exacte du champs, ça marche :Par contre, si j'essaye de prendre que les champs dont la valeur est supérieure à un certain nombre, il me met une erreur, comme si les signes ">" et "<" n'étaient pas reconnus, alors que l'instruction en sqlplus fonctionne très bien.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14 [oracle@oracle1 cmd]$ exp mabase/password@oracle1 file=/vol1/oracle/oradmin/exp/iks_binarydocument1.dmp direct=n consistent=y compress=y buffer=32000 tables=iks_binarydocument query=\"where iks_binarydocument.LOID_SEQ_NO=1542\" statistics=none log=/vol1/oracle/oradmin/log/iks_binarydocument1.log Export: Release 9.2.0.4.0 - Production on Mon Jun 19 14:01:26 2006 Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved. Connected to: Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production With the Partitioning, OLAP and Oracle Data Mining options JServer Release 9.2.0.4.0 - Production Export done in US7ASCII character set and AL16UTF16 NCHAR character set server uses WE8ISO8859P1 character set (possible charset conversion) About to export specified tables via Conventional Path ... . . exporting table IKS_BINARYDOCUMENT 1 rows exported Export terminated successfully without warnings. [oracle@oracle1 cmd]$
J'ai aussi essayer en mettant une condition avec un "like" sur un champs texte et j'ai encore une erreur :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5 [oracle@oracle1 cmd]$ exp mabase/password@oracle1 file=/vol1/oracle/oradmin/exp/iks_binarydocument1.dmp direct=n consistent=y compress=y buffer=32000 tables=iks_binarydocument query=\"where iks_binarydocument.LOID_SEQ_NO > 1542\" statistics=none log=/vol1/oracle/oradmin/log/iks_binarydocument1.log LRM-00111: no closing quote for value 'where iks_' EXP-00019: failed to process parameters, type 'EXP HELP=Y' for help EXP-00000: Export terminated unsuccessfully [oracle@oracle1 cmd]$
Quelqu'un peut-il me dire pourquoi j'ai ces erreurs ?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 [oracle@oracle1 cmd]$ exp mabase/password@oracle1 file=/vol1/oracle/oradmin/exp/iks_binarydocument1.dmp direct=n consistent=y compress=y buffer=32000 tables=iks_binarydocument query=\"where iks_binarydocument.iks_owner_3 like '5%'\" statistics=none log=/vol1/oracle/oradmin/log/iks_binarydocument1.log Export: Release 9.2.0.4.0 - Production on Mon Jun 19 14:53:02 2006 Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved. Connected to: Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production With the Partitioning, OLAP and Oracle Data Mining options JServer Release 9.2.0.4.0 - Production Export done in US7ASCII character set and AL16UTF16 NCHAR character set server uses WE8ISO8859P1 character set (possible charset conversion) About to export specified tables via Conventional Path ... . . exporting table IKS_BINARYDOCUMENT EXP-00056: ORACLE error 911 encountered ORA-00911: invalid character Export terminated successfully with warnings.
Merci d'avance,
Loïck
Partager