Question related to  performing  R computation in  database

I am trying an example something similar to the one mention in the following document
http://docs.oracle.com/cd/E11882_01/doc.112/e36761/using.htm#CEGJECHG
However, for me its always failing... Just wanted to check with if you were able to execute a embedded R computation e.g doEval which involved pulling a db table into a data frame ... I tried the following
ore.create(iris,  table = "IRISEMBED")
head(IRISEMBED)   //works fine
+//following command errors out+
newmod <- ore.doEval(
+function() {+
library(ORE)
ore.sync(table=c("IRISEMBED"))     //also tried  ore.sync()
dat <- ore.pull(IRISEMBED)
newmod  <-  lm(Sepal.Length ~ Sepal.Width Petal.Length, dat)+
newmod
}, ore.connect=TRUE);
Error in .oci.GetQuery(conn, statement, data = data, prefetch = prefetch,  :
ORA-20000: RQuery error
Error in ore.pull(IRISEMBED) :
error in evaluating the argument 'x' in selecting a method for function 'ore.pull': Error: object 'IRISEMBED' not found
ORA-06512: at "RQSYS.RQEVALIMPL", line 104
ORA-06512: at "RQSYS.RQEVALIMPL", line 101
However , if try to execute the above steps one by one directly from R shell, it works fine... I am facing this issue only when try to pull a table as part of doEval function. Also, I get the same error from SQL also when I try to execute any R function which involves pulling a table into a data frame ... Any idea about this issue ?

Thanks a lot ! It worked.
It will be great if the documentation example can also be updated with it

Similar Messages

  • Question related to project performance management

    Hi,
    We have implemented peoject management and project accounting module with Grants module for one of the semi public sector client. Now we are planning to enable project performance repporting.
    I assume below things
    1. If Grant is implemented, Project budgeting doesn't work
    And
    2. project performance reporting based on project accounting,project budgeting and project management modules.
    If anyone of you have done similar requirement , Please let us know the approach your approach.
    Thanks in advance
    Praveen Javvaji

    Duplicate post -- question related to project performance management

  • Question related to project performance reporting

    Hi,
    We have implemented peoject management and project accounting module with Grants module for one of the semi public sector client. Now we are planning to enable project performance repporting.
    I assume below things
    1. If Grant is implemented, Project budgeting doesn't work
    And
    2. project performance reporting based on project accounting,project budgeting and project management modules.
    If anyone of you have done similar requirement , Please let us know the approach your approach.
    Thanks in advance
    Praveen Javvaji

    Duplicate post -- question related to project performance management

  • Performance with MySQL and Database connectivity toolbox

    Hi!
    I'm having quite some problems with the performance of MySQL and Database connectivity toolbox. However, I'm very happy with the ease of using database connectivity toolbox. The background is:
    I have 61 variables (ints and floats) which I would like to save in the MySQL-database. This is no problem, however, the loop time increases from 8ms to 50ms when using the database. I have concluded that it has to do with the DB Tools Insert Data.vi and I think that I have some kind of performance issue with this VI. The CPU never reach more the 15% of its maximum performance. I use a default setup and connect through ODBC.
    My questions are:
    1. I would like to save 61 variables each 8-10ms, is this impossible using this solution?
    2. Is there any way of increasing the performance of the DB Tools Insert Data.vi or use any other VI?
    3. Is there any way of adjusting the MySQL setup to achieve better performance?
    Thank you very much for your time.
    Regards,
    Mattias

    First of all, thank you very much for your time. All of you have been really good support to me.
    >> Is your database on a different computer?  Does your loop execute 61 times? 
    Database is on the same computer as the MySQL server.
    The loop saves 61 values at once to the database, in one SQL-statement.
    I have now added the front panel and block diagram for my test-VI. I have implemented the queue system and separate loops for producer and consumer. However, since the queue is building up faster then the consumer loop consumes values, the queue is building up quite fast and the disc starts working.
    The test database table that I add data to is created by a simple:
    create table test(aa int, bb char(15));
    ...I'm sure that this can be improved in some way.
    I always open and close the connection to the database "outside the loop". However, it still takes some 40-50 ms to save the data to the database table - so, unfortunatly no progress to far. I currently just want to save the data.
    Any more advise will be gratefully accepted.
    Regards,
    Mattias
    Message Edited by mattias@hv on 10-23-2007 07:50 AM
    Attachments:
    front panel 2.JPG ‏101 KB
    block diagram.JPG ‏135 KB

  • Some questions related to SAP XI

    Hello!
    I would like to know the answers for the following questions regarding SAP XI-context (if it possible with Yes/No and a short comment/explanation)
    <b>CAPACITY PLANNING GUIDELINES</b>
    a) Guidelines to size the server(s)?
    b) Guidelines for sizing the over all environment for High-Availability
    <b>ARCHIVING CAPABILITIES</b>
    a) Approach to archiving of obsolete data
    <b>PLATFORM SUPPORT</b>
    a) Software supported on HP-UX 11.i V2 (r6) on Itanium.
    b) software supported on Windows 2003 sp1 (x64) on AMD Opteron 
    c) software support aligned with release roadmaps for future versions of HP-UX and/or Windows Server
    d) Software supported on OS clustered servers  (If mutliple products, please indicate if all are support or list areas where clustering may not be recommended and why)
    <b>RELATIONAL DATABASE </b>
    a) Does your system run native to the Oracle 10g RDBMS (RAC) and database tools?  If not, please explain the databases and tools supported.
    b) database monitoring tools be used to manage impending maintenance needs and potential problems and performance impacts (i.e., tool will monitor and detect prior to real problem occurring)
    c) standard pre-defined SQL queries and related calculations provided for use with industry standard reporting tools
    d) database accept binary-large-objects (BLOBs) and  be referenced via the relational engine.
    Thank you in advance!
    Regards!
    A.Henke

    two questions related to this:
    1. Why Java is designed to only permit single
    inheritence, any stories behind the scene? I think
    some major reasons why "prefer interfaces toabstract
    classes" is accepted is rooted in this limitation.Yes, one of the reasons interfaces are better is that
    you can only extend one class, but implement many
    interfaces. Say you have a concrete class that should
    "implement" two different types. If those types were
    defined as abstract classes, you could only use one
    type. You could implement both types if they were
    interfaces though. So why java is designed to have this limitation? There may be some arguments before this is settled down. I always like to hear this kind of stories:)
    2. Base on the fact that once an interface is outof
    box and widely implemented, it is almostimpossible
    to change it. So how you guys design yourinterfaces?
    Could you share some? In my idea, I would designmy
    interfaces as compact as possible.You could extend the interface and start using that
    if you didn't want to break existing code. You
    couldn't use that implementation as an Interface1
    though, since the new methods only exist in
    Interface2, so that's not an optimal solution.So we may always need to add a new interface when we just want to add a new method.

  • Basic Questions related EHPs for SEM

    Hi Guys,
    I've some basic questions related to EHPs: -
    1. If we don't mean to implement any of the new functionalities does it make any sense to implement EHP? In other words do EHPs also have some general improments other than the functionalities which can be specifically activated?
    2. If we just activate a functionality and don't implement/ use it can there be any negative impact?
    3. In case of a pure technical upgrade from SEM 4.0 to SEM 6.0 which EHP would be recommended?
    4. Is there a quick way to find all relevant notes in EHPn which are related to corrections for EHPn-1?
    Thanks in advance,
    -SSC

    HI,
    If you see some of my older posts I have had many issues with certain features of the EHP2 functionality but that doesn't mean I would recommned against it.
    BCS 6 EHPs 3 & 4  (BCS 6.03 / 6.04) - enhancement packs worth implementing?
    BCS 6 EHP 2 (BCS 6.02) - activation of enhancement pack
    My recommendation is to implement the EHPs but not necesarrily activate the functions (in SFW5) unless you need them - this means that you will only have to test once after EHP implementation and will have the ability to activate the other features as and when required (although testing is required after activation of course) whereas it might be difficult to persuade your client/basis team to implement EHP4 later if you don't do it now.
    In the features of EHP2 (activate FIN_ACC_GROUP_CLOSE) it states that there is a general performance improvement - although I have yet to experience it! From OSS note 1171344 "The functionality which is available in EHP2 consists of...
    ... Performance improvements of status management, reporting and initial start-up of consolidation workbench and monitor.
    Since activating FIN_ACC_GROUP_CLOSE I have had many OSS notes requiring application but i discovered that when the technical team implemented the EHPs (before i joined this client) they somehow forgot the latest SP (support packs) and didn't upgrade to the current level - so make sure that you get the right SPs too (see the links in Greg's link above) to avoid the many OSS notes.
    As for your question - "is there a list of OSS notes to specific to EHP upgrades? - the answer is most definietly "NO" - I already asked OSS in desperation!
    however, you can see the OSS notes that i have applied listed in the above link ( BCS 6 EHP 2 (BCS 6.02) - activation of enhancement pack )

  • Question related to concept of PCK

    Hi All.
    I am quite a newbie to XI and am only learning it thru online help. I have one conceptual question related to PCK.
    My understanding is that PCK is needed by a small business company to communicate to its larger partner which already has XI running. Correct me if I am wrong here itself.
    Now if the larger business partner already has XI, why does the smaller one need a PCK at all? The XI instance on the larger partner will have all the necessary adapters to understand any format send by the partner. So even if the partner(smaller) sends any format- be it IDOC/HTTP/FTP, the XI instance on larger partner will have its adapters ready to perform the conversion.
    Then why is this PCK needed at all?
    Thanks in advance. Hope my query is clear
    Regards.
    Samant

    Hi Samant,
      Your question is a very good one, Though I have not worked on PCK, I can share my ideas based on some brain storming session I had with our collegues & business partners.
      While executing projects, there are technical & operational issues. For example, when you access any HR related data of a UK based organisation then all those who work on that project have to undertake data security pledge. Like wise there are many constraints on data & system accesses, which vary across organisations.
    When you use PCK*, irrespective of different systems what the small vendors have, you communicate with your Big company's XI system only on the XI's msging protocol http(s)/SOAP. This allows a fair amount of ownership of data/access related issues to the small partners.
    -> you go for PCK, when there is no need for small vendors to go for XI.
    Hope this is of some help. As Michal said there might be much more (or even better) reasons.
    Michal, when you say "all of the mappings and transformations have to be on the small company side", what exactly you mean by this. can you please eloborate.
    Thanks & Regards
    Vishnu

  • Question related to Synchronous update

    Hi, all
    I have some question related to synchronous update:
    1. What is the syntax if I want to write synchronous update.
    Do i write as:
    call funcition A in update task
    commit work and wait
    Or just
    call function  A (A declared as update type function )
    commit work and wait
    Or ...
    2.If we use synchronous update, is VBHDR,VBDATA still filled the same way when using asynchronus update?
    Thanks in advance,
    Liming

    Hi,
    Why do we use this " In Update Task " ??
    The main update technique for bundling database changes in a single
    database LUW is to use CALL FUNCTION... IN UPDATE TASK.
    How do we Use ??
    A typical R/3 installation contains dialog work processes and at least one update work process. The update work processes are responsible for updating the database. When an ABAP program reaches a COMMIT WORK statement, any function modules from CALL FUNCTION... IN UPDATE TASK statements are released for processing in an update work process. The dialog process does not wait for the update to finish. This kind of update is called asynchronous update.
    What is the Use... ??
    Asynchronous update is useful when response time from the transaction is critical, and the database updates themselves are so complex that they justify the extra system load

  • Performance issue after upgrading database 9i (9.2.0.5.0) to 10g (10.2.5.0)

    Hi,
    recently we have upraded our database from 9.2.0.5.0 to 10.2.5.0. After the upgrading of the database some of our SQL-statements, who gather data and fill it in an empty tabless,
    shows a really bad performance in the new database version. We already have checked the explain plan it remains the same in both versions (full table scans on the corresponding tables)
    E.g. a query running in the 9i database needs 17 minutes for completion in the 10g version it needs 15 hours.
    We have checked the running session and have seen that the read of database blocks of the corresponding tables needs immense more time in the 10g version.
    Are there any oracle parameter, hidden features we can adjust in 10g in order to get the same performance as in 9i?
    thanks in advance
    Here is this example with the above mentioned different response time:
    (the object edv_belasgv_3_jahre is a view over 3 tables as an union all, each table has approximately 1 million records)
    /* Formatted on 06.09.2012 19:09:08 (QP5 v5.136.908.31019) */
    INSERT INTO mv_edv_belasgv_branche
    SELECT gesellschaft,
    erscheinungsdatum,
    buchungsdatum,
    code,
    SUM (rechnungsnetto) AS rechnungsnetto,
    SUM (rechnungsbetrag) AS rechnungsbetrag,
    SUM (mehrwertsteuer) AS mehrwertsteuer
    FROM (SELECT gesellschaft,
    erscheinungsdatum,
    buchungsdatum,
    rechnungsnetto,
    rechnungsbetrag,
    mehrwertsteuer,
    DECODE (
    (SELECT branche1
    FROM anzedv.edv_stammdaten t2
    WHERE t1.gesellschaft = t2.gesellschaft
    AND t1.kundennummer_sap = t2.kundennummer_sap
    AND t1.unterkonto = t2.unterkonto),
    NULL,
    NULL,
    DECODE (
    (SELECT DISTINCT branche
    FROM (SELECT *
    FROM anzedv.edv_zuordnung_branche_rubrik
    WHERE branche IS NOT NULL)
    WHERE (SELECT branche1
    FROM anzedv.edv_stammdaten t2
    WHERE t1.gesellschaft = t2.gesellschaft
    AND t1.kundennummer_sap =
    t2.kundennummer_sap
    AND t1.unterkonto = t2.unterkonto) LIKE
    branche || '%'),
    NULL,
    'sonstige',
    (SELECT DISTINCT branche
    FROM (SELECT *
    FROM anzedv.edv_zuordnung_branche_rubrik
    WHERE branche IS NOT NULL)
    WHERE (SELECT branche1
    FROM anzedv.edv_stammdaten t2
    WHERE t1.gesellschaft = t2.gesellschaft
    AND t1.kundennummer_sap =
    t2.kundennummer_sap
    AND t1.unterkonto = t2.unterkonto) LIKE
    branche || '%')))
    AS code
    FROM edv_belasgv_3_jahre t1
    WHERE gesellschaft IN ('T', 'U')
    AND (satzart = 'B'
    OR satzart = 'G'
    AND gegenkonto_art IN (5000, 5001, 7900)))
    GROUP BY gesellschaft,
    erscheinungsdatum,
    buchungsdatum,
    code

    There is no 10.2.5.0 version - I assume you mean 10.2.0.5.
    Pl see these threads on how to post a tuning request (pl post explain plans from both databases)
    When your query takes too long ...
    HOW TO: Post a SQL statement tuning request - template posting
    Pl also compare the init.ora parameters between the old and new database and post any differences here. Have statistics been gathered on the new database ?
    Pl see these MOS Docs
    TROUBLESHOOTING: Server Upgrade Results in Slow Query Performance [ID 160089.1]
    Query Performance Degradation - Upgrade Related - Recommended Actions [ID 745216.1]
    Tips for avoiding upgrade related query problems [ID 167086.1]
    HTH
    Srini

  • PERFORMANCE while accessing remote database DB2 on AS/400 using WAS

    Subject: PERFORMANCE while accessing remote database
    We have IBMWebSphere Application Server Standard Edition 3.5.3 running on
    AS/400 iSeries Server (V4R5, test)and local DB2 Database.
    I am using AS/400 Developer Kit for Java JDBC Driver(type2, com.ibm.db2.jdbc.app.DB2Driver)
    to talk to local database. The performance was very good.
    When I try to access remote database (every thing same as local) which is on another AS/400
    machine of V4R4 (we use it for production, remote database) using IBM Toolbox for Java JDBC driver
    (com.ibm.as400.access.AS400JDBCDriver, type 4 driver), I can see 30to40%decrease in performance.
    Here we have WAS on previous V4R5 AS/400 machine.
    My questions are
    Is the performance decrease is due to
    1. the driver I am using? if it is Is there any other alternative drivers to access
    remote database to boost performance?
    2. the release difference of local(V4R5) and remote data base(V4R5)
    3. Currently most uses remote database while we do this testing. Is that the cause?
    or Is there any other cause or Drivers etc??? Suggestions and help is most welcome.
    Thank you.

    What about
    4. the data has to travel across the network.

  • Can someone plz confirm me that how i can change or update the security questions related to my apple id? as i have been never put them since i create my apple id but now due to some security reasons its asking me again and again the answers. i am unable

    can someone plz confirm me that how i can change or update the security questions related to my apple id? as i have been never put them since i create my apple id but now due to some security reasons its asking me again and again the answers. i am unable to go through the process. thanks.

    Some Solutions for Resetting Forgotten Security Questions: Apple Support Communities

  • Question related to Java Concurrent Program

    Hi Friends,
    I have a basic question related to Java Concurrent Program in the Oracle application. I would like to know the how Java concurrent program is executed in Oracle applications.Also, want to know where can I find the document for the AOL packages for Java concurrent program. Document for packages like oracle.apps.fnd.cp.request.* , oracle.apps.fnd.util.*.
    Please let me know.
    -Thanks,
    Satya

    You may also check:
    Note: 250964.1 - How to Register Sample Java Concurrent Program
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=250964.1
    Note: 186301.1 - How to register and execute Java Concurrent Program ?in Oracle Applications R11i?
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=186301.1

  • Interview Questions related to Warehouse management

    Hi all
    Can u please help me regarding  Interview Questions related to Warehouse management
    Thanks and Regds
    Daniel

    Have you searched in very first thread
    [Warehouse Management?|New to Materials Management / Warehouse Management?;

  • I have a DVD I recorded from my tv.  I am trying to make copies and when I insert the DVD I get a message saying it is blank even though it is not.  My question are: Why does my computer think it's blank? And how can I copy a DVD?

    I have a DVD I recorded from my tv.  I am trying to make copies and when I insert the DVD, I get a message saying the DVD is blank, which it is not.  My questions are: Why does my computer think it's blank?  And how can I copy the DVD providing my computer recognizes there is content on it?
    Thanks, Sheila

    TV video typically is copyrighted content.  We'd be breaking several rules trying to help you.  Good luck!

  • Questions relating to Groupware Integration (Outlook)

    Hello,
    I have few questions relating to groupware integration for Outlook:
    Q1) The "Relate to CRM" option in outlook add-in for end user is available only  in client side integration? Is it not available for server sider integration (i.e. in server side, end user cannot directly assign CRM account or Transaction to object in outlook the way it is done in client side)?
    Q2) Is there any end user interface (like add-on) available in server side?
    Q3)In client side - Can the outlook add-on for SAPCRM be enhanced for different business logic or look n feel?
    Thanks,
    Vicky

    Hello Vicky,
    1) Yes the Relate to SAP CRM function is part of Client-side groupware only.
    2) The Add-in is only available with Client-side groupware.
    3) The Add-in cannot be customized. However the results can be influenced by parameters in transaction GWIPROFILE.
    The information displayed in the Business information Pane can be changed.
    Best Regards,
    Gervase Auden

Maybe you are looking for

  • After installing Adobe Flash Player 11.6 The player will not work and i can not find it installed

    After downloading and installing Adobe Flash Player 11.6 on my HP Laptop w/ Windows 7, The player will not work. Every time i click on a video it tells me that i need to install Adobe Flash Player. I have followed all the trouble shooting steps on th

  • Happly living with windows 8.1

    Other then testing setups, I have not had to restore, setup or repair windows 8.1 since the bata of windows 8. First ever OS I've tested that caused me no additional setups to fix a broken version of a windows bata or first release. However I have no

  • Batch Job ME59 created 2 PO for each PR??

    Dear Guru, Please advice me, I have create a batch job for ther program "RM06BB20" or T-code ME59, which help to convert the PR into PO. The job is running, just the problem that the job created 2 PO for each of my PR, which is incorrect. Can anyone

  • How do I install font that use the .suit extension?

    I have some fonts that I would like to install that has an extension of .suit at the end of it. Fontbook doesn't pick it up.

  • Brushes in Photoshop CS6 stop working, what can be done?

    Seems every day I am resetting my brushes in PS CS6 by shutting down the program and restarting it while holding the ctrl+alt+shift keys. I work at a school so we are networked and I have a thoery that it may be a user profile setting for when the us