ORA-01732: data manipulation operation not legal on this view

I have a table, when I want to update some row in it, it gives this error. Why?? It's not view, it's table!

hi,
http://www.dbmotive.com/oracle_error_codes.php?errcode=01732
go through above link it will help you.
regards
Taj

Similar Messages

  • Outer Join problems - "ORA-30563 outer join operator (+) not allowed in select-list"

    Products: Discoverer 4.1.33.0.2
    (Admin and User/Plus)
    8i EE 8.1.7 (Discoverer server)
    8i EE 8.1.5 ('source data' server)
    Background assumptions: (1) If a column from an "outer-joined" table is compared to a constant, the outer join operator must be applied to that column in order for the outer join to work. (2) A 'Condition' specified in Discoverer User/Plus manifests as a comparison to a constant.
    I created a join in Admin between two folders, selected 'outer join on detail' option. In User/Plus, created worksheet containing columns from the joined folders. When no Conditions are NOT specified, results seem ok. However, when Condition IS added, worksheet encounters "ORA-30563 outer join operator (+) not allowed in select-list" and returns blank sheet.
    To workaround, created Custom folder with outer join in place. Didn't work either with Conditions specified. No error, but I think that because Discoverer did not 'outer join' the Condition column, the outer join was ignored.
    Any insights, ideas, or workarounds are much appreciated.
    -Jim

    If you build a query that uses an outer join then any items from the potentially deficient side of the join will have (+) appended to them everywhere in the sql. Up until 8.1.7 this was OK in the select list as it was just treated as noise and ignored - However this now fails with ORA-30563:
    outer join operator (+) not allowed in select-list...
    In 4.1.33.1.6 you get the error 'ORA-30563 outer join operator(+) not allowed in select list'.
    In 4.1.36.1.10 the query runs OK.. Your work around I would guess would be to create a custom folder as you suggested.

  • ORA-01719: outer join operator (+) not allowed in operand of OR or IN

    I am getting the following Error when I tried to execute my Query.
    Error : ORA-01719: outer join operator (+) not allowed in operand of OR or IN
    select unique t.estblmt_src_typ_id as estblmt_src_typ_id,
    t.name as name from estblmt_src_typ t, src_estblmt_unknown_data u, estblmt_src eSrc, estblmt e,
    additional_addr aa, country c, src_country_state_region scsr
    where
    (t.estblmt_src_typ_id=u.estblmt_src_typ_id and
    e.state_region_id=scsr.state_region_id and
    upper(scsr.code1)='UNKNOWN' and
    u.processed_ind = 'N' and
    eSrc.Estblmt_Alt_Id = u.estblmt_alt_id and
    u.estblmt_src_typ_id = eSrc.estblmt_src_typ_id and
    eSrc.Estblmt_Id = e.estblmt_id and
    e.country_id = c.country_id and
    u.estblmt_element = 'State Region' and
    scsr.estblmt_src_typ_id = u.estblmt_src_typ_id and
    aa.estblmt_id(+)=e.estblmt_id and
    e.end_dt is null) or
    (t.estblmt_src_typ_id=u.estblmt_src_typ_id and
    aa.state_region_id=scsr.state_region_id and
    upper(scsr.code1)='UNKNOWN' and u.processed_ind = 'N' and
    eSrc.Estblmt_Alt_Id = u.estblmt_alt_id and
    u.estblmt_src_typ_id = eSrc.estblmt_src_typ_id and
    eSrc.Estblmt_Id = aa.estblmt_id and aa.country_id = c.country_id and (u.estblmt_element = 'Additional State Code' or u.estblmt_element = 'Additional State Province') and scsr.estblmt_src_typ_id = u.estblmt_src_typ_id
    and aa.estblmt_id=e.estblmt_id and e.end_dt is null) order by t.name

    First, is this query being executed within Apex or at the SQL prompt or in SQL Workshop, or something else? Some context of where it's being executed may help.
    Next, that's a query from hell. How about rewrting it to use ANSI join syntax instead, so it'a bit more readable?
    A quick example for part of it would be:
    FROM (additional_addr aa LEFT OUTER JOIN estblmt e ON aa.estblmt_id = e.estblmt_id )
    etc.
    Just add additional parenthesis for each additional table join, similar to:
    FROM ((additional_addr aa LEFT OUTER JOIN estblmt e ON aa.estblmt_id = e.estblmt_id )
    LEFT OUTER JOIN src_country_state_region scsr ON aa.state_region_id = scsr.state_region_id )
    In the long run it will make the query a bit more legible, so your where clause only lists the query conditions, not the join conditions. Then it becomes easier to quickly glance at it and see where potential problems may be.
    Bill Ferguson

  • ORA-20001: The assignment does not exist at this date.

    Hi,
    I got the following error when imported employee assigment per Hr_Assignment_Api.update_emp_asg_criteria. Could any one help us?
    "ORA-20001: The assignment does not exist at this date.".
    Following are information and scripts. By the way, Our instance is R12
    RDBMS : 11.2.0.1.0
    Oracle Applications : 12.1.2
    lp_object_version_number ->7
    effective_start_date ->29-OCT-10
    effective_end_date -> 31-DEC-12
    ln_effective_date = > effective_start_date
    =========================
    apps.Hr_Assignment_Api.update_emp_asg_criteria
    (p_validate => False,
    p_effective_date => ln_effective_date, -- l_date,
    p_datetrack_update_mode => lv_update_mode, --'CORRECTION',
    p_assignment_id => ln_assignment_id,
    p_object_version_number => lp_object_version_number,
    p_organization_id => '0', --'Business Group' c_emp.organization
    p_location_id => '1242', -- 'default ccid',
    p_job_id => '64', -- This is job 'MANAGER ->64' to test in OFADEV.,
    -- p_position_id => v_emp.std_position_id,
    p_special_ceiling_step_id => lp_special_ceiling_step_id,
    p_effective_start_date => ln_effective_date,
    --per_effective_start_date,
    p_effective_end_date => lp_effective_end_date, --IN/OUT
    p_people_group_id => lp_people_group_id, --IN/OUT
    p_group_name => lp_group_name, --IN/OUT
    p_org_now_no_manager_warning => lp_org_now_no_manager_warning, --IN/OUT
    p_other_manager_warning => lp_other_manager_warning, --IN/OUT
    p_spp_delete_warning => lp_spp_delete_warning, --IN/OUT
    p_entries_changed_warning => lp_entries_changed_warning, --IN/OUT
    p_tax_district_changed_warning => lp_tax_district_chang_warning --IN/OUT
    );

    966933 wrote:
    How do I find the reference you posted?MOS website -- https://support.oracle.com
    You need to have a valid CSI number and valid username/password to access MOS website.
    Thanks,
    Hussein

  • Export dumps failing with ORA-31623: a job is not attached to this session

    Hi,
    Oracle Version : 11.1.0.7.0
    OS Solaris : 10
    Export partition dumps failing with the Error message ORA-31623: a job is not attached to this session via the specified handle.
    When i checked the table dba_datapump_jobs, i found several table is in "NOT RUNNING" status. Please help me what to do this?
    OWNER_NAME JOB_NAME OPERATION JOB_MODE STATE DEGREE ATTACHED_SESSIONS DATAPUMP_SESSIONS
    OAM BIN$wzWztSbKbFjgRAAUT9ZhNg==$0 EXPORT TABLE NOT RUNNING 0 0 0
    OAM BIN$wzWztSbZbFjgRAAUT9ZhNg==$0 EXPORT TABLE NOT RUNNING 0 0 0
    OAM BIN$wzWztScGbFjgRAAUT9ZhNg==$0 EXPORT TABLE NOT RUNNING 0 0 0
    OAM BIN$wzWztSaxbFjgRAAUT9ZhNg==$0 EXPORT TABLE NOT RUNNING 0 0 0
    OAM BIN$wzWztSbAbFjgRAAUT9ZhNg==$0 EXPORT TABLE NOT RUNNING 0 0 0
    OAM BIN$wzWztSbPbFjgRAAUT9ZhNg==$0 EXPORT TABLE NOT RUNNING 0 0 0
    OAM BIN$wzWztSbobFjgRAAUT9ZhNg==$0 EXPORT TABLE NOT RUNNING 0 0 0
    OAM BIN$wzWztSb3bFjgRAAUT9ZhNg==$0 EXPORT TABLE NOT RUNNING 0 0 0
    OAM BIN$wzWztSanbFjgRAAUT9ZhNg==$0 EXPORT TABLE NOT RUNNING 0 0 0
    OAM BIN$wzWztSb8bFjgRAAUT9ZhNg==$0 EXPORT TABLE NOT RUNNING 0 0 0
    OAM BIN$wzWztSa2bFjgRAAUT9ZhNg==$0 EXPORT TABLE NOT RUNNING 0 0 0
    OWNER_NAME JOB_NAME OPERATION JOB_MODE STATE DEGREE ATTACHED_SESSIONS DATAPUMP_SESSIONS
    OAM BIN$wzWztSbtbFjgRAAUT9ZhNg==$0 EXPORT TABLE NOT RUNNING 0 0 0
    OAM BIN$wzWztSbFbFjgRAAUT9ZhNg==$0 EXPORT TABLE NOT RUNNING 0 0 0
    OAM BIN$wzWztSbybFjgRAAUT9ZhNg==$0 EXPORT TABLE NOT RUNNING 0 0 0
    OAM BIN$wzWztScLbFjgRAAUT9ZhNg==$0 EXPORT TABLE NOT RUNNING 0 0 0
    OAM BIN$wzWztSasbFjgRAAUT9ZhNg==$0 EXPORT TABLE NOT RUNNING 0 0 0
    OAM BIN$wzWztSbUbFjgRAAUT9ZhNg==$0 EXPORT TABLE NOT RUNNING 0 0 0
    OAM BIN$wzWztScBbFjgRAAUT9ZhNg==$0 EXPORT TABLE NOT RUNNING 0 0 0
    OAM BIN$wzWztSa7bFjgRAAUT9ZhNg==$0 EXPORT TABLE NOT RUNNING 0 0 0
    OAM BIN$wzWztSbebFjgRAAUT9ZhNg==$0 EXPORT TABLE NOT RUNNING 0 0 0
    OAM BIN$wzWztSbjbFjgRAAUT9ZhNg==$0 EXPORT TABLE NOT RUNNING 0 0 0
    21 rows selected
    Regards,
    Deeban

    Hi,
    I read this is some site to stop or kill the data pump jobs. But i wants to know anyone tried this and whether this is recommendable to do or not?
    we can now stop and kill the job:
    SET serveroutput on
    SET lines 100
    DECLARE
    h1 NUMBER;
    BEGIN
    -- Format: DBMS_DATAPUMP.ATTACH('[job_name]','[owner_name]');
    h1 := DBMS_DATAPUMP.ATTACH('SYS_IMPORT_SCHEMA_01','SCHEMA_USER');
    DBMS_DATAPUMP.STOP_JOB (h1,1,0);
    END;
    Regards,
    Deeban

  • Value not legal for this attribute:Attribute: MX_ACADEMIC_TITLE_1

    Hi All,
    Run initial loads on abap CUA ended in error below, also attached initial load log to this message.
    putNextEntry failed storingTESTCUAID1
    Exception from Add operation:com.sap.idm.ic.ToPassException: ToIDStore.addEntry failed storing entry 'TESTCUAID1'. IDStore returned error message: " Value not legal for this attribute:Attribute: MX_ACADEMIC_TITLE_1" when storing attribute 'MX_ACADEMIC_TITLE_1=0002'
    Exception from Modify operation:com.sap.idm.ic.ToPassException: ToIDStore.modEntry failed updating entry 'TESTCUAID1'. IDStore returned error message: "Entry does not exist" when fetching entry
    when i check the attribute storage value is text and when i check in abap entry type is text and number. like "0002" i tried change the value to number but still got the same error. could some one help me solve this issue.
    values in abap
    thanks
    sai

    Thanks a ton Steffi,
    i input values in attribute values tab --> all it went smooth.
    Thanks
    sai

  • ORA-02005: implicit (-1) length not valid for this bind or define datatype

    Error received when attempting to login to Portal 3.0.8.9 using Internet Explorer 5.50.4522.1800CO (from Oracle OBI 5.0).
    Error does not occur when using Netscape 4.75. However, Netscape pegs CPU between every Portal page. I must maximize/minimize the Windows Task Manager in order for Netscape to move to next Portal page.
    Both browsers work with other sites.
    ORA-02005: implicit (-1) length not valid for this bind or define datatype
    DAD name: portal30
    PROCEDURE : PORTAL30.home
    URL : http://hostname:port/pls/portal30/portal30.home
    PARAMETERS :
    ============
    ENVIRONMENT:
    ============
    PLSQL_GATEWAY=WebDb
    GATEWAY_IVERSION=2
    SERVER_SOFTWARE=Oracle HTTP Server Powered by Apache/1.3.12 (Win32)
    ApacheJServ/1.1 mod_ssl/2.6.4 OpenSSL/0.9.5a mod_perl/1.24
    GATEWAY_INTERFACE=CGI/1.1
    SERVER_PORT=80
    SERVER_NAME=host
    REQUEST_METHOD=GET
    QUERY_STRING=
    PATH_INFO=/pls/portal30/PORTAL30.home
    SCRIPT_NAME=/pls
    REMOTE_HOST=
    REMOTE_ADDR=127.0.0.1
    SERVER_PROTOCOL=HTTP/1.1
    REQUEST_PROTOCOL=HTTP
    REMOTE_USER=
    HTTP_CONTENT_LENGTH=
    HTTP_CONTENT_TYPE=
    HTTP_USER_AGENT=Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)
    HTTP_HOST=host
    HTTP_ACCEPT=image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
    application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword,
    application/pdf, */*
    HTTP_ACCEPT_ENCODING=gzip, deflate
    HTTP_ACCEPT_LANGUAGE=en-us
    HTTP_ACCEPT_CHARSET=
    HTTP_COOKIE=ses= (removed due to length limitations)
    Authorization=
    HTTP_IF_MODIFIED_SINCE=
    HTTP_REFERER=

    Hi Matt
    Thanks for your help. Here's some extracts from a NUnit test case that I made to show ArrayBinding bombing on VARCHAR2(4000).
    private void SetupAdapterAndCommandForArrays()
    OracleParameter p9 = new OracleParameter();
    p9.OracleDbType = OracleDbType.Varchar2;
    p9.ParameterName = ":p_instr_array";
    p9.CollectionType = OracleCollectionType.PLSQLAssociativeArray;
    p9.ArrayBindSize = new int[]{4000, 4000};
    p9.Size = 2;
    p9.Direction = ParameterDirection.Input;
    p9.ArrayBindStatus = new OracleParameterStatus[]{OracleParameterStatus.Success,OracleParameterStatus.Success};
    OracleCommand comm = new OracleCommand();
    comm.Connection = new OracleConnection("Data Source=aboded12_local;user id=pcm_app;password=pcm_app");
    comm.CommandText = "PCM_OWNER.PKG_DAC_JASON.InsertStringArray";
                   comm.CommandType = CommandType.StoredProcedure;
    comm.Parameters.Add(p9);
    da = new OracleDataAdapter();
    da.InsertCommand = comm;
    da.InsertCommand.Connection.Open();
    [Test]
    public void TestStringArrayOf4000()
    SetupAdapterAndCommandForArrays();
    da.InsertCommand.Parameters[0].Value = new string[]{new string(Convert.ToChar("3"),4000), new string(Convert.ToChar("4"), 4000)};
    da.InsertCommand.ExecuteNonQuery();
    So when I run TestStringArrayOf4000() i get the : Oracle.DataAccess.Client.OracleException : ORA-02005: implicit (-1) length not valid for this bind or define datatype error.
    If i run another test i have that sets up an array with less than 4000 this works fine.
    any help you can offer is greatly appreciated!
    Message was edited by:
    [email protected]
    Message was edited by:
    [email protected]

  • TS3276 Most attachments from a specific address (work) can not be opened, identified as winmail.data and no data available. Not sure if this is based on the e-mail coming from a windows based system, too old of a windows based system or simply how i have

    Most attachments from a specific address (work) can not be opened, identified as winmail.data and no data available. Not sure if this is based on the e-mail coming from a windows based system, too old of a windows based system or simply how i have it set on my Mac.

    Brightbleu wrote:
    Most attachments from a specific address (work) can not be opened, identified as winmail.data and no data available. Not sure if this is based on the e-mail coming from a windows based system, too old of a windows based system or simply how i have it set on my Mac.
    Winmail.data are not usable files. They just preserve RTF within the message.
    http://support.microsoft.com/kb/278061
    Cheers
    Pete

  • [Solved]Web Service Data Control operation not visible in Data Controls

    Hi!
    I've created Web Service Data Control (named MyDataControl ) in my DataModel project for my web application (ADF BC 10.1.3.3). I've finished the wizard successfully (added initiate operation to the right side in step 2: Data Control Operations) but when the wizard finishes the initiate operation is not visible in the Data Controls (MyDataControl is visible without the operation). I'm using CVS so I think maybe some files were write protected while creating the control.
    These are the files where Data Control is written to:
    DataControls.dcx:
      <AdapterDataControl id="MyDataControl" FactoryClass="oracle.adf.model.adapter.DataControlFactoryImpl"
                          ImplDef="oracle.adfinternal.model.adapter.webservice.WSDefinition" SupportsTransactions="false"
                          SupportsSortCollection="false" SupportsResetState="false" SupportsRangesize="false"
                          SupportsFindMode="false" SupportsUpdates="false" Definition="MyDataControl"
                          BeanClass="MyDataControl" xmlns="http://xmlns.oracle.com/adfm/datacontrol">
        <Source>
          <definition xmlns="http://xmlns.oracle.com/adfm/adapter/webservice" name="MyDataControl" version="1.0"
                      provider="oracle.adfinternal.model.adapter.webservice.provider.soap.SOAPProvider"
                      wsdl="my_wsdl_location">
            <service name="MyService" namespace="urn:eu.emsa.ssn" connection="MyDataControl">
              <port name="MyServicePort">
                <operation name="initiateMyService">
                  <dataformat format="XML"/>
                </operation>
              </port>
            </service>
          </definition>
        </Source>
      </AdapterDataControl>and MyDataControl.xml:
    <?xml version="1.0" encoding="UTF-8" ?>
    <JavaBean xmlns="http://xmlns.oracle.com/adfm/beanmodel" version="10.1.3.41.57" id="MyDataControl"
              BeanClass="MyDataControl" isJavaBased="false">
      <MethodAccessor id="initiateMyService">
        <ParameterInfo id="ReplyTo_Address" Type="java.lang.String" isStructured="false"/>
        <ParameterInfo id="ReplyTo_PortType" Type="java.lang.String" isStructured="false"/>
        <ParameterInfo id="ReplyTo_ServiceName_PortName" Type="java.lang.Object" isStructured="false"/>
        <ParameterInfo id="ReplyTo_ServiceName" Type="java.lang.String" isStructured="false"/>
        <ParameterInfo id="MessageID" Type="java.lang.String" isStructured="false"/>
        <ParameterInfo id="payload" Type="java.lang.String" isStructured="false"/>
      </MethodAccessor>
    </JavaBean>A couple of days ago I've created a Data Control for another BPEL process the same way and everything was OK.
    Any ideas why this is not working?
    Regards!
    BB
    Message was edited by:
    Brokenbone

    Found out the reason. The problem was in ...MyApp\.adf\META-INF\connections.xml file which had write protection.
    BB

  • [Solved]WS Data Control operation not visible in Data Controls in JDev

    Hi!
    I've created Web Service Data Control (named MyDataControl ) in my DataModel project for my web application (ADF BC 10.1.3.3). I've finished the wizard successfully (added initiate operation to the right side in step 2: Data Control Operations) but when the wizard finishes the initiate operation is not visible in the Data Controls (MyDataControl is visible without the operation). I tried on JDev forum but had no success.
    DataControls.dcx:
      <AdapterDataControl id="MyDataControl" FactoryClass="oracle.adf.model.adapter.DataControlFactoryImpl"
                          ImplDef="oracle.adfinternal.model.adapter.webservice.WSDefinition" SupportsTransactions="false"
                          SupportsSortCollection="false" SupportsResetState="false" SupportsRangesize="false"
                          SupportsFindMode="false" SupportsUpdates="false" Definition="MyDataControl"
                          BeanClass="MyDataControl" xmlns="http://xmlns.oracle.com/adfm/datacontrol">
        <Source>
          <definition xmlns="http://xmlns.oracle.com/adfm/adapter/webservice" name="MyDataControl" version="1.0"
                      provider="oracle.adfinternal.model.adapter.webservice.provider.soap.SOAPProvider"
                      wsdl="my_wsdl_location">
            <service name="MyService" namespace="urn:eu.emsa.ssn" connection="MyDataControl">
              <port name="MyServicePort">
                <operation name="initiateMyService">
                  <dataformat format="XML"/>
                </operation>
              </port>
            </service>
          </definition>
        </Source>
      </AdapterDataControl>and MyDataControl.xml:
    <?xml version="1.0" encoding="UTF-8" ?>
    <JavaBean xmlns="http://xmlns.oracle.com/adfm/beanmodel" version="10.1.3.41.57" id="MyDataControl"
              BeanClass="MyDataControl" isJavaBased="false">
      <MethodAccessor id="initiateMyService">
        <ParameterInfo id="ReplyTo_Address" Type="java.lang.String" isStructured="false"/>
        <ParameterInfo id="ReplyTo_PortType" Type="java.lang.String" isStructured="false"/>
        <ParameterInfo id="ReplyTo_ServiceName_PortName" Type="java.lang.Object" isStructured="false"/>
        <ParameterInfo id="ReplyTo_ServiceName" Type="java.lang.String" isStructured="false"/>
        <ParameterInfo id="MessageID" Type="java.lang.String" isStructured="false"/>
        <ParameterInfo id="payload" Type="java.lang.String" isStructured="false"/>
      </MethodAccessor>
    </JavaBean>A couple of days ago I've created a Data Control for another BPEL process the same way and everything was OK.
    Any ideas why this is not working?
    Regards!
    BB
    Message was edited by:
    Brokenbone

    Found out the reason. The problem was in ...MyApp\.adf\META-INF\connections.xml file which had write protection.
    BB

  • ORA-01719: outer join operator (+) not allowed in operand of OR

    Hi all:
    I understand the error, but I'm not sure how to fix my query. In our database, a person does not NEED to have an address. The report I'm trying to create has a parameter for which address the user would like to have displayed. BUT, I need to outer join to the address table since people don't need an address, but we'd want to display all records, even if the address is null. Here's only part of my code since the query is quite large. Let me know if more is needed, and I'll supply it. I'm definately stuck. At this point I'm thinkin' of just creating two reports; one that displays the clients address, and a second that'll display the house physical address. The code:
    WHERE
    :P_ADDR = 'Lessee Mailing Address' AND
    lessee.actor_inst = address.actor_inst (+)
    ) OR (
    :P_ADDR = 'Unit Address' AND
    housing.actor_inst = address.actor_inst (+)
    ) AND

    Stick with ANSI SQL Notation, then you can overcome this restriction.
    See Back to basics: outer joins
    and look for »ORA-01719«

  • Getting error ORA-01732, after implementation of VPD policy

    Hi,
    I have created a policy to restrcit the number of records affected in auncondtional select & update (not more than 3 at a time). The policy is working fine for the select staement but when I'm trying to update the same table I'm getting "ORA-01372: data manipulation operation not legal on this view".
    I'm using Oracle 10g release 2. & I performed following steps:
    SQL> connect SYS as SYSDBA
    Enter password: ****************
    Connected.
    SQL> GRANT EXECUTE ON DBMS_SESSION TO smbdev;
    Grant succeeded.
    SQL> GRANT EXECUTE ON DBMS_RLS TO smbdev;
    Grant succeeded.
    SQL> GRANT CREATE ANY CONTEXT to smbdev;
    Grant succeeded.
    SQL> GRANT create trigger to smbdev;
    Grant succeeded.
    SQL> GRANT ADMINISTER DATABASE TRIGGER to smbdev;
    Grant succeeded.
    SQL> connect smbdev@SMBS
    Enter password: *******
    Connected.
    SQL> CREATE OR REPLACE CONTEXT rownum_ctx USING rownum_ctx_pkg;
    Context created.
    SQL> CREATE OR REPLACE PACKAGE rownum_ctx_pkg IS
    2 PROCEDURE set_rownum;
    3 END;
    4 /
    Package created.
    SQL> CREATE OR REPLACE PACKAGE BODY rownum_ctx_pkg IS
    2 PROCEDURE set_rownum
    3 AS
    4 BEGIN
    5 DBMS_SESSION.SET_CONTEXT('rownum_ctx', 'rownum', 4);
    6 EXCEPTION
    7 WHEN NO_DATA_FOUND THEN NULL;
    8 END set_rownum;
    9 END;
    10 /
    Package body created.
    SQL> CREATE OR REPLACE TRIGGER set_rownum_ctx_trig AFTER LOGON ON DATABASE
    2 BEGIN
    3 smbdev.rownum_ctx_pkg.set_rownum;
    4 END;
    5 /
    Trigger created.
    SQL> CREATE OR REPLACE FUNCTION get_rownum(
    2 schema_p IN VARCHAR2,
    3 table_p IN VARCHAR2)
    4 RETURN VARCHAR2
    5 AS
    6 rownum_pred VARCHAR2 (400);
    7 BEGIN
    8 rownum_pred := 'rownum < SYS_CONTEXT(''rownum_ctx'', ''rownum'')';
    9 RETURN rownum_pred;
    10 END;
    11 /
    Function created.
    SQL> BEGIN
    2 DBMS_RLS.ADD_POLICY (
    3 object_schema => 'smbdev',
    4 object_name => 'SMB_BOLT_CODE',
    5 policy_name => 'rownum_policy',
    6 function_schema => 'smbdev',
    7 policy_function => 'get_rownum',
    8 statement_types => 'select,update’)
    9 END;
    10 /
    PL/SQL procedure successfully completed.
    SQL> select * from smbdev.SMB_BOLT_CODES;
    CATENTRY_ID SYN_BOLT_CODE
    13700 08000026540000
    13701 08000026520000
    13702 08000026530000
    SQL> update smb_bolt_codes set SYN_BOLT_CODE='asd';
    update smb_bolt_codes set SYN_BOLT_CODE='asd'
    ERROR at line 1:
    ORA-01732: data manipulation operation not legal on this view
    SQL> select * from tab where tname=’ SMB_BOLT_CODES’;
    TNAME TABTYPE CLUSTERID
    SMB_BOLT_CODES TABLE
    SQL> connect sys@smbs as SYSDBA
    Enter password: ***********
    Connected.
    SQL> select count(*) from smbdev.SMB_BOLT_CODES;
    COUNT(*)
    101
    Please let me know what I'm doing wrong or what I need to change?
    Thanks in advance.

    Welcome to the forum!
    This seems odd: you add a policy to an object named SMB_BOLT_CODE, but you query SMB_BOLT_CODES
    SQL> BEGIN
    2 DBMS_RLS.ADD_POLICY (
    3 object_schema => 'smbdev',
    4 object_name => 'SMB_BOLT_CODE',
    5 policy_name => 'rownum_policy',
    6 function_schema => 'smbdev',
    7 policy_function => 'get_rownum',
    8 statement_types => 'select,update’)
    9 END;
    10 /
    PL/SQL procedure successfully completed.
    SQL> select * from smbdev.SMB_BOLT_CODES; --<------ Notice the extra S here...Edited by: Alex Nuijten on Aug 14, 2009 2:28 PM

  • ORA-01732

    Hai experts
    While insering or updating in a view it throw error likd "data manipulation not legal to this view".
    My view doesn't have any expression. It depends on single table. But while doing any dml it throws error. How can i rectify it? please help me.
    create or replace view emp_ui_v
    as select eno,ename,salary from emp;
    table desc
    eno number(10)
    ename varchar2(100)
    salary number(10)
    Thanks
    Menaka.R

    If you have an access to Oracle Metalink, then take a look at Note:463025.1.
    Hint: Basically this note talks about enabling/disabling the parameter OPTIMIZER_SECURE_VIEW_MERGING
    For more information on this parameter, then look in the Oracle Documentations.
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/initparams146.htm#REFRN10262
    Regards,
    Sabdar Syed.

  • What is data manipulation

    dear experts,
    i have got a requirement saying ABAP developers needed ..in that they mentioned
    Data manipulation and Scripting...
    i am assuming data manipulation as inserting, modifying ie. doing modifications in the database
    and not sure of the scripting...
    what do they really mean?
    thanks in advance.

    LSMW Scripting tools  - the referrs to data transfer or conversion from legacy system to SAP.  LSMW is a tool within R/3 that we use to do this.
    Customizations - This could be modifying standard SAP programs to conform to the business requirement and/or writing custom programs to fill the gap
    Data Conversion -  This is converting data from 3rd party or legacy systems to SAP database.
    Data Manipulation - Again, not sure, but it could be anything related to data.
    Scripting -  I think this may refer to the sapscript forms tool that I mentioned before.
    Really all of them except for the first are a little ambiguous.
    Regards,
    RIch Heilman

  • Managed Provider: The data protection operation was unsuccessful.

    We just attempted to deploy a new .net 4 web application with the beta managed provider. When attempting to open a new connection, we hit this exception:
    The data protection operation was unsuccessful. This may have been caused by not having the user profile loaded for the current thread's user context, which may be the case when the thread is impersonating.
    Is there an app pool setting in IIS that we need to change to get this to work? Locally it works fine, so I'm assuming it's some type of permissions issue.

    I could provide you with a test case, but honestly it's as simple as it gets - just a blank web forms app that includes the managed provider! Here is the code I have to open the connection:
    using System;
    using System.Configuration;
    using System.Data;
    using Oracle.ManagedDataAccess.Client;
    public class CatalogDB : IDisposable
    private readonly OracleConnection _conn;
    private OracleCommand _oCmd;
    private OracleDataAdapter _oDA;
    private DataTable _dt;
    public CatalogDB()
    string connString = ConfigurationManager.ConnectionStrings["connCBSProd"].ConnectionString;
    _conn = new OracleConnection(connString);
    _conn.Open(); // EXCEPTION THROWN HERE
    Could this be a medium trust issue? The server we're deploying to is also manged by plesk, so there is a virtual guarantee that there is some non-standard setting applied.

Maybe you are looking for

  • TS1567 suddenly my ipod nano is not recognized by itunes, windows version

    my device is not being recognized, just stopped after a number of months . any ideas as to what to do ? we are running windows 7 , ipod Nano

  • ERROR in Module RSQL &include &P9

    Hi Experts, I have an issue with Solman 7.1, when accessing the transaction solman_workcenter the Gui displays : “ 500 Sap Internal ERROR ERROR: Error in module RSQL of the Database interface &INCLUDE &P9 (termination RABAX_STATE).” In the ST22 trans

  • How to export Android sms to pc

    I want to be able to export my Android SMS database to my pc in a friendly txt, html or pdf format that is easy to read. I have the sms.db file ready to use, i just want to be able to easily convert it. What applications that are completely free can

  • Sending midi via Motif USB to Logic.

    Can someone explain how to set up my Mac,Logic pro 9 & Motif es6 to send midi note messages to Logic? I just need to use my Motif as a midi controller.I downloaded the drivers on my Mac & hopefully it is there! Thanks.

  • Adobe Photoshop installer failed to initialise

    I am trying to install a trial of adobe photoshop CS6 which I have downloaded from the adobe website. However, I seem to be getting an issue with the installer. Here is my ETRECheck if it is any help. EtreCheck version: 1.9.12 (48) Report generated 1