Web application sql trace ?

Hello all,
If i want to run a database trace for designer pl/sql web application would i follow the same steps that are executed when running sql trace from sqlplus that is dbms_session.set_sql_trace(true) DBMS_SESSION.SET_IDENTIFIER ?

Yes, that's right, there is no special consideration when from this perspective if the session is started from web or from another client.
You should consider you should properly identify the session when it logs in the db.
~ Madrid

Similar Messages

  • OCCI/ODBC application sql trace failure...

    Hi,
    I was doing the sql*net trace for an OCCI/ODBC Application writen in c++. I have an InstantClient on my PC. I was trying to access the Oracle through my C++ program to
    compare the performance of OCCI and ODBC.
    I was using the Oracle 10g(ver10.2.0.1.0 ), Oracle instant cilent(win32-10.2.0.3-20061115), and VS 8.0.
    TNSNAMES.ora:
    ORCL =  
      (DESCRIPTION =
      (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = host_name)(PORT = 1521))
      (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = ORCL)
    (SID = ORCL)
    LISTENER.ORA:(It was created by net manager.)
    SID_LIST_LISTENER =
      (SID_LIST =
      (SID_DESC =
      (GLOBAL_DBNAME = ORCL)
      (ORACLE_HOME = F:\oracle\product\10.1.0\Db_3)
      (SID_NAME = ORCL)
    LISTENER =
      (DESCRIPTION =
      (ADDRESS = (PROTOCOL = TCP)(HOST = HOST_NAME)(PORT = 1521))
    The sqlnet.ora file was writen to trace the client sql. Fortunately, my C++ program can access the oracle and get my result back successfully. In the same time, the trace files
    can be created, but when using the tkprof tool to explain it, it comes to the file with useless information.
    One of the *.trc file explaind by tkprof tool:
    Sort options: default
    count = number of times OCI procedure was executed
    cpu = cpu time in seconds executing
    elapsed = elapsed time in seconds executing
    disk = number of physical reads of buffers from disk
    query = number of buffers gotten for consistent read
    current = number of buffers gotten in current mode (usually for update)
    rows = number of rows processed by the fetch or execute call
    Trace file: ora21763.trc
    Trace file compatibility: 8.00.04
    Sort options: default
    1 session in tracefile.
    0 user SQL statements in trace file.
    0 internal SQL statements in trace file.
    0 SQL statements in trace file.
    0 unique SQL statements in trace file.
    327 lines in trace file.
    Finally, I got TNS-12518 TNS-12564 error. I tried to add DIRECT_HANDOFF_TTC_LISTENER=OFF, but it didnt work. I traced the listener, the error occured in the listener.trc "
    ntt2err: soc 464 error " and " nsbequeath: error reading REDIR/NSE msg".
    I just cann't get the right trace file and cann't sovle the two errors(TNS-12518 TNS-12564). Can somebody give me some advices, please.

    Hi,
    The TKPROF facility accepts as input an SQL trace file generated when SQL Trace has been turned on for the system or a session, not a SQL*NET trace file. A SQL*Net trace file is a dump of raw data packets and communications at the SQL*NET layer. If you want to get performance statistics from SQL beign executed by your application, then you need to turn on SQL Trace not SQL*MET tracing.
    To enable SQL trace at the system level, you need to execute:
    alter system set SQL_TRACE=TRUE
    The NS-12518 TNS-12564 normally means you are running into some sort of resource deletion issue. This can be caused by various things. Make sure you are properly cleaning up and closing sessions in your application.
    Are you performing some sort of stress test or have you just written a Multi-threaded test harness that executes different types of SQL with OCCI/ODBC?
    HTH
    J.B.

  • How to create a Web Application when SQL is running in SQL Authentication mode ?

    Hi,
    I a have the following config:
    SQL server 2012 with mixed authentication, running in the LAN
    IIS server with SharePoint 2013 SP1, running in a DMZ --> SharePoint contacts the SQL server with a SQL login (not a Windows login, the required port has been opened in the FW)
    SharePoint is working fine but when I want to create a new Web Application, I get an error: "Could not connect to MySQLServer\MySQLInstance,MyPortnumber using integrated security: Cannot
    connect to database master at SQL server. The database might not exist, or the current user does not have permission to connect to it."
    I think, since I use SQL authentification,  I have to use PowerShell. I found a script on the Internet but this script was not made to create a Web App which a SharePoint installed with SQL authentication.
    Can you help to adapt the script ?
    Thks
    THE SCRIPT Documentation:
    New-SPWebApplication -ApplicationPool <String> -Name <String> [-AdditionalClaimProvider <SPClaimProviderPipeBind[]>] [-AllowAnonymousAccess <SwitchParameter>] [-ApplicationPoolAccount <SPProcessAccountPipeBind>]
    [-AssignmentCollection <SPAssignmentCollection>] [-AuthenticationMethod <String>] [-AuthenticationProvider <SPAuthenticationProviderPipeBind[]>] [-Confirm [<SwitchParameter>]] [-DatabaseCredentials <PSCredential>] [-DatabaseName
    <String>] [-DatabaseServer <String>] [-HostHeader <String>] [-Path <String>] [-Port <UInt32>] [-SecureSocketsLayer <SwitchParameter>] [-ServiceApplicationProxyGroup <SPServiceApplicationProxyGroupPipeBind>] [-SignInRedirectProvider
    <SPTrustedIdentityTokenIssuerPipeBind>] [-SignInRedirectURL <String>] [-Url <String>] [-WhatIf [<SwitchParameter> ]] [<CommonParameters>]
    The Example:
    $siteName = “PowerShell for SharePoint”
    $port = 80
    $hostHeader = “lab.ps4sp.com”
    $url = “http://lab.ps4sp.com&#8221;
    $appPoolName = “PS4SPAppPool”
    $managedAccount = “PS4SPspservice”
    $dbServer = “PS-SQL”
    $dbName = “PS4SP_SP2010_LAB_ContentDB”
    $allowAnonymous = $true
    $authenticationMethod = “NTLM”
    $ssl = $false
    New-SPWebApplication -Name $siteName -Port $port -HostHeader $hostHeader -URL $url -ApplicationPool $appPoolName -ApplicationPoolAccount (Get-SPManagedAccount “$managedAccount”) -DatabaseName $dbName -DatabaseServer $dbServer -AllowAnonymousAccess: $allowAnonymous
    -AuthenticationMethod $authenticationMethod -SecureSocketsLayer:$ssl
    Charles

    Hi Scott,
    Based on your aticle, I changed my script by adding the credential, but I still have an error.
    Il also put the SQL specific port in the $dbServer variable.
    Any idea ?
    MY SCRIPT:
    $siteName = "TEST Site"
    $port = 80
    $hostHeader = "sharepoint.test.be"
    $url = "http://sharepoint.test.be"
    $appPoolName = "TestAppPool"
    $managedAccount = "DISNET\administrator"
    $authenticationMethod = "NTLM"
    $dbServer = "DSPORT-SQL02\DSPORTPRDEXT,50123"
    $dbName = "WSS_TEST_Content"
    $dbServer_secPassword = ConvertTo-SecureString "MySQLPassword" -AsPlaintext -Force
    $dbServer_Creds = New-Object System.Management.Automation.PsCredential "DMZSharePointLoginSQL", $dbServer_secPassword
    New-SPWebApplication -Name $siteName -Port $port -HostHeader $hostHeader -URL $url -ApplicationPool $appPoolName -ApplicationPoolAccount (Get-SPManagedAccount "$managedAccount") -AuthenticationMethod $authenticationMethod -DatabaseName
    $dbName -DatabaseServer $dbServer -DatabaseCredentials $dbServer_Creds
    Charles

  • Designer6i: About Page template filename Web PL/SQL Applications

    how can change the About Page template filename Web PL/SQL Applications
    Thank!!!
    my e-mail is: [email protected]

    Hi,
    Have you upgraded Apex?
    I assume you use XE EPG.
    Have you grant execute privilege on procedure to DAD user ANONYMOUS?
    GRANT EXECUTE ON WOLF_22.HELLO_WORLD TO ANONYMOUS;Have you changed wwv_flow_epg_include_mod_local that it allow execute WOLF_22.HELLO_WORLD?
    And write schema.procedure at upper case to function.
    If you have not upgraded Apex, run as SYS or SYSTEM
    CREATE OR REPLACE function FLOWS_020100.wwv_flow_epg_include_mod_local(
        procedure_name in varchar2)
    return boolean
    is
    begin
        -- Administrator note: the procedure_name input parameter may be in the format:
        --    procedure
        --    schema.procedure
        --    package.procedure
        --    schema.package.procedure
        -- If the expected input parameter is a procedure name only, the IN list code shown below
        -- can be modified to itemize the expected procedure names. Otherwise you must parse the
        -- procedure_name parameter and replace the simple code below with code that will evaluate
        -- all of the cases listed above.
        if upper(procedure_name) in (
              'WOLF_22.HELLO_WORLD'
        ) then
            return TRUE;
        else
            return FALSE;
        end if;
    end wwv_flow_epg_include_mod_local;
    /Regards,
    Jari

  • SQL Azure: Query Analyzer VS Web Application - Calling Stored Prcocedure

    I have a stored procedure in SQL Azure.
    Calling this stored procedure normally would take 30 minutes.
    I need to call this Stored procedure multiple times (18 times, with different input)
    Scenario 1: When I call this asynchronously from the Web Application, all 18 calls run concurrently so the whole process take about 30 minutes.
    Scenario 2: When I call this same stored procedure from Microsoft SQL Server Management Studio, (each process in a different TAB) they seem to be running very slowly, it has already taken more than 5 hours.
    Is there a reason for this ?
    Is there any difference in calling multiple stored procedures from different tabs ?
    Is this process running Asynchronously ?
    What is the best was to achieve scenario without going via the front end ?

    Is there a reason for this ?
    --When you are running the query, no matter application or SQL Server, please check sys.dm_exec_requests and check the session status in SQL Server and see if any difference.
    Maybe it is caused by blocking when running in SSMS. We need to dig into it.
    I am not sure how you call the procedure asynchronously  in application, but if they are sent to SQL Server within different connections/sessions, then it should be the same as SSMS.
    Is there any difference in calling multiple stored procedures from different tabs ?
    --No.
    Is this process running Asynchronously ?
    --When you start the procedure in SSMS, it is a synchronize session.
    However, the slowness should not be associated with the synchronization or not.
    Per my understanding, for the asynchronously calling in application, it simply means that application goes to execution other code without for SQL Server.
    This does not affect the real time cost in SQL Server.
    What is the best was to achieve scenario without going via the front end ?
    --We need to understand what cause the issue first. Normally they should be almost the same.
    Right now the procedure caused 30 minutes to complete and it is really too long. I think you'd better make adjustment to the code or logic to tune the performance first.

  • Handle SQL Server Agent in Web Application

    Hi,
     I have asp.net web application with SQL Server as back end. I have some SQL jobs to handle the transactions. Now the requirement is i need to handle the Agent from the front end.
    We can use SMO object for that. But as a newer can you guide me what are the challneges or problems create in this approach. Or any guidlines for correct approach. My scenarios are
    1. Can create jobs, shedule the jobs, and set alerts from the front end
    2. I need to show the Job execution history in the page
    3. I need to show the activity monitor in the page
    4. I need rerun the job when it is shown as failed from the page
    Also give guidlines to backup the history log so that i can clear the history after some duration

    In order to use SMO, you'll need to either install the prerequisite assebmlies.  This can be done by installing the SQL Server Client tools SDK from the SQL Server installation media or the SQL Server Shared Management Objects msi from the SQL Server
    feature pack.  Alternatively, as cmille19 suggested, you can simply call the SQL Agent procs directly from you code.  SMO simply calls stored procs under the covers (both documented and undocumented ones) to implement job management functionality.
    Dan Guzman, SQL Server MVP, http://www.dbdelta.com

  • SQL Server 2012 license Web Application for Public

    Hi,
    We have ASP.NET application and planned to host public accessible. So All public users can see my web application, then share the link via twitter,facebook and Linkedin.
    Can You suggest me which licensing model is best for me like, SQL 2012 Standard With CAL model or Core Licensing model. 
    Thanks,
    Thangaraj

     You can call Microsoft 1-800-426-9400 Monday through Friday, 6:00 A.M. to 6:00 P.M. (Pacific Time) to discuss licensing.
    Kalman Toth Database & OLAP Architect
    SELECT Query Video Tutorial 4 Hours
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

  • Charting within Web-PL/SQL Application - advice required please

    Currently trying to enhance our Designer generated Web-PL/SQL application by including charting.
    There is no provision to do this within Designer so are exploring other solutions, specifically using a server side servlet to render a chart as a gif, returning this to the client HTML page.
    Has anyone got any recommendations on what to use to do this?
    We've tried with limited success calling the Portal servlet (called chart) due to lack of documentation and relience on certain Portal procedures. We're currently experimenting with Oracle Chartbuilder, which looks promising, but would really like to know what the recommended or favorite solution is!
    Any feedback appreciated!
    Anthony

    user645399 wrote:
    Right now, I am displaying a table in the web by selecting all the records from a particular table.
    This is how I do it.Not a great way to display a report. This is not re-usable code. Difficult to maintain. Difficult to add or change the presentation of data.
    The proper way to do it, will be to use a DBMS_SQL cursor. After the cursor is opened, you use the describe function on the cursor that returns the number of columns in the cursor, the names of the columns, and their data types.
    This data is then used to fetch a column value from the cursor, and render it (as per its data type). This can easily be extended to make use of reporting templates and defaults and even style sheets to make rendering easy and flexible.
    DBMS_SQL is detailed in the [Oracle® Database PL/SQL Packages and Types Reference|http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_sql.htm#BABEDAHF] guide.
    Should I include a search engine? or how should I go about it? Is there a way to break the table into smaller parts using the dealer id?Why not use APEX? The above method that I've described is what is employed by APEX. So instead of writing that yourself, having to deal with dynamic variable binding, pagination, web state and security and so on.. APEX does all of this, and more, for you.

  • Web Application need to merge SQL and PDF on Server

    I have written a internal web application .aspx using Acrobat Pro 9 and LifeCycle.  I am using a California State PDF form that I cannot alter and merging data from SQL and an input form to produce the final PDF file.  The application works great on the development server where the software is installed. The issue I am having is that I want my users to access the web application from their personal PC's in the office to great it and it appears that I need to have Acrobat Pro 9 installed on their desktops.  This is not an acceptable solution for my 120 users.  Is there anyway I can create the final pdf on the server and just provide them with a directory of the final document?    This is my first application using Pro 9 and Life Cycle and really need anyone's help.  Can Pro 9 even do this on the server ?

    One of this:
    http://forums.adobe.com/community/livecycle/livecycle_es
    You can't use LiveCycle Designer or Adobe Acrobat on a server.

  • PL/SQL Web Application

    Hi buddies,
    I am working with a PL/SQL Web Application.
    htp.p('<form>');
    htp.p('<select name="seasons">');
    htp.p('<option value="winter">Winter');
    htp.p('<option value="spring">Spring');
    htp.p('<option value="summer">Summer');
    htp.p('<option value="fall">Fall');
    htp.p('</select>');I have 2 parts in the page, one is header and the other is body.
    I tried to add this to the header and access the value in a sql statement in the body like this
    displaying a table in html
    select .... from MyTable
    where MyTable.seas = seasons;I tried placing the form in the body, still I couldn't solve the issue.
    How can I retrieve the value for the selected value?
    Please advice.
    Thanks.
    Alagu

    Application Developer's Guide - Fundamentals Contents / Search / Index / PDF
    Chapter 18
    http://download-east.oracle.com/docs/cd/B10501_01/appdev.920/a96590.pdf
    Joel Pérez

  • Pl/sql web application login and logout problem

    Hi, every expert.
    I am making a web application with pl/sql, and I focus on the login and logout recently.
    I make use of owa_cookie to login and logout, it works wonder in login process as the cookie values are sent to the page successfully, and cookie info was killed successfully when logging out, but the problem is when i click the back button on the browser it can still go back to the previous page, only if i refresh it again it can work propely

    As far as I know, there is only Java API for managing the application. You might need to look into making some java web services to handle this.

  • Integegrate APEX within existing Web PL/SQL application?

    We have an old Designer-built Web PL/SQL application that we'd like to enhance by integrating new pages built with APEX - both applications reside on the same dataase, etc.
    The current application uses database authentication and consists of a couple of frames - 'menubar' contains a main menu and is a set of static HTML files, whilst 'home'  contains the web PL/SQL-generated pages. The generated pages are either holding a list of anchors to other web pl/sq pages (a 'local' menu)  or a 'real' web pl/sql page itself. I'd like to introduce APEX pages into this second frame through the use of the generated anchors.
    The application uses database authentication.
    I am planning to introduce the APEX pages at the 'anchor' level, but I need to carry across the web pl/sql authentication to the APEX application. To do this, I *think* that the anchor will call a procedure that records the current user in a table and associates a token with that entry, it  performs a redirect to the APEX page and passing the 'token' as an application variable parameter which the application uses it to find the user and deletes the table entry.
    Is there a simpler mechanism that I should be using?

    Hi,
    Have you upgraded Apex?
    I assume you use XE EPG.
    Have you grant execute privilege on procedure to DAD user ANONYMOUS?
    GRANT EXECUTE ON WOLF_22.HELLO_WORLD TO ANONYMOUS;Have you changed wwv_flow_epg_include_mod_local that it allow execute WOLF_22.HELLO_WORLD?
    And write schema.procedure at upper case to function.
    If you have not upgraded Apex, run as SYS or SYSTEM
    CREATE OR REPLACE function FLOWS_020100.wwv_flow_epg_include_mod_local(
        procedure_name in varchar2)
    return boolean
    is
    begin
        -- Administrator note: the procedure_name input parameter may be in the format:
        --    procedure
        --    schema.procedure
        --    package.procedure
        --    schema.package.procedure
        -- If the expected input parameter is a procedure name only, the IN list code shown below
        -- can be modified to itemize the expected procedure names. Otherwise you must parse the
        -- procedure_name parameter and replace the simple code below with code that will evaluate
        -- all of the cases listed above.
        if upper(procedure_name) in (
              'WOLF_22.HELLO_WORLD'
        ) then
            return TRUE;
        else
            return FALSE;
        end if;
    end wwv_flow_epg_include_mod_local;
    /Regards,
    Jari

  • Insert Form template filename web PL/SQL Applications

    Helpme please
    How i can change the default form insert in web PL/SQL
    Designer 6i
    Thank!!!
    e-mail [email protected]

    I am having issue loading data using Web ADI, I am getting "SQL exception occurred during PL/SQL upload" error, I tried to restart Apache, also looked into the BNE.log file for the exact error but I am still not sure about this exception, can anyone please help?Please rename the log file, reproduce the issue and check the log file then.
    bne:text="SQL exception occurred during PL/SQL upload."
    bne:cause="Database insert error"Please see these docs.
    R12 Uploading Intercompany Transactions Shows SQL Exception Occurred During PL/SQL Upload [ID 1234063.1]
    Batch Element Entry (BEE) Spreadsheet Interface > 10 Rows Fails with Error: 'SQL exception occured during PL/SQL Upload.' [ID 388012.1]
    How Do You Setup An AGIS Transaction That Has Several Transaction Lines For The Same Transaction [ID 946499.1]
    FCH: Error: "The upload process has completed with errors. Please Close to return to the document and fix the errors. - No rows uploaded - <999> rows were invalid" During WebADI Data Upload [ID 553025.1]
    R12: Legal Entity Name must be < 31 characters. [ID 472505.1]
    Oracle Payroll 'Batch Element Entry ( BEE )' Frequently Asked Questions ( FAQ ) [ID 1353021.1]
    Thanks,
    Hussein

  • About Page template filename Web PL/SQL Applications

    How i change the default About Page in Web PL/SQL
    Mi e-mail is [email protected]

    Hi,
    Have you upgraded Apex?
    I assume you use XE EPG.
    Have you grant execute privilege on procedure to DAD user ANONYMOUS?
    GRANT EXECUTE ON WOLF_22.HELLO_WORLD TO ANONYMOUS;Have you changed wwv_flow_epg_include_mod_local that it allow execute WOLF_22.HELLO_WORLD?
    And write schema.procedure at upper case to function.
    If you have not upgraded Apex, run as SYS or SYSTEM
    CREATE OR REPLACE function FLOWS_020100.wwv_flow_epg_include_mod_local(
        procedure_name in varchar2)
    return boolean
    is
    begin
        -- Administrator note: the procedure_name input parameter may be in the format:
        --    procedure
        --    schema.procedure
        --    package.procedure
        --    schema.package.procedure
        -- If the expected input parameter is a procedure name only, the IN list code shown below
        -- can be modified to itemize the expected procedure names. Otherwise you must parse the
        -- procedure_name parameter and replace the simple code below with code that will evaluate
        -- all of the cases listed above.
        if upper(procedure_name) in (
              'WOLF_22.HELLO_WORLD'
        ) then
            return TRUE;
        else
            return FALSE;
        end if;
    end wwv_flow_epg_include_mod_local;
    /Regards,
    Jari

  • SQL TRACE for WEB deployed report

    When I put
    Alter Session Set sql_trace=TRUE
    into the BEFORE Parameter Form trigger...
    I get a trace file showing data on the one SQL in that trigger.
    There is no TRACE output of the main query or any of the PL/SQL in the Program Units.
    The report is invoked from company-wide intra-net.
    I think it is Oracle Apps running in Linux server.
    What am I doing wrong?
    PS
    I cannot execute this report from Report Builder.

    Hello,
    Just a remark : if you are using Reports 9.0.4 / 10.1.2, you don't have to modify the reports , you can activate the SQL trace with the parameter SQLTRACE=YES
    http://www.oracle.com/webapps/online-help/reports/10.1.2/topics/htmlhelp_rwbuild_hs/rwrefex/cmdline/common/cla_sqltrace.htm
    Regards

Maybe you are looking for