Distinguish between the different forms of constraint connected index

I create two similar tables
create table t_demo1 (id1 number(10));
create table t_demo2 (id2 number(10));
On the first table I first create a unique index with nologging option and then I created a primary key constraint, that uses this index
create unique index pk_demo1 on t_demo1(id1) nologging;
alter table t_demo1 add constraint pk_demo1 primary key (id1) using index;
On the second table I first create a primary key constraint and then I change the implicit index created in nologging mode
alter table t_demo2 add constraint pk_demo2 primary key (id2);
alter index pk_demo2 nologging;
In the data dictionary tables, indexes and constraints are very similar. For example, the following queries:
alter session set nls_date_format = 'dd.mm.yyyy hh24:mi:ss';

select  
  substr(object_name,1,15) object_name, 
  object_type, 
  created, 
  last_ddl_time
from user_objects
where object_name like '%DEMO%';

OBJECT_NAME     OBJECT_TYPE     CREATED             LAST_DDL_TIME
--------------- --------------- ------------------- -------------------
PK_DEMO1        INDEX           11.04.2011 12:23:55 11.04.2011 12:23:55
PK_DEMO2        INDEX           11.04.2011 12:23:55 11.04.2011 12:23:55
T_DEMO1         TABLE           11.04.2011 12:23:55 11.04.2011 12:23:55
T_DEMO2         TABLE           11.04.2011 12:23:55 11.04.2011 12:23:55

select 
  index_name,
  table_name,
  uniqueness,
  tablespace_name,
  logging
from user_indexes where index_name like '%DEMO%';

INDEX_NAME               TABLE_NAME               UNIQUENES TABLESPACE_NAME          LOG
------------------------ ------------------------ --------- ------------------------ ---
PK_DEMO1                 T_DEMO1                  UNIQUE    USERS                    NO
PK_DEMO2                 T_DEMO2                  UNIQUE    USERS                    NO

select 
     owner, 
     constraint_name, 
     constraint_type, 
     index_owner, 
     index_name
from sys.dba_constraints
where constraint_name like '%DEMO%';

OWNER                 CONSTRAINT_NAME         C INDEX_OWNER                  INDEX_NAME
--------------------- ----------------------- ------------------------------ ------------------------------
SCOTT                 PK_DEMO1                P SCOTT                        PK_DEMO1
SCOTT                 PK_DEMO2                P SCOTT                        PK_DEMO2
But they behave different. When I disable and enable the constraint the second index fell and created again, as it can be seen in the next hour of creation. And this index loses its setting nologging after deactivation and activation of the constraint. However, the first index remains unchanged by this change in the constraint:
alter table t_demo1 modify constraint pk_demo1 disable;
alter table t_demo2 modify constraint pk_demo2 disable;

alter table t_demo1 modify constraint pk_demo1 enable;
alter table t_demo2 modify constraint pk_demo2 enable;

select  
  substr(object_name,1,15) object_name, 
  object_type, 
  created, 
  last_ddl_time
from user_objects
where object_name like '%DEMO%';

OBJECT_NAME     OBJECT_TYPE         CREATED             LAST_DDL_TIME
--------------- ------------------- ------------------- -------------------
PK_DEMO1        INDEX               11.04.2011 12:23:55 11.04.2011 12:23:55
PK_DEMO2        INDEX               11.04.2011 12:30:30 11.04.2011 12:30:30
T_DEMO1         TABLE               11.04.2011 12:23:55 11.04.2011 12:30:29
T_DEMO2         TABLE               11.04.2011 12:23:55 11.04.2011 12:30:29

select 
  index_name,
  table_name,
  uniqueness,
  tablespace_name,
  logging
from user_indexes where index_name like '%DEMO%';

INDEX_NAME                     TABLE_NAME                     UNIQUENES TABLESPACE_NAME                LOG
------------------------------ ------------------------------ --------- ------------------------------ ---
PK_DEMO1                       T_DEMO1                        UNIQUE    USERS                          NO
PK_DEMO2                       T_DEMO2                        UNIQUE    USERS                          YES
I checked it on a database of 10.2 and 11.1. The behaviuor is the same. My main question is, where can I find information in the dictionary of data in which of the two ways a constraint and an index conencted where created without deactivation and activation of the constraint.

Published by: user1775992 on 22.11.2011 03:32

Getting back to the original question for a moment, that I remember trying to find it earlier.

I don't know if she is exposed through a decent data dictionary view anywhere, I certainly have to find one at the time, however I came to the conclusion this implicit attribute of create/remove an index has been revealed by the ILO 13th column of PROPERTY in SYS. IND$

Using your two tables to test above for example, I get this:

SQL> conn / as sysdba
Connected.
SQL> select object_name,object_id from dba_objects
  2   where owner='SCOTT' and object_name like 'PK_DEMO%'
  3   order by 1;

OBJECT_NAME OBJECT_ID
----------- ---------
PK_DEMO1        13333
PK_DEMO2        13334

SQL> select obj#, property from ind$
  2   where obj# in (13333,13334)
  3   order by 1;

      OBJ#   PROPERTY
---------- ----------
     13333          1
     13334       4097

so, for PK_DEMO2, I interpret 4097 = 1 + 4096 to indicate 'unique' + 'implicitly created.

Tags: Database

Similar Questions

  • Difference in size between the 2 forms...

    Good day all.

    This may seem like a strange question, and somehow, I guess it is. But now.

    Difference in size form?

    I've drawn 2 forms that have all the same fields. The only difference between the 2 forms is 1 is English and the other is French.

    The French form is 1.4 MB and English are 2.1 MB.

    I had a quick glance and it doesn't seem to be something different between the 2 forms except as I said the language.

    The area using this form asked whether it would be possible to reduce the size of the shape as yours to send multiple copies (20 this time) and is limited to the total MB in an email.

    I use version 8.05.2073 of the life cycle of the designer

    Thank you all

    Chomp

    You can désincorporer fonts? If you do not need, also disable accessibility. Everything in file > form > Save Options.

  • distinguish between the indicator and controls using property nodes

    How can I distinguish between controls and indicators property nodes?

    I find that the controls and lights on the Panel before all come from the same class... a digital control and a digital indicator share the same properties... I am trying to find a way to distinguish between the two.  I would like to be able to analyse a reference VI pull only the references to the "controls" or "indicators" on the front panel... but when I try this, I shoot all...

    Although I found this case a knot of property ' control value: get all ' referral of VI, I can choose between only indicator or only the values of the controls... it's close to what I want, but instead, I like to shoot only the references to the Group of the "indicators" or only the references to the groups 'controls '.

    does anyone know if there is a simple way to do this?

    Thank you very much!

    Suprisigly to search for flags search controls

  • Distinguish between the cursors in a Structure of the event

    I have a XY Chart on the front of my Panal with 2 active cursors. I've also enabled Anotation. Anyway is to distinguish between the imprecateurs in a single structure. Currently, when all the sliders are moved structures even fires.

    Thank you

    Unless you have been bitten by this behavior, do not realize that the TWO sliders and annotations will movement of cursor events fire.  CursIdx will return the index cursor or annotation.  A workaround, it is that the cursor type? event fires only to win the real cursor, so I add a shift register and a real constant on the cursor Grab the wire? event.  In which case the cursor to move, I can use the Boolean value to determine whether it is #CursIdx or #CursIdx that is moved cursor annotation.

  • What is the difference between the different photo editing programs?

    What is the difference between the different photo editing programs? Photos and lightroom

    Hikristip19200817,

    Greetings.

    Concerning

    Rohit

  • Switching between the different connections of databases in ADF

    All,

    I have 4 different databases with the same structure of shema, is possible to switch to the different database connection at run time?

    Thank you
    Mahesh

    Mahesh,

    You have found the answer [url http://forums.oracle.com/forums/thread.jspa?threadID=1118396&tstart=0] by research, apparently.

    John

  • Using variables shared between the different versions of labview

    Hello

    I look at the use of variables shared between two different versions of LabVIEW. We have a 2 of the PXI system and a single PC. We are currently updating the code on the PXI system to 2014, but the PC still work 8.2.1. We now need a map of ARINC-429, which is executed only 2009 +, that is why we are to day. First tests show that shared variables do not communicate between the two. I think that the reason may be that the PXI running the version of variable motor 2014 shared, while the PC is running 8.2.1, but I don't know if it is precisely for this reason it does not work. Is there a way to communicate between two different versions of LabVIEW with shared Variables?

    Thank you!

    SOLUTION

    There are two key elements in the process of installing software that are essential for PXI to communicate with another version of LabVIEW: Legacy Server Support Variable and Variable Support of Legacy Protocol. The first, in charge of the Protocol, was automatically installed through the selection of the other ingredients (although I do not know which triggered its installation). The second has been nested in the Protocol, but was not selected automatically.

    The Protocol allows the PXI 2014 connect to shared variables hosted by devices 8.6 or an earlier versions, while the server allows before 2009 devices to communicate to shared variables hosted on PXI of 2014 (which was the initial problem)!

  • Option wireless "walk between the conference rooms"? (maintain connection for 10 minutes)

    I feel that I read on this whne I was looking at the x 220 customers. Is this an option - and if not is it possible to recreate it in function in power options?

    To reiterate that it is: it allows you to close the lid of the laptop, to walk in a different room, open the cover and still be connected to your wireless network.

    Thank you.

    Shiren salvation!

    'S called it InstantResume, and the setting because it is in power, under use Manager the power base, or Global mode in Advanced Mode.

    Tell us how it works for you.

  • Switch between the Web Forms instantly and Windows 7

    Hi Newbie here.

    I bought a HP mini netbook for my wife for Christmas and anticipate one of his first questions when she opens Christmas day.

    The startup is very fast, connects directly to the instant web screen (and makes me a fast wireless connection - lucky) once in the Web now, by clicking on the icon windows closed its doors the instant web and you expect, boots up to the appearance of windows 7 things.

    However, it doesn't seem to be a shortcut/icon on the windows screen to switch quickly to the instant web.

    I ended up having to turn off and on so he can initiate instant web. Surely, it is not how it has been designed to work so my question--

    "When working in Windows 7 is an icon or a key combination shortcut that will bring instant Web screen back up again without having to re - start?

    Thank you

    MAME abdou

    PS. Sorry cannot list model etc because it has everything wrapped up now but thought it's probably a system/software between Windows 7 and HP Instant Web problem and thought someone may have already met it. If this isn't the case, I'll wait until she opened on Christmas day and list the required details.

    Sorting... in a way

    You simply can not pass successively Instant Web to Windows 7 and back again - period.

    Once in windows, you will need to restart the ' puter for it to start instant Web back up again - not very well thought in my humble OPINION.

    Oh it's a HP Mini 110 is said by the way.

    Mike

  • Difference between the immediate and normal constraint primary key value

    Hello
    I tried the following to understand the difference between immediate constraint set and the primary normal stress
    create table cust (cust_id number ,cust_name varchar2(25));
    
    alter table cust add constraint cust_id_pk primary key(cust_id)
    deferrable initially deferred;
    
    SQL> insert into cust values(1,'raj');
    
    1 row created.
    
    SQL> insert into cust values(1,'sam');
    
    1 row created.
    
    SQL> commit;
    commit
    *
    ERROR at line 1:
    ORA-02091: transaction rolled back
    ORA-00001: unique constraint (SCOTT.CUST_ID_PK) violated
    
    
    SQL> set constraint cust_id_pk immediate;
    
    Constraint set.
    
    SQL> 
    SQL> insert into cust values(1,'lata');
    
    1 row created.
    
    SQL> insert into cust values(1,'lata');
    insert into cust values(1,'lata')
    *
    ERROR at line 1:
    ORA-00001: unique constraint (SCOTT.CUST_ID_PK) violated
    The above error violation even works for a normal constraints primary / unique

    So what is the use of the command

    immediate Set constraint cust_id_pk;


    Thank you

    So what is the use of the command

    In fact, the use of the command when you're dealing with foreign key constraints. As explained below

     SQL>  create table cust (cust_id number ,cust_name varchar2(25), supplier_id number);
    
    Table created.
    
    SQL> create table supp(supplier_id number);
    
    Table created.
    
    SQL> alter table supp add primary key(supplier_id);
    
    Table altered.
    
    SQL>  ALTER TABLE cust ADD CONSTRAINT fk_cust_supp
      2    FOREIGN KEY (supplier_id)
      3    REFERENCES supp (supplier_id)
      4    DEFERRABLE
      5    INITIALLY deferred;
    
    Table altered.
    

    To insert a line in the cust table without entering Ref provider table supp

    SQL> insert into cust values(1,'raj',111);
    
    1 row created.
    

    Line by 1 created successfully (attention this validation is not yet done) because the foreign key constraint is initially deferred.

    Now

    SQL> set constraint fk_cust_supp immediate;
    set constraint fk_cust_supp immediate
    *
    ERROR at line 1:
    ORA-02291: integrity constraint (OWNER.FK_CUST_SUPP) violated - parent key not found
    

    Since Ref no outs in extra table so forced provider violated.

    allows to insert a row in the vendor corresponding with the vendor id in the cust table id

    SQL> insert into supp values(111);
    
    1 row created.
    

    Now, try

    SQL> set constraint fk_cust_supp immediate;
    
    Constraint set.
    

    but now, if you try to insert a row into the table cust without this vendor id in table supp, it give error (since now forced to check from the inserted row, even will not wait for commit)

    SQL>  insert into cust values(3,'bob',222);
     insert into cust values(3,'bob',222)
    *
    ERROR at line 1:
    ORA-02291: integrity constraint (OWNER.FK_CUST_SUPP) violated - parent key not found
    

    Also, in the case of primary key constraints will be checked when you perform VALIDATION, otherwise that it will allow you to insert the second row.

    SQL> alter table cust add constraint cust_id_pk primary key(cust_id)
      2  deferrable initially deferred;
    
    Table altered.
    
    SQL> insert into cust values(1,'raj');
    
    1 row created.
    
    SQL> insert into cust values(1,'sam');
    
    1 row created.
    
    SQL> insert into cust values(1,'bob');
    
    1 row created.
    
    SQL> commit;
    commit
    *
    ERROR at line 1:
    ORA-02091: transaction rolled back
    ORA-00001: unique constraint (OWNER.CUST_ID_PK) violated
    
    SQL> 
    
    SQL> drop table cust;
    
    Table dropped.
    
    SQL> create table cust (cust_id number ,cust_name varchar2(25));
    
    Table created.
    
    SQL> alter table cust add constraint cust_id_pk primary key(cust_id)
      2  deferrable initially deferred;
    
    Table altered.
    
    SQL> set constraint cust_id_pk immediate;
    
    Constraint set.
    
    SQL> insert into cust values(1,'raj');
    
    1 row created.
    
    SQL>  insert into cust values(1,'sam');
     insert into cust values(1,'sam')
    *
    ERROR at line 1:
    ORA-00001: unique constraint (OWNER.CUST_ID_PK) violated
    
    SQL> 
    

    Published by: Azhar Husain on July 27, 2011 12:01

  • Interaction between the two forms

    Hi all

    IAM a beginner to this Summit. I have a problem with the interaction between the forms.

    I have a relationship with the table where I have included for each line like this radio button
    "Select APEX_ITEM. RADIOGROUP (1, r.ID,'7 ') as P10_RG,
    r.ID,
    r.Ref_ID,
    r.Customer_name,
    p.Name as product,
    s.Name as Source,
    c.Name as country,
    of product p, requirements_maintenance r, source, country c

    so if I have a radio button on a particular line and you click a tab in the header, go to another form where I should be able to get details of the line I selected in the previous form.

    I tried several ways to get the values using javascript, but it grabbed nulls as
    $x('P10_RG_0').value but I do not get it.
    Please can someone me wat is the solution for this?

    Hello

    If your next page (ie the redirected page) is page no. 10

    "Select APEX_ITEM. RADIOGROUP (1, r.ID, 'null', null,'onclick = "document.location.href =" f? p = & APP_ID.: * 10 *: & SESSION.: REGION3: & DEBUG.:RP:P10_R_ID:' | r.ID |'") » ''") "

    and on page no. 10 have an element named P10_R_ID as a hidden item.

    Good bye
    Sonny_starck

  • Is there anyway to shared a connection between the different shell?

    Let's say I first make a Connect-VIServer, so I can do a Get-VMHost.  However, if I open another window powershell, the previously connected VIServer no longer exists.  Is anyway to fix this?  I'm working on a script multiprocessu and I really want to connect/disconnect each time.

    This is a normal behavior, if you start a new session of PS, you have a new environment.

    Any variables that you have in a specific session of the PS, are unique to this session. They are not copied into a new session you launch from the first session.

    You can start new sessions of in a session of PS by running the powershell.exe command or by running the Start-Job cmdlet.

    And you can for example use environment variables to pass information between scripts.

  • SQl query to find out time between the different lines of transactions

    (See both images from an attachment to get the clear picture of the data and understand the question correctly.)

    I have a set of data like this in one of my paintings. (This is a simple representation of the original data.)

    Reference table1.jpg

    Id        | Type               | Value | Start_date | End_date

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

    ZTR0098 | ALLOW | 0 | 1 JUN | 2 JUN |

    ZTR0098 | ADTAX | 0 | 1 JUN | 2 JUN |

    ZTR0098 | MXTAX | 0 | 1 JUN | 9 JUN |

    ZTR0098 | ALLOW | 4. 3 JUN | 15 JUN |

    ZTR0098 | ADTAX | 44.00 | 3 JUN | 17-JUNE |

    ZTR0098 | MXTAX | 2. 10 JUN | 17-JUNE |

    ZTR0098 | ALLOW | 5. 16-JUNE | 20 JUN |

    ZTR0098 | ADTAX | 55,34 | 18 JUN | 22 JUN |

    ZTR0098 | MXTAX | 1. 18 JUN | 25 JUN |

    ZTR0098 | MXTAX | 6. 26 JUN | 31 AUG |

    ZTR0098 | ADTAX | 20.09. 23 JUN | 23 JUL |

    ZTR0098 | ALLOW | 8. 21 JUN | 31 AUG |

    ZTR0098 | ADTAX | 45. 24 JUL | 31 AUG |

    each line has a type and a rasthaus id to it. ID belongs to other parent tables. the value of each type is given, and the validity of each value is followed by a field start_date and end_date.

    All values start from 1 - JUN and expires on 31 - AUG. Now my requirement is to obtain a report that gives three columns for three different types (ALLOW, ADTAX and MXTAX) with combination of unique values in the effective time interval. Let me put the result below.

    Reference table2.jpg

    Id         | ALLOW | ADTAX | MXTAX |  Start_date | End_date

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

    ZTR0098 | 0 | 0 | 0 | 1 JUN | 2 JUN |

    ZTR0098 | 4. 44.00 | 0 | 3 JUN | 9 JUN |

    ZTR0098 | 4. 44.00 | 2. 10 JUN | 15 JUN |

    ZTR0098 | 5. 44.00 | 2. 16-JUNE | 17-JUNE |

    ZTR0098 | 5. 55,34 | 1. 18 JUN | 20 JUN |

    ZTR0098 | 8. 55,34 | 1. 21 JUN | 22 JUN |

    ZTR0098 | 8. 20.09. 1. 23 JUN | 25 JUN |

    ZTR0098 | 8. 20.09. 6. 26 JUN | 23 JUL |

    ZTR0098 | 8. 45. 6. 23 JUL | 31 AUG |

    As you can see there are no duplicate rows for a combination of (ALLOW, ADTAX and MXTAX) with their respective dates in force. resulting in the above table. the first step is to convert lines to the column which is pretty obvious to do that by grouping on start_date and end_date colum, but the real deal is the time interval during which the combination of the values (ALLOW, ADTAX, and MXTAX) has remained constant.

    I wrote under query using Group by.

    Select

    ID,

    NVL (max (decode (type, "ALLOW", value)), 0) as ALLOW

    NVL (max (decode (type, 'ADTAX', value)), 0) as ADTAX

    NVL (max (decode (type, 'MXTAX', value)), 0) as MXTAX

    Start_date,

    End_date

    from my_table

    Group of start_date, end_date, id

    start_date, end_date

    the results it gives are like this:

    Reference table3.jpg

    Id       | ALLOW | ADTAX | MXTAX |  Start_date | End_date

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

    ZTR0098 | 0 | 0 | 0 | 1 JUN | 2 JUN |

    ZTR0098 | 0 | 0 | 2. 1 JUN | 9 JUN |

    ZTR0098 | 4. 0 | 0 | 3 JUN | 15 JUN |

    ZTR0098 | 0 | 44.00 | 0 | 3 JUN | 17-JUNE |

    ZTR0098 | 0 | 0 | 2. 10 JUN | 17-JUNE |

    ZTR0098 | 5. 0 | 0 | 16-JUNE | 20 JUN |

    ZTR0098 | 0 | 55,34 | 0 | 18 JUN | 22 JUN |

    .   .

    . .

    like wise

    but I'm not able to determine the time intervals by using the SQL query.

    with

    Table1 as

    (select the id 'ZTR0098', 'ALLOW' type, 0 val, to_date('1-JUN','dd-MON') start_date, end_date Union to_date('2-JUN','dd-MON') double all the)

    Select 'ZTR0098', 'ADTAX', 0, to_date('1-JUN','dd-MON'), to_date('2-JUN','dd-MON') of all the double union

    Select 'ZTR0098', 'MXTAX', 0, to_date('1-JUN','dd-MON'), to_date('9-JUN','dd-MON') of all the double union

    Select 'ZTR0098', 'ALLOW', 4, to_date('3-JUN','dd-MON'), to_date('15-JUN','dd-MON') of all the double union

    Select 'ZTR0098', 'ADTAX', 44.00, to_date('3-JUN','dd-MON'), to_date('17-JUN','dd-MON') of all the double union

    Select 'ZTR0098', 'MXTAX', 2, to_date('10-JUN','dd-MON'), to_date('17-JUN','dd-MON') of all the double union

    Select 'ZTR0098', 'ALLOW', 5, to_date('16-JUN','dd-MON'), to_date('20-JUN','dd-MON') of all the double union

    Select 'ZTR0098', 'ADTAX', 55.34, to_date('18-JUN','dd-MON'), to_date('22-JUN','dd-MON') of all the double union

    Select 'ZTR0098', 'MXTAX', 1, to_date('18-JUN','dd-MON'), to_date('25-JUN','dd-MON') of all the double union

    Select 'ZTR0098', 'MXTAX', 6, to_date('26-JUN','dd-MON'), to_date('31-AUG','dd-MON') of all the double union

    Select 'ZTR0098', 'ADTAX', 20.09, to_date('23-JUN','dd-MON'), to_date('23-JUL','dd-MON') of all the double union

    Select 'ZTR0098', 'ALLOW', 8, to_date('21-JUN','dd-MON'), to_date('31-AUG','dd-MON') of all the double union

    Select 'ZTR0098', 'ADTAX', 45, to_date('24-JUL','dd-MON'), to_date('31-AUG','dd-MON') of the double

    ),

    days like

    (select level - 1 dte + to_date('1-JUN','dd-MON')

    of the double

    connect by level<= to_date('31-aug','dd-mon')="" -="" to_date('1-jun','dd-mon')="" +="">

    )

    Select id, allow, adtax, mxtax, min (dte) start_date, max (dte) end_date

    (select ID, dte, max (allow) allow, max (adtax) adtax, max (mxtax) mxtax,

    ROW_NUMBER() over (order by dte) row_number() - courses (partition by order max (allow), max (adtax), max (mxtax) by dte) gr

    go (select id, dte,

    -case when type = 'ALLOW' and dte between start_date and end_date then end val 0 otherwise allow.

    -case when type = "ADTAX" and dte between start_date and end_date then val 0 otherwise end adtax.

    -case when type = "MXTAX" and dte between start_date and end_date then val 0 otherwise end mxtax

    Table 1 t,

    days d

    where d.dte between t.start_date and t.end_date

    )

    Group by id, dte

    )

    Group by id, gr, allow, adtax, mxtax

    order by id, gr

    ID ALLOW ADTAX MXTAX START_DATE END_DATE
    ZTR0098 0 0 0 01/06/2015 02/06/2015
    ZTR0098 4 44 0 03/06/2015 09/06/2015
    ZTR0098 4 44 2 10/06/2015 15/06/2015
    ZTR0098 5 44 2 16/06/2015 17/06/2015
    ZTR0098 5 55,34 1 18/06/2015 20/06/2015
    ZTR0098 8 55,34 1 21/06/2015 22/06/2015
    ZTR0098 8 20.09 1 23/06/2015 25/06/2015
    ZTR0098 8 20.09 6 26/06/2015 23/07/2015
    ZTR0098 8 45 6 24/07/2015 31/08/2015

    Concerning

    Etbin

  • How to access a global variable that is common between the different baskets project library

    My project consist of several libraries, after generation the library project packed for each library, I find it cannot share data in a global variable between different packaged project library file. For example: packed project library #1 contains VI variables global wirte 'position' and give it a value '400 '. Library #2 present another VI project try to read this global variable, but he gave reading of is NULL not "400". Why has this happened? Is it possible to solve, welcome any help, I wll appreciate for this!

    If you understand what is happening here...

    When you build a PPL, it takes in the .lvlib and also all the dependencies of the .lvlib.

    In your case, when you generate the Test Task.lvlib in a .lvlibp, she also pulls on a copy of the DataProcess.lvlib:GlobalsVariable.vi because it's addictive to read GlobalVar.vi.

    When your application runs, you end up with two copies of GlobalsVariable.vi in memory:

    DataProcess.lvlibp:GlobalsVariable.vi

    AND

    Test Task.lvlibp:: GlobalsVariable.vi (I don't know how PPLs namespace dependencies... If there is still the DataProcess.lvlibp)

    Because they are different screws (i.e. in a different namespace), they have their own memory and that's why you can't access the data.

    Your Test Task.lvlibp calls the version of GlobalsVariable.vi, he pulled the dependencies.

    To solve this problem - you must ensure that Task.lvlibp of Test calls the version of GlobalsVariable.vi of the DataProcess.lvlibp - you'll need to replace all instances with the version of the PPL. Of course, if you run DataProcess in the development environment, then it will always be bad namespaced, hence the suggestion to put your global variable VI in is own PPL that you then use in the process of data and Test tasks.

  • What is the difference between the different JOINTS?

    Specifically, and more of the syntax, what is the difference between using:

    JOIN TO...

    WE...

    and

    JOIN TO...

    WITH THE HELP OF...

    It seems that they work exactly the same, just different syntax.

    Any ideas?

    Hello

    Please read here the first https://docs.oracle.com/database/121/SQLRF/statements_10002.htm#i2080416

    "

    JOIN him JOIN keyword indicates explicitly that a join is executed. You can use this syntax to replace table used comma-separated expressions in WHERE clause joined with FROM join clause syntax.

    CONDITION use the ON clause to specify a join condition. Doing so allows you to specify join conditions separate from any search condition or filter in the WHERE article.

    USING (column) when you specify an equijoin of columns that have the same name in both tables, the USING column clause specifies the columns to use. You can use this clause only if the joining in both columns have the same name. In this clause are not eligible in the name of the column with a table name or a table alias.

    "

Maybe you are looking for

  • Need information on sending files

    Hello ,. I have a question I am very curious, and I hope that someone could help me. So, about 4 months ago I sent a large number of files to a single person via Skype and he did not accept all of them (or denied), I guess that it just has not seen,

  • Satellite A300D-11 s - keyboard and touchpad freezes

    Hello I have a lot of problems with my Satellite A300D-11 s (for the region of the Adriatic). I have Windows 7 Ultimate with installed all the drivers from the Toshiba site. Everything works perfectly... but... When I first time works laptop, can't i

  • SL500 "this program does not support this system.

    I have an SL500 with 64-bit windows system 7. He has a new system installed. I have correctly installed all necessary drivers. Now, I'm not able to install elements of followind with the system update utility: ThinkPad ultranav driver for windows 7 T

  • can I create a link google to Windows Live Mail

    can I link my google calendar and contact list of contacts and the calendar in Windows Live Mail? My windows Live ID is my google e-mail address if it matters.

  • Code 62,20 on DSC HX60V

    II have a flashing code on my DSC HX60V E62.20. have tried to reset the unit and remove the battery, message remains displayed. What does this code mean?