How to load data into 3 different target tables usin BODS ?
Hello Friends,
I have 5 different source tables with same field definitions, Now I want to load all the records into three/four different target tables (Flat file, SQL Server, XML, and Oracle ) Could anyone please tell me how to do this task ?
Thanks in Advance,
Bheem.
Hello Bheem,
You can create separated dataflow for each target as suggested by Bala, this is a good choice when evaluating you scenario.
If you put all targets in the same dataflow you may experience problems if one of them is down (as you have different servers as targets).
BODS will send the data simultaneously to all targets and when one fails, the load will be break and you may have the tables not sinc anyways (if you plan to use a single dataflow to avoid this situation, it won't do it).
So the best option is to create separated dataflow and put inside another one so you can run a singe dataflow that will call each one of the target and if onw fails the other will complete accordingly.
Then if you put them inside a error trapping, you may even make your dataflow to retry the load prior abend the job.
Think about cascading your dataflows and let the leaf level simple as it can be so it will be easier to schedule and debug your process.
Pay attention to datatypes and other conversions you might need when working with more than one source/target.
Regards,
Similar Messages
-
How to load data into user tables using DIAPIs?
Hi,
I have created an user table using UserTablesMD object.
But I don't have know how to load data into this user table. I guess I have to use UserTable object for that. But I still don't know how to put some data in particular column.
Can somebody please help me with this?
I would appreciate if somebody can share their code in this regard.
Thank you,
SudhaYou can try this code:
Dim lRetCode As Long
Dim userTable As SAPbobsCOM.UserTable
userTable = pCompany.UserTables.Item("My_Table")
'First row in the @My_Table table
userTable.Code = "A1"
userTable.Name = "A.1"
userTable.UserFields.Fields.Item("U_1stF").Value = "First row value"
userTable.Add()
'Second row in the @My_Table table
userTable.Code = "A2"
userTable.Name = "A.2"
userTable.UserFields.Fields.Item("U_1stF").Value = "Second row value"
userTable.Add()
This way I have added 2 lines in my table.
Hope it helps
Trinidad. -
How to insert data into the mysql table by giving as a text file
Hi,
Any one know's how to insert data into the mysql table by giving as a text file as the input in JSP.Please respond ASAP.
Thanks:)At least you can try StringTokenizer to parse your text files. Or download a text JDBC driver to parse your files, for instance, HXTT Text(www.hxtt.net) or StelsCSV(www.csv-jdbc.com).
-
How to load data into html:select using Struts ?
How to load data into <html:select> using Struts ?
I can not load an array or collection (static or dynamic data) into drop down list control by <html:select /> Struts.
please use:
<html:select >
<html:options />
</html:select >
Please help me. please detail it. thanks a lot.
Message was edited by:
tranminhmanIn order to load a collection or array of data you can use <html:select> with <html: options collection="" name=""/>
here collection attribute refers to the Arraylist or Array of data and name is the name of the Form bean.
Hope this helps...
Chaitanya V -
How to insert data from different internal table into a data base table
hi all,
I want to insert a particular field in an internal table to a field in a data base table.Note that the fields in the internal table and database table are not of the same name since i need to insert data from different internal tables.can some one tell me how to do this?
in short i want to do something like the foll:
INSERT INTO ZMIS_CODES-CODE VALUE '1'.
*INSERT INTO ZMIS_CODES-COL1 VALUE DATA_MTD-AUFNR .(zmis_codes is the db table and data_mtd is the int.table)REPORT ZINSERT.
tables kna1.
data: itab LIKE KNA1.
data lv_kUNAG LIKE KNA1-KUNNR.
lv_kuNAG = '0000010223'.
ITAB-kuNNR = lv_kuNAG.
ITAB-name1 = 'XYZ'.
INSERT INTO KNA1 VALUES ITAB.
IF SY-SUBRC = 0.
WRITE:/ 'SUCCESS'.
ELSE.
WRITE:/ 'FAILED'.
ENDIF.
Here lv_kunag is ref to kna1 kunnr passed in different name
In internal table .
Try and let me know if this logic dint work. -
How to load data into table Using Script Task
We have a directory/folder where we have a file. We need to insert the File Created Date , File Name , Extension into the database table of Sql server by using Script Task.
So could you please suggest , how to frame the connection string , fetch the file details and insert the data into the database table using Script Task of SSIS 2008You can achieve it as follows using standard script task
1. Add a ForEachLoop container to point to your directory to iterate though the files. Add a variable of type string inside loop to get file name of each file it iterates. Choose option Filename and extension. Add a variable to just store extension part
(FileExtension), set EValuateAsExpression true for it and give expression as below
SUBSTRING(@[User::FileName],FINDSTRING(@[User::FileName],".",1)+1,LEN(@[User::FileName]))
2. Add a script task inside loop and pass filename variable as a read only variable to it. Crete a new variable to get creationdate and pass it as ReadWrite. Inside write code as below
Public Sub Main()
' Add your code here
Dim f As New System.IO.FileInfo(Dts.Variables("FileName").Value.ToString())
Dts.Variables("FileCreatedDate").Value = f.CreationTime
Dts.TaskResult = ScriptResults.Success
End Sub
3. Add a Exec SQL Task after Script task inside loop and give a query like below
INSERT INTO TableName (FileName,CreatedDate,Extension)
VALUES(?,?,?)
and in parameter tab map the parameter placeholders 0,1 and 2 to @[User::FileName],@[User::FileCreatedDate] & @[User::FileExtension] variables
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs -
How to load data into an ods from multiple info sources.
hi all...
i am given a task to load data into an ods from 3 infosources ...
can someone plz give me the flow .
thank u in advance..Hi Hara Pradhan,
You have to create 3 update rules by giving the 3 different infosources while creating each update rule. And u have to create the infopackages under each infosource. with this u can load the data to the same data target from multiple info sources.
Hope it helps!
Assign points if it helps! -
How to load data into MVDEMO Sample App Schema
Hello Everyone,
I am doing a POC on Oracle Mapviewer and trying to build some reports in OBIEE using MApviewer.
For this POC, I am using Oracle's MVDEMO Sample Data(11g). I think this Sample data covers few countries like USA.
I need to do POC for Brazil so I downloaded the Brazil Map data from following site as Shapefiles
http://gadm.org/country
in this Brazil data, I got files in 4 extensions .csv, .dbf, .shp and .shx
I need to know how can I load these files into my Oracle 11g DB? Should I load data in same mvdemo schema, if Yes then which table?
Any help will be appreciated a lot.
Thanks,
AmitAmit,
The easiest way to load shapefile data into your Oracle Database is via the MapBuilder tool. It will upload the data into a new table and include the metadata from the DBF file as attribute columns in your table along with the geometry from the .SHP file.
Download MapBuilder from here http://www.oracle.com/technetwork/middleware/mapviewer/downloads/index-100641.html
Once you launch the jar file there is a built in Help that covers how to work with Shapefiles.
-Wayne
Beyond Just Data: Oracle Business Analytics and More -
Sql* Loader syntax to load data into a partitioned table
Hi All,
I was trying to load data from a csv file to a partitioned table.
The table name is countries_info
columns :
country_code ,
country_name,
country_language
The column country_code is list partitioned with partition p1 for values 'EN','DE','IN' etc
and partition p2 for 'KR','AR','IT' etc.
I tried to load data into this table, but I was getting some error Message (not mapping to partitioned key).
I tried syntax
load data
infile 'countries.csv'
append
into table countries_info
partition(p1) ,
partition(p2)
fields terminated by ','
country_code ,
country_name,
country_language
What is the correct syntax- I searched a lot but have not been able to find out.Peeush_Rediff wrote:
Hi All,
I tried to load data into this table, but I was getting some error Message (not mapping to partitioned key).It's not some error message, it's relevant information for resolving problems you encounter while using Oracle.
In your case, although you didn't specifiy the exact ORA you recived, it sounds like [ORA-14400|http://forums.oracle.com/forums/search.jspa?threadID=&q=ORA-14400&objID=f61&dateRange=all&userID=&numResults=15&rankBy=10001]
What is the correct syntax- I searched a lot but have not been able to find out.It's not about correct syntax , it's about understanding message that was trying to tell you that something went wrong.
That message was (i guess) ORA-14400.
So, refering to that ORA message , you will need to add new partition ,
where the data from your csv file that currently don't map to any of the specified partition would fit ,
or add partition that would be able to accept data range in which value/s for which you received that ORA message could fit into. -
How to load data into read only cells in HFM?
Can any one help me in loading data into Read only cells in HFM?. I am trying to lad data into a read only cell using data load file and i m getting the below error.
NB: I need the "UseLineItem Details" to be enabled.I shud be able to submit the data thoudh the "UseLineItem Details" property of the account member is enabled
Data load File
!Column_Order = Scenario, Year, Period, View, Entity, Value, Account, ICP, Custom1, Custom2, Custom3, Custom4
!DATA
Actual; 2013; January; Periodic; NZ; NZD; 141100; [ICP None]; [None]; [None]; [None]; [None]; 10000
Error Received
Line: 4, Error: Cell for Period January is not an input cell.
Actual; 2013; January; Periodic; NZ; NZD; 141100; [ICP None]; [None]; [None]; [None]; [None]; 10000
>>>>>>
Can any one please help me ....Hi,
Example: Assume that you have Travel Account#141100
Now you have below information
Travel Expenses $30,000
Food Expenses $50,000
Hotel expenses$20,000
To enter this details normally you will create additional 3 accounts(1.TravelExpenses 2.FoodExpenses 3.HotelExpenses) under Travel Account#141100
Using lineItem Details No need to create additional accounts. you can show the detailed information in a single cell(Single Account).
To do this
1.Create a New datagrid in workspace
2.Right-click and select Cell Line Item Detail on Account#141100 (which is enabled line item details)
3.Click on add button then provide the description and Enter the amount then press enter.
1)Travel Expenses $30,000
2)Food Expenses $50,000
3)Hotel expenses$20,000
4.Total $100,000 will be shown in Account#141100
(If you want to see the detailed information just Right-click and select Cell Line Item Detail on Account#141100)
To get clear understanding please go through the HFM Admin guide.
Regards
Sarilla -
How do I write into multiple target tables in DIFFERENT schemas?
It is easy to have a mapping that writes into 2 or more tables it's results. I now need that all these tables are in different schemas!
When I create a 2nd warehouse target with a 2nd location and configure this location to be a different schema on the database, validation tells me, that everything is okay.
When I generate it, there are several warnings, when I execute it, it doesn't work :( It complains that it cannot find <something>.
I'm sorry, I don't have the error-message at hand :(
I've you got an idea, how I could have different schemas for my tables, please let me know!Art,
Could it be that the target schema into which you install the runtime components does not have privileges on the tables in the other schemas? You have to have at least the right privileges (INSERT, UPDATE, DELETE) on the target tables in the other schemas in order for this to work. However, then there should be no reason, assuming your tables are in different modules related to different locations.
Thanks,
Mark. -
How to load data to a "clustered table" quickly? direct insert not work
We have a single hash clustered table whose size is 45G, and we used the command:
insert /*+ append */ into t_hashed as select * from source.
the source is about 30G, it takes a very long time(several days, and not yet completed).
I dumped the redo log, and find there are lots of redo info about the insert. I have thought it should create much redo as it is "direct path insert", but from the dump info I could say the direct path insert didn't take effect.Your assessment is correct. INSERT /*+ APPEND */ does not work with a hash clustered table.
If you think about how hash clusters work, and how direct load insert works, it should be clear to you why a direct load insert via the append hint can never work.
How hash clusters work (well, only the part that's relevant to the current discussion):
Initially, at creation time, the storage for the entire cluster is preallocated, based on the various cluster parameters you chose. Think about that. All the storage is allocated to the cluster.
How direct load works (well, only the part that's relevant to the current discussion):
Space already allocated to and used by the segment is ignored. Space is taken from free, unformatted blocks from above the high water mark.
So, hopefully it's clear how these features are incompatible.
Bottom line:
It doesn't work, there's no way around it, there's nothing you can do about it....
-Mark -
How to load data from different database
Hi,
My problem is how to load Foxpro 2.6/clipper data into oracle 8 with all its structure and data with SQL loader or other utility if any.
And also how can i integrate existing forpro system into Oracle. i.e client will work on Foxpro application and we will only take its output(data files) on daily basis and convert it into Oracle 8.
Please find any solution.
Regards
nullYou can also try to make up an ODBC connection to Foxpro and convert the data from foxpro to oracle using the COPY command (see docs on PL/SQL & OCA). I remember that foxpro/clipper are running on MS-DOS, so I don't know if you can establish an ODBC connection to oracle which can be used from the foxpro/clipper application to use it as a frontend for an oracle database.
Regards, Kai
null -
Planning Manager is not Loading data into Forecast Interface table
Hi
I have created a forecast set with name 'ABCD-IA' and I am inserting a row into the mrp_ofrefcast_interface table.The rows are not processed by the Planing Manager and it is pendign with the status of 2.The planning manager is up and running.
Here is my insert statement.
insert into mrp.mrp_forecast_interface
(inventory_item_id,forecast_designator,organization_id,forecast_date,quantity,process_status,transaction_id,source_code,workday_control,last_update_date,last_updated_by,creation_date,created_by,confidence_percentage,bucket_type ,attribute1)
values (51046,'ABCD-IA',84,sysdate,100,2,null,to_char(sysdate,'RRMMDD'),3,sysdate,-1,sysdate,-1,100,1,'INSS');
Thanks in advance.
LinaI would suggest you to go through this link on how to write pl/sql block.
http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14261/toc.htm
http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14261/sqloperations.htm#sthref1273
For your question it could be re-written as follows :
create or replace package body asg_change
is
procedure p1...
is
begin
insert into org_change
sl_no, status, org_name, effective_start_date, person_id, assignment_number
SELECT xxkdd_asg_seq.nextval, 'NP' status, hr_general.decode_organization (paaf.organization_id) organization_name, paaf.effective_start_date, paaf.person_id, paaf.assignment_number
FROM per_all_assignments_f paaf
WHERE EXISTS
SELECT 1 FROM per_all_assignments_f paafi
WHERE NVL (paafi.organization_id, 0) != NVL (paaf.organization_id, 0)
AND (paaf.effective_start_date- 1) BETWEEN paafi.effective_start_date AND paafi.effective_end_date
AND paafi.assignment_id = paaf.assignment_id
end p1
end asg_change;Also check this post.
http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:47458244605081
Main snippets from the above post
Tom-- I subscribe to your SQL mantra for data (and truly, is there anything else? :))
which is:
1. Do it in a single SQL statement if at all possible.
2. If you cannot, then do it in PL/SQL (as little PL/SQL as possible!).
3. If you cannot do it in PL/SQL, try a Java Stored Procedure
(extremely rarely necessary with Oracle9i and above.)
4. If you cannot do it in Java, do it in a C external procedure.
(when raw speed, or 3rd party API written in C is needed.)
5. If you cannot do it in a C external routine, you might want to seriously think
about why it is you need to do it...Hope this helps.
Regards
Raj -
How to load data into Planning/Essbase from multiple data column
Dear All,
I have a interface file which contains multiple data column as follows.
Year,Department,Account,Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec
FY10,Department1,Account1,1,2,3,4,5,6,7,8,9,10,11,12
FY10,Department2,Account1,1,2,3,4,5,6,7,8,9,10,11,12
FY10,Department3,Account1,1,2,3,4,5,6,7,8,9,10,11,12
I created a data rule to load these interface file.
I want to use ODI to upload this interface. I try to specify the rule name in ODI and run the interface.
But, it came out following errors.
2010-02-22 11:40:25,609 DEBUG [DwgCmdExecutionThread]: Error occured in sending record chunk...Cannot end dataload. Analytic Server Error(1003014): Unknown Member [FY09,032003,910201,99,0,0,0,0,0,0,0,0,0,0,0,0] in Data Load, [1] Records Completed
Any idea to fix the column, I sure the member name is correct as I can load data from data load rule correctly.
ThanksDear John,
I updated the data load rule delimter to "," and found different error message as follows.
'A910201.99','HSP_InputValue','HKDepart','No_WT','032003','NO_Lease','FY09','Actual','Final','Local','0','0','0','0','0','0','0','0','0','0','0','0','Cannot end dataload. Analytic Server Error(1003014): Unknown Member [0] in Data Load, [1] Records Completed'
It seems that the data load rule can recognize the some member except the figures of Jan to Dec..
thanks for your help
Maybe you are looking for
-
Choosing any of several dozen bookmarks, Firefox will show a screen reporting Error 404 and display only part of the complete URL (whatever follows the slant mark beyond the domain name). When going to a new site, such as provided by a Google search,
-
Starting a meeting using Microsoft Office Live Meeting 2007
I have downloaded the Microsoft Office Live Meeting 2007 software, but I can't figure out how to use it to share my screen in an on-line meeting. Does anyone know how do that?
-
Dear Fellow, can u help me, i just buy some album from itunes 3 song of that album has "error downloading" statement, somehow i can't buy again the same song with this itunes. can i just delete that queqe song? thx
-
I've been using time machine since January 2011 and have complete backups of things like photos and documents going back to that date. The problem I noticed is that when looking at my email backups, time machine only shows that I have backups going b
-
Hi , I have (another) serious problem with Portlet and Sun Portal 7.2 I'm able to retrieve user info such as name, email , password in my portlet. The question is: the userPassword attribute is crypted password like: {SSHA}49yIzLiU+r1gxXbz5HeyQ7KFZzW