How to see SQL TEXT for inactive sessions.
Hi,
I have SID where the session have been completed.I wanna know,what the session has done.
Is there any sessions which has SQL TEXT of inactive sessions.
Thanks.Plz help me.
Hi,
As others already suggested, try this SQL below:
select sess.sid,
sess.serial#,
sess.username,
sql_text
from v$sqlarea sqlarea, v$session sess
where sess.prev_hash_value = sqlarea.hash_value
and sess.prev_sql_addr = sqlarea.address
and sess.username is not null
and sess.status='INACTIVE'; Cheers
Legatti
Similar Messages
-
How to enable remote debugging for a session other than the current one
Hi all,
I am trying to figure out how to enable remote debugging for a session other than the one I am currently using.
More specifically, we have an application that is making database calls to Oracle 11gR2. Something is causing an exception during this invocation. My system is currently not set up to recompile said application, so I can't just add the debug call to the code and recompile. Therefore I would like to be able to log into the database (as sys, if necessary) and invoke dbms_debug_jdwp.connect_tcp on the desired session.
The docs indicate that I should be able to do so:
dbms_debug_jdwp.connect_tcp(
host IN VARCHAR2,
port IN VARCHAR2,
session_id IN PLS_INTEGER := NULL,
session_serial IN PLS_INTEGER := NULL,
debug_role IN VARCHAR2 := NULL,
debug_role_pwd IN VARCHAR2 := NULL,
option_flags IN PLS_INTEGER := 0,
extensions_cmd_set IN PLS_INTEGER := 128);
But when I try (even as sys), I get the following:
exec dbms_debug_jdwp.connect_tcp('1.2.3.4',5678,<session id>,<session serial>);ORA-00022: invalid session ID; access denied
ORA-06512: at "SYS.DBMS_DEBUG_JDWP", line 68
ORA-06512: at line 1
00022. 00000 - "invalid session ID; access denied"
*Cause: Either the session specified does not exist or the caller
does not have the privilege to access it.
*Action: Specify a valid session ID that you have privilege to access,
that is either you own it or you have the CHANGE_USER privilege.
I've tried granting the 'BECOME USER' privilege for the relevant users, but that didn't help. I read something about having to set some kind of ACL as of 11gR1, but the reference documentation was very confusing.
Would someone be able to point me in the right direction? Is this even possible, or did I misread the documentation?Interesting deduction, that would be very useful indeed. I hate recompiling just to add the debug call, and it can't be done in our production environment. But it seems unlikely to me it would be implemented this way.
I would cross-post this in the SQL AND PL/SQL forum though, as this is really a database issue, not with the SQL Developer tool. Do add the links to the other posts in each.
Regards,
K. -
How to programatically select text for editing in an af:inputText control?
Hello, I am new to jdeveloper 11.1.1.3.0 and have searched and searched for info. I must be using the wrong terms as I cannot find any info or example on how to programatically select text for editing in an inputText field.
My request is to change an existing app so when the user presses a button, control should go to the inputText control (this part works, see existing backing bean code from another developer below) but automatically select the text within for editing by the user (saving the user from having to select the text first before editing).
Backing bean code to set the focus to an inputText field:
* sets the cursor to the given component id
* @param componentId of item on page
public void setFocusOnUIComponent(String componentId) {
FacesContext facesContext = FacesContext.getCurrentInstance();
ExtendedRenderKitService service =
Service.getRenderKitService(facesContext, ExtendedRenderKitService.class);
UIComponent uiComponent = facesContext.getViewRoot().findComponent(componentId);
service.addScript(facesContext,
"Component = AdfPage.PAGE.findComponentByAbsoluteId('" + componentId + "'); Component.focus();");
} I hope this isn't a dumb question and would appreciate it if someone can steer me in the right direction.
Thank you for any info,
GaryHi,
not a dumb question at all. Before answering it, here some comments on the code you pasted in your question
1. UIComponent uiComponent = facesContext.getViewRoot().findComponent(componentId);
This code line is not used at all in your method. So it seems you can get rid of it
2. "Component = AdfPage.PAGE.findComponentByAbsoluteId('" + componentId + "'); Component.focus();");
I suggest to change it to
"var component = AdfPage.PAGE.findComponentByAbsoluteId('" + componentId + "'); component.focus();");
as it is better coding practice to have variable names starting with a lower case letter and being flagged with the "var" identifier
For pre-selecting text in an an input component, there is no API available in ADF Faces, which means you need to reach out to the rendered HTML ouput. To access the markup for the rendered component, you can try
var markup = AdfRichUIPeer.getDomContentElementForComponent(component)
If this markup returns the HTML input component then you can use JavaScript you find on the Internet to select the area of it. If it does not return the input component then you may have to use
document.getElementById(componentId+'::content')
Note however that working directly with generated HTML output bears the risk that your code breaks when - for whatever reason - the ADF Faces component rendering changes in the future
Frank
Frank -
I have enhanced standard master datasource , How to load the Text for it?
Hi Experts,
I had enhanced 0MATERIAL_ATTR with ZTGRM field.User exit is written and the data is populated and checked in RSA3.
Replicated,loaded in BW side.Activated the master data.It shows only the attribute not the text.
Tried loading 0material_text and loaded successfully, activated but while maintaining the master data , i can able to see only the attribute values not the text.
Can any one help how to load the text for the enhanced attribute?
Thanks in advance
Ganesh KumarHi Tony,
Loaded the 0MATERIAL_TEXT ,also sucessful.
After loading activated the 0material but i could only see values for 0material_attr not for the 0material_text.
Can you tell me how to load the text data to the newly enhanced attribute??? -
How to see Trial Balance for a Segment
Hi Experts,
Does anybody has idea on how to see Triala Balance for a Segment ?
In Standard Reports for Balance Sheet and Profit & Loss, SAP B1 has provided option for filtering on Segment, but the same is not true for Trial Balance.
BR
Samir GandhiHi Samir,
yes it is possible to display Trial Balance in Segment format.
open Trial Balance Report, in the Upper right hand of the of the window next to G/L Accounts you can find the "FIND" button, click that one then the Find G/L Account window opens. from this window you cans Select Segmentation accounts.
regards,
Fidel -
How to invoke alt-text for images in a PDF file by Automation
Hi,
Can any one help me?
How to invoke Alt-text for Images in a PDF file using script?
Thanks for looking into this.
Regards,
SudhakarWhat do you mean "invoke" alt-text? If Alt-text is there, then it will be presented to a screen reader.
-
How to see profile history for role?
Hi..
I transported role from DEV to QAS...there in QAS profile not generated. throwed error RC=8..could you anybody tell me how to see profile history for that role in QASHi,
Please check the link below:
[click here|Current version not generated!
Edited by: Subramaniam Iyer on Jan 19, 2009 7:52 AM
Edited by: Subramaniam Iyer on Jan 19, 2009 7:59 AM
Edited by: Subramaniam Iyer on Jan 19, 2009 8:12 AM -
How to see Summarized Hierarchy for Variances after variance calculation
Hi,
How to see Summarized Hierarchy for Variances after variance calculation.
Thanks
Sunithahi Sunitha,
KOB3 is the t.code. assign me kindly.
regards
Sirisha -
HOw to find the text for PERSK field in infotype 0001
hi all
HOw to find the text for PERSK field in infotype 0001Hi
T503T : contained the similar informative text for PERSK . read this for T503T-PTEXT.
..lakhan -
Hi..how we enter standard text for smartform using include text
hi
guru
..how we enter standard text for smartform using include text..
i know only using so10 we write text..
in smartform it asking text-object
text-id,
so what values we should give to get textHi,
Do u want to print Standard Text or the Texts that are maintained at the Transaction level.
If it is standard text , then u use text id as ST or if it is Texts that are maintained at the Transaction level then u have to go to that specific transaction and check for that text , then go to text editor ,in the goto menu u have header data where u get the Text id , text name.... , use them in ur smartform in the INCLUDE text.
Further u have the option of text modules in smartforms which act as standard texts, so if u r going for creation of standard texts then its better to use text modules.
Regards,
Shafivullah Mohammad -
How to create sql query for item master with operator LIKE with variables?
hi all,
How to create sql query for item master with
operator LIKE(Contains,Start With,End With) with variables using query generator in SAP B1 ?
JeyakanthanHi Jeyakanthan,
here is an example (put the like statement into the where field)
SELECT T0.CardCode, T0.CardName FROM OITM T0 WHERE T0.CardName Like '%%test%%'
The %% sign is a wildcard. If you need start with write 'test%%' and otherwise ends with '%%test'. For contains you need '%%test%%'. You also could combinate this statements like 'test%%abc%%'. This means starts with test and contains abc.
Regards Steffen -
How to write sql query for counting pairs from below table??
Below is my SQL table structure.
user_id | Name | join_side | left_leg | right_leg | Parent_id
100001 Tinku Left 100002 100003 0
100002 Harish Left 100004 100005 100001
100003 Gorav Right 100006 100007 100001
100004 Prince Left 100008 NULL 100002
100005 Ajay Right NULL NULL 100002
100006 Simran Left NULL NULL 100003
100007 Raman Right NULL NULL 100003
100008 Vijay Left NULL NULL 100004
It is a binary table structure.. Every user has to add two per id under him, one is left_leg and second is right_leg... Parent_id is under which user current user is added.. Hope you will be understand..
I have to write sql query for counting pairs under id "100001". i know there will be important role of parent_id for counting pairs. * what is pair( suppose if any user contains both left_leg and right_leg id, then it is called pair.)
I know there are three pairs under id "100001" :-
1. 100002 and 100003
2. 100004 and 100005
3. 100006 and 100007
100008 will not be counted as pair because it does not have right leg..
But i dont know how to write sql query for this... Any help will be appreciated... This is my college project... And tommorow is the last date of submission.... Hope anyone will help me...
Suppose i have to count pair for id '100002'. Then there is only one pair under id '100002'. i.e 100004 and 100005Sounds like this to me
DECLARE @ID int
SET @ID = 100001--your passed value
SELECT left_leg,right_leg
FROM table
WHERE (user_id = @ID
OR parent_id = @ID)
AND left_leg IS NOT NULL
AND right_leg IS NOT NULL
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs -
How to define the texts for UI element Dropdownlistbykey?
Hi everyone,
I don't know how to define the texts for Dropdownlistbykey. It seems that Dropdownlistbykey has an attribute "selected key", but where can I bind the texts I want to display when user clicks the downwards
arrow?
Thanks in advance.hi,
you can use this code :
method WDDOINIT .
DATA : node_info TYPE REF TO if_wd_context_node_info,
value1 TYPE wdy_key_value,
set TYPE wdy_key_value_table,
k1 type string value 'M',
v1 type string value 'MAGO',
k2 type string value 'S',
v2 type string value 'Saurav'.
value1-key = k1.
value1-value = v1.
APPEND value1 to set.
value1-key = k2.
value1-value = v2.
APPEND value1 to set.
node_info = wd_context->get_node_info( ).
node_info = node_info->get_child_node('FOR_DROP').
node_info->set_attribute_value_set( name = 'DROP_KEY' value_set = set ).
I hope it helps.
Thanx. -
JDBC sessions timout - for inactive sessions
how can i define the timeout of inactive sessions (connections) on oracle database thru JDBC connetionPool technology - to de disconnected physically, is there a default timeout for the sessions to be disconnected.?
thanks for any help.The following is the Data Source that I am using:
<?xml version = '1.0' encoding = 'windows-1252'?>
<!DOCTYPE data-sources PUBLIC "Orion data-sources" "http://xmlns.oracle.com/ias/dtds/data-sources.dtd">
<data-sources>
<data-source
name="jdev-connection-Teradata"
class="com.evermind.sql.DriverManagerDataSource"
location="jdbc/TeradataCoreDS"
xa-location="jdbc/xa/TeradataXADS"
ejb-location="jdbc/TeradataDS"
pooled-location="jdbc/TeradataPooledDS"
connection-driver="com.ncr.teradata.TeraDriver"
username="GavinLDCHBull"
password="xxxxxx"
url="jdbc:teradata://FONEBONE/DATABASE=HABWaiver"
inactivity-timeout="30">
</data-source>
</data-sources>
We are using the ADF framework (i.e. entities and simple views) for accessing all Teradata data. I do not explicitly issue any JDBC calls for accessing the data. When I update the data, I use JDBC calls to initiate stored procedures. However, the problem (not closing the statements) happens almost immediately after starting the application, and prior to issuing any stored procedures.
I have not tried to duplicate the problem using a simple java program because I am using ADF for data access (again, I don't explicitly issue any JDBC statements). -
How to create clean text for the web in Photoshop/Illustrator
I am puzzled to death on how in the world to get clean text for the web in Photoshop/Illustrator, particularly white text. I want my text to turn out exactly like the text at this website: thepainteddoor.org
If you scroll down to the bottom of that page, notice the titles "Featured Media", "Social Networking", and "Contact Information". They are all .gif images. I have tried to replicate what these images look like for about 3 hours now to no avail. Can anyone tell me how to do this? It just looks like a simple outline or drop shadow, but I can't get it to show up like that. If someone could help me replicate that effect with text (aka make it show up clean as an image), I would graciously give them money through PayPal*.
* = I will only give cash if it will replicate it exactly (and I mean exactly)..and it won't be too much..I'm a poor college student. :-P
Thanks in advance!
ThomasYou would do it the way I created it:
Select the Text tool in Photoshop and set the font and parameters as I have listed. Then enter whatever text you like. It will be rendered over the top of the lower layers you may have in the document. Save as an image of the appropriate type and you're there.
Note that "lower layers you may have in the document" could conceivably be none at all (i.e., you render the text over a transparent document). You could imagine saving that as a .png with transparency and get light text in an image that could then be put over the top of anything else. The alpha mixing will see to it that the edges smoothly blend with the background. I haven't actually tried this (I usually do try my own suggestions) because of lack of time right now.
-Noel
Edit: Markerline and I seem to be on the same crystal-controlled wavelength.
Maybe you are looking for
-
Unable to find information on WS data binding error on WLS 9.2.03 startup
Frustratingly, when I Google for "WS data binding error" I get 'old' links to BEA forum issues which may help but these are nowhere to be seen on the read-only copies now on Oracle forums here :- http://forums.oracle.com/forums/category.jspa?category
-
How do I access my work mac from my home mac?
how do I access my work mac from my home mac?
-
Text in the title bar of an Accordion component
Hi - I have an accordion component on my swf. Its working right but the text in the title bars (where I click to flip the accordion pages) is coming up bold when I want it normal. How do I change this? Thanks. D2
-
TB freezes while typing in email address
While typing the address in the to: box, thunderbird freezes. I am on Ubuntu 14-04, thunderbird 31.5.0. The behavior happens periodically and also in safemode. It seems to be when i pause typing and it tries to look up the address in my address book.
-
Has anyone's iPhone ever just stopped working all together out of nowhere?
NEEEEEEEED HELP.