Problem to extract the value of the other schema

Hi all the gurus of the database.

I'm having a little problem could someone please help me out.

Here's my problem:

I'll have two distinct schemas in a database SCHEMA1 and SCHEMA2.

And I'm having a table EMP to SCHEMA1, I had created a public synonym for this table and give grant SELECT, DELETE, INSERT and UPDATE to SCHEMA2.

I am connected to SCHEMA2 and try to write a select statement to retrieve the emp_id of the EMP Table of SCHEMA1. My select statement is simple: select emp_id SCHEMA1. EMP where emp_name = "AAA". This select statement works very well since SCHEMA2.

Now, I'm trying to create the SCHEMA2 procedure and try to get with the same select emp_id. But it is not allowing me to create the procedure. I tried with dynamic sql too but not able to read this value.

Could someone help me please for this?

Kind regards
Paragraphs Mistry

How is the privilege to select on the table SCHEMA1 granted to the user SCHEMA2? It is through a role? What the procedure defined, Summoner or the rights of the author?

My guess is that the procedure has the author rights and the right to SELECT is granted to a role. In this case the procedure does not take into account roles and the select statement will fail.

Try to grant privileges directly to the owner of the procedure.

HTH!

Tags: Database

Similar Questions

  • Installation of the Photoshot 13 elements. error message: "this is a problem when extracting the files. Check the amount of space available on your computer and the rights to write to the destination folder. I have 1.38 TB of free space and total control

    I try to install photoshop elements 13, that I bought and downloaded from Amazon. When I try to install it I get the following error message: "this is a problem when extracting the files. Check the amount of space available on your computer and the rights to write to the destination folder. I administrar 1.38 TB of free space and total control.

    Charles please do not remove the installation files in the Program Files directory.  I recommend to extract the installation to your downloads folder or your desktop files.  Once installation files are extracted, you can then run the installation program to install Photoshop elements 13.

  • Reference to the other schema

    Hello

    I want to model the following situation in SQLD DM:
    -Diagram 2
    -1 schema, I define a view
    -of the other schema I want to refer to this point of view in a view

    Issues related to the:
    -Create each drawing as a drawing or a relational model in a drawing?
    -How can I refer to the other schema view in the query designer?

    SQLD DM version 3.3.0.734

    Thanks in advance,

    Joop

    Hi Joop,

    Create each drawing as a drawing or a relational model in a drawing?

    As a relationship in a drawing model.

    How can I refer to the other schema view in the query designer

    You have a set a display scheme that you create. If the objects used in the view definition belong to another scheme they are included with the schema name in a generated select statement. By default the objects in the same schema (such as the view) are not prefixed with schema name - if you want that the schema name to include, then check the box 'Schema to include in the query name' on the view dialog box.

    Philippe

  • ReadOnly user can access the other schema and change them

    Hello everyone,

    I created a readonly as this user in oracle 11g r2

    SQL > CREATE USER IDENTIFIED BY readonly readonly;
    SQL > GRANT CREATE SESSION, CREATE a SYNONYM to readonly.
    SQL > GRANT SELECT ON SA.vCustomerService TO readonly.

    But when I connect to the database and do a select like:
    SQL > SELECT * FROM ACC;
    I get the data in this table, even if I do an update on that table it works.

    What I am doing wrong that my readonly user always has full access to the other schema?

    Thank you in advance for your help!

    Best regards
    GIL GOMES Dany

    Dan_lu wrote:
    Hello everyone,

    I created a readonly as this user in oracle 11g r2

    SQL > CREATE USER IDENTIFIED BY readonly readonly;
    SQL > GRANT CREATE SESSION, CREATE a SYNONYM to readonly.
    SQL > GRANT SELECT ON SA.vCustomerService TO readonly.

    But when I connect to the database and do a select like:
    SQL > SELECT * FROM ACC;
    I get the data in this table, even if I do an update on that table it works.

    Check the permissions for this table - maybe some operations on this table are granted to the publc?

  • Data type of the other schema reference

    Hello

    I want to reference the data type on the other schema, inv.customer, 1st schema table, 2nd table tran.order.

    then, when I declare my package.


    Procedure p_insertOrder
    (
    p_empid in customer.customerid%type
    p_orderid in tran.order.orderid%type
    );


    However, it gives me this error message

    PLS-00201: identifier 'tran.orde' must be declared.

    the following package is located in inv schema. so when I make reference to the customer table, I do not have the diagram for it.

    So what is the cause of this?



    ~ vincent.

    what grants do you have enabled on the table?

    Log in as tran or a dba and try:

    grant select on tran.order to inv;
    

    You can also create a public synonym so you don't have to precede the table with the schema name. Beware of the tables of the same name in your current schema if you do it well.

  • Problems while extracting the hours of the Date field

    Hi guys,.

    We hope that you do well.

    I am facing some problems during extraction of the hours of the date field. Here is an example of my orders table:-

    Select * from orders;

    Arrival time of Order_NO product name
    1 computer Office November 20, 10 10:10
    2 November 21, 10 17:26:34 portable
    3 22 January 11 printer 08:10

    Earlier, it is stated that the daily number of orders take place in the roll of the order, I used to write a query

    arrival_time > = trunc ((sysdate-1), 'DD')
    and arrival_time < trunc ((sysdate), 'DD')

    The above query gives me yesterday how many orders have been been held.

    Now I have the new requirement to report on every 4 hours the number of orders will be held. For example if the current time is 08:00 IST then the query must extraction from 04:00 until 08:00 how many orders took place. The report will take place at 12:00 IST which will give me an order took place from 08:00 until 12:00.

    The report will be run every 4 hours per day and generate report of orders taken place for the past 4 hours. I have a programmer who will run this query every hour, but how to understand to get the order at the request of details who arrived for the past 4 hours. I'm not able to do this using trunc.

    Can you please help me how to make this happen. I checked "Extract" also, but I am not convinced.

    Help, please.

    Thanks in advance
    Aalami

    try something like

    with testdata as (
      select sysdate - level/24 t from dual
      connect by level <11
    )
    
    select
      to_char(sysdate, 'DD-MM-YYYY HH24:MI:SS') s
    , to_char(t, 'DD-MM-YYYY HH24:MI:SS') t from testdata
    where
    t >= trunc(sysdate, 'HH') - numtodsinterval(4, 'HOUR')
    
    S     T
    19-06-2012 16:08:21     19-06-2012 15:08:21
    19-06-2012 16:08:21     19-06-2012 14:08:21
    19-06-2012 16:08:21     19-06-2012 13:08:21
    19-06-2012 16:08:21     19-06-2012 12:08:21
    

    trunc (, 'HH') truncates the minutes and the seconds of the date.
    Extract the hour only works on timestamps
    concerning

    Published by: chris227 on 19.06.2012 14:13

  • The sys user can not see tables belonging to the other schema

    Hello

    We have a database used to store the metadata of the soa suite, yesterday, we asked to grant select on certain tables of the prodsoa_bam schema, but we found this sys cannot see the tables of prodsoa_bam.

    If we question dba_tables we can list the tables of prodsoa_bam, but if we execute a query on the tables that we get an ORA-00942 error.

    Someone suggested a work around?

    Kind regards.

    try using double quotes. It seems that your table name is case-sensitive (which I do like):

    SELECT COUNT (*) FROM PRODSOA_ORABAM. SysIterPrivilege ';

  • Activities of track on the other schema

    I have a scheme (used by our application) accessible by many developers with this schema password.

    I want to create new patterns for each developer and also trace their changes to the schema of the application.

    Is it possible to audit changes made by each user on the application schema?

    You can use the audit

    http://docs.Oracle.com/CD/E11882_01/network.112/e16543/auditing.htm#DBSEG006
    http://docs.Oracle.com/CD/E11882_01/server.112/e26088/statements_4007.htm#SQLRF01107

  • Error message when you install update LR6. Message indicates there is a problem when extracting the files.

    I install the update on a 64-bit of WIndows 10 computer. I installed updates several times in the past with no problems.

    Message indicates also that I should check the available space and to write to the destination folder. I have a lot of hard disk space and have full write privileges.

    Can anyone help with this.

    Thank you all for your attempts to help. I found the problem. We recently moved to retire and have a pretty slow DSL internet provider. It turns out that even if the entire .exe file seems to have downloaded, it turns out that the file has been corrupted by bad internet connection. It's why some files are not from. The error message was unfortunately worded such that it did not seem to point to such a problem (implicit low disk space or a mistake to privilege admin).

    I solved using my Verizon service of my mobile phone as a hotspot and downloaded on my computer via my phone. Everything was installed normally after that.

    Appreciate attempts to help them.

    Mark

  • ORA - 12054:while trying to create mview based on table in the other schema

    Hi all
    show user 
    user is "NAAMA" 
    CREATE TABLE USERS
    (
      user_id               NUMBER,
       user_name             VARCHAR2(15 CHAR),
      user_password         VARCHAR2(50 CHAR),
    CONSTRAINT user_pk PRIMARY KEY (user_id));
    TABLE created.
    ---------------------------------------------------------------------
    show user 
    user is "TEST" 
    create materialized view log on NAAMA.USERS WITH ROWID
    create materialized view users_mv 
    build immediate 
    refresh fast on commit with rowid 
    as 
    select  user_name  ,
              user_password         
    from naama.users;
    --------------------------------------------------------------------------------------------------------------
    ORA-12054: cannot set the ON COMMIT refresh attribute for the materialized view
      
    I suspect that this problem is all about privileges.
    Please help
    Thanks to advanced
    Naama

    Naamas wrote:
    I understand and granted.

    Then I have a feeling get_name function is more complex than what you posted:

    SQL> create user naama
      2    identified by naama
      3    default tablespace users
      4    quota unlimited on users
      5  / 
    
    User created.
    
    SQL> grant create session,
      2        create table,
      3        create procedure,
      4        create materialized view
      5    to naama
      6  / 
    
    Grant succeeded.
    
    SQL> create user test
      2    identified by test
      3    default tablespace users
      4    quota unlimited on users
      5  / 
    
    User created.
    
    SQL> grant create session,
      2        create table,
      3        create materialized view
      4    to test
      5  / 
    
    Grant succeeded.
    
    SQL> connect naama@orcl/naama
    Connected.
    SQL> create table users(
      2                     user_id               NUMBER,
      3                     user_name             VARCHAR2(15 CHAR),
      4                     user_password         VARCHAR2(50 CHAR),
      5                     CONSTRAINT user_pk PRIMARY KEY(user_id)
      6                    )
      7  / 
    
    Table created.
    
    SQL> grant select,
      2        on commit refresh
      3    on users
      4    to test
      5  / 
    
    Grant succeeded.
    
    SQL> create or replace
      2    function get_name(
      3                      user_name_in IN varchar2
      4                     )
      5      return varchar2
      6      is
      7          v_name varchar2(10);
      8      begin
      9          select  'NAAMA'
     10            into  v_name
     11            from  naama.users
     12            where rownum = 1;
     13          return v_name;
     14  end get_name;
     15  / 
    
    Function created.
    
    SQL> grant execute
      2    on get_name
      3    to test
      4  / 
    
    Grant succeeded.
    
    SQL> create materialized view log
      2    on users
      3    with rowid
      4  / 
    
    Materialized view log created.
    
    SQL> grant all
      2    on mlog$_users
      3    to test
      4  / 
    
    Grant succeeded.
    
    SQL> connect test@orcl/test
    Connected.
    SQL> create materialized view users_mv
      2    build immediate
      3    refresh fast
      4    on commit
      5    with rowid
      6    as
      7      select  user_name,
      8              user_password,
      9              naama.get_name(user_name) first_name
     10        from  naama.users
     11  /
                naama.get_name(user_name) first_name
                      *
    ERROR at line 9:
    ORA-12054: cannot set the ON COMMIT refresh attribute for the materialized view
    
    SQL> 
    

    Next time you get MV create errors, you can login as the owner of the MV as question:

    SQL> @?\rdbms\admin\utlxmv.sql -- run it once per user only, it creates table MV_CAPABILITIES_TABLE
    
    Table created.
    

    Now comment ON offending COMMIT and the question:

    SQL> begin
      2      dbms_mview.explain_mview('create materialized view users_mv
      3    build immediate
      4    refresh fast
      5  --  on commit
      6    with rowid
      7    as
      8      select  user_name,
      9              user_password,
     10              naama.get_name(user_name) first_name
     11        from  naama.users','xxx');
     12  end;
     13  /
    
    PL/SQL procedure successfully completed.
    
    SQL> SELECT  CAPABILITY_NAME,
      2          POSSIBLE,
      3          RELATED_TEXT
      4          RELATED_NUM,
      5          MSGNO,
      6          MSGTXT
      7    FROM  MV_CAPABILITIES_TABLE
      8    WHERE STATEMENT_ID = 'xxx'
      9    ORDER BY SEQ
     10  /
    
    CAPABILITY_NAME                P RELATED_NUM                         MSGNO MSGTXT
    ------------------------------ - ------------------------------ ---------- --------------------------------------------------
    PCT                            N
    REFRESH_COMPLETE               Y
    REFRESH_FAST                   N
    REWRITE                        N
    PCT_TABLE                      N this PL/SQL function cannot be       2066 Oracle error: see RELATED_NUM and RELATED_TEXT for
                                      supported for query rewrite               details
    
    PCT_TABLE                      N NAAMA.USERS                          2068 relation is not a partitioned table
    REFRESH_FAST_AFTER_INSERT      N                                      2083 mv references PL/SQL function that maintains state
    REFRESH_FAST_AFTER_ONETAB_DML  N                                      2146 see the reason why REFRESH_FAST_AFTER_INSERT is di
                                                                               sabled
    
    REFRESH_FAST_AFTER_ANY_DML     N                                      2161 see the reason why REFRESH_FAST_AFTER_ONETAB_DML i
                                                                               s disabled
    
    REFRESH_FAST_PCT               N                                      2157 PCT is not possible on any of the detail tables in
                                                                                the materialized view
    
    REWRITE_FULL_TEXT_MATCH        N this PL/SQL function cannot be       2066 Oracle error: see RELATED_NUM and RELATED_TEXT for
                                      supported for query rewrite               details
    
    REWRITE_FULL_TEXT_MATCH        N                                      2159 query rewrite is disabled on the materialized view
    REWRITE_PARTIAL_TEXT_MATCH     N                                      2031 materialized view cannot support any type of query
                                                                                rewrite
    
    REWRITE_PARTIAL_TEXT_MATCH     N                                      2159 query rewrite is disabled on the materialized view
    REWRITE_GENERAL                N                                      2031 materialized view cannot support any type of query
                                                                                rewrite
    
    REWRITE_GENERAL                N                                      2159 query rewrite is disabled on the materialized view
    REWRITE_PCT                    N                                      2158 general rewrite is not possible or PCT is not poss
                                                                               ible on any of the detail tables
    
    PCT_TABLE_REWRITE              N this PL/SQL function cannot be       2066 Oracle error: see RELATED_NUM and RELATED_TEXT for
                                      supported for query rewrite               details
    
    PCT_TABLE_REWRITE              N NAAMA.USERS                          2068 relation is not a partitioned table
    
    19 rows selected.
    
    SQL> 
    

    As you can see REFRESH_FAST_AFTER_INSERT is not possible (POSSIBLE = N) and the reason is "mv reference function of PL/SQL that maintains state. Now the question is whether your function is deterministic (always returns a value even if the same parameters are passed). If it's really, use:

    SQL> create user naama
      2    identified by naama
      3    default tablespace users
      4    quota unlimited on users
      5  / 
    
    User created.
    
    SQL> grant create session,
      2        create table,
      3        create procedure,
      4        create materialized view
      5    to naama
      6  / 
    
    Grant succeeded.
    
    SQL> create user test
      2    identified by test
      3    default tablespace users
      4    quota unlimited on users
      5  / 
    
    User created.
    
    SQL> grant create session,
      2        create table,
      3        create materialized view
      4    to test
      5  / 
    
    Grant succeeded.
    
    SQL> connect naama@orcl/naama
    Connected.
    SQL> create table users(
      2                     user_id               NUMBER,
      3                     user_name             VARCHAR2(15 CHAR),
      4                     user_password         VARCHAR2(50 CHAR),
      5                     CONSTRAINT user_pk PRIMARY KEY(user_id)
      6                    )
      7  / 
    
    Table created.
    
    SQL> grant select,
      2        on commit refresh
      3    on users
      4    to test
      5  / 
    
    Grant succeeded.
    
    SQL> create or replace
      2    function get_name(
      3                      user_name_in IN varchar2
      4                     )
      5      return varchar2
      6      deterministic
      7      is
      8          v_name varchar2(10);
      9      begin
     10          select  'NAAMA'
     11            into  v_name
     12            from  naama.users
     13            where rownum = 1;
     14          return v_name;
     15  end get_name;
     16  / 
    
    Function created.
    
    SQL> grant execute
      2    on get_name
      3    to test
      4  / 
    
    Grant succeeded.
    
    SQL> create materialized view log
      2    on users
      3    with rowid
      4  / 
    
    Materialized view log created.
    
    SQL> grant all
      2    on mlog$_users
      3    to test
      4  / 
    
    Grant succeeded.
    
    SQL> connect test@orcl/test
    Connected.
    SQL> create materialized view users_mv
      2    build immediate
      3    refresh fast
      4    on commit
      5    with rowid
      6    as
      7      select  user_name,
      8              user_password,
      9              naama.get_name(user_name) first_name
     10        from  naama.users
     11  / 
    
    Materialized view created.
    
    SQL> 
    

    However, keep in mind, Oracle approves completely you declaring function as deterministic. If, in fact, your function is not deterministic (and most likely is not) MV will produce erroneous results.

    SY.

  • the procedure call in the other schema with credentials of this scheme

    Hi, experts.

    I have this problem. I need to call a procedure of WORKSPACEOWNER1 schema SCHEMA1, but I need to do this as SCHEMA1 was WORKSPACEOWNER1.

    This is the procedure:

    CREATE OR REPLACE procedure WORKSPACEOWNER1.Test_stop_process is
    workspace varchar2(500);
    begin
    
    owbsys.wb_rt_script_util.set_workspace('WORKSPACE1');
    owbsys.wb_rt_script_util.deactivate_all();  
    end;
    

    Now, if I call the WORKSPACEOWNER1 procedure is not problem, but when I call to SCHEMA1

    begin
    workspaceowner1.test_stop_process;
    end;
    

    Throw this error:

    ORA-20008: the workspace with the name: WORKSPACE1 and owner: SCHEMA1 does not exist.

    You can find out the information of existing workspace from the ALL_IV_WORKSPACE view or view WORKSPACE_ASSIGNMENT.

    ORA-06512: at "OWBSYS. WB_WORKSPACE_MANAGEMENT', line 1602

    This is because WORKSPACE1 exist for WORKSPACEOWNER1 not for SCHEMA1.

    Is this possible?

    Thanks in advance.

    Concerning

    Hi, Ana GH.

    Thanks for the reply.

    I checked in Gobals and safety, and Yes, SCHEMA1 is registered as a user of WORKSPACE1.

    Finally, I can solve the problem using DBLinks. Looks like dblink executes the procedure next to WORKSPACEOWNER1.

    I have create a DBLink as:

    CREATE the LINK of DATABASE link_wks CONNECT TO workspaceowner1 IDENTIFIED BY pass USING "orcl".

    Then this:

    BEGIN

    WORKSPACEOWNER1. Test_stop_process@link_wks;

    END;

    Works.

    Thanks to you all. I learned a lot.

    Concerning

  • Discovered using a function of package in the other schema gets 01031. 00000 - "insufficient privileges".

    Nice day.  I have a package to Schema1 that contains a function.  I created a view in Schema2 that uses arrays of Schema1 and function of this package of Schema1 - it works very well.  I created a schema3 view that uses only the display in Schema2.  When I try to compile, I get 01031. 00000 - "insufficient privileges".  When I try to run the query from the view as the user schema3 schema3, I get the data very well.  Anyone know how I can fix this, please?

    Note: If I delete the use of Schema1.sag_online_action.get_compcode (sag.sagseqnum), everything works fine.

    TIA.

    Schema1 Package:

    function get_compcode (p_iSagseqnum in number) return varchar2 AS

    VARCHAR2 (3) l_cCompcode: = ";

    BEGIN

    Select DECODE ('Y', sag.add_metal, "[1]",

    SAG.add_gc, "[2]."

    SAG.add_acid, "[3]."

    SAG.add_hplc, "[4]."

    SAG.add_icpms, "[5]."

    SAG.add_other, '[6]' ") 'compcode.

    in l_cCompcode

    SAG

    where sagseqnum = p_iSagseqnum;

    Return l_cCompcode;

    END get_compcode;

    View Schema2:

    CREATE OR REPLACE FORCE VIEW 'Schema2. "' OSAG_MICROBIALS ' ('id', 'micro-organisms', 'fees', 'addl_fee', 'icons', 'method', 'notes', 'technical', 'colMedium', 'shelf life', 'airVol', 'samplingRate', 'LD', 'orderNum', 'updated', 'online_update_action')

    AS

    SELECT sag.sagseqnum 'id,'

    trim (sag.substance |) » '|| Schema1.sag_online_action.get_compcode (SAG.sagseqnum)) "microorganisms"

    'Fresh,' Decode(SAG.subcontracted_flag,'Y','',SAG.fee_per_sample)

    Decode(SAG.subcontracted_flag,'Y','',additional_analyte_fee) "addl_fee"

    sag_symbols_key (sag.sagseqnum, sag_parameter.parmname, sag_parameter.prod) "icons."

    MethodDef.MethodDesc 'method ',.

    SAG.method_notes "notes."

    "Technical," SAG.technique

    SAG. Medium "colMedium."

    sag_shelf_life (SAG.sagseqnum) "shelf life."

    SAG.air_vol "airVol"

    SAG.sampling_rate 'samplingRate ',.

    Decode(SAG.subcontracted_flag,'Y','',sag_parameter.) LoQ) "LD",

    "OrderNum, SAG.orderby_seq

    (sag.osag_updated - to_date('01/01/1970','MM/DD/RRRR')) * 86400 "updated."

    SAG.online_update_action "online_update_action".

    SAG.

    sag_parameter,

    MethodDef

    WHERE sag.sagseqnum = sag_parameter.sagseqnum

    AND sag.methodref = methoddef.methodref (+)

    AND DECODE(sag.activeflag,,'N',sag.activeflag) = 'Y '.

    AND DECODE(sag.internalflag,,'Y',sag.internalflag) = n

    AND DECODE (sag.technique, NULL, 'XXX', sag.technique) = "microscopy".

    ORDER BY sag.substance,

    SAG. Medium;

    Schema3 notice:

    CREATE OR REPLACE VIEW "schema3. "' OSAG_MICROBIALS ' ('id', 'micro-organisms', 'fees', 'addl_fee', 'icons', 'method', 'notes', 'technical', 'colMedium', 'shelf life', 'airVol', 'samplingRate', 'LD', 'orderNum', 'updated', 'online_update_action')

    AS

    SELECT "id."

    "microorganisms"

    "charges."

    "addl_fee,"

    "icons."

    'method ',.

    "notes."

    "technique."

    "colMedium,"

    "shelf life."

    "airVol,"

    'samplingRate ',.

    "LD",

    "orderNum."

    "to date,"

    'online_update_action '.

    OF Schema2.osag_microbials;

    Try

    Grant execute on sag_online_action to schema2 with grant option

  • How to move a table to the other schema

    Salvation;

    Imagine that I have a scheme A and I create table in this scheme as a test. Now, I have a different schema, the name is B. I want to spend my A.test table to B.test2

    How can I do?

    Thank you

    If you create a new table in diagram B, the new table must be stored in tablespace default B. Unless you want the new table to be stored in a default tablespace, you need not specify a tablespace during the creation of the new table.

  • How to access the table in the other schema?

    Hi all
    any body can help me on how to access table to another scheme to another scheme?

    Use the db link

  • How to make a single instance of the application regardless of the main application and the other entry point for the application

    Hello experts,

    I explain the sceniro of my application. My request is mainly a time system as well as some other features related businesses. My app has a landing screen which is actually a custom made calendar that accumulates information captured time. There is also a time where entry screen user at will has worked time and other related information. The user has the option to run the application manually at the entrance of the time and see the reports and there the event listener to follow the events of call/SMS/e-mail that invokes the application automatically and user to the scree of time entry.

    Problem one: I used headphones to follow the events of call/SMS/e-mail. When an event is called, alternet point of entry of the application the application is running. Application then get calls time, contact information etc. and push my entry screen with pre-filled information time.

    As such, it works very well, as expected, but the problem is the number of instence that he is creating. Each track event creates a new instance of the application. I want to keep only one instance.

    Two problems: to solve this problem, I removed the other point of entry and RuntimeStore to keep the running instance of my application. This instance of the application in a way keeps in singletone as such when the listener calls the application it finds that the application is running in the background. Then she moves the application to the foreground. It works very well, I mean the application user interface called on the foreground, but he won't have to time entry screen automatically as I hope. The block of code is as follows,

    public static final long applicationID =0x8ddc44508679bd5bL;
    static NSIApplication NSIInstance=null;
    RuntimeStore runtimeStore = RuntimeStore.getRuntimeStore();
    
    if (NSIInstance != null)
                {
                    NSIInstance.requestForeground();
                }
                else
                {
                    synchronized (runtimeStore)
                    {
                        NSIInstance = (NSIApplication)runtimeStore.get(applicationID);
                                            //listener initialization
                        NSIListener.Initialze();
                    }
    
                    if (NSIInstance != null)
                    {                   NSIInstance.requestForeground();
                                        //event's info manipulation and push the time entry screen                                     NSIInstance.RUN_NSIApplication();
                    }
                    else
                    {
                        NSIInstance=NSIApplication.getInstance();
                        NSIInstance.RUN_NSIApplication();
    
                        synchronized(runtimeStore)
                        {
                            runtimeStore.put(applicationID, NSIInstance);
                        }
    
                        NSIInstance.enterEventDispatcher();
                    }
                }
    

    I expect a guideline to follow so that I can reach the expected my workflow. Thanks in advance

    I can't propose to use the runtimestore to store instances of the application, as it was used on an example RIM, he has never worked for me.

    I suggest to use a single point of entry and the automated screen using a global event or status in the runtimestore.

Maybe you are looking for