v4.0 - in the form of ORA-01445: cannot select ROWID from where sample,.

Hello
I have created a form in table form in version 4.0.
Selection is based on three tables that have primary keys, the keys are selected, and whenever I run the page I get the following error:-
Failed to parse the SQL query:
ORA-01445: cannot select ROWID, or sample, join without table views preserved key

The query runs very well in the TOAD

Any ideas?

Thank you

Mike
___________________________________________________________________________________
Select
CTR. PERF_RATING_LINE_ID,
CTR. PERF_RATING_LINE_ID PERF_RATING_LINE_ID_DISPLAY,
CTR. BUSINESS_UNIT,
CTR. EMPLID,
''''|| CTR. REVIEW_YEAR REVIEW_YEAR,
CTR. REVIEW_PERIOD,
CTR. PERFORMANCE_SCORE,
CTR. MODERATED_SCORE,
CTR. HUMAN RESOURCES MANAGEMENT,
PRL.COMMENTS,
ACB. BU_DESC,
''''|| ACB. DEPTID DEPTID,
ACB. DEPT_DESC,
ACB. EMPLOYEE_NAME,
ACB. GRADE,
CTR. SCORE_APPROVED_BY,
ACB. TEMP_PERM,
ACB. GENDER,
ACB. JOB_START_DATE,
decode (DECODE (SUBSTR (ACB. FLAG, 1, 5), "S Job", substr (CPR. FLAG, instr (CPR. FLAG,'~ ', 1) + 2, 3));
"HIR", "Committed", "XFR", "Transfer", "REH", "recall").
Decode (SUBSTR (ACB. FLAG, 1, 30), "work starts the period ~ XFR ',' - ' | substr (CPR. FLAG, instr (CPR. FLAG,'~ ', 1, 2) + 2)) JOB_START_DETAILS,.
ACB. APPOINTMENT_DATE,
SUBSTR (CPR. JOB_END_DETAILS, INSTR (CPR. JOB_END_DETAILS,'~ ', 1, 2) + 2) JOB_END_DATE.
SUBSTR (CPR. JOB_END_DETAILS, INSTR (CPR. JOB_END_DETAILS,'~ ', 1, 1) + 2, INSTR (CPR. JOB_END_DETAILS,'~ ', 1, 2) - INSTR (CPR. JOB_END_DETAILS,'~ ', 1, 1)-2) REASON,
ACB. JOB_GROUP,
ACB. JOB_GROUP_DESC,
ACB. JOBCODE,
ACB. JOBCODE_DESC JOB_DESC,
ACB. JOB_FAMILY,
ACB. JOB_FAMILY_DESC,
ACB. PBR_ID,
MD. MGR_DEPT_ID
PERFORMANCE_BASE_REFRESH_V ACB,.
PERFORMANCE_RATING_LINE PRL,
Y00_OPR_MGR_DEPT MD
WHERE (PRL. BUSINESS_UNIT = ACB. BUSINESS_UNIT
AND PRL. EMPLID = ACB. EMPLID
AND PRL. REVIEW_YEAR = ACB. REVIEW_YEAR
AND PRL. REVIEW_PERIOD = ACB. REVIEW_PERIOD)
AND MD. OPRID =: APP_USER
AND INSTR (': ' |) MD. DEPTS_MANAGED |': ',' :'|| ACB. DEPTID |': ') > 0
AND MD. MGR_DEPT_ID > 0
AND CPR. ADMIN_CENTRE IN
(select c.deptid AC
of PSHR. PSOPRDEFN@PSHR. CSIR.CO. ZA,.
PSHR.PS_SCRTY_TBL_DEPT@PSHR. CSIR.CO. ZA C
where A.ROWSECCLASS = C.ROWSECCLASS
AND C.DEPTID! = 'ZZZZ '.
and a.oprid =: APP_USER)
AND (: P2210_BUSINESS_UNIT IS NULL)
OR PBR. BUSINESS_UNIT =: P2210_BUSINESS_UNIT)
AND (: P2210_EMPLOYEE_NAME IS NULL)
OR INSTR (UPPER (CPR. Employee_name), UPPER (:P2210_EMPLOYEE_NAME)) > 0)
AND (: P2210_DEPARTMENT IS NULL)
OR PBR. DEPTID =: P2210_DEPARTMENT)
AND (: P2210_PERFORMANCE_RATING IS NULL)
OR PBR. PERFORMANCE_SCORE =: P2210_PERFORMANCE_RATING)
AND (: P2210_MODERATED_RATING IS NULL)
OR PBR. MODERATED_SCORE =: P2210_MODERATED_RATING)
AND (: P2210_GRADE IS NULL)
OR PBR. CATEGORY =: P2210_GRADE)
AND (: P2210_PERM_TEMP IS NULL)
OR PBR. TEMP_PERM =: P2210_PERM_TEMP)
AND SUBSTR (NVL (ACB. (JOB_END_DETAILS, "XXX"), 1, 3) NOT ("TER", "TOC")
AND PRL. SCORE_APPROVED_BY IS NULL

Mike,

We also changed our Wizard to create only validations for columns that are selected to be updated (in the wizard on the page in a table). And in the case of the application wizard, we examine if the columns have been excluded on the edit page popup page, and they are set to read-only through the default user interface. If you should only get validations for the columns that are modifiable, view-only / save state or hidden. We include only display / save state and hidden, because in both cases, you have actual shape on your page elements, which could easily be manipulated through common web tools.

Kind regards
Marc

Tags: Database

Similar Questions

  • ORA-01445 error: cannot select ROWID from where sample, a join without a view

    Hi all

    I get an error when I created a VO based EO with standard Table (forced) jtf_notes_vl
    It gives me the error ORA-01445: cannot select ROWID from where sample, a join without key preserved table view

    the Table has the ROW_ID as Primery key


    Thanks in advance

    Hello

    Creation of an EO-based the rowid as primary key is usually the cause of this error as is not recommended to use the rowid as the primary key. Try to use jtf_note_id as the primary key.

    Furthermore, why are you using NAV it is seen for the creation of EO. If I remember correctly, there is a JTF_NOTES_B and JTF_NOTES_TL table that you can use.

    Thank you
    AJ

  • "ORA-01445: cannot select ROWID' v4 tabular.

    Hi guys,.

    We had major problems since the transition from v2 to v4.

    One of the problems I've had is with tabular forms.

    I have a complex page with many regions which has always worked well in version 2. One of these regions is a tabular presentation. When loading the page, I get the:

    "ORA-01445: cannot select ROWID from where sample, a join without key preserved table view ' error."

    The initial request was quite complex, but I've broken down it:

    This query runs and allows me to update the base table (xxmel_apex_eco_alterations)

    Select
    replace. ALTERATION_ID,
    replace. ALTERATION_ID ALTERATION_ID_DISPLAY,
    replace. ECO,
    alt.ORGANIZATION_ID,
    replace. ACD_TYPE,
    replace. INVENTORY_ITEM_ID,
    replace. BEFORE_CHANGE_QTY,
    replace. AFTER_CHANGE_QTY,
    replace. MODIFY_FLAG,
    replace. REVISED_ASSEMBLY_ID,
    replace. BILL_SEQUENCE_ID,
    alt.COMPONENT_SEQUENCE_ID,
    replace. LAST_UPDATE_DATE,
    replace. LAST_UPDATE_BY,
    alt.COMMENTS,
    replace. BOM_IMPLEMENTATION_DATE,
    replace. BOM_CHANGE_NOTICE,
    replace. ASSEMBLY_NAME,
    alt.COMPONENT_NAME,
    replace. SELECTION_CRITERIA,
    replace. ORACLE_CHANGE_NOTICE,
    alt.COMP_CURRENT_COST,
    alt.COMP_NEW_COST,
    alt.COMP_CURRENT_SC,
    alt.COMP_NEW_SC,
    alt.COMP_DESCRIPTION,
    alt.COMP_CURRENT_UOM,
    alt.COMP_NEW_UOM,
    alt.COMP_CURRENT_PUR_STATUS,
    alt.COMP_NEW_PUR_STATUS
    ALT XXMEL_APEX_ECO_ALTERATIONS
    where eco =: P2_ECO


    But as soon as I try to join another table (I do not update, just view as shown below), I get the error.

    Select
    replace. ALTERATION_ID,
    replace. ALTERATION_ID ALTERATION_ID_DISPLAY,
    replace. ECO,
    alt.ORGANIZATION_ID,
    replace. ACD_TYPE,
    replace. INVENTORY_ITEM_ID,
    replace. BEFORE_CHANGE_QTY,
    replace. AFTER_CHANGE_QTY,
    replace. MODIFY_FLAG,
    replace. REVISED_ASSEMBLY_ID,
    replace. BILL_SEQUENCE_ID,
    alt.COMPONENT_SEQUENCE_ID,
    replace. LAST_UPDATE_DATE,
    replace. LAST_UPDATE_BY,
    alt.COMMENTS,
    replace. BOM_IMPLEMENTATION_DATE,
    replace. BOM_CHANGE_NOTICE,
    replace. ASSEMBLY_NAME,
    alt.COMPONENT_NAME,
    replace. SELECTION_CRITERIA,
    replace. ORACLE_CHANGE_NOTICE,
    alt.COMP_CURRENT_COST,
    alt.COMP_NEW_COST,
    alt.COMP_CURRENT_SC,
    alt.COMP_NEW_SC,
    alt.COMP_DESCRIPTION,
    alt.COMP_CURRENT_UOM,
    alt.COMP_NEW_UOM,
    alt.COMP_CURRENT_PUR_STATUS,
    alt.COMP_NEW_PUR_STATUS
    msib.segment1
    ALT XXMEL_APEX_ECO_ALTERATIONS
    mtl_system_items_b msib
    where eco =: P2_ECO
    and msib.organization_id = 26
    and msib.inventory_item_id = ALT INVENTORY_ITEM_ID

    I read Re: v4.0 - in the form of ORA-01445: cannot select ROWID from where sample, where someone had a similar problem for me, but their solution (by copying the script to create a new page) isn't really an option for us the complexity to the page as a whole.

    Is this a bug in 4 APEX?

    Any help would be great,

    Thank you
    Chris

    Hello

    This isn't a bug in the apex, if you want to display a different table column there is a way to create a function to get the value of this table

    to "msib.segment1", you must create a function that accepts that some primary key to and retrieves the value of 'mtl_system_items_b' and can return a value in the field "segment1".

    and you can use your previous query, you can add the name of function as a new field

    for example

    Select
    replace. ALTERATION_ID,
    replace. ALTERATION_ID ALTERATION_ID_DISPLAY,
    replace. ECO,
    alt.ORGANIZATION_ID,
    replace. ACD_TYPE,
    replace. INVENTORY_ITEM_ID,
    replace. BEFORE_CHANGE_QTY,
    replace. AFTER_CHANGE_QTY,
    replace. MODIFY_FLAG,
    replace. REVISED_ASSEMBLY_ID,
    replace. BILL_SEQUENCE_ID,
    alt.COMPONENT_SEQUENCE_ID,
    replace. LAST_UPDATE_DATE,
    replace. LAST_UPDATE_BY,
    alt.COMMENTS,
    replace. BOM_IMPLEMENTATION_DATE,
    replace. BOM_CHANGE_NOTICE,
    replace. ASSEMBLY_NAME,
    alt.COMPONENT_NAME,
    replace. SELECTION_CRITERIA,
    replace. ORACLE_CHANGE_NOTICE,
    alt.COMP_CURRENT_COST,
    alt.COMP_NEW_COST,
    alt.COMP_CURRENT_SC,
    alt.COMP_NEW_SC,
    alt.COMP_DESCRIPTION,
    alt.COMP_CURRENT_UOM,
    alt.COMP_NEW_UOM,
    alt.COMP_CURRENT_PUR_STATUS,
    alt.COMP_NEW_PUR_STATUS,
    newfunction (pkId) as segment1
    ALT XXMEL_APEX_ECO_ALTERATIONS
    where eco =: P2_ECO

    Thank you
    Abdou Bosamiya

  • ORA-01445: cannot select ROWID, or sample, a view of join without key - preserved table form w/report and LOV

    I create a page "Form on a Table with Report" (APEX 5). Table I has 3 columns: cat_key, item_value, item_description. The cat_key is a foreign key in a table with columns cat_key, cat_value. I created the report and everything works fine.  The page of the report shows my domain cat_key in number, so I want it instead to display the cat_value. I change the field cat_key to a text based on LOV, select my LOV and now when I view the page of report I get the "'ORA-01445: cannot select ROWID from where sample, a join without key preserved table view ' error." The report uses the ROWID as a link to the edit page field.

    If I use the same tables and even shared LOV in a report page interactive, it works fine.

    What I am doing wrong?

    This is a limitation of the IR Apex will rewrite your query to a query that includes the lookup table and the columns. So now you have actually created a query on an inline view, which causes the error. You can see the query apex created when running in debug mode. APEX will join the table of choice with your primary table. For example from one of my IR:

    Select 'ID '...

    "MSL". "" HIS_COUNTRIES "=> my primary table

    ) ) b,

    (select rv_meaning d, rv_low_value r

    of msl_ref_codes_table

    where rv_domain = "JOHN".

    ) L1 = > query My LOV Lookup

    ...

    So, if possible, base your reports and forms on the real primary key, no rowid.

    You can also write the IR query with the search yourself:

    Select T1.rowid...

    of primary_table T1

    look_table L1

    ...

  • ORA 17410 - cannot read data from socket

    Hey guys!

    I am faced with a query and would like to ask your advice. During the execution of the statement, I always get an error 17410. No data is transferred that data cannot be read from the socket.

    In my application, I am trying to join the two results. When you run queries individually fine and no error occurs.

    Ever tried to convert the output columns for the same types of data to apply compatibiliy. However, in vain.

    Here's the query! You have an idea?
    with w as
    ((select b.ba_lang, x.lng_baumart, to_char(x.ba_kat) ba_kat,
     x.flag, 0 disable_status
    from 
    vt_tbl_qb_zu_bestand v,
    vt_qb_join q,
    vt_tbl_baumart b,
    vt_tbl_matrix x
    where 
    (q.cnt_gebiet = :p2024_cnt_gebiet)
    and (v.lng_baumart = b.cnt_baumart) 
    and (v.lng_qb_sub = q.lng_qb_sub)
    and (q.str_lrt_main = :p2024_str_lrt)
    and (q.int_wg = :p2024_wg)
    and (q.str_be_main = :p2024_be)
    and (q.int_status_sub = 3)
    and (x.lrt_class = :p2024_str_lrt_mx)
    and (x.lng_baumart = b.cnt_baumart)
    group by b.ba_lang, x.lng_baumart, x.ba_kat, b.ba_gruppe, x.flag
    ) 
    union
    (select b.ba_lang, x.lng_baumart,
        x.ba_kat,
       x.flag, 0 disable_status
      from vt_tbl_qb_verjuengung v,
        vt_qb_join q,
        vt_tbl_baumart b,
        vt_tbl_matrix x
      where (q.cnt_gebiet   = :p2024_cnt_gebiet)
      and (v.lng_baumart    = b.cnt_baumart)
      and (v.lng_qb_sub     = q.lng_qb_sub)
      and (q.str_lrt_main   = :p2024_str_lrt)
      and (q.int_status_sub = 3)
      and (q.int_wg         = :p2024_wg)
      and (q.str_be_main    = :p2024_be)
      and (x.lrt_class      = :p2024_str_lrt_mx)
      and (x.lng_baumart    = b.cnt_baumart)
      group by b.ba_lang, x.lng_baumart, x.ba_kat, b.ba_gruppe, x.flag))
      
     (
      (select ba_lang, lng_baumart,
        to_char(ba_kat) ba_kat,
        decode(ba_kat,'H',1,'N',2,'B',3,'S',4,'P',5,'hG',6,'nG',7) as cs,
        flag, 
        disable_status,
        null str_comment
      from w
      ) 
    union all
      (select distinct r.ba_lang, d.lng_baumart, to_char(d.ba_kat) ba_kat, decode(d.ba_kat,'H',1,'N',2,'B',3,'S',4,'P',5,'hG',6,'nG',7) as cs,
        d.flag, 
    case when d.lng_baumart in (78, 74, 72,71, 54, 53) then 1
    else null end as disable_statusx, 'not valid' str_comment
      from vt_tbl_baumart r,
        vt_tbl_matrix d
      where r.cnt_baumart    = d.lng_baumart
      and d.lrt_class        = :p2024_str_lrt_mx
      and d.ba_kat in ('S','B','H','P','N')
      and r.cnt_baumart not in (select lng_baumart from w)))
    Thanks a lot for your help!

    I appreciate it!

    Edited by: skahlert the 01.06.2010 09:02

    Hello

    You are right. They fixed in the 11.2.0.2.0 JDBC driver and have a patch for 11.1.0.7. They won't patch 10.2. You can find information about this in the notes 1082926.1.

    Success

    Herald tiomela
    htendam.WordPress.com

  • Cannot select photos from the Photos app

    Hey!

    Whenever I want to download pictures on iMovie, Facebook, by selecting a new wallpaper etc when I go to select my photos of Photos (which replaces iPhotos), none of my photos or photo albums can be viewed or selected.

    There is a buffering icon indicating that something can be load but no matter how long I leave it without photos appear.

    I noticed only to happen since I have updated to OS X 10.11.5

    Any help would be appreciated, soon.

    P....

    Try to repair the library holding down ⌥ ⌘ at the launch of the app.

  • Cannot select items from menu top 25% of the window of the browser most of the time.

    Running Windows 7 Pro, on a new HP Ultrabook (2 months) with FF 15.0.1. Several times, selectable items work not, but usually in the 20-30% of the browser window. With the pointer hovering over selections, it does not change to indicate a selectable element, or if it will allow you to select. It happens on sites such as Yahoo!, HP, etc. He doesn't do it all the time, but I'd say at least 50% of the time, even if you reload the page and allow all sites with NoScript. There is no warning of filtering.

    You are welcome.

    Please let us know the name of the extension of the problem because it helps others.

  • VSphere client light web - cannot select boot from ISO via the CD/DVD drive

    I had used P2v to virtualize a Windows 7 machine and after the start he said that the "the boot selection failed because a required device is inaccessible. I think I need to run a repair using Windows 7 image and possibly launch a fixboot and fixmbr, but when I try to adjust the settings of the virtual machine using the web client to boot from the ISO it displays an error and the ok button to save the settings is grayed out. How is it doesn't let me do this?

    Never mind. I got the VM running in Vsphere client while trying to change the setting in the web client.

  • ORA-01445 when literals in a view

    OTN dear Forum,

    I am creating this point of view, which generates a list of files with metadata in each line for example. "Description". I want to add a column with the same literal value in each row - 'Photo Unit Legacy Collection', but he doesn't seem to like it. I tested without the code on line 10 and I tested 10 independently in a separate query lines - both work.

    I get the error message "unhandled exception warning,: ORA-01445: cannot select ROWID from where sample, a join without key preserved table view.

    Can anyone help?


    1 Select
    2 csv. "" FILE "as"#FILE. "
    3 csv.security_policies as "#SECURITY POLICIES."
    4 csv.model as "#MODEL."
    5 csv.nhm_field_department as "NHM_FIELD_DEPARTMENT."
    6 photo_lib.jobtitle as "NHM_FIELD_ASSET_DESCRIPTION."
    7 csv.nhm_field_asset_keywords as "NHM_FIELD_ASSET_KEYWORDS."
    8 csv.nhm_field_file_creation_date as "NHM_FIELD_CREATION_DATE."
    9 csv.nhm_field_original_file_path as "NHM_FIELD_ORIGINAL_FILE_PATH."
    10 "Legacy Collection of photo unit" as "NHM_FIELD_GROUP_TITLE."
    11 regexp_substr (csv. ("' NHM_FIELD_ASSET_DESCRIPTION",'[[: digit:]] {4,}') as 'TASK IDENTIFIER.
    12 years of
    13 csv join internal photo_lib
    14 on (photo_lib.fk_jobid = regexp_substr (csv. "" FILE "," [[: digit:]] {4}')) "
    15 where photo_lib.jobtitle is not null
    16 and regexp_like (csv. "" FILE ","[...] *\. ((tif)')

    You get the error create view, or when you try to choose in this one? What version of 4 numbers of Oracle are you running? There is at least a bug reported in MOS (see Doc ID 412362.1 if you have a support contract) for outer joins against versions 10.2.0.1 - 10.2.0.3.

    You can try either simplify the view somewhat, perhaps to ot to rid the superfluous double quotes. Another possibility might be to try to make the regexp in a view online and join with this, something like:

    select csv.file as "#FILE", csv.security_policies as "#SECURITY POLICIES",
           csv.model as "#MODEL", csv.nhm_field_department,
           photo_lib.jobtitle as NHM_FIELD_ASSET_DESCRIPTION,
           csv.nhm_field_asset_keywords, csv.nhm_field_file_creation_date,
           csv.nhm_field_original_file_path,
           'Photo Unit Legacy Collection' as NHM_FIELD_GROUP_TITLE,
           csv.job_identifier
    from (select file, security_policies, model, csv.nhm_field_department,
                 nhm_field_asset_keywords, nhm_field_file_creation_date,
                 nhm_field_original_file_path,
                 regexp_substr(NHM_FIELD_ASSET_DESCRIPTION,'[[:digit:]]{4,}') JOB_IDENTIFIER,
                 regexp_substr(FILE,'[[:digit:]]{4}') jobid
          from csv
          where regexp_like(csv.FILE,'[...]*\.(tif)')) csv
       join photo_lib
          on photo_lib.fk_jobid = csv.jobid
    where photo_lib.jobtitle is not null
    

    John

  • Error ORA-01445 tabular form on a Collection in APEX 5

    When I load a page with a tabular presentation built on a display of a collection to the APEX 5, I'm getting an ORA-01445: cannot select ROWID, or the sample, a view of joining without an error table preserved key.

    I create a view

    CREATE or REPLACE FORCE VIEWS test_coll_vw

    (

    C001,

    C002,

    C003,

    C004,

    seq_id

    )

    AS

    SELECT TO_NUMBER (c001),

    C002,

    TO_NUMBER (c003),

    TO_NUMBER (c004),

    seq_id

    Of apex_collections

    WHERE collection_name = 'TEST '.

    Then create a tabular presentation on the view with the primary key of the source SEQ_ID and primary key of the trigger existing through the wizard.

    Debug information shows the statement which is a failure:

    Select NULL NULL "CHECK$ 01", "SEQ_ID,' NULL 'C001', NULL"C002', 'C003', 'C004', NULL NULL NULL "APEX$ ROWID ' sys.dual union all select ' CHECK$ 01", 'SEQ_ID', 'C001', 'C002', 'C003', "C004", "APEX$ ROWID" in (select NULL "CHECK$ 01", "SEQ_ID", "C001", "C002", "C003", "C004", "ROWID" "APEX$ ROWID" (select).

    "SEQ_ID."

    "C001."

    "C002."

    "C003."

    "C004.

    of 'WPCAMS_APP '. "" TEST_COLL_VW ".

    ) APEX$ RPTSRC

    order of 1, 7

    ).

    These tabular forms worked up to 4.2, but they seem to fail at 5 APEX for upgrade or newly created pages one.  The generated query is identical between versions, but it seems that the underlying apex_collections view has changed between versions and the origin of the problem.

    Does anyone have a solution or workaround?

    Thank you

    Hi Phil,

    APEX 5.0 the definition of the view of apex_collection had to be changed for security reasons. This change introduced a regression with tabular form validations, when the table refers to this view. Tabular form declarative validations require the ROWID in order to restore your changed data after a validation failed, and for this reason, APEX is insert the IDENTIFIER in the query in a table. It is currently not possible when tables refers to the sight of apex_collections. We are looking at a solution to this problem, but for now the only way to get around this is not, in this case, use the declarative validation and use some custom validations or process.

    Kind regards
    Marc

  • ERROR: ORA-01445

    Hello

    Can you please let me know how to select the ROWID of the table all_ind_expressions? I tried to run the following SQL query on the Oracle version 10.2.0.3 but received the error ORA-01445.


    Select the ROWID in all_ind_expressions
    where index_owner = "DBO."

    Thank you

    Published by: user12088323 on February 24, 2011 18:29

    Published by: user12088323 on February 24, 2011 18:30
    SQL> select text from dba_views where view_name = 'DBA_IND_EXPRESSIONS';
    
    TEXT
    --------------------------------------------------------------------------------
    select io.name, idx.name, bo.name, base.name, c.default$, ic.pos#
    from sys.col$ c, sys.obj$ idx, sys.obj$ base, sys.icol$ ic,
         sys.user$ io, sys.user$ bo, sys.ind$ i
    where bitand(ic.spare1,1) = 1         /* an expression */
      and (bitand(i.property,1024) = 0) /* not bmji */
      and ic.bo# = c.obj#
      and ic.intcol# = c.intcol#
      and ic.bo# = base.obj#
      and io.user# = idx.owner#
      and bo.user# = base.owner#
      and ic.obj# = idx.obj#
    
    TEXT
    --------------------------------------------------------------------------------
      and idx.obj# = i.obj#
      and i.type# in (1, 2, 3, 4, 6, 7, 9)
    

    Who should be returned to ROWID when SELECT view above?

    Published by: sb92075 on February 24, 2011 16:47

  • Why I don't have the error: ORA-14551: cannot perform a DML operation inside a query

    Hello

    create table table_1 (phone number)

    create or replace function function_a return number
      is
        l_rv number;
      begin
        l_rv := dbms_random.value();
        insert into table_1 values(l_rv);
        return l_rv;
      end;
    
    

    Select double function_a

    Now, I get the error:

    ORA-14551: cannot perform a DML operation inside a query

    ORA-06512: at "FUNCTION_A", line 6

    create the table table_2 (phone number)

    insert into table_2 select function_a from dual
    
    

    Now, I make the same mistake. It is to insert records into table_2

    Can someone please clarify this?

    Database Oracle 12 c Enterprise Edition Release 12.1.0.1.0 - 64 bit Production

    Post edited by: O - O added: (select double function_a)

    O - O wrote:

    To be called from instructions SQL, stored function must obey "purity" following rules, which are intended to control the side effects:

    • rule1) When it is called from a SELECT statement or a parallelized INSERT , UPDATE , or DELETE statement, the function cannot change database tables.
    • rule2) When it is called from a INSERT , UPDATE , or DELETE statement, the function cannot query or modify database tables modified by that statement.

    Can you please explain this? I think that these statements are contradicted with

    insert into select double function_a table_2

    Now, I make the same mistake. It is to insert records into table_2

    When your function is called by a select statement, an error is triggered because of rule1).

    When your function is called in an insert statement, no error is raised. The insert does not work in parallel (this is an insert row after all). So rule1) is also not infringed. The insert is on the table2, change table1. Because it does not modify the same table rule2) is not violated. So no reason to trigger an error.

  • ORA-01102: cannot mount database in EXCLUSIVE mode in AIX after you have installed the database using dbca

    Hello!

    I have v7 IBM AIX and cluster HACMP set up two identical nodes included

    I have a head node after the installation of database using dbca I got error with the message:

    ORA-01102: cannot mount database in EXCLUSIVE mode

    Database cannot mount)

    Here is the information from the alert log:

    MON may 25 18:00:07 2015

    Starting ORACLE instance (normal)

    LICENSE_MAX_SESSION = 0

    LICENSE_SESSIONS_WARNING = 0

    SNA system picked latch-free 3

    With the help of LOG_ARCHIVE_DEST_1 parameter value by default as USE_DB_RECOVERY_FILE_DEST

    Autotune undo retention is enabled.

    IMODE = BR

    ILAT = 84

    LICENSE_MAX_USERS = 0

    SYS audit is disabled

    Commissioning:

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

    With the options of partitioning, OLAP, Data Mining and Real Application Testing.

    ORACLE_HOME = /u01/app/oracle/product/11.2.0/dbhome_1/

    System name: nodename

    Name of the node: nodename

    Version: 1

    Version: 7

    Machine: 0003F6E5D600

    Using the settings in /u01/app/oracle/product/11.2.0/dbhome_1/dbs/spfiletestdb.ora side Server spfile

    Parameters of the system with default values:

    process = 500

    sessions = 772

    = 18G memory_target

    control_files = "/ ctl1/oradata/testdb/control01.ctl".

    control_files = "/ ctl2/oradata/testdb/control02.ctl".

    control_files = "/ ctl3/oradata/testdb/control03.ctl".

    DB_BLOCK_SIZE = 8192

    compatible = "11.2.0.0.0."

    db_recovery_file_dest = ' / backup/fra.

    db_recovery_file_dest_size = 100G

    undo_tablespace = 'UNDOTBS1.

    Remote_login_passwordfile = "EXCLUSIVE."

    db_domain = «»

    dispatchers = "(PROTOCOL=TCP) (SERVICE = testdbXDB)" "

    audit_file_dest = ' / u01/app/oracle/admin/testdb/adump.

    AUDIT_TRAIL = 'DB '.

    db_name = 'testdb '.

    open_cursors = 300

    diagnostic_dest = ' / u01/app/oracle '.

    MON may 25 18:00:08 2015

    PMON started with pid = 2, OS id = 14418020

    MON may 25 18:00:08 2015

    PSP0 started with pid = 3, OS id = 17891420

    MON may 25 18:00:09 2015

    VKTM started with pid = 4, OS id = 14090348 high priority

    VKTM clocked at (10) precision of milliseconds with DBRM quantum (100) ms

    MON may 25 18:00:09 2015

    GEN0 started with pid = 5, OS id = 9109714

    MON may 25 18:00:09 2015

    DIAG started with pid = 6, OS id = 16449704

    MON may 25 18:00:09 2015

    DBRM started with pid = 7, OS id = 17104928

    MON may 25 18:00:10 2015

    DIA0 started with pid = 8, OS id = 13303950

    MON may 25 18:00:10 2015

    MA started with pid = 9, OS id = 12517522

    MON may 25 18:00:10 2015

    DBW0 started with pid = 10, OS id = 11993232

    MON may 25 18:00:10 2015

    LGWR started with pid = 11, OS id = 15401010

    MON may 25 18:00:10 2015

    CKPT started with pid = 12, OS id = 6619318

    MON may 25 18:00:10 2015

    SMON started with pid = 13, OS id = 16515222

    MON may 25 18:00:10 2015

    RECCE has started with pid = 14, OS id = 13172906

    MON may 25 18:00:10 2015

    MMON started with pid = 15, OS id = 15794324

    commissioning 1 dispatcher (s) for '(ADDRESS =(PARTIAL=YES) (PROTOCOL = TCP))' network address...

    MON may 25 18:00:10 2015

    MMNL started with pid = 16, OS id = 18546742

    commissioning or shared server 1...

    Environment ORACLE_BASE = / u01/app/oracle /.

    MON may 25 18:00:11 2015

    ALTER DATABASE MOUNT

    sculkget: failed to lock /u01/app/oracle/product/11.2.0/dbhome_1//dbs/lkTESTDB exclusive

    sculkget: lock held by PID: 3670226

    ORA-09968: cannot lock file

    IBM AIX RISC System/6000 error: 13: permission denied

    Additional information: 3670226

    ORA-1102 marked during: ALTER DATABASE MOUNT...

    But if I install the darabase even dbca on node secondary, all installed and executed successfully.

    But in the two nodes even permissions, user oracle and oinstall group ID identified the same and $ORACLE_BASE and $ORACLE_HOME user owner oracle and oinstall user group.

    A someone has encountered this problem and solved?

    Thanks in advance!

    Hello

    you are using IBM AIX PowerHA for your database (active/passive) configuration. then you just install the binaries 'once' on one of the nodes. then coordinate with your operating system administrator to configure the fail the test scenarios.

    for your question. before you start the database, make sure that there are no "orphaned" oracle process using the UNIX grep command:

    $ ps - ef | grep ora

    Kill the oracle of the hanging of the process to release the lock on the database file handle:

    $ kill-9

    I hope this helps.

    Kind regards

  • Why used to traction to scan documents from the form loader?

    I have a brother multi function printer/scanner.  I try to scan several documents and can not get the scanner to remove the documents from the charger of the form.  Instead, he wants to scan from the tray.  Any suggestions?

    Hello

    May I have the Acrobat version and OS you are working?

    Please, try the following:

    Open Acrobat.

    Go to file > create > PDF from Scanner > Custom Scan...

    In the custom scan dialog, select TWAIN drivers

    Click on the 'Options' button next to him

    Select the User Interface as Show the Scanner's Native Interface

    Click Ok & Scan

    This will bring the native interface of the Scanner window and select document as a source feeder.

    Thank you

    Abhishek

  • Hyperlinks do not work in the form of PDF

    We use Acrobat 10 Pro / LiveCycle Designer to create our form fill-able to then publish on our Web site.  Our users can click the form on our Web page, the PDF opens in Chrome very well and they can fill in the fields.  But when a user tries to click hyperlinks, the hand does not turn into finger, which allows you to click on the link and go to the Web page.  When you look at the properties of this PDF file, I can see there are restrictions.  I just want to allow my customers to click on hypertext links.  Don't forget, they use Chrome Chrome PDF Viewer by default.  In addition, many of our internal users do not use Adobe to view/edit a PDF file.  Their PDF Viewer by default if eCopy or PowerPDF, so when they open the form in these applications, the hyperlinks don't work or the other.  Hyperlinks work only if I open with Adobe.

    Also, I saw a security restriction in the properties of the document where is said can only be opened with Acrobat.

    Is there any way to change this?

    We say to all our customers that official Adobe products are required to view and use the forms correctly. We cannot guarantee that applications work as expected otherwise. We had a LOT of problems with clients (or trying to open) opening forms outside of Adobe, and they will never work quite right. Mind you, we almost exclusively use dynamic forms.

Maybe you are looking for

  • Equium M40X: red lines on the screen

    I seem to be getting red lines on my screen (from top to bottom) that I have spend my mouse.any idea what is wrong. That is to say what is the screen or something else.However, I connected to a monitor and had the same problem so assume that my fine

  • Apple broken music

    Since I've updated my IOS 9.2 software I lost all my music from Apple's music and I'm able to download songs to listen to offline (although I have to pay £9.99 for this service!)

  • Windows 7 installation disc - to clean install

    Hello I would like to reinstall Windows 7 on my X 1 carbon from scratch, whether without all the bloatware. Where can I get Win7 image/disc to do? I tried to install Windows 7 on my friends drive MSDNAA Win7 but the key does not match (I couldn't act

  • How to disable the password of account

    Original title: I want to change my account that has the account password that does not need password I have an administrator account that need password when I opened the laptop, then I think I want this account change as when I opened my window, I j

  • Error codes 78(f)), 80070308 and 8007000 D (failure of the installation of 12 updates in Windows 7 HP64)

    No idea what to do now. I tried to select only some and even unstalling all updates and walk away with the prize, but nothing helped. I ave nothing else running while I update - except Microsoft Security Essentials, but I even tried to disable the pr