Suspend kills my command line?!
Okay... Boot to CLI. Start X. Suspend with X running. Come out of suspend. Exit X. End up back at the console, right?
Wrong. No text, no command prompt, just a blank screen after X exits. Machine responds to ctrl-alt-dlt but doesn't seem to respond to anything else - hard to tell though, what with no output.
What gives?
Gullible Jones wrote:
iphitus wrote:
does the same happen if you just kill X straight away, without the suspend cycle?
What sort of suspend are you using?
suspend to ram, swsusp, uswsusp, suspend2?
How are you suspending? hibernate-scripts? other scripts? own script?
what graphics hardware?
is this a new problem? and if so, what version of the kernel? Or is it the first time you've tried?
framebuffer or normal console?
cmon man, you've been here for ages, you know the drill. Give us as much details as you can, and we can help, otherwise, we're just guessing and wasting both of our time.
James
Suspend to RAM, with powersave (only one really compatible with Gnome). Intel i945 graphics, kernel26 stock (latest version), normal console. Been this way since I got suspend working properly (had to add acpi_sleep=s3_mode to menu.lst entry, otherwise monitor didn't come back on).
and does it happen if you leave X (before suspending)?
try adding Option "VBERestore" "on" to the device section for your graphics, that fixed some problems with suspend on my i845 laptop. Other things worth messing with might be vbetool.
can you ssh in and see if there's anything interesting in dmesg?
is the screen blanked? or turned off? (can you see the backlight still running?)
James
Similar Messages
-
Why can't I kill db_stat at the command line?
Hi,
I have been running the db_stat utility on a couple of mid-size databases, however I do not seem to be able to kill the process with ctl+c, and was wondering why this is should be the case? For some reason this command, and the $ kill PID command seem to have no effect. I am running fedora core 4.hello,
ctrl-c would not stop db_stat, but kill -9 <pid> should work.
You can always try a truss or the equivalent on your system
to check what is going on.
One thing to note is that recovery needs to be performed after
killing a process holding Berkeley DB locks. This is discussed at:
http://www.oracle.com/technology/documentation/berkeleydb/db/ref/program/appsignals.html
thanks,
Sandra -
Launching Rescue & Recovery from a Command Line
Question - I would like to know how I can launch Rescue & Recovery from a command line.
Issue that is prompting the question - My laptop was sitting in my computer bag overnight. The battery was fully charged. I BELIEVE that it was in suspend mode at the time. When I opened it in the morning, there was a message on the screen saying that a backup had not completed successfully. I then noticed that the battery had run down completely.
My Plan - I would like to launch Rescue & Recovery (as well as the Defrag utility) from Windows Task Scheduler. If I do, then all schedule tasks will be launched and controlled using the same process. Windows Task Scheduler also provides two key scheduling criteria that the IBM Rescue & Recoverry or the IBM Maintenance Manager utilities do not provide -
#1 - Run this task only when the PC is on AC power.
#2 - Run this task ony when the computer is idle (so that it doesn't slow down the PC if I happen to be working on it)
Background Concerns -
- Having a backup job automatically start when the computer is in my computer bag will run down my battery when I least expect it.
- The PC may could also be damaged due to overheating, since the sides of the computer bag block the ventilation holes.
Additional Info
- If I go to the ThinkVantage Productivity Center and select the Quick Link for "Backup Now" this will indeed launch a backup on demand. I assume that selecting this option is calling a specific executable file.
- However, the only two applicable executable files that I see in the C:\Program Files\Lenovo\Rescue and Recovery directory are "mr_gui.exe" and "wizrr.exe". Both of these files launch an interface that requires the user to make a selection. As a result, it doesn't look as if either of these files would work for unattended operation, unless there is some sort of switch that I can put in that will automatically start the backup process.
- I called the support line (only once so far), but that particular rep did not know of any way to launch Rescue & Recovery other than from the standard R&R user interfaces.
Any help is greatly appreciated,
MathewThe correct way to invoke a JSP is to make a request to the Server.
Normally you would use your browser to do this.
On a unix system, you can use the wget command to invoke a url without using a browser. -
Using Unix Command Line to force logoff of other users
Hello - I am the administrator for my family's Mac (OS X - 10.4.8). Four of us in the family share the system. Frequently, my family members forget to logoff. I would like to be able to force them off via the Unix command line. Can't I sign on as root and execute a "forced logoff" type of command?
Thanks to Mihalis and Jarik for the additional info.
I'm back now with a question. I have a user named "visitor" logged on. I issued a killall command which killed all the users processes except one. Using /Applications/Activity Monitor.app, I can see the process is "loginwindow" and it is owned by visitor.
However,
ps -u visitor
reveals no running processes. Assuming I only had command-line access (no GUI to use Activity Monitor.app) and had multiple users logged in, how can I discover which loginwindow PID belongs to visitor?
msq
EDIT: I went ahead and sudo kill PID the loginwindow process owned by visitor and realized that
ps -axj | grep visitor
worked to reveal the loginwindow process owned by visitor. But when I logged visitor in (Fast User Switching) and ran sudo killall the Activity Monitor.app identifies the loginwindow as being owned by root but ps -axj | grep visitor shows the process belonging to visitor.
Something weird in the depths of Leopard's UNIX land, but I think I can find my way around now.
Thanks, everyone.
Message was edited by: mistersquid -
Hana db filesystem directory structure and process command line
Hi experts,
Could someone provide please actual directory structure of Hana db filesystem?
Generally speaking, I need to model some Hana db(of 1.0, 1.5 versions) entities. Among them:
Schemas
Data files
Log files
Important configuration files
Database parameters(guess found in config files and command line)
Database version
The question is where i can find such information having access to filesystem?
One another question is how common Hana db commandline looks like?
Does it have one process or several?
It would be perfect if someone give some ps -aef command result grepped with relevant Hana Db processes
Thanks,
Eugene
Edited by: Eugene Kondrashev on Dec 28, 2011 12:51 PMEugene Kondrashev wrote:
> * What are the processes relevant to Hana Db?
This is still changing pretty much ...
Anyhow, just check the running services in HANA studio (landscape tab) and you have all the process at hand.
> * What is the signature of starting command?
What is that supposed to mean?
> * How can I identify running Hana Db instance on a host having shell access?
How about the HDB command?
SUSE Linux Enterprise Server 11 (x86_64)
/usr/sap/HAN/HDB00> HDB help
Usage: /usr/sap/HAN/HDB00/HDB { start|stop|reconf|restart|version|info|proc|admin|kill|kill-<sig>|term }
kill or kill-9 should never be used in productive environment!
/usr/sap/HAN/HDB00> HDB info
USER PID PPID %CPU VSZ RSS COMMAND
hanadm 14682 14677 0.0 85580 2180 sshd: hanadm@pts/0
hanadm 14683 14682 3.3 16768 2980 \_ -bash
hanadm 14756 14683 18.1 13652 1680 \_ /bin/sh /usr/sap/HAN/HDB00/HDB info
hanadm 14782 14756 0.0 6620 892 \_ ps fx -U hanadm -o user,pid,ppid,pcpu,vsz,rss,args
hanadm 31638 1 0.0 42624 1820 sapstart pf=/usr/sap/HAN/SYS/profile/HAN_HDB00_vml3012
hanadm 31645 31638 0.0 528216 151400 \_ /usr/sap/HAN/HDB00/vml3012/trace/HDB.sapHAN_HDB00 -d -nw -f /usr/sap/HAN/HDB00/vml3012/daemon.ini pf=/usr/sap/HAN/SYS/profi
hanadm 31665 31645 0.5 5001972 1002844 \_ hdbnameserver
hanadm 31723 31645 0.0 4367024 244336 \_ hdbpreprocessor
hanadm 31744 31645 1.9 5664496 1779448 \_ hdbindexserver
hanadm 31752 31645 3.6 7197924 3359440 \_ hdbstatisticsserver
hanadm 31759 31645 0.6 5289164 1507684 \_ hdbxsengine
hanadm 32017 31645 0.0 429188 124344 \_ sapwebdisp_hdb pf=/usr/sap/HAN/HDB00/vml3012/wdisp/sapwebdisp.pfl -f /usr/sap/HAN/HDB00/vml3012/trace/dev_webdisp
hanadm 31527 1 0.0 292676 110380 /usr/sap/HAN/HDB00/exe/sapstartsrv pf=/usr/sap/HAN/SYS/profile/HAN_HDB00_vml3012 -D
> * Does Hana DB started with SAP start profile? If so, could someone point me to the example of such a profile?
?? seriously... take a guess
regards,
Lars -
Restart/start/stop network from command line
Hi all...
How do I restart/start or stop my network from command line? I red somewhere about using netstart, but I guess the article was refering to OpenBSD and not OS X...
So.. any hints?
Thanks.Hey You are right there...
OKK..To my knowledge, you can start an application, from the servlet in a thread. But stopping a thread from outside is not safe and even sun doesn't advice.
1. Starting a thread : you can start your program using an Runtime class. But your client program can see if the server port is open or not. So after starting the server program, through servlet, execute the client program. OR you can log every command/step in to a log file, and start the server program and see the log, where currently the program is waiting, so you can check, if the server program has exited.
2. Stoping an application i.e a thread is a tricky thing. One i would suggest is, send data to the server socket with your pass code and the command "Shutdown" with a sequence which will not repeat in the data communication. If the first command is your passcode and "Shutdown" you can kill the server thread from inside the server application. To make this possible, every thing the new connection is accepted, you have to validate the first line is this your command to shutdown.
and repeat the step 1.
Hope this gives you a little idea to proceed. if not let me know...
Cheers
Venkat -
Command line control of AppleVNC or ARD?
I have a headless G3 running that is running the AppleVNC server and I want to shut it off via ssh. I've misplaced the password and I want to use OSXvnc instead. The problem is it seems that AppleVNC is supervised somehow, so whenever I try to kill it it just starts back up again as a new process; a great feature when you want it, but a pain when you don't.I also have a firewall up so I can't start OSXvnc on port 5901 because that port is blocked (I should learn how to unblock this firewall port on the commandline, but I don't yet and it's a bit off-topic...).
Can someone tell me if there are command-line controls to 1) take down the AppleVNC server or 2) change the password? (subquestion, anyone know a good link to learn about OSX firewalls and the command-line?) I read the documentation and I found networksetup and systemsetup but it appears that these are only for Mac OSX Server and I am just running 10.4 End User.
Nate Murray http://www.natemurray.comIf you want to learn about the command line, basically you will be learning UNIX. Apple's version is called Darwin, which is their flavor of FreeBSD.
Here's Apple's site:
http://developer.apple.com/documentation/Darwin/index.html
As far as killing the AppleVNC server, you could find the process in
Utilities>Activity Monitor and kill it there. If it comes back up, then I think
AM allows you to see parent processes. If it is starting up after a kill, that means something else is watching it and restarting it, then also kill that parent process (watcher process)
Or, from the command line you could use ps to find the name of the
process and I think execute kill -9 <process id number> -
Controlling Application Layer Firewall from Command Line Not Working
We are trying to manage the OS X Application Layer Firewall for Mountain Lion from the command-line. We have several hundred Macs that we need to manage and it isn't possible to have someone log in to each one to modify settings. We have used socketfilterfw in the past, and can still use it to add items but we can't seem to manage it at all. We are also having issues trying to remove certain items although it appears we can still add items.
When we try to block or unblock the feedback we get is that the item has been configured however when we do a list the item attributes haven't changed.
When we try to verify if the item has been signed we get an error Killed: 9
When we try to sign an item we get the same error, Killed: 9
With one item specifically, when we try to remove it we get a Segmentation Fault 11 although we can add that same item just fine.
It should be noted that doing all of this through the GUI works fine.
Does anyone have any ideas on how to manage the firewall from te command-line that works? Has socketfilterfw been depricated and replaced by something else? Is this just a bug? I am placing the same information in a bugreport but just wanted to check with the coIt's a known issue that apparently hasn't been fixed. Not a high priority for Apple Engineering, it seems.
-
Mac OS X start up in a command line unexpectedly
Please this is really urgent.
My mom will kill me when she finds out that I must have done something wrong to her Powerbook!
I restarted the computer after trying to play a movie file, nothing special, just an .avi file with VLC player. Then I restarted the computer, because the system preferences was always giving an error when I tried to get the speakers from the other computer (a G4 Cube) to work.
So I restart and .... wham! I get the usual login screen with my mom's name and her picture, which I can click on if I'm quick, but nothing happens anyway, and all of a sudden I get a Darwin (or something) screen in command line (like when a Windows computer starts up). The screen does something with an IP firewall and then I get the text "Logon:"...
I can type the username and password fine, I can 'log on' but then what? I can't see my good old aqua interface anymore? I can't load OS X? I just want everything back to normal! Please help me, all my mom's work is on this computer!!
Thanks alot!O.K I read around in some other topics and this topic describes my problem well: http://discussions.apple.com/thread.jspa?threadID=320663&tstart=30
Only difference is I think I can log in with my username and password.
These are the system.log readouts - forgive me for some spelling errors, I was writing really fast:
localhost syslogd: /dev/console: Input/output error
localhost init: kernel security level changed from 0 to 1
localhost Directoryservice[195]: Launched version 1.8.4 (v258.2)
localhost loginwindow[191]: Sent Launch Request Message to DirectoryService macht_init port
localhost loginwindow[191]: Login authorization failed (-60008)!
localhost loginwindow[191]: AuthorizationRef doesn't have a username (<LoginAuthRefMgr: 0x448ba0>)
localhost loginwindow[191]: exiting to console
Hope this can help solve my problem?
Thanks. -
Command line questions....
I really have two questions here.
First, I have a small server that is very similar to this one I pulled off a tutorial:
public class MyServer{
// A bare-bones example: exception handling omitted.
public static void main( String args[] ){
ServerSocket serv;
serv = new ServerSocket( 5150 );
while ( true ) {
Socket s;
s = serv.accept(); // Wait for a connection
handle_connection( s ); // Got one, now do something!
s.close();
} When I run this program from the command line it goes into an infinite loop readily accepting connections.
For the most part, this is what I want. But how do I gracefully exit the program? Simply closing the command window seems drastic, not to mention the list of exceptions it throws.
Second question: Once I run my program, is there a way I can close the command line window and log off the computer without killing my program?
thanks.
(Running on NT)How do you stop the program? You write another program that connects to the same socket and sends a message that both programs agree means "Shutdown". When the server receives this message, it shuts down nicely.
Now you want to run it as an NT service? I've seen people post links to a third-party package that can run a Java class as an NT service; I didn't note the link but you could probably find it by searching the forums. -
Starting and stopping X + booting into command line rather than GUI
After installing Arch and struggling a bit to get the gui environment (gnome) to work I am now in a situation where the distro works fine but boots directly into a gnome session.
I would like to be able to stop X and I have tried various recommended commands. The only one that works seems to be "kill -15 X" (after doing Ctrl+Alt+F2), which ends X but sort of stops mid-process without ever going back to any command line prompt.
I copied etc/skel/.xinitrc into my home folder and uncommented "exec xterm", while re-commented "exec gnome-session". This did not make any difference at all so perhaps I'm not even using that script?
As I had some difficulties installing X (or rather get it to work) I may have installed a whole plethora of packages that I may not need. There are references to Wayland for instance, packages I installed. But am I actually using them? How can I find out?
I would like Arch to boot into a command line environment and then I'd start X from there - if that is what I want!
Any pointers in any direction regarding the above are welcome!
Cheers!What guide did you follow to install? The beginner's guide and the Xorg page contain the relevant information. Following just them should have allowed you avoid the mess you're in. Just saying that you've installed a whole plethora of packages will not help...it makes it near impossible to help.
You ought to read this. It sounds like you installed a display manager and set up auto-login?
Last edited by nullified (2015-02-20 17:26:59) -
Acrobat Reader command line problem
In windows xp professional I'm programatically creating a batch file and executing it (shell command in visual basic) to convert pdf files to Microsoft xps.
The batch command looks like this one:
"C:\Program Files\Adobe\Reader 10.0\Reader\AcroRd32.exe" /t "D:\MyDir\Microsoft XPS Document\x.pdf" "Microsoft XPS Document Writer" /t "D:\MyDir\Microsoft XPS Document\x.xps".
When the user logged in on the machine is an administrator, acrobat reader does the operation silently. When a normal user (not belonging to administrators group) is logged in on the machine, acrobat reader opens the save as dialog window requiring user interaction.
The normal user has full control over the destination directory. I already tested giving the normal user full control over AcroRd32.exe and over cmd.exe with no success. I also tried in visual basic 2008 executing the command through System.Diagnostics.Process.Start with the exact same curious results.
Can someone help.
Thank you.Hi.
I couldn't find a solution within Adobe for the problem I reported Oct 9, 2012, so I went to a fallback solution aimed to complete the needed stages. I'm posting here the visual basic 2008 code I wrote then. It is not a graceful solution and has some coarse code but was designed as part of an application that must keep processing files without user intervention. The procedure "followAcroRd32PDFtoXPS" must be called after the execution of a batch command like the described in the previous post:
Module fallback
Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Integer
Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" (ByVal hwndParent As Integer, ByVal hwndChildAfter As Integer, ByVal lpszClass As String, ByVal lpszWindow As String) As Integer
Declare Function GetDlgCtrlID Lib "user32" (ByVal hDlg As Integer) As Integer
Declare Function SendDlgItemMessage Lib "user32" Alias "SendDlgItemMessageA" (ByVal hDlg As Integer, ByVal nIDDlgItem As Integer, ByVal Msg As Integer, ByVal wParam As Integer, ByVal lParam As String) As Integer
Declare Function PostMessage Lib "user32" Alias "PostMessageA" (ByVal hwnd As Integer, ByVal wMsg As Integer, ByVal wParam As Integer, ByVal lParam As Integer) As Integer
Const WM_SETTEXT = &HC
Const BM_CLICK = &HF5
Function FileInUse(ByVal filepath As String) As Boolean
Dim f001 As Integer
If System.IO.File.Exists(filepath) Then
Try
f001 = FreeFile()
FileOpen(f001, filepath, OpenMode.Binary, OpenAccess.ReadWrite, OpenShare.LockReadWrite)
FileClose(f001)
Catch
Return True
End Try
End If
End Function
'outpfile <-- path to the XPS Document to be created
'starttime <-- system date and time when the batch command line was executed
Sub followAcroRd32PDFtoXPS(ByVal outpfile As String, ByVal starttime As System.DateTime)
Dim p As System.Diagnostics.Process, q As System.Diagnostics.Process, proc() As System.Diagnostics.Process
Dim i As Integer, j As Integer
Dim l As Long, memusage() As Long
Dim t000 As System.DateTime
Dim t999 As System.DateTime
Dim hwnd As Integer, lObjhWndTB As Integer, lObjhWndBu As Integer
Dim nIDDlgItem As Integer
Dim resu As Integer
dim maximumacrobatwaittime = 60 'seconds
dim memoryusageinactivity = 12 'seconds
dim acrord32pdftoxpstimelimit = 12 'seconds
'Identify necessary Adobe Reader process
t000 = DateTime.Now
Do
System.Threading.Thread.Sleep(1000)
i = 0
For Each p In System.Diagnostics.Process.GetProcesses
If LCase(p.ProcessName) = LCase("AcroRd32") Then
If Not p.StartTime < starttime Then
ReDim Preserve proc(i)
proc(i) = p
i = i + 1
End If
End If
Next
If i > 0 Then Exit Do
t999 = DateTime.Now
If DateDiff(DateInterval.Second, t000, t999) > maximumacrobatwaittime Then
Exit Sub
End If
Loop
'Identify necessary window
t000 = DateTime.Now
Do
System.Threading.Thread.Sleep(1000)
hwnd = FindWindow(vbNullString, "Save the file as")
If hwnd <> 0 Then
Exit Do
End If
t999 = DateTime.Now
If DateDiff(DateInterval.Second, t000, t999) > maximumacrobatwaittime Then
Exit Sub
End If
Loop
'Send click message to button save
t000 = DateTime.Now
Do
System.Threading.Thread.Sleep(1000)
lObjhWndTB = FindWindowEx(hwnd, 0, "ComboBoxEx32", "")
If Not lObjhWndTB = 0 Then
nIDDlgItem = GetDlgCtrlID(lObjhWndTB)
resu = SendDlgItemMessage(hwnd, nIDDlgItem, WM_SETTEXT, 0, outpfile)
If resu > 0 Then
lObjhWndBu = FindWindowEx(hwnd, 0, "Button", "&Save")
If Not lObjhWndBu = 0 Then
resu = PostMessage(lObjhWndBu, BM_CLICK, 0, 0)
If Not resu = 0 Then
Exit Do
End If
End If
End If
End If
t999 = DateTime.Now
If DateDiff(DateInterval.Second, t000, t999) > maximumacrobatwaittime Then
Exit Sub
End If
Loop
'Adobe Reader eventually will enter inactivity after printing to XPS Document
ReDim memusage(0)
Do
System.Threading.Thread.Sleep(1000)
ReDim Preserve memusage(UBound(memusage) + 1)
For Each p In proc
p.Refresh()
memusage(UBound(memusage)) = memusage(UBound(memusage)) + p.WorkingSet64
Next
If Not UBound(memusage) < memoryusageinactivity Then
j = 0
l = memusage(UBound(memusage))
For i = UBound(memusage) - 1 To UBound(memusage) - memoryusageinactivity + 1 Step -1
If l = memusage(i) Then j = j + 1
Next
Select Case j
Case memoryusageinactivity - 1
Exit Do
Case Else
End Select
End If
Loop
'Wait for the new XPS Document
t000 = DateTime.Now
Do
System.Threading.Thread.Sleep(1000)
Select Case My.Computer.FileSystem.FileExists(outpfile)
Case True
If Not FileInUse(outpfile) Then Exit Do
Case Else
End Select
t999 = DateTime.Now
If DateDiff(DateInterval.Second, t000, t999) > acrord32pdftoxpstimelimit Then
Exit Do
End If
Loop
'Kill Adobe Reader process
For Each p In proc
p.Refresh()
Try
p.Kill()
Catch ex As Exception
End Try
Next
'Kill eventual MS Windows error reporting system process
For Each p In System.Diagnostics.Process.GetProcesses
If LCase(p.ProcessName) = LCase("WerFault") Then
If LCase(p.MainWindowTitle) = LCase("Print driver host for 32bit applications") Then
For Each q In System.Diagnostics.Process.GetProcesses
If LCase(q.ProcessName) = LCase("splwow64") Then
Try
q.Kill()
Catch ex As Exception
End Try
End If
Next
Try
p.Kill()
Catch ex As Exception
End Try
End If
End If
Next
End Sub
End Module -
Hi,
This is my first time working with reports. I can't seem to run my report from the command line. I have reports 25 installed.
I can run r25runm, motif, and it prints to printer or to screen fine.
But when I used r25run, no motif, I can't get it to run. I just pops up a character mode interface prompting me for userid and such, even though I had them in the command line.
Also, I can't get out of the character interface except by killing the session completely.
Thanks for any help,
-BobForgot to mention I'm running against an old legacy database, 7.3.3.
Thanks -
Dumb question- how do I get to the command line without X running?
Hi,
As per the title please... I need to rerun Xorg -configure, but cannot for the life of me figure out how to shut down X and get to a command line
ThanksBes wrote:
Ctl alt and backspace just takes me out to the login screen.. from there I can't get to the terminal without X running.
Ctrl Alt F5 gets me to the command line, but I can't kill the X server
Thanks though
so with ctrl+alt+f5 you're at the console
log in if you need to, then
ps ax | grep gdm
4441 ? Ss 0:00 /usr/sbin/gdm-binary
4442 ? S 0:00 /usr/sbin/gdm-binary
4444 tty7 SLs+ 3:38 /usr/bin/Xorg :0 -audit 0 -auth /var/lib/gdm/:0.Xauth
6633 pts/0 S+ 0:00 grep gdm
kill 4444
the above example assumes gdm is your login manager so substitute whatever you're using, and you can kill the other instances of gdm (in my example processes 4441 and 4442 but don't waste your time on the grep process 6633
now redo your X config
(actually you could run this from a terminal from within X and it should have the same effect of dropping you back to console
Last edited by tj (2008-04-20 09:36:15) -
How do I cancel a rman job from command line?
Hello to all,
I am having some problems with a rman job that is running via OEM-GC. I get an error message regading the SPFILE and control file being locked due to another job accessing it. I found this in the RMAN ref guide:
To determine which job is holding the conflicting enqueue:
1. After you see the first RMAN-08512: waiting for snapshot controlfile enqueue message, start a new SQL*Plus session on the target database:
% sqlplus sys/sys_pwd@prod1
2. Execute the following query to determine which job is causing the wait:
SELECT s.sid, username AS "User", program, module, action, logon_time "Logon", l.*
FROM v$session s, v$enqueue_lock l
WHERE l.sid = s.sid and l.type = 'CF' AND l.id1 = 0 and l.id2 = 2;
You should see output similar to the following (the output in this example has been truncated):
SID User Program Module Action Logon
9 SYS rman@h13 (TNS V1-V3) backup full datafile: c1 0000210 STARTED 21-JUN-99
Solution
After you have determined which job is creating the enqueue, you can do one of the following:
* Wait until the job creating the enqueue completes
* Cancel the current job and restart it once the job creating the enqueue completes
* Cancel the job creating the enqueue
So with this in mind; How do I cancel the job from RMAN command line!!!
This is my output by the way:
SID User PROGRAM MODULE ACTION Logon ADDR KADDR SID TY ID1 ID2 LMODE REQUEST CTIME BLOCK
475 SYS [email protected] (TNS V1-V3) backup full datafile 0000018 STARTED16 23-APR-09 00000023EB8D488 000000023EB8D4A8
475 CF 0 2 4 0 113123 0
Any help will be gratefully received
Thanks to all that replyI used the following to get the spid and killed the process on the OS.
set linesize 120
col sid for 999
col username for a14 trunc
col osuser for a18 trunc
col spid for 99990
col logon_time for a12
col status for a9 trunc
col machine for a26 trunc
col running for a10 trunc
select s.sid
, s.username
, s.osuser
, s.machine
, s.status
, p.spid spid
, to_char( logon_time, 'Mon dd@hh24:mi') logon_time
, rtrim (s.module)||decode( nvl(length( rtrim(s.module)),0),0,'',' ')|| upper(s.program) running
from v$session s
, v$process p
where ( p.addr = s.paddr ) and s.type!='BACKGROUND'
and upper(s.program) not like '%CJQ0%' and s.program is not null and s.username is not null
order by s.sid;
Maybe you are looking for
-
I can't start apache since upgrading to Mountain Lion
Why Apple remove the web sharing feature I'll never understand. I have tried everything I've found on the web to get apache started but nothing seems to work. Apache started for a brief period of time but now it won't start at all. sudo apachectl sta
-
Logic Pro X In, Most Other Functions Out
Anyone else have this problem? Since installing Logoc Pro X onto my MacBook Pro (purchased March 2013, 2.3 GHz Intel Core i7, 8 GB, OS 10.8.4) I've lost use of my Epson printer, Toast Titanium, and my internal disc drive. Suggestions?
-
"Apple ID has been Disabled" message
Hello, Can someone please tell me how to fix my IPad ? For some reason when I try to update my apps on it I keep getting a message that my Apple ID has been disabled. But, I can sign into the Apple website using my ID. Why does the IPad think it is d
-
HOW TO READ MULTIPLE FILES FROM DIRECTORY
i have a directory with 100 .sql insert scripts.i want to read all .sql files from directory and execute the insert script automatically.
-
Can I replace the internal harddrive in my Macbook Air 2011 A1369 with a larger drive?
I love my macbook Air 2011, A1369. I need a larger harddrive. Is it possible to replace the internal drive with a larger model? Thank you.