Object Execution Process

Hi
I have example of object creating spec and body
How map to PL/Table this object?
How to Execute the object function?
Result should be SYSDATE;
CREATE TYPE Appointment_t AS OBJECT (
scheduled_date DATE,
MAP MEMBER FUNCTION compare RETURN DATE
CREATE TYPE BODY Appointment_t
AS
MAP MEMBER FUNCTION compare RETURN DATE
IS
BEGIN
RETURN sysdate;
END compare;
END;
Edited by: User01515 on Jun 19, 2010 1:30 PM

Have you referred to the Oracle® Database Object-Relational Developer's Guide?
As for "+How map to PL/Table this object?+"... there is no such thing as PL/SQL tables. There are arrays and collections in PL/SQL. An object as you have defined can existing as one of many such objects in a collection. Collections can exist inside the PL and SQL engines.
So you need to provide more details as to the question you have in this regard.

Similar Messages

  • Pass a COM object across processes

    Hi,
    I need to pass a COM object from process A to B.  I didn't find a good code example for IMoniker.  So I am trying to test a simpler solution.  Please refer to the following snippet of code.  There is a problem.  When the execution
    reaches GetActiveObject in B, the system hangs.  "HRESULT h" in several places returns S_OK.   Does anybody have a clue?  Please help me out.  Thanks for your help in advance.
    // the definition of the COM object
    EXTERN_C const IID IID_IUniverse;
    #if defined(__cplusplus) && !defined(CINTERFACE)
        MIDL_INTERFACE("91CAF3F6-BD4D-4DDC-9C35-59F5DB20D570")
        IUniverse : public IDispatch
        public:
    // PROCESS A:
    HRESULT h = RegisterActiveObject (cwApp, IID_IUniverse, ACTIVEOBJECT_STRONG , &dwRegister);
    // PROCESS B:
    HRESULT h = CoInitialize(NULL);
    IUniverse *p = NULL;
    HRESULT h = GetActiveObject(IID_IUniverse, NULL, (IUnknown**)&p);
    if (p)
      CComPtr<IUniverse> cwApp(p);
    JD

    On 1/27/2015 7:43 PM, jdyng77 wrote:
    I did some research on this issue to help me better understand your comments here.  I still don't fully understand the problem.  Please help me out.  Or, if I can get around the problem by using IMoniker and IRunningObjectTable instead,
    I would be more than happy doing that.
    Unlikely. If, as I suspect, the problem is that the server thread blocks, then the client won't be able to obtain the interface pointer from it by any means. Any IPC mechanism you might want to use kind of assumes that both parties remain responsive.
    WaitForSingleObject() is the opposite of "responsive".
    The third party (3rd pty) provides a COM interface.  I write a COM server A
    In-process (a DLL) or out-of-process (an EXE)? From your description, I would assume in-proc.
    that has an implementation for this interface.  I believe the 3rd pty must have called CoInitialize(NULL) before it instantiates object A.
    It must have, yes. This is only significant if A is an in-proc server.
    The 3rd pty passes a COM object of IUniverse to A.  I can call IUniverse's methods in A without any problem.  The need here is to transfer the IUniverse object to another process B so that B can call IUniverse's methods.  The problem
    is that B hangs.
    My guess is, B hangs because A hangs. In one of your responses, you suggest that you are calling WaitForSingleObject (waiting on process B's handle, I presume). In so doing, you have created a deadlock. B is trying to communicate with A to retrieve the
    interface pointer, but A is waiting for B to exit.
    After A registers IUniverse pointer (whether in ROT or as active object), it should return to the caller. Said caller likely spins a message pump - but by blocking and not returning, you don't allow it to run.
    The thread where A sits is created in the 3rd pty.  If I understand you correctly, the 3rd pty must "retrieve and dispatch window messages in a timely manner".  I think it does because it calls A when a window button is clicked.
    3rd pty would, if only A would let it. By sitting in the message handler, A prevents the caller from retrieving messages in a timely manner.
    But I don't know whether I should use Class, File or Item IMoniker.
    Item moniker is the easiest to use by far. It just wraps a piece of text. You create one with CreateItemMoniker: pass L"!" (by convention) in the first parameter, and arbitrary string in the second. Both parties (one that registers in ROT, and
    one that picks up) should agree on and use the same string, of course.
    Igor Tandetnik

  • Difference between Service data objects and process data object

    Hi
    Can anybody tell me what is the difference between SDO (Service Data Objects) & PDO (Process Data Objects).I am using 2 port PCI-CAN series 2 card.
    If anybody knows the answer then please reply.
    Thanking You

    Hi,
    See the online help file from our NI CANopen Library for LabVIEW for some basic informations about SDOs and PDOs.
    More information should be available from the web.
    DirkW
    Attachments:
    lvcanopenvhelp.zip ‏154 KB

  • How to find unassigned master data text objects in process chain in bi

    Hi
    Please let me know how to find the unassigned master data text objects in process chain.

    hi,
    actually if u want to find that , is ur Unassigned Infoobject in present in process chain or not, , that u can find out just by right
    click on your DTP (master data Txt datasource--> Master data text ), if this is present in Process chain, then on ryt click, the process chain option will be active. by clicking over that u can find the name in which this exists.
    thanks.

  • DWLoader works in SSIS Execution Process Task?

    Does anyone knows if PDW's DWLoader works in SSIS Execution Process Task? Is there a sample?
    I struggle to find documentation on using DWLoader.exe in Execution Process Task (EPT) of SSIS. There are articles in PDW BOL about DWLoader.exe or SSIS to load data, however, there is no article I
    can find about using DWLoader.exe in Execution Process Task SSIS. I'd expect SSIS to behave the same way as we execute it in Command Prompt.
    A working (dwloader.exe) command string when putting to run in [Execution Process Task] in SSIS failed and it is hard to trap the errors. Tried writing the error out in my command string, as well as setting the StandardErrorVariable of the task, neither
    one caught the details about the error. I also put the same command string in a bat file and then ran it, it worked. I then used EPT to run my bat, that actually succeeded. (That indicated to me Execution Process Task might have interpreted my string differently).

    Hi there,
    I am trying to use the dwloader utility to load data into a PDW database. I have created a batch file with the following syntax:
    dwloader.exe  -M fastappend -m -i "D:\SS\DATA_LOAD.txt" -T BATCH_V0.dbo.ATC_LOAD_TBL -R "D:\SS\LoadErrors_ATC.bad" -t "|" -r "\r\n"  "yyyy-MM-dd HH:mm:ss.fff" -E -S 10.11.12.13 -U ATC_Login -P Password > "D:\SS\Error.log"
    But the execution fails everytime. The error log gets generated but its empty. Can someone help me with the syntax? Am I missing something here?
    Thanks in advance, 

  • Execution process of order by clause

    What is the execution process of order by clause in sql statement and how it will effect query's performance.

    Siddharth Singh wrote:
    What is the execution process of order by clause in sql statement Depends. First, do you mean "alrogithmically, how does Oracle produce ordered data"? There are a number of different approaches. The data may be ordered because you are fetching sequentially from an index. Or it may be explicitly materialized and sorted.
    and how it will effect query's performance.Depends. It could have no impact because it relies on the index to order the data and the index is the most efficient access path regardless of the presence of an ORDER BY. Or it could require a tremendous amount of time to materialize and sort multiple GB of data.
    Justin

  • Send Object to Process

    HI
    I want to load library many times but java load library only once so I run new proseses. All process load library only once but I must send some Object to process and I don't known how.
    Is anybody known how to load library many times (in Thread) or send Object to java process??
    PS.
    Sorry for my bad english :)

    ResolveOIDThread calls SecondExclusionsThread like
    this:
    //Start New SecondExclusions Thread
    SecondExclusions secondExclusions=new
    SecondExclusions();
    secondExclusions.SecondExclusions(currentTrap,
    exclusions);
    Thread thread = new Thread(secondExclusions);
    secondExclusions.start();
    I dont know if that works but usually you start a thread like this...
    //Start New SecondExclusions Thread
    SecondExclusions secondExclusions = new SecondExclusions(currentTrap,  exclusions);
    Thread thread = new Thread(secondExclusions);
    thread.start(); Rob.

  • What is the BEST practice - use BO or Java Object in process as webservice

    Hi All,
    I have my BP published as web service. I have defined My process input & output as BOs. My BP talks to DB through DAO layer(written in JAVA) which has Java objects. So I have BO as well as java Objects. Since I am collecting user input in BO, I have to assign individual values contained in BO to Java object's fields.
    I want to reduce this extra headache & want to use either of BO or Java object.I want to know What is the best practice - use BO or Java object as process input. If it is BO,how I can reuse BOs in Java?
    Thanks in advance.
    Thanks,
    Sujata P. Galinde

    Hi Mark,
    Thanks for your response. I also wanted to use java object only. When I use java object as process input argument..it is fine. But when I try to create Process web service, I am getting compilation error - "data type not supported".....
    To get rid of this error, I tried to use heir (BO inheriting from java class). But while invoking process as web service, it is not asking for fields that are inherited from java class.
    Then I created Business Object with a field of type java class... This also is not working. While sending request, it is giving an error that - field type for fields from java class not found.
    Conclusion - not able to use java object as process(exposed as web service) input argument .
    What is the Best & feasible way to accomplist the task - Process using DAO in Java & exposed as web service.
    Thanks & Regards,
    Sujata

  • How to know the runtime execution process

    Hi ,
    How to view the runtime execution process(steps) of a class. I know how to debug, but i like to view the Assembly language code .
    Please suggest
    Thanks ,
    Raj

    Why on earth are you ignoring your previous topic about the same question where the answer is already given more than once?
    [http://forums.sun.com/thread.jspa?threadID=5355140]

  • Execution process

    Hello
    I want to know ,Is it possible in java to check step by step execution process or flow of control in java program.

    You can also pepper your code with System.out.println() statements. I use System.out.println() for checking overall flow of control in a program, and a debugger for low level problems in the code.

  • Calling Winrar.exe from Execution Process Task by Passing Arguments

    Is any body having knowledge please let me know how to pass the arguments to winrar .exe to create a zip file from the Execution Process Task  in SSIS

    Should be something like:
    unrar x c:\yourfile.rar *.gif c:\extractfolder\
    Executable: C:\Program Files\WinRAR\unrar.exe
    Arguments: x c:\yourfile.rar *.gif c:\extractfolder\
    Please mark the post as answered if it answers your question | My SSIS Blog:
    http://microsoft-ssis.blogspot.com |
    Twitter

  • Objective Setting processes help

    Hi
    When an employee forgets to complete his objective setting process ,then how he can re start the setting process !
    What i thought was we can check the allow outside these dates while setting up objective setting process.But what happens for all the employees who has set their objectives already !
    How we can set a dead line if allow the dates are allowed outside the period !!
    How can we restric these activity only for the employees who hasn't initiated their process !
    If we publish again this template ,then it would be notified to teh employees who has completed thier objective setting process !
    what could be the best way to attain this scenario !! Can we allow objective Setting process out side the period dates ? If we do so how we can restrict the objective setting process to a perticular date !!!
    If we republish the objective again which would allow the employees who has already completed the objectives.But anyway it would go for the approval to the manager !! cause it would be burdenfull activity for the manager to check and approve !! Is there a way to restrict this !! Any suggestions are greatly appreciated !!!

    This is an area that causes a lot of problems!
    To allow people to set objectives when they have missed the deadline, you have to extend the objective setting period. But, you can only do this if the appraisal task period is not open. So if you had objective setting 01/01/09 - 28/02/09, then appraisals 01/03/09 - 31/03/09, you could only reset the objective setting period to after 31/03/09.
    I would have thought that resetting the score cards would reopen the objective setting tasks for all, but the other rules about what stage the objective setting is at would also apply. For example, if the employee had set the objectives and transferred them to the manager then that is the status still after the period is reopened.
    However, there was a well documented bug about this. Rather than regurgitate the details here, take a look at MetaLink article *564305.1* entitled Modify Published Performance Management Plans and Extend the Objective Setting Deadline. It explains about a problem with the mass appraisal generation program which caused objectives to be lost!
    Hope that helps, but you'll find that there are so many variables involved in this process that there can be many different answers to the question.
    Good luck!
    Regards
    Tim

  • Objective Setting process Need Inputs

    Hi All
    When I try to set my Objectives setting process , Steps to reproduce the problem
    1 Objective Template Created 05-mar-2009
    2 Competecncy Template created 05-mar-2009
    3 Appraisal Template created 05-mar-2009 Cascade process and position Hierarchy has been chopsen while publishing the plan.
    PLan period is 05-mar-2009 tp 31-mar-2009.
    My objective setting period is 05-mar-2009 end date is 10-mar-2009
    I have publsihed the plan and it's been notified to the respective as per eligibility profile.
    Now Manager has set his objectives using Employee self service and finished his objectives.Now he has to cascade these objectives to his reportees via Manager self service.
    Manager has completed his processes and finshed his objective setting processes.
    He has chosen Manager Responsibility to cascade the Objectives to his subordinates.
    But he is not able to see the objectives or the Employees who comes unders him.But I am able to see the people in his hierarchy by using the functions view people people in appraisal hierarchy.
    Now what and where the things were went wrong !!
    Am i missing any set procedures !!!
    Any thoughts on this would be greatly appreciated.
    Cheers
    Kumar

    You need to login as the topmost person in the position hierarchy. and then set objectives for the sub-ordinates.
    The sub ordinates can then assign these objectives down the line.
    make sure the objective setting process is complete for them before they can assign objectives to the next level.
    Regards,
    -Debo

  • Reg. Logistic execution process in MM

    Dear Experts
    what is Logistic execution process in MM. Please help me giving steps as I have to attent interview soon.
    thanks in advance

    Thank you, Viswanath,
    But I have one more question.
    Where is the configuration about it?
    I am looking for this configuration a long time, but I don't found.
    If I have a transportation process using a PO with material number, it is working. But if I have a transportation process using a PO with Acct Categ (K, for example), it doesn't working.
    Thanks in advance.

  • Forms: object and process

    We have two kind of forms. Object and process.
    An object form is associated with a resource and a process form is associated with a process.
    But, I still have a few doubts.
    But what is the difference between them in functionality point of view. Where exactly does process form come into picture. Can we display it?
    Where should we use which form?

    Each resource has an associated object and process form.
    Object form is basically used when requesting a resource for provisioning for accepting data from user. Now before provisioning activity gets triggered, this data is passed to process form to execute provisioning tasks. The data flow/mapping between object and process form is done thr' Data Sink tab in process definition.
    The permissions for both object and process form can be set in Form Designer->Object permissions tab.
    Besides, the process form data can be "editted" for re-try process tasks that have failed/rejected.
    Note: you can also have data pre-populated in process form thr' access policies. The same holds true for object form but having data pre-populated in process form makes more sense. This holds good when having provisioning of resources being triggered thr' role based access policies.

Maybe you are looking for