Module column of v$session
Hi:
Is this the right column to see what's the name of the program a
user is running? Why most of them are blanks? Can I assign a
value to this column? What should I do if I want this column to
show the name of self-developed applications? Thanks.
MM
null
Michael,
Use the plsql package dbms_application_info to set this:
dbms_application_info.set_module( 'module_name','action_name' );
or
dbms_application_info.set_action( 'action_name' );
These will set those columns.
You may have to load 'dbmsutil.sql' as SYS. Ask your DBA.
Michael Mou (guest) wrote:
: Hi:
: Is this the right column to see what's the name of the program
a
: user is running? Why most of them are blanks? Can I assign a
: value to this column? What should I do if I want this column to
: show the name of self-developed applications? Thanks.
: MM
null
Similar Messages
-
Adding time module column using c#
Hi All,I use NI GUI Example in c#
and I need to add time module column to the execution view by code.
I use: "axExecutionView.Columns.Insert("_MODULE_TIME",NationalInstruments.TestStand.Interop.UI.SeqViewColumnTypes.SeqViewColumnType_Expression,100,-1);"
but it doesn't work,
Tnx,For tracing, using the following expression for the column will work:
(PropertyExists("Locals.ResultList") && PropertyExists("Step.TS.Id") && GetNumElements(Locals.ResultList) > 0 && PropertyExists("Locals.ResultList[" + Str(GetNumElements(Locals.ResultList) - 1) + "].TS.ModuleTime") && Locals.ResultList[GetNumElements(Locals.ResultList) - 1].TS.StepId == Step.TS.Id) ? Str(Locals.ResultList[GetNumElements(Locals.ResultList) - 1].TS.ModuleTime, "%f") : ""
Of if what you really want is TotalTime, change ModuleTime above to TotalTime.
The problem is when you hit a breakpoint and it refreshes the whole step list, you will then only get the time for the last step.
The reason why this is a harder problem than you might think is that the time results for a step are not stored on the step itself, they are only stored in Locals.ResultList and only if the step was actually set to record results. The expression above just looks at the last result in the result list and if it is for the current step, then it displays the module time for that step. This works while tracing because only the previous step at the tracepoint is refreshed. At a breakpoint, when it tries to refresh the entire view, only the last step matches the last result. If you wanted it to work in more cases you'd have to do somewhat of a search through the result list for each step, which would be slow and tricky to implement in an expression.
Another alternative you might want to consider is using the On-The-Fly report generation setting instead. That generates the report while the steps are still executing, and the report already includes the module times (or at least it can depending on what settings you use for the report).
Hope this helps,
-Doug -
COMMAND column in V$SESSION table
Is there any table which stores all the meaning of various values that can be stored in COMMAND column of V$SESSION table
Like 3 is for SELECT and 47 for Execute, I found some documentation in data dictionary but was wondering if there is some table that can be used when a trigger or procedure is running to pull the values on the fly.
ThxYou can find the various values for V$SESSION.COMMAND in Table 7-5 COMMAND Column of V$SESSION and Corresponding Commands found in the link below to build your own table.
http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14237/dynviews_2088.htm#sthref3985 -
COMMAND column in V$SESSION just show s SELECT
Hi,
i queried command column in v$session, but it shows only 3(which is for SELECT) and 0 (which is for unknown), even i update some thing its not shown.
ThanksHi Pavan,
following is the list for that
Number Command Number Command
1 CREATE TABLE 2 INSERT
3 SELECT 4 CREATE CLUSTER
5 ALTER CLUSTER 6 UPDATE
7 DELETE 8 DROP CLUSTER
9 CREATE INDEX 10 DROP INDEX
11 ALTER INDEX 12 DROP TABLE
13 CREATE SEQUENCE 14 ALTER SEQUENCE
15 ALTER TABLE 16 DROP SEQUENCE
17 GRANT OBJECT 18 REVOKE OBJECT
19 CREATE SYNONYM 20 DROP SYNONYM
21 CREATE VIEW 22 DROP VIEW
23 VALIDATE INDEX 24 CREATE PROCEDURE
25 ALTER PROCEDURE 26 LOCK
27 NO-OP 28 RENAME
29 COMMENT 30 AUDIT OBJECT
31 NOAUDIT OBJECT 32 CREATE DATABASE LINK
33 DROP DATABASE LINK 34 CREATE DATABASE
35 ALTER DATABASE 36 CREATE ROLLBACK SEG
37 ALTER ROLLBACK SEG 38 DROP ROLLBACK SEG
39 CREATE TABLESPACE 40 ALTER TABLESPACE
41 DROP TABLESPACE 42 ALTER SESSION
43 ALTER USER 44 COMMIT
45 ROLLBACK 46 SAVEPOINT
47 PL/SQL EXECUTE 48 SET TRANSACTION
49 ALTER SYSTEM 50 EXPLAIN
51 CREATE USER 52 CREATE ROLE
53 DROP USER 54 DROP ROLE
55 SET ROLE 56 CREATE SCHEMA
57 CREATE CONTROL FILE 59 CREATE TRIGGER
60 ALTER TRIGGER 61 DROP TRIGGER
62 ANALYZE TABLE 63 ANALYZE INDEX
64 ANALYZE CLUSTER 65 CREATE PROFILE
66 DROP PROFILE 67 ALTER PROFILE
68 DROP PROCEDURE 70 ALTER RESOURCE COST
71 CREATE MATERIALIZED VIEW LOG 72 ALTER MATERIALIZED VIEW LOG
73 DROP MATERIALIZED VIEW LOG 74 CREATE MATERIALIZED VIEW
75 ALTER MATERIALIZED VIEW 76 DROP MATERIALIZED VIEW
77 CREATE TYPE 78 DROP TYPE
79 ALTER ROLE 80 ALTER TYPE
81 CREATE TYPE BODY 82 ALTER TYPE BODY
83 DROP TYPE BODY 84 DROP LIBRARY
85 TRUNCATE TABLE 86 TRUNCATE CLUSTER
91 CREATE FUNCTION 92 ALTER FUNCTION
93 DROP FUNCTION 94 CREATE PACKAGE
95 ALTER PACKAGE 96 DROP PACKAGE
97 CREATE PACKAGE BODY 98 ALTER PACKAGE BODY
99 DROP PACKAGE BODY 100 LOGON
101 LOGOFF 102 LOGOFF BY CLEANUP
103 SESSION REC 104 SYSTEM AUDIT
105 SYSTEM NOAUDIT 106 AUDIT DEFAULT
107 NOAUDIT DEFAULT 108 SYSTEM GRANT
109 SYSTEM REVOKE 110 CREATE PUBLIC SYNONYM
111 DROP PUBLIC SYNONYM 112 CREATE PUBLIC DATABASE LINK
113 DROP PUBLIC DATABASE LINK 114 GRANT ROLE
115 REVOKE ROLE 116 EXECUTE PROCEDURE
117 USER COMMENT 118 ENABLE TRIGGER
119 DISABLE TRIGGER 120 ENABLE ALL TRIGGERS
121 DISABLE ALL TRIGGERS 122 NETWORK ERROR
123 EXECUTE TYPE 157 CREATE DIRECTORY
158 DROP DIRECTORY 159 CREATE LIBRARY
160 CREATE JAVA 161 ALTER JAVA
162 DROP JAVA 163 CREATE OPERATOR
164 CREATE INDEXTYPE 165 DROP INDEXTYPE
167 DROP OPERATOR 168 ASSOCIATE STATISTICS
169 DISASSOCIATE STATISTICS 170 CALL METHOD
171 CREATE SUMMARY 172 ALTER SUMMARY
173 DROP SUMMARY 174 CREATE DIMENSION
175 ALTER DIMENSION 176 DROP DIMENSION
177 CREATE CONTEXT 178 DROP CONTEXT
179 ALTER OUTLINE 180 CREATE OUTLINE
181 DROP OUTLINE 182 UPDATE INDEXES
183 ALTER OPERATOR -
Function module to execute the session
Hi All,
I want to know the function module to execute the session created in sm35.Hi,
bdc_open_group:
this function module is used to open the session.
parameters related to this function module are
client:sy-mandt
uname:sy-uname
holddate:sy-datum
group: <groupname>
keep: 'X' / ' '.
2)bdc_insert:this function module is used to insert the
values to the session
parameters related to bdc_insert are
tcode: mention the transaction code
dynprotab: mention the internal table having structure like bdcdata.
3)bdc_close_group:
when ever u open the session it is must to close the session
Hope it helps you.
Regards Mansi -
SECONDS_IN_WAIT column of v$session in 10gr2!!
Hi, all.
Recently, I have found the unbelievale value for SECONDS_IN_WAIT in v$session view. The database is 10.2.0.2.0.
select sid, wait_time, seconds_in_waits,wait_class, event,state from v$session;
SID WAIT_TIME SECONDS_IN_WAITS WAIT_CLASS EVENT
500 0 117874 Cluster gc buffer busy WAITING
In the above example, session 500 is waiting for something for 117874 seconds.
117874 seconds is 32.7 hours(117874/60/60).
Thus, session 500 is waiting for 32.7 hours.
The unit of SECONDS_IN_WAITS column is really "seconds"????
http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/dynviews_2088.htm#REFRN30223
Thanks and Regards.Hi, yes the metric is on seconds, you must review the definition for this field on the view, look this.
<br>
<br>
If WAIT_TIME = 0, then SECONDS_IN_WAIT is the seconds spent in the current wait condition.
<br>
<b>
If WAIT_TIME > 0, then SECONDS_IN_WAIT is the seconds since the start of the last wait, and SECONDS_IN_WAIT - WAIT_TIME / 100 is the active seconds since the last wait ended.
</b>
<br>
<br>
<br>
Regards.
<br> -
How to enable AI(accent insensitiv) for one column without changing session
Following is my test SQL:
create table accent_test(col varchar2(10 char);
insert into accent_test values('INDIA');
insert into accent_test values('india');
insert into accent_test values('InDiÄ ');
Following SQL can only enable CI(Case insensitive), but can’t enable AI(accent insensitive):
select *
from accent_test
where NLS_UPPER(col, 'NLS_SORT=GENERIC_BASELETTER') LIKE NLS_UPPER('INDIA', 'NLS_SORT=GENERIC_BASELETTER')
COL
INDIA
india
Upper SQL can’t return the third row ‘InDiÄ’ which includes accent character.
I know following SQL can enable AI by changing the session. However it will change the whole session and other columns in one table:
SQL> ALTER SESSION SET NLS_COMP=LINGUISTIC;
SQL> ALTER SESSION SET NLS_SORT=GENERIC_BASELETTER;
Is there any solution to enable AI for only one column without changing the session?convert(<Any Chinese Character>, 'US7ASCII') will all return same character '?'.might be an matter of using the right characterset:
SQL> select 'ä' str, convert('ä', 'JA16SJIS') converted_str from dual union all
select 'á', convert('á', 'JA16SJIS') from dual union all
select 'â', convert('â', 'JA16SJIS') from dual union all
select 'à', convert('à', 'JA16SJIS') from dual
STR CONVERTED_STR
ä a
á a
â a
à a
4 rows selected. -
About the last_call_et column in v$session
Hello,
Can someone help me about a behaviour that is very strange ...
We have connection about SAS on a database which manipulate Oracle table and others SAS Structure.
The query is a "join" about that table and a "SAS Table" between million of lines in the Oracle table one ....
It last a long time ....
During the query, we have time to see at the v$session table...
At any time (it lasts 3h), we saw that the column 'last_call_et' of the v$session never change : it continuesly stay at 0.
What does it mean ? it means that SAS send a query every second ? Or this column shows the last "internal call"?
If this is the right reason, i would'nt understand why, when i take the same query( launched by SAS) in TOAD, there is no the same behaviour and this behaviuor is in that case the right behaviour : the session is ACTIVE but the last_call_et respresents really the time since i launched the query... So why when SAS do it, the last_call_et stay at 0 ? it works like SAS launch every second this query !!!!
Can someone help me ?
Thanks ...Jonathan Lewis wrote:
user12046632 wrote:
When you say :
A FETCH is a database call :
That means that it must affect the value of 'last_call_et' or not ?"A Fetch is a database call"
"last_call_et" -- certainly sounds like that could be something to do with database calls, perhaps End Time of LAST database CALL.
A parse is also a database call, as is an execute ... I feel that perhaps I was a little too concise with my description. You asked why SAS could be doing lots of calls (although that wasn't exactly how you put the question) and I replied that calls could include fetches. And yes, the last_call_et is reset on every fetch (amongst other things - and ignoring the special behaviour of background processes).Ok
>
(accordint to me, only to user's activity do so and not to "database internal callsl") ! isn't it ?You don't want to believe everything you read on the internet - even if it did come from the online manuals. But a "fetch" is not a "database internal call" anyway, it's a call from a client to the server.Be sure that i don't do so.
But the explanation of Oracle of the term 'cal' is not so precise at all ...
>
Your follonwing explanations seems to answers contrarily ....
But the question is there : what sort of call affetcs the value of "last_call_et"All database calls - which you should read as "all calls from the client to the server".Ok
>
>>
>>
When you say
all_rows plan => parse call, execute call ..... with very long call time, lots of fetch calls
first_rows_n plan => parse call, execute call ... with very short call time, lots of fetch calls
In the first case you would see last_call_et constantly growing until the fetches started
In the second case last_call_et would keep resetting to zero so fast you probably wouldn't see it as a non-zero value.
I don't understand : ok for the conséquences on the timing ... but if there are a lot of fetch call in both cases : the behaviour on the 'last_call_et' has to be equal ?True - but in one case I've included an execute call that is active for a very long time, and in the other I've proposed an execute call that is active for a very short time. (And execute calls are calls, and I did ask you about the exact details of your observations.)Ok
If we consider that every call reset to 0 the value of 'last_call_et',
why, in the case of launching the same request by TOAD, shouldn't i see the reset to 0 when the fetches works (because in TOAD during the whole query, which means since the click on "launching query" to the retrieving of data, the value did not reset to 0) ?
>
>>
When you say
Having said that, I've just run a quick test in SQL*Plus on 11.1.0.6 and 10.2.0.3 to demonstrate this point, and 11g is behaving differently from 10g - in the case where the last_call_et should be growing it stays at zero.
"in the case" : in the case of the v11 or the v10 ?11g
In my case : i'am on a v10.2.0.3 ::: Is there a bug ?Not that I know of.ok. So it is in V11 that you have an incorrect behaviour ....
>>
>
Regards
Jonathan LewisLAST NEWS : we have relaunched the query in SAS and observed that we have the same context of plan in both cases (by SAS en y TOAD) : ALL_ROWS.
Very strange ...
Last question :
Just to be sure : When you talk about "First Rows plan" : it means that the retrieve data are restricted to the first rows encountered
or
it is just the plan of the query which is in "that context" which means that the engine works so although the whole data are retrieved ....
thanks for your return -
Sort by columns once per session
Hi there, I am using apex 3.1 and I have a report generated by a pl/sql function. There are several columns on which the user might sort. Is it possible to reset the sorting preferences when the user logs in? (like: a process running once per session?)
thx in advance
Edited by: 814932 on 23-Nov-2010 08:00You can use the <tt>apex_util.remove_sort_preferences</tt> method (although it is a bit of a blunt instrument). See the Admin guide for more information on user preferences.
To run it once per session, code the call as an Application Process with execution point On New Session After Authentication. -
How to separate application module instance per user session?
Hi.
How do you separate application module instances per session or per user? I am creating a web application and has created a simple filter that implements Filter.
Thanks in advance.Hi Frank. Thank you for the reply.
I tried using two browsers. The behavior of each page is very much different when being opened individually. Its like the two pages is sharing the same iterator / data and / or entity object. These two pages were opened to see if one is dependent upon the other. But when I test the same scenario on a different computer, everything works out fine.
Is there a way for me to verify if the sessions are different? and if they are different, is there a way to verify if the application module created a new instance for the other session? -
Web module column link to go in detail query is disabled
Hi,
I have a query only module. Once I query the module, it shows list of
matching records. My problem is I am not getting a link in any queried
columns to see the details of selected record.
I don't know which option it will enable it.
Pl. help!! Thanks in advance.Hi Ingmar,
Implement 'ON_CLICK_EVENT' in the same view where u have ALV. Clicking on the link in the cell using link to action gives you the following information which u can use (pass to other view etc..) -
COLUMN_ID
INDEX
ATTRIBUTE
VALUE
You can read these values and store them in a node.
Create one node in the view by name 'EVENT_PROPERTIES' with attributes 'NAME' and 'VALUE' of type string both and use the below code in on_click_event. Here I am navigating to the next view after clicking the link, you can do whatever u want depending on ur requirement.
DATA: lr_node TYPE REF TO if_wd_context_node,
lt_event_properties TYPE if_models_list_view=>elements_event_properties,
ls_event_properties TYPE if_models_list_view=>element_event_properties.
FIELD-SYMBOLS: <l_value> TYPE ANY.
fill internal table
ls_event_properties-name = 'COLUMN_ID'.
ls_event_properties-value = r_param->column.
APPEND ls_event_properties TO lt_event_properties.
ls_event_properties-name = 'INDEX'.
ls_event_properties-value = r_param->index.
APPEND ls_event_properties TO lt_event_properties.
ls_event_properties-name = 'ATTRIBUTE'.
ls_event_properties-value = r_param->attribute.
APPEND ls_event_properties TO lt_event_properties.
ASSIGN r_param->value->* TO <l_value>.
ls_event_properties-name = 'VALUE'.
ls_event_properties-value = <l_value>.
APPEND ls_event_properties TO lt_event_properties.
navigate to context node EVENT_PROPERTIES
lr_node = wd_context->get_child_node( 'EVENT_PROPERTIES' ).
bind internal table to context node
lr_node->bind_table( lt_event_properties ).
wd_this->fire_to_pi_main_view_plg( ).
Regards,
Gaurav -
BLOCKING_SESSION column of v$session in 10g
Hi. all.
http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/dynviews_2088.htm#REFRN30223
what does BLOCKING_SESSION column mean?
For example,
SID Blocking_session
500 400
In the above case,
SID 400 is blocking SID 500 ?
or
SID 500 is blocking SID 400?
Thanks and Regards.Dear Yas.
Thanks for your confirmation.
Best Regards. -
Application Module Release Mode and Session Cookie
BC4J 9.0.3.3
I have a SessionCookie and I want to find out the RELEASE_MODE of the App Mod the cookie refers to. How do I get the RELEASE_MODE of an App Mod?
TIA,
EricRepost
-
Hi,
Older versions of forms required explicit calls to dbms_application_info package to set the name of the forms module (or other useful diagnostic info made visible on the database via v$session module, action and client_info).
It seems that the application we currently manage (third party vendor) sets this, too. But I cannot find any call to DBMS_APPLICATION_INFO in the source fmb, pll, olb or any database package code called from the forms sessions.
Can anybody confirm my suspicion that the V$SESSION.MODULE attribute is now being set by low-level Forms library code, independently of application code?
If so, it's a great feature, I just want peace of mind! I've searched google, this forum and Oracle Support site for any reference to such a behaviour, but struck out.
Thanks,
AndrewOops. Next time I'll take off the 90day limit on search history.
For others: In 11G the MODULE column of V$SESSION is updated with the Forms module name. [Oracle Support ID 1413688.1]
Cheers,
Andrew -
Find database name of sessions over database link
Hi,
I have a database in which i can see a few sessions which are connected to this database from one of my server which is hosting 2 databases. Now if i query v$session on my local database, i can only find the host name in program and module column of v$session view. How can i find out that from which database these sessions are established because i have two databases on that remote host from where these sessions are estableshed.
Thanks
Salmanonly way is if i have set the client info.alternatively application info.
I've never tried the following, but perhaps using different LISTENER or port could be used as a differentiator.
Keep in mind that what the local DB server "knows" is it serviced some connection request from remote client.
Local DB server knows little to nothing about any remote DB masquerading as a client connection.
This is an application issue not Oracle RDBMS issue.
Maybe you are looking for
-
I 'm getting notification saying there is software update for my phone but after it's downloaded I'm getting error message saying "the update was downloaded but couldn't be opened 8018830f error". can any one solve this issue for me please.
-
Issue to use all memory installed on server
currently running crystal report server 2008 (12.1.0.882) Crystal 32bit on powerfull Dell server R 905 with 64 Gig memory.. There are currently 15 instances of Crystal running on this server, with each being allocated a maximum of 2GB. The aim of t
-
Exception caught during processing mail message
I am getting the following error in CC monitoring for my sender mail adpater: exception caught during processing mail message; java.io.IOException: invalid IMAP status response; not finding * STATUS, but 001I NO The requested item could not be found.
-
FYI Notification using wf_engine.abort_process
Hi everyone, For a work item to be considered eligible for purging, all activities must be complete. This includes FYI notifications, which must be closed. So once i change the status of the activity to COMPLETE using wf_engine.abort_process, will th
-
Hi experts, I have a cube with following infoobjects. Material Material Description Customer Quantity Value Year I have a requirement to design a query with the above data. Which displays the records of