PLS-00526 when comparing (=) 2 objects of the same kind
Hi,
Here are the specs :
Oracle 8.1.7.4 Database Server
Object definition :
type ocedule as object
noetabl number(15),
ced_ceduleid number(15),
datedebutapplication date,
datefinapplication date,
ced_cdtypecedule varchar2(10),
ced_cdmotifabsence varchar2(10),
ced_indpresentddebut number(1),
ced_indpresentdfin number(1),
ced_datedebut date,
ced_datefin date,
ced_datesaisie date,
ced_placementid number(15),
ced_presentdim varchar2(1),
ced_presentlun varchar2(1),
ced_presentmar varchar2(1),
ced_presentmer varchar2(1),
ced_presentjeu varchar2(1),
ced_presentven varchar2(1),
ced_presentsam varchar2(1),
codemodule number(2)
My PL/SQL code goes as follows :
CREATE OR REPLACE function compare_ocedule return number is
ocedule_journalisation ocedule;
ocedule_entrepot ocedule;
begin
if ocedule_journalisation = ocedule_entrepot then
return 1;
else
return 0;
end if;
end;
when I compile, I get the following error :
PLS-00526: A MAP or ORDER function is required for comparing objects in PL/SQL.
Anyone can help???
Thanks.
JC
hehe...right...
I just found the problem...Testing for equality has to be done in SQL...not in PL...so I replaced the IF clause with SQL code. Here is the modified function :
CREATE OR REPLACE function compare_ocedule return number is
ocedule_journalisation ocedule;
ocedule_entrepot ocedule;
cursor c_test is
select 1 as comp_value
from dual
where ocedule_journalisation = ocedule_entrepot;
r_test c_test%rowtype;
begin
open c_test;
fetch c_test into r_test;
close c_test;
return r_test.comp_value;
end;
JC
Similar Messages
-
Ora-23454 when add an objects to the materialized view group
Hi, All,
I tend to create a distributed MV, when add an objects to the materialized view group using:
BEGIN
DBMS_REPCAT.CREATE_MVIEW_REPOBJECT (
gname => 'hr_repg',
sname => 'hr',
oname => 'departments_mv1',
type => 'SNAPSHOT',
min_communication => TRUE);
END;
I got the follwoing errors:
ORA-23454: flavor not defined for object group "PUBLIC"."HR_REPG"
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 105
ORA-06512: at "SYS.DBMS_REPCAT_UTL", line 452
ORA-06512: at "SYS.DBMS_REPCAT_UTL", line 468
ORA-06512: at "SYS.DBMS_REPCAT_SNA_UTL", line 5599
ORA-06512: at "SYS.DBMS_REPCAT_SNA", line 82
ORA-06512: at "SYS.DBMS_REPCAT", line 1332
ORA-06512: at line 2
Does anybody know what is the problem?
Thanks in advance for any advice.
Sharon.NiAre you trying to replicate an existing materialized view called "departments_mv1" ? That is what the implication of the arguments you are supplying.
If it is an MV, you have to supply the DDL (in the DDL_TEXT) as well.
Hemant K Chitale -
Hi. l recently purchased 2 ringtones from itunes store. When l asked the system provider to transfer my data from old phone to the new iphone 5, it gets override. When i try to downloa the same ringtone again, l was asked to purchase it again. Please help tks
You only get one download.
Did you fail to save your ringtones to your computer? -
Exporting two remote objects on the same port
Hi,
I would like to export two remote objects on the same host, same port and bind them with different service names.
There is no problem when I do that from the same Java program.
But when I export and bind an object from a Java program 1, I cannot do the same with the second (and similar) Java program 2. This is the stack trace of my Exception:
java.rmi.server.ExportException: Port already in use: 50040; nested exception is:
java.net.BindException: Address already in use: JVM_Bind
at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:243)
at sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:178)
at sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java:382)
at sun.rmi.transport.LiveRef.exportObject(LiveRef.java:116)
at sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:145)
at sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:129)
at java.rmi.server.UnicastRemoteObject.exportObject(UnicastRemoteObject.java:275)
at java.rmi.server.UnicastRemoteObject.exportObject(UnicastRemoteObject.java:178)
at java.rmi.server.UnicastRemoteObject.<init>(UnicastRemoteObject.java:75)Can some one help pleaseIt should work in any version of Java as long as the server socket factories are null or equal according to Object.equals() or its override in the SSF.equals() method if any. Which needs to be present and needs to take the form:
public boolean equals(Object object)
return object != null && object.getClass() == this.getClass();
}with further tests if the server socket factories have additional state. -
View objects referencing the same entity
The behaviour occurs in every version of jdeveloper ADF BC i have tried so far (10g, 11g).
I have 2 updatable view objects referencing the same entity object. When i create a new record using the first view object and before commiting the data to the database i navigate to the second
view object. Suprisingly the second view object is populated with the same data that is posted on the first view object. It seems like both view objects are referencing the same entity object instance.
Is any way to overcome this strange behaviour.
ThanksAs Timo says think of the EO as a record cache. If you had 700 VOs all based on the same EO, it would be ideal to store the same record(s) 700 times in the midtier as it would consume vasts amount of memory. Thus the EO cache.
If you do want to separate the VOs, you've 3 options:
1) Use separate EOs for each VO (not ideal)
2) Expose each VO under their own root level Application Module - a separate EO cache instance for each VO will be created at runtime - however you need to be careful between the VO/EO pairs, you don't update the same record, as you'll get record locks/contention
3) If you're using task flows in 11g, use the Always Begin New Transaction option for each screen/fragment for each VO. This is the equivalent of 2 but from the task flow level - however again you need to be careful on record locks.
CM. -
How to compare two fields from the same table in the select statement
Hi, friends
I try to compare tow fields from the same table, but no result,
For example, this
data: cptotchek tyep i.
select count(*) into cptotchek
from aufk where erdat = aufk-idat2 .
The result is cptotchek = 0, but there are the records in aufk , where, aufk-erdat = aufk-idat2.
Please, help me, i don't use the loop statement for optimize my program.
RegardsHi ,
it will not return any value when you are using column of same table
such as Date Field , Because while Using Aggregate Function it will not check with self column
. For that you have to take data in one internal table and then you can work on it .
And if you are worried about Performance it will not affect , untill you are selecting only required data .
you can try this way .
data: cptotchek type i.
types : begin of w_aufk.
include structure aufk .
types : end of w_aufk .
data : it_aufk type standard table of w_aufk with header line .
select * into corresponding fields of table it_aufk
from aufk .
loop at it_aufk .
if it_aufk-erdat = it_aufk-idat2 .
write : / it_aufk-erdat , it_aufk-idat2 .
else .
delete it_aufk .
endif .
endloop.
Regards
Deepak. -
RE: multiple named objects with the same name andinterface
David,
First I will start by saying that this can be done by using named anchored
objects and registering them yourself in the name service. There is
documentation on how to do this. And by default you will get most of the
behavior you desire. When you do a lookup in the name service (BindObject
method) it will first look in the local partition and see if there is a
local copy and give you that copy. By anchoring the object and manually
registering it in the name service you are programmatically creating your
own SO without defining it as such in the development environment. BTW in
response to your item number 1. This should be the case there as well. If
your "mobile" object is in the same partition where the service object he is
calling resides, you should get a handle to the local instance of the
service object.
Here is the catch, if you make a bind object call and there is no local copy
you will get a handle to a remote copy but you can not be sure which one!
It end ups as more or less a random selection. Off the top of my head and
without going to the doc, I am pretty sure that when you register an
anchored object you can not limit it's visibility to "User".
Sean
-----Original Message-----
From: [email protected]
[<a href="mailto:[email protected]">mailto:[email protected]]On</a> Behalf Of David Foote
Sent: Monday, June 22, 1998 4:51 PM
To: [email protected]
Subject: multiple named objects with the same name and interface
All,
More than once, I have wished that Forte allowed you to place named
objects with the same name in more than one partition. There are two
situations in which this seems desirable:
1) Objects that are not distributed, but are mobile (passed by value to
remote objects), cannot safely reference a Service Object unless it has
environment visibility, but this forces the overhead of a remote method
call when it might not otherwise be necessary. If it were possible to
place a copy of the same Service Object (with user visibility) in each
partition, the overhead of a remote method call could be avoided. This
would only be useful for a service object whose state could be safely
replicated.
2) My second scenario also involves mobile objects referencing a Service
Object, but this time I would like the behavior of the called Service
Object to differ with the partition from which it is called.
This could be accomplished by placing Service Objects with the same name
and the same interface in each partition, but varying the implementation
with the partition.
Does anyone have any thoughts about why this would be a good thing or a
bad thing?
David N. Foote
Consultant
Get Your Private, Free Email at <a href=
"http://www.hotmail.com">http://www.hotmail.com</a>
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:<a href=
"http://pinehurst.sageit.com/listarchive/">http://pinehurst.sageit.com/listarchive/</a>>
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:<a href=
"http://pinehurst.sageit.com/listarchive/">http://pinehurst.sageit.com/listarchive/</a>>David,
First I will start by saying that this can be done by using named anchored
objects and registering them yourself in the name service. There is
documentation on how to do this. And by default you will get most of the
behavior you desire. When you do a lookup in the name service (BindObject
method) it will first look in the local partition and see if there is a
local copy and give you that copy. By anchoring the object and manually
registering it in the name service you are programmatically creating your
own SO without defining it as such in the development environment. BTW in
response to your item number 1. This should be the case there as well. If
your "mobile" object is in the same partition where the service object he is
calling resides, you should get a handle to the local instance of the
service object.
Here is the catch, if you make a bind object call and there is no local copy
you will get a handle to a remote copy but you can not be sure which one!
It end ups as more or less a random selection. Off the top of my head and
without going to the doc, I am pretty sure that when you register an
anchored object you can not limit it's visibility to "User".
Sean
-----Original Message-----
From: [email protected]
[<a href="mailto:[email protected]">mailto:[email protected]]On</a> Behalf Of David Foote
Sent: Monday, June 22, 1998 4:51 PM
To: [email protected]
Subject: multiple named objects with the same name and interface
All,
More than once, I have wished that Forte allowed you to place named
objects with the same name in more than one partition. There are two
situations in which this seems desirable:
1) Objects that are not distributed, but are mobile (passed by value to
remote objects), cannot safely reference a Service Object unless it has
environment visibility, but this forces the overhead of a remote method
call when it might not otherwise be necessary. If it were possible to
place a copy of the same Service Object (with user visibility) in each
partition, the overhead of a remote method call could be avoided. This
would only be useful for a service object whose state could be safely
replicated.
2) My second scenario also involves mobile objects referencing a Service
Object, but this time I would like the behavior of the called Service
Object to differ with the partition from which it is called.
This could be accomplished by placing Service Objects with the same name
and the same interface in each partition, but varying the implementation
with the partition.
Does anyone have any thoughts about why this would be a good thing or a
bad thing?
David N. Foote
Consultant
Get Your Private, Free Email at <a href=
"http://www.hotmail.com">http://www.hotmail.com</a>
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:<a href=
"http://pinehurst.sageit.com/listarchive/">http://pinehurst.sageit.com/listarchive/</a>>
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:<a href=
"http://pinehurst.sageit.com/listarchive/">http://pinehurst.sageit.com/listarchive/</a>> -
How to rotate and translate an object at the same time??
Hi, I have a problem with rotation and translation of an object at the same time. I wrote a behovior class for my object (a cylinder). When some conditions are true the cylinder is added to a robot arm. Then it is translated so that the cylinder would be very close to the arm (looks like the robot is holding it). And now the behavior should also rotate the cylinder because the angle is 0 and it should be 90. I can translate the object or I can rotate the object but when I'm trying to do it at the same time (I want to combine rotation and translation) it doesn't work.
Could anyone help me, please :)You can used to Matrix3f
This object is a rotation and translate matrix
for example:
private void componerTransformada(){
Quat4f rot = new Quat4f((float) this.getRotacionSobreX(),(float) this.getRotacionSobreY(),
(float) this.getRotacionSobreZ(),1.0f);
Vector3f tras = new Vector3f(-4.0f,-4.0f,(-1)*this.getDistanciaDeLaCamara());
this.setTransformacion(new Transform3D(new Matrix4f(rot, tras, 1.0f)));
Quat4f is a matrix of ratation
vector3f is a direction vector
Transform3d is building with Quat4f and Vector3f.
That is work i use this to situe the view of point.
good locky -
Call to a remote object in the same JVM
Hi,
I want to implement a logging mechanism in my system. I'm planning to
write an rmi object and make it a start up class.
I wud like to know whether the calls to this start up class made by the
ejb instances and from the servlet engine in the same JVM, wud be rmi calls
or wud they be simple method calls.
Does weblogic detect the calls from the objects of the same jvm and
optimise them, or wud they be rmi calls only.
btw, i'm using weblogic 5.1
thx,
ManoharTry:
initialNamingContext.rebind("single",
weblogic.rmi.server.UnicastRemoteObjcet.exportObject(obj)
"M. Manohar" wrote:
Hi Eduardo,
thx for ur reply.
I wud like to know how to make this "binding a stub".
wat i'm using is binding an object only.
Instantiating an object which implements the remote interface and binding
it to the JNDI tree by,
initialNamingContext.rebind("single", obj);
and ofcourse defining it as a start up class in the weblogic.properties
file.
Can u pls explain how to do "binding a stub"
thx,
Manohar
Eduardo Ceballos wrote in message <[email protected]>...
Presuming that the start up class binds itself into the jndi tree, then itonly depends on what you bind: binding a stub results in the RMI runtime
overhead; binding the object itself, results in the simpler function call
overhead.
"M. Manohar" wrote:
Hi,
I want to implement a logging mechanism in my system. I'm planning to
write an rmi object and make it a start up class.
I wud like to know whether the calls to this start up class made by the
ejb instances and from the servlet engine in the same JVM, wud be rmi
calls
or wud they be simple method calls.
Does weblogic detect the calls from the objects of the same jvm and
optimise them, or wud they be rmi calls only.
btw, i'm using weblogic 5.1
thx,
Manohar -
How to select the objects sharing the same appearance in the same artboard?
I have several artboards in the file and I want to select all the objects having the drop shadow effect in the artboards I'm working. No matter I use the "Select" in the menu or the "Select similar objects" button in the control panel, it selects all the objects having the same appearance in the entire canvas, not only the one in the artboard I'm working. Any means or there's nothing can do?
Please help!J_Lai wrote:
yes, that's work and I also tried to lock the objects in another artboard in order to select the objects in the working artboard only. However, I think that's stupid to get it done in this way and Adobe should improve this in the next version.
This is easy enough to state but if you think this is wrong then you should perhaps suggest a way this feature could be manifested.
For instance to you this should only effect the current artboard but there will come along another user who will say hey wait a minute I need to select all the drop shadowed objects and remove them now I have to go from atboard to artboard.
If you see what I mean, II found out that when I find something that is seemingly stupid that in fact there is a reason for it and there has to be a way to describe how it can be improved without breaking what you already have.
For instance you want it to just effect the current artboard but then there will be those who also want it if it even touches the artboard and those who will want it on a range of atboards and those who will actually want AI to know which artboards you want even without you specifying which artboards. That last one sounds illogical but that is the nature of the problem and the human conditions.
So though I agree this can be improved perhaps you have an idea how this can work for everyone? -
Rounding difference appeared when GR & IR done on the Same day
Hi Friends,
I encounter the problem "Rounding difference appeared when GR & IR done on the same day..Pls let me know anybody about this issue..
Thanks,
SantiHi,
Check the GR price/Gr qty and the IR price and IR qty.
Aravind -
Track several object at the same time
Hi everybody,
I`m actually trying to tracking several same objects at the same time.
I knew how to do with only one object, and I was able to send the coordinate for each frame in excel. So great.
But now I`m trying to modifiy the code to follow eight objects at the same time.....
My code was already HUGE with one or two objects, but I need to add again 6 part of the same code....
I would like to compact and contract my code to be more clear.....
I suppose there is one solution juste after Labview vision assistant. And i`m sure that there is a way to put all the code to delete the zeros in only one for loop but I didn`nt find the right way....
Anyway if there are some propositions or some ideas, advices..... it`s welcoming
Thks a lot
Sincerely
Maxime
ps: I put my codewith only two patterns
Attachments:
Simple tracking.vi 146 KBYeah -- you have 4 separate tracks with the same audio? Select all 4 tracks/clips in your Event and select Synchronize Clips. You end up with a compound clip in the event with all 4 clips synchronized to the audio. Open the compound clip in a Timeline and select all 4 clips. Use Video > Transform and type in ~48% (if you want the "gutters") to resize all the clips at once. With the transform icon (lower left corner of the canvas) selected, drag each of your clips out to the four corners (or type in exact position values in Video > Transform > Position parameters.) To get the white background, you can use Generators > Elements > Shapes - set the color to whatever you like; select Rectangle from the drop down and Video > Transform > Scale to expand it to full screen. Drag the generator underneath your storyline to use as a background.
If you don't have audio to synch to, you can create multiple storylines. Add the first clip; reset the playhead and select your other clips that will appear in a 4-up and type Q to *connect* them to the storyline. Then select each one separately and right click > Create Storyline (or type command - G). You can then open each storyline in its own timeline (right click and select Open in Timeline) and append more clips to each "track". Back in the main storyline, drag out each connected storyline to reveal any appended material. The trim control will turn red when you reach the end of media in the created storylines. Resize and arrange as described above. -
What happens on iCloud when multiple family members use the same Apple ID? For example if we all choose to use iCloud for contacts, are they all merged together? We use the same Apple ID so we can use find my iPhone to keep track of the whole family.
Of course if you are both connected to the same iCloud account you have the same contacts - what did you expect?. The contacts live on the server and are read from there by the devices; so as you've both managed to sync your contacts up to iCloud they are now inextricably mixed. You can only delete your contacts by deleting individual ones, and doing that will delete them from your phone as well.
You can only unravel this by
1. In the iCloud contacts page at http://icloud.com, select all the contacts, click on the cogwheel icon at bottom left and choose 'Export vCard'.
2. Sign out of System Preferences>iCloud
3. Create a new Apple ID and open a new iCloud account with it for your own use.
4. Import the vCard back into the iCloud contacts page.
5. Go to http://icloud.com and sign in with the original ID. This is now his ID. Work through the contacts individually deleting the ones you don't want him to have. When done sign out and advise him to change his password.
6. Go to the new iCloud account and delete his contacts individually.
Of course if you have also been syncing calendars and using the same email address there are problems with doing this. -
I bought songs on my laptop which synced to my iphone and iPad. But I can't find them on itunes library on my home computer. However, when I click download for the same song it says it has already been purchased. How do I find it on home computer?
Is your "home computer" the same as your laptop or are these two different machines?
-
When I tried to download the new version of firefox I get an error message that says "your computer must be restarted to complete an earlier upgrade" when I restart it says the same thing. I cannot use firefox at all at the moment. When I try to uninstall in the control panel, the same message pops up.
If you have problems with updating or with the permissions then easiest is to download the full version and trash the currently installed version to do a clean install of the new version.
Download a new copy of the Firefox program and save the DMG file to the desktop
* Firefox 5.0.x: http://www.mozilla.com/en-US/firefox/all.html
* Trash the current Firefox application to do a clean (re-)install
* Install the new version that you have downloaded
Your profile data is stored elsewhere in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox Profile Folder], so you won't lose your bookmarks and other personal data.
Maybe you are looking for
-
Help on purchasing a Home Theater System...
Hi everyone, I just bought a new HDTV and I am now looking into getting a good Home Theater System, since as I'm sure you all know, the speakers on my TV are pretty pathetic. But in all honestly, I really don't know much at all about speakers and hom
-
Schedule Discoverer report using OEM
Hi All Can I schedule a Discoverer report using OEM ? Thanks
-
Include all sub-directories and files?
I did search, so don't complain that this has been asked a billion times. I am using Automator to replace text for files and folders. But this only works with the files and or folders I select, it doesn't do it with the sub-directories and sub-files.
-
MS-6741 sata setup PLEASE HELP!
Hello: I have a MS-6741 board that I am trying to setup with 2 WD 1200 sata drives. (This is my first experience with sata drives) I am trying to do a Raid 1 setup. I can't even get to square one with this! Problem: When I plug in the cable from t
-
Xor/xnor gate implementation in java
here is the code that implements the xor gate for my program... public static boolean xor(boolean... input) //for n inputs boolean result=input[0]; //assigns 1st value to result for(int i=0;