How to pick which node a dbms_scheduler job runs on
I saw a stickiness attribute that will pick the least used node. I want to pick my RAC node. is there a way to do this?
Do you mean you want to specify the instance where your job runs on? and not let Oracle manage this based on the load?
You can do this using database services. Define a database service as prefered on one instance and available on another instance. create your job class for the service. This way if the instance was to fail for some reason, the database service will automatically start on the other instance and the job will point to the new instance.
Similar Messages
-
How to tell which node a session connects to in 9i RAC
I have a 6 nodes 9i RAC database. While running a process, how to tell which node it is connecting to?
Hi,
SQL> select inst_id, sid, username from gv$session ;
inst_id is the instance number a session is running on.
select from the v$instance view to know to instance number you are actually connect to
SQL> select instance_number from v$instance ;
INSTANCE_NUMBER
1
note the the "g" before the view "v$session", that's for GLOBAL (all instances of the cluster) : check the views gv$parameter, etc...
Fred -
Which query is the job running ?
Dear all,
Normally when you want to see the currently running query by a session, you can just query the V$Session table and get the SQL_ID of a particular session. Then use SQL_ID to query V$SQL.
However when a PL/SQL procedure is submitted via a job. You can see in the V$Session that the job runs as a dedicated server session and the SQL_ID is always null. Although I do see always that the session waits for "DB sequential file read". So it means that some query might be getting executed.
How can I see which query is being run by the job (dedicated server session)?
Version : 10.1.0.5
Thanks in advanceYou can try :-
SELECT sql_id,sql_text FROM v$open_cursor WHERE sid = :1
http://www.ContractOracle.com -
How to disconnect DB connections before batch job runs
Hi All,
I have a batch job which generates some static reports at specified location. My question is that before my batch job runs I want to disconnect all DB connections and then run the batch job then get the system up for availabily. Could you please suggest me how do I disconnect the connections before batch runs? I am using Oracle 9i DB. Your help would be more appreciated.user536769 wrote:
I have a batch job which generates some static reports at specified location. My question is that before my batch job runs I want to disconnect all DB connections and then run the batch job then get the system up for availabily. Could you please suggest me how do I disconnect the connections before batch runs? I am using Oracle 9i DB. Your help would be more appreciated.What you want to do, does not make sense. Oracle is intended as a multi-user multi-processing server. It is designed that way. It is developed that. It is sold and used that way.
Why would you want to kick off all other processes (sessions) just to run a single batch process? To make it faster?
If so, and the idea is to make the batch process faster, then
a) WHAT makes the batch process slow?
b) did you determine that this is caused by other processes? -
How to get the list of batch jobs running in a specific application server
Hi Team,
I am trying to check in SM37 if there is any specific condition to get the list of batch jobs assigned to a specific target server but cant find any.
Is there is way to find the list of batch jobs assigned to run in one specific application server.( Target server specified in SM36 while job creation)Hello,
This is what you can do in SM37.
Execute the list of batch jobs, when the result appears on the screen edit the ALV grid via CTRL+F7.
Now add the following columns "TargetServ" and "Executing server".
You will now have two extra columns in your result list.
TargetServr contains the value of the application server where the job should run when you have explicitely filled it in.
Often this is empty, this means that at runtime SAP will determine itself on which application server the job will run (depending of course where the BGD processes are defined).
Executing server is filled in always for all executed jobs, this is the actual application server where the job has run.
You can also add these two fields in your initial selection screen of SM37 by using the "Extended job selection" button.
I hope this isusefull.
Wim -
How to detect which applications that are currently running
Hi there. Is there a way to detect which applications that are currently running on my machine? Is there a class that can get all of the running applications, you know, like the taskmanager.
//peterWhat you are asking for is indeed not possible through "100% Pure Java," because each operating system that runs Java Virtual Machines can handle the running processes differently (think about the differences between a process scheduler for, say, Windows NT and your Palm Pilot, both of which could have a JVM running).
That means there are essentially 2 avenues to persue for this:
1. Use an external "user-level" command (like ps on a UNIX-like OS) and parse the results (this is what people are referring to when they say "Runtime.exec()". There have been some nice exec() frameworks posted around here before, so I'd recommend searching around a bit for more info.
I also found this link (from Google) which apparently shows the javadocs where someone has attempted something similarly on the Linux platform before...that's all I know about it:
http://www.cougaar.org/software/9.2/javadoc/api/org/cougaar/tools/server/system/linux/LinuxProcessStatusReader.html
2. Use a JNI (Java Native Interface) call to an externally provided C function to get the info you need. Here's a link to the Java 1.4 JNI information:
http://java.sun.com/j2se/1.4/docs/guide/jni/
Hope this helps! (But it's not going to be a quick and easy problem to work with)...
-J -
Specifying which node a scheduled task runs on
In a clustered weblogic environment is there a way to tell OIM to run a scheduled task on a specific node. So for example let's say I want the AD UserTarget Recon to always only run on node1. Is there a task schedule attribute or something that controls this? Thanks in advance.
As idmgod said, there is no way of specifying this. But you can definitely enable the schedule task only on one node. If sometime your OIM shifts to other node in the cluster, you need to manually change the settings so that your schedule task is not impacted.
You may refer the following thread for configuring the scheduled task to run on one node only:
OIM Schedule task query -
How to pass parameters to sql agent job run configured ssis package
Hi all,
I have a big problem at my small project.
I build my SSIS package that get its variables values from a configuration file..
and when i build a SQL agent job to run this package in a schedule i set the values of variables in it .. but in run-time the package still get its parameters from the configuration file !??
any help please ?>SQL agent job to run this package in a schedule i set the values of variables in it
One way, setup a configuration table for the package. Let the package read the values for the variables from there.
Kalman Toth Database & OLAP Architect
SQL Server 2014 Design & Programming
New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012 -
How to know which NW and SP is running?
Hi !
It maybe is a basic question, but I don't know where to see which NW version is running in my environment (NW 2004 or NW2004s) and which SP is applied. Of course I can ask someone, but I want to know where to see it on screen.
Thanks !
MatÃas.Hi,
1. In ID or IR
>Help
->> Information
2.//server:port/sap/monitoring/ComponentInfo
and check every java component version in the Software Components section
3. In SAP GUI and check ABAP SP version:
>> System
>>Status
>>SAP system Data
>>Component information
Regards
Agasthuri -
How to tell which repository a guest is running from
Somehow I have two repositories that have the exact same vm guest paths and when I restart the host it boots the wrong one.
I have run xm list on the host and it tells me what guest is running but it doesn't say from which repository. Is there any way to find out?
Thanks
BillBillP wrote:
Somehow I have two repositories that have the exact same vm guest paths and when I restart the host it boots the wrong one.Which version of Oracle VM? This should not be possible with 3.0 and very, very unlikely with 2.2. Even so, it should always start the correct guest on boot, given that the full path (including the repository path) is included in the restart information.
I have run xm list on the host and it tells me what guest is running but it doesn't say from which repository. Is there any way to find out?The Manager should show you all the guests that are running and the path to the configuration file for each guest. -
How to check which software pack I am running on UC560?
I need to figure out if my UC560 needs a software pack upgrade. The show version on the device console shows following. What software pack does it map to?
Cisco IOS Software, UC500 Software (UC500-ADVIPSERVICESK9-M), Version 15.1(4)M5, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2012 by Cisco Systems, Inc.
Compiled Tue 04-Sep-12 20:45 by prod_rel_team
ROM: System Bootstrap, Version 15.0(1r)XA3, RELEASE SOFTWARE (fc1)
dcVAST-UC560 uptime is 6 weeks, 3 days, 14 hours, 56 minutes
System returned to ROM by power-on
System restarted at 17:32:32 CST Thu Feb 20 2014
System image file is "flash:/uc500-advipservicesk9-mz.151-4.M5"
Last reload type: Normal Reload
This product contains cryptographic features and is subject to United
States and local country laws governing import, export, transfer and
use. Delivery of Cisco cryptographic products does not imply
third-party authority to import, export, distribute or use encryption.
Importers, exporters, distributors and users are responsible for
compliance with U.S. and local country laws. By using this product you
agree to comply with applicable laws and regulations. If you are unable
to comply with U.S. and local laws, return this product immediately.
A summary of U.S. laws governing Cisco cryptographic products may be found at:
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html
If you require further assistance please contact us by sending email to
[email protected]
Cisco UC560-T1E1-K9 (MPC8378) processor (revision 0x100) with 497664K/26624K bytes of memory.
Processor board ID <Removed>
MPC8378 CPU Rev: Part Number 0x80C4, Revision ID 0x21
64 User Licenses
4 Gigabit Ethernet interfaces
24 Serial interfaces
2 terminal lines
1 Channelized T1/PRI port
1 Virtual Private Network (VPN) Module
4 Voice FXO interfaces
4 Voice FXS interfaces
1 Voice MoH interface
1 cisco service engine(s)
256K bytes of non-volatile configuration memory.
250880K bytes of ATA CompactFlash (Read/Write)Refer to this: https://supportforums.cisco.com/document/36746/uc-500-software-packs
You are one software pack behind up to date. -
How does RAC determine which instance number to run on which node
Good afternoon
I am trying to script a process and I need to identify how RAC decides which node runs which instance. Is it the first one of the pair added to the cluster that runs node 1 or is there some other piece of information that I need to work this out
This is on Redhat Linux with 10.2.0.3 for CRS, ASM and databases
Cheers
PeterBefore "you" start an instance you set env variable ORACLE_SID. This identifies an instance. When you go into sqlplus and issue STARTUP, Oracle starts the instance named by the sid. Thus the instance running on the server is controlled by you. This changes as noted below.
If you were using a non-Oracle tool to start instances, such as Veritas, then you would see it start the instance you coded into the tool. It would not randomly pick an instance. It looks in the Veritas config file and sees that you always want instance 1 on this node and instance 2 on that node.
That said, you can make Oracle more random or "grid" like. 10g RAC done Oracle's way likes to bounce around between primary and secondary nodes. To see which instances are running on a node you can "ps -ef | grep pmon". Alternatively, use sqlplus to look in the database: view gv$instance gives you each instance name paired with the name of the host it is currently running on. There is one line of output per instance currently running.
-Mark -
Hi All,
I have 4 node rac. My question is suppose the master node go evicted,
In this case,which node will become master and who decide which node will become master.
I have read somewhere that the node wilth least number will become master.
How oracle decide the numbering which node will have least number?
Could you please help me in cleairing my doubt?
your suggestion are welcome.
Thanks and RegardsHi,
I have learned somewhere the node with the least node number will become master node.
How oracle decides which node will have highest node and which will have lowest node number?The information which you want is not documented (far as I know). What is difficult to accurately tell you the truth.
There's a reason to you want to know about this. Depending on what you need, we can to solve in another way without trying to figure out which node have OCR Master all the time.
Markus is Principal Product Manager Oracle RAC and he is one of Contributors of documentation of Oracle Database see his answer.
Markus words:
Why are you interested in knowing which node the OCR Master resides on all the time?
The OCR backup is taken only every 4 hours. If you are of bad luck, the OCR master could have changed between the time of the last backup and the check using ocrconfig -showbackup. Now, if this was the case, the CRSD.log(s) will probably tell you But again, you should not be required to find the OCR master permanently.
Re: Identify the OCR master node for 11.2
Levi Pereira -
How to know which process is consuming high percentage of cpu?
Hi,
How to check which process is consuming high percentage of cpu ?
how to know the cpu time is atleast 80% of the elapsed time and how to know which code the process is running?
I know we can check high performance cpu can be find by TOP command
but i dont know on solaris?
please help me on this?One way is to use my Snapper script for getting the breakdown ( see http://blog.tanelpoder.com/2007/12/06/oracle-session-snapper-v106-released/ for more info ).
An example snapshot (taken over 60 second period) is below:
SQL> @snapper out,gather=tw 60 1 "select sid from v$session where type = 'USER'"
-- Session Snapper v1.07 by Tanel Poder ( http://www.tanelpoder.com )
HEAD, SID, SNAPSHOT START , SECONDS, TYPE, STATISTIC , DELTA, DELTA/SEC, HDELTA, HDELTA/SEC
DATA, 2, 20080710 11:39:18, 61, TIME, repeated bind elapsed time , 1314, 22, 1.31ms, 21.54us
DATA, 2, 20080710 11:39:18, 61, TIME, parse time elapsed , 21518, 353, 21.52ms, 352.75us
DATA, 2, 20080710 11:39:18, 61, TIME, PL/SQL execution elapsed time , 809888, 13277, 809.89ms, 13.28ms
DATA, 2, 20080710 11:39:18, 61, TIME, DB CPU , 11204956, 183688, 11.2s, 183.69ms
DATA, 2, 20080710 11:39:18, 61, TIME, sql execute elapsed time , 12441308, 203956, 12.44s, 203.96ms
DATA, 2, 20080710 11:39:18, 61, TIME, DB time , 13825800, 226652, 13.83s, 226.65ms
DATA, 2, 20080710 11:39:18, 61, WAIT, read by other session , 4432, 73, 4.43ms, 72.66us
DATA, 2, 20080710 11:39:18, 61, WAIT, log file sync , 1215135, 19920, 1.22s, 19.92ms
DATA, 2, 20080710 11:39:18, 61, WAIT, db file sequential read , 1458168, 23904, 1.46s, 23.9ms
DATA, 2, 20080710 11:39:18, 61, WAIT, enq: TX - row lock contention , 11600, 190, 11.6ms, 190.16us
DATA, 2, 20080710 11:39:18, 61, WAIT, row cache lock , 420, 7, 420us, 6.89us
DATA, 2, 20080710 11:39:18, 61, WAIT, SQL*Net message to client , 1842, 30, 1.84ms, 30.2us
DATA, 2, 20080710 11:39:18, 61, WAIT, SQL*Net message from client , 9490531, 155582, 9.49s, 155.58ms
DATA, 2, 20080710 11:39:18, 61, WAIT, PL/SQL lock timer , 35759582, 586223, 35.76s, 586.22ms
DATA, 2, 20080710 11:39:18, 61, WAIT, events in waitclass Other , 302, 5, 302us, 4.95us
DATA, 20, 20080710 11:39:18, 61, TIME, repeated bind elapsed time , 1332, 22, 1.33ms, 21.84us
DATA, 20, 20080710 11:39:18, 61, TIME, parse time elapsed , 21439, 351, 21.44ms, 351.46us
DATA, 20, 20080710 11:39:18, 61, TIME, PL/SQL execution elapsed time , 799773, 13111, 799.77ms, 13.11ms
DATA, 20, 20080710 11:39:18, 61, TIME, DB CPU , 11303744, 185307, 11.3s, 185.31ms
DATA, 20, 20080710 11:39:18, 61, TIME, sql execute elapsed time , 12404247, 203348, 12.4s, 203.35ms
DATA, 20, 20080710 11:39:18, 61, TIME, DB time , 13792389, 226105, 13.79s, 226.1ms
DATA, 20, 20080710 11:39:18, 61, TIME, sequence load elapsed time , 752, 12, 752us, 12.33us
DATA, 20, 20080710 11:39:18, 61, WAIT, log file sync , 1228759, 20144, 1.23s, 20.14ms
DATA, 20, 20080710 11:39:18, 61, WAIT, db file sequential read , 1339772, 21963, 1.34s, 21.96ms
DATA, 20, 20080710 11:39:18, 61, WAIT, row cache lock , 395, 6, 395us, 6.48us
DATA, 20, 20080710 11:39:18, 61, WAIT, SQL*Net message to client , 1901, 31, 1.9ms, 31.16us
DATA, 20, 20080710 11:39:18, 61, WAIT, SQL*Net message from client , 9496607, 155682, 9.5s, 155.68ms
DATA, 20, 20080710 11:39:18, 61, WAIT, PL/SQL lock timer , 35786481, 586664, 35.79s, 586.66ms
DATA, 20, 20080710 11:39:18, 61, WAIT, events in waitclass Other , 96, 2, 96us, 1.57us
Tanel Poder
http://blog.tanelpoder.com -
How to make a job run on a appointed node
I have a problem. The database is Oracle 10g, RAC, two nodes
There are some job which run on everyday night. Now, something happened, the job run on Node A can't work as normal, but if run on node B, It will work well.
so I just want to submit the jobs on Node B, I submited the jobs on Node B, but the jobs always run on Node A.
I want to know how to make a job run on a appointed node.the Job just transfer some procedure to add partitions for some table, to merge the records from some tables to one table and so on.
the problem is when the job run on Node A, it is very very slow, the procedure would run hours and not success end, but if on Node B it will successfully end in seconds.
restart the Node A would be a way for the problem, but may it will leave a hidden trouble. I want save the scene to find out the problem
so can you help me
Maybe you are looking for
-
Settings NOT saved for the iPod, because- not found
I've a lot of regular changes to make when updating my music library on my iPod. But when I'm in the middle of doing so - that is using TAB "Music" (which "Sync Music" enabled) - and checking all relevant playlists, an error appears: "The settings we
-
Hi friends, How to capitalize assets for tax that are not capitalized for book? Thank You, Joseph
-
Weird folder names in Lightroom 1.4 OSX
"Contents at /System/Library/CoreServices/Setup Assistant.app/Contents/Resources/WirelessSection.bundle" Um. I didn't put these photos here, and now, of course, Lightroom has trouble with them... I would delete them, but I'm not sure if these are ori
-
Incorrect time in calendar-view, but normal in event-view
If compare two different views of event it will different. Why? I think it's bug.
-
How can I save a slideshow if I created it using iPhoto on my iPhone?
I have an iPhone 4 (no Mac) and was playing around with the iPhoto app and created a slideshow that I want to export and use as part of my wedding reception. However, I can't seem to find an option to export or save the slideshow on my iPhone... am I