Loading Metadata from planning to oracle table
Hi
I am trying to load one dimension metadata from planning to oracle table.we are on 10.1.3
i selected LKM SQL to SQL to load from source to staging area and IKM SQL to SQL append to load from staging to Target.
I got the below error
0 : null : java.sql.SQLException: Driver must be specified
java.sql.SQLException: Driver must be specified
at com.sunopsis.sql.SnpsConnection.a(SnpsConnection.java)
at com.sunopsis.sql.SnpsConnection.t(SnpsConnection.java)
at com.sunopsis.sql.SnpsConnection.connect(SnpsConnection.java)
at com.sunopsis.sql.SnpsQuery.updateExecStatement(SnpsQuery.java)
at com.sunopsis.sql.SnpsQuery.executeQuery(SnpsQuery.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execCollOrders(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSqlC.treatTaskTrt(SnpSessTaskSqlC.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
at com.sunopsis.dwg.cmd.e.i(e.java)
at com.sunopsis.dwg.cmd.h.y(h.java)
at com.sunopsis.dwg.cmd.e.run(e.java)
at java.lang.Thread.run(Unknown Source)
Please suggest..
Thanks,
Hi John
Thank you for the response
i am trying to load accounts back to oracle table.
My plan is to load existing accounts in planning to a oracle table i.e PLANACNT,so when i load new accounts from oracle to planning through ODI , i can say in the source filter that load Table.column not in (select accounts from PLANACNT).
Please suggest if there is any better method for this...my plan is to load new accounts created in oracle to planning by comparing the accounts in planning.
Thanks,
Similar Messages
-
" (quotes) is column values when loading data from csv to oracle table
I am loading a data from csv file to an oracle table.
After the data is loaded , lets suppose the value in one column is X.
when i write a query to fetch data like
select * from table where col='X' then it gives no output.
On investigating it was found that the value is stored in col as "X".
This also happens when i copy paste the value from column to some text editor ....
i want to remove these double quotes , and also want to know why these are coming...
Any suggestions guys ?
Thanks
Using Oracle 10gThese quotes are part of your data file. Most CSV-parsers remove those quotes.
If you are using an external table you can remove them by something like this for your access parameters
ORGANIZATION EXTERNAL
TYPE ORACLE_LOADER
ACCESS PARAMETERS
RECORDS DELIMITED BY NEWLINE
FIELDS TERMINATED BY ','
OPTIONALLY ENCLOSED BY '"'
But if you want to remove them from your existing data use this
update your_table
set col1 = trim( '"' from col1 )
Note that in some CSV-files wich use an enclosing character the enclosing character is itself is used as an escape character to use the enclosing character inside a field.
For example a field might be "Some text with ""this"" enclosed"
To correct these fields you might use another update
update your_table
set col1 = replace( col1, '""', '"' ) -
Unable to see IKM Hyperion to Planning when loading metadata from File/Tabl
Hello,
I am unable to view the IKM SQL to Hyperion Planning Knowledge Module in the flow tab. I reverse engineered the KM and I see the KM in my Project(Have only 1 project). I am trying to load metadata from file to planning and selected staging area different from target. I was able to reverse engineer the planning cube successfully to ODI Models.
ODI Version: 11.1.1.6.3
Planning Version: 11.1.2.2
Any help will be appreciated.
-Kash932916 wrote:
Hello,
I am unable to view the IKM SQL to Hyperion Planning Knowledge Module in the flow tab. I reverse engineered the KM and I see the KM in my Project(Have only 1 project). I am trying to load metadata from file to planning and selected staging area different from target. I was able to reverse engineer the planning cube successfully to ODI Models.
What is your staging area pointing to ? Make sure it is pointing to a RDBMS schema or SUNOPSIS MEMORY
ODI Version: 11.1.1.6.3
Planning Version: 11.1.2.2
Any help will be appreciated.
-Kash -
Loading metadata from Essbase to Planning.
Hi,
I want to know what are the methods to load metadata into planning from essbase cube. I tried outline extractor to make a csv file, then I've used ODI to reverse the file and create a datasource. Then I reversed the planning application, created the interface and mapped the dimensions. I have more dimensions in planning target than the file datasource and when I execute the interface I always having some problem.
Do i need to create a sql table from the csv file and then reversed and map it to planning? Is there an easy way I can load the members without using ODI?
Thanks in advance,
-HussainHi John,
I have tried the essbase to planning series. There were no errors in the operator but I dont see any members in planning after database refresh. I checked the log file and it says:
2010-06-01 08:56:22,494 INFO [DwgCmdExecutionThread]: Oracle Data Integrator Adapter for Hyperion Planning - Release 9.3.1.1
2010-06-01 08:56:22,494 INFO [DwgCmdExecutionThread]: Connecting to planning application [PLAN1] on [bms-pc]:[11333] using username [admin].
2010-06-01 08:56:22,644 INFO [DwgCmdExecutionThread]: Successfully connected to the planning application.
2010-06-01 08:56:22,654 INFO [DwgCmdExecutionThread]: The load options for the planning load are
Dimension Name: Account Sort Parent Child : true
Load Order By Input : false
Refresh Database : false
2010-06-01 08:56:22,694 INFO [DwgCmdExecutionThread]: Begining the load process.
2010-06-01 08:56:22,704 DEBUG [DwgCmdExecutionThread]: **Number of columns in the source result set does not match the number of planning target columns.**
2010-06-01 08:56:22,714 INFO [DwgCmdExecutionThread]: Load type is [Load dimension member].
2010-06-01 08:56:22,714 INFO [DwgCmdExecutionThread]: Load process completed.
The number of columns in the source result set does not match the number of target colums. I have more columns in planning than temp table.
Thanks,
Hussain -
Loading Metadata from ODI to Hyperion Planning Custom Dimension
Customer want to load a metadata from ODI to Hyperion planning customer dimension using flat files(.txt files).
Is it possible to load the metadata into custom dimension? If this is possible, do we need any other KM for planning except RKM Hyperion Planning?
Because when i try to map the dimension from source to taget the connection is blanck. Getting "Used by target columns none".
Please refer the image
http://1.bp.blogspot.com/_Z0lKn46L41I/TJuZcsQxIjI/AAAAAAAAA90/TTv79fbQ9ks/s1600/ODIIssue.JPG
Thanks
VikramYes you can load to custom dimensions just like the other dimensions, the custom dimensions should be reversed into the model.
You need to use the IKM SQL to Hyperion Planning, make sure you set the staging area different than the target.
If you want to see how to load metadata to planning, have a read of :- http://john-goodwin.blogspot.com/2008/10/odi-series-part-5-sql-to-planning.html
Cheers
John
http://john-goodwin.blogspot.com/ -
Upload data from excel to oracle table
Hi,
if i'm user and using an application and i want to upload data from excel to oracle table on button click . Is it possible by using sql loader.
If yes then please clarify it .
is it possible from client end.
thanks
kamYes it is possible using SQL*LDR, External tables and ORCL Export Utility. Though I didn't try Export Utility to load the external files.
SQLLdr sysntax:
Create a control file.
It looks like this
Load data
Infile 'source.dat'
Into Table tablename
Fields terminated by ',' optionally enclosed by '"'
{code}
then use sqlldr command from your OS.
{code}
sqlldr userid/password@sid control = filename.ctl, data = source.dat, log = logname.log, bad = badname.log, discard = discardname.discard
{code} -
Loading data from flatfile to relational table,i am getting SQLLDR error
Hi,
While loading data from flatfile to relational table,i am getting SQLLDR error and i am unable to proceed further.
Source is a flatfile and target is a Oracle database,i used "LKM file to oracle(SQLLDR)" and "IKM sql control append"
and ran the interface.When i checked the seesion in operator window" after generating "CTL file" successfully
the session got failed at "Call sqlldr" and was not able to proceed further.
Environment details:
ODI 11g
database:Oracle 11g
Operating system:Windows server 2008
The error message it displayed in call sqlldr session file was
org.apache.bsf.BSFException: exception from Jython:
Traceback (innermost last):
File "<string>", line 31, in ?
File "C:\oracle\product\11.1.1\Oracle_ODI_1\oracledi\client\odi\bin\..\..\jdev\extensions\oracle.odi.navigator\scripting\Lib\javaos.py", line 198, in system
File "C:\oracle\product\11.1.1\Oracle_ODI_1\oracledi\client\odi\bin\..\..\jdev\extensions\oracle.odi.navigator\scripting\Lib\javaos.py", line 224, in execute
OSError: (0, 'Failed to execute command ([\'sh\', \'-c\', \'sqlldr DEVELOPER/pass_123@CPRDEV control="F:\\\\flatfile/CROSS_CURR.ctl" log="F:\\\\flatfile/CROSS_CURR.log" > "F:\\\\flatfile/CROSS_CURR.out" \']): java.io.IOException: Cannot run program "sh": CreateProcess error=2, The system cannot find the file specified')
at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:146)
at com.sunopsis.dwg.codeinterpretor.SnpScriptingInterpretor.execInBSFEngine(SnpScriptingInterpretor.java:345)
at com.sunopsis.dwg.codeinterpretor.SnpScriptingInterpretor.exec(SnpScriptingInterpretor.java:169)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.scripting(SnpSessTaskSql.java:2374)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(SnpSessTaskSql.java:1615)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(SnpSessTaskSql.java:1580)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java:2755)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2515)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:534)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:449)
at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:1954)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$2.doAction(StartSessRequestProcessor.java:322)
at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:224)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:246)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$0(StartSessRequestProcessor.java:237)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$StartSessTask.doExecute(StartSessRequestProcessor.java:794)
at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:114)
at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:82)
at java.lang.Thread.run(Thread.java:619)
could u give me a solution to sort out this error ASAP.
thanks,
keshav.This was the following code generated .
import java.lang.String
import java.lang.Runtime as Runtime
from jarray import array
import java.io.File
import os
import re
import javaos
def reportnbrows():
f = open(r"F:\flatfile/TEST.log", 'r')
try:
for line in f.readlines():
if line.find("MAXIMUM ERROR COUNT EXCEEDED")>=0 :
raise line
finally:
f.close()
ctlfile = r"""F:\flatfile/TEST.ctl"""
logfile = r"""F:\flatfile/TEST.log"""
outfile = r"""F:\flatfile/TEST.out"""
oracle_sid=''
if len('CPRDEV')>0: oracle_sid = '@'+'CPRDEV'
loadcmd = r"""sqlldr DEVELOPER/<@=snpRef.getInfo("DEST_PASS") @>%s control="%s" log="%s" > "%s" """ % (oracle_sid,ctlfile, logfile, outfile)
rc = os.system(loadcmd)
if rc <> 0 and rc <> 2:
raise "Load Error", "See %s for details" % logfile
if rc==2:
reportnbrows() -
"how to load a text file to oracle table"
hi to all
can anybody help me "how to load a text file to oracle table", this is first time i am doing, plz give me steps.
Regards
MKhaleelUsage: SQLLOAD keyword=value [,keyword=value,...]
Valid Keywords:
userid -- ORACLE username/password
control -- Control file name
log -- Log file name
bad -- Bad file name
data -- Data file name
discard -- Discard file name
discardmax -- Number of discards to allow (Default all)
skip -- Number of logical records to skip (Default 0)
load -- Number of logical records to load (Default all)
errors -- Number of errors to allow (Default 50)
rows -- Number of rows in conventional path bind array or between direct path data saves (Default: Conventional path 64, Direct path all)
bindsize -- Size of conventional path bind array in bytes (Default 256000)
silent -- Suppress messages during run (header, feedback, errors, discards, partitions)
direct -- use direct path (Default FALSE)
parfile -- parameter file: name of file that contains parameter specifications
parallel -- do parallel load (Default FALSE)
file -- File to allocate extents from
skip_unusable_indexes -- disallow/allow unusable indexes or index partitions (Default FALSE)
skip_index_maintenance -- do not maintain indexes, mark affected indexes as unusable (Default FALSE)
commit_discontinued -- commit loaded rows when load is discontinued (Default FALSE)
readsize -- Size of Read buffer (Default 1048576)
external_table -- use external table for load; NOT_USED, GENERATE_ONLY, EXECUTE
(Default NOT_USED)
columnarrayrows -- Number of rows for direct path column array (Default 5000)
streamsize -- Size of direct path stream buffer in bytes (Default 256000)
multithreading -- use multithreading in direct path
resumable -- enable or disable resumable for current session (Default FALSE)
resumable_name -- text string to help identify resumable statement
resumable_timeout -- wait time (in seconds) for RESUMABLE (Default 7200)
PLEASE NOTE: Command-line parameters may be specified either by position or by keywords. An example of the former case is 'sqlldr scott/tiger foo'; an example of the latter is 'sqlldr control=foo userid=scott/tiger'. One may specify parameters by position before but not after parameters specified by keywords. For example, 'sqlldr scott/tiger control=foo logfile=log' is allowed, but 'sqlldr scott/tiger control=foo log' is not, even though the position of the parameter 'log' is correct.
SQLLDR USERID=GROWSTAR/[email protected] CONTROL=D:\PFS2004.CTL LOG=D:\PFS2004.LOG BAD=D:\PFS2004.BAD DATA=D:\PFS2004.CSV
SQLLDR USERID=GROWSTAR/[email protected] CONTROL=D:\CLAB2004.CTL LOG=D:\CLAB2004.LOG BAD=D:\CLAB2004.BAD DATA=D:\CLAB2004.CSV
SQLLDR USERID=GROWSTAR/[email protected] CONTROL=D:\GROW\DEACTIVATESTAFF\DEACTIVATESTAFF.CTL LOG=D:\GROW\DEACTIVATESTAFF\DEACTIVATESTAFF.LOG BAD=D:\GROW\DEACTIVATESTAFF\DEACTIVATESTAFF.BAD DATA=D:\GROW\DEACTIVATESTAFF\DEACTIVATESTAFF.CSV -
Loading data from flat file to table
Hi,
I am using OWB 10g R2. I have to develop a map which loads data from flat file to table.
1. I have created a .csv file.
2. Import that into OWB by Module Wizard.
3. I have created one external table, which use the .csv file.
After that what I have to do for successfully loading the data into table.
Regards,
SanjoyHi Sanjoy
You can building a mapping to move the data from somewhere to somewhere else. More specifically;
1. create a mapping
2. add external table to mapping
3. add table to mapping for target (it can be unbound)
4. map from external table ingroup to target table ingroup (all columns will be mapped)
5. if target table was unbound right click on target table and click create and bind
This is a basic mapping you can have for this scenario. There is a post here which does something like this, but it will create a File to Table mapping which will use SQLLoader.
http://blogs.oracle.com/warehousebuilder/2009/01/expert_useful_scripts_from_simple_primitives.html
Cheers
David -
Loading error from BI to Oracle
we are trying to connect to ABAP connector through OPEN HUB to Oracle.
a. a function module is called when we run the extractor to load data from BI to Oracle.
b. When the extractor is started it calls a function module.
c. When the function module is executed it opens a dialogue box asking if the data is deleted from the table.
d. This dialogue box is stopping us from doing a load.
I need the solution to suppress the dialogue box.
Thanks & Regards
Ramakanth.Hi
Thanks for your reply. Following are my settings in my interface.
Source : MS SQL Server 2K. It contains a table called sampleTable with two fields empId,empName .empId is the primary key. Under the Flow tab, I have selected LKM SQL to SQL
Target: Oracle 10g . It contains a table OracleTable with two fields empId,empName. empId is the primary key. In the Flow tab, I have selected IKM Oracle Incremental Update.
When I execute the interface it said Session started. When I open Operator, I found the following error under Sessions folder.
933 : 42000 : java.sql.SQLException: ORA-00933: SQL command not properly ended
java.sql.SQLException: ORA-00933: SQL command not properly ended
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:316)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:282)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:639)
Where Can I see the code generated from the interface. Is it a PLSQL code?
Pls help me where I am doing wrong. -
ADF Mobile - Unable to load metadat from pagdef
Dear All,
I am getting the following error when i deploy to an android emulator:
Unable to load metadata from pagedef
Can aybody suggest what should i do for the same ?
I have uninstalled app multiple times, ccleaned all and redeloyed. Still getting the issue.
Regards,
DeepakThis is my DataBindings.cpx :
<?xml version="1.0" encoding="UTF-8" ?>
<Application xmlns="http://xmlns.oracle.com/adfm/application" version="11.1.2.62.94" id="DataBindings"
SeparateXMLFiles="false" Package="mobile" ClientType="Generic">
<pageMap>
<page path="/fsSearch.amx" usageId="mobile_fsSearchPageDef"/>
</pageMap>
<pageDefinitionUsages>
<page id="mobile_fsSearchPageDef" path="mobile.pageDefs.fsSearchPageDef"/>
</pageDefinitionUsages>
<dataControlUsages>
<dc id="FlightScheduleList" path="mobile.FlightScheduleList"/>
</dataControlUsages>
</Application>
Do you see any issue in this ?
Please help.
Regards,
Deepak -
Alias when loading metadata into Planning
Hi all,
We are trying to load metadata into Planning 11.1.2 using the outline load utility. We have the dimension name, parent, data storage, and alias.
We get this error when doing the dry run(with /N):
Unrecognized Column header value: Alias
Does this mean we cannot load aliases using the outline load utility? Unfortunately, all the examples in the hp-admin document only talks about loading data. Where in the 'cmd' do we specify that we are loading metadata(and not data itself)?
Thanks,
SujaniIf you are loading to the default alias table the header should be Alias: Default
Cheers
John
http://john-goodwin.blogspot.com/ -
Automatically trigger the event to load data from Planning cube to Standard Cube
Hello,
We have a below set up in our system..
1. A Planning BEx query using which user makes certain entries and writes back data to the planning cube.
2. An actual reporting cube which gets data from the planning cube above.
Now, what we want to do is to automate the data load from Planning cube to Reporting cube.
This involves 2 things..
1. Change the setting " Change real time load behaviour " of the planing cube to Planning.
2. Trigger the DTP which loads data from Planning cube to reporting cube.
We want to automate the above two steps...
I have tried few things to achieve the same..
1. Created an event in SM64,
2. In the Planning cube "Manage" Screen, clicked on "Subsequent Processing" and provided the event details. ( Not sure if its the correct place to provide the event detail ).
3. Wrote a ABAP program which changes the setting of the planning cube ( " Change real time load behaviour " to Loading )
4. Created a process chain, where we have used the event as a start variant, used the ABAP program as a next step, DTP run as the last step..
This i hoped, would trigger the event as soon as a new request comes and sits in planning cube, which in turn would trigger the process chain which would load the data from Planning cube to reporting cube..
This is not working. I dont think the event is triggering, and even if does i am not sure whether it will start the process chain automatically. Any ideas please ?hi,
try to do the transformation directly in the input cube by using CR of type exit, more details :
http://help.sap.com/saphelp_nw70ehp2/helpdata/en/43/1c3d0f31b70701e10000000a422035/content.htm
hope it helps. -
Insert XML content from BLS to oracle table
Hi,
Is there any way to send XML content from BLS to Oracle table. I tried with FixedQueryWithOuput. It works, but it has limitation, it cannot take more than 4000 character , even though the param is configured as clob in oracle database side?Sajjad
This is not issue from xMII-side itself, instead this is an Oracle issue itself. This has some limitation in manipulating data in Database.
Managing CLOBs and BLOBs in JDBC is not very simple when compared to managing small amount of data. The way the CLOB and the BLOB objects are created and managed is different than a VARCHAR(String) column. In fact, Oracle extension classes are provided to support these types objects in JDBC like oracle.sql.CLOB, oracle.sql.BLOB etc.
The new enhancements in Oracle JDBC 10g promises to simplify the insertion and retrieval techniques for the CLOBs using the standard APIs. This document enumerates how easily the CLOB data can be handled in JDBC, by harnessing the new features of the Oracle JDBC 10g driver
Anyway, to more get info on Oracle problems u may read <a href="http://www.oracle.com/technology/sample_code/tech/java/codesnippet/jdbc/clob10g/handlingclobsinoraclejdbc10g.html">this</a>
Regards
Som -
How load File as Blob in Oracle Table?
Hi, I am beginner in ODI.
How load File as BLOB in Oracle Table?Ah so nice, a FAQ, by someone who can't use online resources!
Any explanation why Google is broken for you?
Here is the code I use to load a jpg.
procedure upd_portrait(p_person_id in number, p_file_name in varchar2) is
l_blob blob;
l_bfile bfile;
begin
update person
set portrait = empty_blob()
where id = p_person_id
returning portrait into l_blob;
l_bfile := bfilename('MY_IMAGES', p_file_name);
dbms_lob.fileopen(l_bfile);
dbms_lob.loadfromfile(l_blob, l_bfile, dbms_lob.getlength(l_bfile));
dbms_lob.fileclose(l_bfile);
end;
Sybrand Bakker
Senior Oracle DBA
Maybe you are looking for
-
Hi, we defined over time as an activity.please advise any std report exists to displany total hrs for individual activity per order wise?
-
Why can't I log into iMessage on iOS 6.1?
I still have iOS 6.1 on my iPod 4 and I've been using iMessage for approximately a year now without any problems, so this is my first (and hopefully only). Whenever I go on the "iMessage" app, it sends me to the beginning iMessage page (the one where
-
Problem opening PDF attachments
When I try to open some PDF attachments from Mail, I get a blank screen. If I try to open the same attachment in a program like Good Reader, I get a message that the file is not valid. I can however open the file from Microsoft Outlook without any
-
How to transfer XML-Data into a WebDynPro-Application?
An external partner has a calling interface that sends a HTTP-Redirect to a specific application-url and transfers all the data in one POST-Parameter. The value of this POST-Paramater (CALLINTERFACE) consists the XML-Data. <form id='InterfaceData3' m
-
Where do project files live on hard drive?
I need to take one of my projects from my home computer, and copy it to iDisk so I can load it up on iMovie at work, to make edits. I've found the project file under Movies/iMovie Projects. The file itself is only about 6mbs which seems quite small.