PB in export and query [message #170553] |
Thu, 04 May 2006 05:39 |
Haler
Messages: 71 Registered: October 2004
|
Member |
|
|
Hello,
How to escape parameter like with % (windows 2000)?
Ex:
exp mac/mic@soin log=exptest.log file=expfictest.dmp tables=cetabli query='where codeta between 40 and 49 and siret like ''77562/%'''
like ''77562''' give 0 rows (3 rows in the table)
like ''77562/%''' give 0 rows
like ''77562%''' give 0 rows
like ''77562\%''' give 0 rows
|
|
|
|
Re: PB in export and query [message #170611 is a reply to message #170593] |
Thu, 04 May 2006 08:48 |
Haler
Messages: 71 Registered: October 2004
|
Member |
|
|
Hello,
Ok with cmd.exe and c:\exp scott/...etc
but not operationnel in command file
par ex: expfic.cmd
echo debutsauve:%date%,%time%>datesauvegarde.lst
set oracle_sid=soin
exp mic/mac@soin log=exptest.log file=expfictest.dmp tables=cetabli query='where siret like (''77562%'')' statistics=none
echo finsauve:%date%,%time%>>datesauvegarde.lst
result: 0 rows
[Updated on: Thu, 04 May 2006 08:51] by Moderator Report message to a moderator
|
|
|
|
|
|
|
Re: PB in export and query [message #170629 is a reply to message #170621] |
Thu, 04 May 2006 09:45 |
|
Mahesh Rajendran
Messages: 10708 Registered: March 2002 Location: oracleDocoVille
|
Senior Member Account Moderator |
|
|
You are right and i failed to understand you. Excuse my ignorance.
As a workaround, You can make use of a parfile as shown. Throw all your commands (parameters) in the
parfile(parameter file). Obviously, there must be some kind of escape character for '%', but for know parfile should work.
C:\>expfic
Export: Release 10.2.0.1.0 - Production on Thu May 4 10:44:25 2006
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
Export done in WE8MSWIN1252 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 EMP 2 rows exported
Export terminated successfully without warnings.
C:\>type expfic.cmd
@echo off
exp scott/tiger@teng parfile=parfile.par
C:\>type parfile.par
tables=emp query='where ename like (''%LA%'')'
[Updated on: Thu, 04 May 2006 09:47] Report message to a moderator
|
|
|
|