How can I extract the native SQL generated by TopLink?

How can I extract the native SQL generated by TopLink?
This is useful for example to use pagination, or pass the SQL to a stored procedure that may do many things, like using a cursor, or apply security.
Pagination example where the SQL inside the inner parentheses are generated from Toplink, and the outer SQL is generic:
select *
from
(select xx.*, rownum as rn
from
(select o.order_id, r.name, ...
from placed_order o, restaurant r
where o.restaurant_id = r.restaurant_id
order by o.order_ext_id
) xx
where rownum < 21)
where rn > 10

Alternatively, you can open your sessions.xml in the Mapping Workbench and for a specific session, you can Click the Login Tab and then the Options tab. Then select "Native SQL" and it will be outputted to the console (assuming that is where you outputing it).
zb

Similar Messages

  • How can I extract the full SQL script for a schema?

    Hi,
    How can I extract the full SQL script for a schema?
    I am looking for some method that needs jus SQL*Plus and preferably doesn’t need any extra tool.
    Thank you,
    Alan

    How can I extract the full SQL script for a schema?What are you looking for? PL/SQL code? DDL for objects?

  • How can I extract the two channels from a stereo track?

    Hi,
    I am writing a class that is able to draw an audio signal. It seems to be working well but I have a question. If I load a mono audio file I am able to draw it on a graph by using the byte[] array and everything is ok until now. That's the code:
    void Draw(byte[] x)
                Graphics g=getGraphics();
                Graphics2D g2=(Graphics2D)g;
                g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,                     RenderingHints.VALUE_ANTIALIAS_ON);
                for(int i=0; i<x.length-6; i++)
                    g2.draw(new Line2D.Float(((i*(getWidth()-6))/x.length)+5, (getHeight()/2)-          ((x*(getWidth()-6))/x.length), (((i+1)*(getWidth()-6))/x.length)+5, (getHeight()/2)-     ((x[i+1]*(getWidth()-6))/x.length)));
    The results is correct only if I have a mono track. Obviously when I get a stereo track the array becomes very large so here the question. How can I extract the two audio channels from a stereo track?
    Thanks in advance.
    Maurizio Di Vitto                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    A mono audio stream is stored [sample, sample, sample, sample], so just a list of samples in an array.
    A stereo sample is interleaved in the same manner, so you get [left-sample, right-sample, left-sample, right-sample]
    So every nth sample is the 1st channel, every nth+1 is the 2nd channel...

  • How can I extract the data from Xstring .

    Hi Gurus ,
    How can I extract the data from a XSTRING  .
    I have to get the data which is filled in the survey form the data is getting saved in form of xstring .
    Someone told me that there is a standard FM for that . but I am not able to find .
    Please reply with the FM in case some one knows about it .
    Thanks in advance .

    The following code works as of 7.0 (in any SAP system):
    FORM XSTRING_TO_STRING USING input TYPE xstring CHANGING output TYPE string.
    TYPES : BEGIN OF ty_struc,
              line TYPE c LENGTH 100,
            END OF ty_struc.
    DATA lt_char TYPE TABLE OF ty_struc.
    DATA length TYPE i.
    length = xstrlen( input ) / cl_abap_char_utilities=>charsize.
    CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
      EXPORTING
        buffer                = input
      tables
        binary_tab            = lt_char.
    CONCATENATE LINES OF lt_char INTO output RESPECTING BLANKS.
    output = output(length).
    ENDFORM.
    Edited by: Sandra Rossi on Mar 30, 2010 12:24 AM

  • How can I use the templates I generated in CS5 Bridge, in Lightroom 4.4?

    How can I use the templates I generated in CS5 Bridge, in Lightroom 4.4 ?
    It appears that I can not link the templates which I have been using in Bridge for some time to Lightroom 4.4.
    Is this done on purpose?
    Thanks in advance
    Doppy

    I assume these are metadata templates?
    in Bridge, apply a template to an image which has no other metadata (eg a dummy image ) and then import the image into Lightroom, ensuring no metadata applied in the Import dialog. Now in Lightroom's Metadata panel, save the metadata as a new Metadata Preset.
    Repeat for each template.

  • How can I extract the info from my Time Capsule?

    How can I extract the info from my Time Capsule?

    What info would that be??
    If you mean how to recover TM back to a computer.. see Pondini Q14-17
    http://pondini.org/TM/FAQ.html
    If that isn't it .. we do not know what.. "the info" you are talking about.

  • HOW CAN I EXTRACT THE SYSTEM DATE?

    HOW CAN I EXTRACT THE SYSTEM DATE?

    import java.util.*;
    import java.text.SimpleDateFormat;
    public class date2{
        public static void main(String[] args){
            Date today = new Date();
            SimpleDateFormat output = new SimpleDateFormat();
            String answer = output.format(today);
            System.out.println(answer);
    }If you want to make it prettier, you can look at using a locale, or a pattern string in the SimpleDateFormat constructor. Read the Documentation.
    Note that new Date(), constructs a Date with the current Time,
    you could also use: new Date(System.currentTimeMillis());
    Hope this helps
    -Philip.

  • How can I extract the soundtrack from iMovie and put it in my iTunes Library?

    How can I extract the soundtrack from iMovie and put it in my iTunes Library?

    Or this
    From iMovie 10.0.6 select Share > File. Then select Format=Audio Only. Then select File Format and choose from AAC,MP3,AIFF or WAV.

  • How can I use the work/result generated by quartusii in labview 8.0

    hi ,
    I customized a developing board in quartus ii on the basis of nios ii ,and there are  many customed i/o devices in it, then I want to ask how can I use the work/result  generated by quartusii  in labview? I am new in labview. and I can't find any relationship between quartus ii and libview 8.0.
    tks!

    http://forums.ni.com/ni/board/message?board.id=170&message.id=264457#M264457

  • How can i get the external Sql result return data to abap?

    Dear All
             I have a problem to how to get the select  result data return abap.
    I used abap to run external SQL server. below is my code:
    ***in above ,abap has already connected external SQL.
    Sql = u2018select * from user01u2019
          CALL METHOD OF rec 'Open'
            EXPORTING #1 = sql
            #2 = con
            #3 = '1'.
          IF NOT sy-subrc = 0.
            MESSAGE e000 WITH 'run external sql error!'.
          ENDIF.
    ***now ,below code how can I get the select result to abap code?
    I know I can use native_sql  such as u2018OPEN CUR1 FOR SELECT * FROM user01 AND FETCH NEXT CUR1 INTO :WAu2019.
        Thanks for all
    Sun

    Thanks.
    it is okay now by myself.
    con_str = 'Provider=SQLOLEDB.1;Password=pwd;Persist Security Info=True;User ID=name;Initial Catalog=VTL_DEMO;Data Source=192.168.21.50'.
      CREATE OBJECT o_conn 'ADODB.Connection'.
      CREATE OBJECT o_rec 'ADODB.Recordset'.
      SET PROPERTY OF o_conn 'Provider' = provider.
      SET PROPERTY OF o_conn 'ConnectionString' = con_str.
      CALL METHOD OF o_conn 'Open'.
      sql_str = 'select *  from userh'.
      CALL METHOD OF o_conn 'Execute' = o_recordset
        EXPORTING
        #1 = sql_str.
       #2 = o_conn.
      GET PROPERTY OF o_recordset 'EOF' = rs_eof.
      REFRESH itab.
      WHILE rs_eof NE 1.
        CALL METHOD OF o_recordset 'fields' = o_field
          EXPORTING
          #1 = 0.
        GET PROPERTY OF o_field 'Value' = itab-name.
        CALL METHOD OF o_recordset 'fields' = o_field
          EXPORTING
          #1 = 1.
        GET PROPERTY OF o_field 'Value' =  itab-cid.
        APPEND itab.
        CALL METHOD OF o_recordset 'MoveNext'.
        GET PROPERTY OF o_recordset 'EOF' = rs_eof.
      ENDWHILE.

  • How can I extract the results of my squence?

    Hello, I'm a beginer of test Stand.
    I've created a main squence with LabView & TestStand, and works well, when it finish TestStand automatically creates my report. I need to extract these results of my sequence in order to create a custom document automatically, creating an action with LabView that works with these results, without any action of an operator.
    How can I extract these results? Thanks you very much.

    Hello,
    you've got several options here, although it seems you might want to go with the first option:
    1) After running your sequence, you'll find all the results needed for creating a report on the variable Locals.ResultList, which is an array of objects (of the Result type). You can pass this array to external code for it to use the information (i.e. create a report)
    2) You can override the report generation callback on your process model (Test Report callback)and create your own LabVIEW-based report generation sequence/routine
    3) You can modify the report generation sequences on the process model to suit your needs (always make backup copies and place your modifications on the /Components/User folder !)
    I would also recommend you to assist National Instruments Training Courses, as these things can be seen in detail and provide you a better understanding of all the options TestStand has.
    Regards,
    Jorge M.Mensaje editado por Jorge M.

  • How can i extract the text from the PDF files,Power point files,Word files?

    hi friends,
    i need to extract text from the PDF files,Power Point,Ms word files.Is it possible with java?if yes how can i extract text from those files.please give solution this problem.i would be thankful if u provide solution.
    regards,
    prakash.

    Find an API which could read each of those files and start coding.

  • How can i extract the particular data from Base tables

    Hi
    I have some Base R/3- Tables . I need to exact the data from these base tables.
    But i need to select some type of datarecords(eg: select Material Documents from MSEG and MKPF tables based on movement types 261,262).
    Something like that . So how can i select the particular category datarecords from base tables. Anyway im going to create the Custom DataSource.
    So please let me know . how can i extarct tha particular data from base tables
    kumar

    Hi Venkat
    See i have some 5-tables . I need to extarct from these tables.
    first i need to extract the data from one table fully.
    Then i need to extarct the data from second table based on profict centers, company codes of first table.
    Then i need to extract the data from third table based on profict centers of first table and movement type = 2p,2n,2s condition.
    So how can i extarct like this data from multiple tables.
    Please let me know
    kumar

  • How can I extract the create preference script from database

    I have 10.2.0.3 database. I have a schema that has text schema indexes. I need to load the data to another user.
    Here is my steps:
    1. create a new user dev.
    2. expdp user prod
    3. impdp prod to dev META_DATA_ONLY
    4. drop schema indexex, otherwise, there is error.
    5. recreate schema index.
    My problem is when I recreate the indexes. I got this error
    ERROR at line 1:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-20000: Oracle Text error:
    DRG-10700: preference does not exist: OCS_IDCCOLL1_LEXER
    ORA-06512: at "CTXSYS.DRUE", line 160
    ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 364
    I ran
    select pre_name from CTX_PREFERENCES wehre pre_owner='PROD'
    OCS_IDCCOLL1_LEXER
    How can I recreate the OCS_IDCCOLL1_LEXER for user dev?
    Thanks a lot!

    Try running CTX_REPORT.CREATE_INDEX_SCRIPT: see http://download.oracle.com/docs/cd/B14117_01/text.101/b10729/admin.htm#CACFCCDA.

  • APEX4-How can I see the insert sql apex is creating to insert form into db?

    Hi,
    I've a table with around 78 columns and a form to submit the values. Till around 68 columns it was working fine, when I added another 10 fields and modified names of few other, on clicking Create or Apply it throws duplicate column name error. I've given the exact error below.
    How can I find out which is the duplicate column? or where the problem lies? The form is quite big and complex so I don't want to recreate it.
    Is it possible for me to see the sql apex is generating to insert or update the value?
    When I try to create a new entry, application throws this error:
    ORA-06550: line 1, column 79: PL/SQL: ORA-00957: duplicate column name ORA-06550: line 1, column 7: PL/SQL: SQL Statement ignored
    On editing an existing entry, application throws error:
    ORA-20505: Error in DML: p_rowid=181, p_alt_rowid=RT_ID, p_rowid2=, p_alt_rowid2=. ORA-00957: duplicate column name
    Thanks for you time.
    Thanks,
    Hozy

    Fixed, I was referring to same column name twice.

Maybe you are looking for

  • Makt_single_read

    Hi experts, I am using makt_single_read function module. I got a short dump error while executing this FM. It point out the SPRAS parameter. Pls any one give one example to use this function module. Thanks. Message was edited by:         Murugan Arum

  • How do I get numbers to automatically add the next date down a column in numbers?

    How do I get numbers to automatically add the next date down a column in numbers?

  • Where does the supplier details exist in SRM

    Hi gurus,   I need to know the table name in which the details of the supplier stored. Ex: I need the address of the supplier, Supplier Approved or not,payment terms and payment terms description Regards, Ramalakshmi.G

  • Report writer Authorization on selection screen

    Hi All, In transaction GR55 (to execute the report group), when the user enters the selection criteria for the report group, I want to validate the 'Profit Center group' and 'Profit center values' fields. The way it should be validated is, it should

  • HDD g5 to mac pro

    hi there I as wondering is it possible to hot swap the HDD drive in my G5 into a 2.66ghz mac pro version 1.1 or will this cause issues given that one is a power pc and the other is an intel based machine?