How to check if an SQL profile is being used or not?

Hi,
We have a couple of SQL profiles and outlines in the database. There has been a couple of code changes and it is now difficult to keep track if an SQL profile or an Outline is still being used? Is there any way to find that?
Thanks in advance

Find the entry corresponding to the SQL statement you are reviewing in V$SQL. Look at OUTLINE_CATEGORY and SQL_PROFILE columns. NULL indicates that no Outline/Profile was used.

Similar Messages

  • How to check if a Site Column is being used before deleting

    Hi All,
    Before deleting a SharePoint Online site column I would like to check to see if it is being used by any list or library. I know how to do this when the site is on
    premise using a PowerShell script.
    $web
    = Get-SPWeb
    http://”sitecollectionurl”
    $column
    = $web.Fields[“Column Display Name”]
    $column.ListsFieldUsedIn()
    but I am having problems doing it on a SharePoint Online site. I know how to connect to the site, but I can not find any information on getting the field details,
    like above.
    if ((Get-ModuleMicrosoft.Online.SharePoint.PowerShell).Count
    -eq0) {
    Import-Module
    Microsoft.Online.SharePoint.PowerShell -DisableNameChecking
    $username
    = "[email protected]"
    $url
    = "https://mySite.sharepoint.com/sites/Dev"
    Write-Host
    "Connecting to SharePoint Online, URL = $url"
    try
    Connect-SPOService
    -Url $url /
    -credential $username
    Write-Host "Successfully connected.."
    -ForegroundColor Green
    $web =
    Get-SPOSite -Identity
    https://mySite.sharepoint.com/sites/Team1
    $column
    = $web.Fields[“Column Display Name”]
    $column.ListsFieldUsedIn()
    =
    $web.Fields[“Page Content”]
    catch
    Write-Error "Failed to connect to
    $url - check the credentials and URL!"
    $_
    Write-Host
    "Disconnecting from SharePoint Online, URL =
    $url"
    Disconnect-SPOService
    Write-Host
    "Successfully disconnected.."
    -ForegroundColor Green
    Does any know what I am doing wrong, or does anyone have a script examples.
    Many thanks
    Colin

    Hi Colin,
    Unfortunately the Get-SPOSite doesn't return a fully fledged SPWeb object like you're used to in On-Prem PowerShell.
    The only way to get at particular objects like this is to use CSOM in PowerShell, however even then it doesn't return quite the same object that you see on prem. (In short, the method you want doesn't exist.. but I'll show you how to get there at least.)
    You'll need the Microsoft.SharePoint.Client.dll installed (You can download the SharePoint 2013 Client SDK, just do a search for it.)
    Once that's installed, then the following script will retrieve a single column which you can then run
    $column | gm to see the available properties.
    $siteCollectionURL = "https://<tenantname>.sharepoint.com/sites/etc"
    $Credentials = Get-Credential -UserName "[email protected]" -Message "Enter the password for $AdminUser"
    ##Then we'll establish a ClientContext for CSOM.
    $scContext = New-Object Microsoft.SharePoint.Client.ClientContext($siteCollectionURL)
    $SPOcredentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($Credentials.UserName, $Credentials.Password)
    $scContext.Credentials = $SPOcredentials
    $web = $scContext.Web
    $siteCols = $web.Fields
    $column = $sitecols.GetByInternalNameOrTitle("ColumnInternalName")
    $scContext.load($web)
    $scContext.load($siteCols)
    $scContext.Load($column)
    $scContext.ExecuteQuery()
    Once you run that, $column contains as much info as you can get about the column.
    Paul.
    Please ensure that you mark a question as Answered once you receive a satisfactory response. This helps people in future when searching and helps prevent the same questions being asked multiple times.

  • How to be sure VueScan generated profiles are being used

    I recently reprofiled everything. I know that the monitor profile is selected in Displays, and I am satisfied that it is being used correctly. I see the printer profile in (HD)/Library/ColorSync/Profiles, and I see the scanner profile in Users/usr/ColorSync/Profiles.
    I am only certain that VueScan itself will use these. When I use the Safari File>Print dialog windows, I don't see any indication that it knows about the printer  icc in the Color Matching window. Same with the Preview File> Print dialog Color Matching windows. The generated monitor profile is in there for some strange reason, though.
    In Photoshop CS5 Print , the PS Manages Colors window does not show the new profile.
    In Epson Scan/ColorSync there is no new scanner profile identified by its actual name.
    I haven't looked in Elements 10, why bother?
    I have the VueScan Bible by Steinhoff, which provides a completely uninformative guide to profiling. The website shown in his book jacket is in German with no English version, and I don't see any link for questions anyway.
    Hamrick gets irritable when you ask him anything that questions his software.  He never answered the last time.
    I am going to presume that only VueScan will call the generated profiles. You set the paths in VueScan, so I suppose that means that only VueScan will see them.  I guess this means that you have to buy one of the profiling apps to make system wide profiles.

    Lundberg02 wrote:
    …I see the printer profile in (HD)/Library/ColorSync/Profiles…
    Lundberg02,
    That's where—in my opinion and experience—all profiles belong.  Try putting your scanner-generated profiles there.
    Also, don't forget that all color profiles have two names:  an external and an internal name, so that the profile may not be in the alphabetical-order location you expect it to.  You can use the ColorSync utility to look at the guts of the profile: it will show you both internal and external names.
    Off topic:  You mean to tell us that you've managed to irritate Ed Hamrick of all people? ??? !!  
    Oy!

  • How can i tell if Native code is being used or not?

    Hi,
    I imported a jar file called dnsjava, and set my system property to use this so that my getHostName method doesnt use native code to get the host name. My question is, how can i know for sure that it is using the code from the jar file dnsjava? I used a debugger, and it seemed like it was getting it from java.net.InetAddress instead. Please help!
    import java.net.InetAddress;
    public class Test {
         public static void main(String[] args) throws Exception {
              System.setProperty("sun.net.spi.nameservice.provider.1","dns,dnsjava");
              InetAddress addr = InetAddress.getByName("64.58.76.179");
              String name = addr.getHostName();
              System.out.println("name = " + name);
    }

    What makes you think that you can set that property in the code and it will work?
    A number of properties can only be set from the command line. They will not work when set in code.
    I am not sure that any sun type properties will work when set in code.

  • How to check whether java.sql.Connection has been dropped or not

    Hi,
    How can i check whether the connection is dropped from the database or not by using java.sql.Connection API.
    Thanks

    There's a few ways to check Connections, each with a different use:
    (1) conn.isOpen()
    (2) conn == null
    (3) the last one is a little more involved and adds some overhead. You can run SELECT 1 FROM dual; (Oracle) or SELECT 1 (MSSQL) and check for exceptions.
    The only way to check a connection, as far as I know, is to use it. That said, there must be a better way???

  • How to check/verify running sql in lib cache is using updated statistics of table

    How to check/verify running sql in lib cache is using updated statistics of table used in from clause.
    one of my application table is highly busy i.e frequent update/insert/delete.
    we gather table stats every 30 min.

    Hello, "try dynamic sampling" = think "outside the box", maybe hit two birds with same stone.
    As a matter of fact, I was just backing up your statement: "30 minutes seems pretty extreme"
    cheers

  • How to check apache pl/sql listener port

    hai
    can any tell me how to check apache pl/sql listener port
    Thanks
    BhanuChander

    You may get it by searching the portlist.ini file in the ORACLE_HOME of the product you use.....
    So , for instance the following , are the ports those of Dev_Suite_Home:
    Oracle Developer Suite HTTP port = 8889
    Oracle Developer Suite JMS port = 9240
    Oracle Developer Suite RMI port = 23910
    Oracle HTTP Server Diagnostic port = 7200
    Reports Services bridge port = 14011
    Reports Services discoveryService port = 14021But ... note that these ports are valid only at the time of installation....!!!!
    Greetings...
    Sim

  • How to check the resolution of a pdf file using Acrobat 9 pro?

    How to check the resolution of a pdf file using Acrobat 9 pro?

    PDF files don't have one resolution, but may have none or many different resolutions, one per image. You can check the maximum/minimum resoluion with preflight in Acrobat Pro, but not in Adobe Reader.

  • How to check whether a Document in KM is classified or not using JAVA API

    Hello Everyone,
      Can anyone tell me, How to check whether a Document in KM is classified or not, using JAVA API's??
    Thanks & Regards,
    Adren D'Souza

    Hi,
    The code is as follows:
    IIndexService indexService = null;
    try {
       indexService = (IIndexService) ResourceFactory.getInstance().getServiceFactory().getService(IServiceTypesConst.INDEX_SERVICE);
    } catch (ResourceException e) {
       if (indexService == null) {
         log.errorT("Error on instanciating the index service");
         return this.renderMessage(this.getBundleString(RES_NO_INDEX_SERVICE), StatusType.ERROR);
    // get index
    IIndex index = null;
    try {
       index = indexService.getIndex("YourIndexID");
    } catch (WcmException e1) {
       log.errorT("Error when trying to get the index");
       return this.renderMessage(this.getBundleString(RES_NO_INDEX), StatusType.ERROR);
    // check if the index is a instance of AbstractClassificationIndex
    AbstractClassificationIndex classiIndex = null;
    if (index instanceof AbstractClassificationIndex) {
       classiIndex = (AbstractClassificationIndex) index;
    } else {
       log.errorT("The index " + index.getIndexName() + " is no classification index");
       return this.renderMessage(this.getBundleString(RES_NO_CLASSIFICATION_INDEX), StatusType.WARNING);
    //give your KM Resource here for which you want to know if it is classified or not
    boolean classified = classiIndex.isDocClassifiedInAnyTax(resource);
    Regards,
    Praveen Gudapati

  • How to check status of a particular port by using netstat command?

    How to check status of a particular port by using netstat command?
    I want to check  port 443 in my server is open or not, is there any other way to check port via commandline?

    Hi,
    You can run the below command in an administrator command prompt on the server:
    netstat -ano|findstr ":443"
    -TP

  • How to check whether my iphone 5 is factory unlocked or not??

    how to check whether my iphone 5 is factory unlocked or not??

    Did you buy it unlocked at full, non-subsidised price?  If not, then it's not unlocked.

  • To check weather JAVAVM being used or not?

    Hi,
    We are in the process of cleaning up unnecessary components. As a part of this, first of all we are checking weather JAVAVM is being used or not?  How to confirm weather JAVAVM is being used or not?
    I gone through Database Feature Usage but could not find any entry related to JAVAVM, for rest of the components i was able to. Any hints on this.
    DBA_REGISTRY
    COMP_ID
    COMP_NAME
    VERSION
    STATUS
    MODIFIED
    CATALOG
    Oracle Database Catalog Views
    10.2.0.5.0
    VALID
    23-JUN-2013 06:16:06
    CATPROC
    Oracle Database Packages and Types
    10.2.0.5.0
    VALID
    23-JUN-2013 06:16:06
    JAVAVM
    JServer JAVA Virtual Machine
    10.2.0.5.0
    VALID
    23-JUN-2013 06:16:07
    CATJAVA
    Oracle Database Java Packages
    10.2.0.5.0
    VALID
    23-JUN-2013 06:16:07
    And features usage is as follows.
    Database Feature Usage
    NAME
    DETECTED_USAGES
    ASO native encryption and checksumming
    0
    AWR Report
    17
    Advanced Replication
    0
    Advanced Security
    0
    Audit Options
    41
    Automatic Database Diagnostic Monitor
    6
    Automatic SQL Execution Memory
    41
    Automatic Segment Space Management (system)
    41
    Automatic Segment Space Management (user)
    41
    Automatic Storage Manager
    0
    Automatic Undo Management
    41
    Automatic Workload Repository
    1
    CSSCAN
    0
    Change Data Capture
    0
    Change-Aware Incremental Backup
    0
    Character Semantics
    0
    Character Set
    41
    Client Identifier
    0
    Data Guard
    0
    Data Guard Broker
    0
    Data Mining
    0
    Database Replay: Workload Capture
    0
    Diagnostic Pack
    0
    Dynamic SGA
    0
    EM Database Control
    0
    EM Grid Control
    0
    Extensibility
    41
    File Mapping
    0
    Flashback Database
    0
    Internode Parallel Execution
    0
    LOB
    41
    Label Security
    0
    Locally Managed Tablespaces (system)
    41
    Locally Managed Tablespaces (user)
    41
    Locator
    0
    MTTR Advisor
    0
    Materialized Views (User)
    41
    Messaging Gateway
    0
    Multiple Block Sizes
    0
    OLAP - Analytic Workspaces
    0
    OLAP - Cubes
    0
    Object
    41
    Oracle Database Vault
    0
    Oracle Managed Files
    0
    PL/SQL Native Compilation
    0
    Parallel SQL DDL Execution
    24
    Parallel SQL DML Execution
    0
    Parallel SQL Query Execution
    35
    Partitioning (system)
    41
    Partitioning (user)
    0
    Protection Mode - Maximum Availability
    0
    Protection Mode - Maximum Performance
    41
    Protection Mode - Maximum Protection
    0
    Protection Mode - Unprotected
    0
    RMAN - Disk Backup
    0
    RMAN - Tape Backup
    0
    Real Application Clusters (RAC)
    0
    Recovery Area
    0
    Recovery Manager (RMAN)
    0
    Resource Manager
    0
    SQL Access Advisor
    0
    SQL Tuning Advisor
    7
    SQL Tuning Set
    41
    Segment Advisor
    40
    Server Parameter File
    5
    Shared Server
    37
    Spatial
    0
    Standby Archival - ARCH
    0
    Standby Archival - LGWR
    0
    Standby Transmission
    0
    Streams (system)
    0
    Streams (user)
    0
    Transparent Gateway
    0
    Tuning Pack
    0
    Undo Advisor
    0
    Virtual Private Database (VPD)
    0
    XDB
    0
    D
    Regards
    DBA.

    We are in the process of cleaning up unnecessary components. As a part of this, first of all we are checking weather JAVAVM is being used or not?  How to confirm weather JAVAVM is being used or not?
    Yes - if you have an Oracle database the JVM is being used.
    There is NOTHING to 'clean up' as far as the internal JVM that is part of Oracle.
    You can NOT modify it or upgrade it. And if you remove it Oracle will also remove your database.
    See the Database Installation Guide
    http://docs.oracle.com/cd/B28359_01/install.111/b32002/remove_oracle_sw.htm#CCHBABDE
    In the Inventory screen, select the Oracle home and the products that you want to remove, then click Remove.
    Note:
    If you choose to remove Oracle JVM, Oracle Universal Installer removes all installed products that depend on Oracle JVM, including Oracle Database 11g.

  • HT4211 how can you find out what kb are being used by what apps

    how can you find out what kb are being used by what apps there is always alot of kb being used even when I don't use my phone

    Go into settings , general, usage and it tells you what the apps use. If your refering to the memory storage of the apps.

  • How to know the full path which is being used in the dataconnection .

    How to know the full path which is being used in the dataconnection without going and looking into coding.
    I am new to crystal reports.
    Plz advice.Thanks in advance
    Jay

    This forum is dedicated to topics related to custom application development or deployment with Crystal Reports in .Net. This includes full versions of Crystal Reports as well as those versions of Crystal Reports bundled with Microsoft Visual Studio .Net.
    As you do not want to do any coding, this query is in the wrong forum. However, in most versions of Crystal Reports, you can look up the database connection information by simply opening the report in the CR designer. Then go to the database menu and select "Set Datasource Location..."
    Ludek

  • How to set hint with SQL profile

    Hi,
    I need to put a leading hint into a sub-query
    How can I do that ?
    I tried:
    dbms_sqltune.import_sql_profile
    sql_text => 'select ...'
    profile => sqlprof_attr(XXXXX) => I don't know what to set for XXXXX
    name => my_sql_profile
    force_match => true)10.2.0.4
    Thanks for your help

    I need to put a leading hint into a sub-query It doesn't sound like a good idea.
    If you're going to hint - especially using plan stability features - then you need to hint fully otherwise you're asking for trouble.
    See http://jonathanlewis.wordpress.com/2011/06/08/how-to-hint-1/
    The "best" approach to this sort of generic question is to run the sql statement with the single leading hint (if that really is desirable) then extract the full set of hints from that execution (which will have a different sql id) and apply it to your original statement.
    If you have a look at COE_XFR_SQL_PROFILE.SQL in Oracle Support doc id 215187.1 then that will give you a good idea of how to do it.
    That script is not exactly what you want because it uses a sql profile to apply a previously generated plan for that specific sql taken out of AWR or the cursor cache, but the principle is the same.
    This is using SQL Profiles as they were not originally designed - which was vehicles for statistical adjustements - but using them like stored outlines (the latter deprecated in 11.1 onwards).
    SQL Profiles require the tuning pack.
    You have not mentioned version but depending on that, it might be that SQL Plan Baselines are the appropriate mechanism and you can achieve something similar to that mentioned above using dbms_spm.load_plans_from_cursor_cache:
    load_plans_from_cursor_cache 
    (sql_id           IN VARCHAR2,   <---------- the sql id of the manually hinted sql from which to copy the plan
    plan_hash_value  IN NUMBER := NULL,  <-------------- the plan in memory to copy
    sql_text         IN CLOB,  <-------------------- the sql text of the sql to apply the plan above to (get via a direct look up from v$sql or dba_hist_sqltext as necesary)
    fixed            IN VARCHAR2 := 'NO', 
    enabled          IN VARCHAR2 := 'YES') Whichever method you use, avoid any sort of solution involving a single hint directed at a subquery.
    Edited by: Dom Brooks on Nov 26, 2012 9:48 PM
    reworded

Maybe you are looking for