Add slow Inserts using IKM SQL for SQL
Hi all.I'm a big, big trouble.
I have an interface that gets the source and insert into the (obvious) target... but the only way to insert into the target using SQL SQL Add.
Unfortunately, the inserts are about 10 lines/sec very, very, very slow.
There are ways to make the Agent more quickly than that?
Kind regards.
Luiz Araujo (aka Buchu_VP)
Hello Luiz,
As we talked by phone, in your architecture, the use of an agent will make the process very slow.
Using a dblink between your scene and target or a single comand "insert into select" in an ODI procedure.
Cezar Santos
http://odiexperts.com
Tags: Business Intelligence
Similar Questions
-
OutOfMemoryError: GC overhead limit at execution a loading interface directly sql for sql with no work table.
I get the error message: error: exception OutOfMemoryError: higher GC limit exceeded when executing an interface making a direct using IKM SQL for SQL command load Append, source a 150millions lines table.
I have increased the ODI_MAX_HEAP and the interface run longer and failed. I'm already at: ODI_MAX_HEAP = 12560 m I tested with ODI_MAX_HEAP = 52560 m and still error.
I am following up to the memory of the server and I still have available memory...
Apart from the problem of memory I know that this type of load should be possible because the step of data load on LKM SQL to Oracle is able to load the work table $ CAN. Ideally, I want to emulate this behavior by using SQL for SQL IKM.
1 - What is the right path to follow here? (change the parameters of memory or modify the IKM?)
2 - ideas on how to solve the OutOfMemoryError: GC overhead limit exceeded error? (GC means Garbage Collector)
Execution of the IKM interface in the Simulator generates this code:
Load (Source) command:
Select
source - tbl.col1 COL1,
source - tbl.col2 COL2,
source-tbl. "' COL3 ' COL3
of public.source - tbl AS source-tbl
where
(1 = 1)
Default command (Destination):
insert into the source-tbl
(
col1,
col2,
COL3
)
values
(
: COL1,.
: COL2.
: COL3
)
My experience is very limited with ODI so I don't know about changing the code to the KMs
Thanks in advance.
Find a work around the error of generals limit exceeded GC:
-in my case I was running without the IDE so that changes made to the odiparams.sh were not useful.
-This means that I need to change the JVM settings to:
$ODI_HOME/oracledi/client/odi/bin/odi.conf
AddVMOption - XX: MaxPermSize = NNNNM
$$ODI_HOME/oracledi/client/ide/bin/ide.conf
AddVMOption - XmxNNNNM
AddVMOption - XmsNNNNM
Where NNNN is a higher value.
-
Error using IKM SQL for Hyperion Essbase (data)
Get (last Intnermost): file ' < string >, line 75, in?
Error 'com.hyperion.odi.common.ODIConstants' attribute class has no attribute 'PRE_LOAD_MAXL_SCRIPT '.
I'm not usiing a pre load a MaxL Script. I even put the 'ABORT_ON_PRE_MAXL_ERROR' to no.
Any help would be appreciated.Hello
You may be using the old java (jar) files in your directory of driver, in the most recent class ODIConstants has been updated to include "PRE_LOAD_MAXL_SCRIPT".
I would try to install a patch later or a later version of ODI.
See you soon
John
http://John-Goodwin.blogspot.com/ -
Definition of IKM SQL permission to add files
Hi all
I am inserting data into a table to deposit using IKM SQL to add files. Is it possible to control the permission chmod the created file
Thanks in advanceHello
create an OS command and run the command chmod by using this aclling celebrate your Interface.
Or where applicable (in certain cases) customize your KM
Create a KM duplicate and rename it (according to your choice)
Add a step before adding / after apeending (according to the guidelines of the business rule)
write your chmod step in that.Please let me know if you need more information on this
You can leave a mail at [email protected] (now I m not having the time to go through the forum)
Kind regards
Pascale of M -
IKM SQL for Hyperion Essbase (data) error
Hello
I've created an interface between Oracle DB and Essbase 11.1.2.
I used Oracle DB as transit zone. I used IKM SQL for Hyperion Essbase (data) as a selector IKM.
But I got an error as below in step ("Load Data on Essbase"); Can you help me? Thank you...
org.apache.bsf.BSFException: exception of Jython:
Traceback (most recent call changed):
File "< string >", line 21, < module >
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:457)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:405)
at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:889)
at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:476)
at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:204)
at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:540)
at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:202)
at oracle.jdbc.driver.T4CStatement.executeForDescribe(T4CStatement.java:919)
at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1261)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1419)
at oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:1668)
at oracle.jdbc.driver.OracleStatementWrapper.executeQuery(OracleStatementWrapper.java:432)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
java.sql.SQLSyntaxErrorException: java.sql.SQLSyntaxErrorException: ORA-00936: lack of expression
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:2457)
at oracle.odi.runtime.agent.execution.cmd.ScriptingExecutor.execute(ScriptingExecutor.java:47)
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:537)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:453)
at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:1740)
to 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)
to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$ 0 (StartSessRequestProcessor.java:263)
to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$ StartSessTask.doExecute (StartSessRequestProcessor.java:822)
at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:123)
to oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$ 2.run(DefaultAgentTaskExecutor.java:82)
at java.lang.Thread.run(Thread.java:662)Hello
finished column mapping, or be owned by mapping active of course active for each column.
-
IKM SQL file Append-controlled fails when it is used with the Scheduler
Hello
We have an interface in our package where we use IKM SQL file Append-controlled. It is supposed to do an insert/truncate a local file destination. This step fails with the error 7000 run with the Scheduler. Looks like some sort of permission error.
When the package is run manually (in the same location as the Planner), he runs this interface successfully.
Any suggestions?
Wwhen the IKM research, it does not say that the "target file must be physically accessible by sunopsis agent." The file is local to the server running the Scheduler; by operating manually also, it is run from the server.
This is the error to "truncate": step
7000: null: java.sql.SQLException: file not found: \ < filepath > / < Filename > .tsv
java.sql.SQLException: file not found: \ < filepath > / < Filename > .tsv
Any suggestions?
Thank you
Elkaïm
Published by: 784749 on February 1st, 2011 05:47HI -.
Agent ODI connection users that you have provided to the service Windows ODI. If you have not provided one that he would use the native ID (one that was created when installing the OS I think). If you have not provided any newspaper on before its best to provide to a user that has enough previlage.-app
-
IKM Oracle incremental vs. IKM SQL command Append
We will charge a lot of files at the same TIME (asynchronous mode) on a daily basis. We develop interfaces to load these files in the Oracle database. Data can be sometimes important. What IKM (IKM Oracle incremental update vs. IKM SQL command Append) is best to use in interfaces? If we use IKM SQL append, it a problem if load us several files at the same time (asynchronous mode) this charge table IKM target mode replace. I don't know what is this mode of replace? It truncates the temporary tables for each load?
I would be grateful if someone clarifies and suggest what is the best way to use one of these IKMs in interfaces design.
Thank you
RPHi, PR,
Good to know that your issue has been clarified.
Please close the message if you feel.
Thank you
Guru -
Hello
I went through this link:
Ask about the creation and filling I$ table on different condition
But I read in the case of IKM SQL FOR SQL add no I$ table is created.
If this is true please tell me why not I$ is created for this IKM?
So please tell me how the Frother is checked it to Check Knowledge Module (CKM)?
Thank you
Sébastien
PS:
I'm a freshness in tech ODI. So I can fool me please don't bother me1. you need to create a mapping. Next, you need to see the code generated at each stage of all.
Try to analyze it. Then you will have a clear idea.If see vedio carefully as given below, you can find staging area is on the source. So its directly select all the columns in the source tab and the insertion of these value in the tab target. No need to use I$ table. Yet once there is no option of flow_control. You can find the static_control.
http://S3.amazonaws.com/ora/ODI-Simple_SELECT_and_INSERT-interface.swfTo learn more about flow_control and static_control please go through
http://odiexperts.com/flow-control-and-static-control/Thank you.
-
IKM SQL for Hyperion Essbase (data)
I am trying to load data into essbase through the ODI interface however module "IKM SQL for Hyperion Essbase (data)".
Whenever data gets overwritten, how I accumulate this data during loading. As it is quite difficult for me to summarize the data, then load.
Kind regards
Amine ravi
Use a rule to load and set to add to the existing values in the State of charge, adjustable load rule name in the options of the IKM.
See you soon
John
-
RESTful service cannot insert data using PL/SQL.
Hi all
Spin: stand-alone 2.01 AL on OEL 4.8 in box a. VM
Database Oracle 10.2.0.4 with Apex 4.2.0.00.27 on OEL4.8 in the VM B box.
Measure of oracle.example.hr performed without problem Restful services.
Cannot insert data using AL 2.0.1 but works on 1.1.4 AL.
who uses the following table (under scheme: scott):
and procedure (scott diagram) below:create table json_demo ( title varchar2(20), description varchar2(1000) ); grant all on json_demo to apex_public_user;
and execution in sqldeveloper 3.2.20.09 when it connects directly to box B as scott:CREATE OR REPLACE PROCEDURE post( p_url IN VARCHAR2, p_message IN VARCHAR2, p_response OUT VARCHAR2) IS l_end_loop BOOLEAN := false; l_http_req utl_http.req; l_http_resp utl_http.resp; l_buffer CLOB; l_data VARCHAR2(20000); C_USER_AGENT CONSTANT VARCHAR2(4000) := 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)'; BEGIN -- source: http://awads.net/wp/2005/11/30/http-post-from-inside-oracle/ -- Ask UTL_HTTP not to raise an exception for 4xx and 5xx status codes, -- rather than just returning the text of the error page. utl_http.set_response_error_check(false); -- Begin the post request l_http_req := utl_http.begin_request (p_url, 'POST', utl_http.HTTP_VERSION_1_1); -- Set the HTTP request headers utl_http.set_header(l_http_req, 'User-Agent', C_USER_AGENT); utl_http.set_header(l_http_req, 'content-type', 'application/json;charset=UTF-8'); utl_http.set_header(l_http_req, 'content-length', LENGTH(p_message)); -- Write the data to the body of the HTTP request utl_http.write_text(l_http_req, p_message); -- Process the request and get the response. l_http_resp := utl_http.get_response (l_http_req); dbms_output.put_line ('status code: ' || l_http_resp.status_code); dbms_output.put_line ('reason phrase: ' || l_http_resp.reason_phrase); LOOP EXIT WHEN l_end_loop; BEGIN utl_http.read_line(l_http_resp, l_buffer, true); IF(l_buffer IS NOT NULL AND (LENGTH(l_buffer)>0)) THEN l_data := l_data||l_buffer; END IF; EXCEPTION WHEN utl_http.end_of_body THEN l_end_loop := true; END; END LOOP; dbms_output.put_line(l_data); p_response:= l_data; -- Look for client-side error and report it. IF (l_http_resp.status_code >= 400) AND (l_http_resp.status_code <= 499) THEN dbms_output.put_line('Check the URL.'); utl_http.end_response(l_http_resp); -- Look for server-side error and report it. elsif (l_http_resp.status_code >= 500) AND (l_http_resp.status_code <= 599) THEN dbms_output.put_line('Check if the Web site is up.'); utl_http.end_response(l_http_resp); RETURN; END IF; utl_http.end_response (l_http_resp); EXCEPTION WHEN OTHERS THEN dbms_output.put_line (sqlerrm); raise; END;
leading to:SET serveroutput ON DECLARE l_url VARCHAR2(200) :='http://MY_IP:8585/apex/demo'; l_json VARCHAR2(20000) := '{"title":"thetitle","description":"thedescription"}'; l_response VARCHAR2(30000); BEGIN post( p_url => l_url, p_message =>l_json, p_response => l_response); END;
Installation using 2.0.1anonymous block completed status code: 200 reason phrase: OK with data inserted.
and execution in sqldeveloper 3.2.20.09 when it connects directly to box B as scott:Workspace : wsdemo RESTful Service Module: demo/ URI Template: test Method: POST Source Type: PL/SQL
leading to:SET serveroutput ON DECLARE l_url VARCHAR2(200) :='http://MY_IP:8585//apex/wsdemo/demo/test'; l_json VARCHAR2(20000) := '{"title":"thetitle","description":"thedescription"}'; l_response VARCHAR2(30000); BEGIN post( p_url => l_url, p_message =>l_json, p_response => l_response); END;
Please notify.status code: 500 reason phrase: Internal Server Error Listener's log: Request Path passes syntax validation Mapping request to database pool: PoolMap [_poolName=apex, _regex=null, _workspaceIdentifier=WSDEMO, _failed=false, _lastUpdate=1364313600000, _template=/wsdemo/, _type=BASE_PATH] Applied database connection info Attempting to process with PL/SQL Gateway Not processed as PL/SQL Gateway request Attempting to process as a RESTful Service demo/test matches: demo/test score: 0 Choosing: oracle.dbtools.rt.resource.templates.jdbc.JDBCResourceTemplateDispatcher as current candidate with score: Score [handle=JDBCURITemplate [scopeId=null, templateId=2648625079503782|2797815111031405, uriTemplate=demo/test], score=0, scope=SecurityConfig [constraint=none, realm=NONE, logonConfig=LogonConfig [logonForm=null, logonFailed=null]], originsAllowed=[], corsEnabled=true] Determining if request can be dispatched as a Tenanted RESTful Service Request path has one path segment, continuing processing Tenant Principal already established, cannot dispatch Chose oracle.dbtools.rt.resource.templates.jdbc.JDBCResourceTemplateDispatcher as the final candidate with score: Score [handle=JDBCURITemplate [scopeId=null, templateId=2648625079503782|2797815111031405, uriTemplate=demo/test], score=0, scope=SecurityConfig [constraint=none, realm=NONE, logonConfig=LogonConfig [logonForm=null, logonFailed=null]], originsAllowed=[], corsEnabled=true] for: POST demo/test demo/test is a public resource Using generator: oracle.dbtools.rt.plsql.AnonymousBlockGenerator Performing JDBC request as: SCOTT Mar 28, 2013 1:29:28 PM oracle.dbtools.common.jdbc.JDBCCallImpl execute INFO: Error occurred during execution of: [CALL, begin insert into scott.json_demo values(/*in:title*/?,/*in:description*/?); end;, [title, in, class oracle.dbtools.common.stmt.UnknownParameterType], [description, in, class oracle.dbtools.common.stmt.UnknownParameterType]]with values: [thetitle, thedescription] Mar 28, 2013 1:29:28 PM oracle.dbtools.common.jdbc.JDBCCallImpl execute INFO: ORA-06550: line 1, column 6: PLS-00103: Encountered the symbol "" when expecting one of the following: begin case declare exit for goto if loop mod null pragma raise return select update while with <an identifier> <a double-quoted delimited-identifier> <a bind variable> << close current delete fetch lock insert open rollback savepoint set sql execute commit forall merge pipe The symbol "" was ignored. ORA-06550: line 2, column 74: PLS-00103: Encountered the symbol "" when expecting one of the following: begin case declare end exception exit for goto if loop mod null pragma raise return select update while with <an identifier> <a double-quoted delimited-id java.sql.SQLException: ORA-06550: line 1, column 6: PLS-00103: Encountered the symbol "" when expecting one of the following: begin case declare exit for goto if loop mod null pragma raise return select update while with <an identifier> <a double-quoted delimited-identifier> <a bind variable> << close current delete fetch lock insert open rollback savepoint set sql execute commit forall merge pipe The symbol "" was ignored. ORA-06550: line 2, column 74: PLS-00103: Encountered the symbol "" when expecting one of the following: begin case declare end exception exit for goto if loop mod null pragma raise return select update while with <an identifier> <a double-quoted delimited-id at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:447) at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:396) at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:879) at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:505) at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:223) at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:531) at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:205) at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:1043) at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1336) at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3612) at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3713) at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:4755) at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1378) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at oracle.ucp.jdbc.proxy.StatementProxyFactory.invoke(StatementProxyFactory.java:242) at oracle.ucp.jdbc.proxy.PreparedStatementProxyFactory.invoke(PreparedStatementProxyFactory.java:124) at oracle.ucp.jdbc.proxy.CallableStatementProxyFactory.invoke(CallableStatementProxyFactory.java:101) at $Proxy46.execute(Unknown Source) at oracle.dbtools.common.jdbc.JDBCCallImpl.execute(JDBCCallImpl.java:44) at oracle.dbtools.rt.plsql.AnonymousBlockGenerator.generate(AnonymousBlockGenerator.java:176) at oracle.dbtools.rt.resource.templates.v2.ResourceTemplatesDispatcher$HttpResourceGenerator.response(ResourceTemplatesDispatcher.java:309) at oracle.dbtools.rt.web.RequestDispatchers.dispatch(RequestDispatchers.java:88) at oracle.dbtools.rt.web.HttpEndpointBase.restfulServices(HttpEndpointBase.java:412) at oracle.dbtools.rt.web.HttpEndpointBase.service(HttpEndpointBase.java:162) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at com.sun.grizzly.http.servlet.ServletAdapter$FilterChainImpl.doFilter(ServletAdapter.java:1059) at com.sun.grizzly.http.servlet.ServletAdapter$FilterChainImpl.invokeFilterChain(ServletAdapter.java:999) at com.sun.grizzly.http.servlet.ServletAdapter.doService(ServletAdapter.java:434) at oracle.dbtools.standalone.SecureServletAdapter.doService(SecureServletAdapter.java:65) at com.sun.grizzly.http.servlet.ServletAdapter.service(ServletAdapter.java:379) at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179) at com.sun.grizzly.tcp.http11.GrizzlyAdapterChain.service(GrizzlyAdapterChain.java:196) at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179) at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:849) at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:746) at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1045) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:228) at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59) at com.sun.grizzly.ContextTask.run(ContextTask.java:71) at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532) at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513) at java.lang.Thread.run(Thread.java:662) Error during evaluation of resource template: ORA-06550: line 1, column 6: PLS-00103: Encountered the symbol "" when expecting one of the following: begin case declare exit for goto if loop mod null pragma raise return select update while with <an identifier> <a double-quoted delimited-identifier> <a bind variable> << close current delete fetch lock insert open rollback savepoint set sql execute commit forall merge pipe The symbol "" was ignored. ORA-06550: line 2, column 74: PLS-00103: Encountered the symbol "" when expecting one of the following: begin case declare end exception exit for goto if loop mod null pragma raise return select update while with <an identifier> <a double-quoted delimited-id
Concerning
ZackZack.L wrote:
Hi Andy,.Sorry, I forgot to post the Source that is used by the AL1.1.4 and the AL2.0.1.
Source
begin insert into scott.json_demo values(:title,:description); end;
It is a failure during insertion?
Yes, he failed in the insert using AL2.0.1.If the above statement produces the following error message:
The symbol "" was ignored. ORA-06550: line 2, column 74: PLS-00103: Encountered the symbol "" when expecting one of the following: begin case declare end exception exit for goto if loop mod null pragma raise return select update while with
That gives me to think that a character is not printable (notice how there is anything between the quotation marks - "") worked his way in your PL/SQL Manager. Note how the error is reported to correspond to a column 74 on line 2, line 2 of the block above has 58 characters, so a pure assumption somehow, there is extra space on line 2, which confuses the PL/SQL compiler, I suggest retype PL/SQL Manager manually and see if that solves the problem.
-
Hi all
I created a tabale to insert a number
create the table loc_number (c1 number);
now, I want to insert 10 lines in this table using pl sql.
How can I do so using pl sql?Hello
Yes it is possible.
Why use loops here?
(I guess, you need to practice this goal)
begin for i in 1..10 loop insert into loc_number values (i); end loop; commit; end;
-
IKM SQL for Hyperion Essbase (metadata) - problem when you dial the name of the Member
Hello world
I need to load the metadata to Essbase to a relational database.
Essbase: 9.3, Oracle 9i, ODI 10.1.3.5.0
I have a dimensional table contains the data in the Scenario dimension. The table has 3 columns: code, alias, consolidation.
Example of 2 lines:
Effective law-
BDG budget-
I created a rule file load_scn.rul to update the scenario dimension in my essbase cube and at the launch of the console of administration services it does not work. Each Member has his alias and it is sign of such consolidation as specified in the table.
In ODI
I created an essbase data store, a data store for my table and an interface. The interface uses the knowledge "IKM SQL for Hyperion Essbase (metadata)" module and the load_scn.rul of State of charge.
When I run the interface, it will end successfully, but when I check the Essbase outline, the two members were loaded with the name of name of Member composed of all 3 columns in the table dimensional as a single string line!
I have a member named ' law, real, + "and another called ' bdg, budget,-'."
Members have no alias and peacebuilding is the default ('+') and not '-' as shown in the dimensional table.
Has anyone of you had this problem? If so, how to solve it?
Any help will be very appreciated!
DanielaSounds like in the rule under load in the IKM options you have to have the separator rules comma value and data > defined in the tab, replace it with commas in the rule of data source properties.
See you soon
John
http://John-Goodwin.blogspot.com/ -
The IKM selector selection error: IKM SQL for Hyperion Planning
Hello
On the tab 'Flow' of my model, I click on my head to target. Then on the drop down 'Selector IKM', select 'IKM SQL for Hyperion Planning. It gives the error:
Internal error: ODI-15526: IKM IKM SQL for Hyperion Planning not accepted for stage director and target technology
Any ideas? I am really new green on ODI and I am at the end to try to run my dimension build. Any help is appreciated.You must select a transit area which is different to the planning, because this isn't an intermediate technology supported. What you need to do is to go to the tab definition of your interface tick the 'target different transit zone"and then select a relational technology (that is, one that takes supported SQL) in the drop-down list below. If you have no relational db on stage your data and then select ENGINE SUNOPSIS MEMORY which is the memory in DB that is provided as part of the ODI.
-
Audit for each record in a table using PL/SQL
Hello gurus,
I would need your help to find the best approach to address to the below analysis using PL/SQL.
I have a table that contains two columns
Username and months
I want to know the users who made orders each month during the first half of the 2012.That is the user ordered on Jan 2012, Feb2012... and June 2012.
The table is huge and has more than 1 million records. How do I approach this in PL/SQL.
--
JoeYou can use the cursor if you wish...
Try thisdeclare
cursor c1 is
SELECT user name, counting the months (separate months)
From your_table
Months WHERE the ("Jan 2012', ' February 2012', ' March 2012',..., 'June 2012'" ' ")
GROUP BY userid
HAVING COUNT (distinct months) = 6;Start
I'm looping c1insert into insert_table (userid) values (i.userid);
end loop;
end;
/ -
Displays the dates of diff using PL/SQL expression for the item "display only"?
Hello
I have a single display element -: P2_FROM_Date. If his game, Fri, sat or Sun I want to put the date of the last Monday date. If its Mon, Mar or sea, it must be this date of Monday.
Ex: Today is Friday and last Monday was 18.
So yesterday, today, tomorrow and Sunday, the date appear as June 18, 2012.
Since Monday to Wednesday, the date has to be the next that is Monday, June 24, 2012
I tried under 'Source' from the element using PL/SQL expression and the body of the PL/SQL function. Does not
Can anyone help?
Thanks and greetings
Umer1. you must set 'used source' "Always".
2 If you use a PLSQL function as source type body should set a 'RETURN' statement like this:declare lv_date number; begin select to_char(sysdate,'D') into lv_date from dual; if lv_date=2 then return to_char(sysdate-1); end if; end;
Published by: mario1977 on June 27, 2012 11:44
Maybe you are looking for
-
In order to download Itunes I need application Apple support. Where can I download it?
I tried to download Itunes and get an error message saying: I need application Apple support. Where I can down load this?
-
Firewall Windows unit recorded version Okay for my Windows XP 3
Hi there, I have two firewall applications on my system Windows XP-3 now, and firewall Windows Unit informed me that my Xp has several horses Trojans and other problems to be fixed.and they advised me to purchase the registered version.May be OK for
-
Hi, I am very new to BB development, my goal is: to make an application and download it from the BlackBerry App World. But by reading the steps how to download, I saw this: In the Version number field, type the number of the version. Note: Make sure
-
VerticalFieldManagers acting as a framework while scrolling
Hello I have several VerticalFieldManagers on my screen, and when you put them one under the other, they are too big for the screen. ________________________ | vfm1 | |--------------------------------------- | |
-
Programs Office Compatibility applications Applications miomore has stopped working
The MIOMORE DESKTOP Manager Mark MIO GPS program does not work under Windows 7. The installation takes place properly, and launch appears the message "MIOMORE has stopped working". Uninstall, new installation, nothing works! Launch in Windows XP SP3