Start/stop trace between removing trace files
Hi,
I have the following problem.
I put some Oracle session on trace (I use sys.dbms_support.start_trace_in_session). Then I make some test. I close the trace (I use sys.dbms_support.stop_trace_in_session). I analyze the trace files (tkprof) and I make some tuning.
Then I'd like to remove the trace files (*.trc) and start the trace again for checking if the tuning was efficient.
It seems not possible. Event if I start the trace again I can't see and trc files.
In order to solve the problem I must to bounce the application I want to trace (so that the Oracle sessions start again).
Any hint?
Thanks, Max
In that case, you will need to parse the trace file to identify the start and stop of the trace. Below is an example from a 10gR2 trace. Notice the line starting with the *** that contains the date. It comes between the stop of the trace and the start of another trace. You cannot use this line alone to signify the start of a trace as similar lines are emitted in the trace file when there are long delays between writes to the file.
=====================
PARSING IN CURSOR #2 len=55 dep=0 uid=0 oct=42 lid=0 tim=330900979 hv=2217940283 ad='2fdd5ef8'
alter session set events '10046 trace name context off'
END OF STMT
PARSE #2:c=0,e=52,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=1,tim=330900976
BINDS #2:
EXEC #2:c=0,e=85,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=1,tim=330901247
*** 2007-02-20 11:55:55.026
=====================
PARSING IN CURSOR #4 len=69 dep=0 uid=0 oct=42 lid=0 tim=386816222 hv=3164292706 ad='2fdd6980'
alter session set events '10046 trace name context forever, level 12'
END OF STMT
EXEC #4:c=0,e=60,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=1,tim=386816218
WAIT #4: nam='SQL*Net message to client' ela= 2 driver id=1111838976 #bytes=1 p3=0 obj#=258 tim=386816593
WAIT #4: nam='SQL*Net message from client' ela= 105 driver id=1111838976 #bytes=1 p3=0 obj#=258 tim=386816748
=====================
Similar Messages
-
Starting/Stopping 9iAS Infrastructures with batch files
I created the following two batch files to start and stop my iAS Infrastructure. I found that if I used the services settings of automatic, all did not go well.
start.bat:
@ECHO OFF
cls
ECHO About to start the listener
net start Oracle9ias_InfraTNSListener
ECHO About to start the database
net start OracleServiceIASDB
ECHO About to start the OID monitor
e:\ora9iasinfra\bin\oidmon start
ECHO About to start the OID server
e:\ora9iasinfra\bin\oidctl server=oidldapd configset=0 instance=1 start
ECHO About to start the website
net start Oracle9ias_infraEMWebsite
ECHO About to start opmn and OC4j
e:\ora9iasinfra\dcm\bin\dcmctl start -ct ohs
e:\ora9iasinfra\dcm\bin\dcmctl start -co OC4J_DAS
stop.bat:
@echo off
cls
ECHO About to stop the website
net stop Oracle9ias_infraEMWebsite
ECHO About to stop opmn and OC4j
e:\ora9iasinfra\dcm\bin\dcmctl shutdown
ECHO About to stop the OID server
e:\ora9iasinfra\bin\oidctl server=oidldapd configset=0 instance=1 stop
ECHO About to stop the OID monitor
e:\ora9iasinfra\bin\oidmon stop
ECHO About to stop the database
net stop OracleServiceIASDB
ECHO About to stop the listener
net stop Oracle9ias_InfraTNSListener
When I execute the batch files sometimes they work and sometimes they don't, for example after starting, occasionally the Apache process has not been created, and sometimes processes won't stop.
However if I enter each command seperatly all works OK. Can anyone suggest a reason for this, maybe ordering is significant or a time delay may be required between certain actions?. Also after starting the website manager the process managers for both the infra and ias instances are started (I have installed both the iAS and the Infrastucture on the same machine - this all works fine when started as a series of individual commands but not when through batch files).
Also If I try to use:
SQLPLUS /NOLOG
SQL>CONNECT sys/password@iasdb as sysdba
SQL>Start
I also get an 'unable to create a dedicated server' error. I can start/stop the database through the enterprise manager in either standalone or management server configuration without any errors. Can anyone shed any light on this?. I have set both TNS_ADMIN and ORACLE_SID correctly.
Terry BennettThanks, I had read that and it was very informative. I did however solve my problem using a few other threads that have been posted about the runtime.runtime().exec commands. Thanks for you help.
-
Batch / script file to start /stop sap server
Hi,
I would like to start/stop SAP server using batch file (in windows). I need this, whenever we have to shutdown the server and restart of the server, so that SAP will automatically shutdown and restart using batch files while server restart cases? If anyone knows, please let me know. Thanks,
Regards,
Sundar.target of the 700 sapstartsrv improvement was to deliver identical functionality on all SAP platforms. As the DCOM programing model is only available on Windows platforms sapstartsrv.exe was enhanced by the WEB-Service interface and is available now on Unix too.
The DCOM SAPControl interface of sapstartsrv.exe is still existing, but only on Windows. Here you can use VB Script or any other programming language able to handle DCOM objects to write your own programs / scripts to interact with the SAPControl.
sapcontrol.exe is a command line program available since 700 which enables you control over nearly all functions of the sapstart service.
Even it has the same name as the DCOM interface it' something completly different.
regards
Peter
PS: sapcontrol syntax
usage: sapcontrol [
-prot GSOAP_HTTP| http using gsoap build in sockets (default)
NI_HTTP| http using SAP NI sockets (prefer Unix domain sockets)
NI_HTTPS| https using SAP NI sockets (prefer Unix domain sockets)
WINHTTP| http using Windows winhttp
WINHTTPS| https using Windows winhttp
PIPE Windows named pipes
[-user <user> <password>] OS user and password for Webservice authentication
[-repeat <N> <D>] Repeat Webmethod call <N> times (-1=forever) with <D> sec delay
-format list| List output format (default)
script Script output format
[-host <hostname>] Host to connect to (default: localhost)
-nr <instance nr.> SAP Instance number to connect to
-function <Webmethod> [parameter list]
Webmethods: Start
Stop [softtimeout sec]
Shutdown
RestartInstance [softtimeout sec]
StopService
StartService <SID>
RestartService
ParameterValue [<parameter>]
GetStartProfile
GetTraceFile
GetAlertTree
GetAlerts
GetEnvironment
GetVersionInfo
GetQueueStatistic
GetProcessList
GetInstanceProperties
ListDeveloperTraces
ReadDeveloperTrace <filename> <filesize>
ListLogFiles
ReadLogFile <filename> [<filter> [<language> [<maxentries> [<cookie>]]]]
AnalyseLogFiles [<severity 0-2>] [<maxentries>] [<starttime YYYY MM DD HH:MM:SS> <endtime YYYY MM DD HH:MM:S
S>]
OSExecute <command> <async> <timeout> <protocolfile>
SendSignal <pid> <signal>
GetSystemInstanceList
StartSystem [ALL|SCS|DIALOG|ABAP|J2EE|LEVEL <level> [<waittimeout sec>]]
StopSystem [ALL|SCS|DIALOG|ABAP|J2EE|LEVEL <level> [[<waittimeout sec>] [softtimeout sec]]]
RestartSystem [ALL|SCS|DIALOG|ABAP|J2EE|LEVEL <level> [[<waittimeout sec>] [softtimeout sec]]]
AccessCheck <function>
ABAPReadSyslog
ABAPReadRawSyslog
ABAPGetWPTable
J2EEControlProcess <processname> <function>
J2EEGetProcessList
J2EEGetThreadList
J2EEGetSessionList
J2EEGetCacheStatistic
J2EEGetApplicationAliasList
J2EEGetVMGCHistory
J2EEGetVMHeapInfo
StartWait <timeout sec> <delay sec>
StopWait <timeout sec> <delay sec>
WaitforStarted <timeout sec> <delay sec>
WaitforStopped <timeout sec> <delay sec>
Exitcode: 0: Last Webmethod call successfull
1: Last Webmethod call failed, invalid parameter
2: StartWait, StopWait, WaitforStarted, WaitforStopped timed out
3: GetProcessList succeeded, all processes running correctly
4: GetProcessList succeeded, all processes stopped
Security: Trusted connects without user and password check are possible through
Unix domain socket or Windows named pipes. Protected webmethods like
Start or Stop require a trusted connection or OS user and password
authentication. -
Adjusting songs to start a certain point (removing fade ins and outs)
I purchased some white noise recordings but they have a fade in and fade out. I was told there is a way to have iTunes start and stop the "song" a point I choose. So that I can remove the fade in and have seamless white noise. How do I do this? I can't seem to find it by just clicking around in iTunes.
Thanks!
JennSelect the song file.
Right click - get info.
Select the Option tab.
Set the Start and Stop points.
You can menu Advanced -> Convert selection to, to add a new copy of the file with these points as the actual start/stop times, leaviong the original file untouched. -
Start/stop/restart live stream - do stream files need to be removed first?
When streaming a live event if something happens and we need to stop our encoder and then restart it again.
Do we need to delete the stream files created in the 'application/event/' directory and also delete the f4f stream,bootstrap, etc... files too?
If we don't delete the stream files before restarting the live stream. It will only play about 10 seconds of the stream then just hang buffering.
What is causing this?
My application log shows no access when I restarted the stream.
2013-09-04
09:02:21
3960
(s)2641173
onPublish : cfhsstream4
2013-09-04
09:02:21
3960
(s)2641173
Stream name is: cfhsstream4 and live event is: cfhs
2013-09-04
09:02:21
3960
(i)2611173
Event level recording configuration: General[flags: 3, keyframe interval: 60000, max size: -1, max length: -1, io buffer size: 0], Fragment[frag duration: 4000, seg duration: 0, duration precision: 0, allowed drift: 1000, frame rate: 0.000000, frames per interval: 0, intervals per frag: 1, frame precision: 1, disk management duration: 0.000000], ContentProtection[enabled=false(overridable)]
2013-09-04
09:02:21
3960
(s)2641173
f4f:cfhsstream4 - NetStream.Publish.Start
2013-09-04
09:02:21
3960
(s)2641173
f4f:cfhsstream4 - NetStream.Play.Reset
2013-09-04
09:02:21
3960
(s)2641173
f4f:cfhsstream4 - NetStream.Data.Start
2013-09-04
09:02:22
3960
(s)2641173
f4f:cfhsstream4 - NetStream.Record.Start
2013-09-04
09:02:23
3960
(s)2641173
f4f:cfhsstream4 - NetStream.Record.NoAccess
2013-09-04
09:02:23
3960
(s)2641173
f4f:cfhsstream4 - NetStream.Record.Stop
2013-09-04
09:02:23
3960
(s)2641173
f4f:cfhsstream4 - NetStream.Record.NoAccess
Thanks,
DaveI have a similar issue like Mr Dave explained. If need to stop, start, stop and restart again, the encoder is sending, but in player not shows nothing. Then we need to stop and disconnect in encoder, and remove the stream file in /event and the cache files in livestream folder for after then restart the streaming. Only after this action, the streaming works fine and the streaming shows again in player.
Have other way to solve this issue without need all that actions? Note that I use the Adobe FME to live streaming and encoding in HDS http streaming
I hope for a help
Thanks
Pedro
Message was edited by: asaweb2013 -
Adrci - SHORTP_POLICY does not remove Trace Metadata files (.trm)
how to remove the old Trace Metadata files (.trm) using just adrci in unix , database is 11g R2? Seemls like after when I changed the SHORTP_POLICY it does remove .trc files but I still have a lot of old .trm files that goes to . . . 2010;
Anyone has a solution for this yet? We also have same issue. adrci removes the *.trc files but not *.trm after changing the default purge policy using set control.
-
Music stopping and starting, huge gaps between songs
I listen to music via Match daily. Beginning last month I've been experiencing music stopping and starting, big gaps between tracks, and clunky behavior in general. It's comes and goes but over the last week it's been terrible. Is anyone experiencing this? I have tried re-initializing match on my iPhone but it doesn't seem to work.
Go to Edit > Preferences > Playback. Turn off crossfading if enabled...
iTunes will attempt to play tracks that were recorded gaplessly without adding an artifical gap, it won't attempt to remove the gaps between tracks that were there in the original recording, unless you've enabled crossfade. You can't make it add gaps to what should be gapless transitons on the album. If you really need this you could make a playlist and include blank mp3s as a separator.
tt2 -
Database creation having a trace of the control file
Hi,
I want to move a database from one server let's say A to another server let's say B I have a copy of all the datafiles, redo logs, control files and init file of the database fron the server A. I have a trace of the control file.
I copied all these files on the server B in the location /dispecer_date/oradata, except init which is in ORACLE_HOME/dbs
I thought that the simplest method to recreate the database is from the backup of the control file writing in sql the command CREATE CONTROLFILE how is written in trace and replacing the word REUSE with the word SET in CREATE CONTROLFILE instruction.
I obtained an error:
ORA-01503: Create controlfile failed
ORA-01160: file is not a data file
ORA-01110: datafile: '/dispecer_date/oradata/system.dbf'
Why? The db_block_size parameter is 4096.
Thank you,
MihaelaHere are the steps .....
sql > shutdown immediate ;
create identical dir structure on server b
copy all datafile,controlfile,redologfiles and pfile to target server ,And put them in same dir as of source.
now on taget server
sql > startup mountpfile = path of the pfile
sql > alter database opn
or
sql > alter database open resetlogs ;
this will do the trick, I don;t think recreating the controlfile is a good option hare , becuse you likly to loose some data if you stick on that one.
hare krishna
Alok -
a gap between letters started to show in my indesign files. tried to undo with tracking, then with the paragraph settings. nothing helped. it ruins the fluent view of the document. how can i restore the program so that doesn't happen?
for example: say i write a paragraph. then, in a weird some sort of way an involuntary gap suddenly appears between different letters of random words(i did not recognize any pattern to the gap appearing) throughout the entire paragraph. once i've double clicked on that paragraph, and made a minor change, lets say tapped a 'space' key, and then clicked ctrl+z to undo, it has aligned(or fixed) the entire paragraph and made it look ok again. i've tried numerous ways to undo the entire thing, but cannot find the reason. i've been working for a few years and there's no reason why this thing all of a sudden should happen right now.
if anyone has stumbled on something like that and can advise, i would welcome it.
MNS-KG
Vadimyep...i'm typing with hebrew. i'll make a printscreen with the settings you've asked for@:
if you look closely you'll see that almost every line has a single letter apart. in hebrew there is no usually a singe letter structured words. -
First install through regular update : never finishing the start after automatic restart
First install from scratch: erase through disk utility, install OS X Mavericks (using Recover mode), restart ok - Used Migration Assistant to restore applications and data only - Mail crashed each 5 inutes and asked constantly for password of my 2 accounts, links between folders and files not OK and attaching a doc was complicated. I downloaded the update same problems
Second install from scratch: erase through disk utility, install OS X Mavericks (using Recover mode), restart ok - Used Migration Assistant to restore applications and data only and settings : never finishing the start after automatic restart
Third install from scratch: erase through disk utility, install OS X Mavericks (using Recover mode), restart ok - But no disk available in Finder
So far no Mac since 3 days ...
Any help is welcomeStill struggling to understand why copying the entire root dir to a disk image and then restoring from that image did not, as expected, yield an identical system, and why I even had to reinstall after doing this.
Because there is a lot more going on under the hood than merely copying files.
The only way to do what you want is to use cloning software like Carbon Copy Cloner.
My advice is to rescue your personal files to a regular non-TimeMachine external drive, Zero erase the ENTIRE drive and install OS X fresh and update, then your programs from original sources and files from backup.
Then, make a bootable clone and you can copy that as many times as you want and each one is bootable.
Most commonly used backup methods
How to erase and install Snow Leopard 10.6 -
How to Start/Stop manually an oracle 9i database with a bat file?
Hi;
I have a manual Start/Stop of the db.
How can i Start/Stop the 9i database all services with a batch file (windows 2000) ?
All in one batch files ( One for Start & one for Stop)(Including listener)
thanks for your answer !Save the scripts below in a batch file and use the first one to start your services, and the second one to shutdown.
This script will shutdown your database first using SQL*Plus and stop the service later. This way you will avoid the timeout.
Also will ask you for confirmation if you are sure to start Oracle services and database. press Y for yes and N for No.
@echo off
%systemdrive%
REM #
echo.
echo You are about to start Oracle Services and Database
echo.
set /p Input=Do you want to continue? (Y=Yes N=No) =
IF /i "%Input%"=="Y" (goto Proceed)
exit /b
:Proceed
echo Oracle Instance and Services Startup in progress
echo.
Net start OracleOraHome92Agent
Net start OracleOraHome92HTTPServer
Net Start OracleOraHome92TNSListener
Net Start OracleMTSRecoveryService
Net Start OracleServiceORCL
echo.
echo Oracle ORCL Instance and Services Startup completed Successfully
echo Good Bye
echo on
EXIT /BSave this one in a seperate batch, again it will ask for confirmation, and shutdown the database using SQL to avoid timeout
Just replace the connect string with your own and the {SID} with your Database name
@echo off
%systemdrive%
echo.
echo You are about to shutdown Oracle Instance and Services
echo.
set /p Input=Do you want to continue? (Y=Yes N=No) =
if /i "%Input%"=="y" (goto Proceed)
exit /b
:Proceed
echo.
echo Closing and Dismounting ORCL Database
echo.
echo shutdown immediate | sqlplus "/ @ORCL as sysdba"
echo.
echo Shutting down Oracle system services
echo.
Net Stop OracleService{SID}
Net Stop OracleOraHome92HTTPServer
Net Stop OracleOraHome92TNSListener
Net Stop OracleMTSRecoveryService
Net Stop OracleOraHome92Agent
echo.
echo Oracle Instance and Services Shutdown completed successfully
echo Good Bye
echo on
EXIT /bTony Garabedian -
Saving an Agilent N1996A waveform trace to graphics/Excel files
Hello,
I am new to LabView. I need to create a VI that will save an Agilent N1996A (CSA) waveform trace to a graphics file (PNG, BMP). The user will enter a filename through the front panel. The Functions palette has a CSA ReadTrace.VI that sends the data to a waveform trace but I do not know what other objects or wires to use to save the data to a file specified in the front panel.
Additionally we need to export the X and Y arrays from the trace to an Excel file, which will also be given by the user through the front panel.
Thanks!
NinaYou can use the Get Image method with the appropriate write function on the Graphics & Sound>Graphics Format palette.
The Write to Spreadsheet File is just one of the File I/O functions you can use. -
How do I stop photoshop from starting when I open a jpeg file?
How do I stop photoshop from starting when I open a jpeg file?
In windows, right click on the file, select the program that you wish to use to open the file, and be sure to check to always open this type of file with the seleted program.
-
Command to Start/Stop "Windows File Sharing" on OsX Tiger Client
Dear Mac Gurus:
How to use command to start/stop “Windows File Sharing” on OSX Tiger client?
Thanks!
MaxHi Max,
Windows file sharing requires two daemons, nmbd and smbd. They can be started/stopped as follows:
To start (type the following all in a single line):
sudo launchctl load -w /System/Library/LaunchDaemons/nmbd.plist /System/Library/LaunchDaemons/smbd.plist
To stop:
sudo launchctl unload -w /System/Library/LaunchDaemons/nmbd.plist /System/Library/LaunchDaemons/smbd.plist
The option "-w" indicates that the default setting (whether start them at boot time or not) is also modified (the same effect as you turn them on/off via System Preferences -> Sharing). This means, if you start them and shutdown your Mac without stopping them, then they will be automatically restarted next time you reboot the Mac.
If you use "load -F" instead of "laod -w", then they are started but the default setting is not modified (if it is off then remains off).
If you use "unload" instead of "unload -w", then they are stopped the default setting is not modified (if it is on then remains on and will be started at next reboot).
If you feel the commands are too long to type, then you can devide them into two commands, for example:
sudo launchctl load -w /System/Library/LaunchDaemons/nmbd.plist
sudo launchctl load -w /System/Library/LaunchDaemons/smbd.plist
See launchctl man page for more detail.
HTH
PowerMacG4, PowerBookG4, iMac(C2D) Mac OS X (10.4.9) -
Separate Start/Stop times for a single song file
I am trying to create some playlists for different moods e.g. calm, happy, upbeat etc.
Now, my problem is this. I have some songs that have more than one mood within them, and I would like to set different start/stop times for the one song file.
I would like to be able to set different start/stop times in each playlist and not affect the start/stop times for the file in the music library.
Thanks in advance to anyone who can help!The only way to do this is to make a duplicate copy of the song for your playlist and adjust the times for the duplicate.
Maybe you are looking for
-
Airplay on atv using hdmi to componet was working until update
It worked great until I update it, how do I fix it
-
After a failed disk utility fix my Macintosh hd is gone!
I tried to do a disk utility repair on my wifes white macbook and somehow my macintosh hd has vanished. I cannot even quit and restart unless I have the disk in, which is useless.....Need Help!
-
Error 4 occurred while information structure S001 was being updated.
Hi experts, I set up the environment for the 2LIS_01_S001 DataSource (InfoCube 0SD_C01) accordingly these steps (as mentioned in another thread): 1) Activating LIS update - goto OMO1 transaction code In the Updating Info Structures(S001) - double-c
-
[HELP] Flash CS6 iPhone 5
Hi, I am wondering how I can get the screen to fit an iPhone 5 screen because I have everything on it. The pixel are on 640 x 1136. When I open that app in my iPhone 5 it does't expand it to the top and very bottom, it just does it thicker. Someone s
-
Jumbled ad image shows up on transparent backgrounds
On any page with a transparent background, a jumbled image from an ad shows up. It also peeks out through transparent parts of images etc. and won't go away even if I kill Firefox and restart it. A picture is [http://thsi.org/firefox.jpg here]; the p