To see all sessions in OEM 10g DBConsole

I 'm trying to see all sessions in OEM 10g DBConsole, but I didn't find where to see, I only can see the main sessions... is there a way to see all sessions in database?

Hi,
It is best to not compare the 9i OEM to the 10g Grid Control, while some of the features may have been incorporated, they are very different.

Similar Messages

  • Can't see v$session in forms 10g trigger?

    Forms 9.0.4 against 10g database.
    I'm playing around with finding out who has a row locked so I can trap that annoying "could not reserve record" message that just generates calls to me from confused users.
    Anyway in the process of trying different things, I find that when I try to select from v$locked_object or v$session, in either a block level trigger, a program unit or even a library at compile time it fails with "identifier v$locked_object must be declared". It seems forms cannot see the view. I can select from this view just fine via SQL/Plus or Toad with the same ID.
    What gives!? I mean, if I have rights to select from the view why can't I get to it from forms?
    Gary

    http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:4515126525609
    Are you sure you know who locked the record? I created a table and inserted some records. 2 were marked for deletion by 2 separate users and a third user also tried to delete one of those records. Then I ran the first query in the metalink article and couldn't differentiate between the 3 records except for username. The other columns in v$locked_record don't help either.
    On heavily used tables you're unlikely to be able to pick out a particular blocking session so you'll have to resort to telling the users that 'someone' is locking their record. So you'll still get the phone calls. The voodoo doll won't actually help but it might make you feel better about it. A healthy cynicism does the trick just as well.
    As for why forms won't compile, I can't help. I assume you are using the same logon credentials?

  • Search all sessions in a RAC database

    Hi:
    I am wondering if there is a way that I can show all connecting sessions to a RAC database through OEM Grid Control? I found that I must do a "search session" in only one of the instances, but I want to see all sessions on all available nodes at the same time.
    Thanks.

    You can make the same that i do it.
    In the Server Node of RAC i build a User Define Metric that execute the following:
    SELECT COUNT(*),INST_ID,USERNAME FROM GV$SESSION
    WHERE USERNAME IS NOT NULL
    AND STATUS = 'ACTIVE'
    GROUP BY INST_ID,USERNAME
    ORDER BY INST_ID,USERNAME;
    tHIS METRIC RUN EACH 5 MINUTES AND I WAS ACTIVED THE WARNING AND CRITICAL TRESHOLDS

  • Required roles/privs for viewing all scheduler jobs in OEM 10g

    Hello,
    I would like to know wchich role/priv schould have user to view all scheduler jobs
    in OEM console 10g. My user can see only few jobs in Scheduler jobs part of OEM 10g. User sys see all scheduler jobs.
    Thank you for reply

    Hi,
    If this is a highly privileged user you can consider the CREATE ANY JOB privilege. But this privilege allows a user to run code as any other user so it should only be granted very carefully.
    A user can also view any job he is granted ALTER privileges on directly.
    Hope this helps,
    Ravi.

  • Oracle 10g DBConsole

    Hi all,
    currently I'm trying to enable 10g DBConsole on some running databases.
    To-date, I don't have much information about the databases, eg. how they were installed, and what are the components being selected during the installation.
    I researched abit regarding DBConsole, to setup the repos, we can make use of emca found in $ORACLE_HOME/bin. DBConsole vs Grid difference is that console is only for single DB, whereas Grid is for multiple DBs? Am I correct to say this? Please correct me if I'm wrong.
    However, to start up the service, I noticed that it requires emctl, which seems to be missing from my bin directory, all I can see is the emca executable file. Am I missing anything here?
    Next, I need to prove to my management the pros of enabling it, at the same time identifying the concerns if any.
    Some concerns I identified are as follow:
    1) Require sys user login <<< Can we create a specific user which is used to login and perform EM tasks only?
    2) Require ports to be enabled <<< May require to raise exception?
    Due to the fact that I'm in a very strict environment, that's why I am looking at these concerns. Any other concerns that I need to take note of?
    Thanks in advance for any input.
    Eugene

    1.- Create a database through the DBCA
    2.- Realize at the end of the installation the address to access to the database control ( OEM Web app ) to that database. ( http://host:550x/em )
    3.- Set the ORACLE_SID enviroment variable
    4.- Check the status of this service ( emctl status dbconsole )
    5.- if the service is down you have to start it so : ( emctl start dbconsole )
    6.- Access to the address highlighted in the step 5
    Joel Pérez
    http://otn.oracle.com/experts

  • OEM 10g Page Not Found

    I have installed OEM 10g, and all was working great until today. I get Page Not Found when I try to open the console, so I checked for the service and it was not running. I tried to start the service, OracleDBConsoleorcl, and got an error 1053: The service did not respond to the start or control request in a timely fashion. I am using the version I downloaded from the web, and have made no changes since I first installed it and it was working. I am not using it for anything but my local installation right now, so have not installed the IAS with Grid Control. Do I need to do that even though I have not tried to connect to other Oracle server with OEM? Any suggestions? Thanks.

    This is error message I see in one trace file:
    EMDROOT=D:\oracle\product\10.1.0\Db_1
    ORACLE_HOME=D:\oracle\product\10.1.0\Db_1
    EMDSTATE=D:\oracle\product\10.1.0\Db_1\K57136.nash.tenn_orcl
    CONSOLE_CFG=dbconsole
    TRACE_LEVEL=16
    TIMEOUT=15
    03/10/05 07:32:12 Start pending...
    03/10/05 07:32:12 Verifying dbconsole is not started already. Command line "D:\oracle\product\10.1.0\Db_1\bin\emctl.bat" istatus dbconsole
    03/10/05 07:32:36 dbconsole launch commandline is "D:\oracle\product\10.1.0\Db_1\bin\emctl.bat" istart dbconsole
    03/10/05 07:32:36 Tracking process launch...
    03/10/05 07:33:11 Did not hear back from emctl istatus.
    03/10/05 07:33:11 Waiting a further 5 secs...
    03/10/05 07:33:16 Did not hear back from emctl istatus.
    03/10/05 07:33:16 Waiting a further 5 secs...
    03/10/05 07:33:21 Did not hear back from emctl istatus.
    This message is in another trace file:
    (error = 10061)
    2005-03-10 07:32:33 Thread-4084 WARN http: snmehl_connect: connect failed to (K57136.nash.tenn:5500): No connection could be made because the target machine actively refused it.
    (error = 10061)
    2005-03-10 07:41:04 Thread-2752 ERROR http: 1776: snmehl_read: error on read: An existing connection was forcibly closed by the remote host.
    I turned the XP firewall off and tried to start the dbconsole service again, and it still would not start. The messages above are from that effort to start service.
    Any other suggestions? Thanks for your help.

  • Install of OEM 10g Grid controll on windows break my listener

    Hi!
    I install OEM 10g Grid controll to Windows 2000 server, successfully (a new database to the repository also was created by the installer).
    When I restart our server the service of the Listener did not started (it was set to automatic) and I did not able to start it.
    First I see the "Listener.log" and the trace file.
    The problem was that the listener intended to load adapter protokoll and refer to the "orantcp9.dll"!
    Because before the install I create a 10.1.0.2 database the path of the file point to the "Db_1\bin" and here is "orantcp10.dll" exists.
    The "orantcp9.dll" is exists in "em_1\bin".
    What and how can I fix?
    An additional question : during my secont installation I select to create the repository into an existing database, but the installer refuse it because my DB version was 10.1.0.2 and not 10.1.0.3.
    How can I create DB with 10.1.0.3 version on Windows?
    I am in a deadlock :-)
    Regards,
    Imre

    Try MetaLink Doc Id 284680.1
    The issue was that the EM Grid Control created an ORACLE_HOME environment variable. All you have to do is delete the variable, move the Database Oracle Home entries in the path to the front, and reboot the server.

  • OEM 10G

    I have installed OEM 10g, and all was working great until today. I get Page Not Found when I try to open the console, so I checked for the service and it was not running. I tried to start the service, OracleDBConsoleorcl, and got an error 1053: The service did not respond to the start or control request in a timely fashion. I am using the version I downloaded from the web, and have made no changes since I first installed it and it was working. I am not using it for anything but my local installation right now, so have not installed the IAS with Grid Control. Do I need to do that even though I have not tried to connect to other Oracle server with OEM? Any suggestions? Thanks.

    Thanks for your reply
    But I was not talking about Grid Control. I was talking about non-web based Oacle Enterprise Manager Consol 10g. If there is any configuration we need to do in order to get those information for sessions, which was available in 9i OEM?
    I first want a non-web based OEM client because it is easy to use. Web based application (like grid control) are never so reliable and speedy (this is my opinion).
    Can anyone else help?
    Thanks.

  • How to create OEM 10g in EBS?

    Hi,
    We have EBS r12.6 and database 10.2.0.3, linux env, multi-node env.
    I wan to create OEM 10g configurations for batter administrator.
    When I start following error received:
    [oracle@testappsdb SILP19]$ emctl start dbconsole
    TZ set to Asia/Karachi
    OC4J Configuration issue. /d01/upgradation_only_db/SILP12_APPS/SILP19/db/tech_st/10.2.0/oc4j/j2ee/OC4J_DBConsole_testappsdb.silhon.com_SILP19 not found.
    Thanks.

    Hi;
    Please check Hussein Sawwan's previous great posts
    http://cn.forums.oracle.com/forums/thread.jspa?threadID=903111&tstart=-1
    Also see:
    How To Drop, Create And Recreate DB Control In A 10g Database [278100.1 ]
    Problem - emctl start dbconsole Fails with Error OC4J Configuration issue OC4J_DBConsole__ not found [ID 555218.1]
    If you need to steps to how you drop repo check:
    http://cn.forums.oracle.com/forums/thread.jspa?threadID=903111&start=15&tstart=0
    Regard
    Helios

  • Oem 10g R2

    Does anyone know when Oem 10g R2 is due out for windows.
    I see the Linux version is already out?
    Secondly I am having a problem with the installation of Oem 10g Grid Control.
    I install Oracle 9i patch to 9.2.0.7 then installated Oem 10g Grid Control.
    After the installation all of the db utilities stop working.
    I thought initially the problem was the oracle home but the Oracle
    Home Selector says there is only 1 Oracle Home.
    I installed Oracle 9i in d:\oracle\ora92
    and OEM in d:\oem10g.
    Any idea on what could be causing this.
    Lsnrctl does not work?
    Sqlplus say their is a nls problem.

    Also, this is the answer, when we asked Oracle what version of database will it come with R2:
    If you are referring to grid control 10.2.0.1.0 and are installing with the new database option, then
    this would be a 10.1.0.4.0 database.
    If you would be installing into an existing database, then you have the option of a 9.2.0.6 or 10.1.0.4 database, with 10.
    2 being planned for the future.

  • How to block Sql Plus sessions in Oracle 10g

    Hi,
    I want to block all sql plus sessions in oracle 10g, as we have a application and we need each and every one to use this application not the sql plus session.
    Kindly update us as soon as possible. and also thanks in advanced.

    Understand the concept Karl, but a layered defense seldom works in the IP world. If I manage to get through the firewall, then how can you prevent me access, at IP level, at any other ISO stack layer? If you manage to get through, then your firewall policies could just be too weak :) at least you must have some kind of an IDS infrastructure in place..
    what I mean is, you can have infinite number of threats.. and this will be part of your Risk Analysis. Determining all possible threats to the assets, what are being protected and their associated value, and predicting the rate of occurrence.... with all of these you could probably come up with contingency plans and incident response.. And most of all, you should not ignore the fact that people are creative, ingenious, and curious, and they'll prove this to you by testing your security implementations. So you'll have to periodically evaluate your security.. that's why there are audits.. Also, you must balance Security, Performance, Usability, and your Budget.
    Yes, you can argue that if the entire firewall goes down (thus no IP defense), then something like DBV (or even denying IPs in sqlnet) can provide some defense. But is that not then a case of too little too late? It's better too little too late, than no protection at all... Imagine if there's no DBV, or if you have not implemented the concept of "Least Privilege"? or if the backups and exports are not encrypted? That would be more devastating.. that's the importance of database security options and features in providing "defense in depth"
    I question just what purpose and how effective IP packet security is at higher layers. It can never substitute doing this instead at firewall level. Well, it's not all about network security. All facets must be considered and the inter-relationships should be understand. Like the core information security and access management, physical and personnel security, training them, etc... And all of these are equally important in providing a secure ecosystem
    As for security that relies on the client to pass secure data (like executable name or o/s user name)... all this can easily be spoofed. Even if the app and Oracle driver are somehow digitally signed and these signatures can be verified on the server side, we only need to look at Vista to see how secure this really would be. Microsoft attempted to encrypt every single h/w and s/w layer from the physical DVD track to the pixel on the monitor.. and this was defeated. And this was done as o/s kernel level. It is less complex to hack at driver level and even trivial to do it at application level.Security is about risk management. Blocking SQL*Plus does not negate the risk of SQL from the wild being run on a production server. For example, the client is a VB client using ODBC. It is easy to create a proxy that accepts the ODBC connection from the VB client and proxy the OCI packets to the real Oracle server. Now you have a man-in-the-middle than can inspect every single SQL call made to Oracle, and inject any PL/SQL or SQL code it wants.
    Security is far beyond writing a login trigger to deny SQL*Plus sessions and calling that a defense. >
    Yes I agree with you. That's why there are independent organizations and regulating bodies that provides security best practices, to give us a headstart on comming up of strong security policies.
    And one of my favorites is the one provided by IASE (sponsored by Defense Information Systems Agency) where there's lot of content regarding hardening and policies
    http://iase.disa.mil/stigs/stig/index.html
    http://iase.disa.mil/stigs/checklist/index.html
    http://iase.disa.mil/stigs/SRR/index.html
    - Karl Arao
    http://karlarao.wordpress.com

  • Not seeing all DB tables in Crystal using ODBC connection

    I have an ODBC connection to an oracle database.  I can connect to the database and see all the tables through tools such as TOAD, SQL developer, SQLPlus, etc.  However, in Crystal, i only see schema tables and not the tables I want.  I am using the same connection, username, and password.  If I run a report that was created in a different environment to the correct tables, I receive the error: ORA00942: table or view does not exist.
    Oracle 10g
    Crystal 12.0.0.683
    Any suggestions?
    Thanks,
    Diana Woronuk

    Hi Diana,
    Go to File | Options and open the Database tab. 
    Make sure Tables and Views are checked.  You may want to include Stored Procedures too. 
    Save the changes and restart Crystal. 
    You should see your tables now.  If you have more than 200 objects in your database, you may need to use the Table Name Like option to filter out some of the tables. 
    Good luck,
    Brian

  • Installing OEM 10g (10.2.0.1) Grid Control on Linux86

    Hi friends,
    I have successfully installed OEM Grid in our RHEL 4.6 server (1st time).
    At the end of the installation I got this message:
    See below for information pertaining to your Enterprise Manager installation:
    1. Use the following URL to access the Enterprise Manager Grid Control:
    http://server01.ebiztech.biz:4889/em
    2. The Enterprise Manager installation includes an Oracle Application Server instance, which is administered using a special "ias_admin" user account. The following information was defaulted for the embedded Application Server instance:
    Instance Name:    EnterpriseManager0.server01.ebiztech.biz
    ias_admin password: This password is the same the SYSMAN account.
    3. The connection details for the Enterprise Manager Repository are:
    Host: server01.ebiztech.biz
    Port: 1521
    SID: emrepI can do #1, and #3.
    How do I access #2? what is the URL corresponding to it? Or is it done through SQLPlus?
    Thanks a lot,
    Ms K

    Thanks Raj,
    Of course I will upgrade it, but for now I am still cramming on how to complete my installation huhuhhu:(
    Firstly....
    How do you install management agent for linux86?
    I have already installed OEM 10g Grid Control OMS on my linux sever which also has EBS R12.1.
    Do I need to install a "management agent" on this server, to be able to manage my EBS R12.1?
    Secondly....
    I want to manage our EBS 11i which resides on another server (remote).
    I downloaded the Linux_Grid_Control_agent_download_10_2_0_2_0.zip file from OTN,
    and put it to the target server.
    I unzip it following the readme.txt to the
    1. Download the Linux_Grid_Control_agent_download_10_2_0_2_0.zip file from OTN.
    2. Copy the downloaded file to <OMS_HOME>/sysman/agent_download/10.2.0.2.0 directory.(create <OMS_HOME>/sysman/agent_download/10.2.0.2.0 directory, if it doesn't exist.)
    3. cd <OMS_HOME>/sysman/agent_download/10.2.0.2.0
    4. <OMS_HOME>/bin/unzip Linux_Grid_Control_agent_download_10_2_0_2_0.zip
    5. If agent_download.rsp doesn't exists at <OMS_HOME>/sysman/agent_download/10.2.0.2.0 directory then:
        a. mv agent_download.rsp.bak agent_download.rsp
        b. edit agent_download.rsp and modify s_OMSHost="%s_hostname%" and s_OMSPort="%s_OMSPort%" with the correct OMSHost and OMSPort values.(However, even if you are specifying a secure Management Service, you must still enter the non-secure port number here)
            eg. s_OMSHost="stadv26.us.oracle.com"
                s_OMSPort="4889"
    6. Edit <OMS_HOME>/sysman/agent_download/10.2.0.2.0/linux/agentDownload.linux and modify OMShost=%s_OMSHost% and httpPort=%s_OMSPort% with the correct OMSHost and OMSPort.(However, even if you are specifying a secure Management Service, you must still enter the non-secure port number here)
       For eg. OMShost =stadv26.us.oracle.com
               httpPort=4889
    7. Follow the agentDownload instructions from 5.4 section of Oracle Enterprise Manager Installation and Basic Configuration Guide.But when I got to #7 ....the documentation is not clear, as usual there are lots of injected unrelated topics which make the documentation "topsiturvy" and very hard to follow.
    Can you just tell me, based on your experience how to install the agent? Someone told me to run OUI?
    But I can not find it on the unzip >Linux_Grid_Control_agent_download_10_2_0_2_0.zip file
    Thanks a lot.

  • HI,I am unable to see all the tabs in ACC, getting the following error

    I am unable to see all the tabs in ACC, getting the following error.
    ERROR [ComponentAgent] Request for URL:
    http://sathya-PC:8080/dyn/init-session did not return a valid session.
    Please check your settings for siteHttpServerName, siteHttpServerPort,
    webApplicationPrefix and initSessionURL for component
    /atg/devtools/DevSessionManager/_2/atg/devtools/ComponentAgent
    serverport : 8860
    servername : localhost
    Note:I included DCS in Manifest and Run the DCS in SQL
    Please Help me out from this issue
    Thanks

    Verify and chage if required.
    Ports are configure at /atg/dynamo/Configuration component,
    httpPort , httpsPort , drpPort , fileDeploymentPort , rmiPort , fileSychronizationDeploymentPort , adminPort , siteHttpServerPort
    Noramly :
    siteHttpServerPort and adminPort: app server port
    Thanks,
    Nitin.

  • Killing all sessions at once who are locking the objects

    Hello all,
    i am working in 9i Oracle RDBMS on AIX IBM OS
    most of the time we face locking issue and there comes more then different 50 sessions which locking different tables.
    here is my script to find out what sessions are locking what tables.
    set lines 200
    set pages 50000
    col SID for 99999
    col SERIAL# for 999999
    col username format a12
    col sql format a55
    col event format a50
    col program format a40
    col MINS for 9999
    col ID1 for 999999
    col object_name for a35
    col locktype for a8;
    select  /*+ ORDERED */ s.sid,s.serial#,s.status,round(s.last_call_et/60) MINS,s.program,l.ID1,d.object_name,d.object_type,l.type as locktype
    from v$lock l,v$session s, dba_objects d
    where l.sid = s.sid
    and l.ID1 = d.object_id
    and s.username = 'MULDMS'
    and last_call_et > 120 and l.type <> 'TX' order by s.status,MINS,l.ID1,l.type; and the out put it gives something like
      SID SERIAL# STATUS    MINS PROGRAM                                      ID1 OBJECT_NAME                         OBJECT_TYPE        LOCKTY
    8981    1069 ACTIVE       2 frmweb@Appsdms31 (TNS V1-V3)               30407 VH_BTN                              TABLE              TM
    1642     512 ACTIVE      15 [email protected] (TNS V1-V3)    30407 VH_BTN                              TABLE              TM
      690    1057 ACTIVE      17 [email protected] (TNS V1-V3)    28846 AM_DOCS                             TABLE              TM
      699    1787 ACTIVE      17 [email protected] (TNS V1-V3)    30407 VH_BTN                              TABLE              TM
      690    1057 ACTIVE      17 [email protected] (TNS V1-V3)    30407 VH_BTN                              TABLE              TM
      690    1057 ACTIVE      17 [email protected] (TNS V1-V3)    30643 VT_CHECK_INOUT                      TABLE              TM
    10877     895 ACTIVE      18 [email protected] (TNS V1-V3)     28846 AM_DOCS                             TABLE              TM
    6654    1085 ACTIVE      18 [email protected] (TNS V1-V3)    28846 AM_DOCS                             TABLE              TM
    1912    1655 ACTIVE      18 [email protected] (TNS V1-V3)    28846 AM_DOCS                             TABLE              TM
    10877     895 ACTIVE      18 [email protected] (TNS V1-V3)     30407 VH_BTN                              TABLE              TM
    6654    1085 ACTIVE      18 [email protected] (TNS V1-V3)    30407 VH_BTN                              TABLE              TM
    1912    1655 ACTIVE      18 [email protected] (TNS V1-V3)    30407 VH_BTN                              TABLE              TM
    1754    1582 ACTIVE      18 [email protected] (TNS V1-V3)    30407 VH_BTN                              TABLE              TM
    10877     895 ACTIVE      18 [email protected] (TNS V1-V3)     30643 VT_CHECK_INOUT                      TABLE              TM
    6654    1085 ACTIVE      18 [email protected] (TNS V1-V3)    30643 VT_CHECK_INOUT                      TABLE              TM
    10708     982 ACTIVE      19 [email protected] (TNS V1-V3)    28846 AM_DOCS                             TABLE              TM
    5428     855 ACTIVE      19 [email protected] (TNS V1-V3)    28846 AM_DOCS                             TABLE              TM
    10708     982 ACTIVE      19 [email protected] (TNS V1-V3)    30407 VH_BTN                              TABLE              TM
    5428     855 ACTIVE      19 [email protected] (TNS V1-V3)    30407 VH_BTN                              TABLE              TM
    10278     897 ACTIVE      20 [email protected] (TNS V1-V3)     28846 AM_DOCS                             TABLE              TM
    6261    1056 ACTIVE      20 frmweb@appsdms12 (TNS V1-V3)               28846 AM_DOCS                             TABLE              TM
    6598    1413 ACTIVE      20 [email protected] (TNS V1-V3)     28846 AM_DOCS                             TABLE              TM
    1312    1000 ACTIVE      20 [email protected] (TNS V1-V3)    28846 AM_DOCS                             TABLE              TM
    10278     897 ACTIVE      20 [email protected] (TNS V1-V3)     30407 VH_BTN                              TABLE              TM
    6261    1056 ACTIVE      20 frmweb@appsdms12 (TNS V1-V3)               30407 VH_BTN                              TABLE              TM
    1312    1000 ACTIVE      20 [email protected] (TNS V1-V3)    30407 VH_BTN                              TABLE              TM
    3521     717 ACTIVE      20 [email protected] (TNS V1-V3)    30407 VH_BTN                              TABLE              TM
    6598    1413 ACTIVE      20 [email protected] (TNS V1-V3)     30407 VH_BTN                              TABLE              TM
    6598    1413 ACTIVE      20 [email protected] (TNS V1-V3)     30643 VT_CHECK_INOUT                     TABLE              TM
    1312    1000 ACTIVE      20 [email protected] (TNS V1-V3)    30643 VT_CHECK_INOUT                   TABLE              TM
    9131    1002 INACTIVE     2 [email protected] (TNS V1-V3)    30455 VH_PSF                              TABLE              TM
    4887    1040 INACTIVE     2 [email protected] (TNS V1-V3)     30455 VH_PSF                              TABLE              TM
      151    1982 INACTIVE     2 [email protected] (TNS V1-V3)     80224 RD_ENQEXD                           TABLE              TM
      846     988 INACTIVE     3 [email protected] (TNS V1-V3)    29228 GM_VIN                              TABLE              TM
    5364    1149 INACTIVE     3 [email protected] (TNS V1-V3)    30407 VH_BTN                              TABLE              TM
    9934     789 INACTIVE     3 [email protected] (TNS V1-V3)     30455 VH_PSF                              TABLE              TM
    7511    1092 INACTIVE     3 [email protected] (TNS V1-V3)    30455 VH_PSF                              TABLE              TM
    3595    1104 INACTIVE     3 [email protected] (TNS V1-V3)    30455 VH_PSF                              TABLE              TM
      846     988 INACTIVE     3 [email protected] (TNS V1-V3)    30455 VH_PSF                              TABLE              TM
      945     670 INACTIVE     3 [email protected] (TNS V1-V3)    30455 VH_PSF                              TABLE              TMand then i have to kill the session one by one . thaat is a tedious task to do.
    i want to modify this script which will give me all the kill statement and i just have to run it
    can someone help me in this regard as i am weak in sql/plsql
    thanks and many thanks

    >
    i want to modify this script which will give me all the kill statement and i just have to run it
    >
    Karthick's script will 'kill' the sessions but before you use that script you may want to read the docs about the KILL and DISCONNECT clauses.
    See the DISCONNECT SESSION and KILL SESSION clauses in the SQL Language doc
    http://docs.oracle.com/cd/B28359_01/server.111/b28286/statements_2013.htm#sthref4724
    >
    DISCONNECT SESSION Clause
    Use the DISCONNECT SESSION clause to disconnect the current session by destroying the dedicated server process (or virtual circuit if the connection was made by way of a Shared Sever).
    The IMMEDIATE setting disconnects the session and recovers the entire session state immediately, without waiting for ongoing transactions to complete.
    KILL SESSION Clause
    The KILL SESSION clause lets you mark a session as terminated, roll back ongoing transactions, release all session locks, and partially recover session resources.
    IMMEDIATE Specify IMMEDIATE to instruct Oracle Database to roll back ongoing transactions, release all session locks, recover the entire session state, and return control to you immediately.
    >
    For DISCONNECT the IMMEDIATE clause will recover the session state 'immediately'.
    Using KILL, even with the IMMEDIATE clause, you are telliing Oracle to roll back any ongoing transactions and that can take a lot of time.
    Make sure you are really doing the operation you want to do. If you want to get the locks released immediately you need to use 'DISCONNECT IMMEDIATE'.

Maybe you are looking for