Using data from the control table

Hello

I would like to use the data entered in a table to automate volume/sequence of airflow for a test Chamber. As shown in the screenshot of control table, the first column indicates the number of iterations by elements of array in a series of tests and the second data column specifies the length of each line sequence. Entries in the other columns are specific to different valves and specify values set required in the flow meter.

I guess my question is how can I index/assign each column of the table such that the data to exploit the respective valves are obtained in subsequent iterations all acquire simultaneously with data from other components in the order? While I recognize that the solution may be very simple, I searched on through various examples and messages on the tables and the tables without knocking on a solution. The attached .vi allows me to be a part of the series of tests.

Best regards

Callisto

Hi Callisto,

If I understand your question then the solution is actually quite simple. The important point to keep in min is the fact that the Table control can actually be treated as an array of string. You can then use all the traditional table manipulation tools and techniques to manipulate your data as you wish. For example, use the Array Index function to retrieve specific columns and then if you want to spend the individual elements in a column in a loop, wire the table until the loop and ensure that indexing is enabled. If you then want to use these data elements to control your test application, you can convert a portion of the resulting string in more useful to digital.

All these concepts are illustrated in the attached VI. I hope this helps, but let me know if you have any other questions.

Best regards

Christian Hartshorne

NIUK

Tags: NI Software

Similar Questions

  • Message from blackBerry Smartphones: the page you requested was created using data from the form.

    While closing a link to expedia.ca a message come to say: the page you requested was created using data from the form. This page is no longer available.  If you resend the data, any action that has been specified by the form will be repeated.  You want to resubmit the data?  When I click Yes or no, nothing happens except that the message just reappears.  I can't get rid of it so I can't do anything else on my phone, except to answer a call if someone calls me.  How can I get rid of this message from my phone?  I tried to turn it works... even by leaving off the coast for 5 minutes before turning turn it back on.  I can't even check my OS because I do not what anyone on my phone.  I hope someone can help me with this.

    Have you tried a battery pull?  This should fix a problem as you described.

    With your phone, remove the battery, then replace a minute later.  This will do all sorts of wonderful things to your phone for free unclaimed memory, delete no cited source points and make your phone run smoothly.

    Try it and let us know if it does the trick.

  • Export data from the database Table in the CSV file with OWB mapping

    Hello

    is it possible to export data from a database table in a CSV with an owb mapping. I think that it should be possible, but I didn't yet. Then someone can give me some tips how to handle this? Someone has a good article on the internet or a book where such a problem is described.

    Thank you

    Greetings Daniel

    Hi Daniel,.

    But how do I set the variable data file names in the mapping?

    Look at this article on blog OWB
    http://blogs.Oracle.com/warehousebuilder/2007/07/dynamically_generating_target.html

    Kind regards
    Oleg

  • Disadvantages of the default tablespace using to store data from the partitioned table?

    Can someone tell me, are there disadvantages, performance problems using default storage in oracle?

    I not create any tablespace during the creation of the database, but all the data partitioned in a tablespace named 'USERS' default... I will continue using the same tablespce...? I'm storing the data in the table where the growth of the table will be great... it can contain millions of records...? It will produce no degradation of performance? Suggest me on this...

    Different storage areas for administration and easier maintenance. In some cases for performance reasons so different disks are representative to the database (fast and not so fast, different levels of raid...)
    For example if you have several diagrams of database for different applications, you may want to separate schema objects to different storage spaces.
    Or, for example, you want to keep in database read-write tablespaces and just only read. Read-write tablespaces with the data files will be on very fast disks, read only the cheaper and perhaps more slowly (not required). Again separate tablespaces makes this very easy thing to do.
    Or you would like to keep separate indexes from tables and keep them in a different tablespace on the different mountpoint (disc). In this case probably better is to use ASM, but it's more than a reason to separate.

    And in your case-, it may be easier to manage if you create a new storage space for these new objects.
    For example:
    1 storage space for small tables
    1 storage space for small index
    1 storage space for large tables
    1 storage space for large index
    and so on. All depends on your particular architecture and database data growth and what you do with these data after a year, two years, three...

  • How to copy the data from the indicator table 1 d to the Clipboard

    Is it possible to copy data from table 1 d indicator to the Clipboard as a text and for more than one cell?

    I use LV8.6.

    Leszek

    Sorry, I wasn't sure if it was available in 8.6, apparently not.

    You could create an indicator of fine print and use 'picture to a worksheet string' to complete. Now, you can just cut & paste the text instead.

  • move old data from the mysql table

    I have a Web page that retrieves the content in a database. The table are filled via a restricted page that was created for the data entry. I just want to know is anyway we can push the old data to another table after so long. For example if the data was created in table1 for seven days, the eighth day, I like the data that have been put on the day 1 to table2 kind that table1 will have room for the data that will be created to update 8. I would like to only 7 days worth of data in table1. Also how to remove completely from table2 data after 90 days. Also, what must you do to have the last entry in the table of row1.of

    Thank you

    keramatali wrote:

    what I need to do to display the data of the day 2 to day 7 instead of shoiwng given from day 1 to day 7

    It's a simple matter of logic. Get the last seven days is to retrieve dates that have overtaken less seven. To get days 2 to 7, you need to dates that are less than or equal to today less than 1 AND greater than or equal to 7 today.

    SELECT column1, column2, column3FROM myTableWHERE date_created <= SUBDATE(NOW(), 1) AND date_created >= SUBDATE(NOW(), 7)ORDER BY date_created DESC
    
  • Create the flat file data from the oracle table

    d_adp_num char (10)
    d_schd_date tank (8)
    d_sched_code tank (25)
    d_pay_code char (50)
    d_mil_start char (4)
    d_mil_end char (4)
    d_duration char (5)
    d_site_code char (4)
    d_dept_id tank (6)

    Select payroll_id,
    schedule_date,
    reason_code, (sched_code)
    reason_code, (pay_code)
    start_time,
    end_time,
    total_hours,
    site_code,
    department_id
    of dept_staff
    where schedule_date between (sysdate + 1) and (sysdate + 90)


    loading data for the date range instead.
    sched_code - if 'Unavailable' reason_code = 'OD' and 'THE '.

    pay_code - "Berevevement BD" If reason_code = "BD".
    "UP PTO without reasonable excuse" If reason_code = 'UP '.
    "RG" If reason_code = "SH".
    "PTO" If reason_code = "GO".
    Here are some...

    start_time and end_time - convert military time
    based on start_ampm and end_ampm

    On this basis, I need help to create a flat file. Sewing of the flat and data file in dept_staff sample

    If site_code is there so no need to get department_id (see the sample flat file)
    ------------------------------------

    examples of data to flat file

    ZZW002324006072012 PTO
    0800160008.00
    ZZW002428106072012 RG
    1015174507.50HM34
    ZZW002391606072012 RG
    1100193008.50
    ZZW002430406072012 RG
    1100193008.50 130000
    ----------------------------

    dept_staff table data

    REASON_CODE_1 PAYROLL_ID SCHEDULE_DATE REASON_CODE START_TIME, END_TIME START_AMPM END_AMPM TOTAL_HOURS SITE_CODE DEPARTMENT_ID
    ZZW0024468 08/06/2012 HS HS 730 HAS 400 850 12 P
    ZZW0000199 08/06/2012 HS HS 730 HAS 400 850 14 P
    ZZW0023551 08/06/2012 SH SH 1145 A 930 975 GH08 95 P
    ZZW0024460 08/06/2012 SH SH 515 HAS 330 P 1025 GH08 95
    ZZW0023787 08/06/2012 SH SH 630 HAS 300 850 24 P
    ZZW0024595 08/06/2012 TR TR 730 HAS 400 850 90 P
    ZZW0023516 08/06/2012 OD OD 800 HAS 400 800 95 P
    ZZW0023784 08/06/2012 OD OD 800 HAS 400 800 5 P
    ZZW0024445 08/06/2012 SH SH 1145 A GH08 930 975 5 P
    ZZW0024525 08/06/2012 OD OD 800 HAS 400 800 23 P
    ZZW0024592 08/06/2012 TR TR 730 HAS 400 850 5 P
    ZZW0024509 08/06/2012 SH SH 95 MK21 830 HAS 330 P 700

    ZZW0023916 06/14/2012 SH SH 1100 A 850 27 730 P

    How to ask questions
    SQL and PL/SQL FAQ

    UTL_FILE allows to write the OS file

  • How to compare data from the two table column by column and connect the result compared to the separate table

    Hello experts...

    I'm new to this forum and Oracle coding complex.

    I have a task in which I want to compare two tables with the same structure, same columns. My Oracle database is 11g Release 2. I want this column-by-column comparison and save the result in a separate table. (say result_table)

    The structure of the table would be as follows:

    SQL > desc emp;

    Name                                      Null?    Type

    ----------------------------------------- -------- ----------------------------

    EMPNO NOT NULL NUMBER 4

    ENAME VARCHAR2 (10)

    JOB                                                VARCHAR2(9)

    MGR                                                NUMBER(4)

    HIREDATE DATE

    SAL                                                NUMBER(7,2)

    COMM                                               NUMBER(7,2)

    DEPTNO NUMBER (2)

    SQL > emp_comp desc;

    Name                                      Null?    Type

    ----------------------------------------- -------- ----------------------------

    EMPNO NOT NULL NUMBER 4

    ENAME VARCHAR2 (10)

    JOB                                                VARCHAR2(9)

    MGR                                                NUMBER(4)

    HIREDATE DATE

    SAL                                                NUMBER(7,2)

    COMM                                               NUMBER(7,2)

    DEPTNO NUMBER (2)

    Both of the tables EMPNO is the primary key.

    I want to compare these two tables based on the EMPNO (EMPNO even is both tables).

    The result log table would be as follows:

    SQL > create table result_table

    2 (check_sr_no, number (5),)

    table_name 3 varchar2 (30),

    ROW_ID 4 varchar2 (20).

    column_name 5 varchar2 (20).

    6 column_data varchar2 (1000).

    compared_by 7 varchar2 (10));

    Table created.

    SQL > alter table result_table

    2 Add the constraint result_table_pk

    3 primary key (check_sr_no);

    Modified table.

    The name of the table and the name of the column will not be hardcoded (based parameter by user)

    I tried to use the dbms_comparison package, but do not find comparison of column to column.

    I also used by using the query operator LESS. It's showing the difference in rank.

    I also went to https://asktom.oracle.com/pls/apex/f?p=100:11:0:P11_QUESTION_ID:2151582681236

    Your help will be very appreciated.

    Thank you

    DK

    Tom Kyte has answered this question MANY times over the years. Here are links for its solution

    https://asktom.Oracle.com/pls/Apex/f?p=100:11:0:P11_QUESTION_ID:4934799800346640847

  • How to display data from the emp table?

    Hi everyone, this is my first post in this portal. I want to display the details of the table emp... for this I use this SQL statement.

    Select * from emp where mgr = nvl(:mgr,mgr);

    When I give the entry as 7698 it shows the matching records... and also when I don't give any input then it shows all the records except the Archbishop with null values.

    (1) I want to display all the records when I do not give any input, including null values
    (2) I want to display all the records that a Bishop is null

    Is it possible to integrate in order to include all these in a single query.

    Hello

    937440 wrote:
    Hi everyone, this is my first post in this portal.

    Welcome to the forum!
    Don't forget to read the forum FAQ {message identifier: = 9360002}

    I want to display the details of the table emp... for this I use this SQL statement.

    Select * from emp where mgr = nvl(:mgr,mgr);

    When I give the entry as 7698 it shows the matching records... and also when I don't give any input then it shows all the records except the Archbishop with null values.

    (1) I want to display all the records when I do not give any input, including null values
    (2) I want to display all the records that a Bishop is null

    Is it possible to integrate in order to include all these in a single query.

    It's a little unsure what you're asking.
    The following query always includes the lines where mgr is NULL and when the binding variable: mgr is NULL, it displays all the lines:

    SELECT  *
    FROM     emp
    WHERE     LNNVL (mgr != :mgr)
    ;
    

    In other words, when: 7698 = mgr, it displays 6 rows and when: mgr is NULL, it displays 14 rows (assuming you are using the table provided by Oracle scott.emp).

    The following query includes lines where Bishop is ZERO only when the binding variable: mgr is NULL, in which case it shows all lines:

    SELECT     *
    FROM     emp
    WHERE     :mgr     = mgr
    OR       :mgr       IS NULL
    ;
    

    When: mgr = 7698, this will display 5 rows and when: mgr is NULL, it displays 14 rows.

    The following query includes lines where Bishop is ZERO only when the link variab; e: mgr is NULL, in which case it shows only those rows where mgr is NULL. In other words, it treats NULL as a value:

    SELECT     *
    FROM     emp
    WHERE     DECODE ( mgr
                , :mgr, 'OK'
                )     = 'OK'
    ;
    

    When: mgr = 7698, this will display 5 rows and when: mgr is NULL, it displays 1 row.

  • How to remove select data in the control table

    This problem makes me headache.

    I'm new to labview, when data in a table. a lot of lines and columns. How can remove on the line that I chose. the other lines are remain unchanged.

    I really need help.thanks in advance. It is best to attach the labview program.my is 2009

    That kind of thing does not work with the table that's why I suggested to go for the multicolumn list box. You can do simple.

    Good luck

  • Win7 uses data from the internet without using it

    I have a compaq presario cq57 with windows 7 home premium 64 with MSE chrome up to date Malware bytes updated

    When open chrome by using internet data without using it, I don't know why.

    If someone suffers the same?

    Thank you

    Peter.

    It did not work

    but I fixed it

    I changed to avg internet security

  • Slow down execution SQL - extracting data from the FACT Table

    taHi,

    We have a SQL that runs slowly.

    Select / * + ALL_ROWS PARALLEL (F 8) * /.

    IA_OASIS_GRP_CAPTR_D.GRP_CAPTR_GRP_ID,

    IA_OASIS_GRP_CAPTR_D.GRP_CAPTR_BIL_UNT_ID,

    IA_OASIS_GRP_CAPTR_D.GRP_CAPTR_BNF_PKG_CD,

    IA_OASIS_GRP_CAPTR_D.GRP_CAPTR_UNDWR_CD,

    IA_OASIS_GRP_CAPTR_D.GRP_CAPTR_CAC_CD,

    IA_OASIS_GRP_CAPTR_D.GRP_CAPTR_RTMS_HLTH_COV_CD,

    IA_OASIS_GRP_CAPTR_D.GRP_CAPTR_ACTUR_RSRV_CATEG_CD,

    IA_OASIS_GRP_CAPTR_D.GRP_CAPTR_BNF_TYP_CD,

    IA_OASIS_GRP_CAPTR_D.GRP_CAPTR_GRP_BGIN_DT,

    IA_OASIS_GRP_CAPTR_D.GRP_CAPTR_GRP_END_DT,

    IA_OASIS_GRP_CAPTR_D.GRP_CAPTR_PLN_SEL_CD,

    IA_OASIS_GRP_CAPTR_D.GRP_CAPTR_SBGRP_NM,

    IA_OASIS_GRP_CAPTR_D.GRP_CAPTR_SBGRP_TYP_CD,

    IA_OASIS_GRP_CAPTR_D.GRP_CAPTR_SBGRP_TYP_DESC,

    IA_OASIS_GRP_CAPTR_D.GRP_CAPTR_COBRA_IND,

    IA_OASIS_GRP_CAPTR_D.GRP_CAPTR_SBGRP_POL_NBR,

    IA_OASIS_GRP_CAPTR_D.GRP_POL_CD,

    IA_OASIS_MBR_CAPTR_D.MBR_CAPTR_SBSCR_ALTN_ID,

    IA_OASIS_MBR_CAPTR_D.MBR_CAPTR_RLNSP_CD,

    IA_OASIS_MBR_CAPTR_D.MBR_CAPTR_GNDR_CD,

    IA_OASIS_MBR_CAPTR_D.MBR_CAPTR_BTH_DT,

    IA_OASIS_MBR_CAPTR_D.MBR_CAPTR_MBR_ID,

    IA_OASIS_MBR_CAPTR_D.MBR_CAPTR_SBSCR_SCTR_CD,

    IA_OASIS_MBR_CAPTR_D.MBR_CAPTR_SBSCR_RGN_CD,

    IA_OASIS_MBR_CAPTR_D.MBR_CAPTR_SBSCR_ZIP_CD,

    IA_OASIS_MBR_CAPTR_D.MBR_CAPTR_BDGT_RPT_CLS_CD,

    IA_OASIS_MBR_CAPTR_D.MBR_CAPTR_WORK_DEPT_CD,

    IA_OASIS_MBR_CAPTR_D.BSC_DUAL_IN_HOUSE_IND,

    IA_OASIS_MBR_CAPTR_D.MEDCR_HICN_NUM,

    IA_OASIS_CLM_SPEC_D.CLM_PRI_DIAG_CD,

    IA_OASIS_CLM_SPEC_D.CLM_PRI_DIAG_BCKWD_MAP_IND,

    IA_OASIS_CLM_SPEC_D.CLM_PRI_ICD10_DIAG_CD,

    IA_OASIS_CLM_SPEC_D.ICD_CD_SET_TYP_CD,

    IA_OASIS_CLM_SPEC_D.CLM_APG_CD,

    IA_OASIS_CLM_SPEC_D.CLM_PTNT_DRG_CD,

    IA_OASIS_CLM_SPEC_D.CLM_PROC_CD,

    IA_OASIS_CLM_SPEC_D.CLM_PROC_MOD_1_CD,

    IA_OASIS_CLM_SPEC_D.CLM_PROC_MOD_2_CD,

    IA_OASIS_CLM_SPEC_D.CLM_POS_CD,

    IA_OASIS_CLM_SPEC_D.CLM_TOS_CD,

    IA_OASIS_CLM_SPEC_D.CLM_PGM_CD,

    IA_OASIS_CLM_SPEC_D.CLM_CLS_CD,

    IA_OASIS_CLM_SPEC_D.CLM_ADMIT_TYP_CD,

    IA_OASIS_CLM_SPEC_D.CLM_BIL_PROV_PREF_STS_CD,

    IA_OASIS_CLM_SPEC_D.CLM_BIL_PROV_PRTCP_STS_CD,

    IA_OASIS_CLM_SPEC_D.CLM_ATTND_PROV_PRTCP_STS_CD,

    IA_OASIS_CLM_SPEC_D.CLM_BIL_PROV_PLN_STS_CD,

    IA_OASIS_CLM_SPEC_D.CLM_NDC,

    IA_OASIS_CLM_SPEC_D.CLM_BRND_GNRC_CD,

    IA_OASIS_CLM_SPEC_D.CLM_ACSS_PLS_OOP_IND,

    IA_OASIS_CLM_SPEC_D.CLM_BNF_COV_CD,

    IA_OASIS_CLM_SPEC_D.CLM_TYP_OF_BIL_CD,

    IA_OASIS_CLM_SPEC_D.CLM_OOA_CD,

    IA_OASIS_CLM_SPEC_D.CLM_SANCT_LAT_CALL_IND,

    IA_OASIS_CLM_SPEC_D.CLM_SANCT_DED_PNLTY_IND,

    IA_OASIS_CLM_SPEC_D.CLM_SANCT_COPAY_IND,

    IA_OASIS_CLM_SPEC_D.CLM_SANCT_PCT_COPAY_IND,

    IA_OASIS_CLM_SPEC_D.CLM_SANCT_FLAT_DLR_COPAY_IND,

    IA_OASIS_CLM_SPEC_D.CLM_SANCT_HMO_ACCUM_COPAY_IND,

    IA_OASIS_CLM_SPEC_D.CLM_BIL_ALLOW_APPL_CD,

    IA_OASIS_CLM_SPEC_D.CLM_TMLY_FIL_APPL_CD,

    IA_OASIS_CLM_SPEC_D.CLM_TPLNT_APPL_CD,

    IA_OASIS_CLM_SPEC_D.CLM_ADJ_CD,

    IA_OASIS_CLM_SPEC_D.GRP_PRVDR_TIER_CD,

    IA_OASIS_CAPITN_CLM_D.CAPITN_CLM_SS_CD_CD,

    IA_OASIS_CAPITN_CLM_D.CAPITN_CLM_HMO_COV_LVL_CD,

    IA_OASIS_CAPITN_CLM_D.CAPITN_CLM_FUND_POOL_CD,

    IA_OASIS_CAPITN_CLM_D.CAPITN_CLM_HMO_PRDCT_CD,

    IA_OASIS_CAPITN_CLM_D.CAPITN_CLM_BNF_CATEG_CD,

    IA_OASIS_CAPITN_CLM_D.CAPITN_CLM_ADJ_TYP_CD,

    IA_OASIS_CAPITN_CLM_D.CAPITN_CLM_IPA_ACSS_PLS_IND,

    IA_OASIS_CAPITN_CLM_D.CAPITN_CLM_FUND_ID,

    IA_OASIS_CAPITN_CLM_D.CAPITN_CLM_FUND_DESC,

    CLM_CLS_PLN_CAPTR_D.CLM_CLS_PLN_GRP_ID,

    CLM_CLS_PLN_CAPTR_D.CLM_CLS_PLN_CLS_ID,

    CLM_CLS_PLN_CAPTR_D.CLM_CLS_PLN_CLS_DESC,

    CLM_CLS_PLN_CAPTR_D.CLM_CLS_PLN_PLN_ID,

    CLM_CLS_PLN_CAPTR_D.CLM_CLS_PLN_PLN_DESC,

    CLM_CLS_PLN_CAPTR_D.CLM_CLS_PLN_PRDCT_CATEG_CD,

    CLM_CLS_PLN_CAPTR_D.CLM_CLS_PLN_PRDCT_CATEG_DESC,

    CLM_CLS_PLN_CAPTR_D.CLM_CLS_PLN_PRDCT_ID,

    CLM_CLS_PLN_CAPTR_D.CLM_CLS_PLN_PRDCT_DESC,

    CLM_CLS_PLN_CAPTR_D.CLM_CLS_PLN_MTL_LVL_CD,

    CLM_CLS_PLN_CAPTR_D.HIOS_PLN_ID,

    CLM_CLS_PLN_CAPTR_D.HIX_GRP_ID,

    OASIS_CLM_MBR_XREF. LGCY_SBSCR_ID,

    OASIS_CLM_MBR_XREF. LGCY_MBR_SFX_ID,

    OASIS_CLM_MBR_XREF. FACETS_SBSCR_ID,

    OASIS_CLM_MBR_XREF. FACETS_MBR_SFX_ID,

    OASIS_CLM_MBR_XREF. LGCY_CUST_ID,

    OASIS_CLM_MBR_XREF. LGCY_GRP_ID,

    OASIS_CLM_MBR_XREF. LGCY_BIL_UNT_ID,

    OASIS_CLM_MBR_XREF. FACETS_PRNT_GRP_ID,

    OASIS_CLM_MBR_XREF. FACETS_GRP_ID,

    OASIS_CLM_MBR_XREF. FACETS_CLS_ID,

    OASIS_CLM_MBR_XREF. FACETS_CONVER_MBR_EFF_DT,

    IA_OASIS_TOT_PROV_CUR_D.PROV_ID AS BEN_BILLING_PROV,

    IA_OASIS_TOT_PROV_CUR_D.PROV_ID AS BEN_ATTENDING_PROV,

    IA_OASIS_TOT_PROV_CUR_D.PROV_ID AS BEN_PCP_NUMBER,

    IA_OASIS_TOT_PROV_CUR_D.PROV_ID AS BEN_IPA_NUMBER,

    EDW. CLM_CAPITN_F.CLM_CAPITN_FRST_SVC_DT_SK,-CAL_DT Dimension is associated and had CAL_DT_SK column

    EDW. CLM_CAPITN_F.CLM_CAPITN_LST_PRCS_DT_SK,-CAL_DT Dimension is associated and had CAL_DT_SK column

    EDW. CLM_CAPITN_F.CLM_CAPITN_FRST_LOC_DT_SK,-CAL_DT Dimension is associated and had CAL_DT_SK column

    EDW. CLM_CAPITN_F.CLM_CAPITN_CHK_DT_SK,-CAL_DT Dimension is associated and had CAL_DT_SK column

    EDW. CLM_CAPITN_F.CLM_CAPITN_ADMIT_DT_SK,-CAL_DT Dimension is associated and had CAL_DT_SK column

    EDW. CLM_CAPITN_F.CLM_CAPITN_ICN,

    EDW. CLM_CAPITN_F.CLM_CAPITN_LN_NBR,

    EDW. CLM_CAPITN_F.CLM_CAPITN_PD_AMT,

    EDW. CLM_CAPITN_F.CLM_CAPITN_BIL_AMT,

    EDW. CLM_CAPITN_F.CLM_CAPITN_ALLOW_AMT,

    EDW. CLM_CAPITN_F.CLM_CAPITN_ALLOW_DY_NBR,

    EDW. CLM_CAPITN_F.CLM_CAPITN_UNT_OF_SVC_QTY,

    EDW. CLM_CAPITN_F.CLM_CAPITN_COB_SAV_AMT,

    EDW. CLM_CAPITN_F.CLM_CAPITN_COINS_AMT,

    EDW. CLM_CAPITN_F.CLM_CAPITN_RSN_CHRG_AMT,

    EDW. CLM_CAPITN_F.CLM_CAPITN_WTHLD_AMT,

    EDW. CLM_CAPITN_F.CLM_CAPITN_DED_AMT,

    EDW. CLM_CAPITN_F.CLM_CAPITN_SANCT_LAT_CALL_AMT,

    EDW. CLM_CAPITN_F.CLM_CAPITN_SANCT_DED_PNLTY_AMT,

    EDW. CLM_CAPITN_F.CLM_CAPITN_SANCT_COPAY_AMT,

    EDW. CLM_CAPITN_F.CLM_CAPITN_SANCT_PCT_COPAY_AMT,

    EDW. CLM_CAPITN_F.SANCT_FLAT_DLR_COPAY_AMT,

    EDW. CLM_CAPITN_F.SANCT_HMO_ACCUM_COPAY_AMT,

    EDW. CLM_CAPITN_F.CLM_CAPITN_TOT_NEGOT_RT_AMT,

    EDW. CLM_CAPITN_F.CLM_CAPITN_LN_NEGOT_RT_AMT,

    EDW. CLM_CAPITN_F.CLM_CAPITN_SEC_ALLOW_AMT,

    EDW. CLM_CAPITN_F.CLM_CAPITN_GATWY_ID,

    EDW. CLM_CAPITN_F.CLM_CAPITN_PROV_AGR_ID,

    EDW. CLM_CAPITN_F.CLM_CAPITN_F_SNPSHOT_MO_SK

    OF EDW. Partition CLM_CAPITN_F (JAN2012),

    EDW. IA_OASIS_GRP_CAPTR_D IA_OASIS_GRP_CAPTR_D,

    EDW. IA_OASIS_MBR_CAPTR_D IA_OASIS_MBR_CAPTR_D,

    EDW. IA_OASIS_CLM_SPEC_D IA_OASIS_CLM_SPEC_D,

    EDW. IA_OASIS_CAPITN_CLM_D IA_OASIS_CAPITN_CLM_D,

    EDW. CLM_CLS_PLN_CAPTR_D CLM_CLS_PLN_CAPTR_D,

    EDW. OASIS_CLM_MBR_XREF OASIS_CLM_MBR_XREF,

    EDW. IA_OASIS_TOT_PROV_CUR_D IA_OASIS_TOT_PROV_CUR_D

    WHERE

    EDW. CLM_CAPITN_F.CLM_CAPITN_IA_GRP_CAPTR_EDW_SK = IA_OASIS_GRP_CAPTR_D.GRP_CAPTR_EDW_SK (+) and

    EDW. CLM_CAPITN_F.CLM_CAPITN_IA_MBR_CAPTR_EDW_SK = IA_OASIS_MBR_CAPTR_D.MBR_CAPTR_EDW_SK and

    EDW. CLM_CAPITN_F.CLM_CAPITN_IA_CLM_SPEC_EDW_SK = IA_OASIS_CLM_SPEC_D.CLM_SPEC_EDW_SK and

    EDW. CLM_CAPITN_F.CLM_CAPITN_IA_CLM_EDW_SK = IA_OASIS_CAPITN_CLM_D.CLM_EDW_SK and

    EDW. CLM_CAPITN_F.CLM_CLS_PLN_CAPTR_EDW_SK = CLM_CLS_PLN_CAPTR_D.CLM_CLS_PLN_CAPTR_EDW_SK and

    EDW. CLM_CAPITN_F.MBR_XREF_SK = OASIS_CLM_MBR_XREF. MBR_XREF_SK (+) and

    EDW. CLM_CAPITN_F.CLM_CAPITN_IA_BIL_PROV_EDW_SK = IA_OASIS_TOT_PROV_CUR_D.PROV_EDW_SK and

    EDW. CLM_CAPITN_F.CLM_CAPITN_ATTND_PROV_EDW_SK = IA_OASIS_TOT_PROV_CUR_D.PROV_EDW_SK and

    EDW. CLM_CAPITN_F.CLM_CAPITN_IA_PCP_EDW_SK = IA_OASIS_TOT_PROV_CUR_D.PROV_EDW_SK and

    EDW. CLM_CAPITN_F.CLM_CAPITN_IA_IPA_PROV_EDW_SK = IA_OASIS_TOT_PROV_CUR_D.PROV_EDW_SK (+);

    --------------------------------------------------------------------------------

    Oracle Database 11 g Enterprise Edition Release 11.2.0.4.0 - 64 bit Production

    PL/SQL Release 11.2.0.4.0 - Production

    CORE Production 11.2.0.4.0

    AMT for Solaris: 11.2.0.4.0 - Production Version

    NLSRTL Version 11.2.0.4.0 - Production

    VALUE OF TYPE NAME

    ------------------------------------ ----------- ------------------------------

    OPTIMIZER_CAPTURE_SQL_PLAN_BASELINES boolean FALSE

    optimizer_dynamic_sampling integer 2

    optimizer_features_enable string 11.2.0.4

    optimizer_index_caching integer 0

    OPTIMIZER_INDEX_COST_ADJ integer 100

    the string ALL_ROWS optimizer_mode

    optimizer_secure_view_merging Boolean TRUE

    optimizer_use_invisible_indexes boolean FALSE

    optimizer_use_pending_statistics boolean FALSE

    optimizer_use_sql_plan_baselines Boolean TRUE

    Please suggest how this can be optimized.

    VALUE OF TYPE NAME

    ------------------------------------ ----------- ------------------------------

    db_file_multiblock_read_count integer 32

    VALUE OF TYPE NAME

    ------------------------------------ ----------- ------------------------------

    DB_BLOCK_SIZE integer 32768

    CURSOR_SHARING EXACT string

  • export data from the table in xml files

    Hello

    This thread to get your opinion on how export data tables in a file xml containing the data and another (xsd) that contains a structure of the table.
    For example, I have a datamart with 3 dimensions and a fact table. The idea is to have an xml file with data from the fact table, a file xsd with the structure of the fact table, an xml file that contains the data of the 3 dimensions and an xsd file that contains the definition of all the 3 dimensions. So a xml file fact table, a single file xml combining all of the dimension, the fact table in the file a xsd and an xsd file combining all of the dimension.

    I never have an idea on how to do it, but I would like to have for your advise on how you would.

    Thank you in advance.

    You are more or less in the same situation as me, I guess, about the "ORA-01426 digital infinity. I tried to export through UTL_FILE, content of the relational table with 998 columns. You get very quickly in this case in these ORA-errors, even if you work with solutions CLOB, while trying to concatinate the column into a CSV string data. Oracle has the nasty habbit in some of its packages / code to "assume" intelligent solutions and converts data types implicitly temporarily while trying to concatinate these data in the column to 1 string.

    The second part in the Kingdom of PL/SQL, it is he's trying to put everything in a buffer, which has a maximum of 65 k or 32 k, so break things up. In the end I just solved it via see all as a BLOB and writing to file as such. I'm guessing that the ORA-error is related to these problems of conversion/datatype buffer / implicit in the official packages of Oracle DBMS.

    Fun here is that this table 998 column came from XML source (aka "how SOA can make things very complicated and non-performing"). I have now 2 different solutions 'write data to CSV' in my packages, I use this situation to 998 column (but no idea if ever I get this performance, for example, using table collections in this scenario will explode the PGA in this case). The only solution that would work in my case is a better physical design of the environment, but currently I wonder not, engaged, as an architect so do not have a position to impose it.

    -- ---------------------------------------------------------------------------
    -- PROCEDURE CREATE_LARGE_CSV
    -- ---------------------------------------------------------------------------
    PROCEDURE create_large_csv(
        p_sql         IN VARCHAR2 ,
        p_dir         IN VARCHAR2 ,
        p_header_file IN VARCHAR2 ,
        p_gen_header  IN BOOLEAN := FALSE,
        p_prefix      IN VARCHAR2 := NULL,
        p_delimiter   IN VARCHAR2 DEFAULT '|',
        p_dateformat  IN VARCHAR2 DEFAULT 'YYYYMMDD',
        p_data_file   IN VARCHAR2 := NULL,
        p_utl_wra     IN VARCHAR2 := 'wb')
    IS
      v_finaltxt CLOB;
      v_v_val VARCHAR2(4000);
      v_n_val NUMBER;
      v_d_val DATE;
      v_ret   NUMBER;
      c       NUMBER;
      d       NUMBER;
      col_cnt INTEGER;
      f       BOOLEAN;
      rec_tab DBMS_SQL.DESC_TAB;
      col_num NUMBER;
      v_filehandle UTL_FILE.FILE_TYPE;
      v_samefile BOOLEAN      := (NVL(p_data_file,p_header_file) = p_header_file);
      v_CRLF raw(2)           := HEXTORAW('0D0A');
      v_chunksize pls_integer := 8191 - UTL_RAW.LENGTH( v_CRLF );
    BEGIN
      c := DBMS_SQL.OPEN_CURSOR;
      DBMS_SQL.PARSE(c, p_sql, DBMS_SQL.NATIVE);
      DBMS_SQL.DESCRIBE_COLUMNS(c, col_cnt, rec_tab);
      --
      FOR j IN 1..col_cnt
      LOOP
        CASE rec_tab(j).col_type
        WHEN 1 THEN
          DBMS_SQL.DEFINE_COLUMN(c,j,v_v_val,4000);
        WHEN 2 THEN
          DBMS_SQL.DEFINE_COLUMN(c,j,v_n_val);
        WHEN 12 THEN
          DBMS_SQL.DEFINE_COLUMN(c,j,v_d_val);
        ELSE
          DBMS_SQL.DEFINE_COLUMN(c,j,v_v_val,4000);
        END CASE;
      END LOOP;
      -- --------------------------------------
      -- This part outputs the HEADER if needed
      -- --------------------------------------
      v_filehandle := UTL_FILE.FOPEN(upper(p_dir),p_header_file,p_utl_wra,32767);
      --
      IF p_gen_header = TRUE THEN
        FOR j        IN 1..col_cnt
        LOOP
          v_finaltxt := ltrim(v_finaltxt||p_delimiter||lower(rec_tab(j).col_name),p_delimiter);
        END LOOP;
        --
        -- Adding prefix if needed
        IF p_prefix IS NULL THEN
          UTL_FILE.PUT_LINE(v_filehandle, v_finaltxt);
        ELSE
          v_finaltxt := 'p_prefix'||p_delimiter||v_finaltxt;
          UTL_FILE.PUT_LINE(v_filehandle, v_finaltxt);
        END IF;
        --
        -- Creating creating seperate header file if requested
        IF NOT v_samefile THEN
          UTL_FILE.FCLOSE(v_filehandle);
        END IF;
      END IF;
      -- --------------------------------------
      -- This part outputs the DATA to file
      -- --------------------------------------
      IF NOT v_samefile THEN
        v_filehandle := UTL_FILE.FOPEN(upper(p_dir),p_data_file,p_utl_wra,32767);
      END IF;
      --
      d := DBMS_SQL.EXECUTE(c);
      LOOP
        v_ret := DBMS_SQL.FETCH_ROWS(c);
        EXIT
      WHEN v_ret    = 0;
        v_finaltxt := NULL;
        FOR j      IN 1..col_cnt
        LOOP
          CASE rec_tab(j).col_type
          WHEN 1 THEN
            -- VARCHAR2
            DBMS_SQL.COLUMN_VALUE(c,j,v_v_val);
            v_finaltxt := v_finaltxt || p_delimiter || v_v_val;
          WHEN 2 THEN
            -- NUMBER
            DBMS_SQL.COLUMN_VALUE(c,j,v_n_val);
            v_finaltxt := v_finaltxt || p_delimiter || TO_CHAR(v_n_val);
          WHEN 12 THEN
            -- DATE
            DBMS_SQL.COLUMN_VALUE(c,j,v_d_val);
            v_finaltxt := v_finaltxt || p_delimiter || TO_CHAR(v_d_val,p_dateformat);
          ELSE
            v_finaltxt := v_finaltxt || p_delimiter || v_v_val;
          END CASE;
        END LOOP;
        --
        v_finaltxt               := p_prefix || v_finaltxt;
        IF SUBSTR(v_finaltxt,1,1) = p_delimiter THEN
          v_finaltxt             := SUBSTR(v_finaltxt,2);
        END IF;
        --
        FOR i IN 1 .. ceil( LENGTH( v_finaltxt ) / v_chunksize )
        LOOP
          UTL_FILE.PUT_RAW( v_filehandle, utl_raw.cast_to_raw( SUBSTR( v_finaltxt, ( i - 1 ) * v_chunksize + 1, v_chunksize ) ), TRUE );
        END LOOP;
        UTL_FILE.PUT_RAW( v_filehandle, v_CRLF );
        --
      END LOOP;
      UTL_FILE.FCLOSE(v_filehandle);
      DBMS_SQL.CLOSE_CURSOR(c);
    END create_large_csv;
    
  • XML from the Oracle Table data

    Hi all

    I'm new to this network. I'm also new to oracle XML package. I want a help with the query below.

    CREATE TABLE EMP (ID NUMBER PRIMARY KEY, NAME VARCHAR2 (10), TELEPHONE NUMBER);

    INSERT INTO EMP (ID, NAME, PHONE) VALUES (11, 'Joy', 1234);
    INSERT INTO EMP (ID, NAME, PHONE) VALUES (22, 'Mike', 5678).
    INSERT INTO EMP (ID, NAME, PHONE) VALUES (33, "Jason", NULL);
    COMMIT;

    I want to export data from the EMP table in an XML file with the format below.

    Power required:

    <? XML version = "1.0" encoding = "UTF-8"? > < Joy STATICDATA > < EMP > < ID > 11 < /ID > < NAME > < / NAME > < / EMP > < / STATICDATA >
    <? XML version = "1.0" encoding = "UTF-8"? > < Mike STATICDATA > < EMP > < ID > 22 < /ID > < NAME > < / NAME > < / EMP > < / STATICDATA >
    <? XML version = "1.0" encoding = "UTF-8"? > < Jason STATICDATA > < EMP > < ID > 33 < /ID > < NAME > < / NAME > < / EMP > < / STATICDATA >

    I used some XML functions and you wrote the following query.

    Select XMLROOT (XMLELEMENT (staticdata, XMLELEMENT (EMP, XMLELEMENT(ID,ID), XMLELEMENT(NAME,NAME))), version "1.0" encoding = "UTF - 8') xml EMP;

    my query output:

    <? XML version = "1.0" encoding = "UTF-8"? >
    < STATICDATA >
    < EMP >
    < ID > 11 / < ID >
    Joy of < NAME > < / NAME >
    < / EMP >
    < / STATICDATA >
    <? XML version = "1.0" encoding = "UTF-8"? >
    < STATICDATA >
    < EMP >
    < ID > 22 / < ID >
    < NAME > Mike < / NAME >
    < / EMP >
    < / STATICDATA >
    <? XML version = "1.0" encoding = "UTF-8"? >
    < STATICDATA >
    < EMP >
    < ID > 33 / < ID >
    Jason < NAME > < / NAME >
    < / EMP >
    < / STATICDATA >


    But I want the out as the power required above. all records in a single line. can someone help me achieve the desired output. also can I export all columns of the table with something like select * from the table in the XML file?

    Thank you
    Delobelle

    Don't know why you need it on a single line, but you could:

    Select XMLTYPE (REGEXP_REPLACE (XMLROOT (XMLELEMENT (staticdata, XMLELEMENT (EMP, XMLELEMENT(ID,ID), XMLELEMENT(NAME,NAME))), version "1.0" encoding = "UTF - 8'), CHR (10) |)) ' *<><'))>
    FROM EMP;

    SY.

  • Select values from the db1 table and insert into the DB2 table

    Hello

    I have three databases oracle running in three different machines. their ip address is different. among the DB can access databases. (means am able to select values and insert values into tables individually.)

    I need to extract data from the DB1 table (ip say DB1 is 10.10.10.10 and the user is DB1user and the table is DB1user_table) and insert the values into DB2 table (say ip DB2 is 11.11.11.11 and the user is DB2user and table DB2user_table) of DB3 that is to have access to the two IPs DB.

    How do I do this

    Edited by: Aemunathan on February 10, 2010 23:12

    Depending on the amount of data must be moved between DB1 and DB2, and the frequency at which this should happen, you might consider the SQL * COPY more control. I think it's very useful for one-off tasks little, so I can live within its limits of the data type. More http://download.oracle.com/docs/cd/E11882_01/server.112/e10823/apb.htm#i641251.

    Change some parameter of sqlplus session are almost mandatory in order to get decent transfer rates. Tuning ARRAYSIZE and COPYCOMMIT can make a huge difference in flow. LONG change may be necessary, too, depending on your data. The documentation offers these notes on use:

    To activate the copy of data between Oracle and databases non-Oracle, NUMBER of columns is replaced by DECIMAL columns in the destination table. Therefore, if you are copying between Oracle databases, a NUMBER column with no precision will become a DECIMAL column (38). When copying between Oracle databases, you must use SQL commands (CREATE TABLE AS and INSERTION), or you must make sure that your columns have a specified precision.

    SQL * the VALUE LONGER variable limits the length of the LONG column you are copying. If all LONG columns contain data exceeds the value of LONG, COPY truncates the data.

    SQL * Plus performs a validation at the end of each successful COPY. If you set the SQL * variable more COPYCOMMIT DEFINED to a value positive n, SQL * Plus performs a validation after copying all lots n of records. The SQL * Plus ARRAYSIZE variable SET determines the size of a batch.

    Some operating environments require that the service names be placed between double quotes.

    From a SQL * Plus term on DB3, can resemble the command to move all content from my_table in DB1 to the same table in DB2

    COPY from user1/pass1@DB1 to user2/pass2@DB2 -
    INSERT INTO my_table -
    USING select * from my_table
    

    Note the SQL code * more line-continuation character ' - '. It is used to escape the newline character in a SQL * Plus command if you do not have to type all on one line. I use it all the time with this command, but I can't locate the documentation on that right now. Maybe someone else can put their finger on it.

    There are other ways to accomplish what the command copy and it is not without its quirks and limitations, but I find that there is usefulness in an Oracle Toolbox.

Maybe you are looking for

  • Random BSOD - Toshiba Qosmio X 500 13R (Windows 7 Home Premium x 64) have min

    I had some problems with random BSOD on my laptop.The laptop itself is relatively new, bought in March of this year, very good model but refently that I started to have problems. One day I closed the laptop and reflections he entered mode 'sleep' but

  • Windows install not installed

    I went to the Forum to see if I could get an answer, but nothing helped. I tried to stop and then restart the windows installation program, did not work. have you the sfc/scan did not work. always get the "windows install not installed correctly". Wh

  • Can't understand why I have a notice at startup driver

    For the last two months, when I start my PC, I get the familiar tone, like a pilot tries to install.  Hardware wise, the only change that I did, is to move from a PS/2 keyboard to an optical keyboard.  The driver is installed correctly, in fact, I ev

  • How can I get all the permissions Admin with Windows 8?

    I have recently installed Windows 8 on a used laptop that I bought and I'm trying to clean it up, but he always tells me I'm not allowed to watch even some files. How can I get all the PERMISSIONS ADMINISTRATOR?

  • BlackBerry Smartphones Saving videos from Web browser to storm to Media Card of the device

    I went on Youtube in my Storm browser, how do I record videos to youtube for the storm card holders? I Storm setting to record the video in Media Card. I managed to "bookmark" a neighborhood of youtube, so I know where to find. (The storm browser)