TIPS(35) : SCRIPTS THAT REPORT SESSION STATISTICS

제품 : SQL*PLUS
작성날짜 : 1997-02-10
TIPS(35) : SCRIPTS THAT REPORT SESSION STATISTICS
=================================================
SQLDBA Monitor screens get their information from the V$ tables in the
SGA. These tables can be queried directly to obtain this information
in a form that is sometimes more readable and easier to report.
Following are some SQL scripts that report session and system statistics.
1. Script to find the Session Id of the current session.
select s.sid sess_id
from v$process p, v$session s
where p.addr = s.paddr
and terminal = userenv('terminal');
2. Script to find the Oracle Session Id if the operating system
PID of the process is known.
select s.sid sess_id
from v$process p, v$session s
where p.addr = s.paddr
and p.spid = '&OS_PID';
3. Script to find statistic values for the current session.
Must be run from the same terminal as the session.
set numwidth 5
column orclname format a12 word_wrap
column sysname format a8 word_wrap
column name format a40 word_wrap
set recsep off
set pagesize 60
select st.sid sid, s.username orclname, p.username sysname,
n.name name, st.value value
from v$sesstat st, v$statname n, v$session s, v$process p
where st.statistic# = n.statistic#
and st.sid = s.sid
and s.paddr = p.addr
and p.terminal = userenv('terminal');
4. Script to find statistic values for the any session, if the operating
system PID of the process is known.
set numwidth 5
column orclname format a12 word_wrap
column sysname format a8 word_wrap
column name format a40 word_wrap
set recsep off
set pagesize 60
set verify off
select st.sid sid, s.username orclname, p.username sysname,
n.name name, st.value value
from v$sesstat st, v$statname n, v$session s, v$process p
where st.statistic# = n.statistic#
and st.sid = s.sid
and s.paddr = p.addr
and p.spid = '&OS_PID';
5. Script to find statistic values for the system.
column name format a40 word_wrap
set recsep off
set pagesize 60
select n.name name, st.value value
from v$sysstat st, v$statname n
where st.statistic# = n.statistic#;
The above scripts are written to be run from SQL*Plus. Exclude the
COLUMN and SET commands if you wish to run them from SQLDBA.

The issue is the report does not work.
I get an "error" where date information should have been shown.
I have attached a screen capture to show my problem.
Roger.

Similar Messages

  • Script to report constrained delegation

    Has anyone already created a script that reports constrained delegations for all user accounts in Active Directory?
    This topic first appeared in the Spiceworks Community

    Hello
    You can do something like this.
    ./quickcheck.sh PRIMARY
    You need an env file and then just call your sql ( quickaudit.sql) from the shell script. You can spool from the SQL and mail the spool file if you prefer.
    #!/bin/bash
    if [ "$1" ]
    then DBNAME=$1
    else
    echo "basename $0 : Syntax error : use . quickcheck <DBNAME> "
    exit 1
    fi
    # Set the Environmental variable for the instance
    . /u01/app/oracle/dba_tool/env/${DBNAME}.env
    $ORACLE_HOME/bin/sqlplus /nolog <<EOF
       connect / as sysdba
    @/u01/app/oracle/dba_tool/bin/quickaudit
    EOFThe env file needs an ORACLE_SID, path all the thing in your profile.
    Example from mine :
    ORACLE_BASE=/u01/app/oracle
    ULIMIT=unlimited
    ORACLE_SID=PRIMARY
    ORACLE_HOME=$ORACLE_BASE/product/11.2.0.2
    ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
    LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
    LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
    LIBPATH=$LD_LIBRARY_PATH:/usr/lib
    TNS_ADMIN=$ORACLE_HOME/network/admin
    PATH=$ORACLE_HOME/bin:$ORACLE_BASE/dba_tool/bin:/bin:/usr/bin:/usr/ccs/bin:/etc:/usr/sbin:/usr/ucb:$HOME/bin:/usr/bin/X11:/sbin:/usr/lbin:/GNU/bin/make:/u01/app/oracle/dba_tool/bin:/home/oracle/utils/SCRIPTS:/usr/local/bin:.
    export TERM=vt100
    export ORACLE_BASE ORACLE_SID ORACLE_TERM ULIMIT
    export ORACLE_HOME
    export LIBPATH LD_LIBRARY_PATH ORA_NLS33
    export TNS_ADMIN
    export PATHBest Regards
    mseberg

  • Script to report on clients that are not up to date with softwareupdate

    I'm not sure how to do it yet. I just need a script that I can run on multiple computers that will tell me what machines require updates and the number of updates. I considered doing something along the lines of:
    <code>softwareupdate --list |wc -l </code>
    but that does not seem to be fool proof since there are obviously lines of output regardless of whether there are updates or not. I just need to get back the number of patches missing from unpatched machines. We have our own SUS, so the only updates being pulled should already be approved.
    Please help.
    Thanks!

    Actually this is exactly what I need, a script that will read the output of softwareupdate --list and count the asterisks and return with a number of how many there were. If there were no asterisks then it can skip that machine.

  • How to implement tool tip functionality in SSRS report

    Hi,
    I want to implement the tool tip functionality in on report.
    Requirement is like this, When ever I have to move my mouse to the 
    particular below mentioned column the fully qualified name should have to shown in the tool tip.
    What are all the thing I have to use to implement on this.
    Whether I have to use the java script or anything else.
    Please let me know..

    Hello,
    We already have a build-in tooltip functionality in reporting services / report Definition, simply use that:
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • I am trying to build a basic TCL skeleton script that reads a remote SNMP OID and displays the value on the screen.

    I am trying to build a basic TCL skeleton script that reads a remote SNMP OID and displays the value on the screen.
    I don't want it to be an EEM Event, I just want to run it from the (tcl)# prompt.
    So I guess I'm asking if you can use cli_exec and other commands in the "namespace import ::cisco::eem::*" in a normal non-EEM script - can I do that?
    This is the error I get:
    OTN.159(tcl)#source flash:TCL_SNMP_Remote_Read.tcl
    invalid command name "::cisco::eem::event_register_none"             ^
    % Invalid input detected at '^' marker.
    What am I missing?
    =================  TCL_SNMP_Remote_Read.tcl  ==============================
    ::cisco::eem::event_register_none
    namespace import ::cisco::eem::*
    namespace import ::cisco::lib::*
    if [catch {cli_open} RESULT]
        { error $RESULT $errorInfo }
        else { array set cli1 $RESULT }
    if [catch {cli_exec $cli1(fd) "snmp get v2c 192.168.1.100 public timeout 1 oid 1.3.6.1.2.1.1.1.0" } RESULT]
           { error $RESULT $errorInfo  }
           else { set SnmpSysDesc $RESULT }
    if [catch {cli_close $cli1(fd) $cli1(tty_id)} RESULT] {
                error $RESULT $errorInfo
    puts $SnmpSysDesc
    =========================================================================
    In the sho-run config I have:
    event manager directory user policy "flash:/"
    event manager session cli username "cisco"
    Any help to get me started would be greatly appreciated!
    Tim

    If you don't want an EEM policy, then don't use any of the EEM constructs.  Instead, all you need is this:
    set output [exec "snmp get v2c 192.168.1.100 public timeout 1 oid 1.3.6.1.2.1.1.1.0"]puts $output

  • TIPS(16) : PROVIDING USERS WITH SESSION INFORMATION

    제품 : SQL*PLUS
    작성날짜 : 1996-11-12
    TIPS(16) : Providing Users with Session Information
    ===================================================
    rem
    rem orasessn.sql
    rem
    rem
    rem This script is used to provide users with information regarding their
    rem oracle sessions.
    rem The USER_SESSION view provides information related only to the
    rem current session for a user; while the ALL_SESSIONS relates to all
    rem sessions within the database for a user.
    rem The DBA_SESSION can only be viewed by the
    rem Oracle sys id (and anyone granted select on this view).
    rem The DBA_SESSION lists all oracle sessions excluding the Oracle
    rem generic processes (dbwr, pmon, smon, etc.).
    rem The SID and SERIAL# can be used with killing sessions.
    This script must be run from the Oracle sys id.
    rem --------------------------------------------------------------------------
    rem
    set echo on;
    spool orasessn;
    rem
    drop public synonym ALL_SESSIONS;
    create or replace view ALL_SESSIONS
    (USERNAME, OS_USER, SID, SERIAL#, STATUS, SERVICE, DATABASE,
    CURSORS, MACHINE, TERMINAL, PROGRAM)
    as
    select substr(v1.username,1,20), substr(v1.osuser,1,12),
    to_char(v1.sid,'999'), to_char(v1.serial#,'999999'),
    v1.status, v1.server, substr(v3.value,1,10), v2.value,
    substr(v1.machine,1,15), v1.terminal, v1.program
    from v$session v1, v$sesstat v2, v$parameter v3
    where v1.username = user
    and v2.sid = v1.sid
    and v2.statistic# = 3
    and v3.name = 'db_name' ;
    grant select on ALL_SESSIONS to PUBLIC;
    create public synonym ALL_SESSIONS for ALL_SESSIONS;
    rem
    drop public synonym USER_SESSIONS;
    create or replace view USER_SESSIONS
    (USERNAME, OS_USER, SID, SERIAL#, STATUS, SERVICE, DATABASE,
    CURSORS, MACHINE, TERMINAL, PROGRAM)
    as
    select substr(v1.username,1,20), substr(v1.osuser,1,12),
    to_char(v1.sid,'999'), to_char(v1.serial#,'999999'),
    v1.status, v1.server, substr(v3.value,1,10), v2.value,
    substr(v1.machine,1,15), v1.terminal, v1.program
    from v$session v1, v$sesstat v2, v$parameter v3
    where v1.audsid = userenv('SESSIONID')
    and v2.sid = v1.sid
    and v2.statistic# = 3
    and v3.name = 'db_name' ;
    grant select on USER_SESSIONS to PUBLIC;
    create public synonym USER_SESSIONS for USER_SESSIONS;
    rem
    create or replace view DBA_SESSIONS
    (USERNAME, OS_USER, SID, SERIAL#, STATUS, SERVICE, DATABASE,
    CURSORS, MACHINE, TERMINAL, PROGRAM)
    as
    select substr(v1.username,1,20), substr(v1.osuser,1,12),
    to_char(v1.sid,'999'), to_char(v1.serial#,'999999'),
    v1.status, v1.server, substr(v3.value,1,10), v2.value,
    substr(v1.machine,1,15), v1.terminal, v1.program
    from v$session v1, v$sesstat v2, v$parameter v3
    where v1.username is not null
    and v2.sid = v1.sid
    and v2.statistic# = 3
    and v3.name = 'db_name' ;
    rem -------------------------------------------------------------------
    spool off;

    제품 : SQL*PLUS
    작성날짜 : 1996-11-12
    TIPS(16) : Providing Users with Session Information
    ===================================================
    rem
    rem orasessn.sql
    rem
    rem
    rem This script is used to provide users with information regarding their
    rem oracle sessions.
    rem The USER_SESSION view provides information related only to the
    rem current session for a user; while the ALL_SESSIONS relates to all
    rem sessions within the database for a user.
    rem The DBA_SESSION can only be viewed by the
    rem Oracle sys id (and anyone granted select on this view).
    rem The DBA_SESSION lists all oracle sessions excluding the Oracle
    rem generic processes (dbwr, pmon, smon, etc.).
    rem The SID and SERIAL# can be used with killing sessions.
    This script must be run from the Oracle sys id.
    rem --------------------------------------------------------------------------
    rem
    set echo on;
    spool orasessn;
    rem
    drop public synonym ALL_SESSIONS;
    create or replace view ALL_SESSIONS
    (USERNAME, OS_USER, SID, SERIAL#, STATUS, SERVICE, DATABASE,
    CURSORS, MACHINE, TERMINAL, PROGRAM)
    as
    select substr(v1.username,1,20), substr(v1.osuser,1,12),
    to_char(v1.sid,'999'), to_char(v1.serial#,'999999'),
    v1.status, v1.server, substr(v3.value,1,10), v2.value,
    substr(v1.machine,1,15), v1.terminal, v1.program
    from v$session v1, v$sesstat v2, v$parameter v3
    where v1.username = user
    and v2.sid = v1.sid
    and v2.statistic# = 3
    and v3.name = 'db_name' ;
    grant select on ALL_SESSIONS to PUBLIC;
    create public synonym ALL_SESSIONS for ALL_SESSIONS;
    rem
    drop public synonym USER_SESSIONS;
    create or replace view USER_SESSIONS
    (USERNAME, OS_USER, SID, SERIAL#, STATUS, SERVICE, DATABASE,
    CURSORS, MACHINE, TERMINAL, PROGRAM)
    as
    select substr(v1.username,1,20), substr(v1.osuser,1,12),
    to_char(v1.sid,'999'), to_char(v1.serial#,'999999'),
    v1.status, v1.server, substr(v3.value,1,10), v2.value,
    substr(v1.machine,1,15), v1.terminal, v1.program
    from v$session v1, v$sesstat v2, v$parameter v3
    where v1.audsid = userenv('SESSIONID')
    and v2.sid = v1.sid
    and v2.statistic# = 3
    and v3.name = 'db_name' ;
    grant select on USER_SESSIONS to PUBLIC;
    create public synonym USER_SESSIONS for USER_SESSIONS;
    rem
    create or replace view DBA_SESSIONS
    (USERNAME, OS_USER, SID, SERIAL#, STATUS, SERVICE, DATABASE,
    CURSORS, MACHINE, TERMINAL, PROGRAM)
    as
    select substr(v1.username,1,20), substr(v1.osuser,1,12),
    to_char(v1.sid,'999'), to_char(v1.serial#,'999999'),
    v1.status, v1.server, substr(v3.value,1,10), v2.value,
    substr(v1.machine,1,15), v1.terminal, v1.program
    from v$session v1, v$sesstat v2, v$parameter v3
    where v1.username is not null
    and v2.sid = v1.sid
    and v2.statistic# = 3
    and v3.name = 'db_name' ;
    rem -------------------------------------------------------------------
    spool off;

  • Script that enables mail users and kicks out two csv files

    I am working on a script that will mainly be used as a scheduled task to enabled mailuser by calling the update-recipient command. 
    But before it calls that command it will get for various issues that can cause errors.
    Missing PrimarySMTP
    Display name having a space at front or back.
    The external email address being blank.
    I have IF statements setup to check for those and then call a function that will save into an array the issue for that user. 
    Here is the script
    <#
    .SYNOPSIS
    Enable-MailUsers Synced Mail Users in the Exchange environment
    THIS CODE IS MADE AVAILABLE AS IS, WITHOUT WARRANTY OF ANY KIND. THE ENTIRE
    RISK OF THE USE OR THE RESULTS FROM THE USE OF THIS CODE REMAINS WITH THE USER.
    Version .9, 30 June 2014
    .DESCRIPTION
    This script mail-enables Synced Mail Users and creates a CSV report of mail users that were enabled.
    The following is shown:
    * Report Generation Time
    .PARAMETER SendMail
    Send Mail after completion. Set to $True to enable. If enabled, -MailFrom, -MailTo, -MailServer are mandatory
    .PARAMETER MailFrom
    Email address to send from. Passed directly to Send-MailMessage as -From
    .PARAMETER MailTo
    Email address to send to. Passed directly to Send-MailMessage as -To
    .PARAMETER MailServer
    SMTP Mail server to attempt to send through. Passed directly to Send-MailMessage as -SmtpServer
    .PARAMETER ScheduleAs
    Attempt to schedule the command just executed for 10PM nightly. Specify the username here, schtasks (under the hood) will ask for a password later.
    .EXAMPLE
    Generate the HTML report
    .\Enable-MailUsers.ps1 -SendMail -MailFrom [email protected] -MailTo [email protected] -MailServer ex1.contoso.com -ScheduleAs SvcAccount
    #>
    param(
    [parameter(Position=0,Mandatory=$false,ValueFromPipeline=$false,HelpMessage='Send Mail ($True/$False)')][bool]$SendMail=$false,
    [parameter(Position=1,Mandatory=$false,ValueFromPipeline=$false,HelpMessage='Mail From')][string]$MailFrom,
    [parameter(Position=2,Mandatory=$false,ValueFromPipeline=$false,HelpMessage='Mail To')]$MailTo,
    [parameter(Position=3,Mandatory=$false,ValueFromPipeline=$false,HelpMessage='Mail Server')][string]$MailServer,
    [parameter(Position=4,Mandatory=$false,ValueFromPipeline=$false,HelpMessage='Schedule as user')][string]$ScheduleAs
    # Sub Function to neatly update progress
    function _UpProg1
    param($PercentComplete,$Status,$Stage)
    $TotalStages=5
    Write-Progress -id 1 -activity "Mail enabled Objects" -status $Status -percentComplete (($PercentComplete/$TotalStages)+(1/$TotalStages*$Stage*100))
    #Sub Function create ErrObject output
    function _ErrObject{
    Param($name,
    $errStatus
    If(!$err){
    Write-Host "error detected"
    $script:err = $True
    $ErrObject = New-Object -TypeName PSObject
    $Errobject | Add-Member -Name 'Name' -MemberType Noteproperty -Value $Name
    $Errobject | Add-Member -Name 'Comment' -MemberType Noteproperty -Value $errStatus
    $script:ErrOutput += $ErrObject
    # 1. Initial Startup
    # 1.0 Check Powershell Version
    if ((Get-Host).Version.Major -eq 1)
    throw "Powershell Version 1 not supported";
    # 1.1 Check Exchange Management Shell, attempt to load
    if (!(Get-Command Get-ExchangeServer -ErrorAction SilentlyContinue))
    if (Test-Path "D:\Exchsrvr\bin\RemoteExchange.ps1")
    . 'D:\Exchsrvr\bin\RemoteExchange.ps1'
    Connect-ExchangeServer -auto
    } elseif (Test-Path "D:\Exchsrvr\bin\Exchange.ps1") {
    Add-PSSnapIn Microsoft.Exchange.Management.PowerShell.Admin
    .'D:\Exchsrvr\bin\Exchange.ps1'
    } else {
    throw "Exchange Management Shell cannot be loaded"
    # 1.2 Check if -SendMail parameter set and if so check -MailFrom, -MailTo and -MailServer are set
    if ($SendMail)
    if (!$MailFrom -or !$MailTo -or !$MailServer)
    throw "If -SendMail specified, you must also specify -MailFrom, -MailTo and -MailServer"
    # 1.3 Check Exchange Management Shell Version
    if ((Get-PSSnapin -Name Microsoft.Exchange.Management.PowerShell.Admin -ErrorAction SilentlyContinue))
    $E2010 = $false;
    if (Get-ExchangeServer | Where {$_.AdminDisplayVersion.Major -gt 14})
    Write-Warning "Exchange 2010 or higher detected. You'll get better results if you run this script from an Exchange 2010/2013 management shell"
    }else{
    $E2010 = $true
    $localserver = get-exchangeserver $Env:computername
    $localversion = $localserver.admindisplayversion.major
    if ($localversion -eq 15) { $E2013 = $true }
    #Get date
    $filedate = get-date -uformat "%m-%d-%Y"
    $filedate = $filedate.ToString().Replace("0", "")
    #Get the valid users that are not mail-enabled
    _UpProg1 1 "Getting User List" 1
    #$Users = Get-mailuser -ResultSize unlimited -OrganizationalUnit "R0018.COLLABORATION.ECS.HP.COM/Accounts/AbbVienet/Users" | ?{$_.legacyexchangeDN -eq ""}
    $i = 0
    $output = @()
    $errOutput = @()
    $err = $False
    #2 Process users
    ForEach ($User in $Users){
    $i++
    _UpProg1 ($i/$Users.Count*100) "Updating Recipients" 2
    If ($user.ExternalEmailAddress -eq $null){
    _ErrObject $user.Name, "Missing External Email Address"
    ElseIf($user.DisplayName -NotLike "* "){
    _ErrObject $user.Name, "DisplayName contains a trailing space"
    ElseIf($user.DisplayName -NotLike "_*"){
    _ErrObject $user.Name, "DisplayName contains a Leading space"
    ElseIf($user.PrimarySmtpAddress -eq $null){
    _ErrObject $user.Name, "Missing Primary SMTP address"
    Else{
    #Disable EmailAddressPolicy on these users
    Set-Mailuser $User.Name -EmailAddressPolicyEnabled $false
    #pass to Update-recipient
    Update-Recipient $User.Name
    $LEDN = Get-MailUser $User.Name | Select {$_.LegacyExchangeDN}
    If ($LEDN -ne ""){
    $object = New-Object -TypeName PSObject
    $X500 = "x500:" + $LEDN.'$_.LegacyExchangeDN'
    $object | Add-Member -Name 'Name' -MemberType Noteproperty -Value $User.Name
    $object | Add-Member -Name 'x500' -MemberType Noteproperty -Value $X500
    $output += $object
    #Creating CSVFile Output
    _UpProg1 99 "Outputting CSV file 3" 3
    $CSVFile = "c:\scripts\Mail-enable\Mailenabled_$((Get-Date).ToString('MM-dd-yyyy_hh-mm-ss')).csv"
    If($err){
    $ErrCSVFile = "c:\scripts\Mail-enable\ProblemUsers_$((Get-Date).ToString('MM-dd-yyyy_hh-mm-ss')).csv"
    $errOutput | Select-Object Name, Comment | ConvertTo-CSV -NoTypeInformation > $ErrCSVFIle
    $Output | ConvertTo-Csv -NoTypeInformation > $CSVFile
    if ($SendMail)
    _UpProg1 95 "Sending mail message.." 4
    If($err){
    Send-MailMessage -Attachments $CSVFile,$ErrCSVFile -To $MailTo -From $MailFrom -Subject "Enable Mail Users Script" -BodyAsHtml $Output -SmtpServer $MailServer
    Else{
    Send-MailMessage -Attachments $CSVFile -To $MailTo -From $MailFrom -Subject "Enable Mail Users Script" -BodyAsHtml $Output -SmtpServer $MailServer
    if ($ScheduleAs)
    _UpProg1 99 "Attempting to Schedule Task.." 4
    $dir=(split-path -parent $myinvocation.mycommand.definition)
    $params=""
    if ($SendMail)
    $params+=' -SendMail:$true'
    $params+=" -MailFrom:$MailFrom -MailTo:$MailTo -MailServer:$MailServer"
    $task = "powershell -c \""pushd $dir; $($myinvocation.mycommand.definition) $params\"""
    Write-Output "Attempting to schedule task as $($ScheduleAs)..."
    Write-Output "Task to schedule: $($task)"
    schtasks /Create /RU $ScheduleAs /RP /SC DAILY /ST 22:00 /TN "Enable Mail Users" /TR $task
    The Problem is that when I look at the $errOutput I see things but when I pipe the $erroutput to convertTo-CSV I get this within the CSV file. I think its because I an calling a function to do the updating. But not sure.
    Jeff C

    Hi Jeff,
    Any updates? If you have any other questions, please feel free to let me know.
    A little clarification to the script:
    function _ErrObject{
    Param($name,
    $errStatus
    If(!$err){
    Write-Host "error detected"
    $script:err = $True
    $ErrObject = New-Object -TypeName PSObject
    $Errobject | Add-Member -Name 'Name' -MemberType Noteproperty -Value $Name
    $Errobject | Add-Member -Name 'Comment' -MemberType Noteproperty -Value $errStatus
    $script:ErrOutput += $ErrObject
    $errOutput = @()
    _ErrObject Name, "Missing External Email Address"
    $errOutput
    _ErrObject Name "Missing External Email Address"
    $errOutput
    If you have any feedback on our support, please click here.
    Best Regards,
    Anna Wang
    TechNet Community Support

  • Need user message  when trying to run report when report session is already open.

    HI !!
    I have GUI application bulid in C++ and we call reports from
    there.
    My user ran a report and minimized the sceen display of the
    report. He then clicked Task/Reports and selected a differnet
    report from the selection list. After he clicked OK nothing
    happened. He believes a message box should appear at this point
    to notify the user that a report session is already opened and
    must be closed before generation of another report can be
    started. This has happened to him several times where he
    minimized a report that he ran and then worked on something else
    for a while and forgot that he had a report open. He then went
    back and tried to run another report and nothing would happen.
    Can we fix this isuue, I mean is there any way to run a differnt
    report if report session is already open.
    Please advise.
    Kind Regards
    SP

    HI,
    Is this qury is running fine in SQL?? Have you checked this query in Sql server(Management studio) whether working or not??.
    I feel there is some mismatch with relations in query.. Cross check your query once in SQL itself. once it is running well, we will take a look.
    Regards,
    Salah.

  • BW Table for crystal report runtime statistics

    Hi All !
    I need to do some analysis on the runtime of crystal reports. Is there any table in BW side, that shows the statistics of executed crystal reports ?I want to see information like, start time, end time etc.
    Thanks in advance.
    Ozan

    Post your question BEX and B1 and classic SAP data source issues to the Integration Kit forum

  • Report session crossing sessions????

    hi all,
    I wrote a crystal web server using asp.net security.  i have multibple reports in a few different directories, and i have a report viewer form in each secured directory.  when i load a particlular report on one machine's web browser, if i go to another machine and launch that report, the report instantly shows up with the parameters selected on the other machine.
    I have not experienced this before, and makes the report site kinda useless.  Can anyone help me figure out why these reports aren't treated as separate sessions?
    sorry for the formatting, but this site isn't taking linefeeds/returns....
    here is the markup for the frmReportViewer.aspx page:
    <form id="form1" runat="server">       
            <CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server"
                AutoDataBind="true" BestFitPage="False"   Width="1100" Height="680"
                    ReportSourceID="CrystalReportSource1" BorderColor="#000099"
                    BorderStyle="Inset" PrintMode="ActiveX" />
            <CR:CrystalReportSource ID="CrystalReportSource1" runat="server">
                <Report FileName="">
                </Report>
            </CR:CrystalReportSource>
        </form>  
    *here is the vb code for the frmReportViewer.aspx page:*
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
            Me.CrystalReportViewer1.HasCrystalLogo = False
            If Not IsPostBack Then
                ReportName = Request.QueryString("reportname") & ".rpt"
                Me.CrystalReportSource1.Report.FileName = ReportName
                DBConnectionForReports(CrystalReportSource1.ReportDocument)
            End If
        end sub
    <br>
        Public Function DBConnectionForReports(ByRef rpt As ReportDocument) As Boolean
            Dim logonInfo As New TableLogOnInfo
            'Dim table As System.Web.UI.WebControls.Table
            Dim srptServer As String
            Dim srptUN As String
            Dim srptPass As String
            Dim crConnInfo As New ConnectionInfo
            Dim subRepDoc As New ReportDocument
            Dim table As Table
            For Each table In rpt.Database.Tables
                srptServer = "calp"
                srptUN = "cdiappsro"
                srptPass = System.Configuration.ConfigurationManager.AppSettings.Item("OraclePassword").ToString
                logonInfo = table.LogOnInfo
                logonInfo.ConnectionInfo.ServerName = srptServer
                logonInfo.ConnectionInfo.UserID = srptUN
                logonInfo.ConnectionInfo.Password = srptPass
                logonInfo.TableName = table.Name
                table.ApplyLogOnInfo(logonInfo)
            Next table
        End Function
    Edited by: george hardy on Mar 29, 2010 3:06 PM

    Imports CrystalDecisions.ReportSource
    Imports CrystalDecisions.Shared
    Imports CrystalDecisions.Reporting
    Imports CrystalDecisions.CrystalReports
    Imports CrystalDecisions.CrystalReports.Engine.ReportDocument
    Imports CrystalDecisions.CrystalReports.Engine
    Partial Class ReportViewer
        Inherits System.Web.UI.Page
        Private ReportName As String
        Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
            If Not IsPostBack Then
                ReportName = Request.QueryString("reportname") & ".rpt"
                Me.CrystalReportSource1.Report.FileName = ReportName
                DBConnectionForReports(CrystalReportSource1.ReportDocument)
            End If
        End Sub
        Dim crConnectionInfo As New ConnectionInfo
        Dim CrTables As Tables
        Dim CrTable As System.Web.UI.WebControls.Table
        Public Function DBConnectionForReports(ByRef rpt As ReportDocument) As Boolean
            Dim logonInfo As New TableLogOnInfo
            'Dim table As System.Web.UI.WebControls.Table
            Dim srptServer As String
            Dim srptUN As String
            Dim srptPass As String
            Dim crConnInfo As New ConnectionInfo
            Dim subRepDoc As New ReportDocument
            Dim table As Table
            For Each table In rpt.Database.Tables
                srptServer = "calp"
                'srptDatabase = ConfigurationSettings.AppSettings("rptDatabase")
                srptUN = "cdiappsro"
                srptPass = System.Configuration.ConfigurationManager.AppSettings.Item("OraclePassword").ToString
                logonInfo = table.LogOnInfo
                logonInfo.ConnectionInfo.ServerName = srptServer
                'logonInfo.ConnectionInfo.DatabaseName = srptDatabase
                logonInfo.ConnectionInfo.UserID = srptUN
                logonInfo.ConnectionInfo.Password = srptPass
                logonInfo.TableName = table.Name
                table.ApplyLogOnInfo(logonInfo)
            Next table
        End Function
    End Class

  • Report Search Statistics in TREX 7.0

    we are needing to report out on what search requests our TREX environment is receiving.
    We have two approaches we have been looking at:
    note 937055 details a python script that could be used for TREX 6.1. Has anyone been able to adapt it for 7.0? (it doesn't just drop in, file structure of the TREX install appears to be different). I was able to run the script, but I still cannot get results (and I have referred to https://www.sdn.sap.com/irj/sdn/thread?forumID=42&threadID=131584&messageID=1471437#1471437).
    We see a different approach in the webinar from Bettina Knauss on Dec 12, 2007, but we are suspecting that since that presentation was for TREX 7.1, and the functionality is marked new (page 52), that it does not exist for TREX 7.0. Can anyone cast any light on this?

    Hi Douglas
    I saw the presentation "live" done by Bettina Knauss, but I cannot remember if it was only valid for TREX 7.1. If you find an answer to your question, please update this thread as it is an interesting functionality.
    Best regards,
    Martin Søgaard

  • To View Calc Scripts and Report scripts via MaxL or Esscmd

    Hi all,
    Can somebody tell how to read any calc script or report script in any database with the help of MaxL or Esscmd?
    For example if there is any .csc or .rep file, I want to read the context of the file i.e. the script that is written in the file. Is it possible via MaxL or Esscmd?
    Does Hyperion supports this functionality?
    Regards,
    James

    You know that calc and report scripts are text files, right?
    They are typically stored in the database directory, although that is not a requirement; they can be stored in other client-accessible directories and run from there.
    I haven't done it in ages, but is also possible to pass calc and report scripts to Essbase via the API. I can't remember if the API will let you enumerate calc scripts from the database directory. I sort of strongly think yes. Someone who is more knowledgeable will either correct or refute that statement pretty soon. :)
    If you want to list the objects (calcs or reports): http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/html_esb_techref/techref.htm
    A few things that you can do with MaxL re calc scripts:
    1) execute calculations, including a string that you pass through MaxL: http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/html_esb_techref/maxl/ddl/statements/excalc.htm
    2) delete calculations: http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/html_esb_techref/maxl/ddl/statements/drpcalc.htm
    3) list the calcs: http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/html_esb_techref/maxl/ddl/statements/dispclc.htm
    4) create the calc: http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/html_esb_techref/maxl/ddl/statements/crecalc.htm
    Report scripts are sort of a poor relation in MaxL (and were in Esscmd as well). You can basically only run a report as kind of export: http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/html_esb_techref/maxl/ddl/statements/exprt.htm
    So, I think it's mostly there, especially the display object command. BTW, if MaxL can list it, the API can too -- how else does MaxL work?
    Regards,
    Cameron Lackpour
    Edited by: CL on Dec 1, 2008 11:53 PM
    Didn't post the right URLs. Now fixed. CL

  • Essbase report session in progress

    Something happened during planning refresh to esbase database. During FX refresh the session is remaining in progress and not terminating.
    I killed the esssv in server.
    When I did excel retrieve again the "report" session remains in progresss and not terminating.
    Any suggesion what to do now? didn't restart essbase server yet

    Kill that hangedup application in the essbase and restart the application.
    After that Check whether the essbase server is responding fine or not.
    If it is ok restart the application otherwise restart the server.

  • Report jobs statistics disappears from Enterprise Manager

    Hi,
    In Report server Enterprise manager, the report jobs statistics like failed jobs, current jobs, Finished jobs, configuration stats, Response and Load, General Stats, Component status, etc disappear. Only after restarting the report server they appear again. It is not possible for me to restart the production report server frequently. Is there any solution other than restarting.
    Also when I click on Failed jobs, the page appears blank. I have to then stop the report server, rename the rep_server.dat file and then start the report server.
    Please suggest a solution if anybody faced the problem in Windows envt.

    You can add the "Failed Job Count" metrics to the Notification rule you are using. This will alert you if any job fails.
    If that is not enough, you can create a User defined Metrics using the information you need and adding the UDM to the Notification rule

  • From which file does oracle tells you that a session has connected success

    Hello,
    From which log files that Oracle tells you that a session has successfully connect or unsuccessfully connected. Does the listener.log contain this information? Thank you.

    902029 wrote:
    Hello,
    From which log files that Oracle tells you that a session has successfully connect or unsuccessfully connected. Does the listener.log contain this information? Thank you.It depends upon how exactly "success" is defined.
    Listener reports status = 0 (success) in listener.log,
    even though connection to DB fails with incorrect password.

Maybe you are looking for

  • SAP console goods receipt purchase order

    Hi all, I'm new at SAP console, and I need it to make goods reception from a purchase order with a mobile device (PDA). Is there any way to make it without performing a Warehouse Management customizing in SAP ERP system??? I've seen a goods receipt m

  • WANT DUPLICATEs in Playlist, but iTunes DOES NOT TRANSFER THE DUPES

    *How do I get iTunes to transfer the EXACT PLAYLIST, JUST AS I MADE IT, WITH DUPLICATES to the iPhone?* When I try to put a Playlist with duplicates on my iPhone - iTunes automatically removes all the duplicates except the last one. On a Playlist I h

  • Error installing - hard-disk space

    Hi, today I tried to install Flash Builder 4 Beta 2 as Plugin on my Mac. Directory was "/development/devapps/flashbuilder". Need this directory because it's companies "standard" folder for our development stuff. I got an error saying "Warning! low di

  • How can i get a CD onto my iPhone from my computer?

    I Just got a new CD and i loaded it onto my computer (its on iTunes) and when i plug my iPhone in it wont automatically download the CD. How can i get it onto my iPhone?

  • Submit a program with LDB

    Hi, My Issue is when I execute a program (ZRHECM_PRINT_CRS Copy of  RHECM_PRINT_CRS) directily It is generating the output for me in the form of xstring, But when I submit it with same parameter inside a function module It is not going to (get) state