How to clean the dead sessions in the database?

Hi,
sqlldr user/passwd@dbtns DIRECT=TRUE SKIP_UNUSABLE_INDEXES=TRUE SKIP_INDEX_MAINTENANCE=FALSE control="test.ctl"
3M records
The OS shutdown when i sqlldr, and start another sqlldr into the same table
but the table is locked.
sqlldr failed
SQL*Loader-951: Error calling once/load initialization
ORA-00604: error occurred at recursive SQL level 1
ORA-00054: resource busy and acquire with NOWAIT specified or timeout expired
how to use ORACLE system maintenance procedure to clear the database dead session?
Which procedure?
I don't want to use the solution:
alter system kill session

HI..
What is the status of the session in V$sesison view.Does the session exist.
COLUMN username FORMAT A15
col osuser for a15
col module for a15
COLUMN machine FORMAT A30
col program for a20
COLUMN logon_time FORMAT A20
SELECT NVL(s.username, '(oracle)') AS username,
       s.osuser,
       s.sid,
       s.serial#,
       p.spid,
       s.status,
       s.module,
       s.terminal,
       s.machine,
       s.program,
       TO_CHAR(s.logon_Time,'DD-MON-YYYY HH24:MI:SS') AS logon_time
FROM   v$session s,
       v$process p
WHERE  s.paddr  = p.addr
and AND    s.status = 'ACTIVE'
ORDER BY s.username, s.osuser;Anand

Similar Messages

  • How to find forms dead sessions in 11i

    Hi,
    can any one tell me how to find forms dead sessions in 11i from Unix
    Thanks

    Please refer to:
    Note: 457381.1 - Troubleshooting Tips For Spinning/Hanging F60WEBMX Processes
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=457381.1
    The note refers to another note with a script which should be helpful in finding spinning f60webmx processes and tie it back to the application users (Note: 185762.1).
    In addition refer to Note: 177610.1 - Oracle Forms in Applications FAQ (What is FORMS60_CATCHTERM?)
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=177610.1

  • HT1661 My mid-2009 MacBook Pro has just died via a painful (for me) hard drive failure. I backed up a good percentage of files recently but not enough to keep me happy.  I need to access the dead drive on the MBP via a 2008 iMac. Best options?

    My mid-2009 MacBook Pro has just died via a painful (for me) hard drive failure. I backed up a good percentage of files recently but not enough to keep me happy.  I need to access the dead drive on the MBP via a 2008 iMac. Best options?
    I have ordered a 800 firewire to 800 firewire cable and am hoping to use the target mode option to copy files from the MBP.
    Is this possible?
    Hope so!
    Any advice and or help would be greatly appreciated.
    Many thanks,
    Neil

    Thanks Ogelthorpe.
    Just bought an enclosure to try that also.
    Hoping the MBP isn't really dead but just feigning death
    Fingers crossed.

  • How to avoid one active session for the same user account concurrently

    Hi all ,
    i am using model 1 architecture in my application.
    in my application ,if one user login through 2 browser at a time ,he can do it.
    But now ,i want to close first browser or redirect him to a exception page.
    plz guide me how can i do it.
    plz include case1.
    what happen if he close page ,not logoff
    case2
    what happen if power cut happen on client side.

    +You can use a column in the table to check the current user logged in status. Once the user gets logged in the application change the flag at the backend. In this way you can know whether the user is already logged in the apllication or not, and based on this you can show a proper message to the user.+
    +If the user closes the browser window without logging off the application, then in this case you can use the session Listoners.+
    Well not the right approach Listeners would it for you.For browser closure problem.If user does that automatically container destroys the session object as per configured session-timeout.
    *@OP*
    Problem 1:
    Try to a write an implementation of sessionListener / sessionAttributeListener (for having a check on user loggins and apply a global filter which checks available users who have already logged in)
    Hope the below thread might give you some idea of how to go about.
    http://forum.java.sun.com/thread.jspa?threadID=5226527&messageID=9922478
    Problem 2:
    consequently configure session-timeout parameter in minutes under web.xml for session browser close and inactivity state problems.
    REGARDS,
    RaHuL

  • How do I create a session with the datasource set in code not sessions.xml

    I want to create a session where I specify the J2EE datasource name dynamically in code. Normally, I would hard-code a J2EE datasource name in sessions.xml e.g.
    <login>
    <datasource>jdbc/MyApplicationDS</datasource>
    <platform-class>oracle.toplink.platform.database.oracle.Oracle10Platform</platform-class>
    <uses-external-connection-pool>true</uses-external-connection-pool>
    <uses-external-transaction-controller>true</uses-external-transaction-controller>
    </login>
    However, we don't want to use a hard-coded string "jdbc/MyApplicationDS". We want to be able to set this at runtime.
    I found this in the App Developer's Guide:
    Configuring an External Connection Pool in Java
    To configure the use of an external connection pool in Java:
    1. Configure the DataSource on the server.
    2. Configure the Login to specify a DataSource and the use of an external connection pool:
    login.setConnector(
    new JNDIConnector(new InitialContext(), "jdbc/MyApplicationDS"));
    login.setUsesExternalConnectionPooling(true);
    and this:
    Configuring Sessions with the sessions.xml File
    OracleAS TopLink provides two ways to preconfigure your sessions: you can export and compile Java source code from the OracleAS TopLink Mapping Workbench, or use the OracleAS TopLink Sessions Editor to build a session configuration file, the sessions.xml file.
    It seems like I should export and compile Java code that calls login.setConnector(), but I can't find out any information on how to do this. I looked at the MW user guide and I didn't see anything on this.
    I also found this by searching this discussion forum:
    To create a server session completely from code given a project you can use,
    project.getLogin().setConnector(new JNDIConnector(new InitialContext(), "your-datasource-url"));
    project.getLogin().setUserName("");
    project.getLogin().setPassword("");
    Server server = project.createServerSession();
    server.login();
    However, I don't know how to get the project.
    Thanks,
    Vicki

    If you are using a sessions.xml file, you can get your project from your session. Ensure that when you access your session from the SessionManager, that you do not have it login.
    Session session = SessionManager.getManager().getSession("my-session", false);
    session.getProject().setConnector(...);
    session.login();
    If not using a sessions.xml, you can either read your Project from the XMLProjectReader, or instantiate your Project class directly.

  • How to get the transaction_id from the current session of the current trx?

    Hello Gurus,
    How can get the hr_api_transactions.transaction_id from the current session to use it in my SQL script in VO.xml?
    I don't know if I can get the item_type, item_key from the current self service session in iRecruitment? to use it in hr_transactions_ss.get_transaction_id(p_item_type, p_item_key)
    I saw something icx_sec.getID(icx_sec.g_transaction_id)!
    Can I use this in the where clause of the SQL part of my VO extension?
    Thanks for all the help!
    FR

    Hi!
    Try this thread:
    http://help.sap.com/saphelp_nw04s/helpdata/EN/80/b2dd3a6dac703be10000000a11405a/frameset.htm
    brgs Ziggy

  • How to kill particular Oracle Session from the multiple Session of User

    Hi,
    I am working on Web Application using ASP.NET , C# with Oracle. I am excuting queries from multiple connection of same user. I want to kill particular user session. I have tried to Kill session by using ALTER SYSTEM KILL SESSION 'sid,serial#' it is working fine but how can i identify which session is generated by particular connection so that i can kill that particular session.
    Suppose there us user 'abc' there are multple instance of this user and all are active but same USERNAME. So Please tell me how can i identify that session through which i am executing the query.
    Thanks,
    Nitin

    Some ideas for how to pick the right session:
    -Look at the time the session was connected (logon_time)
    -Look at the time the session last started it's most recent statement (last_call_et)
    -Look at the sql that the session is running (join with sql_address and sql_hash_value over to v$sqltext_with_newlines or one of the other views that show you the sql they are running)
    That usually gets me most of the way, if it's possible to distinguish them. ("Yeah I just started this query and I want you to kill it." is different than "I started five different queries at about the same time and I'm not sure which one I need killed.")

  • How do I remove dead shortcuts from the finder favorites menu?

    I just bought a new Macbook Pro with Lion OS to replace my old macbook running snow leopard.  To transfer my old data, I use the migration assistant and time machine backup.  For the most part everything went smoothly.  However, now when I open finder, there is a dead shortcut on the favorites menu.  On my old laptop, it linked to a folder on my bootcamp partition, but I don't have a partion on my new computer.  I am unable to move or delete the shortcut from the list.  It's cluttering up my finder sidebar and I would love to get rid of it. 
    Any suggestions?

    yamkirschenbaum wrote:
    Thanks, but I've tried that.  It works for removing other shortcuts, but not for the shortcut to the bootcamp partition.
    It worked after all ?

  • Firefox 4 opens multiple windows (15-25) when opening and only once in a blue moon will remember the tabs from the previous session in the first of the multiple windows.

    When I open Firefox 4 from either the icon or from a link from e-mail or some other place, multiple windows open up. Usually between 15 and 25 of them. I'm running Windows 7 Ultimate on both my laptop and desktop and have the same issue with both. I tried disabling the plug-ins one by one since they were all up-to-date, to no avail. My laptop has an upgraded version of Windows while my desktop has a clean install. I tried uninstalling Firefox 4 and going back to 3 and then the same thing started happening withe v3 when it wasn't before. Only sometimes, on rare occasions, will the first window that opens have my tabs from the previous session. Most times all the windows have one blank tab. The first one I can tell 'cause it does not have the orange Firefox menu button (since I'd chosen to show the Menu Bar) while the first window shows the menu bar. The troubleshooting info is from my laptop only.

    Unless the schedule it's running on is every single time I open Firefox (including closing it & reopening it right away), I don't think that's the case. Also, I don't have any of these issues on the PC I switched back to v3.6 on. That one runs smoothly whether I run Ccleaner, registry optimizers, clear the cache & history or whatever. I thought after you first gave me the answer of deleting the session files that they must've got corrupted during the upgrade, but it seems that v4 just doesn't do a good job of retaining or maintaining those files without getting them corrupt or something.
    If this is not an issue with everyone & I'm having it on both my PCs, then v4 has an issue with something that I install on my PCs that, I guess, many others don't although I don't know what that could be and I use everything I install or have running. So, I'm just going back to what works without having to dismantle my config one prog at a time to try to find what v4 may be finicky about.
    By the way, I did check & couldn't find any cleaners that run automatically on my PCs.

  • Helllo I cannot activate the setting in the options panel get Firefox to restore the tabs from the previous session. The option is grayed out. What can I do?

    When I start Firefox itt will not restore the tabs I had open during shutdown on the last session. This used to be an option when working on something in order not to have to leave the pc on over night. Now the option under Firefox/Options/General: On Firefox Startup: "Restore the tabs & Windows that were open in the last Firefox session" is grayed out, so that I cannot select it.

    Make sure that you do not run Firefox in permanent Private Browsing mode.
    *https://support.mozilla.com/kb/Private+Browsing
    *You enter Private Browsing mode if you select: Tools > Options > Privacy > History: Firefox will: "Never Remember History"
    *To see all History and Cookie settings, choose: Tools > Options > Privacy, choose the setting <b>Firefox will: Use custom settings for history</b>
    * Deselect: [ ] "Permanent Private Browsing mode"
    There are other things that need your attention.
    Your above posted system details show outdated plugin(s) with known security and stability risks that you should update.
    *Shockwave Flash 10.1 r102
    Update the Flash plugin to the latest version.
    *https://support.mozilla.com/kb/Managing+the+Flash+plugin
    *http://kb.mozillazine.org/Flash
    *http://www.adobe.com/software/flash/about/

  • Playback of a Recording element wont work in the same session in the callstudio app

    Hi,
    Can someone please help me a little quickly with it.
    I have written a Call studio Voicemail application.
    1. CVP is in C$
    2.  Using the "Recording" element, caller listens to the initial greeting and records a message.
    3. I have created the file path as "D:\CISCO\CVP..." in the session data of a SET element. Also created a filename to be "{Data.Session.callid}. "Immediately after recording, i can see the file getting created also with proper file name.
    4. BUT, The problem here is::: Immediately after the recording, the recorded message has to be played back, and then a menu should be provided to the caller to rerecord or to send.
    5. I am not using the "Record with confirm" as I am getting confused with its 4 exit states.
    6. So, I used a Recordelement follwed by a "Audio element". In the audio element, I gave the URI to be "D:\Cisco\CVP...\{Data.Session.FileName}.wav. I clicked away the default audio path.
    7. BUT, It just does not play the recording back.....Can someone tell me WHY and what i am doign wrong?? I tried changing the URI with and without D: and with both forward and backward slash etc.... Can someone please help as my deadline is approaching?

    ok. please read carefully.
    CVP and media server are different component for CVP deployment, but they can be deployed on same physical machine. 
    after enabling IIS service your media-server components starts working, and servs http requests.
    by default the root path of the media-server is c:\inetpub\wweroot.
    so if you try opening any browser and do http://<ip of the media server>
    you will see the default content of root path of the media-server.
    now what ever prompts you use, you can put them into the root of media server to serve them to request.
    e.g you are trying to fetch wav file at http://<media ip>/en-us/app/test.wav
    then you need to create folder en-us under root directory(c:\inetpub\wweroot\).and under en-us create app directory, and under app put your media-files. so it will be something like this c:\inetpub\wweroot\en-us\app\test.wav
    so for http://<media ip>/en-us/app/test.wav to work c:\inetpub\wweroot\en-us\app\test.wav
    should have properly configured. you can check at by putting url in your browser, from where MS is reachable, and see if it serves any file.
    now you can ftp to you recording to this path, and request them.
    CVP automatically places all the media-file under, wwwroot when you choose to deploy media-files also when installing CVP server. just go through them and you will come to know the structure.
    ~please rate if helpful

  • How to clean lint and dirt off the "Inside" of the Smart Cover?

    I have the gray Smart Cover and love it.
    Today I noticed some lint on the Inside of the cover - can I use a lint brush on the inside of the cover to clean it?
    I do not want to damage the soft felt that rests against the screen.
    Thank you.

    I've had this same problem. I have the black leather cover. The first few days it seemed to stay secure. But now it slides around much more and definitely falls open if I hold the iPad upside down.
    Seeing how everyone seems to have eliminated the magnets of both devices as the culprit, I think I know what the problem is. It's the joint flexibility. Fresh and never folded the joints are more stiff, which means it doesn't buckle/pop up easily. After a few days of folding though the joints are much more flexible, causing them to buckle if the cover slides around. Since the magnet hold it in place is at the edge of the cover, if the cover slides a little the magnets are no longer aligned, hence the falling open.
    If I'm right, then sadly this is a design flaw that can't be remedied by replacements.

  • How can I fix Dead pixels on The iPod 4g

    Hi
    I have a Problem. My iPod have on The screen many Dead pixels. How can I fix this because I have My iPod for 2 and a half years so I have no gaurante. Pls help.

    You cannot "fix" dead pixels. All you can do is replace the screen. See:
    If your iPod Touch, iPhone, or iPad is Broken
    Apple does not fix iDevices. Instead, they exchange yours for a refurbished or new replacement depending upon the age of your device and refurbished inventories. On rare occasions when there are no longer refurbished units for your older model, they may replace it with the next newer model.
    You may take your device to an Apple retailer for help or you may call Customer Service and arrange to send your device to Apple:
    Apple Store Customer Service at 1-800-676-2775 or visit online Help for more information.
    To contact product and tech support: Contacting Apple for support and service - this includes international calling numbers.
    iPod Service Support and Costs
    iPhone Service Support and Costs
    iPad Service Support and Costs
    There are third-party firms that do repairs on iDevices, and there are places where you can order parts to DIY if you feel up to the task. Start with Google to search for these.

  • Using FF7; Syncing my data between laptop and desktop; everything syncs fine, but for the tabs. I have no history of the open tabs of the other device, nor can I find an option to let start a session the latest session of the other device

    FF7.0 beta
    sync on laptop and desktop
    no tab history of the other devices
    solution to start session with latest session of synced device?
    win 7 64bit

    Good instinct not to shut down!
    Open your current Firefox settings (AKA Firefox profile) folder using
    Help > Troubleshooting Information > "Show Folder" button
    Copy all sessionstore files (e.g., sessionstore.bak, sessionstore.js) to a safe location (e.g., your Documents folder). Whatever was saved before is in one or both of those files.
    This problem of a window sometimes loading the correct number of tabs but the tabs not being navigated to the corresponding pages has been mentioned before, but I do not recall anyone identifying what causes it or how to solve it. If Firefox saved the URLs of those pages, they will be in one or both of those sessionstore files.
    These threads have suggestions on how to "mine" the old file to extract the URLs:
    * Using Firefox's Browser Console (formerly known as Error Console): https://support.mozilla.org/en-US/questions/969046#answer-471950
    * Using Firefox developer tool "Scratchpad": http://forums.mozillazine.org/viewtopic.php?f=38&t=622036&start=60&p=12098147#p12098147
    * Using a third party website: https://firefox-session-restore.herokuapp.com/
    Can you recover them?

  • The dead pixel appeared the third time!

    I am a fan of APPLE product. I have IPHONE,IPAD,IPAD MINI. Because I trust the quality of apple.
    But things changed since I bought the MBP.
    I bought the MBP on Aug. 2013 and had changed monitor twice.
    Today, a dead pixel appear again, I don't know how can I deal with this? Have to change it again?

    Three repairs in such a short time frame isn't good. It's not normal. Ask for them to give you a new one.

Maybe you are looking for

  • Almost There

    I'm finishing up these two classes for a homework assignment. It's supposed to display a template message and let you fill in some things. The code works PERFECTLY except I get a weird error message at the end. I don't need anyone to finish my homewo

  • Upgrade essbase 9.3.1 to 11.1.2.3 using Migration wizard directly is it possible?

    Hi gurus, Please tell is that possible to migrate 9.3 to 11.1.2.3 using migration wizard ? Thanks in advance...

  • Problem starting adobe photoshop album starter edition 3

    When I start my adobe album starter edition 3 i get an error code c0000005 address 1b816f56. In adobe log file i get this: 261:Initializing Model... 461:The ODBC data source returned the following error: "[Microsoft][ODBC Microsoft Access Driver] The

  • How can I delete all photos and redo transfer

    In a nut shell: Bought a new iMac. Transferred all data over from my old iMac. Must have goofed it up because I ended up with triplicates of every photo in iPhoto. Ran two different photo dulpicate destroying plug-ins. Still left with, literally, tho

  • Install Containers for J2EE on 9iAs release 1

    Hi, Is it possible to install Oracle9iAs Containers for J2EE on Oracle9iAs Release 1? How? Thanks a lot.