A strange error about cursor and dblink
My dbms:Oracle8i Enterprise Edition Release 8.1.7.4.0
I have a stored procedure, which inserts records from a remote database into a local table.
The 'insert' statement have similar pattern:
insert into table_a
select table_b.columns from table_b@dblink
where table_a.column in (select table_b.column from table_b@dblink);
commit;
There are about 100 'insert' statement in my procedure. But there is same error messages at the same
place when the procedure is run. The error messages:ora-01000:maximum open cursors exceeded,ora-02063:
preceding line from dblink. I have manually run the 'insert'statements before the error place and after the error place.
The before and after statements are both OK.
From google.com, I have learned that 'commit' will clear the implicit cursors from 'insert' statement. So I think
the problem is ora-02063. Again, keywords 'ora-01000 ora-02063'from google.com, I found 'alter session close
database link dblink' might solve the problem. I have add the 'alter session' statement after each 'commit' in
my procedure. Unfortunately, same error happened again at the same place.
I am puzzled. Would you like to give some advice? Thanks a lot!
Hello
Well, the best place to lookup error messages is here....
http://www.oracle.com/pls/db92/db92.homepage
It's also where all the rest of the database documentation is. As for this error, too many open cursors, as it suggests, one session has too many open. From the statement you are using to select the data, it seems like you are forming the statements dynamically, is this the case? If so, you're using cursors, and so there's a good chance you aren't closing them.
HTH
Similar Messages
-
I was trying to download the new itunes version and since then itunes doesnt work.
When I try to download it again I keep getting an error message about win32 and x86.
I tried to uninstall everything and it still doesnt work.
Please help me!These ones are typically caused by underlying problems on the PC that also often cause Windows Updates to fail to install. If we can fix the Windows Update trouble, we can usually get the iTunes trouble cleaned up en passant.
Go into your Windows update and try to check for new updates. If updates install, stock up on the ones you're behind on, restarting the PC if requested to do so. After the restart, try installing iTunes again. Does it go through this time for you?
If windows updates fail to install, go into your Update History and doubleclick the failures. What alphanumeric codes appear for you? (For example, 8007000B.) -
Hi all;
Suppose I have created a two-node Hyper-V cluster with a fibre channel shared storage in Windows Server 2012. Everything work fine except some issues. One of the is that when I want to configure the cluster to add a VM as its cluster resource, the following
error message appears:
An error occurred while determining the state of this clustered role in the cluster. The remote procedure call failed with error 800706BE.
Any ideas?
Thanks
Please VOTE as HELPFUL if the post helps you and remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading
the thread.Thanks for your reply…
I have tested many possible solutions without any success. The actions that I have done so far are mentioned in the following and the results of them have been said, too.
When I restart the servers, everything are good but after some times when I reopen Failover Cluster Manager on one of the servers, the snap-in related to my cluster name does not load. Please look at the following figure:
And when I want to connect to my cluster name, the following error message appears:
Note: The above problem appears randomly regarding to servers. In the other hand, after the restart, one of the servers acts as the above statement.
The following error message is the result of the DTCPing utility:
++++++++++++hosts
++++++++++++
06-11, 10:02:15.346-->Error(0x424) at clutil.cpp @256
06-11, 10:02:15.346-->-->OpenCluster
06-11, 10:02:15.356-->-->1060(The specified service does not exist as an installed service.)
++++++++++++++++++++++++++++++++++++++++++++++
DTCping 1.9 Report for ADMINISTRATOR1
++++++++++++++++++++++++++++++++++++++++++++++
RPC server is ready
++++++++++++Validating Remote Computer Name++++++++++++
06-11, 10:02:20.428-->Start DTC connection test
Name Resolution:
SRV04-->172.16.140.11-->SRV04
06-11, 10:02:32.448-->Start RPC test (ADMINISTRATOR1-->SRV04)
Problem:fail to invoke remote RPC method
Error(0x6D9) at dtcping.cpp @303
-->RPC pinging exception
-->1753(There are no more endpoints available from the endpoint mapper.)
RPC test failed
And
06-11, 10:26:10.837-->Error(0x424) at clutil.cpp @256
06-11, 10:26:10.837-->-->OpenCluster
06-11, 10:26:10.837-->-->1060(The specified service does not exist as an installed service.)
++++++++++++++++++++++++++++++++++++++++++++++
DTCping 1.9 Report for ADMINISTRATOR1
++++++++++++++++++++++++++++++++++++++++++++++
RPC server is ready
++++++++++++Validating Remote Computer Name++++++++++++
06-11, 10:26:14.947-->Start DTC connection test
Name Resolution:
SRV04-->172.16.140.11-->SRV04
06-11, 10:26:26.967-->Start RPC test (ADMINISTRATOR1-->SRV04)
Problem:fail to invoke remote RPC method
Error(0x6D9) at dtcping.cpp @303
-->RPC pinging exception
-->1753(There are no more endpoints available from the endpoint mapper.)
RPC test failed
And
++++++++++++hosts
++++++++++++
06-11, 10:47:51.510-->Error(0x424) at clutil.cpp @256
06-11, 10:47:51.510-->-->OpenCluster
06-11, 10:47:51.510-->-->1060(The specified service does not exist as an installed service.)
++++++++++++++++++++++++++++++++++++++++++++++
DTCping 1.9 Report for ADMINISTRATOR1
++++++++++++++++++++++++++++++++++++++++++++++
RPC server is ready
++++++++++++Validating Remote Computer Name++++++++++++
06-11, 10:47:55.020-->Start DTC connection test
Name Resolution:
SRV03-->172.16.140.10-->SRV03
06-11, 10:48:06.830-->Start RPC test (ADMINISTRATOR1-->SRV03)
Problem:fail to invoke remote RPC method
Error(0x6D9) at dtcping.cpp @303
-->RPC pinging exception
-->1753(There are no more endpoints available from the endpoint mapper.)
RPC test failed
The following output is the result of running PortQuery on port 135 on both servers:
=============================================
Starting portqry.exe -n srv03 -e 135 -p TCP ...
Querying target system called:
srv03
Attempting to resolve name to IP address...
Name resolved to 172.16.140.10
querying...
TCP port 135 (epmap service): LISTENING
Using ephemeral source port
Querying Endpoint Mapper Database...
Server's response:
UUID: d95afe70-a6d5-4259-822e-2c84da1ddb0d
ncacn_ip_tcp:srv03[49152]
UUID: 906b0ce0-c70b-1067-b317-00dd010662da
ncacn_ip_tcp:srv03[49285]
UUID: 906b0ce0-c70b-1067-b317-00dd010662da
ncacn_ip_tcp:srv03[49285]
UUID: 906b0ce0-c70b-1067-b317-00dd010662da
ncacn_ip_tcp:srv03[49285]
UUID: 367abb81-9844-35f1-ad32-98f038001003
ncacn_ip_tcp:srv03[49159]
UUID: b97db8b2-4c63-11cf-bff6-08002be23f2f Microsoft Cluster Server API
ncacn_ip_tcp:srv03[49156]
UUID: 0b1c2170-5732-4e0e-8cd3-d9b16f3b84d7 RemoteAccessCheck
ncacn_np:srv03[\\pipe\\lsass]
UUID: 0b1c2170-5732-4e0e-8cd3-d9b16f3b84d7 RemoteAccessCheck
ncacn_ip_tcp:srv03[49155]
UUID: 0b1c2170-5732-4e0e-8cd3-d9b16f3b84d7 RemoteAccessCheck
ncacn_np:srv03[\\pipe\\lsass]
UUID: 0b1c2170-5732-4e0e-8cd3-d9b16f3b84d7 RemoteAccessCheck
ncacn_ip_tcp:srv03[49155]
UUID: 12345778-1234-abcd-ef00-0123456789ac
ncacn_np:srv03[\\pipe\\lsass]
UUID: 12345778-1234-abcd-ef00-0123456789ac
ncacn_ip_tcp:srv03[49155]
UUID: 12345778-1234-abcd-ef00-0123456789ac
ncacn_ip_tcp:srv03[49157]
UUID: 7f1343fe-50a9-4927-a778-0c5859517bac DfsDs service
ncacn_np:srv03[\\PIPE\\wkssvc]
UUID: 3473dd4d-2e88-4006-9cba-22570909dd10 WinHttp Auto-Proxy Service
ncacn_np:srv03[\\PIPE\\W32TIME_ALT]
UUID: 1ff70682-0a51-30e8-076d-740be8cee98b
ncacn_np:srv03[\\PIPE\\atsvc]
UUID: 378e52b0-c0a9-11cf-822d-00aa0051e40f
ncacn_np:srv03[\\PIPE\\atsvc]
UUID: 86d35949-83c9-4044-b424-db363231fd0c
ncacn_np:srv03[\\PIPE\\atsvc]
UUID: 86d35949-83c9-4044-b424-db363231fd0c
ncacn_ip_tcp:srv03[49154]
UUID: 3a9ef155-691d-4449-8d05-09ad57031823
ncacn_np:srv03[\\PIPE\\atsvc]
UUID: 3a9ef155-691d-4449-8d05-09ad57031823
ncacn_ip_tcp:srv03[49154]
UUID: a398e520-d59a-4bdd-aa7a-3c1e0303a511 IKE/Authip API
ncacn_np:srv03[\\PIPE\\atsvc]
UUID: a398e520-d59a-4bdd-aa7a-3c1e0303a511 IKE/Authip API
ncacn_ip_tcp:srv03[49154]
UUID: 552d076a-cb29-4e44-8b6a-d15e59e2c0af IP Transition Configuration endpoint
ncacn_np:srv03[\\PIPE\\atsvc]
UUID: 552d076a-cb29-4e44-8b6a-d15e59e2c0af IP Transition Configuration endpoint
ncacn_ip_tcp:srv03[49154]
UUID: 2e6035b2-e8f1-41a7-a044-656b439c4c34 Proxy Manager provider server endpoint
ncacn_np:srv03[\\PIPE\\atsvc]
UUID: 2e6035b2-e8f1-41a7-a044-656b439c4c34 Proxy Manager provider server endpoint
ncacn_ip_tcp:srv03[49154]
UUID: c36be077-e14b-4fe9-8abc-e856ef4f048b Proxy Manager client server endpoint
ncacn_np:srv03[\\PIPE\\atsvc]
UUID: c36be077-e14b-4fe9-8abc-e856ef4f048b Proxy Manager client server endpoint
ncacn_ip_tcp:srv03[49154]
UUID: c49a5a70-8a7f-4e70-ba16-1e8f1f193ef1 Adh APIs
ncacn_np:srv03[\\PIPE\\atsvc]
UUID: c49a5a70-8a7f-4e70-ba16-1e8f1f193ef1 Adh APIs
ncacn_ip_tcp:srv03[49154]
UUID: 98716d03-89ac-44c7-bb8c-285824e51c4a XactSrv service
ncacn_np:srv03[\\PIPE\\atsvc]
UUID: 98716d03-89ac-44c7-bb8c-285824e51c4a XactSrv service
ncacn_ip_tcp:srv03[49154]
UUID: 1a0d010f-1c33-432c-b0f5-8cf4e8053099 IdSegSrv service
ncacn_np:srv03[\\PIPE\\atsvc]
UUID: 1a0d010f-1c33-432c-b0f5-8cf4e8053099 IdSegSrv service
ncacn_ip_tcp:srv03[49154]
UUID: c9ac6db5-82b7-4e55-ae8a-e464ed7b4277 Impl friendly name
ncacn_np:srv03[\\PIPE\\atsvc]
UUID: c9ac6db5-82b7-4e55-ae8a-e464ed7b4277 Impl friendly name
ncacn_ip_tcp:srv03[49154]
UUID: c9ac6db5-82b7-4e55-ae8a-e464ed7b4277 Impl friendly name
ncacn_np:srv03[\\PIPE\\srvsvc]
UUID: 30b044a5-a225-43f0-b3a4-e060df91f9c1
ncacn_np:srv03[\\PIPE\\atsvc]
UUID: 30b044a5-a225-43f0-b3a4-e060df91f9c1
ncacn_ip_tcp:srv03[49154]
UUID: 30b044a5-a225-43f0-b3a4-e060df91f9c1
ncacn_np:srv03[\\PIPE\\srvsvc]
UUID: f6beaff7-1e19-4fbb-9f8f-b89e2018337c Event log TCPIP
ncacn_np:srv03[\\pipe\\eventlog]
UUID: f6beaff7-1e19-4fbb-9f8f-b89e2018337c Event log TCPIP
ncacn_ip_tcp:srv03[49153]
UUID: 30adc50c-5cbc-46ce-9a0e-91914789e23c NRP server endpoint
ncacn_np:srv03[\\pipe\\eventlog]
UUID: 30adc50c-5cbc-46ce-9a0e-91914789e23c NRP server endpoint
ncacn_ip_tcp:srv03[49153]
UUID: 3c4728c5-f0ab-448b-bda1-6ce01eb0a6d5 DHCP Client LRPC Endpoint
ncacn_np:srv03[\\pipe\\eventlog]
UUID: 3c4728c5-f0ab-448b-bda1-6ce01eb0a6d5 DHCP Client LRPC Endpoint
ncacn_ip_tcp:srv03[49153]
UUID: 3c4728c5-f0ab-448b-bda1-6ce01eb0a6d6 DHCPv6 Client LRPC Endpoint
ncacn_np:srv03[\\pipe\\eventlog]
UUID: 3c4728c5-f0ab-448b-bda1-6ce01eb0a6d6 DHCPv6 Client LRPC Endpoint
ncacn_ip_tcp:srv03[49153]
UUID: 76f226c3-ec14-4325-8a99-6a46348418af
ncacn_np:srv03[\\PIPE\\InitShutdown]
UUID: d95afe70-a6d5-4259-822e-2c84da1ddb0d
ncacn_np:srv03[\\PIPE\\InitShutdown]
Total endpoints found: 51
==== End of RPC Endpoint Mapper query response ====
portqry.exe -n srv03 -e 135 -p TCP exits with return code 0x00000000.
And
=============================================
Starting portqry.exe -n srv04 -e 135 -p TCP ...
Querying target system called:
srv04
Attempting to resolve name to IP address...
Name resolved to 172.16.140.11
querying...
TCP port 135 (epmap service): LISTENING
Using ephemeral source port
Querying Endpoint Mapper Database...
Server's response:
UUID: d95afe70-a6d5-4259-822e-2c84da1ddb0d
ncacn_ip_tcp:srv04[1025]
UUID: 906b0ce0-c70b-1067-b317-00dd010662da
ncacn_ip_tcp:srv04[1143]
UUID: 906b0ce0-c70b-1067-b317-00dd010662da
ncacn_ip_tcp:srv04[1143]
UUID: 906b0ce0-c70b-1067-b317-00dd010662da
ncacn_ip_tcp:srv04[1143]
UUID: 367abb81-9844-35f1-ad32-98f038001003
ncacn_ip_tcp:srv04[1065]
UUID: b97db8b2-4c63-11cf-bff6-08002be23f2f Microsoft Cluster Server API
ncacn_ip_tcp:srv04[1057]
UUID: 0b1c2170-5732-4e0e-8cd3-d9b16f3b84d7 RemoteAccessCheck
ncacn_np:srv04[\\pipe\\lsass]
UUID: 0b1c2170-5732-4e0e-8cd3-d9b16f3b84d7 RemoteAccessCheck
ncacn_ip_tcp:srv04[1028]
UUID: 0b1c2170-5732-4e0e-8cd3-d9b16f3b84d7 RemoteAccessCheck
ncacn_np:srv04[\\pipe\\lsass]
UUID: 0b1c2170-5732-4e0e-8cd3-d9b16f3b84d7 RemoteAccessCheck
ncacn_ip_tcp:srv04[1028]
UUID: 12345778-1234-abcd-ef00-0123456789ac
ncacn_np:srv04[\\pipe\\lsass]
UUID: 12345778-1234-abcd-ef00-0123456789ac
ncacn_ip_tcp:srv04[1028]
UUID: 12345778-1234-abcd-ef00-0123456789ac
ncacn_ip_tcp:srv04[1084]
UUID: 7f1343fe-50a9-4927-a778-0c5859517bac DfsDs service
ncacn_np:srv04[\\PIPE\\wkssvc]
UUID: 1ff70682-0a51-30e8-076d-740be8cee98b
ncacn_np:srv04[\\PIPE\\atsvc]
UUID: 378e52b0-c0a9-11cf-822d-00aa0051e40f
ncacn_np:srv04[\\PIPE\\atsvc]
UUID: 86d35949-83c9-4044-b424-db363231fd0c
ncacn_np:srv04[\\PIPE\\atsvc]
UUID: 86d35949-83c9-4044-b424-db363231fd0c
ncacn_ip_tcp:srv04[1027]
UUID: 3a9ef155-691d-4449-8d05-09ad57031823
ncacn_np:srv04[\\PIPE\\atsvc]
UUID: 3a9ef155-691d-4449-8d05-09ad57031823
ncacn_ip_tcp:srv04[1027]
UUID: a398e520-d59a-4bdd-aa7a-3c1e0303a511 IKE/Authip API
ncacn_np:srv04[\\PIPE\\atsvc]
UUID: a398e520-d59a-4bdd-aa7a-3c1e0303a511 IKE/Authip API
ncacn_ip_tcp:srv04[1027]
UUID: 552d076a-cb29-4e44-8b6a-d15e59e2c0af IP Transition Configuration endpoint
ncacn_np:srv04[\\PIPE\\atsvc]
UUID: 552d076a-cb29-4e44-8b6a-d15e59e2c0af IP Transition Configuration endpoint
ncacn_ip_tcp:srv04[1027]
UUID: 2e6035b2-e8f1-41a7-a044-656b439c4c34 Proxy Manager provider server endpoint
ncacn_np:srv04[\\PIPE\\atsvc]
UUID: 2e6035b2-e8f1-41a7-a044-656b439c4c34 Proxy Manager provider server endpoint
ncacn_ip_tcp:srv04[1027]
UUID: c36be077-e14b-4fe9-8abc-e856ef4f048b Proxy Manager client server endpoint
ncacn_np:srv04[\\PIPE\\atsvc]
UUID: c36be077-e14b-4fe9-8abc-e856ef4f048b Proxy Manager client server endpoint
ncacn_ip_tcp:srv04[1027]
UUID: c49a5a70-8a7f-4e70-ba16-1e8f1f193ef1 Adh APIs
ncacn_np:srv04[\\PIPE\\atsvc]
UUID: c49a5a70-8a7f-4e70-ba16-1e8f1f193ef1 Adh APIs
ncacn_ip_tcp:srv04[1027]
UUID: 98716d03-89ac-44c7-bb8c-285824e51c4a XactSrv service
ncacn_np:srv04[\\PIPE\\atsvc]
UUID: 98716d03-89ac-44c7-bb8c-285824e51c4a XactSrv service
ncacn_ip_tcp:srv04[1027]
UUID: 1a0d010f-1c33-432c-b0f5-8cf4e8053099 IdSegSrv service
ncacn_np:srv04[\\PIPE\\atsvc]
UUID: 1a0d010f-1c33-432c-b0f5-8cf4e8053099 IdSegSrv service
ncacn_ip_tcp:srv04[1027]
UUID: c9ac6db5-82b7-4e55-ae8a-e464ed7b4277 Impl friendly name
ncacn_np:srv04[\\PIPE\\atsvc]
UUID: c9ac6db5-82b7-4e55-ae8a-e464ed7b4277 Impl friendly name
ncacn_ip_tcp:srv04[1027]
UUID: c9ac6db5-82b7-4e55-ae8a-e464ed7b4277 Impl friendly name
ncacn_np:srv04[\\PIPE\\srvsvc]
UUID: 30b044a5-a225-43f0-b3a4-e060df91f9c1
ncacn_np:srv04[\\PIPE\\atsvc]
UUID: 30b044a5-a225-43f0-b3a4-e060df91f9c1
ncacn_ip_tcp:srv04[1027]
UUID: 30b044a5-a225-43f0-b3a4-e060df91f9c1
ncacn_np:srv04[\\PIPE\\srvsvc]
UUID: f6beaff7-1e19-4fbb-9f8f-b89e2018337c Event log TCPIP
ncacn_np:srv04[\\pipe\\eventlog]
UUID: f6beaff7-1e19-4fbb-9f8f-b89e2018337c Event log TCPIP
ncacn_ip_tcp:srv04[1026]
UUID: 30adc50c-5cbc-46ce-9a0e-91914789e23c NRP server endpoint
ncacn_np:srv04[\\pipe\\eventlog]
UUID: 30adc50c-5cbc-46ce-9a0e-91914789e23c NRP server endpoint
ncacn_ip_tcp:srv04[1026]
UUID: 3c4728c5-f0ab-448b-bda1-6ce01eb0a6d5 DHCP Client LRPC Endpoint
ncacn_np:srv04[\\pipe\\eventlog]
UUID: 3c4728c5-f0ab-448b-bda1-6ce01eb0a6d5 DHCP Client LRPC Endpoint
ncacn_ip_tcp:srv04[1026]
UUID: 3c4728c5-f0ab-448b-bda1-6ce01eb0a6d6 DHCPv6 Client LRPC Endpoint
ncacn_np:srv04[\\pipe\\eventlog]
UUID: 3c4728c5-f0ab-448b-bda1-6ce01eb0a6d6 DHCPv6 Client LRPC Endpoint
ncacn_ip_tcp:srv04[1026]
UUID: 76f226c3-ec14-4325-8a99-6a46348418af
ncacn_np:srv04[\\PIPE\\InitShutdown]
UUID: d95afe70-a6d5-4259-822e-2c84da1ddb0d
ncacn_np:srv04[\\PIPE\\InitShutdown]
Total endpoints found: 50
==== End of RPC Endpoint Mapper query response ====
portqry.exe -n srv04 -e 135 -p TCP exits with return code 0x00000000.
I have read the KB197814 and did the steps in it, restarted both servers, but the problem did not resolved.
I have check both servers for RPC Service status and in both servers it has started.
The both servers are alive and can ping each other by their IP address and name.
The firewall of both servers is off and I stopped the Windows Firewall service COMPLETELY.
Any services and applications that are depending on RPC have problems. For example when I want o remotely manages the services on these servers by using Services.msc console, the following error message appears:
Error 1726: The remote procedure call failed.
Please VOTE as HELPFUL if the post helps you and remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading
the thread. -
dear gurus.
facts: bd 9204 (aix) and bd 11.1.0.6 (linux)
Every night i run a process that collect data from 9i database and update a table in 11g database. through dblink.
The statistics that i run every night in 9i database (before i run my 11g update process) will be useful for 11g database?
thanks a lot !!!I went into the same situation
Every day I select data from remote data base (10g) and update a local table (10g) using these data coming through dblink.
Of course statistics or re-organisation (shrink for example) of remote table can influence your update in the local data base. I advise you to read the following link for a concrete situation I went in last month.
Why this update suddenly needs a locally partitioned index to run fast?
Regards
Mohamed Houri -
Exception:
Non-transactional Cursors may not be used in multiple threads; Cursor was created in Thread[http-8888-Processor25,5,main] but used in Thread[http-8888-Processor24,5,main]
why?
Is the creation and use only in the same thread?What Linda said is correct. You also asked "why". Non-transactional cursors are very prone to self-deadlock, which is when two cursors are open in a single thread and access the same records. To avoid the self-deadlock problem, we allow two non-transactional cursors in the same thread to share locks. This means that a non-transactional is attached to a thread, and can only be used in the thread it was created in. This is a limitation, but is a much smaller problem than the self-deadlock problem would be.
In general you should open a cursor just before you need it and close it ASAP. If you find that you're sharing cursors between threads, you may want to ask yourself why you're doing that and re-examine your design. With transactions, you can share cursors between threads, but I consider this to be a very advanced and rare use case.
--mark -
Strange Problem about KeyListener, and FocusListener
Hi,Please help me with this problem.
I create a JTable and setCellEditor by using my customerized TextField
The problem is: when I edit JTable Cell, the value can not be changed and I can not get Key Event and Focus Event.
here is my source:
//create normal JTable instance,and then initlize it
private void initTable(Vector folders)
TableColumn tempcol = getColumnModel().getColumn(0);
tempcol.setCellEditor(new DefaultCellEditor(new MyTextField()));
for(int i=0;i<folders.size();i++)
mddDataSource ds=(mddDataSource) folders.get(i);
String name = ds.getDataSourceName();
layers.add(name);
for(int i=0;i<layers.size();i++){
Vector temp = new Vector();
temp.add(layers.get(i));
temp.add(layers.get(i));
dtm.addRow(temp);
// My Text Field cell
class MyTextField extends JTextField implements FocusListener, KeyListener
MyTextField()
setOpaque (false);
addKeyListener(this);
addFocusListener(this);
MyTextField(String text)
setOpaque (false);
addKeyListener(this);
addFocusListener(this);
public void focusGained(FocusEvent e) {
System.out.println("get Focus");
public void focusLost(FocusEvent e) {
instance.setValue(getText());
public void keyTyped(KeyEvent e){
instance.setValue(getText());
public void keyPressed(KeyEvent e){
System.out.println("get Key ");
public void keyReleased(KeyEvent e){
instance.setValue(getText());
If there are some good sample, please tell me the link or give me some suggestion.
Thanks in advancedThanks for your help.
The problem still exist. It does not commit the value that I input.
Maybe I should say it clearly.
I have create JPanel include three JPanel:
Left Panel and right upper-panel and right borrom panel.
The JTable instance is on right-upper Panel.
If I edit one of row at JTable and then click JTable other row,the value can be commited. if I edit one of row and then push one Button on
the right-bottom button to see the editting cell value.It does not commit value.
when I use debug style, and set breakpoint the
foucsGained or KeyTyped,
It never stopes at there,So I assume that the Editing cell never get focus.
Is there a bug at Java if we move focus on other Panel, that JTable can not detect the Focus lost or focus gained event?
Thanks -
I am getting this strange error in eclipse, and have no idea
"Project facet Java 5.0 is not supported by target runtime JBoss v4.0"has anybody come across something similarThorton wrote:
Perhaps, but I'm inclined to think the best solution is to just read the message. It really isn't very cryptic.Messages usually aren't cryptic to those who already understand the message. If the message was understood by reading it, then the question wouldn't have been asked.Or, alternatively, messages are often far less cryptic than they appear, if you simply don't look for complicated meaning. Or, again alternatively, there's more value in coaching someone to the answer on their own, than simply telling them. Lisa may not know what the error means, but I'm betting she could at least guess it's something to do with Java 5.0, and JBoss 4, and then perhaps with some more guidance move on from there.
Thanks for the arrogance anyway.2 whole posts, both chastising a complete stranger for not living up to your arbitrary expectations. Talk to me about arrogance. -
Error while executing procedure in TOAD which contains parameter and dblink
Hi all,
I am getting error while executing the following code in TOAD and APEX.
It contains parameter( start_date and end_date) and dblink(@TO_FUT).
When I hardcode the parameter values, It works fine.
When I dont give hardcoded values in the procedure, the error comes.
When I comment the lines whereever parameter comes, still the error comes.
I am not sure whether it is parameter issue or dblink issue or some other issue
Is anybody having any clue about this error?
Your help is very much appreciated.
The code:
CREATE OR REPLACE PROCEDURE PROC_ENR_ACC(START_DATE DATE,END_DATE DATE)
AS
BEGIN
EXECUTE IMMEDIATE 'TRUNCATE TABLE OUTPUT_TABLE';
INSERT INTO OUTPUT_TABLE
(FIRST_NAME ,LAST_NAME,HID ,EFF_DT,CID,PLAN, FLAG)
SELECT
TEMP1.FIRST_NAME,
TEMP1.LAST_NAME,
TEMP1.HID,
TEMP1.EFF_DT,
TEMP1.CID,
TEMP1.PLAN,
NVL((SELECT 'Y'
FROM FADMIN.MEMI_TABLE@TO_FUT MEMI
WHERE MEMI.MEME_CK = TEMP1.MEME_CK
AND MEMI.TXN_EFF_DT = TEMP1.EFF_DT
AND MEMI.PBP = TEMP1.PLAN
AND MEMI.MEMI_TXN_CD IN ('AC','RE')
AND MEMI.MEMI_SEQ_NO = (SELECT MAX (MI.MEMI_SEQ_NO)
FROM FADMIN.MEMI_TABLE@TO_FUT MI
WHERE MI.MEME_CK = MEMI.MEME_CK
AND MI.TXN_EFF_DT = MEMI.TXN_EFF_DT
AND MI.PBP = MEMI.PBP
AND MI.MEMI_TXN_CD IN ('AC','RE')
AND MI.MEMI_INTF_STS = 03 )),'N') AS FLAG
FROM
( SELECT
M1.FIRST_NAME ,
M1.LAST_NAME ,
M1.HID ,
M1.EFF_DT,
M1.CID,
M1.PLAN ,
(SELECT MEME.MEME_CK
FROM FADMIN.MEME_TABLE@TO_FUT MEME, FADMIN.GRGR_TABLE@TO_FUT GRGR
WHERE MEME.M_HIN = M1.HID
AND MEME.GRGR_CK = GRGR.GRGR_CK
AND GRGR.GRGR_ID = M1.GRGR_ID
)AS MEME_CK
FROM FADMIN.METR_TABLE@TO_FUT M1,
( SELECT M3.HID, M3.EFF_DT FROM FADMIN.METR_TABLE@TO_FUT M3
WHERE M3.TYPE IN ('60','61')
AND M3.REPLY IN ('117','118')
AND TRUNC (M3.METR_TRANS_DT) BETWEEN START_DATE AND END_DATE
AND M3.SYIN_INST = (SELECT MAX (M4.SYIN_INST)
FROM FADMIN.METR_TABLE@TO_FUT M4
WHERE M4.HID = M3.HID
AND M4.TYPE IN ('60','61')
AND M4.REPLY IN ('117','118')
AND TRUNC (M4.EFF_DT) = TRUNC (M3.EFF_DT))
) TEMP
WHERE M1.TYPE IN ('60','61')
AND M1.REPLY ='011'
AND TRUNC (M1.METR_TRANS_DT) BETWEEN START_DATE AND END_DATE
AND M1.SYIN_INST = (SELECT MAX (M2.SYIN_INST)
FROM FADMIN.METR_TABLE@TO_FUT M2
WHERE M2.HID = M1.HID
AND M2.TYPE IN ('60','61')
AND M2.REPLY ='011'
AND TRUNC (M2.EFF_DT) = TRUNC (M1.EFF_DT))
AND M1.HID = TEMP.HID (+)
AND M1.EFF_DT = TEMP.EFF_DT (+)
AND TEMP.HID IS NULL
UNION
SELECT
M1.FIRST_NAME ,
M1.LAST_NAME ,
M1.HID ,
M1.EFF_DT,
M1.CID,
M1.PLAN ,
(SELECT MEME.MEME_CK
FROM FADMIN.MEME_TABLE@TO_FUT MEME, FADMIN.GRGR_TABLE@TO_FUT GRGR
WHERE MEME.M_HIN = M1.HID
AND MEME.GRGR_CK = GRGR.GRGR_CK
AND GRGR.GRGR_ID = M1.GRGR_ID
)AS MEME_CK
FROM FADMIN.METR_TABLE@TO_FUT M1
WHERE M1.TYPE IN ('60','61')
AND M1.REPLY IN ('016', '017', '022', '023')
AND TRUNC (M1.METR_TRANS_DT) BETWEEN START_DATE AND END_DATE
AND M1.SYIN_INST = (SELECT MAX (M2.SYIN_INST)
FROM FADMIN.METR_TABLE@TO_FUT M2
WHERE M2.HID = M1.HID
AND M2.TYPE IN ('60','61')
AND M2.REPLY IN ('016', '017', '022', '023')
AND TRUNC (M2.EFF_DT) = TRUNC (M1.EFF_DT))
)TEMP1 ;
END;
The error:
ORA-00918: column ambiguously defined
ORA-02063: preceding line from TO_FUT
ORA-06512: at "PROC_ENR_ACC", line 5
ORA-06512: at line 5Okay
Here's the code formatted
CREATE OR REPLACE PROCEDURE PROC_ENR_ACC (START_DATE DATE, END_DATE DATE)
AS
BEGIN
EXECUTE IMMEDIATE 'TRUNCATE TABLE OUTPUT_TABLE';
INSERT INTO OUTPUT_TABLE (FIRST_NAME,
LAST_NAME,
HID,
EFF_DT,
CID,
PLAN,
FLAG)
SELECT TEMP1.FIRST_NAME,
TEMP1.LAST_NAME,
TEMP1.HID,
TEMP1.EFF_DT,
TEMP1.CID,
TEMP1.PLAN,
NVL (
(SELECT 'Y'
FROM MEMI_TABLE MEMI
WHERE MEMI.MEME_CK = TEMP1.MEME_CK
AND MEMI.TXN_EFF_DT = TEMP1.EFF_DT
AND MEMI.PBP = TEMP1.PLAN
AND MEMI.MEMI_TXN_CD IN ('AC', 'RE')
AND MEMI.MEMI_SEQ_NO = (SELECT MAX (MI.MEMI_SEQ_NO)
FROM MEMI_TABLE MI
WHERE MI.MEME_CK = MEMI.MEME_CK
AND MI.TXN_EFF_DT = MEMI.TXN_EFF_DT
AND MI.PBP = MEMI.PBP
AND MI.MEMI_TXN_CD IN ('AC', 'RE')
AND MI.MEMI_INTF_STS = 03)
),'N') FLAG
FROM (SELECT M1.FIRST_NAME,
M1.LAST_NAME,
M1.HID,
M1.EFF_DT,
M1.CID,
M1.PLAN,
(SELECT MEME.MEME_CK
FROM MEME_TABLE MEME, GRGR_TABLE GRGR
WHERE MEME.M_HIN = M1.HID
AND MEME.GRGR_CK = GRGR.GRGR_CK
AND GRGR.GRGR_ID = M1.GRGR_ID) MEME_CK
FROM METR_TABLE M1,
(SELECT M3.HID, M3.EFF_DT
FROM METR_TABLE M3
WHERE M3.TYPE IN ('60', '61')
AND M3.REPLY IN ('117', '118')
AND TRUNC (M3.METR_TRANS_DT) BETWEEN START_DATE AND END_DATE
AND M3.SYIN_INST = (SELECT MAX (M4.SYIN_INST)
FROM METR_TABLE M4
WHERE M4.HID = M3.HID
AND M4.TYPE IN ('60', '61')
AND M4.REPLY IN ('117', '118')
AND TRUNC (M4.EFF_DT) = TRUNC (M3.EFF_DT))
) TEMP
WHERE M1.TYPE IN ('60', '61') AND M1.REPLY = '011'
AND TRUNC (M1.METR_TRANS_DT) BETWEEN START_DATE AND END_DATE
AND M1.SYIN_INST = (SELECT MAX (M2.SYIN_INST)
FROM METR_TABLE M2
WHERE M2.HID = M1.HID
AND M2.TYPE IN ('60', '61')
AND M2.REPLY = '011'
AND TRUNC (M2.EFF_DT) = TRUNC (M1.EFF_DT))
AND M1.HID = TEMP.HID(+)
AND M1.EFF_DT = TEMP.EFF_DT(+)
AND TEMP.HID IS NULL
UNION
SELECT M1.FIRST_NAME,
M1.LAST_NAME,
M1.HID,
M1.EFF_DT,
M1.CID,
M1.PLAN,
(SELECT MEME.MEME_CK
FROM MEME_TABLE MEME, GRGR_TABLE GRGR
WHERE MEME.M_HIN = M1.HID
AND MEME.GRGR_CK = GRGR.GRGR_CK
AND GRGR.GRGR_ID = M1.GRGR_ID) MEME_CK
FROM METR_TABLE M1
WHERE M1.TYPE IN ('60', '61')
AND M1.REPLY IN ('016', '017', '022', '023')
AND TRUNC (M1.METR_TRANS_DT) BETWEEN START_DATE AND END_DATE
AND M1.SYIN_INST = (SELECT MAX (M2.SYIN_INST)
FROM METR_TABLE M2
WHERE M2.HID = M1.HID
AND M2.TYPE IN ('60', '61')
AND M2.REPLY IN ('016', '017', '022', '023')
AND TRUNC (M2.EFF_DT) = TRUNC (M1.EFF_DT))
) TEMP1;
END;
/When posting code if you put {noformat}{noformat} (with the curly brackets and in lower case) above and below it you can preserve formatting.
To your original question...
Is the link name supposed to be variable?
What do you mean by 'hard coding' the values, do you mean in the procedure itself so you'd actually PROC_ENR_ACC();?
What happens when you run this?DECLARE
start_date DATE;
end_date DATE;
BEGIN
start_date := '01-JAN-2009';
end_date := '01-FEB-2009';
PROC_ENR_ACC(start_date, end_date);
END;
I need to know exactly how to recreate your error...
Cheers
Ben
http://www.munkyben.wordpress.com
+Don't forget to mark replies helpful or correct+ ;) -
Hey guys. My IPhone 3GS is unlocked and i went to update the software and it said that an unknown error has occurred and said it needed to be restored to connect with Itunes. When i got to restore it, it gets about 3/4 of the way done, says an unknown error has occured(1015). I have no clue what to do and all and any help would be amazing.
See Here
https://discussions.apple.com/message/15290457#15290457
From the More Like This on the right... -
after getting the latest update I recieve an error about MSVCR80.dll Missing, has anyone found the solution as uninstalling and then installing doesnt seem to work
Doublechecking. Have you tried the following user tip?
Troubleshooting issues with iTunes for Windows updates -
hello there, there is a rare window that keeps popping up every time i start Logic. It's a "tempo" window with strange layout about midi effects and so,.... is it normal? How can i improve this? Thanks.
Hmm, that's some sort of MIDI Arpeggiator setup in your environment. Strange that you don't know it, this has to be custom-installed, it is not part of the standard setup.
You can do two things about it:
1.unlock your current screenset (shift-L), then close the (Bass Driver) window, then relock the screenset (shift-L). Next time you open up this project you won't see the Bass Driver, but it is still in the project.
2. You can remove the whole page: open the Environment (cmd-8), then go to the dropdown menu arrow top left of the Environment window and select the Bass Driver layer. If it is selected, dropdown again and choose Delete. Now Save your project under a different name (Save As...), so that you still keep the Bass Driver setup in the original project. If you don't need to keep it, you can simply Save. -
I have tried to download a digital copy that came with a movie I purchased and I keep getting the an error about HD purchase vs. SD purchase. I push redeem again and it has the same message and I cant download the movie. What can I do?
- Reset the iOS device. Nothing will be lost
Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
least ten seconds, until the Apple logo appears.
- Unsync all music and resync
- Restore from backup. See:
iOS: How to back up
- Restore to factory settings/new iOS device. -
Maven2 and axistools-maven-plugin - strange error
Hi all,
I am using maven2 for the build proccess and I get this strange error message while compiling.
=========
[INFO] Scanning for projects...
[INFO] ----------------------------------------------------------------------------
[INFO] Building Maven Quick Start Archetype
[INFO] task-segment: [compile]
[INFO] ----------------------------------------------------------------------------
[INFO] ----------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ----------------------------------------------------------------------------
[INFO] The plugin 'org.codehaus.mojo:axistools-maven-plugin' does not exist or no valid version could be found
[INFO] ----------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ----------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Mon Jan 30 08:45:42 GMT+02:00 2006
[INFO] Final Memory: 1M/3M
[INFO] ----------------------------------------------------------------------------
=========
The plugin defined in pom.xml is:
==========
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>axistools-maven-plugin</artifactId>
<configuration> <fileNStoPkg>${srcdir}/properties/namespaces2packages.properties</fileNStoPkg>
<serverSide>true</serverSide>
</configuration>
<executions>
<execution>
<goals>
<goal>wsdl2java</goal>
</goals>
</execution>
</executions>
</plugin>
==========
Any ideas guys?Sorry, forgot to paste the trace. Here it is now:
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: The plugin 'org.codehaus.mojo:axistools-maven-plugin' does not e
xist or no valid version could be found
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1203)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindPluginToLifecycle(DefaultLifecycleExecutor.java:1139)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMappings(DefaultLifecycleExecutor.java:
948)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:450)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.jav
a:303)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:270)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:139)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.version.PluginVersionNotFoundException: The plugin 'org.codehaus.mojo:axistools-maven
-plugin' does not exist or no valid version could be found
at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.
java:225)
at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.
java:87)
at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:177)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1174)
... 17 more
[INFO] ---------------------------------------------------------------------------- -
ITunes won't launch and I get a strange error message-
My iTunes will not launch and I get this strange error message: The iTunes application could not be opened. The disk could not be read from or written to. But I have no problems with the disk it is on, which is my harddisk. Help, help, help…
I have now tried a billion things: None of them work. I still get the same error message, when I try to launch iTunes after logging into my user profile. However, I can launch iTunes 6.0.1 if I create another userprofile on my computer and log into that. But that isn't very helpful. I have also tried removing iTunes 6.0.1 and installing iTunes 4.7 instead. I can actually launch that. However, I cannot connect to the iTunes music store using iTunes 4.7 nor can I play any of the music purchased from the iTunes music store. What am I to do, except curse Apple for creating a version of iTunes that many people seem to have problems with?
-
Strange distorted fields on icons, cursor and DVD video
Hi!
I was playing a DVD when I put my Powerbook to sleep (i.e. I closed it). The next morning the DVD-image was full of green and b/w distortion, and now all the icons on my desktop, the dock, cursor and the upper right corner of the menu bar is distorted too!
Everything else works fine, but this just looks horrible!
Can someone help me please?
HaraldI hope somebody who knows something about video ram will add something to this discussion! My first problem was wierd happenings with IDVD...viewing a dvd (a very pleasurable experience in the past) suddenly showed all kinds of (mostly red and green) vertical lines all across the screen. Soon after, on occasion, I'd suddenly see dual sets of 5-6 vertical lines about one inch in length showing up on desktop icons, menu bars, and the cursor. A reboot will usually clear it, but it comes back...not right away but within a day or so. But nothing helps the idvd play right. Seems to me this started happening soon after I installed OSX 10.4, but I don't know if there's any connection. I ran the Apple Harware Test program and it indicated a problem with the Vram. So-- what does one do abut that? How does one "clear a corrupt memory map in video RAM"?
Maybe you are looking for
-
Trouble using AirDrop to share files with an older Macbook
Hi all, First off, I have tried researching this issue on other websites and in Google with no solution. I have a 2012 MacBook Pro running OS X v. 10.9.3, a 2008 Macbook running OS X v. 10.9.2 and I cannot get them to exchange files via AirDrop. Has
-
How do I select a cell in a multicolum​n list box and use scroll horizontal on th
From an event structure, how do I select a cell in a multicolumn list box and use scroll horizontal on the front panel at the same time. I can select a cell from the multicolumn in an event structure, but I cannot move the scroll bar on the front pa
-
Upgrading my Computer and have a corrupt library problem...
I am upgrading my Macbook Pro, which is almost 2 years old, to a newer model. I am currently using Aperture 1 but will have Aperture 2 on my next computer. Now my current problem is a corruption in my library that causes Aperture to crash every time
-
After an update, i'm no longer able to switch users
after performing an update, I can no longer switch users.
-
AVI2 Create error: Acces denied.
Dear all, For my research project on a fusion device I've dug into Labview to automize my measurements. Allthough I'm a novice in Labview the program is working as required, except for one part. There is a webcam involved which monitors the inside of