(Is setting SQL against the session poosible)

My client of the company noted that there are jobs that are running longer than expected (5 days).
They have not made me any information.they want to run
Setting the SQL against the session runs this task.
can you run sql tunning against the session running advisor?
If so, how


Please suggest me your precious advice so that I approach this work correctly.

DB = 11g
OS = Solaris 10

880674 wrote:
can you run sql tunning against the session running advisor?

You cannot run SQL tuning advisor against a session, but if you have the privilege of s/n you can start a trace against an existing session and analyze the results of tkprof

Tags: Database

Similar Questions

  • Cannot install Google earth. Error in the administrator account: "your system administrator set policies against the installation of this program.

    Original title: why not my Windows XP SP3 machine allows installation of any product from google?

    I am running Windows XP SP3 and what-so-ever did not want to upgrade to Vista or Win7.
    Now I try to install google earth, what is happening is the setup.exe for downloading google earth data, but will not perform the installation process.

    I get an error message saying that "the installation failed, try again."
    So I asked google if he could understand that out and they were no help, so I decided to use the administrator account on my computer to install it, what was interesting on this topic (and disturbing) was that after running the same setup.exe file, a different error came up saying that "your system administrator set policies against installing this program" (or something like that)
    now, I checked everything in "Political system" under administrative options, but still no help.
    Can someone help me please?
    Derek "Rick."

    Well, it seems that the program has been installed, it was not recognized as a program in one of the directories, I have just fallen on the directory with the program Google earth work. The directory was hidden in the ~ temp file deep inside the C:\ drive

  • Unable to see the full text of SQL in the sessions of the monitor

    Hi guys,.

    I use SQL Developer 3.2 and when I followed sessions.

    I'm unable to see the full text of sql. Can someone guide me what setting do I do to see the full text of sql.

    Thank you

    Deepak

    you do not see the full text of design, this data dictionary that col stores only the first 1000 characters of the query

    You can Customize this report to get the full text if you wish... just read the column full_text instead, which is a CLOB

    in fact, this is the story in v3.2 - If you upgrade to version 4.0, we wonder SQL_FULLTEXT, and also make it more enjoyable to read code, throwing in a code editor

  • problem running the session of remote debugging for specific oracle sql developer

    I have a problem running the session of remote debugging of sql server specific oracle developer.
    I get the following error:
    Connection to the database mmgrep - INNA.
    PL/SQL execution: ALTER SESSION SET PLSQL_DEBUG = TRUE
    Running PL/SQL: CALL the DBMS_DEBUG_JDWP. CONNECT_TCP ('inna.followap.com', '4029')
    ORA-30683: failure connecting to debugger
    ORA-12535: TNS:operation expired
    ORA-06512: at "SYS." DBMS_DEBUG_JDWP', line 68
    ORA-06512: at line 1
    Process is complete.


    I understand that Oracle is unable to connect to my PC.
    I have 2 different oracle servers to work with the sql developer. With one I can run debugger, with another - the errow above.
    I need to change to be able to start debugging with second oracle server.

    In tools | Preferences | ebugger, you can specify a range of ports for the debugger to use so you can limit it to those that are open on the firewall.

    And just to check, is the ip address that is displayed in the CONNECT_TCP call the right one for your PC?

  • Failed to set the specified property while the session is running - 6552

    I created a program to run several different scripts.  The first time through my program works perfectly.  The second time through (without reset of the card, or re - download vectors etc.) but it fails.

    As he tried to run the following command:

    niHSDIO_ConfigureDataVoltageCustomLevels (DIO3_acq_session, 11-13, 18, 19', 1.8, 2.0)

    I have the following error:

    "Specified property cannot set while the session is running.
    Set the property before the opening of the session, or abandon the session before setting the property. »

    Any suggestions on what could happen?  Alternatively, any advice for troubleshooting techniques to learn more about the problem?

    I found my error:

    Several of my scripts include a list of markers so that the records are captured, and I download the recordings captured later.  Whenever I'm about to run a script that has files, I made the "niHSDIO_ConfigureAcquisitionSize" function in order to identify the size and quantity of records.

    However, the first script in my program that I run I don't need records captured, so I didn't bother to call the function "niHSDIO_ConfigureAcquisitionSize".

    So, first map like the default setting for the number of records for the first script (in which I do not bother with all the captured records), but then the subsequent pass in my stream of test cards do not like the fact that I have had set up for many more records that he caught (lack of markers / triggers).

    It's a little confusing to explain, but I found the problem, so any help is needed.

  • [ADF, JDev12.1.3] How/where to set the session timeout

    Hallo,

    After a few minutes of inactivity, the browser displays a message to inform that the session is not more active and only OK been must be clicked to refresh the page.

    If a dialog box "btf" has been opened on the left, it becomes...

    I would like to know what is the right place/method to set a deadline.

    If possible I would like that when the timeout checks, the application performs a redirect to a page I like (for example the login page).

    The application of ADF Essentials and is deployed to the GlassFish application server.

    My concern is... what should happen to the open operation / pending when the time-out occurs?

    For example, the user is modifying an af:table but it has not clicked validate or cancel...

    Thank you

    Federico

    I would like to know what is the right place/method to set a deadline.

    For java web applications, you can set the session timeout in the web.xml file. (this is the global settings associated with all sessions)

    If you wish, you can set the timeout of session by program (and this is related only to the current http session).

    If possible I would like that when the timeout checks, the application performs a redirect to a page I like (for example the login page).

    http://fortunefusionminds.blogspot.com/2014/04/how-to-redirect-to-custom-page-whenever.html

    ADF: Session expires management redirect to login page | Bungbutan

    ADF developers World: Detection and handling of user session expiry

    My concern is... what should happen to the open operation / pending when the time-out occurs?

    Well, session is destroyed, it will destroy all instances of AM and do rollback.

    See also: Andrejus Baranovskis Blog: ADF BC Application Module Instance Timeout and reliance Timeout of Session Web

    Dario

  • How to set the session bean of backing bean variable

    Hi all -

    I have a bean with a session variable and I want to set the value of this variable to a bean of support. Could someone please suggest how to achieve this.

    I use ADF 11 g.

    Greetings-
    Rohit

    Hello

    First of all, you need get the referral of bean in the bean to support session, and call the method that sets the value of the attribute. Getting session bean reference - you can use dependency injection, which is the best way, but you must register your bean in faces-config. XML (not adfc - config.xml, see http://biemond.blogspot.com/2010/04/ejb-injection-in-jsf-managed-bean.html).
    An alternative is to search the session bean's JNDI.
    Third option involves data controls: you create a session bean data control and then expose the method to fix your attribute value, in the calling page to jspx pageDef. To do this, you can't use method that begins with 'set', because you will not be able to exhibit in the pageDef (at least not with the Visual Editor). Then, you can call this method from the bean to support using this code:

            BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();
            OperationBinding operationBinding = bindings.getOperationBinding("yourSessionBeanMethodExposedInPageDef");
            operationBinding.execute();
    

    I hope this helps.
    Pedja

  • How to set the output of the report to the session variable

    Hello
    Is it possible to output report to the session variable value. If my report returns 1 row and 1 column.

    I have a dashboard command prompt where I select name, but I want to find the ID of the same name.
    This ID I want to move to a Fx column, to achieve this, I created an interim report and I got the code. Now my problem is how do I put this ID in the session variable.

    Please help if anyone knows...

    Have you read this:
    How to set the session / presentation in the repository variable variable

    Dashboard invites on Month Name but the report on the ID of the month filter:
    Re: Guest dashboard on the name of the month but the report on the necessary month ID filter

    If you have dashboard guest (name), then you can have that one report that is filtered by a name but present card to display or not id but use id in the service. Or two reports as in the solution in the second link above and the second report has id in the function and filter by the id of the first report. You need not define this ID in the session for this example variable.

    Please close your previous discussions, if they are treated.

    Concerning
    Goran
    http://108obiee.blogspot.com

  • How to set the session value to field item?

    Problem: The table insert source column is different from the column I get data for the update. I assign session by a process during extraction value but this value does not get assigned to the field. ?? Can someone give me a solution to this?
    Thank you

    Hello

    When the extraction process runs while recording for the form, it will use the values that exist in the folder, thus crushing any value you defined in the session.

    One thing you could try...

    1 create an element of application - through shared components - called, say, G_DEFAULT_VALUE
    2. on the page element that needs this value, type: G_DEFAULT_VALUE in the parameter of calculation calculation Post
    3 - instead of set point on page in your process/calculation, the value of the element of the application instead

    Then, regardless of the value on the record, the value of the application element is used instead. If this is not required in all cases, set the application to null element and use the following options for the calculation of calculation of post parameter:

    NVL (: G_DEFAULT_VALUE,: PAGEITEMNAME)

    Then, if the application element is null, the value of the page element (that is to say, the value of the record) will be used instead.

    Andy

  • Setting permissions to manage the Session side Analytics for the role of BIAuthor

    Hello world

    I'm giving BIAUTHOR roles permissions to manage the session side analytics by going to the Administartion-> manage-> privileges

    I added BIAUTHOR to the FOLLOWING times and Session management.

    now BIAUTHOR role users are able to see administration-> manage Sessions

    But I don't want them to see the session ID. I need them to see only newspapers. Is this possible and how? Help, please.

    No it is not possible to hide or to grant access only to the newspapers under manage sessions

  • Apex 5 - pl/sql, before the process of the header

    Hi all

    I have a PL/SQL process before header which read a table (with a key of the application element) and many elements of the page linked to the (authorized) db with a procedure in a package.

    In version 4.2, I could use page elements related to the column of the source table ' only when null... ", to place this items with PL/SQL, before that process the header and then submit them to update the db.

    Now in version 5, db binded items must have source "Always, replacing everything..", so how can I set this value points at a meeting with the process of pl/sql?

    I tried with the apex_util.set_session_state, but it does not work.

    Is there a way to do this without the need for dynamic action?

    Thanks in advance for your suggestions.

    Robi

    Hi Robi,

    Robi says:

    I have a PL/SQL process before header which read a table (with a key of the application element) and many elements of the page linked to the (authorized) db with a procedure in a package.

    Do you mean 'Automated line Fetch' process usually generated in the type wizard forms?

    In version 4.2, I could use page elements related to the column of the source table ' only when null... ", to place this items with PL/SQL, before that process the header and then submit them to update the db.

    Now in version 5, db binded items must have source "Always, replacing everything..", so how can I set this value points at a meeting with the process of pl/sql?

    I tried with the apex_util.set_session_state, but it does not work.

    Yes. It is newly introduced in Oracle APEX 5.0 forced a Page mapped to the DB column element should have used Source as "Always, replace the value that exists in the session state.

    You can change the Compatibility Mode of the APEX Application 4.2 to substitute the constraint.

    Reference: base Oracle: APEX 5 Source - attribute tolerates less mistakes

    Is there a way to do this without the need for dynamic action?

    If you want to stick to Oracle APEX 5.0 (and not to change the Compatibility Mode), then dynamic actions is the rest of the solution.

    Kind regards

    Kiran

  • After running sql of the lot, it is disconnected

    Hi all

    I wrote a batch program to run a pl/sql procedure. But after running, it disconnects.

    But I want to continue in the same session

    echo exec tracer.trace_pck.start_('alter session set sql_trace=true') | sqlplus hr/hr
    

    Output:

    Press a key to activate tracing

    SQL * more: Production of liberation 11.2.0.2.0 Thu Oct 10 15:59:56 2013

    Copyright (c) 1982, 2010, Oracle.  All rights reserved.

    Connected to:

    Oracle Database 11g Express Edition Release 11.2.0.2.0 - Production

    SQL >

    PL/SQL procedure successfully completed.

    SQL > disconnected from Oracle Database 11 g Express Edition Release 11.2.0.2.0.

    Production

    Trace enabled successfully. Press a key for entry you sql

    If you use a batch file, I assume you are using windows OS.

    Essentially, what you need to do is call a sql file in the batch file and then download the sql file to call all the other files.

    Batchfile test.bat file test.sql sql calls

    sqlplus /password @test.sql

    test. SQL calls test1.sql and test2.sql and stops

    @test1.sql;

    @test2.sql;

    "exit";

    test1. SQL displays the current sid and serial No. FRO our name and our session

    Select 'test1', sid, serial # in session $ v

    where audsid = userenv ('sessionid');

    test2. SQL displays the current sid and serial for our name and our session No.

    Select "test2", sid, serial # in session $ v

    where audsid = userenv ('sessionid');

    When you run this you get t output similar to the following: (your SID and serial will be different)

    ' TEST SID SERIAL #.

    ----- ---------- ----------

    771 97 Test1

    ' TEST SID SERIAL #.

    ----- ---------- ----------

    771 97 test2

    It shows two separate sql files have been called, but are always in the same session

  • the current user of the session & current schema

    Hi all


    ACC to a url
    "
    o CURRENT_USER: the name of the user whose privilege the session is running
    in the framework.

    o SESSION_USER: the name of the user who originally created this session? who is online
    in. It is constant for a session.

    o CURRENT_SCHEMA: the name of the default schema that will be used to resolve references
    for objects not qualified.
    "

    Session user is clearly making the distinction. My question is that is there any situation when the CURRENT_USER and CURRENT_SCHEMA is different? My understanding is that when we have a program of sup with authid define, then the user of the session I (if another user not the define called)
    is different and the current_schema is different. The current_schema is definers schema while the user of the session is the Summoner of the program overtime. I guess that this is a good understanding.


    Is EQUIVALENT to current_user, current_schema? If this is not the case, if someone can cite a small program to show the difference?

    As others have said, current_schema contols which schema for unqualified names are resolved in. It can be changed using:

    alter session set current_schema = 
    

    or in a stored procedure liike authid clause:

    SQL> Create Procedure test_definer as
      2     l_user           VARCHAR2(30);
      3     l_current_user   VARCHAR2(30);
      4     l_session_user   VARCHAR2(30);
      5     l_current_schema VARCHAR2(30);
      6  begin
      7     select user into l_user from dual;
      8
      9     select Sys_Context('USERENV', 'CURRENT_USER')
     10     into l_current_user
     11     from dual;
     12
     13     select Sys_Context('USERENV', 'SESSION_USER')
     14     into l_session_user
     15     from dual;
     16
     17     select Sys_Context('USERENV', 'CURRENT_SCHEMA')
     18     into l_current_schema
     19     from dual;
     20
     21     Dbms_Output.Put_Line ('User is: '||l_user);
     22     Dbms_Output.Put_Line ('Current User is: '||l_current_user);
     23     Dbms_Output.Put_Line ('Session User is: '||l_session_user);
     24     Dbms_Output.Put_Line ('Current_schema is: '||l_current_schema);
     25  end;
     26  /
    
    Procedure created.
    
    SQL> Create Procedure test_current
      2     authid Current_user as
      3     l_user           VARCHAR2(30);
      4     l_current_user   VARCHAR2(30);
      5     l_session_user   VARCHAR2(30);
      6     l_current_schema VARCHAR2(30);
      7  begin
      8     select user into l_user from dual;
      9
     10     select Sys_Context('USERENV', 'CURRENT_USER')
     11     into l_current_user
     12     from dual;
     13
     14     select Sys_Context('USERENV', 'SESSION_USER')
     15     into l_session_user
     16     from dual;
     17
     18     select Sys_Context('USERENV', 'CURRENT_SCHEMA')
     19     into l_current_schema
     20     from dual;
     21
     22     Dbms_Output.Put_Line ('User is: '||l_user);
     23     Dbms_Output.Put_Line ('Current User is: '||l_current_user);
     24     Dbms_Output.Put_Line ('Session User is: '||l_session_user);
     25     Dbms_Output.Put_Line ('Current_schema is: '||l_current_schema);
     26  end;
     27  /
    
    Procedure created.
    

    Copyright being the default, test_definer procedure works with the privileges and in the schema of the user Thatcreated in this oracle of $ case ops. The test_current procedure operates in the schema of the user calling him and privileges. So if we call both in the scheme of the owner that they are actually the same:

    SQL> exec test_definer;
    User is: OPS$ORACLE
    Current User is: OPS$ORACLE
    Session User is: OPS$ORACLE
    Current_schema is: OPS$ORACLE
    
    PL/SQL procedure successfully completed.
    
    SQL> exec test_current;
    User is: OPS$ORACLE
    Current User is: OPS$ORACLE
    Session User is: OPS$ORACLE
    Current_schema is: OPS$ORACLE
    
    PL/SQL procedure successfully completed.
    

    However, if we create a new user and give that run them both, we'll see a feel:

    SQL> create user a identified by a;
    
    User created.
    
    SQL> grant create session to a;
    
    Grant succeeded.
    
    SQL> grant execute on test_definer to a;
    
    Grant succeeded.
    
    SQL> grant execute on test_current to a;
    
    Grant succeeded.
    
    SQL> connect a/a
    Connected.
    SQL> exec ops$oracle.test_definer;
    User is: A
    Current User is: OPS$ORACLE
    Session User is: A
    Current_schema is: OPS$ORACLE
    
    PL/SQL procedure successfully completed.
    
    SQL> exec ops$oracle.test_current;
    User is: A
    Current User is: A
    Session User is: A
    Current_schema is: A
    
    PL/SQL procedure successfully completed.
    

    John

  • The default value for the elements of the page get ready when the session is disabled

    Hello

    I am facing this problem, do not know how to solve this problem. Basically, the default value 'elements' on the page don't prepare you when the session is disabled and I visit the page for the first time. So when I check the session for the first time, all page elements are null. But when I revisit the page, page elements sometimes gets.

    Don't know what I'm missing here... Someone has encountered this problem before?

    Thanks in advance! Kindly let me know if you need more clarification.

    Is there a way that the page element can be defined at the time the page is loaded for the first time?

    Yes. Create a "Page Rendering" PL/SQL process. That it is very early in the page rendering (i.e. "on charge ‑‑ after Header"). Set the value of the element of page here:

    BEGIN
      :P10_MY_ITEM := 15;
    END;
    
  • Why DB read file is still active after that the session was killed?

    Hello

    I have a query which is only select read only (no selection for update) on a big enough table (lines 500millions). The result must return a few million rows (1-10 million), because it is not properly written.

    I killed all the sessions opened by the user who started the application, but after 3 hours, it is still ongoing.

    I don't understand. It's a read. There is no data restoration that must be set aside, there is no generation of redo (low) because of this.
    There are a few kinds made in this query.

    So, why after that I'm killing a query that is read-only, the process runs for a very long time?

    It is not the first time I'm facing this problem.

    Any ideas?

    Thank you
    Daniel

    >
    I killed all the sessions opened by the user who started the application, but after 3 hours, it is still ongoing.
    >
    Have Yes - but you used the IMMEDIATE clause to kill HER?
    >
    IMMEDIATE specify IMMEDIATE load the Oracle database to ongoing transactions, releases all session locks, recover session state full and immediately returns control to you.
    >
    If you really want the process completed rather than simply "marked" termination then use DISCONNECT SESSION with the IMMEDIATE clause

    See the "Clause of DISCONNECT SESSION" in the doc of the SQL language
    http://docs.Oracle.com/CD/B28359_01/server.111/b28286/statements_2013.htm
    >
    Use the DISCONNECT SESSION clause to disconnect the current session to destroy the dedicated server process (or virtual circuit if the connection was made through a shared server).
    . . .
    The IMMEDIATE environment disconnects the session and retrieves the status of entire session immediately, without waiting for open transactions to complete.
    >
    View the results of the use of DISCONNECTION

Maybe you are looking for

  • How can I logg out of sync

    I just want to know how to connect out of firefox, once you have configured the YSC.

  • IPhone battery 5

    Is that normal my iphone 5 drain from 100% to 20% in 1 half hour? And when I play GTA san andreas games battery down from 100% to 50% in 10 minutes... Should I replace my 9 problems or iphone battery ios 5?

  • Sky go on yoga 3 10.1

    I managed to install the sky go app but keep getting the following error message "sky go does not support the miracast. I uninstalled, rebooted and reinstalled but still no joy. Can someone please help? Having a similar problem with the BT sport

  • Z510 - performance graphics card

    I have Lenovo Z510 and supported with NVIDIA GEFORCE 740 m and intel HD 4600 (2 GB total), 6 GB of RAM and 1 TB of HARD drive. When I play a HD game on battery performance of the demotion of the card and the game move slowly so that when I run it on

  • HP ENVY 5530: My HP PRINTER ENVY 5530 ACCOUNT

    Long boring story, but in a few words... 1.21 / 09/15 - printer had the paper jam false reviews on screen (there is no paper inside), HP tried to fix (via Chat for 2 hours), but couldn't trouble & said they would send a replacement printer.  CANNOT G