SQL Loader Not Loading Data
According to sql loaders log file, I was successful in loading my data into a table. However the table does not show any values loaded - all empy.
Here's my table:
SQL> desc patients
Name Null? Type
PATIENT_ID NOT NULL NUMBER(38)
MEDSUBSCRIBERID VARCHAR2(200)
MEDMEMBERID VARCHAR2(50)
MEDDEPSEQDESC VARCHAR2(50)
MEDMEMBERGENDER VARCHAR2(50)
MEDMEMBERDOB DATE
MEDDEPSEQCODE VARCHAR2(50)
NETWORKID NUMBER(38)
NETWORKCODE VARCHAR2(50)
PATIENTAGE NUMBER(38)
PATIENTNAME VARCHAR2(50)
PATIENTLASTNAME VARCHAR2(50)
PATIENTSEX VARCHAR2(50)
PATIENTSSN VARCHAR2(50)
INTMEDSUBSCRIBERID VARCHAR2(50)
DATE_VALUE_ID NUMBER(38)
DOB VARCHAR2(50)
AGE_GROUP_ID NUMBER(38)
ORGANIZATIONNETWORK_ID NUMBER(38)
ORGANIZATION_ID NUMBER(38)
ORGANIZATIONCODE VARCHAR2(50)
NETWORKID_HOLD NUMBER(38)
PATIENTRELATION VARCHAR2(50)
Here's my SQL Loader Control File:
LOAD DATA
INFILE 'patients.dat'
APPEND
INTO TABLE PATIENTS
FIELDS TERMINATED BY '|'
TRAILING NULLCOLS
PATIENT_ID INTEGER(8) NULLIF(PATIENT_ID=BLANKS)
, MEDSUBSCRIBERID CHAR NULLIF(MEDSUBSCRIBERID=BLANKS)
, MEDMEMBERID CHAR NULLIF(MEDMEMBERID=BLANKS)
, MEDDEPSEQDESC CHAR NULLIF(MEDDEPSEQDESC=BLANKS)
, MEDMEMBERGENDER CHAR NULLIF(MEDMEMBERGENDER=BLANKS)
, MEDMEMBERDOB DATE "YYYY-MM-DD HH24:MI:SS" NULLIF(MEDMEMBERDOB=BLANKS)
, MEDDEPSEQCODE CHAR NULLIF(MEDDEPSEQCODE=BLANKS)
, NETWORKID INTEGER(8) NULLIF(NETWORKID=BLANKS)
, NETWORKCODE CHAR NULLIF(NETWORKCODE=BLANKS)
, PATIENTAGE INTEGER(8) NULLIF(PATIENTAGE=BLANKS)
, PATIENTNAME CHAR NULLIF(PATIENTNAME=BLANKS)
, PATIENTLASTNAME CHAR NULLIF(PATIENTLASTNAME=BLANKS)
, PATIENTSEX CHAR NULLIF(PATIENTSEX=BLANKS)
, PATIENTSSN CHAR NULLIF(PATIENTSSN=BLANKS)
, INTMEDSUBSCRIBERID CHAR NULLIF(INTMEDSUBSCRIBERID=BLANKS)
, DATE_VALUE_ID INTEGER(8) NULLIF(DATE_VALUE_ID=BLANKS)
, DOB CHAR NULLIF(DOB=BLANKS)
, AGE_GROUP_ID INTEGER(8) NULLIF(AGE_GROUP_ID=BLANKS)
, ORGANIZATIONNETWORK_ID INTEGER(8) NULLIF(ORGANIZATIONNETWORK_ID=BLANKS)
, ORGANIZATION_ID INTEGER(8) NULLIF(ORGANIZATION_ID=BLANKS)
, ORGANIZATIONCODE CHAR NULLIF(ORGANIZATIONCODE=BLANKS)
, NETWORKID_HOLD INTEGER(8) NULLIF(NETWORKID_HOLD=BLANKS)
, PATIENTRELATION CHAR NULLIF(PATIENTRELATION=BLANKS)
Here's data file that I'm trying to load:
2|001321666|00132156801||M|1944-01-22 00:00:00||42|7215||Donald|Duck||||52616|19440666|4|42|2|WELLS|42|E
3|001321999|00132156802||F|1951-09-01 00:00:00||42|7215||Mickey|Mouse||||55395|19510999|3|42|2|WELLS|42|W
4|001363888|00136366201||M|1955-05-22 00:00:00||42|7215||Daffy|Duck||||56754|19550777|3|42|2|WELLS|42|E
And, my log file after executing sql loader successfully but the data does not load:
Table PATIENTS:
3 Rows successfully loaded.
0 Rows not loaded due to data errors.
0 Rows not loaded because all WHEN clauses were failed.
0 Rows not loaded because all fields were null.
Space allocated for bind array: 251776 bytes(64 rows)
Read buffer bytes: 1048576
Total logical records skipped: 0
Total logical records read: 3
Total logical records rejected: 0
Total logical records discarded: 0
Run began on Wed Aug 20 11:51:51 2008
Run ended on Wed Aug 20 11:51:57 2008
Elapsed time was: 00:00:05.47
CPU time was: 00:00:00.02
Very strange.
Did you connect as the same user as SQL*Loader when you checked the table?
Is it possible that someone else deleted the data?
Similar Messages
-
SQl loader not loading records
I have my control file like this
options (skip=1)
LOAD DATA
INFILE xxx.csv
into table xxx
TRUNCATE
FIELDS TERMINATED BY ',' optionally enclosed by '"'
RECORD_STATUS,
ITEM_NUMBER,
Sql loader not loading records and giving error like .......
Commit point reached - logical record count 14
Commit point reached - logical record count 26
Commit point reached - logical record count 84
Commit point reached - logical record count 92
and successfully loaded only 41 records among 420 records
Plz help meHI Phiri,
Thx for your reply.Here is the log file.
SQL*Loader: Release 8.0.6.3.0 - Production on Wed May 12 21:26:30 2010
(c) Copyright 1999 Oracle Corporation. All rights reserved.
Control File: saba_price_break_allcur_test.ctl
Data File: saba_price_break_allcur_test.csv
Bad File: saba_price_break_allcur_test.bad
Discard File: none specified
(Allow all discards)
Number to load: ALL
Number to skip: 1
Errors allowed: 50
Bind array: 64 rows, maximum of 65536 bytes
Continuation: none specified
Path used: Conventional
Table SABA_PRICE_BREAK_ALLCUR_TEST, loaded from every logical record.
Insert option in effect for this table: TRUNCATE
Column Name Position Len Term Encl Datatype
RECORD_STATUS FIRST * , O(") CHARACTER
ITEM_NUMBER NEXT * , O(") CHARACTER
PA1 NEXT * , O(") CHARACTER
PA2 NEXT * , O(") CHARACTER
UOM_CODE NEXT * , O(") CHARACTER
RANGE_PRICING NEXT * , O(") CHARACTER
RANGE_FROM NEXT * , O(") CHARACTER
RANGE_TO NEXT * , O(") CHARACTER
PRICING_ATTRIBUTE NEXT * , O(") CHARACTER
PRICING_METHOD NEXT * , O(") CHARACTER
PRICE_BREAK_LINE_NO NEXT * , O(") CHARACTER
TEMPLATE_NAME NEXT * , O(") CHARACTER
ITEM_DESC NEXT * , O(") CHARACTER
PRICE_USD NEXT * , O(") CHARACTER
PRICE_EUR NEXT * , O(") CHARACTER
PRICE_GBP NEXT * , O(") CHARACTER
PRICE_JPY NEXT * , O(") CHARACTER
GL_ACCOUNT NEXT * , O(") CHARACTER
LONG_DESC NEXT * , O(") CHARACTER
STATUS NEXT * , O(") CHARACTER
MESSAGE NEXT * , O(") CHARACTER
Record 12: Rejected - Error on table SABA_PRICE_BREAK_ALLCUR_TEST, column LONG_DESC.
Field in data file exceeds maximum length
Record 13: Rejected - Error on table SABA_PRICE_BREAK_ALLCUR_TEST, column LONG_DESC.
Field in data file exceeds maximum length
Record 27: Rejected - Error on table SABA_PRICE_BREAK_ALLCUR_TEST, column LONG_DESC.
Field in data file exceeds maximum length
Record 28: Rejected - Error on table SABA_PRICE_BREAK_ALLCUR_TEST, column LONG_DESC.
Field in data file exceeds maximum length
Record 29: Rejected - Error on table SABA_PRICE_BREAK_ALLCUR_TEST, column LONG_DESC.
Field in data file exceeds maximum length
Record 30: Rejected - Error on table SABA_PRICE_BREAK_ALLCUR_TEST, column LONG_DESC.
Field in data file exceeds maximum length
Record 31: Rejected - Error on table SABA_PRICE_BREAK_ALLCUR_TEST, column LONG_DESC.
Field in data file exceeds maximum length
Record 32: Rejected - Error on table SABA_PRICE_BREAK_ALLCUR_TEST, column LONG_DESC.
Field in data file exceeds maximum length
Record 33: Rejected - Error on table SABA_PRICE_BREAK_ALLCUR_TEST, column LONG_DESC.
Field in data file exceeds maximum length
Record 34: Rejected - Error on table SABA_PRICE_BREAK_ALLCUR_TEST, column LONG_DESC.
Field in data file exceeds maximum length
Record 35: Rejected - Error on table SABA_PRICE_BREAK_ALLCUR_TEST, column LONG_DESC.
Field in data file exceeds maximum length
Record 36: Rejected - Error on table SABA_PRICE_BREAK_ALLCUR_TEST, column LONG_DESC.
Field in data file exceeds maximum length
Record 37: Rejected - Error on table SABA_PRICE_BREAK_ALLCUR_TEST, column LONG_DESC.
Field in data file exceeds maximum length
Record 38: Rejected - Error on table SABA_PRICE_BREAK_ALLCUR_TEST, column LONG_DESC.
Field in data file exceeds maximum length
Record 39: Rejected - Error on table SABA_PRICE_BREAK_ALLCUR_TEST, column LONG_DESC.
Field in data file exceeds maximum length
Record 40: Rejected - Error on table SABA_PRICE_BREAK_ALLCUR_TEST, column LONG_DESC.
Field in data file exceeds maximum length
Record 41: Rejected - Error on table SABA_PRICE_BREAK_ALLCUR_TEST, column LONG_DESC.
Field in data file exceeds maximum length
Record 42: Rejected - Error on table SABA_PRICE_BREAK_ALLCUR_TEST, column LONG_DESC.
Field in data file exceeds maximum length
Record 43: Rejected - Error on table SABA_PRICE_BREAK_ALLCUR_TEST, column LONG_DESC.
Field in data file exceeds maximum length
Record 44: Rejected - Error on table SABA_PRICE_BREAK_ALLCUR_TEST, column LONG_DESC.
Field in data file exceeds maximum length
Record 45: Rejected - Error on table SABA_PRICE_BREAK_ALLCUR_TEST, column LONG_DESC.
Field in data file exceeds maximum length
Record 46: Rejected - Error on table SABA_PRICE_BREAK_ALLCUR_TEST, column LONG_DESC.
Field in data file exceeds maximum length
Record 47: Rejected - Error on table SABA_PRICE_BREAK_ALLCUR_TEST, column LONG_DESC.
Field in data file exceeds maximum length
Record 48: Rejected - Error on table SABA_PRICE_BREAK_ALLCUR_TEST, column LONG_DESC.
Field in data file exceeds maximum length
Record 49: Rejected - Error on table SABA_PRICE_BREAK_ALLCUR_TEST, column LONG_DESC.
Field in data file exceeds maximum length
Record 50: Rejected - Error on table SABA_PRICE_BREAK_ALLCUR_TEST, column LONG_DESC.
Field in data file exceeds maximum length
Record 51: Rejected - Error on table SABA_PRICE_BREAK_ALLCUR_TEST, column LONG_DESC.
Field in data file exceeds maximum length
Record 52: Rejected - Error on table SABA_PRICE_BREAK_ALLCUR_TEST, column LONG_DESC.
Field in data file exceeds maximum length
Record 53: Rejected - Error on table SABA_PRICE_BREAK_ALLCUR_TEST, column LONG_DESC.
Field in data file exceeds maximum length
Record 54: Rejected - Error on table SABA_PRICE_BREAK_ALLCUR_TEST, column LONG_DESC.
Field in data file exceeds maximum length
Record 55: Rejected - Error on table SABA_PRICE_BREAK_ALLCUR_TEST, column LONG_DESC.
Field in data file exceeds maximum length
Record 56: Rejected - Error on table SABA_PRICE_BREAK_ALLCUR_TEST, column LONG_DESC.
Field in data file exceeds maximum length
Record 57: Rejected - Error on table SABA_PRICE_BREAK_ALLCUR_TEST, column LONG_DESC.
Field in data file exceeds maximum length
Record 58: Rejected - Error on table SABA_PRICE_BREAK_ALLCUR_TEST, column LONG_DESC.
Field in data file exceeds maximum length
Record 59: Rejected - Error on table SABA_PRICE_BREAK_ALLCUR_TEST, column LONG_DESC.
Field in data file exceeds maximum length
Record 60: Rejected - Error on table SABA_PRICE_BREAK_ALLCUR_TEST, column LONG_DESC.
Field in data file exceeds maximum length
Record 61: Rejected - Error on table SABA_PRICE_BREAK_ALLCUR_TEST, column LONG_DESC.
Field in data file exceeds maximum length
Record 62: Rejected - Error on table SABA_PRICE_BREAK_ALLCUR_TEST, column LONG_DESC.
Field in data file exceeds maximum length
Record 63: Rejected - Error on table SABA_PRICE_BREAK_ALLCUR_TEST, column LONG_DESC.
Field in data file exceeds maximum length
Record 64: Rejected - Error on table SABA_PRICE_BREAK_ALLCUR_TEST, column LONG_DESC.
Field in data file exceeds maximum length
Record 65: Rejected - Error on table SABA_PRICE_BREAK_ALLCUR_TEST, column LONG_DESC.
Field in data file exceeds maximum length
Record 66: Rejected - Error on table SABA_PRICE_BREAK_ALLCUR_TEST, column LONG_DESC.
Field in data file exceeds maximum length
Record 67: Rejected - Error on table SABA_PRICE_BREAK_ALLCUR_TEST, column LONG_DESC.
Field in data file exceeds maximum length
Record 68: Rejected - Error on table SABA_PRICE_BREAK_ALLCUR_TEST, column LONG_DESC.
Field in data file exceeds maximum length
Record 69: Rejected - Error on table SABA_PRICE_BREAK_ALLCUR_TEST, column LONG_DESC.
Field in data file exceeds maximum length
Record 70: Rejected - Error on table SABA_PRICE_BREAK_ALLCUR_TEST, column LONG_DESC.
Field in data file exceeds maximum length
Record 73: Rejected - Error on table SABA_PRICE_BREAK_ALLCUR_TEST, column LONG_DESC.
Field in data file exceeds maximum length
Record 74: Rejected - Error on table SABA_PRICE_BREAK_ALLCUR_TEST, column LONG_DESC.
Field in data file exceeds maximum length
Record 87: Rejected - Error on table SABA_PRICE_BREAK_ALLCUR_TEST, column LONG_DESC.
Field in data file exceeds maximum length
Record 91: Rejected - Error on table SABA_PRICE_BREAK_ALLCUR_TEST, column LONG_DESC.
Field in data file exceeds maximum length
Record 92: Rejected - Error on table SABA_PRICE_BREAK_ALLCUR_TEST, column LONG_DESC.
Field in data file exceeds maximum length
MAXIMUM ERROR COUNT EXCEEDED - Above statistics reflect partial run.
Table SABA_PRICE_BREAK_ALLCUR_TEST:
41 Rows successfully loaded.
51 Rows not loaded due to data errors.
0 Rows not loaded because all WHEN clauses were failed.
0 Rows not loaded because all fields were null.
Space allocated for bind array: 65016 bytes(12 rows)
Space allocated for memory besides bind array: 0 bytes
Total logical records skipped: 1
Total logical records read: 92
Total logical records rejected: 51
Total logical records discarded: 0
Run began on Wed May 12 21:26:30 2010
Run ended on Wed May 12 21:27:06 2010
Elapsed time was: 00:00:36.08
CPU time was: 00:00:00.00 -
SQL loaded not loading data from csv format to oracle table.
Hi,
I trying to load data from flat files to oracle table,it not loading decimal values.Only character type of data is loaded and number format is null.
CONTROL FILE:
LOAD DATA
INFILE cost.csv
BADFILE consolidate.bad
DISCARDFILE Sybase_inventory.dis
INSERT
INTO TABLE FIT_UNIX_NT_SERVER_COSTS
FIELDS TERMINATED BY ',' optionally enclosed by '"'
TRAILING NULLCOLS
HOST_NM,
SERVICE_9071_DOLLAR FLOAT,
SERVICE_9310_DOLLAR FLOAT,
SERVICE_9700_DOLLAR FLOAT,
SERVICE_9701_DOLLAR FLOAT,
SERVICE_9710_DOLLAR FLOAT,
SERVICE_9711_DOLLAR FLOAT,
SERVICE_9712_DOLLAR FLOAT,
SERVICE_9713_DOLLAR FLOAT,
SERVICE_9720_DOLLAR FLOAT,
SERVICE_9721_DOLLAR FLOAT,
SERVICE_9730_DOLLAR FLOAT,
SERVICE_9731_DOLLAR FLOAT,
SERVICE_9750_DOLLAR FLOAT,
SERVICE_9751_DOLLAR FLOAT,
GRAND_TOTAL FLOAT
In table FLOAT are replaced by number(20,20)
SAmple i/p from csv:
ABOS12,122.46,,1315.00,,1400.00,,,,,,,,1855.62,,4693.07
Only abos12 is loaded and rest of the number are not loaded.
Thanks.Hi,
Thanks for your reply.
Its throwing error.
Number to load: ALL
Number to skip: 0
Errors allowed: 50
Bind array: 64 rows, maximum of 256000 bytes
Continuation: none specified
Path used: Conventional
Table FIT_UNIX_NT_SERVER_COSTS, loaded from every logical record.
Insert option in effect for this table: INSERT
TRAILING NULLCOLS option in effect
Column Name Position Len Term Encl Datatype
HOST_NM FIRST 255 , O(") CHARACTER
SERVICE_9071_DOLLAR NEXT 255 , O(") CHARACTER
SERVICE_9310_DOLLAR NEXT 255 , O(") CHARACTER
SERVICE_9700_DOLLAR NEXT 255 , O(") CHARACTER
SERVICE_9701_DOLLAR NEXT 255 , O(") CHARACTER
SERVICE_9710_DOLLAR NEXT 255 , O(") CHARACTER
SERVICE_9711_DOLLAR NEXT 255 , O(") CHARACTER
SERVICE_9712_DOLLAR NEXT 255 , O(") CHARACTER
SERVICE_9713_DOLLAR NEXT 255 , O(") CHARACTER
SERVICE_9720_DOLLAR NEXT 255 , O(") CHARACTER
SERVICE_9721_DOLLAR NEXT 255 , O(") CHARACTER
SERVICE_9730_DOLLAR NEXT 255 , O(") CHARACTER
SERVICE_9731_DOLLAR NEXT 255 , O(") CHARACTER
SERVICE_9750_DOLLAR NEXT 255 , O(") CHARACTER
SERVICE_9751_DOLLAR NEXT 255 , O(") CHARACTER
GRAND_TOTAL NEXT 255 , O(") CHARACTER
value used for ROWS parameter changed from 64 to 62
Record 1: Rejected - Error on table FIT_UNIX_NT_SERVER_COSTS, column GRAND_TOTAL.
ORA-01722: invalid number
Record 2: Rejected - Error on table FIT_UNIX_NT_SERVER_COSTS, column GRAND_TOTAL.
ORA-01722: invalid number
Record 3: Rejected - Error on table FIT_UNIX_NT_SERVER_COSTS, column GRAND_TOTAL.
ORA-01722: invalid number
Record 4: Rejected - Error on table FIT_UNIX_NT_SERVER_COSTS, column GRAND_TOTAL.
ORA-01722: invalid number
Record 5: Rejected - Error on table FIT_UNIX_NT_SERVER_COSTS, column GRAND_TOTAL.
ORA-01722: invalid number
Record 6: Rejected - Error on table FIT_UNIX_NT_SERVER_COSTS, column GRAND_TOTAL.
ORA-01722: invalid number
Record 7: Rejected - Error on table FIT_UNIX_NT_SERVER_COSTS, column GRAND_TOTAL.
ORA-01722: invalid number
Record 8: Rejected - Error on table FIT_UNIX_NT_SERVER_COSTS, column GRAND_TOTAL.
ORA-01722: invalid number
Record 9: Rejected - Error on table FIT_UNIX_NT_SERVER_COSTS, column GRAND_TOTAL.
ORA-01722: invalid number
Record 10: Rejected - Error on table FIT_UNIX_NT_SERVER_COSTS, column GRAND_TOTAL.
ORA-01722: invalid number
Record 11: Rejected - Error on table FIT_UNIX_NT_SERVER_COSTS, column GRAND_TOTAL.
ORA-01722: invalid number
Please help me on it.
Thanks, -
Incremental load not capturing data in SSIS 2012
Hi ,
Iam having an issue with Oracle CDC for SSIS which is new in 2012, Developed SSIS packages with Full load and Incremental load logic to load data into ODS - STAGE - DWH. Here problem is when ever i do a full load following with an incremental load , incremental
load is not capturing updated data , if i do second incremental load then it captures data.
Is there any solution for this to get data in first incremental load.Are you sure it picks up LSN correctly? I doubt its CDC service not picking the correct LSN value which it uses to identify the changes.
It should be in cdc.lsn_time_mapping table I guess
http://msdn.microsoft.com/en-IN/library/bb510494.aspx
Please Mark This As Answer if it solved your issue
Please Vote This As Helpful if it helps to solve your issue
Visakh
My Wiki User Page
My MSDN Page
My Personal Blog
My Facebook Page -
Some SQL fields not showing data in Crystal XI R2
I have a report that is using a stored procedure. In this stored procedure we have many fields that are being passed over to Crystal. A small portion of these fields do not show any data when you browse them in Crystal. But when you check on the SQL Server 2005 side, they contain data. So we know that the issue is probably on the Crystal side because there is data on the SQL side.
I originally thought that the problem may be caused by Null values in the database, but I used Crystal to convert the Null's to numeric zero if it was a number, and still there was no data showing up.
Also in the stored procedure, we are passing 2 parameters a start and end date. But that seems irrelevent to why some of the fields are not containing data like they should.
Why would some fields show no values at all, and some fields shows values?
Any ideas on how to correct this situation so data will show up for all the fields like they are suppose too?
Thanks everyone for their help!Hi Levi,
Pleaase check the following :
1. Other than storedprocedure are you adding any tables to your report ? If so, check the links between your stored procedure.(Through Database Expert)
2.Write the following formula to find out whether the database fields contains values or not.
if isnull() or = " " Then
"This Field is Empty"
Else
Drag and dwop this formula in your report to get the field values.
Thanks,
Sastry -
Images on websites often do not load or load incorrectly/incompletely load even after refreshing page and clearing caches. Often have to "clear recent history" 5 or 6 times within a single firefox session to get working links, images, completely loaded pages. The persona previews no longer do an "automatic preview" with a scroll over and now i no longer even get an image on the page to scroll over (images are just NOT THERE). I have done the safe mode test, have updated everything suggested, have checked all add ons as suggested in the troubleshooting guide and NOTHING shows as being a problem. I even did a complete uninstall and reinstall and it is STILL not working. Worried that it was an issue with my computer, i checked the pages in IE, and they worked PERFECTLY. I am uncertain what to do now. It started as a problem once or twice a week, and now it is EVERY time i bring up Firefox. Help?
the second article did offer a suggestion that SEEMS to have helped ::crosses fingers:: - an about:config, resetting of the preferences for images. we'll see how long it lasts. THANK YOU SO MUCH for the suggestion, the article wasn't one i'd found while searching for troubleshooting info.
Java script is enabled, but the persona's stuff still isn't working. dang it. WELL, one thing seems to work now, at least. thank you.
Pax, km -
SWF Loader - not loading from variables
<mx:SWFLoader
id="imgComp" width="250" height="150" source="C:/projects/Flexprj/file1swf" autoLoad="true" complete="fnTest()"/>
The above code is working find and it is loading the swf fine
The problem comes when I read a list of files and load it.. I read a CSV file, to get a list of SWF names.
Then I have the following
for
(var iLoop:int=0;iLoop<_arrBanners.length;iLoop++) { imgComp.source = imgComp.source =
_arrBanners[iLoop]; imgComp.load();
1. If I give something like this. It is not loading the SWF and
2. If I give a URL for the imgComp.source , does that download the SWF each time. If so, is there any way to download all the files to local and load from thr.
Thanks & Regards
mxvxI'm not sure I understood the question, but if you use SuperImage from
quietlyscheming.com, it will cache images in memory so if you try to get
them again it will be very quick. -
Java.util.Properties.load() not loading all properties
Hi,
I'm trying to load the following properties into my Properties class. However, Im only able to load SOME properties not ALL (11 to be precise)
This is my properties file :
~~~~~~~~~~~~~~~~~~~~~
gds.host=chissd235.bankofamerica.com
gds.datasource=gds.310.fob1
its.dataSource=gds.310.fob1
adv.dataSource=adv.310.fob1
gds.port=9650
gds.dataType=FpML
maxNumberOfConnectors=1000
itsConnectionMethod=ejb
advDB.driverToUse=jConnect2
advDB.userName=advDev1User
advDB.password=advDev1User
advDB.databaseName=advDev1
advDB.serverName=chisdd30.bankofamerica.com
advDB.port=2910
its.user=derivuser
This is my java code snippet:
~~~~~~~~~~~~~~~~~~~~~~~
private void loadProperties()
try
GDSConfigurationAdapter adapter = new GDSConfigurationAdapter();
String configurationResource = adapter.getConfigurationPropertiesResource();
load(loadStream(configurationResource));
String eventingPropsResource = adapter.getEventingPropertiesResource();
load(loadStream(eventingPropsResource));
} catch (IOException e)
throw new RuntimeException("Could not load GDS/Eventing properties");
private InputStream loadStream(String propFile) throws IOException
InputStream propStream = ResourceLocator.getResourceAsStream(propFile);
if (propStream == null)
logger.warning("could not find in JAR! Looking in classpath: " + propFile);
propStream = ResourceLocator.getResourceAsStream(propFile);
if (propStream == null)
IOException t = new IOException("Failed to load property file: " + propFile);
logger.throwing(getClass().getName(), "loadProperties", t);
throw t;
return propStream;
Any help will be appreciated.
Thanks
BjorkHi,
I'm trying to load the following properties into my Properties class. However, Im only able to load SOME properties not ALL (11 to be precise)
This is my properties file :
~~~~~~~~~~~~~~~~~~~~~
gds.host=chissd235.bankofamerica.com
gds.datasource=gds.310.fob1
its.dataSource=gds.310.fob1
adv.dataSource=adv.310.fob1
gds.port=9650
gds.dataType=FpML
maxNumberOfConnectors=1000
itsConnectionMethod=ejb
advDB.driverToUse=jConnect2
advDB.userName=advDev1User
advDB.password=advDev1User
advDB.databaseName=advDev1
advDB.serverName=chisdd30.bankofamerica.com
advDB.port=2910
its.user=derivuser
This is my java code snippet:
~~~~~~~~~~~~~~~~~~~~~~~
private void loadProperties()
try
GDSConfigurationAdapter adapter = new GDSConfigurationAdapter();
String configurationResource = adapter.getConfigurationPropertiesResource();
load(loadStream(configurationResource));
String eventingPropsResource = adapter.getEventingPropertiesResource();
load(loadStream(eventingPropsResource));
} catch (IOException e)
throw new RuntimeException("Could not load GDS/Eventing properties");
private InputStream loadStream(String propFile) throws IOException
InputStream propStream = ResourceLocator.getResourceAsStream(propFile);
if (propStream == null)
logger.warning("could not find in JAR! Looking in classpath: " + propFile);
propStream = ResourceLocator.getResourceAsStream(propFile);
if (propStream == null)
IOException t = new IOException("Failed to load property file: " + propFile);
logger.throwing(getClass().getName(), "loadProperties", t);
throw t;
return propStream;
Any help will be appreciated.
Thanks
Bjork -
Sql query not qualifying date- what did I do wrong?
I am not getting the date request from this query, it produces all records in table- not my date request....What am I doing wrong.
select * from table
where (dep_apt in ('123','T123','456','T456'))
or (dest_apt in ('123','T123','456','T456'))
and fpdate >= '23-APR-07'
order by fpdate;> It is not a date format issue- I set up a trigger to set the date formats on all transactions to be a valid date string that I need.
Perhaps it isn't in this case, but surely
> and fpdate >= '23-APR-07'
is just asking for trouble? Why would you not use a date expression?
Are you sure you will never have to deal with dates < 2000 (if nls_date_format uses YY) or > 2049 (if using RR), or a language other than English? Didn't the industry spend billions not so long ago cleaning up all the crappy 2-digit year values, and didn't we chuckle at the 1970s COBOL programmers who (we were told) put them there to save a couple of cheap bytes? If hardcoding a date literal, why not DATE '2007-04-23' anyway? -
I have a loader, and it doesn't seem to be loading my content when I am viewing it on my website. However, when I open up my loader.swf in a browser, it loads up my content once it is done loading.
Website:
http://icu222much.x10hosting.com/icu222much/ny/page/home.php
Loader:
http://icu222much.x10hosting.com/icu222much/ny/flash/loader.swf
Content Suppose To Load:
http://icu222much.x10hosting.com/icu222much/ny/flash/slideShow09.swf
HTML:
Loader AS3:
var loader = new Loader();
loader.load(new URLRequest("slideShow09.swf"));
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onCompleteHandler);
loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, progressHandler);
addChild(loader);
function onCompleteHandler(e:Event):void {
loading.visible = false;
function progressHandler(e:ProgressEvent):void {
loading.visible = true;Sorry, here is the HTML code:
HTML:
<head>
<script type="text/javascript" src="../js/swfobject.js"></script>
<script type="text/javascript">
var flashvars = {};
var params = {};
params.play = "true";
params.loop = "true";
params.quality = "autohigh";
var attributes = {};
swfobject.embedSWF("../flash/loader.swf", "myAlternativeContent", "360", "730", "9.0.0", false, flashvars, params, attributes);
</script>
<head>
<body>
<div id="myAlternativeContent">
<a href="http://www.adobe.com/go/getflashplayer">
<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player">
</a>
</div>
</body> -
Hi,
I have a client table with following description
CLIENT_ID NUMBER(10)
FIRST_NAME VARCHAR2(10)
LAST_NAME VARCHAR2(20)
I have client.dat file as
2001, Joe, Soap
2002, Jim, Bloggs
2003, Jimmy, Bean
I have SQL Loader control file client.ctl as
LOAD DATA
INFILE 'D:\client.dat'
INTO TABLE client APPEND
FIELDS TERMINATED BY "," TRAILING NULLCOLS
CLIENT_ID INTEGER,
FIRST_NAME CHAR(10),
LAST_NAME CHAR(20)
I am running sqlldr control=d:\client.ctl
I get the message
Commit point reached - logical record count 2
commit point reached - logical record count 3
But at the end of this I do not see these two records appended in the table.
Please help
ThanksHi!
Check whether there is any bad file generates there or not. If it is - generates then see what are the records are rejected. And, also check the corresponding log file - what is the message it is giving. So, far i don't think there is any error in your code.
Regards.
Satyaki De. -
Error when loading note pad data to cube
Error 8 when compiling the upload program: row 657, message: A newer version of data type /BIC/B0005373000 was
Can any body suggest what exactly the problem is.
I did activation of transfer rules and also unassigned and reasigned the source system and again reactivated.Even I tried that as well it is not working?
actualy let me explain the whole process again.
country company code......................like we have many columns in the note pad.This heading is running to nest line also like profit is coming almost below the coutnry .As it is not CSV seperated file so to get the correct field value into the columns we have added just dummy field in the data source of transfe structure ie like FiLL of char of lenght based on the field value to be inserted in a particluar row and this we did till the last column,.BUt in a preview we are getting the vlaues into the dummy field FILL also.Hope I am clear. -
After WLS10.3 migration getBinaryStream in Oracle.sql.BLOB not reading data
Please some one help me. After the 10.3 migration, the values in CSV file(as BLOB in DATABASE) is not read by getBinaryStream method. It returns 0. It was working before. Please find below the code:
import oracle.jdbc.OracleResultSet;
import oracle.sql.BLOB;
public InputStream RetriveISfromBlob(int batchid)
BLOB blob;
InputStream instream=null;
try
Statement stmt = connection.createStatement ();
ResultSet resSet = stmt.executeQuery
("SELECT content FROM file_upload WHERE batch_id="+batchid);
resSet.next();
System.out.println("after query");
/*Get the BLOB locator.*/
blob = ((OracleResultSet)resSet).getBLOB(1);
/*get the blob's outputstream
any data read from this stream comes from the BLOB*/
instream = blob.getBinaryStream();
Below is code from Another class which call the above method RetriveISfromBlob:
InputStream inputstream = fileDataDAO.RetriveISfromBlob(batchId);
System.out.println("afterfileread");
CommaFileInputStream reader = new CommaFileInputStream(inputstream);
reader.setIgnoreFirstLine(true);
CommaRecord comma = reader.getCommaRecord();
System.out.println("Number of records -" + comma.size()); /This returns o but CSV file has lot of datas
NOTE: When I use Ojdbc14.jar only the above code returns 0. When i use Ojdbc_6g.jar it throws NULL POINTER EXCEPTION because the code was written like import oracle.jdbc.driver.OracleResultSet; But in all cases the data in BLOB was not read
Edited by: 833987 on Feb 4, 2011 9:07 AMHi,
The problems 1, 2 and 3 under the heading Issue 2 should be fixed in the Early Adopter release 3.1 EA3, which is now available.
David -
SQL Developer Not displaying Date columns
I installed SQL Developer on my machine today and when i query for data I don't find any value in the columns which are of DATE datatype.
For Eg if i says select * from dual; i get null as output.
Can anyone confirm if this is happening to you also or if there is some problem with my installation.Dates work fine for me.
What value do you get for your NLS_DATE_FORMAT parameter with the following query:
select parameter, value from nls_session_parameters where parameter = 'NLS_DATE_FORMAT';
You can change the NLS_DATE_FORMAT as in the following example:
alter session set nls_date_format = 'DD-Mon-YYYY';
Also, the column in the dual table is not actually in date format - try "select sysdate from dual;" instead. -
Jquery .load not loading
I'm learning how to build a web app, and I'm having a problem with jquery .load()
this is what I got for Jquery
$(document).ready( function(){
setOrientationListener ();
changePage('test.html?v=1');
function changePage(filename){
$('.Content_Container').animate({opacity:0}, 500, function(){
$('.Content_Loading_Container'.load('/Content/'+filename), function(){
alert('loaded');
It fades out but dosen't seem to load the requested page. I have the alert just to tell me if it loaded in.
I have the index.html file in the parent folder, and the test.html in a folder called Content.
(the page is just <p>loaded</p>)
I tried different path versions to see if it was the path loaction, but still didn't work
Can anybody see whats wrong?
(and a brief explanation of what I did wrong)
*incase you want need the CSS
/* Global */
body {margin:0px; padding: 0px; font-family: Helvetica; font-size: 16px; background-color: #ddd;}
/*Global Layout*/
header{
display: block; position:absolute; top:0px; left:0px; height: 70px; background:url(../Images/banner.png?v=1) no-repeat 0px 0px;
/*-webkit-box-shadow: 0px 5px 4px 4px rgba(28,84,0,0.15); box-shadow: 0px 5px 4px rgba(28,84,0,0.15);*/
article{
display: block; position: absolute; top: 70px; left: 0px; background:url(../Images/content.png?V=1) repeat-x 0px 0px;
article .Content_Container{
position: absolute; top: 0px; left: 0px; background: none;
article .Content_Container .Content_Loading_Container{
position:absolute; top:0px; padding: 40px 20px 0px 40px;
footer{
display: block; position:absolute; bottom: 0px;left: 0px; height:60px;
background-color: #fff;
nav{
position: absolute;bottom: 18px; left: 25px;
.banner_logo{position: absolute; top:10px; right:30px;}
.page.home article .Content_Container{
background:url(../Images/background.png?v=1) no-repeat 0px 0px;
.page.landscape {position: relative; width: 1024px; height: 748px; overflow: hidden;}
.page.landscape header{width: 1024px;}
.page.landscape article{width: 1024px; height: 618px;}
.page.landscape footer{width: 1024px;}
.page.landscape article .Content_Container{width: 1024px; height: 618px;}
.page.portrait {position: relative; width: 768px; height: 1004px; overflow: hidden;}
.page.portrait header{width: 768px;}
.page.portrait article{width: 768px; height: 874px;}
.page.portrait footer{width: 768px;}
.page.portrait article .Content_Container{width: 768px; height: 874px;}
*incase you want need the html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame
Remove this if you use the .htaccess -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>my web app</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scaled=0"/>
<meta name="apple-mobile-web-app-capable" content="yes"/>
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link type="text/css" rel="apple-touch-icon-precomposed" href="Images/Go_Icon.png?v=1"/>
<link type="text/css" rel="apple-touch-startup-image" href="Images/GraphicOne-Hor.png?v=1"
media="screen and (min-device-width:481px) and (max-device-width:1024px) and (orientation:landscape)"/>
<link type="text/css" rel="apple-touch-startup-image" href="Images/GraphicOne-vert.png?v=1"
media="screen and (min-device-width:481px) and (max-device-width:1024px) and (orientation:portrait)"/>
<link rel="stylesheet" type="text/css" href="Assets/Go.css?v=1"/>
<script type="text/javascript" src="Assets/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="Assets/iscroll/src/iscroll.js"></script>
<script type="text/javascript" src="Assets/Go_Parent.js?v=1"></script>
</head>
<body>
<div class="page home">
<footer></footer>
<article>
<div class="Content_Container">
<div class="Content_Loading_Container"></div>
</div>
</article>
<header></header>
<img class="banner_logo" src="Images/Logo.png"/>
<nav></nav>
</div>
</body>
</html>Hi,
According to your post, my understanding is that you had an issue about the JQuery loading image.
I think the issue is related to the browser. Did you use the IE 8?
The hide() and show() method not work in IE 8.
http://social.technet.microsoft.com/Forums/en-US/a8e17024-bea3-4cb7-8283-bcbcf8955e18/jquery-loading-image-issue?forum=sharepointgeneralprevious
http://stackoverflow.com/questions/21876416/show-hide-not-working-in-ie8-jquery
Thanks & Regards,
Jason
Jason Guo
TechNet Community Support
Maybe you are looking for
-
My I tunes show all my music, but its not available, when I go to play it pops up locate and about 12 files of past dates of Itunes show up, but no music. In front of my music that is missing there is an astrick designating that there isn't anything
-
How to transfer pdfs in Adobe reader app on ipad to desktop pc?
I can't see to find the solution of this problem anywhere. Is it possible to transfer the pdfs saved in the Adobe Reader app to a PC (not a mac, I don't have one). Basically, I want to be able to plug my ipad into my PC and take the pdfs and transfer
-
WHAT THE HELL IS GOING ON? Activation problem 194:100
What the ihell is going on? I have been burdened with activation issues for weeks - see my previous thread. I have had no response here from Adobe about how to fix it. Please don't say this is a 'user to user' forum. It isn't a 'U2U' forum when Adobe
-
Hiho, i'm trying to transform a xmltype using a xstl in Oralce XE. In my stylesheet i have for example something like this: <xsl:value-of select="count(//Gemeinde)"/>According to my xslt book this should give me the total number of Gemeinde nodes, no
-
How to set the contentType for JSF Content Portlet.
Hi, When I tried to get the data from data base and construct a downloadable .csv appending the html at the end of the actual csv content. Please find the below given code for reference. JSP Code : <f:view> <h:form id = "test"> <h:commandBu