SQL*LOADER, the WHEN clause and WILDCARDS
has anybody ever used wildcards in a WHEN clause in the SQL*LOADER control file?
WHEN string_2_load = 'GOOD' , all 'good' rows load
WHEN string_2_load = 'GO%', all rows fail the WHEN clause and end up in the discard file.
thanks in advance - if i don't go crazy first
burt
I have also faced a similar problem like this. Try this control file
LOAD DATA
INFILE 'DATA.dat'
BADFILE 'MLIMA.bad'
INTO TABLE Brok_Gl_Interface
APPEND
WHEN record_type = '10'
FIELDS TERMINATED BY ","
OPTIONALLY ENCLOSED BY '"'
TRAILING NULLCOLS
record_type CHAR ,
currency CHAR ,
entity CHAR ,
cost_centre CHAR ,
usd_account CHAR ,
amount CHAR
INTO TABLE Brok_Gl_Interface
WHEN record_type = '99'
FIELDS TERMINATED BY ","
OPTIONALLY ENCLOSED BY '"'
TRAILING NULLCOLS
record_type POSITION(1) CHAR ,
record_count CHAR
INTO TABLE Brok_Gl_Interface
WHEN record_type = '00'
FIELDS TERMINATED BY ","
OPTIONALLY ENCLOSED BY '"'
TRAILING NULLCOLS
record_type POSITION(1) CHAR,
run_date CHAR,
effective_date CHAR
)Regards,
Mohana
Similar Messages
-
Regarding Sql Loader(All WHEN Clause Failed)
Below is my control file
LOAD DATA
INFILE 'DATA.dat'
BADFILE 'MLIMA.bad'
INTO TABLE Brok_Gl_Interface
APPEND
WHEN record_type = '10'
FIELDS TERMINATED BY ","
OPTIONALLY ENCLOSED BY '"'
TRAILING NULLCOLS
record_type CHAR ,
currency CHAR ,
entity CHAR ,
cost_centre CHAR ,
usd_account CHAR ,
amount CHAR
INTO TABLE Brok_Gl_Interface
WHEN record_type = '99'
FIELDS TERMINATED BY ","
OPTIONALLY ENCLOSED BY '"'
TRAILING NULLCOLS
record_type CHAR ,
record_count CHAR
INTO TABLE Brok_Gl_Interface
WHEN record_type = '00'
FIELDS TERMINATED BY ","
OPTIONALLY ENCLOSED BY '"'
TRAILING NULLCOLS
record_type CHAR,
run_date CHAR,
effective_date CHAR
below is my data file
00,05062006,02062006,
10,EUR,82G,82GE00,46005AA600,78827.41,
10,GBP,82G,82GE00,46005AA600,-2820955.63,
10,GBP,82G,82GE00,46005AA600,340252.39,
10,GBP,82G,82GE00,46007AB100,-1665483.26,
10,EUR,82G,82GE38,46007AB100,-38924.00,
99,95,
At the time of execution the condition which is 1st is only working for others i am getting the error message 'All When Clause Failed'
pl'z help me out.I have also faced a similar problem like this. Try this control file
LOAD DATA
INFILE 'DATA.dat'
BADFILE 'MLIMA.bad'
INTO TABLE Brok_Gl_Interface
APPEND
WHEN record_type = '10'
FIELDS TERMINATED BY ","
OPTIONALLY ENCLOSED BY '"'
TRAILING NULLCOLS
record_type CHAR ,
currency CHAR ,
entity CHAR ,
cost_centre CHAR ,
usd_account CHAR ,
amount CHAR
INTO TABLE Brok_Gl_Interface
WHEN record_type = '99'
FIELDS TERMINATED BY ","
OPTIONALLY ENCLOSED BY '"'
TRAILING NULLCOLS
record_type POSITION(1) CHAR ,
record_count CHAR
INTO TABLE Brok_Gl_Interface
WHEN record_type = '00'
FIELDS TERMINATED BY ","
OPTIONALLY ENCLOSED BY '"'
TRAILING NULLCOLS
record_type POSITION(1) CHAR,
run_date CHAR,
effective_date CHAR
)Regards,
Mohana -
Dear Experts,
i am getting the below error when i was giving * (Star) to view all the items in DB
[Microsoft][SQL Server Native Client 11.0][SQL Server]The text, ntext, and image data types cannot be compared or sorted, except when using IS NULL or LIKE operator. 'Items' (OITM) (OITM)
As i was searching individually it is working fine
can any one help me how to find this..
Regards,
Meghanath.SDear Nithi Anandham,
i am not having any query while finding all the items in item master data i am giving find mode and in item code i was trying to type *(Star) and enter while typing enter the above issue i was facing..
Regards,
Meghanath -
DIM IDu0092s are polluted only when we load the Master data and SIDu0092s
DIM IDs are polluted only when we load the Master data and SIDs are polluted only when load the retraction data. System automatically performs the reconciliation of DIM and SIDs when we delete the transaction and master data.
a. True
b. FalseHi,
You can use the mapping section of the transformation file for this purpose. It should be something like:
*COL(5) + *Str(_) + *COL(1)
I am considering that the 5th column of your file is the property. The 1st column is the ID.
Please take a look at the below link for more information:
http://help.sap.com/saphelp_bpc75_nw/helpdata/en/5d/9a3fba600e4de29e2d165644d67bd1/content.htm
Hope this helps. -
Web Logic 10.3.6 (64bit) - Could not load the sitemesh filter and library
Installed Web Logic 10.3.3 (32bit) and Java JDK 1.6.0_21 (32bit) in a customer's server (Windows Server 2008 R2 and 64-bit Operating System). The web page can be displayed with header and side menu.
However installed Web Logic 10.3.6 (64bit) and Java JDK 1.6.0_31 (64bit) on that same server. The web page cannot be displayed with header and side menu, it is just displayed with a blank background. Refer to the below "ERROR LOG", found the application could not load the sitemesh filter and library properly. We are using sitemesh-2.3.jar.
Have tried installed Web Logic 10.3.6 (64bit) and Java JDK 1.6.0_31 (64bit) in a test server (Windows Server 2008 R2 and 64-bit Operating System). The web page can be displayed with header and side menu.
Please assist on this issue. Thanks.
Below is the sitemesh that is declared and configured.
WEB-INF/web.xml
<filter>
<filter-name>sitemesh</filter-name>
<filter-class>com.opensymphony.module.sitemesh.filter.PageFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>sitemesh</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>
<dispatcher>INCLUDE</dispatcher>
</filter-mapping>
WEB-INF/decorators.xml
<decorators defaultdir="/template/decorators">
<decorator name="plain" page="plain.jsp"/>
<decorator name="printable" page="printable.jsp"/>
<decorator name="standard" page="page_template_std.jsp">
<pattern>/*.jsp</pattern>
</decorator>
<excludes>
<pattern>/include/*</pattern>
<pattern>/js/*</pattern>
<pattern>/Login.jsp*</pattern>
</excludes>
</decorators>
WEB-INF/sitemesh.xml
<sitemesh>
<property name="decorators-file" value="/WEB-INF/decorators.xml"/>
<excludes file="${decorators-file}"/>
<page-parsers>
<parser content-type="text/html"
class="com.opensymphony.module.sitemesh.parser.HTMLPageParser" />
<parser content-type="text/html;charset=ISO-8859-1"
class="com.opensymphony.module.sitemesh.parser.HTMLPageParser" />
</page-parsers>
<decorator-mappers>
<mapper class="com.opensymphony.module.sitemesh.mapper.PageDecoratorMapper">
<param name="property.1" value="meta.decorator" />
<param name="property.2" value="decorator" />
</mapper>
<mapper class="com.opensymphony.module.sitemesh.mapper.FrameSetDecoratorMapper">
</mapper>
<mapper class="com.opensymphony.module.sitemesh.mapper.AgentDecoratorMapper">
<param name="match.MSIE" value="ie" />
<param name="match.Mozilla [" value="ns" />
<param name="match.Opera" value="opera" />
<param name="match.Lynx" value="lynx" />
</mapper>
<mapper class="com.opensymphony.module.sitemesh.mapper.PrintableDecoratorMapper">
<param name="decorator" value="printable" />
<param name="parameter.name" value="printable" />
<param name="parameter.value" value="true" />
</mapper>
<mapper class="com.opensymphony.module.sitemesh.mapper.RobotDecoratorMapper">
<param name="decorator" value="robot" />
</mapper>
<mapper class="com.opensymphony.module.sitemesh.mapper.ParameterDecoratorMapper">
<param name="decorator.parameter" value="decorator" />
</mapper>
<mapper class="com.opensymphony.module.sitemesh.mapper.FileDecoratorMapper">
</mapper>
<mapper class="com.opensymphony.module.sitemesh.mapper.ConfigDecoratorMapper">
<param name="config" value="/WEB-INF/decorators.xml" />
</mapper>
</decorator-mappers>
</sitemesh>
ERROR LOG
####<May 8, 2012 5:38:49 PM SGT> <Error> <HTTP> <BHQKPK10060> <cms_cimbmy> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1336469929804> <BEA-101165> <Could not load user defined filter in web.xml: com.opensymphony.module.sitemesh.filter.PageFilter.
com.opensymphony.module.sitemesh.factory.FactoryException: Cannot construct Factory : com.opensymphony.module.sitemesh.factory.DefaultFactory: java.lang.reflect.InvocationTargetException
at com.opensymphony.module.sitemesh.Factory.getInstance(Factory.java:50)
at com.opensymphony.module.sitemesh.filter.PageFilter.init(PageFilter.java:87)
at weblogic.servlet.internal.FilterManager$FilterInitAction.run(FilterManager.java:343)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.FilterManager.loadFilter(FilterManager.java:96)
at weblogic.servlet.internal.FilterManager.preloadFilters(FilterManager.java:57)
at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1872)
at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3154)
at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1518)
at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:484)
at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:247)
at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)
at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:671)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212)
at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:59)
at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
at weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:184)
at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:361)
at weblogic.management.deploy.internal.DeploymentAdapter$1.doActivate(DeploymentAdapter.java:51)
at weblogic.management.deploy.internal.DeploymentAdapter.activate(DeploymentAdapter.java:200)
at weblogic.management.deploy.internal.AppTransition$2.transitionApp(AppTransition.java:30)
at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:240)
at weblogic.management.deploy.internal.ConfiguredDeployments.activate(ConfiguredDeployments.java:169)
at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:123)
at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:180)
at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:96)
at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)Do you see any further nested exceptions OR errors in the log file.
Considering that the same WLS-JDK combination works on one machine and does not work on another machine, it indicates an environmental issue.
"However installed Web Logic 10.3.6 (64bit) and Java JDK 1.6.0_31 (64bit) on that same server. The web page cannot be displayed....
Have tried installed Web Logic 10.3.6 (64bit) and Java JDK 1.6.0_31 (64bit) in a test server (Windows Server 2008 R2 and 64-bit Operating System). The web page can be displayed with header and side menu."
I am suspecting if it has to do anything with the native libraries being loaded JAVA_LIB_PATH.
Please review the server log file again for identifying differences in LIB_PATH or PATH or any messages saying "Unable to load native.. performance pack.."
Arun -
I go to play on a game on my iPad it will load the game up and a minute later will go to a blank screen and then back to all my apps.does it everybtime? Why is that? What do I need to do to stop it?
1. Close all inactive apps in the Task Bar. Double-click the Home button and hold apps down for a second or two and tap the minus sign to close app.
2. Try a reset. Hold the Sleep and Home button down for about 10 seconds until you see the Apple Logo -
Firefox worked before though at times encountered a problem and had to close. Now I've loaded the newest version and it won't even fully load without having to close. I plugged in the crash item id that HELP forum instructed, and the report said it could not proceed. SO I'm not experienced in any of this and don't know how to make it work. I have to use Explorer until it is fixed. Help please.
Make sure that you haven't left a profiles.ini file.
* http://kb.mozillazine.org/profiles.ini_file
*http://kb.mozillazine.org/Profile_folder_-_Firefox -
I am trying to load the new itunes and I keep getting a runtime error R6034
I am trying to load the new itunes and I keep getting a runtime error R6034
The new Itunes software update is flawed! I had the same issue. You need to uninstall Apple components, then reinstall. Go to this link for instructions. Takes about 20 mins but works!
http://support.apple.com/kb/HT1923 -
In a SQL statement, the SELECT clause is used to
In a SQL statement, the SELECT clause is used to select
(a) columns
(b) rows
(c) tables
(d) none of the above
can any one help ImmediatelyIs used to select rows of specified column...
SELECT column_name(s) FROM table_name -
Load the External text and css file for more frames
hello..
I created one Movie file. In that I load the External text and css file in first frame and display the first variable value in one text box.
And then in 2nd frame I use another one text field and display the 2nd variable value like that I want to load the more variable in more textboxes with different frames.
I loaded for first variable value in first frame. But I don't know how to do next frames like that..
Help me...You need to load them in the frames they are in. You can store the loaded data in variables in frame 1, but you will need to extend that layer so that whatever is stored is avaliable in other frames. The code to load the data into the other textfields can then be done in the frames where it is needed.
There are other options, such as not using other frames for content or having all of them in frame 1 and making them invisible until you get to the other frames where they get turned visible. -
iPhoto 5.0.4 has suddenly stopped working. It loads the photo library and then freezes. Rebuilding the library has no effect which has about 3.5MB of data. PowerBook G4 OS 10.5.8
Create a new account (systempreferences -> accounts or Users & Groups on 10.7) and see if the problem is repeated there. If it is, then a re-install of the app might be indicated. If it's not, then it's likely the app is okay and the problem is something in the main account.
Regards
TD -
I have a windows computer running xp. I can not load the latest version of I tunes. I receive an error message that the 'msi" file can not be found. I can not delete I tunes for the same reason.
HELPItIt is the the ituens msi file
From: Apple Support Communities Updates
[email protected]
Sent: Monday, February 27, 2012 3:40 PM
To: escow 39
Subject: - Re: I want to install the latest version of
i tunes. I recieve an error that the MSI file is missing. It won't load the
new version and I can not delete the software either. HELP!
<http://images.apple.com/support/images/emails/apple_logo_gray.gif>
<https://discussions.apple.com/index.jspa> Apple Support Communities
Re: I want to install the latest version of i tunes. I recieve an error that
the MSI file is missing. It won't load the new version and I can not delete
the software either. HELP!
created by b noir <https://discussions.apple.com/people/b+noir> in iTunes
for Windows - View the full discussion
<https://discussions.apple.com/message/17708214?ac_cid=142432#17708214 -
loaded the new CS2 and it asking fir my new serial number which I put in but will not work what do I do?
Download the installer from Error: Activation Server Unavailable | CS2, Acrobat 7, Audition 3
Install and use the new serial number provided at the link above. Your existing serial number will no longer work. -
Firefox 23.0.1 keeps loading the YouTube page and prevents access to My Profile
I do not know if this is a problem with the Firefox browser version 23.0.!But the problem of Firefox it keeps loading the YouTube page and even I can not do anything because there was a message saying still loading the YouTube page!
go to my topic http://support.emsisoft.com/topic/12328-strange-new-problem-in-access-to-youtube/here you go
Application Basics
Name
Firefox
Version
23.0.1
User Agent
Mozilla/5.0 (Windows NT 5.1; rv:23.0) Gecko/20100101 Firefox/23.0
Build Configuration
about:buildconfig
Extensions
Name
Version
Enabled
ID
RealDownloader
1.3.3
true
{DF153AFF-6948-45d7-AC98-4FC4AF8A08E2}
Important Modified Preferences
Name
Value
browser.cache.disk.capacity
358400
browser.cache.disk.smart_size.first_run
false
browser.cache.disk.smart_size.use_old_max
false
browser.cache.disk.smart_size_cached_value
358400
browser.places.smartBookmarksVersion
4
browser.startup.homepage_override.buildID
20130814063812
browser.startup.homepage_override.mstone
23.0.1
dom.mozApps.used
true
extensions.lastAppVersion
23.0.1
network.cookie.prefsMigrated
true
places.history.expiration.transient_current_max_pages
13196
plugin.disable_full_page_plugin_for_types
application/pdf
plugin.importedState
true
privacy.sanitize.migrateFx3Prefs
true
Graphics
Adapter Description
Mobile Intel(R) 945 Express Chipset Family
Adapter Drivers
igxprd32
Adapter RAM
Unknown
Device ID
0x27ae
Direct2D Enabled
Blocked for your graphics driver version.
DirectWrite Enabled
false (0.0.0.0)
Driver Date
2-15-2008
Driver Version
6.14.10.4926
GPU #2 Active
false
GPU Accelerated Windows
0/1 Basic
Vendor ID
0x8086
WebGL Renderer
Google Inc. -- ANGLE (Mobile Intel(R) 945 Express Chipset Family)
AzureCanvasBackend
skia
AzureContentBackend
none
AzureFallbackCanvasBackend
cairo
JavaScript
Incremental GC
true
Accessibility
Activated
false
Prevent Accessibility
0
Library Versions
Expected minimum version
Version in use
NSPR
4.10
4.10
NSS
3.15 Basic ECC
3.15 Basic ECC
NSSSMIME
3.15 Basic ECC
3.15 Basic ECC
NSSSSL
3.15 Basic ECC
3.15 Basic ECC
NSSUTIL
3.15
3.15 -
SQL Loader Inserts chr(13) and chr(10) in the first column of every row.
Hi,
I have exported a data in a pipe delimited file using TOAD in one database. Now I want to load the data in my local database using SQL Loader. However every time I try to load the data a double quote followed by a new line is entered for the first column of each row. Unfortunately the delimited file is very big and hence can't be posted here. However I tried the same with a customized table and its data and found the same problem. Below are the table structures and control file that I used.
create table test_sql
a varchar2(30),
b date
insert into test_sql values('51146263',sysdate-3);
insert into test_sql values('51146261,sysdate-1);
EXPORTED PIPE DELIMITED FILE_
A|B|!##!
51146261|04/14/13 4:55:18 PM|!##!
51146263|04/12/13 4:55:32 PM|!##!
create table test_sql1 as select * from test_sql where 1=2;
CONTROL FILE_
OPTIONS(SKIP=1)
LOAD DATA
INFILE 'C:\Users\Prithwish\Desktop\Test.txt' "str '!##!'"
PRESERVE BLANKS
INTO TABLE TEST_SQL1
FIELDS TERMINATED BY '|' OPTIONALLY ENCLOSED BY '"'
TRAILING NULLCOLS
A CHAR(2000),
B DATE "MM/DD/YYYY HH12:MI:SS AM"
select * from TEST_SQL1;
After this when I paste it in notepad I get the following result
A B
51146261" 14-APR-0013 16:55:18
51146263" 12-APR-0013 16:55:32.
I have no idea how the quotes or the newline appear. Is this a Toad bug? Any help would be greatly appreciated. Really urgent.
Thanks in advance
RegardsHi Harry,
I actually thought that the str !##! was causing the problem. Actually my original export has some new lines in some specific columns so I can't keep the new line as my line terminator and hence I kept the !##! as my terminator.
When I put the same data in a notepad and load it there is no problem at all. For e.g I just typed the following in a notepad and the data loaded just fine.
A|B|!##!
51146261|01-01-01 10:10:10 AM|!##!
51146263|01-01-01 11:11:11 AM|!##!
Its just when I load the exported file there the problem arises though I have verified the file using UNIX as well using octal dump and found no hidden characters.
Regards,
Prithwish
Maybe you are looking for
-
My support team Sending meeting request for group of users . Problem is who are using Ex2010 / 2013 they are getting Meeting request like on printshot 1 : It means they are getting details for when and where option. Where on printshot2 that is corre
-
Invitation to join a Skype Manager, followed by or...
Around 5 AM I received an email with an invitation to join a skype manager, then a few minutes later a group of emails in a foreign language looking like order confirmations. I've never had a payment account associated with my Skype account so I don'
-
How do i make images fade into each other
Hey guys, I'm looking to find out how I can make text and/or images fade and appear on my web page. This affect is used on the adobe home page where text fades and other text appears. If someone could point me in the right direction that would be gre
-
I want to remove ALL duplicate images from my mac...
My apologies if this has been addressed before however, I have just discovered my mac has over 10,000 images on it but only 3700 in iphoto! Is there an easy, free way of detecting all of these images & either 1/seperating them or 2/deleting them? tha
-
So I want to upgrade to Leopard but my PowerBook runs on OS X 10.3.9 and it says I need at least 10.4 to upgrade? Does this mean I have to upgrade to Tiger first?? Is there an update I can download to get to 10.4 so that I can upgrade to Leopard? Tha