Example for loading a csv file into diadem from a labview application
Hi everyone, i'm using labview 8.2 and DIAdem 10.1.
I've been searching in NI example finder but I had no luck so far.
I have already downloaded the labview connectivity VIs.
Can anyone provide a example that can help me loading a csv file into diadem from a labview application?
Thanks
Hi Alexandre.
I attach an example for you.
Best Regards.
Message Edité par R_Duval le 01-15-2008 02:44 PM
Romain D.
National Instruments France
#adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
NIDays 2010 : Conférence mondiale de l'instrumentation virtuelle
>>Détails et Inscription<<
Attachments:
Classeur1.csv 1 KB
Load CSV to Diadem.vi 15 KB
Similar Messages
-
Loading a CSV file into a table
HTML DB Data Workshop has a feature to load a CSV file and create a table based on it.
I use a simplified version of this feature in my applications.
See a quick demo at
http://htmldb.oracle.com/pls/otn/f?p=38131:1
Create a small csv file like
col1,col2,col3
varchar2(10),number,"number(10,2)"
cat,2,3.2
dog,99,10.4
The first line in the file are column names
Second line are their datatypes.
Save the file as c:\test.csv
Click the Browse button, search for this file.
Click the Submit button to upload and parse the file.
You can browse the file contents.
If you like what you see, type in a table name and click the Create Table button to create a table.
Let me know if anyone is interested and I can post the code.
Hope this helps.
Message was edited by:
Vikas
Message was edited by:
VikasHi Vikas,
I tried to import your COOL application into html db at http://htmldb.oracle.com and got the error:
"Expecting p_company or wwv_flow_company cookie to contain security group id of application owner.
Error ERR-7621 Could not determine workspace for application (:) on application accept.
OK "
The SAME error I get when trying to import Scott's Photo Catalog at http://htmldb.oracle.com/pls/otn/f?p=18326:7:6703988766288646534::::P7_ID:2242.
What should I change in the exported script in addition to change your workspace schema VIKASA or Scott's STUDIO_SHOWCASE to my NICED68?
Thanks!
DC -
Loading a CSV file into a table as in dataworkshop
Data Workshop has a feature to load a CSV file and create a table based on it, similarly i want to create it in my application.
i have gone through the forum http://forums.oracle.com/forums/thread.jspa?threadID=334988&start=60&tstart=0
but could not download all the files(application , HTMLDB_TOOLS package and the PAGE_SENTRY function) couldnt find the PAGE_SENTRY function.
AND when i open this link http://apex.oracle.com/pls/apex/f?p=27746
I couldn't run the application. I provided a CSV file and when I click SUBMIT, I got the error:
ORA-06550: line 1, column 7: PLS-00201: identifier 'HTMLDB_TOOLS.PARSE_FILE' must be declared
tried it in apex.oracle.com host as given in the previous post.
any help pls..,
any other method to load data into tables.., (similar to dataworkshop)hi jari,
I'm using the HTMDB_TOOLS to parse my csv files,It works well for creating a report, but if i want to create a new table and upload the data giving error *"missing right parenthesis"*
I've been looking through the package body and i think there is some problem in the code,
IF (p_table_name is not null)
THEN
BEGIN
execute immediate 'drop table '||p_table_name;
EXCEPTION
WHEN OTHERS THEN NULL;
END;
l_ddl := 'create table '||p_table_name||' '||v(p_ddl_item);
htmldb_util.set_session_state('P149_DEBUG',l_ddl);
execute immediate l_ddl;
l_ddl := 'insert into '||p_table_name||' '||
'select '||v(p_columns_item)||' '||
'from htmldb_collections '||
'where seq_id > 1 and collection_name='''||p_collection_name||'''';
htmldb_util.set_session_state('P149_DEBUG',v('P149_DEBUG')||'/'||l_ddl);
execute immediate l_ddl;
RETURN;
END IF;it is droping table but not creating new table.
P149_DEBUG contains create table EMP_D (Emp ID number(10),Name varchar2(20),Type varchar2(20),Join Date varchar2(20),Location varchar2(20))and if i comment the
BEGIN
execute immediate 'drop table '||p_table_name;
EXCEPTION
WHEN OTHERS THEN NULL;
END;
l_ddl := 'create table '||p_table_name||' '||v(p_ddl_item);
htmldb_util.set_session_state('P149_DEBUG',l_ddl);
execute immediate l_ddl;then it is working well, i.e i enter the exsisting table name then i works fine, inserting the rows.
but unable to create new table
can you pls help to fix it.
Regards,
Little Foot -
Error loading local CSV file into external table
Hello,
I am trying to load a CSV file located on my C:\ drive on a WIndows XP system into an 'external table'. Everyting used to work correctly when using Oracle XE (iinstalled also locally on my WIndows system).
However, once I am trynig to load the same file into a Oracle 11g R2 database on UNIX, I get the following errr:
ORA-29913: Error in executing ODCIEXTTABLEOPEN callout
ORA-29400: data cartridge error
error opening file ...\...\...nnnnn.log
Please let me know if I can achieve the same functionality I had with Oracle XP.
(Note: I cannot use SQL*Loader approach, I am invoking Oracle stored procedures from VB.Net that are attempting to load data into external tables).
Regards,
M.R.user7047382 wrote:
Hello,
I am trying to load a CSV file located on my C:\ drive on a WIndows XP system into an 'external table'. Everyting used to work correctly when using Oracle XE (iinstalled also locally on my WIndows system).
However, once I am trynig to load the same file into a Oracle 11g R2 database on UNIX, I get the following errr:
ORA-29913: Error in executing ODCIEXTTABLEOPEN callout
ORA-29400: data cartridge error
error opening file ...\...\...nnnnn.log
Please let me know if I can achieve the same functionality I had with Oracle XP.
(Note: I cannot use SQL*Loader approach, I am invoking Oracle stored procedures from VB.Net that are attempting to load data into external tables).
Regards,
M.R.So your database is on a unix box, but the file is on your Windows desktop machine? So .... how is it you are making your file (on your desktop) visible to your database (on a unix box)??????? -
Help for loading of XML File into Oracle 10.2 DB.
Hello People,
I need help with below XML File, I need to get it loaded into Oracle 10.2.After brainstorming I could have figured out 2 best ways to do so :
1.Through ctrl file and log file using SQL Loader
2.Using XQuery and XML datatype.
Tried with option 1 but dint succeed.Could you please help me out with a solution of the same ??
<?xml version="1.0" encoding="ISO-8859-1" standalone="no" ?>
- <sta:entity-data xmlns:sta="http://www.vendavo.com/omi/StandardDeal" xsi:schemaLocation="http://www.vendavo.com/omi/StandardDeal StandardDeal-ImportAgreement 100912 - Updated.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <StandardDeal>
<IsImported>true</IsImported>
<ModelNReferenceID>00144105-009-000</ModelNReferenceID>
<DealName>00144105-009-000CV Magellan Arteriocyte Inc 1164385</DealName>
<AccountGroup>SoldTo</AccountGroup>
<CustomerSalesData.VCustomer.VName>0001164385</CustomerSalesData.VCustomer.VName>
<DistrictManager />
<MultipleSalesReps>false</MultipleSalesReps>
<OnBehalfOf>Brian Smith</OnBehalfOf>
<FOBDestination>false</FOBDestination>
<ConsultingGroupInformation />
<AgreementStartDate>11/15/2007</AgreementStartDate>
<AgreementEndDate>12/31/2013</AgreementEndDate>
<BaselineReviewDate>01/10/2013</BaselineReviewDate>
<BaseLineReviewPeriod>Quarterly</BaseLineReviewPeriod>
<RequestedDate>10/12/2012</RequestedDate>
<RFPDueDate>10/12/2012</RFPDueDate>
<WaiveFreight>false</WaiveFreight>
- <HeaderDiscountPercentageoffALP>
- <VPercentage documentId="1">
<Amount>0</Amount>
</VPercentage>
</HeaderDiscountPercentageoffALP>
<CustomerCommitmentType>Others</CustomerCommitmentType>
<ManualApproval>true</ManualApproval>
<LegalReviewRequired>false</LegalReviewRequired>
<TechnologyClause>false</TechnologyClause>
<ComplianceTracking>false</ComplianceTracking>
<ComplianceStatus>false</ComplianceStatus>
<VState.VLabel>draft</VState.VLabel>
<Eval>false</Eval>
<CustomerAccepted>true</CustomerAccepted>
<VNotes>CV Magellan Arteriocyte Inc 1164385</VNotes>
- <VItems>
- <StandardDealLineItem documentId="5235485">
<IsImported>true</IsImported>
<VCatalogEntity.VName>MAG100</VCatalogEntity.VName>
<PricingCPG>Magellan</PricingCPG>
- <ExpectedAnnualQuantity>
- <VQuantity>
<VAmount>1</VAmount>
<VUOM>EA</VUOM>
</VQuantity>
</ExpectedAnnualQuantity>
<PercentageBase>false</PercentageBase>
<DiscountALP>N/A</DiscountALP>
- <DiscountPercentage>
- <VPercentage documentId="2">
<Amount />
</VPercentage>
</DiscountPercentage>
<ProposedAgreementPrice />
- <CustomerRequestedPrice>
- <VMoney documentId="4">
<Amount />
</VMoney>
</CustomerRequestedPrice>
<Monthly>No</Monthly>
<PpaNoCap>N/A</PpaNoCap>
- <ProjectedMarketShare>
- <VPercentage documentId="5">
<Amount>0</Amount>
</VPercentage>
</ProjectedMarketShare>
<CustomerCommitted>Yes</CustomerCommitted>
<VState.VName>draft</VState.VName>
</StandardDealLineItem>
- <StandardDealLineItem documentId="5235486">
<IsImported>true</IsImported>
<VCatalogEntity.VName>MAG100</VCatalogEntity.VName>
<PricingCPG>Magellan</PricingCPG>
- <ExpectedAnnualQuantity>
- <VQuantity>
<VAmount>1</VAmount>
<VUOM>EA</VUOM>
</VQuantity>
</ExpectedAnnualQuantity>
<EffectiveFrom>11/15/2007</EffectiveFrom>
<DurationMonths>19</DurationMonths>
<PercentageBase>false</PercentageBase>
<DiscountALP>N/A</DiscountALP>
- <DiscountPercentage>
- <VPercentage documentId="2">
<Amount />
</VPercentage>
</DiscountPercentage>
<ProposedAgreementPrice />
- <CustomerRequestedPrice>
- <VMoney documentId="4">
<Amount />
</VMoney>
</CustomerRequestedPrice>
<Monthly>No</Monthly>
<PpaNoCap>N/A</PpaNoCap>
- <ProjectedMarketShare>
- <VPercentage documentId="5">
<Amount>0</Amount>
</VPercentage>
</ProjectedMarketShare>
<CustomerCommitted>Yes</CustomerCommitted>
<VValidity.from>11/15/2007</VValidity.from>
<VValidity.to>05/31/2009</VValidity.to>
<VState.VName>draft</VState.VName>
</StandardDealLineItem>
- <StandardDealLineItem documentId="5235487">
<IsImported>true</IsImported>
<VCatalogEntity.VName>MAG100</VCatalogEntity.VName>
<PricingCPG>Magellan</PricingCPG>
- <ExpectedAnnualQuantity>
- <VQuantity>
<VAmount>1</VAmount>
<VUOM>EA</VUOM>
</VQuantity>
</ExpectedAnnualQuantity>
<EffectiveFrom>11/15/2007</EffectiveFrom>
<DurationMonths>74</DurationMonths>
<PercentageBase>false</PercentageBase>
<DiscountALP>N/A</DiscountALP>
- <DiscountPercentage>
- <VPercentage documentId="2">
<Amount />
</VPercentage>
</DiscountPercentage>
<ProposedAgreementPrice />
- <CustomerRequestedPrice>
- <VMoney documentId="4">
<Amount />
</VMoney>
</CustomerRequestedPrice>
<Monthly>No</Monthly>
<PpaNoCap>N/A</PpaNoCap>
- <ProjectedMarketShare>
- <VPercentage documentId="5">
<Amount>0</Amount>
</VPercentage>
</ProjectedMarketShare>
<CustomerCommitted>Yes</CustomerCommitted>
<VValidity.from>11/15/2007</VValidity.from>
<VValidity.to>12/31/2013</VValidity.to>
<VState.VName>draft</VState.VName>
</StandardDealLineItem>
- <StandardDealLineItem documentId="5235489">
<IsImported>true</IsImported>
<VCatalogEntity.VName>MAG200</VCatalogEntity.VName>
<PricingCPG>Magellan</PricingCPG>
- <ExpectedAnnualQuantity>
- <VQuantity>
<VAmount>1</VAmount>
<VUOM>EA</VUOM>
</VQuantity>
</ExpectedAnnualQuantity>
<PercentageBase>false</PercentageBase>
<DiscountALP>N/A</DiscountALP>
- <DiscountPercentage>
- <VPercentage documentId="2">
<Amount />
</VPercentage>
</DiscountPercentage>
<ProposedAgreementPrice />
- <CustomerRequestedPrice>
- <VMoney documentId="4">
<Amount />
</VMoney>
</CustomerRequestedPrice>
<Monthly>No</Monthly>
<PpaNoCap>N/A</PpaNoCap>
- <ProjectedMarketShare>
- <VPercentage documentId="5">
<Amount>0</Amount>
</VPercentage>
</ProjectedMarketShare>
<CustomerCommitted>Yes</CustomerCommitted>
<VState.VName>draft</VState.VName>
</StandardDealLineItem>
- <StandardDealLineItem documentId="5235490">
<IsImported>true</IsImported>
<VCatalogEntity.VName>MAG200</VCatalogEntity.VName>
<PricingCPG>Magellan</PricingCPG>
- <ExpectedAnnualQuantity>
- <VQuantity>
<VAmount>1</VAmount>
<VUOM>EA</VUOM>
</VQuantity>
</ExpectedAnnualQuantity>
<EffectiveFrom>11/15/2007</EffectiveFrom>
<DurationMonths>19</DurationMonths>
<PercentageBase>false</PercentageBase>
<DiscountALP>N/A</DiscountALP>
- <DiscountPercentage>
- <VPercentage documentId="2">
<Amount />
</VPercentage>
</DiscountPercentage>
<ProposedAgreementPrice />
- <CustomerRequestedPrice>
- <VMoney documentId="4">
<Amount />
</VMoney>
</CustomerRequestedPrice>
<Monthly>No</Monthly>
<PpaNoCap>N/A</PpaNoCap>
- <ProjectedMarketShare>
- <VPercentage documentId="5">
<Amount>0</Amount>
</VPercentage>
</ProjectedMarketShare>
<CustomerCommitted>Yes</CustomerCommitted>
<VValidity.from>11/15/2007</VValidity.from>
<VValidity.to>05/31/2009</VValidity.to>
<VState.VName>draft</VState.VName>
</StandardDealLineItem>
- <StandardDealLineItem documentId="5235491">
<IsImported>true</IsImported>
<VCatalogEntity.VName>MAG200</VCatalogEntity.VName>
<PricingCPG>Magellan</PricingCPG>
- <ExpectedAnnualQuantity>
- <VQuantity>
<VAmount>1</VAmount>
<VUOM>EA</VUOM>
</VQuantity>
</ExpectedAnnualQuantity>
<EffectiveFrom>11/15/2007</EffectiveFrom>
<DurationMonths>74</DurationMonths>
<PercentageBase>false</PercentageBase>
<DiscountALP>N/A</DiscountALP>
- <DiscountPercentage>
- <VPercentage documentId="2">
<Amount />
</VPercentage>
</DiscountPercentage>
<ProposedAgreementPrice />
- <CustomerRequestedPrice>
- <VMoney documentId="4">
<Amount />
</VMoney>
</CustomerRequestedPrice>
<Monthly>No</Monthly>
<PpaNoCap>N/A</PpaNoCap>
- <ProjectedMarketShare>
- <VPercentage documentId="5">
<Amount>0</Amount>
</VPercentage>
</ProjectedMarketShare>
<CustomerCommitted>Yes</CustomerCommitted>
<VValidity.from>11/15/2007</VValidity.from>
<VValidity.to>12/31/2013</VValidity.to>
<VState.VName>draft</VState.VName>
</StandardDealLineItem>
- <StandardDealLineItem documentId="5235493">
<IsImported>true</IsImported>
<VCatalogEntity.VName>RMAG100</VCatalogEntity.VName>
<PricingCPG>Magellan</PricingCPG>
- <ExpectedAnnualQuantity>
- <VQuantity>
<VAmount>1</VAmount>
<VUOM>EA</VUOM>
</VQuantity>
</ExpectedAnnualQuantity>
<PercentageBase>false</PercentageBase>
<DiscountALP>N/A</DiscountALP>
- <DiscountPercentage>
- <VPercentage documentId="2">
<Amount />
</VPercentage>
</DiscountPercentage>
<ProposedAgreementPrice />
- <CustomerRequestedPrice>
- <VMoney documentId="4">
<Amount />
</VMoney>
</CustomerRequestedPrice>
<Monthly>No</Monthly>
<PpaNoCap>N/A</PpaNoCap>
- <ProjectedMarketShare>
- <VPercentage documentId="5">
<Amount>0</Amount>
</VPercentage>
</ProjectedMarketShare>
<CustomerCommitted>Yes</CustomerCommitted>
<VState.VName>draft</VState.VName>
</StandardDealLineItem>
- <StandardDealLineItem documentId="5235494">
<IsImported>true</IsImported>
<VCatalogEntity.VName>RMAG100</VCatalogEntity.VName>
<PricingCPG>Magellan</PricingCPG>
- <ExpectedAnnualQuantity>
- <VQuantity>
<VAmount>1</VAmount>
<VUOM>EA</VUOM>
</VQuantity>
</ExpectedAnnualQuantity>
<EffectiveFrom>11/15/2007</EffectiveFrom>
<DurationMonths>74</DurationMonths>
<PercentageBase>false</PercentageBase>
<DiscountALP>N/A</DiscountALP>
- <DiscountPercentage>
- <VPercentage documentId="2">
<Amount />
</VPercentage>
</DiscountPercentage>
<ProposedAgreementPrice />
- <CustomerRequestedPrice>
- <VMoney documentId="4">
<Amount />
</VMoney>
</CustomerRequestedPrice>
<Monthly>No</Monthly>
<PpaNoCap>N/A</PpaNoCap>
- <ProjectedMarketShare>
- <VPercentage documentId="5">
<Amount>0</Amount>
</VPercentage>
</ProjectedMarketShare>
<CustomerCommitted>Yes</CustomerCommitted>
<VValidity.from>11/15/2007</VValidity.from>
<VValidity.to>12/31/2013</VValidity.to>
<VState.VName>draft</VState.VName>
</StandardDealLineItem>
- <StandardDealLineItem documentId="5235495">
<IsImported>true</IsImported>
<VCatalogEntity.VName>RMAG100</VCatalogEntity.VName>
<PricingCPG>Magellan</PricingCPG>
- <ExpectedAnnualQuantity>
- <VQuantity>
<VAmount>1</VAmount>
<VUOM>EA</VUOM>
</VQuantity>
</ExpectedAnnualQuantity>
<EffectiveFrom>11/15/2007</EffectiveFrom>
<DurationMonths>19</DurationMonths>
<PercentageBase>false</PercentageBase>
<DiscountALP>N/A</DiscountALP>
- <DiscountPercentage>
- <VPercentage documentId="2">
<Amount />
</VPercentage>
</DiscountPercentage>
<ProposedAgreementPrice />
- <CustomerRequestedPrice>
- <VMoney documentId="4">
<Amount />
</VMoney>
</CustomerRequestedPrice>
<Monthly>No</Monthly>
<PpaNoCap>N/A</PpaNoCap>
- <ProjectedMarketShare>
- <VPercentage documentId="5">
<Amount>0</Amount>
</VPercentage>
</ProjectedMarketShare>
<CustomerCommitted>Yes</CustomerCommitted>
<VValidity.from>11/15/2007</VValidity.from>
<VValidity.to>05/31/2009</VValidity.to>
<VState.VName>draft</VState.VName>
</StandardDealLineItem>
- <StandardDealLineItem documentId="5235497">
<IsImported>true</IsImported>
<VCatalogEntity.VName>309604</VCatalogEntity.VName>
<PricingCPG>Magellan</PricingCPG>
- <ExpectedAnnualQuantity>
- <VQuantity>
<VAmount>1</VAmount>
<VUOM>EA</VUOM>
</VQuantity>
</ExpectedAnnualQuantity>
<PercentageBase>false</PercentageBase>
<DiscountALP>N/A</DiscountALP>
- <DiscountPercentage>
- <VPercentage documentId="2">
<Amount />
</VPercentage>
</DiscountPercentage>
<ProposedAgreementPrice />
- <CustomerRequestedPrice>
- <VMoney documentId="4">
<Amount />
</VMoney>
</CustomerRequestedPrice>
<Monthly>No</Monthly>
<PpaNoCap>N/A</PpaNoCap>
- <ProjectedMarketShare>
- <VPercentage documentId="5">
<Amount>0</Amount>
</VPercentage>
</ProjectedMarketShare>
<CustomerCommitted>Yes</CustomerCommitted>
<VState.VName>draft</VState.VName>
</StandardDealLineItem>
- <StandardDealLineItem documentId="5235498">
<IsImported>true</IsImported>
<VCatalogEntity.VName>309604</VCatalogEntity.VName>
<PricingCPG>Magellan</PricingCPG>
- <ExpectedAnnualQuantity>
- <VQuantity>
<VAmount>1</VAmount>
<VUOM>EA</VUOM>
</VQuantity>
</ExpectedAnnualQuantity>
<EffectiveFrom>11/15/2007</EffectiveFrom>
<DurationMonths>74</DurationMonths>
<PercentageBase>false</PercentageBase>
<DiscountALP>N/A</DiscountALP>
- <DiscountPercentage>
- <VPercentage documentId="2">
<Amount />
</VPercentage>
</DiscountPercentage>
<ProposedAgreementPrice />
- <CustomerRequestedPrice>
- <VMoney documentId="4">
<Amount />
</VMoney>
</CustomerRequestedPrice>
<Monthly>No</Monthly>
<PpaNoCap>N/A</PpaNoCap>
- <ProjectedMarketShare>
- <VPercentage documentId="5">
<Amount>0</Amount>
</VPercentage>
</ProjectedMarketShare>
<CustomerCommitted>Yes</CustomerCommitted>
<VValidity.from>11/15/2007</VValidity.from>
<VValidity.to>12/31/2013</VValidity.to>
<VState.VName>draft</VState.VName>
</StandardDealLineItem>
- <StandardDealLineItem documentId="5235499">
<IsImported>true</IsImported>
<VCatalogEntity.VName>309604</VCatalogEntity.VName>
<PricingCPG>Magellan</PricingCPG>
- <ExpectedAnnualQuantity>
- <VQuantity>
<VAmount>1</VAmount>
<VUOM>EA</VUOM>
</VQuantity>
</ExpectedAnnualQuantity>
<EffectiveFrom>11/15/2007</EffectiveFrom>
<DurationMonths>19</DurationMonths>
<PercentageBase>false</PercentageBase>
<DiscountALP>N/A</DiscountALP>
- <DiscountPercentage>
- <VPercentage documentId="2">
<Amount />
</VPercentage>
</DiscountPercentage>
<ProposedAgreementPrice />
- <CustomerRequestedPrice>
- <VMoney documentId="4">
<Amount />
</VMoney>
</CustomerRequestedPrice>
<Monthly>No</Monthly>
<PpaNoCap>N/A</PpaNoCap>
- <ProjectedMarketShare>
- <VPercentage documentId="5">
<Amount>0</Amount>
</VPercentage>
</ProjectedMarketShare>
<CustomerCommitted>Yes</CustomerCommitted>
<VValidity.from>11/15/2007</VValidity.from>
<VValidity.to>05/31/2009</VValidity.to>
<VState.VName>draft</VState.VName>
</StandardDealLineItem>
- <StandardDealLineItem documentId="5235501">
<IsImported>true</IsImported>
<VCatalogEntity.VName>309653</VCatalogEntity.VName>
<PricingCPG>Magellan</PricingCPG>
- <ExpectedAnnualQuantity>
- <VQuantity>
<VAmount>1</VAmount>
<VUOM>EA</VUOM>
</VQuantity>
</ExpectedAnnualQuantity>
<PercentageBase>false</PercentageBase>
<DiscountALP>N/A</DiscountALP>
- <DiscountPercentage>
- <VPercentage documentId="2">
<Amount />
</VPercentage>
</DiscountPercentage>
<ProposedAgreementPrice />
- <CustomerRequestedPrice>
- <VMoney documentId="4">
<Amount />
</VMoney>
</CustomerRequestedPrice>
<Monthly>No</Monthly>
<PpaNoCap>N/A</PpaNoCap>
- <ProjectedMarketShare>
- <VPercentage documentId="5">
<Amount>0</Amount>
</VPercentage>
</ProjectedMarketShare>
<CustomerCommitted>Yes</CustomerCommitted>
<VState.VName>draft</VState.VName>
</StandardDealLineItem>
- <StandardDealLineItem documentId="5235502">
<IsImported>true</IsImported>
<VCatalogEntity.VName>309653</VCatalogEntity.VName>
<PricingCPG>Magellan</PricingCPG>
- <ExpectedAnnualQuantity>
- <VQuantity>
<VAmount>1</VAmount>
<VUOM>EA</VUOM>
</VQuantity>
</ExpectedAnnualQuantity>
<EffectiveFrom>11/15/2007</EffectiveFrom>
<DurationMonths>74</DurationMonths>
<PercentageBase>false</PercentageBase>
<DiscountALP>N/A</DiscountALP>
- <DiscountPercentage>
- <VPercentage documentId="2">
<Amount />
</VPercentage>
</DiscountPercentage>
<ProposedAgreementPrice />
- <CustomerRequestedPrice>
- <VMoney documentId="4">
<Amount />
</VMoney>
</CustomerRequestedPrice>
<Monthly>No</Monthly>
<PpaNoCap>N/A</PpaNoCap>
- <ProjectedMarketShare>
- <VPercentage documentId="5">
<Amount>0</Amount>
</VPercentage>
</ProjectedMarketShare>
<CustomerCommitted>Yes</CustomerCommitted>
<VValidity.from>11/15/2007</VValidity.from>
<VValidity.to>12/31/2013</VValidity.to>
<VState.VName>draft</VState.VName>
</StandardDealLineItem>
- <StandardDealLineItem documentId="5235503">
<IsImported>true</IsImported>
<VCatalogEntity.VName>309653</VCatalogEntity.VName>
<PricingCPG>Magellan</PricingCPG>
- <ExpectedAnnualQuantity>
- <VQuantity>
<VAmount>1</VAmount>
<VUOM>EA</VUOM>
</VQuantity>
</ExpectedAnnualQuantity>
<EffectiveFrom>11/15/2007</EffectiveFrom>
<DurationMonths>19</DurationMonths>
<PercentageBase>false</PercentageBase>
<DiscountALP>N/A</DiscountALP>
- <DiscountPercentage>
- <VPercentage documentId="2">
<Amount />
</VPercentage>
</DiscountPercentage>
<ProposedAgreementPrice />
- <CustomerRequestedPrice>
- <VMoney documentId="4">
<Amount />
</VMoney>
</CustomerRequestedPrice>
<Monthly>No</Monthly>
<PpaNoCap>N/A</PpaNoCap>
- <ProjectedMarketShare>
- <VPercentage documentId="5">
<Amount>0</Amount>
</VPercentage>
</ProjectedMarketShare>
<CustomerCommitted>Yes</CustomerCommitted>
<VValidity.from>11/15/2007</VValidity.from>
<VValidity.to>05/31/2009</VValidity.to>
<VState.VName>draft</VState.VName>
</StandardDealLineItem>
- <StandardDealLineItem documentId="5235505">
<IsImported>true</IsImported>
<VCatalogEntity.VName>BOS350</VCatalogEntity.VName>
<PricingCPG>Magellan</PricingCPG>
- <ExpectedAnnualQuantity>
- <VQuantity>
<VAmount>1</VAmount>
<VUOM>EA</VUOM>
</VQuantity>
</ExpectedAnnualQuantity>
<PercentageBase>false</PercentageBase>
<DiscountALP>N/A</DiscountALP>
- <DiscountPercentage>
- <VPercentage documentId="2">
<Amount />
</VPercentage>
</DiscountPercentage>
<ProposedAgreementPrice />
- <CustomerRequestedPrice>
- <VMoney documentId="4">
<Amount />
</VMoney>
</CustomerRequestedPrice>
<Monthly>No</Monthly>
<PpaNoCap>N/A</PpaNoCap>
- <ProjectedMarketShare>
- <VPercentage documentId="5">
<Amount>0</Amount>
</VPercentage>
</ProjectedMarketShare>
<CustomerCommitted>Yes</CustomerCommitted>
<VState.VName>draft</VState.VName>
</StandardDealLineItem>
- <StandardDealLineItem documentId="5235506">
<IsImported>true</IsImported>
<VCatalogEntity.VName>BOS350</VCatalogEntity.VName>
<PricingCPG>Magellan</PricingCPG>
- <ExpectedAnnualQuantity>
- <VQuantity>
<VAmount>1</VAmount>
<VUOM>EA</VUOM>
</VQuantity>
</ExpectedAnnualQuantity>
<EffectiveFrom>11/15/2007</EffectiveFrom>
<DurationMonths>19</DurationMonths>
<PercentageBase>false</PercentageBase>
<DiscountALP>N/A</DiscountALP>
- <DiscountPercentage>
- <VPercentage documentId="2">
<Amount />
</VPercentage>
</DiscountPercentage>
<ProposedAgreementPrice />
- <CustomerRequestedPrice>
- <VMoney documentId="4">
<Amount />
</VMoney>
</CustomerRequestedPrice>
<Monthly>No</Monthly>
<PpaNoCap>N/A</PpaNoCap>
- <ProjectedMarketShare>
- <VPercentage documentId="5">
<Amount>0</Amount>
</VPercentage>
</ProjectedMarketShare>
<CustomerCommitted>Yes</CustomerCommitted>
<VValidity.from>11/15/2007</VValidity.from>
<VValidity.to>05/31/2009</VValidity.to>
<VState.VName>draft</VState.VName>
</StandardDealLineItem>
- <StandardDealLineItem documentId="5235655">
<IsImported>true</IsImported>
<VCatalogEntity.VName>AMS300</VCatalogEntity.VName>
<PricingCPG>Magellan</PricingCPG>
- <ExpectedAnnualQuantity>
- <VQuantity>
<VAmount>1</VAmount>
<VUOM>EA</VUOM>
</VQuantity>
</ExpectedAnnualQuantity>
<EffectiveFrom>11/15/2007</EffectiveFrom>
<DurationMonths>74</DurationMonths>
<PercentageBase>false</PercentageBase>
<DiscountALP>N/A</DiscountALP>
- <DiscountPercentage>
- <VPercentage documentId="2">
<Amount />
</VPercentage>
</DiscountPercentage>
<ProposedAgreementPrice />
- <CustomerRequestedPrice>
- <VMoney documentId="4">
<Amount />
</VMoney>
</CustomerRequestedPrice>
<Monthly>No</Monthly>
<PpaNoCap>N/A</PpaNoCap>
- <ProjectedMarketShare>
- <VPercentage documentId="5">
<Amount>0</Amount>
</VPercentage>
</ProjectedMarketShare>
<CustomerCommitted>Yes</CustomerCommitted>
<VValidity.from>11/15/2007</VValidity.from>
<VValidity.to>12/31/2013</VValidity.to>
<VState.VName>draft</VState.VName>
</StandardDealLineItem>
</VItems>
</StandardDeal>
</sta:entity-data>
Regards,
Ekta1.Through ctrl file and log file using SQL LoaderPlease clarify :
Do you want to load the entire file into a single column (XMLType or CLOB), or do you want to extract XML data and store it into different relational columns?
Please also edit your first post and use tags to enclose the XML source, and do not copy/paste directly from your browser, use "view source" feature so that the content doesn't retain navigation characters (+/-).
Edited by: odie_63 on 11 nov. 2012 13:20 -
How to load multiple CSV files into oracle in one go.
Hi,
I have project requirement like: I'll be getting one csv file as one record for the source table.
So i need to know is there any way by which I can load multiple csv in one go. I have searched a lot on net about external table.(but problem is I can only use one consolidate csv at a time)
and UTL_FILE same thing consolidate file is required here to load.
but in my scenario I'll have (1000+) csv files(as records) for the table and it'd be hectic thing to open each csv file,copy the record in it and paste in other file to make consolidate one.
Please help me ..it's very new thing for me...I have used external table for , one csv file in past but here I have to user many file.
Table description given below.
desc td_region_position
POSITION_KEY NUMBER Primary key
POSITION_NAME VARCHAR2(20)
CHANNEL VARCHAR2(20)
LEVEL VARCHAR2(20)
IS_PARTNER CHAR(1)
MARKET_CODE VARCHAR2(20)
CSV file example:
POSITION_KEY|POSITION_NAME|CHANNEL|LEVEL|IS_PARTNER|MARKET_CODE
123002$$FLSM$$Sales$$Middle$$Y$$MDM2203
delimeter is -- $$my database version as follows:
Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi
PL/SQL Release 10.2.0.5.0 - Production
"CORE 10.2.0.5.0 Production"
TNS for IBM/AIX RISC System/6000: Version 10.2.0.5.0 - Productio
NLSRTL Version 10.2.0.5.0 - ProductionEdited by: 974253 on Dec 10, 2012 9:58 AMif your csv files have some mask, say "mask*.csv" or by file "mask1.csv" and "mask2.csv" and ...
you can create this.bat file
FOR %%c in (C:\tmp\loader\mask*.csv) DO (
c:\oracle\db\dbhome_1\BIN\sqlldr <user>@<sid>l/<password> control=C:\tmp\loader\loader.ctl data=%%c
)and C:\tmp\loader\loader.ctl is
OPTIONS (ERRORS=0,SKIP=1)
LOAD DATA
APPEND
INTO TABLE scott.td_region_position
FIELDS TERMINATED BY '$$' TRAILING NULLCOLS
( POSITION_KEY,
POSITION_NAME ,
CHANNEL,
LVL,
IS_PARTNER,
MARKET_CODE
)test
C:\Documents and Settings\and>sqlplus
SQL*Plus: Release 11.2.0.1.0 Production on Mon Dec 10 11:03:47 2012
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Enter user-name: scott
Enter password:
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> select * from td_region_position;
no rows selected
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Pr
oduction
With the Partitioning, OLAP, Data Mining and Real Application Testing options
C:\Documents and Settings\and>cd C:\tmp\loader
C:\tmp\loader>dir
Volume in drive C has no label.
Volume Serial Number is F87F-9154
Directory of C:\tmp\loader
12/10/2012 10:51 AM <DIR> .
12/10/2012 10:51 AM <DIR> ..
12/10/2012 10:55 AM 226 loader.ctl
12/10/2012 10:38 AM 104 mask1.csv
12/10/2012 10:39 AM 108 mask2.csv
12/10/2012 10:57 AM 151 this.bat
4 File(s) 589 bytes
2 Dir(s) 4,523,450,368 bytes free
C:\tmp\loader>this.bat
C:\tmp\loader>FOR %c in (C:\tmp\loader\mask*.csv) DO (c:\oracle\db\dbhome_1\BIN\
sqlldr user@orcl/password control=C:\tmp\loader\loader.ctl data=%c )
C:\tmp\loader>(c:\oracle\db\dbhome_1\BIN\sqlldr user@orcl/password control=C
:\tmp\loader\loader.ctl data=C:\tmp\loader\mask1.csv )
SQL*Loader: Release 11.2.0.1.0 - Production on Mon Dec 10 11:04:27 2012
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
Commit point reached - logical record count 1
C:\tmp\loader>(c:\oracle\db\dbhome_1\BIN\sqlldr user@orcl/password control=C
:\tmp\loader\loader.ctl data=C:\tmp\loader\mask2.csv )
SQL*Loader: Release 11.2.0.1.0 - Production on Mon Dec 10 11:04:28 2012
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
Commit point reached - logical record count 1
C:\tmp\loader>sqlplus
SQL*Plus: Release 11.2.0.1.0 Production on Mon Dec 10 11:04:46 2012
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Enter user-name: scott
Enter password:
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> select * from td_region_position;
POSITION_KEY POSITION_NAME CHANNEL LVL I
MARKET_CODE
123002 FLSM Sales Middle Y
MDM2203
123003 FLSM1 Sa2les M2iddle Y
MDM22203
SQL> -
How to load excel-csv file into oracle database
Hi
I wanted to load excel file with csv extension(named as trial.csv) into
oracle database table(named as dept),I have given below my experiment here.
I am getting the following error,how should I rectify this?
For ID column I have defined as number(5) datatype, in my control file I have defined as interger external(5),where as in the Error log file why the datatype for ID column is comming as character?
1)my oracle database table is
SQL> desc dept;
Name Null? Type
ID NUMBER(5)
DNAME CHAR(20)
2)my data file is(trial.csv)
ID DNAME
11 production
22 purchase
33 inspection
3)my control file is(trial.ctl)
LOAD DATA
INFILE 'trial.csv'
BADFILE 'trial.bad'
DISCARDFILE 'trial.dsc'
APPEND
INTO TABLE dept
FIELDS TERMINATED BY "," OPTIONALLY ENCLOSED BY '"'
TRAILING NULLCOLS
(ID POSITION(1:5) INTEGER EXTERNAL(5)
NULLIF ID=BLANKS,
DNAME POSITION(6:25) CHAR
NULLIF DNAME=BLANKS
3)my syntax on cmd prompt is
c:\>sqlldr scott/tiger@xxx control=trial.ctl direct=true;
Load completed - logical record count 21.
4)my log file error message is
Column Name Position Len Term Encl Datatype
ID 1:5 5 , O(") CHARACTER
NULL if ID = BLANKS
DNAME 6:25 20 , O(") CHARACTER
NULL if DNAME = BLANKS
Record 1: Rejected - Error on table DEPT, column ID.
ORA-01722: invalid number
Record 21: Rejected - Error on table DEPT, column ID.
ORA-01722: invalid number
Table DEPT:
0 Rows successfully loaded.
21 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.
Bind array size not used in direct path.
Column array rows : 5000
Stream buffer bytes: 256000
Read buffer bytes: 1048576
Total logical records skipped: 0
Total logical records read: 21
Total logical records rejected: 21
Total logical records discarded: 0
Total stream buffers loaded by SQL*Loader main thread: 0
Total stream buffers loaded by SQL*Loader load thread: 0
5)Result
SQL> select * from dept;
no rows selected
by
balamuralikrishnan.sHi everyone!
The following are the steps to load a excell sheet to oracle table.i tried to be as simple as possible.
thanks
Step # 1
Prapare a data file (excel sheet) that would be uploaded to oracle table.
"Save As" a excel sheet to ".csv" (comma seperated values) format.
Then save as to " .dat " file.
e.g datafile.bat
1,Category Wise Consumption Summary,Expected Receipts Report
2,Category Wise Receipts Summary,Forecast Detail Report
3,Current Stock List Category Wise,Forecast rule listing
4,Daily Production Report,Freight carrier listing
5,Daily Transactions Report,Inventory Value Report
Step # 2
Prapare a control file that define the data file to be loaded ,columns seperation value,name and type of the table columns to which data is to be loaded.The control file extension should be " .ctl " !
e.g i want to load the data into tasks table ,from the datafile.dat file and having controlfile.ctl control file.
SQL> desc tasks;
Name Null? Type
TASK_ID NOT NULL NUMBER(14)
TASK_NAME VARCHAR2(120)
TASK_CODE VARCHAR2(120)
: controlfile.ctl
LOAD DATA
INFILE 'e:\datafile.dat'
INTO TABLE tasks
FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'
(TASK_ID INTEGER EXTERNAL,
TASK_NAME CHAR,
TASK_CODE CHAR)
The above is the structure for a control file.
Step # 3
the final step is to give the sqlldr command to execute the process.
sqlldr userid=scott/tiger@abc control=e:\controlfile.ctl log=e:\logfile.log
Message was edited by:
user578762 -
Data interpreter for loading of DASYLAB data into DIADEM
Can NI deliver a data interpreter for loading DASYLAB data into DIADEM?
Hi zzzz,
It is my understanding that DasyLab has the ability to write DIAdem *.DAT files. This I have gathered from the fact that US customers have sent me *.DAT data files generated by their DasyLab version, in which several properties are called by their German names. So I assume the DasyLab *.DAT file output was originally written for a German audience, but the data made it over just fine. I suppose that could have been a special feature of their particular DasyLab, but check if you can output *.DAT files with yours. If not, please write back.
Regards,
Brad Turpin -
Loading a CSV file into APEX application
Hello,
I have a big (1 MB) CSV file that cannot be pumped in via the web interface. I have read in this forum that I need to use sqlldr utility.
Where can I specify in the .ctl file the FORMAT. I need to fill this field in the web GUI with "99.99" because without this I am getting an exception: INVALID NUMBER FORMAT.
Please help, thank you.for sql*loader demo and example scripts - http://psoug.org/reference/sqlloader.html
but you may prefer to use utl_file pl/sql supplied package for this need if you are familiar with pl/sql development - http://psoug.org/reference/utl_file.html
best regards. -
Loading multiple .csv files into a table using SSIS
Hi,
I have a requirement where I have 200+ csv files to be loaded into Netezza table using SSIS.
Issue I am facing is all columns have different number of columns, for ex, file 1 has columns A,B,C and file 2 has columns C,D,E. My target table has all columns from A to E in it.
But, when I am using for each loop container, only the file for which I have specified filepath+filename in loop variable, that is getting loaded. Rest all files, no data is getting loaded from them and package is executing successfully.
Any help is appreciated.
Regards,
VTif you want to iterate through files then all files should be in same folder and you should use file enumerator type within ForEach loop. Then inside loop you might need a script task to generate the data flow on the fly based on the avialble input columns
from the file and do the mapping in the destination. So I assume you put NULLs (or some default value) for missing columns from the file
http://blog.quasarinc.com/ssis/best-solution-to-load-dynamically-change-csv-file-in-ssis-etl-package/
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs -
Loading a new file into Photoshop from Camera Raw, it displays a grid.
Every time I open a RAW file from ACR into Photoshop, I get a grid over the screen (in Photoshop CS6). I tried resetting the saved presets by opening with Shift-Ctrl-Alt held down, but the next time I started Photoshop it happened again.
Does anyone know how to prevent this? By the way I have another copy of Photoshop at work, and it doesn't do this.
Thanks,
AndrewHope you can see that. I choose a dark image because the grid seemed clearer against it.
Andrew -
Loading data from .csv file into existing table
Hi,
I have taken a look at several threads which talk about loading data from .csv file into existing /new table. Also checked out Vikas's application regarding the same. I am trying to explain my requirement with an example.
I have a .csv file and I want the data to be loaded into an existing table. The timesheet table columns are -
timesheet_entry_id,time_worked,timesheet_date,project_key .
The csv columns are :
project,utilization,project_key,timesheet_category,employee,timesheet_date , hours_worked etc.
What I needed to know is that before the csv data is loaded into the timesheet table is there any way of validating the project key ( which is the primary key of the projects table) with the projects table . I need to perform similar validations with other columns like customer_id from customers table. Basically the loading should be done after validating if the data exists in the parent table. Has anyone done this kind of loading through the APEX utility-data load.Or is there another method of accomplishing the same.
Does Vikas's application do what the utility does ( i am assuming that the code being from 2005 the utility was not incorporated in APEX at that time). Any helpful advise is greatly appreciated.
Thanks,
AnjaliHi Anjali,
Take a look at these threads which might outline different ways to do it -
File Browse, File Upload
Loading CSV file using external table
Loading a CSV file into a table
you can create hidden items in the page to validate previous records before insert data.
Hope this helps,
M Tajuddin
http://tajuddin.whitepagesbd.com -
Issue loading CSV file into HANA
Hi,
From last couples of weeks i am trying to load my CSV file into HANA Table, but i am unable to succeed.
I am getting error "Cannot open Control file, /dropbox/P1005343/CRM_OBJ_ID.CTL". I have followed each and every step in SDN, still I could not load data into my HANA table.
FTP: /dropbox/P1005343
SQL Command:
IMPORT FROM '/dropbox/P1005343/crm_obj_id.ctl'
Error:
Could not execute 'IMPORT FROM '/dropbox/P1005343/crm_obj_id.ctl''
SAP DBTech JDBC: [2]: general error: Cannot open Control file, /dropbox/P1005343/crm_obj_id.ctl
Please help me on this
Regards,
PraneethHi All,
I have successfully loaded the file into HANA database in folder P443348 but while importing file, I am getting the following error message such as
SAP DBTECH JDBC: [2] (at 13) : general error: Cannot open Control file, "/P443348/shop_facts.ctl"
This is happening while I am executing the following import statement
IMPORT FROM '/P443348/shop_facts.ctl';
I have tried several options including changing the permissions of the folders and files to no success. As of now my folder has full access, which is 777
Any help would be greatly appreciated so that I can proceed further
Thanks
Vamsidhar -
Load CSV file into single CLOB
Hello Oracler,
is there a good way to load a csv file into PL/SQL a Clob variable ?
Iljahttp://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_lob.htm#i998978
-
Loading data from .csv file into Oracle Table
Hi,
I have a requirement where I need to populate data from .csv file into oracle table.
Is there any mechanism so that i can follow the same?
Any help will be fruitful.
Thanks and regardsYou can use Sql Loader or External tables for your requirement
Missed Karthick's post ...alredy there :)
Edited by: Rajneesh Kumar on Dec 4, 2008 10:54 AM
Maybe you are looking for
-
Why is my page count always 1 (regardless of number of pages)?
I just created a new Numbers document. It has 3 pages. In the footer I display (page number) of (page count). I would expect to see "1 of 3", "2 of 3", "3 of 3". What I get is "1 of 1", "2 of 1", "3 of 1". What do I have to do to get the page count t
-
I'm trying to use speech recognition to input text on my iMac running the latest mountain lion, 10.8.3. I have sticky keys enabled. When I try to start speaking by pressing the function key twice nothing happens. I can only get it to work if I disabl
-
How to submit a form, but not to trigger the validations
Hi! I have a form on a table and I have 2 radio with submit. The problem is that when I click this radios the page submit and trigger the validations, so I get the "Field1 must have some value" error. How can I solve this problem? Thanks! Best regard
-
Qosmio X870-13H - how to make visible recovery partition?
How to make a my hidden partition hard drive will be "visible" for system Windows 8? Two partition are hidden one on disk SSD around 260MB and another around 450MB. During restore system (press zero and start-up) got a message that computer file must
-
hi frnds, please clarify ma what is the use of source determination box in the purchase requisition page.. i need full information means what is the information it is source and from where, any records are going to be affected, and additional benifit