Killing a long query with a remote reference

The following query has been run on a local database that references tables in a remote database. I wanted to kill the session running on the local database which I did and saw that it was marked for kill. The session continued to run for hours on the local database and someone finally killed a session for this on the remote database, which was done successfully.


SELECT Row_id
OF S_CONTACT
WHERE con_cd = 'customer '.
AND ROW_ID not in
(
SELECT CON_ID
OF S_POSTN_CON
)
less
SELECT Row_id
OF S_CONTACT@remote_db
WHERE con_cd = 'customer '.
AND ROW_ID not in
(
SELECT CON_ID
OF S_POSTN_CON@remote_db
)


This problem has prompted a number of questions that I can't find answers for:

(1) when I kill a local session that began a remote session no matter what to get communicated to the remote session to kill him?

(2) what SQL actions must be performed before a session can be terminated? I am aware that restores must fill. Does include writing to the implicit tables for queries?

(3) what is the correct procedure for the murder of sessions and remote sessions?

Thank you

Richard

>
The local database is a database of test that I have limited privileges.
>
If your process is not to intervene 'real' on each server, then you must use SESSION DISCONNECTION. . IMMEDIATE.
Which will remove the process from the server to your test database, as well as the remote database.

I mean by 'real' work that you don't care if it gets rolled back or not. If you make updates on the remote server, only those who should be cancelled. But if you're just do queries on the remote server, then there isn't really any significant restoration to do.
>
What was causing the delay in the 2 sessions to terminate?

When, if ever, would be word get remote session let know it must end?
>
Depends on what you were doing. If you were doing a distributed query and Oracle selects one of the tables at the table of the conduct and the server associated with the conduct 'site '. In your case if driving site was the prod server then the other data in the table in your local server request will be sent to the production server and the executed query.

Until the remote server has something to report back it will just keep chugging along so in some cases, it might run for hours.
If the equivalent FIRST_ROWS or similar was used then the remote server must declare at the time when it was the first set of data which would normally be quite quickly.

But if you were doing a NEGATIVE sign and then the remote server cannot have lines of result until he arrives at the end of one of the tables. This is because the first row, he might want to return might be identical to the last line to be examined in the other table. If the two tables were 100 million lines so still no way to select even a line for the game because the rest of the other row table could be his twin of results which were absolutely identical there.

Looks like you have about the worst case for trying to kill the remote session. I have seen «killed» sessins hang out for a few weeks before finally get cleared out.
>
I have to go to the remote database and kill this session myself as well?
>
Yes - as soon as you know that you no longer want the remote session you should take measures for killing, or disconnected. Killed if you want things restored - disconnected if you care.
>
Oracle wouldn't better able that track and do it?
>
How do you think Oracle to make a judgment on what are your business processes?

Suppose that you scenario were to just launch a standalone process on the remote server, and then wait to be notified that it is complete.
But you do not use Advanced Files or other asynchronous process. From the perspective of enterprise remote task should continue until the end Oracle may not know what you want to do in this particular case.

Tags: Database

Similar Questions

  • Just upgraded to Vista Home Premium to XP. Got a Packard Bell with RF for the Media Center remote control, worked fine with XP, but is no longer compatible with Vista.

    after update to XP media center units Vista remote control

    Just upgraded to Vista Home Premium to XP.  Got a Packard Bell with RF for the Media Center remote control, worked fine with XP, but is no longer compatible with Vista.  I checked the usb driver for the usb XF-10 rf remote receiver and it is fine, uninstalled and reinstalled it.  Handset was working fine a few days ago.  I also went in 'Administrator', 'services' and then active HID, but it still does not work.  Media works well, but it would be nice to have the operation of the remote control!  Not particularly computer, simply suggestions please!  Thank you, Nick.

    Hi Nicolas,

    I suggest you to check the battery. Additionally, make sure that you have installed the right drivers for you Consumer IR Port.

    For more information, you can check the link below,

    http://www.PackardBell.com/index.html

  • display accessor query runs for a long time with parameters null - JDEV 11.1.2.3

    I use Jdev 11.1.2.3.


    I have inputVO with the query as

    Select "store", as a double.

    The VO store attribute, I have inputlistofvalues that comes from storesLOVVO, which the query is like

    Select store_name, store_id from all_stores.

    Now I drag store to inputVO on the page of the user interface as inputListofValue. The user selects the value and runs the page and everything goes as you wish and in no time at all.

    Now the user manually removes the selected value from the store of the user interface and clicks a button to deal with something. But instead of calling the method that is present on the actionlistener for this method, the query of storesLOVVO runs on the server (I can see in the newspapers) for a very long time with store_name as null as a condition.

    If I run this query in SQL developer, it gives results in 0.02 sec, even with store_name as null clause added.

    Why jdev performs this LOV VO when there is no parameters?

    And if she runs the VO, why are so slow... its almost take 2 minutes and then the rest of the processing occurs.

    Yet,.

    Take a look at this to see if it helps: Andrejus Baranovskis Blog: anti-patterns ADF: dangerous tutorials - a real experience in the ADF

  • Sleep on the keyboard button no longer works after a remote session with a technician

    original title: sleep function

    button on the keyboard function sleep and sleep in Start menu stopped working after that technical support trying to solve a problem without report with via remote access. How to make the sleep button/function to work?

    Hello

    1. what measures have been taken to solve the problem? What was the problem or question?
    2. what exactly happens when you select sleep start menu option?

    Windows 7 is not going to sleep
    http://support.Microsoft.com/kb/976877 (see bottom of article, which can be useful for vista too)

    Also please see articles below.

    Turn off a computer: frequently asked questions
    http://Windows.Microsoft.com/en-us/Windows-Vista/turn-off-a-computer-frequently-asked-questions
    Why sleep is not available?
    http://Windows.Microsoft.com/en-us/Windows-Vista/why-isn ' t-sleep-available

  • "search query: = services the remote procedure call failed and did not run".

    My computer crashed two days ago and I'm finally home, but whenever I try to open a window of any folder I keep refusing. In particular the main computer folder. One of the error messages I got is the following:

    search query: = services the remote procedure call failed and did not run

    Followed by this one:

    The remote procedure call failed and did not execute.

    I opened the Task Manager and tried to access the services from there, but whenever I do, the Task Manager window freezes.

    How can I fix it, my computer is so slow running and does hardly anything and guard with all freezing orders that I try.

    Hello

    This error generally, if the system is infected with Virus and malware or system files are corrupt.

    Please, try the methods below and check if the problem persists.

    SFC scanner.

    You can read the following Microsoft article to repair corrupted using SFC tool files. Use the System File Checker tool to repair missing or corrupted system files

    Reference: http://support.Microsoft.com/kb/929833/en-us

    If the problem persists, try a run Microsoft Safety Scanner.

    http://definitionupdates.Microsoft.com/download/definitionupdates/safetyscanner/amd64/msert.exe

    The Microsoft Security Scanner is a downloadable security tool for free which allows analysis at the application and helps remove viruses, spyware and other malware. It works with your current antivirus software.

    Note: The Microsoft Safety Scanner ends 10 days after being downloaded. To restart a scan with the latest definitions of anti-malware, download and run the Microsoft Safety Scanner again.

    Important: The data files that are infected must be cleaned only by removing the file completely, which means that there is a risk of data loss.

    Do try the suggestions above and let us know the results.

  • AF:query with web services data control

    Hi all

    I'm very new to using web services as a data source in the ADF. I'm looking to use a component of af: query (with saved searches and advanced mode) with a web service data control.

    The doc - http://docs.oracle.com/cd/E24382_01/web.1112/e16182/appendix_datacontrols.htm#CHDGBBIJ - it seems that there is some programmatic application necessary to achieve this goal. I guess that means that you are required to implement a custom QueryModel and related classes. My understanding is correct?

    Is there a sample (or documentation) available for this application? I searched the web but can't find anything useful.

    Note: For the purpose of learning, I just exposed service interface of the Module of an Application as a web service remote. The web service has my view exposed as an operation criteria.

    Thanks in advance,
    Bruno Guillaume

    Hello

    the query component does not work out of the box with the DataControl WS that it does not support the named criteria (which will be for a long time in the future). To create a request form, you can drag a WS method as a parameter. If the method has arguments of complext, you will find the complex argument that manufacturers in the Panel DataControl, so you can flatten by drag and drop in the form of parameter

    Frank

  • Call Service, run a query with a LimitFilter and a comparator, extend

    I have a lot of difficulties running an InvocationService. I'm relatively new to coherence, please excuse my ignorance

    Basically, I'm trying to get a web client access to a cluster of consistency (which uses * extend) and run a query with a LimitFilter and a comparator.
    It looks that I implement the PortableObject interface on the comparator. I don't know how to be honest, and I'm getting an exception
    : java.io.NotSerializableException:com.tangosol.util.internal.ConcurrentCounter

    Do I need to apply the laptop on the comparator? I have to add the Group of comparison in a pof config XML? I have configuration errors?

    Java code:
            InvocationService service = (InvocationService)  CacheFactory.getConfigurableCacheFactory().ensureService("ExtendTcpInvocationService");
            Map map = service.query(new LatestContentAgent(), null);
            Set result = (Set) map.get(service.getCluster().getLocalMember());
    public class LatestContentAgent extends AbstractInvocable {
    
         private static final long serialVersionUID = 5121824227545845101L;
    
         @Override
         public void run() {
              final Filter filter = new EqualsFilter("getStatusId", Status.LIVE);
                    final LimitFilter limitFilter = new LimitFilter(filter,200);
                    NamedCache cacheInstance = CacheFactory.getCache("dist-extend-cache");
                    setResult(cacheInstance.entrySet(limitFilter,  new ActivityContentVOComparator()));
         }
    }
    public class ActivityContentVO extends AbstractEvolvable implements Serializable, Cacheable {
    
         private static final long serialVersionUID = 1282169603551341131L;
         
         private static final int VERSION = 2; 
    
         private static final int WHEN_IDX = 2;
         private Date when;
    
         public ActivityContentVO() {     // hibernate needs this constructor
         }
         
         public Date getWhen() {
              return when;
         }
    
         public void setWhen(Date when) {
              this.when = when;
         }
    
         public void readExternal(PofReader reader) throws IOException {
              setWhen((Date) reader.readObject(WHEN_IDX));
         }
    
         public void writeExternal(PofWriter writer) throws IOException {
              writer.writeObject(WHEN_IDX, getWhen());
         }
    
         @Override
         public int getImplVersion() {
              return VERSION;
         }
    }
    public class ActivityContentVOComparator implements Comparator<ActivityContentVO>, Serializable,PortableObject {
    
        private static final long serialVersionUID = -8536328258251728594L;
    
        @Override
         public int compare(ActivityContentVO a1, ActivityContentVO a2) {
              if ( a1 == null) {
                return a2 == null ? 0 : 1;
            }
            if (a2 == null) {
                return -1;
            }
            
            final Date d1 = a1.getWhen();
            final Date d2 = a2.getWhen();
            if (d1 == null) {
                return d2 == null ? 0 : 1;
            } else if (d2 == null) {
                return -1;
            }
            
            return d2.compareTo(d1);
         }
    
        @Override
        public void readExternal(PofReader arg0) throws IOException {
            // TODO Auto-generated method stub
            
        }
    
        @Override
        public void writeExternal(PofWriter arg0) throws IOException {
            // TODO Auto-generated method stub
            
        }
    }
    POF configuration file
    <pof-config>
      <user-type-list>
        <!-- coherence POF user types -->
        <include>coherence-pof-config.xml</include>
        <user-type> 
          <type-id>1004</type-id> 
          <class-name>net.tm.ActivityContentVO</class-name> 
        </user-type>
        ....
        <user-type>
          <type-id>1009</type-id> 
          <class-name>net.tm.ActivityContentVOComparator</class-name> 
        </user-type>
      </user-type-list>
      <allow-interfaces>true</allow-interfaces>
      <allow-subclasses>true</allow-subclasses>
    </pof-config>
    Configuration consistency client-side:
    <remote-invocation-scheme>
          <scheme-name>extend-invocation</scheme-name>
          <service-name>ExtendTcpInvocationService</service-name>
          <initiator-config>
            <tcp-initiator>
                   <remote-addresses>
                            <socket-address>
                                <address system-property="tangosol.coherence.extend.remote.node1"></address>
                                <port system-property="tangosol.coherence.extend.invocation.remote.port1">9094</port>
                            </socket-address>
                            <socket-address>
                                <address system-property="tangosol.coherence.extend.remote.node2"></address>
                                <port system-property="tangosol.coherence.extend.invocation.remote.port1">9094</port>
                            </socket-address>
                        </remote-addresses>
                        <connect-timeout>10s</connect-timeout>
                      </tcp-initiator>
                      <outgoing-message-handler>
                        <request-timeout>5s</request-timeout>
                      </outgoing-message-handler>
                    </initiator-config>
                <serializer>
                    <class-name>com.tangosol.io.pof.ConfigurablePofContext</class-name>
                    <init-params>
                        <init-param>
                            <param-type>String</param-type>
                            <param-value system-property="tangosol.pof.config">app-pof-config.xml</param-value>
                        </init-param>
                    </init-params>
                </serializer>           
    </remote-invocation-scheme>
    Consistent server configuration
            <proxy-scheme>
                <scheme-name>extend-proxy</scheme-name>
                <service-name>ExtendTcpProxyService</service-name>
                <thread-count>5</thread-count>
                <acceptor-config>
                    <tcp-acceptor>
                        <local-address>
                            <address>localhost</address>
                            <port system-property="tangosol.coherence.extend.port">9094</port>
                        </local-address>
                    </tcp-acceptor>
                </acceptor-config>
                <proxy-config>
                    <cache-service-proxy>
                        <lock-enabled>true</lock-enabled>
                    </cache-service-proxy>
                </proxy-config>
                <autostart 
                     system-property="tangosol.coherence.extend.enabled">
                     false
                </autostart>
            </proxy-scheme>
    It's filling stack trace
     TcpConnection(Id=0x000001297F449E980A640BB49B3E90457BFBA97FDB268F4DCF95962206C4C35D, Open=true, LocalAddress=10.100.11.180:90
    94, RemoteAddress=10.100.130.22:4989)
    2010-06-28 16:54:50.398/277.593 Oracle Coherence GE 3.5.3/465 <D6> (thread=Proxy:ExtendTcpProxyService:TcpAcceptor, member=3): Opened: Channel(Id=1588644627, Open=true, Connection=0x000001297F449E980A640BB49B3E90457BFBA97FDB268F4DCF95962206C4C35D)
    2010-06-28 16:54:50.528/277.723 Oracle Coherence GE 3.5.3/465 <Error> (thread=Proxy:ExtendTcpProxyService:TcpAcceptorWorker:3, member=3): An exception occurred while encoding a Response for Service=Proxy:ExtendTcpProxyService:TcpAcceptor: java.io.NotSerializableException: com.tangosol.util.internal.ConcurrentCounter
            at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)
    
    ....
       at com.tangosol.io.pof.PofBufferWriter$UserTypeWriter.writeObject(PofBufferWriter.java:2092)
            at com.tangosol.coherence.component.net.extend.message.Response.writeExternal(Response.CDB:15)
            at com.tangosol.coherence.component.net.extend.Codec.encode(Codec.CDB:23)
            at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Peer.encodeMessage(Peer.CDB:23)
            at com.tangosol.coherence.component.util.daemon.queueProcessor.service.peer.acceptor.TcpAcceptor.encodeMessage(TcpAcceptor
    .CDB:8)
            at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Peer.send(Peer.CDB:16)
            at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Peer.post(Peer.CDB:23)
            at com.tangosol.coherence.component.net.extend.Channel.post(Channel.CDB:25)
            at com.tangosol.coherence.component.net.extend.Channel.send(Channel.CDB:6)
            at com.tangosol.coherence.component.net.extend.Channel.receive(Channel.CDB:55)
            at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Peer$DaemonPool$WrapperTask.run(Peer.CDB:9)
            at com.tangosol.coherence.component.util.DaemonPool$WrapperTask.run(DaemonPool.CDB:32)
            at com.tangosol.coherence.component.util.DaemonPool$Daemon.onNotify(DaemonPool.CDB:63)
            at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
            at java.lang.Thread.run(Thread.java:619)
    Published by: user6122052 on June 28, 2010 09:46

    Hi user6122052,

    The problem is that you try to return the result of a query:

    setResult(cacheInstance.entrySet(limitFilter,  new ActivityContentVOComparator()));
    

    and this set is an instance of com.tangosol.util.ConverterCollections$ ConverterEntrySet, which is not serializable. So, you can either convert it, for example:

    Set setResults = cacheInstance.entrySet(limitFilter,  new ActivityContentVOComparator());
    Set setConverted = new HashSet(setResults.size());
    for (Iterator iter = setResults.iterator(); iter.hasNext(); )
        {
        Map.Entry entry = (Map.Entry) iter.next();
        setConverted.add(entry.getValue());
        }
    setResult(setConverted);
    

    or better yet - query the cache directly from your customer Extend.

    Kind regards
    Dimitri

  • VMware vCenter living is no longer working with Acronis Backup Advanced, Help!

    Hello everyone, I hope this ad in the right area of im, I'm looking for some advice on what could be causing my question about integration using the byproducts, I am struggling to find something on the net that relates exactly to my problem so have resorted to forums to see if anyone has tips or ideas , like im fresh out of them now!

    • VMware Client & Server Version 5.5.0 - (VMware vCentre Server Build 1476327)
    • Acronis advanced backup (Version 11.5 - update 5)

    Since November the synchronization / VMware vCenter integration between the 2 products above seems to have stopped working correctly, which means that any change in the location of the VM machines in the VMware customer environment is not reflected in Acronis more.

    For example, when you move a virtual machine to a folder on a particular data center to another folder in the same Datacenter, this change should be so reflected in the Acronis, what is happening is no longer.

    In addition, when a virtual machine brand new is created in vSphere and is placed in the appropriate Center of data/file structure, this should (and working correctly until November) fill with Acronis 'vcentre' host Group that has the folder structure equivalent to pick up the plans for appropriate backup etc, but this happens is no longer, instead , the only way that you can see the new VM is under "all Virtual Machines.

    In addition, when removal of vSphere VM, also not being properly reflects Acronis more, when go in "All Virtual machines" these deleted machines are still show while intoxicated. But these machines no longer exist in vSphere, this shouldn't show Acronis more. Without doubt, this is connected to vCenter integration issues.

    Here are the steps I took to try to solve this problem

    • Disable/re-enabling integration with the server vCentre.
    • Restarting the Server Service on the management of Acronis Acronis license server
    • Reset all motors of unloading and the virtual machine.
    • Acronis and vCentre servers restarting.
    • A reconstruction complete the Acronis server and all subsequent config, etc. backup plans.

    After the last point (reconstruction of Acronis) integration has worked for a few days, then it stopped working again!

    If anyone has any ideas or possible causes, could you please let me know.

    Here are a few details of what was the root cause of the problem:

    Each VM in vSphere contains a list of parameters such as:

    InstanceUUID

    locationID

    guestFullName

    The problem arises because some of the virtual computers contains a copy of the values of these parameters (name, value). Thus, in order to update the database of AMS, we execute the SQL query with these settings, but when 2 or more of the virtual computers contains the same parameters, the SQL query fails > This is why the changes were not reflected and it was not possible to update the vCenter folder structure.

    The developer removed then duplicate values enable and disable the vCenter integration, by doing this it was able to resolve the problem.

  • Compactheader add-on no longer works with Firefox 39?

    In my view the header that appears above the body of the email must be eliminated. That is possible because the Compactheader add-on is no longer compatible with Firefox 39. This header is redundant and just takes place of the screen anyway.

    Then you do not install it in Thunderbird.

    Download it to your computer where you can find it somewhere. Then, in Thunderbird, go to the page of add ons and click on the gear icon in the toolbar and select install from file.

  • e-mail no longer works with firefox

    Yahoo mail no longer works with firefox. but there is no problems with yahoo mail when I use chrome. This problem started a week ago. today is 02/07/15

    You can try the following steps in case of problems with web pages:

    You can reload webpages and ignore the cache to refresh potentially stale or corrupt.

    • Hold down the SHIFT key and click the Reload button
    • Press 'Ctrl + F5' or 'Ctrl + Shift + R' (Windows, Linux)
    • Press 'Command + shift + R' (Mac)

    Clear the cache and delete cookies only from Web sites that cause problems.

    "Clear the Cache":

    • Firefox/tools > Options > advanced > network > content caching Web: 'clear now '.

    'Delete Cookies' sites causing problems:

    • Firefox/tools > Options > privacy > "Use the custom settings for history" > Cookies: "show the Cookies".

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem.

    • Put yourself in the DEFAULT theme: Firefox/tools > Modules > appearance
    • Do NOT click on the reset button on the startup window Mode safe
  • iPod nano no longer works with headphones Bose

    My fairly new nano iPod no longer works with one of my headphones Bose (Bose sport & Quietcomfort) - the iPod no longer meets the headset controls. I know it's the iPod that has a problem that the headphones still work with my phone.

    If you haven't already, do a Reset (reboot) on the iPod

    Learn how to reset your iPod - Apple Support

    If this does not help, he can you want to do a restore of the iPod using iTunes.  This erases the iPod, reinstall its software and sets it to the default settings

    Use iTunes on your Mac or PC to restore your iPhone, iPad or iPod settings - Apple Support

  • Norton Security no longer works with Firefox update, if I'm afraid to use it. I want safety navigation

    According to my info in Firefox I have Firefox 15.0.1 & it is up-to-date.
    I can no longer use Firefox with all my saved bookmarks and familiarity that Norton Security programs I got Comcast no longer work with Firefox. Whenever I use it, it says that my safety is compromised. I don't have any protection. Currently I use internet for purchases, that I count on privacy and security, so I now use Sarari, which I don't like at the well.

    Using Firefox, I Googled, found the info that says everything I need to do is to upgrade my Norton with Live Update and then restart Firefox. Do it, but it doesn't help, still has the same lack of protection.

    See [935636/questions/935636] [MAC] norton does not support firefox 15

  • Which antivirus program is no longer compatible with Firefox?

    I have AVG. It's time for me to renew my antivirus. What antivirus programs are no longer compatible with Firefox?

    Avira Personal free - http://www.free-av.com/

  • How can I turn off TV with my remote?

    How can I turn off TV with my remote?

    Try here > http://osxdaily.com/2016/01/03/howto-turn-off-apple-tv/

    It may depend on what generation Apple TV you have.

  • Series Satellite L supports wake up remotely with the remote software?

    Series Toshiba L does support waking the computer from a distance with the remote software?

    What cell phone do you have exactly?
    Which option do you mean exactly?
    WOL (wake up on LAN)?

    In most cases the WOL is supported by the BIOS.

Maybe you are looking for

  • Attempts of incorrect check APPLE ID

    I followed the process what to do when you have changed your Apple ID email address or password - Apple support , but he has asked security questions I don't have answers to.  These responses have been forgotten for a long time because it has been 16

  • Use FaceTime minutes or data?

    Use FaceTime minutes or data? iphone5s

  • 1065984 error during installation or capture with sp4 4.6 HPDM

    Hello Yesterday, I did the update to sp3 HPDM 4.5 to 4.6 sp4. Now, I can not install image of wes or capture on my computer thinclient t5740e. Can I install the update agent, the agent is the last (4.6.3660.21244). This newspaper to install and captu

  • Replacement of motherboard problem

    I have a Pavilion a1213w pc running Windows XP SP3 and recently the phones went out on this subject. I bought one that had the same room as my old HP except that it was a Compaq. When I reboooted my computer I got an error that says the system fan ha

  • How can windows firewall can be repaired

    I would use microsoft security essentials which has no firewall they recommend the windows firewall, I use windows xp my firewall does not work it is turned off if I try to turn it on I get the message that firewall is not monitor how can I fix the w