Where is "WITH CHECK OPTION" stored on a view ?

We have a DB Compare program to ensure all the objects between 2 database servers are the identical.
One thing we can't find when comparing our objects is the the "with check option" on a view.
We've searched sysobjects (and others but can't find it anywhere).
Any ideas where its stored ?

I don't think there is any current compilation of issues that particularly affect upgrades.
I've put that on the to-do list
Here is what I've found for pulling the "with check option" setting out of the query tree.
Switch 200 causes ASE to print out the query tree before it is passed to the optimizer.
Using "set noexec on" aborts the select before it actually returns rows.
If WITH CHECK was used, the tree output will include a root2stat bitmap with a bit identified as CHECKOPT on.
You can use grep in isql to filter for that.
create table t1 (c1 int)
go
create view view_no_check as select c1 from t1 where c1 > 9
go
create view view_w_check  as select c1 from t1 where c1 > 9 with check option
go
set switch on 200
go
set noexec on
go
select * from   view_no_check
go | grep CHECK
select * from   view_w_check
go | grep CHECK
Example output:
1> select * from   view_no_check
2> go | grep CHECK
1> select * from   view_w_check
2> go | grep CHECK
root2stat:(0x10000000 (BCP_LABELS, CHECKOPT))  root3stat:(0x00080000
1>

Similar Messages

  • Problem 1 in my person form: hitting ora-1401 (view with check option).

    In an earlier stage I had a table PERSON and a table ENSEMBLE.
    At some stage I decided it was not handy I was storing performing musicians in two different tables.
    So I set up a supertype, CONTRIBUTOR. PERSON is now a view on CONTRIBUTOR.
    The attribute IS_NATURAL_PERSON makes the record listed in person.
    The view definition is
    CREATE OR REPLACE FORCE VIEW "PARTITUREN"."PERSON" ("ID", "FIRST_NAME",
      "MIDDLE_INIT", "LAST_NAME", "GIVEN_NAME", "SORT_KEY", "DISPLAY_VALUE",
      "GENDER", "DATE_OF_BIRTH", "DATE_OF_BIRTH_APPROX", "LOCATION_OF_BIRTH",
      "DECEASED", "DATE_OF_DEATH", "DATE_OF_DEATH_APPROX", "LOCATION_OF_DEATH",
      "NATIONALITY", "ANV_ID", "NUMBERING_SYSTEM", "OPUSNUMBERS", "PORTRAIT",
      "MIME_TYPE", "FILE_NAME", "IS_NATURAL_PERSON", "LWTIMEST", "CREATED_BY",
      "CREATED_TS", "UPDATED_BY", "UPDATED_TS")
    AS
      SELECT
        id,
        first_name,
        middle_init,
        last_name,
        given_name,
        sort_key,
        display_value,
        gender,
        date_of_birth,
        date_of_birth_approx,
        location_of_birth,
        deceased,
        date_of_death,
        date_of_death_approx,
        location_of_death,
        nationality,
        anv_id,
        numbering_system,
        opusnumbers,
        portrait,
        mime_type,
        file_name,
        is_natural_person,
        created_ts lwtimest,
        created_by,
        created_ts,
        updated_by,
        updated_ts
      FROM
        contributor
      WHERE
        is_natural_person='Y'
    WITH CHECK OPTION;When I enter a record in Apex, I have the is_natural_person attribute default to Y.
    However I always hit ora-1401.
    It works in sql*developer and sql*plus.
    I now always have to resort to non-Gui tools to enter someone. This is nasty.
    Oracle 11.2.0.1, Apex 4.0.0.0.46
    Sybrand Bakker
    Senior Oracle DBA

    Hello .
    Some NLS charsets (such as UTF8) require more than one byte to store accented characters like "Ȩ", "ȿ", "�", "�", "ȵ", "ȭ" in the database.
    For example, when a 10 character string is inserted into a varchar2(10) column, the above messages may be signaled if your string contains accentuated characters such as "Ȩ", "ȿ", "�", �", "ȵ", "ȭ". used in languages like German
    One solution
    If the UTF8 NLS charset is being used with French, German ... characters in an Oracle database, then the size of the target column length should be set accordingly.
    Set the NLS_LANGUAGE and NLS_CHARACTERSET database parameters.
    One approach is to change the Database settings as follows:
    ALTER DATABASE CHARACTER SET WE8ISO8859P1;
    SHUTDOWN IMMEDIATE
    Onother
    According to the Oracle documentation, column length semantics determine whether the length of a column is specified in bytes or in characters. You use BYTE to specify that the length is in bytes, and you use CHAR to specify that the length is in characters. CHAR length semantics is also known as codepoint length semantics.
    Because some character sets require more than one byte for each character, a specification of 10 BYTE for a column might actually store less than 10 characters for certain character sets, but a 10 CHAR specification ensures that the column can store 10 characters, regardless of the character set.
    You set the length semantics for an Oracle database using the NLS_LENGTH_SEMANTICS initialization parameter, and all VARCHAR2 and CHAR columns use the setting specified for this initialization parameter as the default. If this initialization parameter is not set, then the default setting is BYTE.
    Edited by: Mortus on Jun 28, 2011 2:57 PM

  • With check Option

    CREATE OR REPLACE VIEW sales_staff_vu AS
    SELECT employee_id, last_name,job_id
    FROM employees
    WHERE job_id LIKE 'AK_%'
    WITH CHECK OPTION;
    Among these two following options which one is correct?
    1) It allows you to delete the details of the existing sales staff from the EMPLOYEES table.
    2) It allows you to update the job ids of the existing sales staff to any other job id in the EMPLOYEES table
    The correct answer is "1" but i think it will be "2"
    Please help with a valid explanation?

    Among these two following options which one is correct?
    1) It allows you to delete the details of the existing sales staff from the EMPLOYEES table.
    2) It allows you to update the job ids of the existing sales staff to any other job id in the EMPLOYEES table1 is probably meant as the correct answer.
    But you can update job ids too as long as the result matches the where clause of the view.
    Why not throw together a simple test:
    SQL> select * from employees;
             EMPLOYEE_ID LAST_NAME                      JOB_ID
                     101 Smith                          AK_123
                     102 Jones                          MN_456
    SQL> CREATE OR REPLACE VIEW sales_staff_vu AS
      2  SELECT employee_id, last_name,job_id
      3  FROM employees
      4  WHERE job_id LIKE 'AK_%'
      5  WITH CHECK OPTION;
    View created.
    SQL> select * from sales_staff_vu;
             EMPLOYEE_ID LAST_NAME                      JOB_ID
                     101 Smith                          AK_123
    SQL> delete sales_staff_vu;
    1 row deleted.
    SQL> select * from sales_staff_vu;
    no rows selected
    SQL> select * from employees;
             EMPLOYEE_ID LAST_NAME                      JOB_ID
                     102 Jones                          MN_456
    SQL> rollback;
    Rollback complete.
    SQL> update sales_staff_vu set job_id = 'IL_789';
    update sales_staff_vu set job_id = 'IL_789'
    ERROR at line 1:
    ORA-01402: view WITH CHECK OPTION where-clause violation
    SQL> update sales_staff_vu set job_id = 'AK_999';
    1 row updated.
    SQL> select * from sales_staff_vu;
             EMPLOYEE_ID LAST_NAME                      JOB_ID
                     101 Smith                          AK_999
    SQL> select * from employees;
             EMPLOYEE_ID LAST_NAME                      JOB_ID
                     101 Smith                          AK_999
                     102 Jones                          MN_456

  • What is the use for CREATING VIEW WITH CHECK OPTION?

    Dear Legends,
    I have a doubt
    What is the use for creating view?
    A: First Data Integrity, Selecting Particular Columns..
    What is the use for creating a view with check option?
    A: As per oracle manual I read that its a referential integrity check through views.
    A: Enforcing constraints at DB level.
    A: using CHECK OPTION we can do INSERTS UPDATES for a view for those columns who have no constraints... is it right??
    A: If we do a INSERT OR UPDATE for columns who have constraints it will show error... is it right???
    Please clear my doubt's Legends
    Lots of Thanks....
    Regards,
    Karthik

    Hi, Karthick,
    karthiksingh_dba wrote:
    ... What is the use for creating view?
    A: First Data Integrity, Selecting Particular Columns..Most views are created and used for convenience. A view is a saved query. If the same operations are often done, then it can be very convenient to code those operations once, in a view, and refer to the view rather than explicitly doing those operations.
    Sometimes, views are created and used for security reasons. For example, you many want to allow some users to see only certain rows or certain columns of a table.
    Views are necessary for INSTEAD OF triggers.
    What is the use for creating a view with check option?
    A: As per oracle manual I read that its a referential integrity check through views.The reason is integrity, not necessarily referential integrity. The CHECK option applies only when DML is done through the view. It prohibits certain changes. For example, if a user can't see certain rows through a view, the CHECK option keeps the user from creating such rows.
    A: Enforcing constraints at DB level.I'm not sure what you mean. Please give an example.
    A: using CHECK OPTION we can do INSERTS UPDATES for a view for those columns who have no constraints... is it right??No. Using CHECK OPTION, you can do some inserts and updates, but not others. The columns involved may or may not have constraints in either case.
    A: If we do a INSERT OR UPDATE for columns who have constraints it will show error... is it right???If you try to violate a constraint, you'll get an error. That happens in views with or without the CHECK OPTION, and also in tables.

  • Where is Check number stored in Fusion Payroll

    Hello All,
    I am working on an Positive Pay file that is sent to the Bank after the payroll process and I need the check number details, but not sue where it is stored.
    Can some one let me know where is the Check Number stored in the HCM tables.
    In EBS
    Check Numbers are in the field SERIAL_NUMBER on the PAY_ASSIGNMENT_ACTIONS table.
    Serial Number in Pay_Assignment_Actions is where the check numbers are held. When Check Writer is run, the process requests STARTING and ENDING Check Numbers (Ending Check Number can be left blank).
    But I am able to find the serial number in PAY_PAYROLL_REL_ACTIONS which is the payment reference and doesn't match the Check numbers that are generated.
    Can any one please let me know where to find this information.
    Appreciate all your inputs

    >
    Edward wrote:
    > Dear All exprt,
    >
    > In Payroll , for basic pay there is a Indicator for indirect valuation. If this indicator is marked as 'I', the amount of basic pay will not be stored in table pa0008. But when we use PA20 , We can see the amount.Is there any table which store this kind of data?
    >
    > BR
    I'm not sure if this gets stored in some database tables, I believe that this information is evaluated in the runtime(i.e., when accessed from 'PA20') using the wage type characteristics(v_t511).
    The function module 'RP_FILL_WAGE_TYPE_TABLE' returns the values of indirectly evaluated wage types also.
    The  (indirect)evaluations of the wage types take place in the subroutine 'EVALUATE_INDEV_TAB' of the function group 'RPIB'. (Include program : LRPIBFXX)
    Refer this thread
    Re: Indirect Valuation Error Message in IT 0008
    Regards
    Rajesh.
    Edited by: Rajesh on May 31, 2009 2:03 PM
    reference thread added

  • Where do I find options for virus checking downloads - I get a message telling me to change options with each download

    When I download software or files the Downloads window opens, the file downloads and is virus scanned and then a message appears telling me:
    "Download Statusbar: Anti-Virus Scan failed to start, check configuration"
    I had an options facility when I first set up Firefox where there were several options available - I believe the virus check facility was the last tab.
    I think I had an option box which allowed me to tick a check box to scan on download but I can no longer find this option box. Please can you advise the route to it?
    Many thanks in anticipation.

    Memory is a fleeting thing!!!
    Many thanks for your help.

  • Where the interrupt routine vectors stored in if I disable the AXI interrupt controller fast interrupt option?

    In an IPI system, I have several IPs connected their interrupt output with AXI interrupt controller. In the software part, I can create several interrupt callback functions for different interrupts. I wonder Where the interrupt routine vectors stored in if I disable the AXI interrupt controller fast interrupt option? Are they stored inside the specific IP?
    E.g.: if I have an VDMA and setup its callback function for general and error, then the callback function starting addresses are stored inside VDMA registers?
    Thank  you.

    >> The address of the ISR is stored in this table", so is the table stored inside the interrupt controller on inside ARM cpu? But when I used microblaze, it seems there is no interrupt controller inside the microblaze
    No, that table is in a memory which implements the processor's address space. If you use MB, you can add an interrupt controller to it but that's not relevant. Interrupt controllers cause processors to jump to a fixed location in their address space. At this point in time there are two main options: either some program has registered to respond to this interrupt or not. In the latter case, the OS, bare-metal app etc takes a decision on what to do: ignore the interrupt, crash, just turn off that interrupt and return etc. If an interrupt has been registered to respond to that interrupt, the address of the interrupt service routine is in table belonging to the OS, bare-metal app etc so the code at the fixed offset jumps to the address inside that table ie it jumps to the ISR.

  • How do I remove a credit/debit card from my account? I ask because I currently have a VISA gift/debit card with 50 dollars on it, but the money has run out so I want to usea new card. Also, there is no 'None' check option for payment type on my account.

    How do I remove a credit/debit card from my account? I ask because I currently have a VISA gift/debit card with 50 dollars on it, but the money has run out so I want to usea new card. Also, there is no 'None' check option for payment type on my account.

    Depending on how you created your account, "None" may or may not be an option. I believe it has something to do with whether the account was made through an App Store request or the regular iTunes Store. For example, my account allows no card but my father's doesn't allow there to be no card.
    To change the card, go to your account settings and change the information to your new card, and hit save.

  • ORA-27054: NFS file system where the file is created or resides is not mounted with correct options

    Hi,
    i am getting following error, while taking RMAN backup.
    ORA-01580: error creating control backup file /backup/snapcf_TST.f
    ORA-27054: NFS file system where the file is created or resides is not mounted with correct options
    DB Version:10.2.0.4.0
    while taking datafiles i am not getting any errors , i am using same mount points for both (data&control files)

    [oracle@localhost dbs]$ oerr ora 27054
    27054, 00000, "NFS file system where the file is created or resides is not mounted with correct options"
    // *Cause:  The file was on an NFS partition and either reading the mount tab
    //          file failed or the partition wass not mounted with the correct
    //          mount option.
    // *Action: Make sure mount tab file has read access for Oracle user and
    //          the NFS partition where the file resides is mounted correctly.
    //          For the list of mount options to use refer to your platform
    //          specific documentation.

  • Is it possible to enable 'spell checker' option with HTML Editor ?

    The spell checker option is available with Text Area with Spell Checker item, but that spell checker doesn't come with the HTML Editor.
    Is it possible to somehow make it available for the HTML Editor ?
    I know there are some browser addin spell checkers, but a client instance doesn't allow end users to install such for their IE browser.

    I would also like to know if this is possible?

  • I just purchased and downloaded Logic 9. I had Logic 8 previously installed. What the **** happened to my Logic 8. It's gone along with the sounds and my my G4 mastering Folder. And... where are all these sounds stored on my computer I can't find them?...

    I just purchased and downloaded Logic 9. I had Logic 8 previously installed. What the **** happened to my Logic 8. It's gone along with the sounds and my my G4 mastering Folder. And... where are all these sounds stored on my computer I can't find them?...

    Very many thanks Niel. My problem solved in less than five minutes. I've never had to use that command before. I found the folder and copied it - but I'm still no clearer as to where it was!
    Thanks again

  • Where is the station options configuration stored

    Where is the station options configuration gets stored in TestStand 4.2.1?
    Solved!
    Go to Solution.

    The StationGlobals.ini file is in your TestStand Config directory, which is found at <TestStand Application Data>\Cfg.
    On Windows 7, this is C:\ProgramData\National Instruments\TestStand 4.2\Cfg. I don't remember off-hand what the exact path is on versions of Windows earlier than Vista... Somewhere under C:\Documents and Settings\<Username>\. You can just search for StationGlobals.ini if you need to.

  • Where is the event options in iPhoto with the new iOS 7 update on iPad?

    Where is the event options in iPhoto with the new iOS 7 update on iPad?

    You mean iPhoto the app or the native iOS Photos app?
    I have both in my iPad running iOS7 and iPhoto has the Events as usual.

  • HT1420 Feeling really stupid with my new MAC - I can't find the "Store" menu in iTunes as referenced in the support article on how to authorize a computer.  Where is that menu option?  I've looked all over the page, in my account, etc.

    Feeling really stupid with my new MAC - I can't find the "Store" menu in iTunes as referenced in the support article on how to authorize a computer.  Where is that menu option?  I've looked all over the page, in my account, etc.

    Authorization and Deauthorization
    Macs:  iTunes Store- About authorization and deauthorization.
    Windows: How to Authorize or Deauthorize iTunes | PCWorld.
    In iTunes you use the Authorize This Computer or De-authorize This Computer option under the Store menu in iTunes' menubar. For Windows use the ALT-S keys to access it. Or turn on Windows 7 and 8 iTunes menus: iTunes- Turning on iTunes menus in Windows 8 and 7.
    More On De-authorizing Computers (contributed by user John Galt)
    You can de-authorize individual computers, but only by using those computers. The only other option is to "de-authorize all" from your iTunes account.
      1. Open iTunes on a computer
      2. From the Store menu, select "View my Account..."
      3. Sign in with your Apple ID and password.
      4. Under "Computer Authorizations" select "De-authorize All".
      5. Authorize each computer you still have, as you may require.
    You may only do this once per year.
    After you "de-authorize all" your authorized computers, re-authorize each one as required.
    If you have de-authorized all computers and need to do it again, but your year has not elapsed, then contact: Apple - Support - iTunes - Contact Us.

  • Hi i am from india and i am using iphone 5 but i have problem with charging last 20 % suddenly my phone switched off every day and som heating when i am using internate pls help me where i can check whether my phone waranty is valid on expire

    hi i am from india and i am using iphone 5 but i have problem with charging last 20 % suddenly my phone switched off every day and som heating when i am using internate pls help me where i can check whether my phone waranty is valid on expire

    https://selfsolve.apple.com/agreementWarrantyDynamic.do

Maybe you are looking for