Synonyms for oracle queues

hi,
We have the following set up in place,
A Schema user(say user1) who owns all tables, procedures, queues. And a user(say user2) who accesses these objects using synonyms.
User2 is able to create synonyms and has been granted enqueue/dequeue permissions for the queue owned by user1.
now user2 executes a plsql procedure invoking these queues, but this gives an error stating user2.queue-name not found.
if the same plsql procedure is modified to prefix user1.queue-name then the procedure runs successfully.
Are synonyms valid for oracle queues? any ideas to make things work?

Solution
The behaviour of AQ can be changed to use the standard PL/SQL definer/invoker's rights model when
executing the packages via an event setting. When the event is in place, the referenced queue user
will default to the actual owner of the queue. The event can be set statically via
event = "10862 trace name context forever, level 1"
in the init.ora or
alter system set event='10862 trace name context forever, level 1' scope=spfile;
for the spfile and restarting the instance. Alternatively the parameter can be set dynamically via
alter system set events '10862 trace name context forever, level 1';
or
alter session set events '10862 trace name context forever, level 1';
The workaround is  to explicitly specify the schema name when referencing the AQ objects, e.g.
dbms_aq.enqueue (queue_name => 'USER_A.QUEUE_A' ..

Similar Messages

  • Public synonym (or similar) for message queue?

    I have problems enqueueing (and dequeueing) from a queue in a different schema than the enqueuer's/dequeuer's.
    If i only write the queue name
    DBMS_AQ.ENQUEUE( queue_name => TheQueue,
    and so on... );
    I get the exception
    ORA-25205: The Queue MyUser.TheQueue does not exist.
    If I also supply the schema name
    DBMS_AQ.ENQUEUE( queue_name => TheSchema.TheQueue),
    and so on... );
    it all works fine.
    For flexibility, I would like to omit the schema name. I tried creating a public synonym for the queue.
    CREATE PUBLIC SYNONYM TheQueue FOR TheQueue;
    This does not give an error, but when executing
    DBMS_AQ.ENQUEUE( queue_name => TheQueue,
    and so on... );
    I get an execption
    SP2-0749: Cannot resolve circular path of synonym TheQueue
    I get the same exception when I do
    DESC synonymName
    as the owner or another user.
    The procedure which executes the enqueue is executed as definer (not current_user).
    Does anyone have an idea how to be able to skip the schema name for the queue when enqueueing/dequeueing?
    Thanks,
    Lena

    There is no way for do that. See "Synonyms on queue tables and queue" on "Application Developers Guide- Advanced queuing"
    Sorry

  • Using JNDI Provider for Oracle JMS Queue

    Hello,
    I created a JMS Queue in Oracle 9.2.0.1 and would like
    a Java client to receive events from the Queue. I am
    not running Oracle9iAS. I have access to WebLogic server
    7.0 which is also a JNDI provider. Is there a sample code
    that shows the steps on how to go about this.
    thanks very much for any pointers.

    To define an Enterprise Message Source for AS JMS and OJMS in BAM, see Chapter 3 in the BAM Architect's User Guide.
    Specifying Settings for Oracle (AS JMS and OJMS)
    Settings for Oracle (AS JMS and OJMS) include:
    ■ Initial Context Factory.
    For 10.1.3: oracle.j2ee.rmi.RMIInitialContextFactory
    For 10.1.2: com.evermind.server.rmi.RMIInitialContextFactory
    ■ JNDI Service Provider URL. For standalone use oc4j: ormi://machine_name/
    where machine_name is the OC4J installed host, and for production use Application Server: opmn:ormi://<machine_name>:<opmn request port>:home where machine_name is the application server installed host, opmn request port could be found from looking at opmn.xml in <App server install location>/opmn/conf
    ■ TopicConnectionFactory Name.
    java:comp/resource/BAMTTT/TopicConnectionFactories/bam_ttq_tab
    ■ Topic Name. java:comp/resource/BAMTTT/Topics/bam_ttq
    ■ JMS Message Type. TextMessage.
    ■ Durable Subscriber Name. BAMFilteredSubscription
    ■ Message Selector. Message selector, for example, BAMFilter='true'
    ■ Client ID. ClientID
    You can also refer to:
    http://www.oracle.com/technology/products/integration/bam/10.1.3/TechNotes/TechNote_BAM_AQ_Configuration.pdf
    Regards, Stephen

  • Script to create synonyms for the tables of Oracle Applications

    Team,
    For Oracle Applications 11i on W2K, where might I find a script to create synonyms for all of the application tables? I would think there would be a standard script somewhere in one of the directories created during the install or on the CDs.
    Thanks,
    Luther

    John, it is ssome sort of a bleed, but in this case it's not the part that 'might be cut off' that matters; it's the part that still needs to be on the page. Yes, I meant it to be (virtually) not-noticeable for the casual reader. Of course you can make it part of the page design, that ought to ease up matters.
    The amount pages shift horizontally because of binding is called "creep", and this depends on the type of binding and the thickness of the paper. You cannot adjust for creep unless you know exactly how much this is and how your book is going to be printed and bound.
    Airkite:
    But the book that you printed worked out alright? Was it done with a different method?
    This was a simple outlined text, not an image. Through the inaccuracies of printing and binding combined, there were no straight edges *anywhere* but fortunately the lines were thick enough to let you mentally connect them
    This was done (I'm sure) with the method you proposed.
    There is an alternative way, but it's way more expensive (on the other hand, the result is impressive): after the entire process of printing, binding, and cutting, books are put in a clamp one at a time and fed through a silk screen printer, fore edge on top, and printed with whatever you like.
    I know of the existance of this technique but I haven't seen a book done like this in years and have no clue at all of the costs involved (writing that down in one sentence makes me realize those two might be connected).

  • Documentation for Oracle Advance Queue

    Any pointer to Documentation for Oracle Advance Queue?
    Thanks In Advance
    priyadarshi.

    hello,
    here it is
    http://download.oracle.com/docs/cd/B10501_01/appdev.920/a96587/qintro.htm
    http://www.oracle.com/technology/sample_code/tech/dataint/index.html
    both will be useful
    thanks and regards
    VD

  • Retrieve data from a synonym in oracle database through db connect

    Hi Everyone,
    I have created certain synonym for some tables in oracle. I want to retrieve data from it through db connect but where through source system and then selecting database tables, only tables and views are available.
    Synonyms are not available to create data sources and retrieve the data from it. Why is it so. Is this a limitation of db connect.
    Can anyone please let me know about it.
    Thanks,
    Joshua.

    Hi,
    You want to import data from an external Oracle database into your BW 3.X. To do this, you can connect the external database to the BW 3.X release as a source system using the external database connect. BW 3.X here represents BW 3.0, BW 3.1 and BW 3.5 because in other (DB relevant) parts, all 3 versions are based on the same source code.
    General information
    The above function allows you to load data from an external Oracle database (not a BW database) into your BW 3.0 system.
    There may also be constellations which cannot be used directly through the DB Connect access. However, it should be possible to find an adequate, customer-specific solution for most of these scenarios.
    In such situations, the resulting work falls into the area of Consulting and cannot be handled via Support.
    Successful implementation of a connection requires corresponding expertise and experience in the use of the source database in the areas:
                    - Tools
                    - SQL syntax
                    - DB-specific functions
    Corresponding knowledge of the source application is also required to ensure that semantically relevant data arrives in the BW system.
    Procedure
    You should execute the following steps to connect the source system (Q) to the BW system (BW):
    Installing the client software on an BW application server
                         Of course, you only need to install the client software if you are using BW with a non-Oracle database.
                         Use the Oracle setup program on the database CD (runInstaller on Unix) to start the OracleInstaller. Follow the program instructions and the DB installation instructions to install the Oracle Client software on BW.
    Testing connection setup from BW to Q
                         After you install the client software on BW, try to set up a connection from BW to the server on Q. You may need to adjust the tnsnames.ora or sqlnet.ora files for this, to introduce the Oracle systems (to which contact should be made) to BW. You can test the connection by executing the command "tnsping QDB" on BW to check whether the client has established contact to the QDB database on the Q system.
    Creating a separate U user in Q
                         We recommend that you create a separate U user in Q for connection to BW. This means that authorization and administration questions can be solved centrally.
    Displaying data sources in Q for the U user
                         To provide U data for users other than U, you can create views on other user tables as user U:
                         CREATE OR REPLACE VIEW viewname AS
                           SELECT * FROM QDB.tablename
                         You may have to grant SELECT privileges to user U in the QDB schema:
                            GRANT select ON QDB.tablename TO U
                         Of course, you can also restrict or reformat data in the view arrangement (for example, change from internal date format into the SAP date format). JOIN operations using several tables are also available.
                         !!! Synonyms do not yet work!!!
                         Synonyms that you can create as described below are another option for providing a complete table for the user U:
                           CREATE SYNONYM synoname FOR QDB.tablename
                         !!! Synonyms do not (yet) work!!!
                         After you have displayed the require data for user U, you can simply use
                           SELECT * FROM <view or table>
                         on the Q system to check which data is returned.
                         You can now open a link to Q as user U in the BW system with SQLPLUS and check, using the same SELECT, whether this data is also seen in the Oracle client. If this is not the case, there is probably a connection problem.
    Creating a connection from BW to Q in BW
    Including data sources of user U user in Q in BW.
    Solution
    Supported BW, Basis and BW 3.0B database versions, Basis 6.20 Support Package 2 (or higher)
          Oracle 8.1 (or higher, see below)
    Possible problems
    - Synonyms do not (yet) work!
    Up to now, only tables and views have been used as data sources for the DB Connect from the R3 Basis. As soon as synonyms are also used in the Basis, you will be able to convert created views (or even replicated tables) to synonyms as a workaround.
    With Basis 6.40 at the earliest, therefore as of BW 3.5, you will also be able to use synonyms. Until then, the following will help:
      CREATE VIEW <view_on_synonym> AS SELECT * FROM <synonym>
    - The source DB must have at least the release version of the BW DB.
    Oracle only ensures the support of client-server links if the version of the client is not higher than that of the server. So if BW has Oracle version 8.1 and, as in the case of Dbconnect, is run as a client against the server of the source database, the source database must have at least release Oracle 8.1 or higher.
    Of course, you have the option to install the Oracle client software of a lower version and then use this for the DB connect. This is also the procedure used to work with a DB connect on external databases of other vendors.
    Furthermore, the implementation of the DBconnect function in BW uses SAP Basis functions. Specifications of Oracle 8.1 database catalogs are used here. The source database must therefore have at least Version 8.1.
    - Oracle Client Software Version
    If you want to connect from an Oracle BW DB to an Oracle source DB, for the DB connect you naturally use the client software that you already installed on each application server.
    If you want to connect from a non-Oracle BW DB to an Oracle source DB, check item 3 of note 521230 to see which Oracle client software version is released with your BW R3 kernel and use this version.
    - Date and time fields in Oracle and their conversion into SAP-compatible column formats
    Example with a DATE field:
    Since a SAP table does not have a DATE field (date values are NUMC(8) and time specifications are NUMC(6)), we will use the Oracle DBA_TABLES system table as an example.
        SQL> desc dba_tables;
    The Oracle DBA_TABLES system table has a LAST_ANALYZED field. This is a DATE type field and is recognized as a date field of 7 characters by DBA_CONNECT. However, the import does not work because the DATE is a 7-byte conglomerate of "...century, year, month, date, hour, minute and second." (extract from the Oracle documentation).
    To make this DATE field legible for DB connect, you must use the TO_CHAR function in a VIEW. This should display the following examples:
    SQL> select LAST_ANALYZED from dba_tables
          where table_name like 'RS%' and rownum < 10 ;
    The formatting used here is the default used implicitly by SQLPLUS.
    SQL> select  to_char(LAST_ANALYZED,'YYYYMMDD') as dat from dba_tables where table_name like 'RS%' and rownum < 10 ;
    The result now has the SAP compatible format YYYYMMDD and should be loaded correctly by the DB connect as a date.
    SQL> select  to_char(LAST_ANALYZED,'HH24MISS') as tim from dba_tables where table_name like 'RS%' and rownum < 10 ;
    The result now has the SAP compatible format HHMMSS and should be loaded correctly by the DB connect as a time.
    You can use the following example for more detailed experiments:
    SQL> select  to_char(
           TO_DATE('03-FEB-2001 04:05:06','DD-MON-YYYY HH24:MI:SS'),
           'YY-MM-DD HH24-MI-SS') as datim from dual;
    with the result:
      DATIM
      01-02-03 04-05-06
    When you create a VIEW and use the TO_CHAR function (or other functions), you should easily be able to avoid problems with the interpretation of date/time specifications (and other reformatting).
    Details about the functions and the formats are contained in the Oracle documentation.
    - Special characters
    A words that contain special characters can only be imported correctly if the code pages in BW and in the source system are identical. If the code pages are not the same, DB Connect can be used if the characters to be imported appear under the first 127 characters of the character set.
    The use of multibyte code pages in the source system for saving data using character sets with more than 256 characters (Kanji, Katakana, Hiragana, Korean, Chinese, Tagalog, Khmer, Arabic, Cherokee, and so on) can cause the characters to become corrupt.
    For questions concerning the code pages, also refer to the FAQ note 606359 and question/answer 19 that appears there.

  • Error while running Re-create grants and synonyms for APPS schema

    Hi,
    I have upgraded customer's Oracle Apps 11i (11.5.10) database to Oracle 10g R2. While executing '+Re-create grants and synonyms+ ' as given in Note: 362203.1, I am gettng error:
    plus80 -s APPS/***** @E:\EBSTEST\ebstestappl\ad\11.5.0\admin\sql\adappsgs.pls &systempwd 1 INV APPLSYS APPS TRUE FALSE TRUE
    Error:
    Program exited with status 3
    Cause: The program terminated, returning status code 3.
    Action: Check your installation manual for the meaning of this code on this operating system.Connected.
    old 2: ad_apps_private.create_grants_and_synonyms(&2,'&3','&4','&5','FALSE');
    new 2: ad_apps_private.create_grants_and_synonyms(1,'INV','APPLSYS','APPS','FALSE');
    begin
    *+
    ERROR at line 1:
    ORA-20000: ORA-00955: name is already used by an existing
    object:create_grants_and_synonyms(1,INV,APPLSYS,APPS): create_base_gs(INV,APPS): In Synonyms
    Loop:create_synonym(INV,MTL_ONHAND_DISCREPANCY,APPS,MTL_ONHAND_DISCREPANCY):
    do_apps_ddl(APPS,CREATE SYNONYM "MTL_ONHAND_DISCREPANCY" FOR INV."MTL_ONHAND_DISCREPANCY"):
    ORA-06512: at line 5
    MTL_ONHAND_DISCREPANCIES
    I checked the database and there isn't MTL_ONHAND_DISCREPANCY synonym. But there is MTL_ONHAND_DISCREPANCIES synonym.
    This is an upgraded instance from 11.0.3 and first time I am running Re-create grants and synonyms for APPS schema.
    Plz let me know if anyone of you faced this issue.
    Rgds,
    Thiru

    Hi,
    there is no such table MTL_ONHAND_DISCREPANCY or synonym in Applications 11.5.10.2. Is that custom table created in your db?
    After dropping this table from APPS schema 'Re-create grants and synonyms for APPS schema' went thru fine.Its correct
    This table does not exist in INV schema in 11.5.10.2.
    Could be possible that the consultant could have created this table in INV and APPS schema by mistake or whatever.Yes, with the same name, there might be table in APPS SCHEMA. When you run recreate grants and synonyms, adadmin tries to create synonym for that table in APPS schema. since there is object available with the same name in apps chema, you got that error.

  • Problem while Creating MVLOG with synonym in Oracle 9i:Is it an Oracle Bug?

    Hi All,
    I am facing a problem while Creating MVLOG with synonym in Oracle 9i but for 10G it is working fine. Is it an Oracle Bug? or i am missing something.
    SQL> select * from v$version;
    BANNER
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product
    PL/SQL Release 10.2.0.1.0 - Production
    CORE    10.2.0.1.0      Production
    TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    SQL>
    SQL> create table t ( name varchar2(20), id varchar2(1) primary key);
    Table created.
    SQL> create materialized view log on t;
    Materialized view log created.
    SQL> create public synonym syn_t for t;
    Synonym created.
    SQL> CREATE MATERIALIZED VIEW MV_t
      2  REFRESH ON DEMAND
      3  WITH PRIMARY KEY
      4  AS
      5  SELECT name,id
      6  FROM syn_t;
    Materialized view created.
    SQL> CREATE MATERIALIZED VIEW LOG ON  MV_t
      2  WITH PRIMARY KEY
      3   (name)
      4    INCLUDING NEW VALUES;
    Materialized view log created.
    SQL> select * from v$version;
    BANNER
    Oracle9i Enterprise Edition Release 9.2.0.6.0 - Production
    PL/SQL Release 9.2.0.6.0 - Production
    CORE    9.2.0.6.0       Production
    TNS for Solaris: Version 9.2.0.6.0 - Production
    NLSRTL Version 9.2.0.6.0 - Production
    SQL>
    SQL> create table t ( name varchar2(20), id varchar2(1) primary key);
    Table created.
    SQL> create materialized view log on t;
    Materialized view log created.
    SQL> create public synonym syn_t for t;
    Synonym created.
    SQL> CREATE MATERIALIZED VIEW MV_t
    REFRESH ON DEMAND
    WITH PRIMARY KEY
    AS
      2    3    4    5  SELECT name,id
    FROM syn_t;   6
    Materialized view created.
    SQL> CREATE MATERIALIZED VIEW LOG ON  MV_t
    WITH PRIMARY KEY
    (name)
      INCLUDING NEW VALUES;  2    3    4
    CREATE MATERIALIZED VIEW LOG ON  MV_t
    ERROR at line 1:
    ORA-12014: table 'MV_T' does not contain a primary key constraintRegards
    Message was edited by:
    Avinash Tripathi
    null

    Hi Nicloei,
    Thanks for the reply. Actually i don't want any work around (Creating MVLOG on table rather than synonym is fine with me) . I just wanted to know it is actually an oracle bug or something else.
    Regards
    Avinash

  • How to define transaction semantics for JMS Queues

    Hi,
    My scenario in Oracle Fusion Middleware 11gR3, SOA Suite, IDE: JDeveloper 11g is as follows:
    First). receive a message from QueueA, Second). Using the message, call a serviceABC and send the same message into QueueB.
    I created a syn-BPEL, configured two JMS Adapters(for accessing Queue A & B) and one webservice binding for calling serviceABC(Proxy service). Note: I created the two queues and a connection factory under JMS System Module. As two different external systems have to access QueueA and QueueB.
    Now, when I execute the BPEL and ServiceABC gets faulted, the message is gettings consumed from QueueA and the same message is getting produced in QueueB.
    My goal is to define a transaction semantics for my composite(syn-BPEL), such that, when ServiceABC or producing the message in QueueB fails. I retain the message in QueueA(basically, rolling back the message).
    Options tried so far: 1). Created a scope for the three operations and added a compensationhandler to it and .2). XA Connection Factory is Enabled. Result: no luck:( still message from QueueA is getting consumed where as per my goal it should get rolled-back.
    Please suggest your approach, I'll try out and post the outcome back.

    Whats your architecture? Are you running your app on an application server? If so, are you in a servlet or EJB? You should be able to get the application server to manage your transactions for you in that case e.g. wrap all the JMS calls in an stateless session bean and give it Required in its transaction attribute of deployment descriptor.
    If you're not on an application server, you need to get a transaction manager, either by putting your code in an app server ( with JBoss you can use its transaction manager without necessarily having to use EJBs or Servlets, but thats not tested as thoroughly as the container managed transactions, and you will have to write some of the transaction code yourself ) or using a stand alone one.

  • Script to create grants and synonyms for objects in database

    Hello,
    We are building a patch to be applied to the production environment. I want to create a script/sql query that builds a list of grants and synonyms for all the objects created after august 09.
    for ex:
    create or replace synonym abc for schema_name.abc;
    Grant execute on abc to user_xyz;
    How can I use Oracle's data dictionary to do this?
    thankz

    Hi,
    You'll probably want to use these views:
    user_objects - includes created (DATE) column.
    user_synonyms
    user_tab_privs - not just tables (e.g., includes EXECUTE privileges on functions).
    Data dictionary views beginning with 'user_' cover objects owned by the current user only.
    Almost all of the data dictionary views (and all of the three mentioned above) also have 'all_' and 'dba_' versions.
    For example:
    all_objects inculdes everything in user_objects, plus objects in other schemas on which the current user has privileges.
    dba_objects include every object in the database. (Not everyone is allowed to see the dba_ views.)
    Here's one of many possible ways to use these views:
    SELECT     'GRANT '
    ||     privilege
    ||     ' ON "'
    ||     table_name
    ||     '" TO '
    ||     grantee
    ||     CASE
              WHEN  grantable = 'YES'
              THEN  ' WITH GRANT OPTION;'
              ELSE  ';'
         END
    FROM     user_tab_privs
    WHERE     table_name  IN (          -- Only interested in objects created after August 9
                     SELECT  object_name
                     FROM    all_objects
                     WHERE   created >= TO_DATE ( '10-Aug-2009'
                                                           , 'DD-Mon-YYYY'
    ;

  • Oracle 10g AS  pacth for Oracle Apps 11i

    Hi everyone,
    I have installed Oracle 10g AS (10.1.2.0.2) for Oracle Business Intelligence on Sun Solaris 10 (64 bit) and integrated it with Oracle Apps 11i (11.5.10.2).
    Everything seems fine but i am facing problems like
    1) Toolbars not appearing correctly sometimes like it is disabled and enables by itself.
    2)sometimes clients come accross "Connection with Server lost..." error while taking export (very few).
    3) Its giving the error (mentioned at the end) only on one client machine while taking export to Excel.
    I have tried installing Oracle 10g AS patch set 2 10.1.2.2 for Solaris but the problem persisits. Is patch set 2 compatible or certified with Oracle Apps 11i? if not then is there any other work around or do i have to wait for some new patch.
    Thanx for your inputs.
    Najeeb
    Java(TM) Plug-in: Version 1.4.2_06
    Using JRE version 1.4.2_06 Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\ASHIBEL
    Proxy Configuration: Manual Configuration
    Proxy: http=EMRPXY1:80,https=EMRPXY1:80,ftp=EMRPXY1:80,gopher=EMRPXY1:80
    Proxy Overrides: emrpxy1:80,<local>
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    o: trigger logging
    p: reload proxy configuration
    q: hide console
    r: reload policy configuration
    s: dump system properties
    t: dump thread list
    v: dump thread stack
    x: clear classloader cache
    0-5: set trace level to <n>
    Installed custom security manager
    Could not assertPermission PermissionID.SYSTEM for IE
    This can cause "Warning : Applet Window" to be displayed when running with IE
    attempt 1: adding Protocol.protocol -> rmi
    attempt 1: adding default Protocol.timeoutsecs -> 40
    attempt 1: adding RMIProtocol.transport -> http
    attempt 1: adding RMIProtocol.servletalias -> /discoverer/plus
    attempt 1: adding RMIProtocol.hijacksessionid -> 1
    attempt 1: adding RMIProtocol.httpsessionid -> jsessionid=0a43ce3430d605f5e434046d403ea5e9f219eb3784b7.e34QahyNbx0Ka40La3ySahuRbhmOe6fznA5Pp7ftolbGmkTy
    attempt 1: adding default Protocol.codebase -> http://discoverer.emaar.ae:7777/disco/plus_files/
    attempt 2: adding Protocol.protocol -> rmi
    attempt 2: adding default Protocol.timeoutsecs -> 40
    attempt 2: adding RMIProtocol.transport -> https
    attempt 2: adding RMIProtocol.servletalias -> /discoverer/plus
    attempt 2: adding RMIProtocol.hijacksessionid -> 1
    attempt 2: adding RMIProtocol.httpsessionid -> jsessionid=0a43ce3430d605f5e434046d403ea5e9f219eb3784b7.e34QahyNbx0Ka40La3ySahuRbhmOe6fznA5Pp7ftolbGmkTy
    attempt 2: adding default Protocol.codebase -> http://discoverer.emaar.ae:7777/disco/plus_files/
    Discoverer Model - 10.1.2.48.18
    New LOOKUP
    Lookup Requested
    Performing lookup RMI lookup: http://discoverer.emaar.ae:7777//discoverer/plus
    Reading bytes from input stream
    Unmarshalling response
    Session ID:2007061817102717616
    BI Beans Graph version [3.2.2.0.24]
    BI Beans Graph version [3.2.2.0.24]
    The export/print operation failed
    Worker oracle.disco.publish.PublishData@6ffeb, command=ExportData failed with DiscoNetworkException IDL:DCCORBAException:1.0 - Nested exception: oracle.discoverer.corba.DCCORBAException: IDL:DCCORBAException:1.0 wrapping exception oracle.discoverer.corba.DCCORBAException: IDL:DCCORBAException:1.0
    Error: DiscoNetworkException IDL:DCCORBAException:1.0 - Nested exception: oracle.discoverer.corba.DCCORBAException: IDL:DCCORBAException:1.0
    DiscoNetworkException IDL:DCCORBAException:1.0 - Nested exception: oracle.discoverer.corba.DCCORBAException: IDL:DCCORBAException:1.0
    oracle.discoverer.corba.DCCORBAException: IDL:DCCORBAException:1.0
         at oracle.disco.remote.corba.RMIToCorba.convertRemoteException(Unknown Source)
         at oracle.disco.model.corbaserver.ModelInterface._handleGenericExceptions(Unknown Source)
         at oracle.disco.model.corbaserver.ModelInterface.getBinaryData(Unknown Source)
         at oracle.disco.model.corbaserver.ModelInterface.GetBinaryData(Unknown Source)
         at oracle.disco.model.corbaserver.serverrequest.DsrBinaryExport.xmlUpdateServer(Unknown Source)
         at oracle.disco.model.corbaserver.serverrequest.DsrCorbaXML.corbaUpdateServer(Unknown Source)
         at oracle.disco.model.corbaserver.serverrequest.DsrGeneralCorbaXML.updateServer(Unknown Source)
         at oracle.disco.model.corbaserver.execengine.ExecuteEngineImpl._nonReentrantExecute(Unknown Source)
         at oracle.disco.model.corbaserver.execengine.ExecuteEngineImpl.execute(Unknown Source)
         at oracle.disco.model.corbaserver.execengine.SessionControllerImpl.execute(Unknown Source)
    at oracle.disco.model.corbaserver.execengine.SessionControllerImpl.execute(Unknown Source)
         at oracle.disco.model.corbaserver.export.ExportInputStream._readBuffer(Unknown Source)
         at oracle.disco.model.corbaserver.export.ExportInputStream.read(Unknown Source)
         at java.io.InputStream.read(Unknown Source)
         at java.io.BufferedInputStream.fill(Unknown Source)
         at java.io.BufferedInputStream.read(Unknown Source)
         at oracle.disco.publish.PublishData._writeBinaryData(Unknown Source)
         at oracle.disco.publish.PublishData._exportSheets(Unknown Source)
         at oracle.disco.publish.PublishData.runDiscoWorker(Unknown Source)
         at oracle.disco.worker.DiscoWorker.runWorker(Unknown Source)
         at oracle.bali.ewt.worker.AbstractWorker.run(Unknown Source)
         at oracle.bali.ewt.worker.AbstractWorkerQueue._runWorker(Unknown Source)
         at oracle.bali.ewt.worker.AbstractWorkerQueue.access$100(Unknown Source)
         at oracle.bali.ewt.worker.AbstractWorkerQueue$WorkerContext._run(Unknown Source)
         at oracle.bali.ewt.worker.AbstractWorkerQueue$WorkerContext._runMaybeBlocked(Unknown Source)
         at oracle.bali.ewt.worker.AbstractWorkerQueue$WorkerContext.run(Unknown Source)
         at oracle.bali.ewt.worker.ThreadWorkerQueue$TaskAdapter.runTask(Unknown Source)
         at oracle.bali.share.thread.TaskScheduler.runTask(Unknown Source)
    at oracle.bali.share.thread.TaskScheduler.processTask(Unknown Source)
         at oracle.bali.share.thread.TaskScheduler$TaskQueue.run(Unknown Source)
         at oracle.bali.share.thread.Timer.doRun(Unknown Source)
         at oracle.bali.share.thread.Timer.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)

    Hi
    The last I heard is that 10.1.2.2 is not yet certified for use against E-Business Suite unless your operating system is Linux. Please take a look at this posting on Steven Chan's blog: http://blogs.oracle.com/schan/2007/04/23
    The issues you are encountering, particularly the one with the toolbars disappearing, were fixed in patch 5345528 as described on my blog here: http://learndiscoverer.blogspot.com/2006/08/more-to-toolbar-icons-graying-out.html
    I would advise you to go for this patch first until Oracle certify 10.1.2.2. for Sun.
    Best wishes
    Michael

  • View + stored function + synonym for other user

    Dear All!
    I've got a quite strange problem which I cannot decide whether it's caused by my lack of knowledge on the appropriate topic or by an Oracle bug. I'm already after some heavy googling on the topic and I was unable to track any valuable answers neither in forums nor in the Oracle documentation. I'll try to be as short and specific as possible.
    Database: Oracle 10g
    Result of "SELECT BANNER FROM V$VERSION":
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    PL/SQL Release 10.2.0.4.0 - Production
    "CORE     10.2.0.4.0     Production"
    TNS for Solaris: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production
    I have two users in the database for a single Web application: UAPP01, which is the owner of application DB objects and UAPP02 which is the application user connecting to the DB. The application runs for quite many years by now and DB structure layout has always been following a simple logic: for each DB object used by the app. (tables, views, packages and stored procedures/functions) and found in the UAPP01 there exists a synonym in the UAPP02 schema. For the privileges to be set correctly a role is created: RL_MY_APPL which is granted the necessary privileges on objects of UAPP01 (CRUD on tables, SELECT on views, EXECUTE on procedures, etc..). This role is granted to UAPP02.
    In the previous days I was about to extend the DB with a view that invokes a stored function. This pattern has already occured in the DB previously so I kept following existing conventions: I've created the stored function and the view in the UAPP01 schema, granted SELECT on the view to RL_MY_APPL and created the synonym for it in the UAPP02 schema. This is where the entire functionality began to act strange. I'll try to explain with a simplified example that was sufficient to reproduce the problem:
    REM ========================================
    REM Execute below code as UAPP01 user.
    REM ========================================
    REM Test function.
    CREATE OR REPLACE FUNCTION testfunction(p_param NUMBER) RETURN NUMBER IS
    BEGIN
    RETURN p_param *2;
    END;
    REM Testview version 1. causing trouble.
    CREATE OR REPLACE VIEW testview AS
    WITH testdata AS
    SELECT /*+ materialize*/ LEVEL AS d
    FROM dual CONNECT BY LEVEL <= 100
    SELECT a, b, c, SUM(d) AS sum_d
    FROM
    SELECT FLOOR(dbms_random.VALUE(1, 100)) a, FLOOR(dbms_random.VALUE(1, 100)) b, FLOOR(dbms_random.VALUE(1, 100)) c, testfunction(d) AS d
    FROM testdata
    GROUP BY CUBE(a, b, c)
    REM Testview version 2. not causing trouble.
    CREATE OR REPLACE VIEW testview AS
    SELECT a, b, c, SUM(d) AS sum_d
    FROM
    SELECT FLOOR(dbms_random.VALUE(1, 100)) a, FLOOR(dbms_random.VALUE(1, 100)) b, FLOOR(dbms_random.VALUE(1, 100)) c, testfunction(d) AS d
    FROM
    SELECT LEVEL AS d FROM dual CONNECT BY LEVEL <= 100
    GROUP BY (a, b, c)
    REM Synonym.
    CREATE OR REPLACE SYNONYM UAPP02.testview FOR UAPP01.testview;
    REM Grants.
    GRANT SELECT ON testview TO RL_MY_APPL;
    When creating TESTVIEW with the 1 ^st^ version I cannot query it using the UAPP02 user, I'm constantly getting the error: ORA-00904: : invalid identifier. However, when I use the 2 ^nd^ version everything runs perfectly. What is common in the two cases is that both versions use the TESTFUNCTION function. I have not granted the EXECUTE rights on TESTFUNCTION to the RL_MY_APPL since it was never needed previously (for other views using stored functions) and as far as I know it's not necessary (as both the view and the function are owned by UAPP01). The strange thing in the above behaviour is that the function is used by both versions, however only one of them fails. This is where I thought it's not a granting issue, otherwise neither of the versions would have worked and I think I would have received a different error stating that UAPP02 lacks the necessary privileges on underlying objects of the view.
    As I further digged into the problem by examining the EXPLAIN PLAN output for the two versions I found that version 1. leads to a TEMP TABLE TRANSFORMATION and to MULTI TABLE INSERTs, whereas version 2. simply executes the query without doing such things. In my setup I presume the MULTI TABLE INSERTs were caused by the GROUP BY CUBE. When I simply removed the CUBE and used only GROUP BY the TEMP TABLE TRANSFORMATION remained in place but the MULTI TABLE INSERTs disappeared. As a result of this small modification the view again began to work when I executed it through the synonym and using the UAPP02 user.
    With the original DB objects of our application the behaviour is even more strange: the error comes up if I select from the view and filter for a column that is grouped in the query whereas it works correctly if I filter for the aggregated columns. However, I couldn't reproduce this with the above simplified example.
    No problem occurs with any of the versions if I query the view using the UAPP01 user.
    This hectic behaviour made me suspect that the TEMP TABLE TRANSFORMATION + MULTI TABLE INSERT + synonym + stored function combo appears to bring a strange Oracle bug to the surface...
    As a final note: when executing GRANT EXECUTE ON TESTFUNCTION TO RL_MY_APPL everything works fine in all cases. I know I could simply live with this but I'd really like to get to the bottom of this. Although this extra GRANT appears to solve the problem I don't really trust it. I'd really like to avoid the bug emerging again in Production in case this extra GRANT were not sufficient due to some unknown misteries.
    Excuse me, the post has become a bit lengthy. Thanks in advance for anyone who's willing to read through and answer it!
    Regards,
    Krisztian Balazs Szaniszlo

    The error is thrown at run-time and only for the UAPP02 (second) user.
    The problem is that the appearance of errors is independent of whether the query contains the call to the stored function or not.
    So far I thought that if I use a stored function indirectly, like in this setup: UAPP02.synonym -> UAPP01.view -> UAPP01.stored function, then I don't need the grant. Of course, I understand that if I had used it directly, like :UAPP02.synonym -> UAPP01.stored function then I'd need the GRANT EXECUTE.
    Shall I just ignore the strange behaviour and go on by adding GRANT EXECUTE privilege on all the functions used indirectly through views? It seems to solve the problem, but this behaviour is disturbing me quite and I fear the real root cause of the problem can emerge later in a different fashion.

  • Creating data server for JMS Queues in ODI

    hi,
    I am trying to create data server for JMS Queues in ODI.
    I am getting following error:
    java.sql.SQLException: Cannot load connection class because of underlying exception: 'javax.jms.JMSException: Cannot find the Connection Factory (jms/QueueConnectionFactory) in JNDI'.
    To implement this, I am giving following parameters:
    JNDI driver : com.evermind.server.rmi.RMIInitialContextFactory
    JNDI url : ormi://localhost/default
    JNDI resource : jms/QueueConnectionFactory
    Please help.
    Thanks,
    Monika

    Hi,
    according to docs
    http://docs.oracle.com/cd/E23943_01/integrate.1111/e12644/hypersonic_sql.htm#ODIKM590
    i see
    JDBC Driver: org.hsqldb.jdbcDriver
    JDBC URL: jdbc:hsqldb:hsql://<host>:<port>
    could you modify
    JDBC Driver : org.hsqldb.jdbc.JDBCDriver
    JDBC Url : jdbc:hsqldb:hsql://localhost
    according to docs?
    Thanks

  • Synonyms for packaged procedures

    Heres something that is currently bothering me.
    Why are we not allowed to create synonyms for procedures and functions within packages ?
    Our database has too many individual procedures and functions for my liking and I would like to move some of them into packages. Consequently I want to create synonyms to avoid changing application code.
    I have found metalink note 1061643.6 which confirms this cannot be done, but it also goes on to say:
    "Oracle does this using the STANDARD package with overloaded functions and procedures such as TO_CHAR() and TO_DATE(), but how Oracle does this is proprietary information and is not available to the public."
    (Thanks Oracle)

    The basic reason for this restriction is that the Oracle synonyms are alternative names only for database objects, not for PL/SQL objects like packaged function and procedures.
    But moving stored procedures/functions to packages is a good idea, recommended by all the experts, with many benefits for you in the future.
    There is a simple solution for you problem, with very little impact on the continuity or performance of your applications:
    1. Copy the code of the DB stored procedures and functions to PL/SQL packages, mirroring them into packages subprograms.
    2. Replace the body of the DB procedures and functions with plain calls to their packages equivalents, transforming them effectively into wrappers behaving like synonyms.
    3. Change gradually the code of the application to call directly the packages functions and procedures
    4. When the change is completed, delete the wrappers.
    BTW If Oracle does not support a feature, than you it's better not to use it. Modifying the STANDARD package or using some volatile, undocumented features is not a clever move...

  • How to set -Xss or ulimit  for Oracle Http Server

    Hi,
    We are facing Out of Memory Error in OHS 11g in our cluster environment. Where I can see below statements in http log file:
    # There is insufficient memory for the Java Runtime Environment to continue.
    # Cannot create GC thread. Out of system resources.
    # Possible reasons:
    # The system is out of physical RAM or swap space
    # In 32 bit mode, the process size limit was hit
    # Possible solutions:
    # Reduce memory load on the system
    # Increase physical memory or swap space
    # Check if swap backing store is full
    # Use 64 bit Java on a 64 bit OS
    # Decrease Java heap size (-Xmx/-Xms)
    # Decrease number of Java threads
    # Decrease Java thread stack sizes (-Xss)
    # Set larger code cache with -XX:ReservedCodeCacheSize=
    # This output file may be truncated or incomplete.
    #  Out of Memory Error (gcTaskThread.cpp:46), pid=17956, tid=140591807985408
    When I run the ulimit command on machine, stack size is showing as 10MB:
    Result:
    [oracle@XXXXXX bin]$ ulimit -a
    core file size          (blocks, -c) unlimited
    data seg size (kbytes, -d) unlimited
    scheduling priority (-e) 0
    file size (blocks, -f) unlimited
    pending signals (-i) 1031958
    max locked memory       (kbytes, -l) 3500000
    max memory size         (kbytes, -m) unlimited
    open files (-n) 131072
    pipe size            (512 bytes, -p) 8
    POSIX message queues     (bytes, -q) 819200
    real-time priority (-r) 0
    stack size (kbytes, -s) 10240
    cpu time (seconds, -t) unlimited
    max user processes (-u) 131072
    virtual memory          (kbytes, -v) unlimited
    file locks (-x) unlimited
    Setting the stack size to 512KB or 256KB might resolve the problem.
    I tried setting ulimit -s 512  in my user bash_profile. and ran ulimit -a , then it is showing as 
    stack size (kbytes, -s) 512
    If I set at user level, does it have any impact? Or we should set at JVM level using -Xss
    Can some body tell me where can I set -Xss for Oracle HTTP server 11g?
    Regards,
    Vidya

    Hi Marco,
    I believe you'll need to setup a MX record under 'More Actions' for your domain in Site Settings / Site Domains.
    Select the option "Use another external service for email" and enter your primary mail server's hostname at priority 10.
    Think you can repeat this step for your secondary mail server (priority 20) if you have one.
    Regards
    Mike

Maybe you are looking for

  • Using Lightroom and Iphoto Together

    Can anyone point me to a tutorial or provide information on the best way to utilize Lightroom with Iphoto? I have read several posts which are contradictory in regards to importing photos into Lightroom from Iphoto. Some say to export files to Finder

  • Provisioning the user to OID

    Hi All, I am getting below error while provisioning user to OID in OIM 11gR2. Organization Lookup reconciliation and group lookup reconciliation working fine. Thor.API.Exceptions.tcColumnNotFoundException at Thor.API.tcMetaDataSet.getStringValue(tcMe

  • 1Z0-045 (for 8i OCPs or Gold DBA 10g)

    Hello Gurus, OTN members, Please clear my doubt about upgrade certification exam. I am Oracle 8i OCP certified (DBA track); I want to upgrade myself from 8i to 10g; for which I selected paper code "1Z0-045" title "Oracle Database 10g: New Features fo

  • How to create a new condition type for palets

    Hello Gurus, I want to create a new condition type to order material palets (like LP02) but I need to calculate a discount in % for entire palets only. By example: A discount of 5% for each completed palets. I order 1 palet for 100euros, I want a dis

  • Can' access websites after recent security update.

    I recently updated to the latest Apple security update on my 24" Imac and now cannot access some sites like Google and others. Some work fine, some not at all. I haven't changed anything else since the update. Is there a way to remove the security up