Use Control File to load data in BW7.0
Hi All,
I have a requirement to load data in BW using control file. The development is done in in BW 7.0. In BW 3.5 there is an option of FILE IS ( Control File or Data File ). Please suggest how to simulate the same in BW 7.0
Regards,
Vikram
Hi Vikram,
Please have the contents of a sample control file. The file should be saved as ".TXT".
FILENAME = C:\test.csv
FILETYPE = CSV
LOCATION = C
FS = ,
ESCAPE = "
DECIMALPOINT = ,
1000SEPARATOR = .
RECCOUNT = 8
RECSIZE = 53
PACKETSIZE = 1000
Filename should contain the path of the CSV file
Filetype is CSV
location is 'C' for Workstation and 'A' for Application Server
FS contains field seperator ',' in our case
RECCOUNT contain the Rec. Count
RECSIZE is the Max DB size of the a single row ( this can be evaluated by the Total DB Size of a single Line of the Target BW Structure as well ).
The content of my sample test.csv are
1234567890,10,9999999999,,,15,01/01/2005
1234567891,20,9999999999,,,30,01/01/2005
1234567892,30,9999999999,,,0,01/01/2005
1234567893,10,9999999999,,,5,01/01/2005
1234567894,20,9999999999,,,6,01/01/2005
1234567895,40,9999999999,,,10,01/01/2005
1234567896,10,9999999999,,,5,02/01/2005
1234567897,20,9999999999,,,6,02/01/2005
Please let me know if there are any further concerns.
Regards,
Shrey
Edited by: Shrey SAP BI on Mar 8, 2010 4:13 PM
Similar Messages
-
Error while using Rule file in loading data into Essbase through ODI
Hi Experts,
I am facing problem while loading data into Essbase. I am able to load data into Essbase successfully. But when i used Rule fule to add values to existing values am getting error.
test is my Rule file.
com.hyperion.odi.essbase.ODIEssbaseException: com.hyperion.odi.essbase.ODIEssbaseException: Cannot put olap file object. Essbase Error(1053025): Object [test] already exists and is not locked by user [admin@Native Directory]
at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:146)
at com.sunopsis.dwg.codeinterpretor.SnpScriptingInterpretor.execInBSFEngine(SnpScriptingInterpretor.java:346)
at com.sunopsis.dwg.codeinterpretor.SnpScriptingInterpretor.exec(SnpScriptingInterpretor.java:170)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.scripting(SnpSessTaskSql.java:2458)
at oracle.odi.runtime.agent.execution.cmd.ScriptingExecutor.execute(ScriptingExecutor.java:48)
at oracle.odi.runtime.agent.execution.cmd.ScriptingExecutor.execute(ScriptingExecutor.java:1)
at oracle.odi.runtime.agent.execution.TaskExecutionHandler.handleTask(TaskExecutionHandler.java:50)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.processTask(SnpSessTaskSql.java:2906)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2609)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:540)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:453)
at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:1740)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$2.doAction(StartSessRequestProcessor.java:338)
at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:214)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:272)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$0(StartSessRequestProcessor.java:263)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$StartSessTask.doExecute(StartSessRequestProcessor.java:822)
at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:123)
at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:83)
at java.lang.Thread.run(Thread.java:662)
from com.hyperion.odi.common import ODIConstants
from com.hyperion.odi.connection import HypAppConnectionFactory
from java.lang import Class
from java.lang import Boolean
from java.sql import *
from java.util import HashMap
# Get the select statement on the staging area:
sql= """select C1_HSP_RATES "HSP_Rates",C2_ACCOUNT "Account",C3_PERIOD "Period",C4_YEAR "Year",C5_SCENARIO "Scenario",C6_VERSION "Version",C7_CURRENCY "Currency",C8_ENTITY "Entity",C9_VERTICAL "Vertical",C10_HORIZONTAL "Horizontal",C11_SALES_HIERARICHY "Sales Hierarchy",C12_DATA "Data" from PLANAPP."C$_0HexaApp_PLData" where (1=1) """
srcCx = odiRef.getJDBCConnection("SRC")
stmt = srcCx.createStatement()
srcFetchSize=30
#stmt.setFetchSize(srcFetchSize)
stmt.setFetchSize(1)
print "executing query"
rs = stmt.executeQuery(sql)
print "done executing query"
#load the data
print "loading data"
stats = pWriter.loadData(rs)
print "done loading data"
#close the database result set, connection
rs.close()
stmt.close()
Please help me on this...
Thanks & Regards,
ChinnuHi Priya,
Thanks for giving reply. I already checked that no lock are available for rule file. I don't know what's the problem. It is working fine without the Rule file, but throwing error only when using rule file.
Please help on this.
Thanks,
Chinnu -
How to use local variables in control files for loading data
i want to count the number of records which have odd number like...
Data in data.txt
1 a
2 b
3 c
So my count = 2, i will write this to another file.
Plz help me how to achieve thisIf you want to extract some rows from a file and write them to another one, why do you need Oracle? What is your requirement?
Or are you asking out of curiosity how can this be done in Oracle?
You can create an external table for this input file, select the rows you want from it and write them to another file using utl_file.
External tables: http://download.oracle.com/docs/cd/B19306_01/server.102/b14215/et_concepts.htm#SUTIL011
UTL_FILE: http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/u_file.htm#sthref14095 -
SAP BW 7.0 - How to use control file?
Hello experts,
In my current project, I need to use a control file to load some flat files into BW.
In version 3.5 we had a option in the infopackage where we could select if it was a csv or a control file.
But in 7.0 version this option is not available anymore.
I found this threat: Use Control File to load data in BW7.0
But a .txt control file didn't work. Can somebody help me?
Thanks!!!WS adapter can be used as Direct connection or Integrated Server Communication. Basically this adapter will be used to make communication between two SAP System's Webservice runtime. WS adapter supports Webservice reliable messaging , SAML and more security features. Using Direct connection you can communicate two SAP systems. In this case, you dont need any ESR objects and you just need to configure ID objects only.
Have seen this [link|http://help.sap.com/saphelp_nwpi711/helpdata/en/48/ce28613a8e5430e10000000a42189b/content.htm]
Hope that helps -
How to load data using Control File in BW 7
Hi All,
I have a requirement to load data in BW using control file. The development is done in in BW 7.0. In BW 3.5 in infopackage, there is an option of FILE IS ( Control File or Data File ). Please suggest how to simulate the same in BW 7.0
Regards,
VikramAny suggestions?
-
Can i use one interface to load data into 2 different tables
Hi Folks,
Can i use one interface to load data into 2 different tables(same schema or different schemas) from one source table with same structure ?
Please give me advice
Thanks
Raj
Edited by: user11410176 on Oct 21, 2009 9:55 AMHi Lucky,
Thanks for your reply,
What iam trying is ...Iam trying to load the data from legacy tables(3) into oracle staging tables.But i need to load the same source data into two staging tables(these staging tables are in two different schemas)
can i load this source data into two staging tables by using single standard interface(some business logic is there)
If i can then give me some suggestion how to do that
Thanks in advance
Raj -
How to delete a single data from table using control file
I want delete a single row data from table using sql loder control file
Edited by: 977940 on Dec 19, 2012 9:00 PM977940 wrote:
I want delete a single row data from table using sql loder control file
Edited by: 977940 on Dec 19, 2012 9:00 PMWhy?
And how do you imagine this happening with sqlloader?
The entire purpose of sqlloader is to load data (hence, the name sql*loader*) into a table from an external source. If you want to delete rows from a table, you use the sql DELETE statement.
What is the business problem you are trying to solve? -
Data not viewable in table using Control file CharacterSet AL32UTF8
i have a flat file which contains Chinese characters and English Characters
I have to create a control file, to insert the data in this flat file to the Table
The characterset i am using in my control file is AL32UTF8
When i use this characterset the data is getting loaded into the table,but i am not able to view the Chinese characters.
i am able to see some Upside down question mark symbol
Please help me of how to view the chinese characters into the table
Is that any other characterset i have to set in Control fileNLS_LANG is an environment variable. I'm assuming you're on Windows, so it's probably something like
Control Panel | System | Advanced | Environment Variables
Given that you're using Toad, though, there may be someplace there where you set the character set. There is a discussion on Eddie Awad's blog on how various tools can be made to display Unicode data
http://awads.net/wp/2006/07/06/sql-developer-and-utf8/
Some of the comments discuss Toad, though that's not a tool I'm familiar with.
If you happen to be able to use iSQL*Plus, since that's browser based, it supports unicode natively. That's often the easiest solution.
Justin -
How to pass parameters to the Control file while loading the data from flat file to staging table
Thanks in advance
Hi ,
LOADDATA statement is required at the beginning of the control file.
INFILE: INFILE keyword is used to specify location of the datafile or datafiles.
INFILE* specifies that the data is found in the control file and not in an external file. INFILE ‘$FILE’, can be used to send the filepath and filename as a parameter when registered as a concurrent program.
INFILE ‘/home/vision/kap/import2.csv’ specifies the filepath and the filename.
Hope this will help you...... -
Javax.mail.internet.ParseException while busrting report using control file
Hi everyone...
I am trying to run a concurrent program that will burst emails using a control file.
In the data definition i want to use few parameters whose values will be passed from concurrent program.In the data definition i am calling an after report trigger function which will fire the seeded email bursting program.
My data definition file sample:
?xml version="1.0" encoding="UTF-8" ?>
<dataTemplate name="dataTemplateName" description="Template description" defaultPackage="BIREPORTBURSTINGAK_PKG" version="1.0">
<parameters>
<parameter name="P_NAME" dataType="varchar"/>
</parameters>
<dataQuery>
<sqlStatement name="Q1">
<![CDATA[
select
emp_Id "EmployeeId"
,emp_Name "EmployeeName"
,emp_Dept "Department"
,emp_Org "Organization"
,emp_Email "Email"
,emp_salary "Salary"
--,emp_Phone "Phone"
from reportSample_AK
where emp_name=:P_NAME
]]>
</sqlStatement>
</dataQuery>
<dataTrigger name="afterReportTrigger" source="BIREPORTBURSTINGAK_PKG.afterReportTrigger(:P_NAME)" />
<dataStructure>
<group name="G_EMPLOYEE" source="Q1">
<element name = "EMPID" value="EmployeeId"/>
<element name = "ENAME" value="EmployeeName"/>
<element name = "DEPT" value="Department"/>
<element name = "ORG" value="Organization"/>
<element name = "EMAIL" value="Email"/>
<element name = "SAL" value="Salary"/>
--<element name = "PHONE" value="Phone"/>
</group>
</dataStructure>
</dataTemplate>
my control file:
<xapi:requestset xmlns:xapi="http://xmlns.oracle.com/oxp/xapi" type="bursting">
<xapi:request select="/DATATEMPLATENAME/LIST_G_EMPLOYEE/G_EMPLOYEE">
<xapi:delivery>
<xapi:email id="123" server="agni.bangalore.bedford.local" port="25" from="[email protected]" reply-to="[email protected]">
<xapi:message id="123" to="${EMAIL}" attachment="true" subject=" Dear: ${ENAME}">
Please review the attachment .
Regards,Anupama karote
</xapi:message>
</xapi:email>
</xapi:delivery>
<xapi:document output-type="pdf " delivery="123">
<xapi:template type="rtf" location="/usr/tmp/TESTMAIL_AK.rtf" filter=".//LIST_G_EMPLOYEE">
</xapi:template>
</xapi:document>
</xapi:request>
</xapi:requestset>
my package deatils:
create or replace package BIREPORTBURSTINGAK_PKG
As
P_NAME varchar2(16);
Function Afterreporttrigger(P_NAME varchar2) Return Boolean;
end biReportBurstingAK_pkg;
create or replace package body BIREPORTBURSTINGAK_PKG AS
Function Afterreporttrigger(P_NAME varchar2) Return Boolean
is
v_request_id NUMBER;
BEGIN
v_request_id := fnd_request.submit_request('XDO'
,'XDOBURSTREP'
,NULL
,NULL
,FALSE
,'N'
,TO_CHAR(fnd_global.conc_request_id)
,'Yes'
return true;
End Afterreporttrigger;
end biReportBurstingAK_pkg;
i have created data definition and template and attched it to the concurrent program via bi publisher.
While running the main concurrent program i am getting the following error:
create or replace package BIREPORTBURSTINGAK_PKG
As
P_NAME varchar2(16);
Function Afterreporttrigger(P_NAME varchar2) Return Boolean;
end biReportBurstingAK_pkg;
create or replace package body BIREPORTBURSTINGAK_PKG AS
Function Afterreporttrigger(P_NAME varchar2) Return Boolean
is
v_request_id NUMBER;
BEGIN
v_request_id := fnd_request.submit_request('XDO'
,'XDOBURSTREP'
,NULL
,NULL
,FALSE
,'N'
,TO_CHAR(fnd_global.conc_request_id)
,'Yes'
return true;
End Afterreporttrigger;
end biReportBurstingAK_pkg;
Any help is greatly appreciated.
Regards,Am also facing the same issue. Did anyone find a resolution for this problem?
Regards
Anoop -
RECREATE DATABASE Using CONTROL File After SUSPEND Database
Hello All,
Does someone can tell me if he does achieve recreating a database using "Backup Control File" after putting database in "suspend" mode?
The procedure looks like this :
1 - Alter DATABASE Suspend
2 - A Snapshot of the filesystem where the oracle datafile are located
3 - Copy of those files to another file systeme
4 - Startup setting a new database name
Does someone as do it successfully ?
Thanks for your answerCarlos,
I tried to do it without putting the tablespaces in backup mode and it didn't work for me. At that time adding the backup mode wasn't a big deal for me, so I didn't investigate the problem thoroughly.
Logically thinking you sould be able to do:
1. suspend database
the SCNs recored in datafiles headers could be incosistent at this point
2. make a snapshot
3. mount the backup database
4. run recover until cancel using backup controlfile - I don't think you can avoid this step in case if you have inconsistent SCNs in the datafiles headers - you'll need to synchronize them
5. open resetlogs.
the suspend database should eliminate the possibility of inconsistent data within a block during the backup.
Just out of curiosity - why don't you want to put the tablespace in the backup mode?
Mike -
How to create parameter and control file like filename + date
Hello there
I am trying to create parameter and control file with following command
in SQLPLUS
create pfile='/u03/oradata/WEBDB/backup/initWEBDB.ora' from spfile;
In RMAN
copy current controlfile to '/u03/oradata/WEBDB/backup/cf_longterm.cpy';
how can I put date at the end of filename like
initWEBDB8jan06.ora and cf_longterm8jan06.cpy
Thanks in advance
LionelASM is reliable but a smart DBA is very careful. If ASM is doing mirroring this is like RAID doing mirroring. What happens if you accidentally delete one copy ... the other one disappears instantly. Not a good idea.
With respect to redo logs you need a minimum of three groups, two members, and one thread per instance. So a 2 node cluster should, at a minimum have 12 physical files.
Not mirroring the redo logs, assuming multiple members, is not as critical. -
Using XML File as a Data Server
OK - here's my scenario:
- Have an XML file that I am holding parameters (i.e log file folder) in
- I have set the XML file as a data server (which test connects OK) and created physical and logical schemas in Topology Manager
- In Designer, have created a data model for this file
What I am trying to do is populate/refresh a global variable with a value from the XML file; however, when I make a change to the value in the XML file, the value does not get passed into the variable.
In the global variable, it is set to refresh from the xml data source and in a package I am using a variable step set to refresh but still the data does not update with the current values in the file.
Couple of other things - if I go to the data model and view the data, it sees the value that is in the xml file but the variable is not getting the same value - it seems to be using some kind of cached value. Also, if I close any open ODI apps (Designer, Operator, etc.) and re-open, the values (sometimes) seem to reflect what is in the file.
Crux of the post - am I missing something so obvious that I cannot see it or has anyone else experienced this kind of issue.
Thanks,
GeeOK - I got this working but in order to do this I followed some info from another post and changed the structure of the XML.
Previously, it was structured as:
<params>
<param>
<name>Test1</name>
<value>Some Value</value>
</param>
<param>
<name>Test2</name>
<value>Some Value2</value>
</param>
</params>
Now I have changed it to:
<params>
<param name="Test1" value="Some Value" />
<param name="Test2" value="Some Value2" />
</params>
I also added the dod=true value into the JDCB url.
Now, one of these circumstances fixed my issue (of which I am very glad) but I don't know which one :-) .... and I currently don't have the time to find out.
I may investigate this further in the future (and post accordingly).
Thanks,
G -
PDF Encryption using CONTROL File in EBIZ R12 & Decrypting the PDF
Hi All,
We are using BI Publisher BURSTING with R12 ebiz.
We have a requirement to encrypt the file while generating to the filesystem.Then when viewing the File from OAF they went to decrypt before showing to the user.
As per the Documentation , there are some attributes like pdf-security and encryption level .
a) Can we set these attributes in control file while using with R12 ? Is there any documentation available for the same ?
b) Once we encrypt the file , Can we decrypt the file also , any documentation available for the same ??
Regards,
Vamsee.I can't recommend a solution for that. Tell your management team that this is unnecessary. The file system should be secure, if it's not someone on your unix admin team is in big trouble......
I mean based on that logic all output files should be secured. By the way OAF is secure too so this really unnecessary as well. If the files need to be secured by a particular user, encryption is still a bad idea. You should just generate a relevant report for the user. Thats how we do security in the apps my friend. -
Using Import Man to load Data into Multi Value Fileds in a Qualified Table
Hi there,
When using the Import Manager, i can not use the "append" option to load data into my multi value field which is contained within my qualified table.
Manually it works fine on Data manager, so the field has been set up correctly. Only problem is appending the data during Import Manager Load.
Any reason why I do not have this option available during Field mapping in Import Manager. The selection options are shown but in gray.
Would appreciate any sugestions.
Chris HuggettThanks Sowseel
Its a good document but doesn't address my problem, maybe My problem isn't clear.
The structure(part of) that I have currently is as follows.
Main Table - Material
QFTable- MNF PN
LUField - MNF Name(Qualifier Single Value)
LUField - BU ID (Non Qualifier Multi Value)
TField - P/N- (Non Qualifier)
I know how to load data to the main and qualified tables, but what I can not do, using Import Manger, is updating the "LUField - BU ID (Non Qualifier Multi Value)" using the append functionality.
Thanks
Chris Huggett
Maybe you are looking for
-
Searching for differences between oracle 8i and 9i
hello can somebody help me please. i am searching for the difference between oracle 8i and 9i, and specially the differences in the DDL between 8i and 9i. may someone can help me! thanks Message was edited by: Da Rookee
-
ITunes "losing" music--only finds it if I double-click on it
Recently I copied my iTunes music library on to my Time Capsule using the instructions here (http://support.apple.com/kb/HT1449) because I'm running out of space on my internal hard drive. (I haven't deleted the original files yet, since, as you'll s
-
Hi all, I was wondering if any of you have run into this problem before. I am using java on an as400 system and there is a space in the file name. When I got to read/write from this file it comes up with a java.io error and says the file doesn't exis
-
How to verify Recovery is working?
I put the date in but never saw any kind of confirmation, how do I know if its alive?
-
If the CD/DVD player is not found in either the BIOS or Device manager is the problem in the motherboard? if it is besides getting an external CD/DVD player, is there any other solutions? Thanks