Table based on Public Synonyms

I have 2 schemas and have created public synonyms and given access from the 1 schema to the 2nd schema.
When I create Page / Region of type Report and form (or form) in schema 2, the table name does not accept the public synonyms defined in schema 1. I can create a report region manually using the the SQL Report and select col1, col2 from tab1_of_schema1 but while using the wizard and selecting the table, am unable to use the table ? I even tried schema1.tab1_of_schema1 but it gives " * Table / View does not exist." error. Why is this ?
Is this a limitation ? I do not want to create views and write instead-of triggers.

This was raised during the evaluation of 2.2, and this was the response:
Sorry, don't know if this is already addressed, (but i cannot test this in 2.2, with my scenario, so would appreciate you mention if it is handled). I have 2 schemas, schema1 and schema2. There are tables in schema1 which have public synonyms and grant all access to schema2.
While creating a new application in schema2 and creating Page, we cannot select public synonyms defined in schema1, and have to unnecessarily create views in schema2 (this is not nice for us). Even if view is created, it gives an error saying " Source tables for forms and tabular forms must have a primary key. " why should views have primary key ? Either do not allow views there, or ask for the primary key (like in create region). Sequences defined in schema1(again public synonyms) are not accessible.(we have to write triggers or custom pl/sql for the same).
Response
We do not do very well with objects that are not owned by the schema assoicated with your current application. I have logged an enhancement request for 3.0 to see if we can improve this all around.
-----------------------------------------------------------------------------------------------------------------------------

Similar Messages

  • View Owner and table name of public synonym

    A schema user has created a public synonym of a table to another user, say U1.
    How could U1 view all the details of the public synonyms, such as a list of all the public synonyms, and the corresponding owner and table names?

    select synonym_name
           , table_owner
           , table_name
    from all_synonyms
    where owner = 'PUBLIC'
    order by 2, 3
    /Be warned that this is likely to be a very long list, so you might want to also filter on
    and table_owner not ('SYS', 'SYSTEM')or similar.
    Cheers, APC
    Blog : http://radiofreetooting.blogspot.com/

  • Do I need to deploy Public Synonym in Target Schema?

    Hi,
    I need to develop and deploy a mapping. I need to use source table in source schema but a Public Synonym for a terget table. This destination table for the public synonym is not target_schema where mapping is to be deployed. Do I still need to deploy the public synonym into my target schema where mapping is or not? I was 3wandering since its a public synonym and the actual destination table is already in database I may not have to deploy this synonym. Thanks for the help in advance..

    OWB does not currently directly support public synonyms. You will have to deal with these synonyms outside OWB and if you use the synonym from a mapping you can trick OWB to use it by creating and using a dummy table in the mapping.
    Regards:
    Igor

  • Problem to resolve existing public synonym ?

    Hello,
    I would like to know if there are some circumstances under which a valid
    public synonym on a table still brings up
    ORA-00980 (in Oracle Reports).
    The situation is this:
    We have two main schemas, one is crowded with tables and all stored
    procedures, and one with a single but
    large table. This table has a public synonym and can be selected from in
    SQLPlus and so on. No [schema.] is needed.
    But in Oracle Reports, the synonym "cannot be resolved". All other tables
    can be selected, but the update on the
    special large table failes.
    Or is Reports behaving different from SQL*Plus ? One of our developers gave
    up using synonyms
    and started adding [schema.]table to the statements.
    Has anybody here made similar observations ?
    I re-created the public synonym last night, because we thought it maybe caused by our
    recent db upgrade, but the situation did not change.
    What could it be ?
    ThanX in advance.
    Jan

    Jan,
    You didn't state what version of the database you are using, nor whether you are accessing the table in the Reports data model or in a PL/SQL trigger. There are known bugs about when accessing a synonym under specific conditions, although a common theme seems to be when accessing from within a PL/SQL block. You should contact Oracle Support and work with them to resolve this issue for your specific situation.
    regards,
    Stewart

  • Create a view based on a public synonym

    Hi I'm trying to create a view based on a public synonym, but getting "ORA-01031: insufficient privileges" error.
    When i retrieve records from the same public synonym, i could able to do so. But when i try to create a view based on that synonym, it is not possible. Why is it? Can anyone please explain?
    11:58:04 IT00053.it0053@SCOTT> connect sys as sysdba
    Enter password: ******
    Connected.
    11:58:14 IT00053.it0053@SYS> create role general_user_role;
    Role created.
    Elapsed: 00:00:00.14
    11:58:33 IT00053.it0053@SYS> connect scott
    Enter password: *****
    Connected.
    11:58:41 IT00053.it0053@SCOTT> select * from tab;
    TNAME TABTYPE CLUSTERID
    DEPT TABLE
    EMP TABLE
    BONUS TABLE
    SALGRADE TABLE
    DEPT_TAB SYNONYM
    Elapsed: 00:00:00.01
    11:58:47 IT00053.it0053@SCOTT> create public synonym scott_emp for scott.emp;
    Synonym created.
    Elapsed: 00:00:00.06
    11:59:14 IT00053.it0053@SCOTT> grant select on scott_emp to general_user_role;
    Grant succeeded.
    Elapsed: 00:00:00.14
    11:59:35 IT00053.it0053@SCOTT> connect sys as sysdba
    Enter password: ******
    Connected.
    12:00:13 IT00053.it0053@SYS> create user beginning_user
    12:00:31 2 identified by beginning_user
    12:00:38 3 default tablespace users
    12:00:45 4 temporary tablespace temp;
    User created.
    Elapsed: 00:00:00.04
    12:00:53 IT00053.it0053@SYS> grant connect, resource, create table, create view to beginning_user;
    Grant succeeded.
    Elapsed: 00:00:00.01
    12:01:13 IT00053.it0053@SYS> grant general_user_role to beginning_user;
    Grant succeeded.
    Elapsed: 00:00:00.01
    12:01:35 IT00053.it0053@SYS> connect beginning_user/beginning_user
    Connected.
    12:01:49 IT00053.it0053@SYS> connect beginning_user
    Enter password: **************
    Connected.
    12:02:01 IT00053.it0053@SYS> show user
    USER is "BEGINNING_USER"
    12:02:06 IT00053.it0053@SYS> select * from scott_emp;
    EMPNO ENAME JOB MGR HIREDATE SAL
    COMM DEPTNO
    7369 SMITH CLERK 7902 17-DEC-80 800
    20
    7499 ALLEN SALESMAN 7698 20-FEB-81 1600
    300 30
    7521 WARD SALESMAN 7698 22-FEB-81 1250
    500 30
    7566 JONES MANAGER 7839 02-APR-81 2975
    20
    7654 MARTIN SALESMAN 7698 28-SEP-81 1250
    1400 30
    7698 BLAKE MANAGER 7839 01-MAY-81 2850
    30
    7782 CLARK MANAGER 7839 09-JUN-81 2450
    10
    7788 SCOTT ANALYST 7566 19-APR-87 3000
    20
    7839 KING PRESIDENT 17-NOV-81 5000
    10
    7844 TURNER SALESMAN 7698 08-SEP-81 1500
    0 30
    7876 ADAMS CLERK 7788 23-MAY-87 1100
    20
    7900 JAMES CLERK 7698 03-DEC-81 950
    30
    7902 FORD ANALYST 7566 03-DEC-81 3000
    20
    7934 MILLER CLERK 7782 23-JAN-82 1300
    10
    14 rows selected.
    Elapsed: 00:00:00.21
    12:02:16 IT00053.it0053@SYS> create or replace view new_view_1 as select empno, ename, job from
    12:02:50 2 scott_emp;
    scott_emp
    ERROR at line 2:
    ORA-01031: insufficient privileges
    Why is this error?
    Your help will be much appreciated...
    Thanks and regards
    Muthu

    create any view privilege
    10:15:07 IT00053.it0053@SYS> connect sys as sysdba
    Enter password: ******
    Connected.
    10:22:27 IT00053.it0053@SYS>
    10:22:28 IT00053.it0053@SYS>
    10:22:28 IT00053.it0053@SYS> grant create any view to beginning_user;
    Grant succeeded.
    Elapsed: 00:00:00.00
    10:22:53 IT00053.it0053@SYS> connect beginning_user/beginning_user
    Connected.
    10:22:59 IT00053.it0053@SYS> create or replace view new_view_1 as select empno, ename, job from scot
    t_emp;
    create or replace view new_view_1 as select empno, ename, job from scott_emp
    ERROR at line 1:
    ORA-01031: insufficient privileges
    ---> Same result
    But When creating a view, the owner must have granted the select directly.
    10:23:08 IT00053.it0053@SYS> connect scott/tiger
    Connected.
    10:25:43 IT00053.it0053@SCOTT> grant select on scott_emp to beginning_user;
    Grant succeeded.
    Elapsed: 00:00:00.07
    10:26:14 IT00053.it0053@SCOTT> connect beginning_user/beginning_user
    Connected.
    10:26:19 IT00053.it0053@SCOTT> create or replace view new_view_1 as select empno, ename, job
    10:26:25 2 from scott_emp;
    View created.
    Elapsed: 00:00:00.03
    This works. Thanks a lot for your timely help.
    danke shun herr bochum. thanks to mr.ankara

  • Public Synonyms for Nested Tables - Insertion Problem

    Hi,
    we are facing a problem during implementation. Our DB set up
    is , we will be having two schema named OWNR and COPY.
    In the schema, OWNR we have to create all the tables,
    types,procedures, packages and obj.....This schema will have
    both DDL and DML privileges.
    In the schema, COPY we are not supposed to create any tables,
    objects. We have to create public synonyms for all the tables,
    types, procedures... in OWNR and grant ALL privilege to the
    schema COPY.The schema, COPY will have only DML privileges.
    The problem is we have some nested tables in our application.
    When I try to insert into the synonym which is created for the
    nested table, it is not allowing me to insert..The whole
    implementation is stucked..Please help.The scripts are given
    below.......
    We have a type name SITA_ADDRESS_TY which is used by the nested
    table SITA_ADDRESSES_NT.Script used for creating the Type,Nested
    table,Table, Public Synonym and granting all privilege to these
    types and tables are
    CREATE OR REPLACE TYPE SITA_ADDRESS_TY AS OBJECT (
    SITA_ADDRESS VARCHAR2(10),
    REMARKS VARCHAR2(100)) ;
    PROMPT SITA_ADDRESSS_NT...
    CREATE OR REPLACE TYPE SITA_ADDRESSES_NT AS TABLE OF
    SITA_ADDRESS_TY ;
    Using this nested table we have created the table,
    UMS_SITA_ADDRESS
    CREATE TABLE UMS_SITA_ADDRESS (
    COMPANY_CODE VARCHAR2 (6) NOT NULL,
    AIRLINE_CODE VARCHAR2 (6) NOT NULL,
    DESTINATION VARCHAR2 (6) NOT NULL,
    SITA_ADDRESS SITA_ADDRESSES_NT)
    TABLESPACE EKUMDAT
    PCTFREE 5
    PCTUSED 40
    INITRANS 1
    MAXTRANS 255
    STORAGE (
    INITIAL 64K
    NEXT 64K
    PCTINCREASE 0
    MINEXTENTS 1
    MAXEXTENTS 505
    FREELISTS 1 FREELIST GROUPS 1 )
    NOCACHE
    NESTED TABLE SITA_ADDRESS STORE AS UMSNT_SITA_ADDRESS ;
    PROMPT SYNONYM SITA_ADDRESS_TY...
    CREATE PUBLIC SYNONYM SITA_ADDRESS_TY FOR SITA_ADDRESS_TY
    PROMPT SYNONYM SITA_ADDRESSES_NT...
    CREATE PUBLIC SYNONYM SITA_ADDRESSES_NT FOR SITA_ADDRESSES_NT
    PROMPT UMS_SITA_ADDRESS...
    CREATE PUBLIC SYNONYM UMS_SITA_ADDRESS FOR UMS_SITA_ADDRESS
    Granting Privileges
    PROMPT SITA_ADDRESS_TY...
    GRANT EXECUTE ON SITA_ADDRESS_TY TO COPY
    PROMPT SITA_ADDRESSS_NT...
    GRANT EXECUTE ON SITA_ADDRESSES_NT TO COPY
    PROMPT UMS_SITA_ADDRESS...
    GRANT ALL ON UMS_SITA_ADDRESS TO COPY
    When I connect to copy and desc UMS_SITA_ADDRESS, the structure
    is
    SQL> desc ums_sita_address
    Name Null? Type
    COMPANY_CODE NOT NULL VARCHAR2(6)
    AIRLINE_CODE NOT NULL VARCHAR2(6)
    DESTINATION NOT NULL VARCHAR2(6)
    SITA_ADDRESS
    OWNR.SITA_ADDRESSES_NT
    Why is it so??. Even though I have a synonym for
    SITA_ADDRESSES_NT, it is not referencing the synonym but instead
    refer the OWNR.SITA_ADDRESSES_NT
    Because of this when I try to insert into ums_sita_address(in
    schema COPY), it is giving the following error,
    SQL> insert into ums_sita_address values
    ('EK','EK','DXB',SITA_ADDRESSES_NT());
    insert into ums_sita_address values
    ('EK','EK','DXB',SITA_ADDRESSES_NT())
    ERROR at line 1:
    ORA-00932: inconsistent datatypes
    But when the same connect to OWNR and try to insert with the
    same stmt, it is inserting...
    Our middle tier can connect only to COPY schema alone..Is there
    anything to be done in the DBA side to achieve this??.
    Please help from your valuabe experience...Or can you ask your
    collegues if they have got a soln to this probs..Our
    implementation team is stucked with this...
    Thanks
    Priya

    Hi
    I am not sure but maybe you need to use this command:
    SQL> insert into ums_sita_address values
    ('EK','EK','DXB',SITA_ADDRESSES_TY());
    SITA_ADDRESSES_TY() instead SITA_ADDRESSES_NT
    Regards

  • Public Synonyms for Nested Tables - Insertion Problem  - Please Help!!!!!

    Hi,
    we are facing a problem during implementation. Our DB set up
    is , we will be having two schema named OWNR and COPY.
    In the schema, OWNR we have to create all the tables,
    types,procedures, packages and obj.....This schema will have
    both DDL and DML privileges.
    In the schema, COPY we are not supposed to create any tables,
    objects. We have to create public synonyms for all the tables,
    types, procedures... in OWNR and grant ALL privilege to the
    schema COPY.The schema, COPY will have only DML privileges.
    The problem is we have some nested tables in our application.
    When I try to insert into the synonym which is created for the
    nested table, it is not allowing me to insert..The whole
    implementation is stucked..Please help.The scripts are given
    below.......
    We have a type name SITA_ADDRESS_TY which is used by the nested
    table SITA_ADDRESSES_NT.Script used for creating the Type,Nested
    table,Table, Public Synonym and granting all privilege to these
    types and tables are
    CREATE OR REPLACE TYPE SITA_ADDRESS_TY AS OBJECT (
    SITA_ADDRESS VARCHAR2(10),
    REMARKS VARCHAR2(100)) ;
    PROMPT SITA_ADDRESSS_NT...
    CREATE OR REPLACE TYPE SITA_ADDRESSES_NT AS TABLE OF
    SITA_ADDRESS_TY ;
    Using this nested table we have created the table,
    UMS_SITA_ADDRESS
    CREATE TABLE UMS_SITA_ADDRESS (
    COMPANY_CODE VARCHAR2 (6) NOT NULL,
    AIRLINE_CODE VARCHAR2 (6) NOT NULL,
    DESTINATION VARCHAR2 (6) NOT NULL,
    SITA_ADDRESS SITA_ADDRESSES_NT)
    TABLESPACE EKUMDAT
    PCTFREE 5
    PCTUSED 40
    INITRANS 1
    MAXTRANS 255
    STORAGE (
    INITIAL 64K
    NEXT 64K
    PCTINCREASE 0
    MINEXTENTS 1
    MAXEXTENTS 505
    FREELISTS 1 FREELIST GROUPS 1 )
    NOCACHE
    NESTED TABLE SITA_ADDRESS STORE AS UMSNT_SITA_ADDRESS ;
    PROMPT SYNONYM SITA_ADDRESS_TY...
    CREATE PUBLIC SYNONYM SITA_ADDRESS_TY FOR SITA_ADDRESS_TY
    PROMPT SYNONYM SITA_ADDRESSES_NT...
    CREATE PUBLIC SYNONYM SITA_ADDRESSES_NT FOR SITA_ADDRESSES_NT
    PROMPT UMS_SITA_ADDRESS...
    CREATE PUBLIC SYNONYM UMS_SITA_ADDRESS FOR UMS_SITA_ADDRESS
    Granting Privileges
    PROMPT SITA_ADDRESS_TY...
    GRANT EXECUTE ON SITA_ADDRESS_TY TO COPY
    PROMPT SITA_ADDRESSS_NT...
    GRANT EXECUTE ON SITA_ADDRESSES_NT TO COPY
    PROMPT UMS_SITA_ADDRESS...
    GRANT ALL ON UMS_SITA_ADDRESS TO COPY
    When I connect to copy and desc UMS_SITA_ADDRESS, the structure
    is
    SQL> desc ums_sita_address
    Name Null? Type
    COMPANY_CODE NOT NULL VARCHAR2(6)
    AIRLINE_CODE NOT NULL VARCHAR2(6)
    DESTINATION NOT NULL VARCHAR2(6)
    SITA_ADDRESS
    OWNR.SITA_ADDRESSES_NT
    Why is it so??. Even though I have a synonym for
    SITA_ADDRESSES_NT, it is not referencing the synonym but instead
    refer the OWNR.SITA_ADDRESSES_NT
    Because of this when I try to insert into ums_sita_address(in
    schema COPY), it is giving the following error,
    SQL> insert into ums_sita_address values
    ('EK','EK','DXB',SITA_ADDRESSES_NT());
    insert into ums_sita_address values
    ('EK','EK','DXB',SITA_ADDRESSES_NT())
    ERROR at line 1:
    ORA-00932: inconsistent datatypes
    But when the same connect to OWNR and try to insert with the
    same stmt, it is inserting...
    Our middle tier can connect only to COPY schema alone..Is there
    anything to be done in the DBA side to achieve this??.
    Please help from your valuabe experience...Or can you ask your
    collegues if they have got a soln to this probs..We are stucked
    with this...
    Thanks
    Priya

    Hi
    I am not sure but maybe you need to use this command:
    SQL> insert into ums_sita_address values
    ('EK','EK','DXB',SITA_ADDRESSES_TY());
    SITA_ADDRESSES_TY() instead SITA_ADDRESSES_NT
    Regards

  • Cannot see columns for some of the public synonyms

    Background Info
    I am using the Oracle 8.1.6 JDBC driver and connecting to Oracle 8 database. My plan is to give the user the option to initially select the type of tables that they want to see i.e. USER tables, SYSTEM tables, VIEWS and SYNONYMS. Based on the user selection I first display all the tables (for that type) and for each table selected by a user display the relevant columns.
    I am doing this by using the DatabaseMetaData.getTables () and then the DatabaseMetaData.getColumns () methods
    Problem
    When I use these methods for SYNONYMS I cannot see the columns for lot of the public synonyms. Some the SYNONYMS for which I cannot see the columns are
    ALL_JOBS, COLS, CLU, CAT, TABS.
    As part of the debugging process, I found a java file OracleDatabaseMetadata.java file (as part of 8.0.4 sample files). In this file I see that calls are being made against ALL_TAB_COLUMNS. For each of the synonym that I am seeing the problem, there are no columns in ALL_TAB_COLUMNS. But when I do a desc ALL_JOBS in SQLPLUS, I get the columns for ALL_JOBS. So now I am confused on what is happening in the 8.1.6 JDBC driver.
    Has anyone else run into the same problem.
    Thanks

    There are some cases where Discoverer cannot determine with certainty that the Totals or subtotals you create will be correct. It flags those totals as Values that cannot be aggregated. Go to Options-> Sheet Format and you can set what string you would like to see placed in those cells that Discoverer determines cannot be aggregated correctly.
    Assuming that the blank totals are non-aggregable by Discoverer, there are some things you can do to to alter either your business area or worksheet or calculation that will enable you to get the totals you want. As this analysis takes some time and iterations, it is usually best handled through Oracle Support. Also see the doc and RN references to the EnhancedAggregationStrategy in the Preferences.
    Also, given the version you are using it seems that you have just started using 9.0.2. You should strongly consider upgrading to OracleAS 10g (9.0.4) or at least upgrade to the latest 9.0.2 patch -> 9.0.2.54.
    Discoverer Product Management

  • Form based on a synonym

    Hi,
    A simple question : is it possible to create a form based on a synonym? (public, private, no matter)?
    Suppose I want to deploy an application within a schema where all the synonyms (with the same names) are pointing to the real schema.
    Also, something is telling me that it is not possible because when I create a form region based on table, the lov is only presenting the "real" tables and views.
    The last question, if not possible, why isn't it? Many customers are using FORMS with this architecture, it will be a step more to bring them to APEX.
    Thank a lot, Bruno-Pierre

    Do you suggest anything to get around this? As I mentionned, many customers use the generic schema with synonyms approach so we'll have to be creative!
    I could create in the generic schema all the views used by the application (the synonym list). A lot of inconvenients but working...
    Bruno-Pierre

  • How to create materialized view based on a synonym

    Hi all,
    I am trying to create simple materialized view based on a synonym and that synonym is pointing a view in other database (using dblink). I am getting table or view not found error . I am able to select synonym if i use select but not in materialized view. Please help me.
    Thanks,

    The best way to do this is to create a materialzed view based on the underlying code of the original view. If you don't have this handy, issue the following in sqlplus:
    select text
    from user_views
    where view_name = 'NAME_OF_VIEW'
    You can then cut and paste the sql statement into your create materialized view statement.
    Please note, you will probable have to set the long parameter to a higher value to reveal the complete statement for example:
    SQL> set long 2048

  • Create a public synonym for a db link - "Connection desccriptor not found".

    I want to create a public synonym for a db link.
    The existing db link name is tst.world ( which is in db links table and is working fine).
    I created the following db link using the following command:
    create public synonym "syn.world" for "tst.world";
    It created the synonym successfully.
    If I try the following, it throws error "Connection desccriptor not found".
    select * from [email protected];
    It says "Connection desccriptor not found".
    Any suggestions.
    Thanks in Advance.

    Well then, lookup the Documentation on the CREATE SYNONYM statement in the SQL Language Reference manual.
    The documentation lists the types of objects which you can create synonyms for.
    You can create synonyms for objects referenced across DBLinks.
    You cannot create synonyms for DBLinks.
    Hemant K Chitale

  • A dynamic table based on run-time created view object -- please help!

    Hello!
    I'm trying to create a dynamic table based on an run-time created view object. All go ok, but table binding component take the first view/iterator state and don't reflect changes they have. Please, take a look:
    1. At run-time the view is being replaced by new red-only one based on query in application module:
    getQueryView().remove();
    createViewObjectFromQueryStmt("QueryView", statement);
    2. Page definition file contains an iterator (using iterator or methodIterator - doesn't matter) binding and table, which binds to the iterator, like:
    <methodIterator id="distributeQuery1Iter" Binds="distributeQuery1.result"
    DataControl="QueryServiceDataControl" RangeSize="10"/>
    <table id="distributeQuery11" IterBinding="distributeQuery1Iter"/>
    3. The page code uses <af:table>. But, if I use table binding (it's right) like this:
    <af:table var="row" value="#{bindings.distributeQuery11.collectionModel}">
    <af:forEach items="#{bindings.distributeQuery11.attributeDefs}" var="def">
    the table will never changed (i.e. still show the first view instance).
    When I tried to use iterator binding directly (it's bad and cannot provide all needed features unlike CollectionModel from table binding) I saw that table works!
    (Code is somehing like:
    <af:table var="row" value="#{bindings.myIterator.allRowsInRange}">
    <af:forEach items="#{bindings.myIterator.attributeDefs}" var="def">
    Why the table binding do not reflect changes in iterator? Or should I use different approach?
    Thanks in advance!
    Ilya.

    I got it to work! I used a hybrid approach comprised of some of your code and some of Steve Muench's AcceessAppModuleInBackingBean example.
    In the setBindings method, I execute an app module method that redefines the query, then I used your code to delete and recreate bindings and iterator:
    public void setBindingContainer(DCBindingContainer bc) {
    this.bindingContainer = bc;
    rebuildVO();
    The rebuildVO() method looks like the code you provided in your example:
    private void rebuildVO() {
    DCDataControl dc;
    DispatchAppModule dApp;
    DCBindingContainer bc;
    DCIteratorBinding it;
    OperationBinding operationBinding;
    ViewObject vo;
    DCControlBinding cb;
    try {
    bc = getBindingContainer();
    dc = bc.findDataControl(DATACONTROL);
    dApp = (DispatchAppModule)dc.getDataProvider();
    // Execute App Module Method to rebuild VO based upon new SQL Statement.
    dApp.setDispatchViewSQL();
    vo = dApp.findViewObject(DYNAMIC_VIEW_NAME);
    it = bc.findIteratorBinding(DYNAMIC_VO_ITER_NAME);
    it.bindRowSetIterator(vo, true);
    // logger.info("Remove value binding...");
    cb = bc.findCtrlBinding(DYNAMIC_VIEW_NAME);
    cb.getDCIteratorBinding().removeValueBinding(cb);
    bc.removeControlBinding(cb);
    // logger.info("Creating new value binding...");
    FacesCtrlRangeBinding dynamicRangeBinding =
    new FacesCtrlRangeBinding(null,
    bc.findIteratorBinding(DYNAMIC_VO_ITER_NAME), null);
    // logger.info("Add control binding...");
    bc.addControlBinding(DYNAMIC_VIEW_NAME, dynamicRangeBinding);
    } catch (Exception e) {
    e.printStackTrace();
    And my App Module method that redefines the view object looks like this:
    public void setDispatchViewSQL() {
    String SQL =
    "begin ? := PK_BUsiNESS.F_GETDISPATCHVIEWSQL();end;";
    CallableStatement st = null;
    String ViewSQL = null;
    try {
    st = getDBTransaction().createCallableStatement(SQL,
    DBTransaction.DEFAULT);
    * Register the first bind parameter as our return value of type LONGVARCHAR
    st.registerOutParameter(1, OracleTypes.LONGVARCHAR);
    st.execute();
    ViewSQL = ((OracleCallableStatement) st).getString(1);
    findViewObject(DYNAMIC_VO_NAME).remove();
    ViewObject vo = createViewObjectFromQueryStmt(DYNAMIC_VO_NAME, ViewSQL);
    vo.executeQuery();
    } catch (SQLException s) {
    throw new JboException(s);
    } finally {
    try {
    st.close();
    } catch (SQLException s) {
    s.printStackTrace();
    When I run it I get my desired results. One thing I don't quite understand is why when the page is first rendered it shows the last set of records rather than the first. Now I have to figure out how to put navigation URLS in each of the table cells.
    Thanks for your help; I would not have gotten this far without it,
    Jeff

  • DB Links vs. Public Synonyms Security issue

    I have been debating on using either a public synonym or a db link for my purpose. I have a dev, test, and prod database. I have applications that have been developed using a public synonym. I know that if I were to switch to db links I would have to go back and change the applications to have access to the tables. I was wondering if it would be more secure to just have the public synonyms with select privilege or have db links. I need to decide if I should use db links for various users in the same DB (e.g. prod) and to use db links from one DB to another. Can someone explain what the security risks are between the two and which would be safer to use?
    Thanks

    I appreciate that you have taken the time to read my post. The version of the database I am using is 10g. I guess to clarify my post I am asking if someone can provide me advantages and disadvantages of using either public synonyms or db links. I don't know if I am clear, but when I refer to a DB Link I am referring to the following type of access where a client in a database A can access information in a remote database B (e.g. schema1.table2@databaseB). I am not sure what you mean by "Database links are two entirely different technologies that do two entirely different things". But I would appreciate if someone with DBA experience can provide some insight regarding security issues associated with using public synonyms and db links.
    Thank you,

  • What can i do for creating view on a public synonym?

    Hi people,
    I have create a public synonym for other users object as,
    SQL> create public synonym pdep for scott.dept;
    Synonym created.
    then i tend to create a view on this public syn as,
    SQL> create view vpdep as select * from pdep;
    create view vpdep as select * from pdep
    ERROR at line 1:
    ORA-01031: insufficient privileges
    I have privilege to create view.also i can create view on a public synonym of my own objects.for ex,
    SQL> create public synonym cdep for dept;
    Synonym created.
    SQL> create view vcdep as select * from cdep;
    View created.
    what could be the reason behind this?is there any privilege required for me.pls suggest me.
    Regards
    VIDS

    Hi vidusnat!
    This is from Oracle's onlinedocumentation:
    >
    Privileges Required to Create Views
    To create a view, you must meet the following requirements:
    You must have been granted one of the following system privileges, either explicitly or through a role:
    o The CREATE VIEW system privilege (to create a view in your schema)
    o The CREATE ANY VIEW system privilege (to create a view in another user's schema)
    You must have been explicitly granted one of the following privileges:
    o The SELECT, INSERT, UPDATE, or DELETE object privileges on all base objects underlying the view
    o The SELECT ANY TABLE, INSERT ANY TABLE, UPDATE ANY TABLE, or DELETE ANY TABLE system privileges
    In addition, in order to grant other users access to your view, you must have received object privileges to the base objects with the GRANT OPTION clause or appropriate system privileges with the ADMIN OPTION clause. If you have not, then grantees cannot access your view.
    >
    I hope that this will bring a little light into darkness!
    Yours sincerely
    Florian W.

  • DB Link Public Synonym

    Hi Guys
    I have a public SYNONYM that was created to access a table on the remote database using a DB Link.
    We are able to access the DB Link using SQL Plus and the Synonym BUT when the same is used inside the cursor query of a PL/SQL block we get the following error message!
    This is driving me crazy... need your expert suggestion :)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Errors for PROCEDURE SP_PROCESS_SESEBA031:
    59/12 PLS-00341: declaration of cursor 'V_CUR' is incomplete or
    malformed
    60/9 PL/SQL: ORA-01775: looping chain of synonyms
    60/9 PL/SQL: SQL Statement ignored
    95/15 PL/SQL: Item ignored
    123/9 PL/SQL: SQL Statement ignored
    124/18 PLS-00320: the declaration of the type of this expression is
    incomplete or malformed
    127/9 PL/SQL: Statement ignored
    127/12 PLS-00320: the declaration of the type of this expression is
    incomplete or malformed
    148/13 PL/SQL: SQL Statement ignored
    161/37 PL/SQL: ORA-00904: "V_DTL_REC"."TRADE_DATE": invalid identifier
    161/37 PLS-00320: the declaration of the type of this expression is
    incomplete or malformed
    180/9 PL/SQL: Statement ignored
    180/53 PLS-00320: the declaration of the type of this expression is
    incomplete or malformed
    182/9 PL/SQL: SQL Statement ignored
    213/14 PLS-00320: the declaration of the type of this expression is
    incomplete or malformed
    213/24 PL/SQL: ORA-00984: column not allowed here
    Compile source: /usctreg1/app/db/proc/SP_PROCESS_SESECRC.src
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Thanks & Best Regards,
    Faisal.

    Hi,
    As I say, when we access the synonym (that links to a table through a DBLINK) we have this issue. The code can be as simple as
    DECLARE
    var1 int := 0;
    CURSOR S1 IS SELECT col1, col2 from TB_DBLINK;
    BEGIN
    LOOP through Cursor S1
    END;
    Here the TB_DBLINK is:
    CREATE PUBLIC SYNONYM TB_DBLINK FOR TB_DBLINK@DBL1
    The TB_DBLINK on the DBL1 is also a Public Synonym... So it means that a Public Synonym is being created for a Public Synonym!
    Able to access this using SQL Plus simple select though :(

Maybe you are looking for

  • Wlan MAC in deep sleep. Please help debug

    Hi, I have begun experiencing a most distrubing error with my wlan0 recently (perhaps within the last week; at the most 14 days).  My wlan0 stops working and disconnect entirely from the system for some to me unknown reason. Here is a bit from my /va

  • Dreamwiever behaviors Go to URL (new blank or browser window)

    <script type="text/javascript"> function MM_goToURL() { //v3.0   var i, args=MM_goToURL.arguments; document.MM_returnValue = false;   for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'"); </script> <a href="http://example.com"

  • Sales to Billing Invoice Creation with Split that Shouldn't Occur

    Good Morning, First of all, let me tell you i've started doing some ABAP development last week, so i have a lot of things to yet understand. I received a request to implement a change in the creation of a billing document. Context: I have a order - O

  • How to make form scroll down as user completes questions

    I have a multi page form that is mostly hidden but as a user answers 1 question this may then prompt another question to appear, what I would like to do is ensure that the form auto scrolls down as the questions are answered. Any help would be apprec

  • I am having serious pixelation problems in yosemite with my CS6 applications

    i recently purchased a new mac with yosemite on it and tried to install my CS6 design standard and all the applications are running in a horribly pixelated manor. I ran all the updates and the issue was resolved in illustrator and photoshop but not i