Sql View Doubt

Hi all...
I am beginner of oracle sql 10g and also trainee.. i know why v r using views but im getting confused to use views bcoz im little weak to understand in english.. i have one doubt is it possible to use views in same table? can any one tell me?
Thankz

Think of a view as a stored query. A view can be created by querying one table or from a complex query joining many tables. But the end-user just sees the result, which looks like a table of rows to them. Generally you aren't trying to hide implementation but either hide sensitive data or filter unimportant data. For instance, let's say you have an employee table that has all sorts of information about an employee. Some of that information is sensitive (like their salary, any medical information, etc.). Other information (e.g., what department they work in, who their manager is) is not sensitive. If all that information is in one table but you want to hide the salary information from everyone but the HR dept., then you could make a view that selects the non-sensitive columns from the employee table and only grant select on that view to non-HR personnel. If you wanted managers only to have access to certain data in the employee table for employees that they manage, you could make a view for that as well.

Similar Messages

  • What is LAST_ACTIVE_TIME  column in v$sql view

    Hi,
    I am using Oracle 10.2.0.3 version.
    I have a doubt in v$sql view.
    What is the meaning of LAST_ACTIVE_TIME column in v$sql view?
    I presume it is the latest time when this SQL was executed in the database. M I right?
    As per Oracle docs it's definition is as below.
    LASTACTIVE_TIME - Time at which the query plan was last active ._
    Thanks in advance.
    Best Regards,
    oratest

    Dear oratest,
    Please see the following link;
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/dynviews_2113.htm#REFRN30246
    +"+
    +LAST_ACTIVE_TIME+
    +DATE+
    +Time at which the query plan was last active+
    +"+
    That is the time that the "query plan" active period. I think this could be as what you have said.
    Regards.
    Ogan
    Edited by: Ogan Ozdogan on 30.Ağu.2010 22:21

  • Use evdre to query data from a SQL View

    Hi all
    I believe that it is possible to use evdre to query data from a SQL View. If this is possible then how does one go about setting it up in the evdre options (assuming that the view has already been created)?
    Regards,
    Byron

    Byron,  perhaps this is no longer supported, it might be worth opening up a case at service.sap.com on this.  However, I did find the following on Page 11 of the "Usages and Considerations of EVDRE" pdf file.  This doc is imbedded in the helpfile for BPC 7 SP5 (which was released in August of 2009, well after note 1315011 was last updated.
    It looks like you are limited to one custom view per application, since you have to name the view in a parameter at the APPLICATION level.  Go into BPC Administration, login to the application related to the custom view, choose "Set Application Parameters" and enter the name of the view to the Application Parameter called "EVDRE_QUERYVIEWNAME"  If it is not listed, go ahead and create it at the bottom of the Application parameter screen.
    Also:  I interpreted the following info from Page 10 of the same doc:
    In your EVDRE, set the following options:
    QueryEngine: MANUAL
    QueryType:  enter either NEXJ  OR TUPLE  see below:
    NEXJ  - Use two-dimensional queries using the nonemptycrossjoin function
    TUPLE  - Use two-dimensional queries using tuples"
    And I'm assuming you'd enter a Y for the following two parameters:
    QueryViewName
    "..to enforce the query engine to use a used-defined SQL view of the fact tables, when trying to read the values using SQL queries. This option is typically used in conjunction with the SQLOnly option (see below). "
    Option SQLOnly
    "..to enforce the query engine to only execute SQL queries, when reading data. This can be achieved using this option."

  • Report Based on SQL view not pulling in all parameters

    Post Author: ronhawker
    CA Forum: .NET
    I based a report on a SQL view below:SELECT     TOP (100) PERCENT CorpDirectory.Position, CorpDirectory.PhoneDirect, CorpDirectory.Email, CorpDirectory.Store, CorpDirectory.Name,                       CorpDirectory.PhoneFaxWave, CorpDirectory.Department, Store.StoreName, Store.StoreStreetAddress, Store.StoreCity, Store.StoreState,                       Store.StoreZip, Store.StorePhone, CorpDirectory.DisplayOrderFROM         dbo.CorpDirectory AS CorpDirectory INNER JOIN                      dbo.Store AS Store ON CorpDirectory.Store = Store.StoreORDER BY CorpDirectory.Store, CorpDirectory.Department, CorpDirectory.DisplayOrder, CorpDirectory.Name When the report was created the order by sequence only brought in the first parameter of CorpDirectory.Store. It seemed to ignore the other three order by parameters. I am running 10.2 is VS2005.

    Sharmila,
    Thanks for your response. Maybe I wasn't clear enough in my previous statement. I will give an example of what I am trying to accomplish.
    Let's say I have 2 date fields(SUBMITDATE,COMPLETEDATE) in a table TABLE A
    I want to calculate a field called CYCLETIME with the following conditions:
    If COMPLTEDATE is NULL, then CYCLETIME = SYSDATE-SUBMITDATE
    IF COMPLTEEDATE is not null, then CYCLETIME = COMPLTEEDATE-SUBMITDATE
    Would appreciate any help.
    Thanks
    Dev
    Hi,
    You can do the calculation in the sql query itself. Here is an example which shows the sum of salaray for each department in the scott.emp table.
    select deptno,sum(sal) sal
    from scott.emp
    group by deptno
    Thanks,
    Sharmila

  • Coalesce in a SQL View?

    I have a table as shown below:
    I need to write a sql view that will show 1 row for the ReqNbr and then a column for the related service calls.  For example the result set should look something like this:
    ReqNbr, Call_Numbers
    10010, 0000013147;0000013097;0000013149;
    10592, 0000012994;0000012999;
    and so on.  I need a view that can do this as a function or stored procedure can't be used in the reporting tool that I'm dealing with.  In addition I would like the Service Call to be sorted ASC in the column when returned.
    Any ideas?

    You need to use a stuff operator for this purpose... see this
    http://sqlsaga.com/sql-server/how-to-concatenate-rows-into-one-row-using-stuff/
    DECLARE @Input TABLE
    ReqNbr INT,
    ServiceCall VARCHAR(20)
    INSERT INTO @Input VALUES(1, '0001'), (1, '0002'), (1, '0003'),(2,'0004'), (2,'0005'), (1, '0006')
    SELECT DISTINCT ReqNbr, STUFF((SELECT ';'+ServiceCall FROM @Input b WHERE a.ReqNbr = b.ReqNbr FOR XML PATH('')), 1, 1, '') AS ServiceCall
    FROM @Input a
    Please mark as answer, if this has helped you solve the issue.
    Good Luck :) .. visit www.sqlsaga.com for more t-sql code snippets and BI related how to articles.

  • Can a SQL view see data from an ODBC connection?

    Hi.  I currently have an application that pulls data from a custom SQL view in my SQL database.  This custom application can not be changed, so it expects to see the data exactly as presented by my custom SQL view.  This works fine
    when the data resides in SQL, but I am not sure if it is possible when the data resides outside of SQL.  I’d like to connect to another type of database via an ODBC connection from my SQL database, and still utilize my custom SQL view.  I would prefer to NOT
    use the SQL database as a warehouse, and simply use it to pass data.
    Is this possible?   Thank you for reading.

    Hi Robet,
    According to your description, you want to create view in SQL Server to pass data from OBDC database to custom application, right?
    In this case, we can create linked server to access an ODBC database when you are using an ODBC data source. Linked servers can use the OLE DB Provider for ODBC without using an ODBC data source. You can refer to the link below to see the details.
    http://technet.microsoft.com/en-us/library/ms191462(v=sql.105).aspx
    Regards,
    Charlie Liao
    TechNet Community Support

  • Declare @StartDate/@EndDate in SQL View; cannot save (for use w/ ODBC)

    I have searched all over to find out how, in proper syntax, to code a date range-specific query that works just fine in SAP, but cannot be saved in a SQL view (to in turn be linked to an Excel spreadsheet).  An answer that links me to the proper thread could be nice... if it truly explains how to begin and end a functioning basic query with a user supplied date range while working in Excel.
    The error I receive when starting my view with "declare" is "the Declare cursor SQL construct or statement is not supported."
    Here's the beginning and abbreviated end of code from a query that works just fine without the date clause in SQL view:
    DECLARE @StartDate DateTime
    DECLARE @EndDate DateTime
    SET              @StartDate = [%0]
    SET              @EndDate = [%1]
    SELECT     .........
    FROM        .........
    WHERE     (T0.DocDueDate >= @StartDate AND T0.DocDueDate <= @EndDate) AND ......
    Thank you in advance!
    Russell

    Hi Russell.
    You don't need to use Declare.
    Try this
    SELECT .........
    FROM .........
    WHERE (T0.DocDueDate >= '[[%0]]' AND T0.DocDueDate <= '[[%1]]') AND ......
    Antonio Ramos
    Edited by: Antonio Ramos on Feb 17, 2010 2:38 PM

  • Export SQL View to Flat File with UTF-8 Encoding

    I've setup a package in SSIS to export a SQL view to a flat file and it's working fine.  I now need to make that flat file UTF-8 encoded.  The package executes but still shows the files as ANSI encoded.
    My package consists of a Source (SQL View) -> Derived Column (casts the fields to DT_WSTR) -> Destination Flat File (Set to output UTF-8 file).
    I don't get any errors to help me troubleshoot further.  I'm running SQL Server 2005 SP2.

    Unless there is a Byte-Order-Marker (BOM - hex file prefix: EF BB BF) at the beginning of the file, and unless your data contains non-ASCII characters, I'm unsure there is a technical difference in the files, Paul.
    That is, even if the file is "encoded" UTF-8, if your data is only ASCII values (decimal values 0-127, hex 00-7F), UTF-8 doesn't really serve a purpose over ANSI encoding.  Now if you're looking for UTF-8 with specifically the BOM included, and your data is all standard ASCII, the Flat File Connection Manager can't do that, it seems.
    What the flat file connection manager is doing correctly though, is encoding values that are over decimal 127/hex 7F in UTF-8 when the encoding of the connection manager is set to 65001 (UTF-8).
    Example:
    Input data built with a script component as a source (code at the bottom of this post) and with only one WSTR output column hooked to a flat file destination component:
    a string containing only decimal value 225 (german Eszett character - ß)
    Encoding set to ANSI 1252 looks like:
    E1 0D 0A (which is the ANSI encoding of the decimal character value 225 (E1) and a CR-LF (0D 0A)
    Encoding set to UTF-8 65001 looks like:
    C3 A1 0D 0A  (which is the UTF-8 encoding of the decimal character value 225 (C3 A1) and a CR-LF (0D 0A)
    Note that for values over decimal 127, UTF-8 takes at least two bytes and up to four for the remaining values available.
    So, I'm comfortable now, after sitting down and going through this, that the flat file connection manager is working correctly, unless you need a BOM.
    1
    Imports System  
    2
    Imports System.Data  
    3
    Imports System.Math  
    4
    Imports Microsoft.SqlServer.Dts.Pipeline.Wrapper  
    5
    Imports Microsoft.SqlServer.Dts.Runtime.Wrapper  
    6
    7
    Public Class ScriptMain  
    8
        Inherits UserComponent  
    9
    10
        Public Overrides Sub CreateNewOutputRows()  
    11
            Output0Buffer.AddRow()  
    12
            Output0Buffer.col1 = ChrW(225)  
    13
        End Sub 
    14
    15
    End Class 
    Phil

  • SQL "View" with TS?

    Hello,
    is it possible to handel a SQL "View" with TestStand or the Database Viewer?
    I can see my tables but not the view.
    greetings
    schwede

    Thankyou,
    this is the first thing, the second is that i can`t write to the database.
    If i use a table everything is ok. When i took the view i get an error-message:
    -2146825037 The recordset don`t support updating. This can be a problem of the constriction of provider or lock type....
    Can you help me with this, too?
    greetings
    schwede

  • Using Sql views in Load rules

    <p>I am trying to create a load rule from a SQL view. When I openthe Sql in the Rules file, the headers show up, but there is nodata.</p><p>Is there something else I need to do? (I did not create the SQLviews myself)</p><p>I am quite capable of loading data/dimensions from a SQL queryor table, but this table needed to be combined with another so myMIS supprt created a view for me to use to load from.</p><p> </p><p>Any help would be greatly appreciated!</p><p> </p><p> </p>

    I had probems with certain column types in the past. Had to convert them to strings. It's been a while so I dont remember what type. The best way to find something like this is to modify your sql to return one column, try it and see it it works, if it does, then add a the second column, etc. It can be tedious if you have a lot of columns but beats sitting there scratching your head.

  • Problem to run the Crystal report inside from SAP B1 based on SQL views.

    Hello,
    I have a problem to run my Crystal report inside from SAP B1 which is based on SQL views.And the SQL views are stored in a separate database in SQL server.The error which i am getting is saying the the tablename does not exist.What i need to do in order to sort this problem.
    Great if somebody can help me to sort out this so that i can run my report based on SQL views stored on separate database other than SAP databases inside from SAP B1.
    Edited by: rozenagrawal on Apr 19, 2011 11:51 AM

    Try using a SQL synonym in your company database for the views outside the company database. I don't know if SBO will let you get away with it, but its worth a shot.
    If your company database is MyCompany and you have a view called MyView in Views database, assuming the view belongs to schema dbo, and you want the synonym to belong to dbo schema in your company database, run this:
    Use MyCompany
    go
    create synonym dbo.OutsiderView for
    Views.dbo.MyView
    go
    select * from OutsiderView
    The select statement should return the contents of MyView in the Views database while you are connected to your MyCompany database.
    For more info, see the Books Online for MSSQL on topic synonym.
    You will need to change your CR options to include displaying synonyms along with tables, views, etc. You may also need to grant select to B1 users.
    Edited by: Cindy Lange on Apr 21, 2011 4:00 PM

  • Reports based on SQL view contain no data. Reports based on tables work just fine

    When we load a report into Crystal reports server that is based on a SQL view the report will run but will contain no data. A report that pulls data from SQL tables works just fine. Running the crystal report on standalone crystal reports works just fine.
    I am completely lost on this one. If you have any ideas please send them my way.

    Are you missing an ODBC / TNS entry on your CMS (or report processing, if clustered env) server?  This could definately be an issue if the report will run locally within CR client, but not when hosted on the enterprise environment.  Another test would be to run the report from CR client ON the CRS / BOE server..

  • V$SQL View underlying definition

    HI
    Is it possible to get underlying deifintion of v$views ? ( if i query text from dba_views i see v_$sql is selecting from v$sql)
    I want to know what are the underlying tables used for v$sql.How can i find that
    Thanks

    sb92075 wrote:
    894365 wrote:
    HI
    Is it possible to get underlying deifintion of v$views ? ( if i query text from dba_views i see v_$sql is selecting from v$sql)
    I want to know what are the underlying tables used for v$sql.How can i find thatAny/all of the V$* "views" query SGA data structures & are presented as regular SQL Views.Which may be true, but doesn't answer his question.
    The way it works is, let's take V$SQL as an example:
    SQL> select owner,object_type,object_name from dba_objects where object_name='V$SQL';
    OWNER        OBJECT_TYPE            OBJECT_NAME
    PUBLIC        SYNONYM            V$SQL
    SQL> So, V$SQL is actually a public synonym. Let's see what it points at:
    SQL> exec print_table('select owner,synonym_name,table_owner,table_name,db_link from dba_synonyms where owner=''PUBLIC'' and synonym_name = ''V$SQL''');
    OWNER                     : PUBLIC
    SYNONYM_NAME                : V$SQL
    TABLE_OWNER                : SYS
    TABLE_NAME                : V_$SQL
    DB_LINK                 :
    PL/SQL procedure successfully completed.Now, we can see that V$SQL is a public synonym that points to SYS.V_$SQL. Now, DBA_SYNONYMS says it's a table, but, it could also be a view. And, in this case, it is a view.
    We can see that here:
    SQL> exec print_table('select owner,object_type,object_name from dba_objects where owner=''SYS'' and object_name =''V_$SQL''');
    OWNER                     : SYS
    OBJECT_TYPE                : VIEW
    OBJECT_NAME                : V_$SQL
    PL/SQL procedure successfully completed.Ok, so V_$SQL is a view.
    Let's see what it's definition is:
    SQL> exec print_table('select text from dba_views where owner=''SYS'' and view_name = ''V_$SQL''');
    TEXT                     : select
    "SQL_TEXT","SQL_FULLTEXT","SQL_ID","SHARABLE_MEM","PERSISTENT_MEM","RUNTIME_MEM"
    ,"SORTS","LOADED_VERSIONS","OPEN_VERSIONS","USERS_OPENING","FETCHES","EXECUTIONS
    ","PX_SERVERS_EXECUTIONS","END_OF_FETCH_COUNT","USERS_EXECUTING","LOADS","FIRST_
    LOAD_TIME","INVALIDATIONS","PARSE_CALLS","DISK_READS","DIRECT_WRITES","BUFFER_GE
    TS","APPLICATION_WAIT_TIME","CONCURRENCY_WAIT_TIME","CLUSTER_WAIT_TIME","USER_IO
    _WAIT_TIME","PLSQL_EXEC_TIME","JAVA_EXEC_TIME","ROWS_PROCESSED","COMMAND_TYPE","
    OPTIMIZER_MODE","OPTIMIZER_COST","OPTIMIZER_ENV","OPTIMIZER_ENV_HASH_VALUE","PAR
    SING_USER_ID","PARSING_SCHEMA_ID","PARSING_SCHEMA_NAME","KEPT_VERSIONS","ADDRESS
    ","TYPE_CHK_HEAP","HASH_VALUE","OLD_HASH_VALUE","PLAN_HASH_VALUE","CHILD_NUMBER"
    ,"SERVICE","SERVICE_HASH","MODULE","MODULE_HASH","ACTION","ACTION_HASH","SERIALI
    ZABLE_ABORTS","OUTLINE_CATEGORY","CPU_TIME","ELAPSED_TIME","OUTLINE_SID","CHILD_
    ADDRESS","SQLTYPE","REMOTE","OBJECT_STATUS","LITERAL_HASH_VALUE","LAST_LOAD_TIME
    ","IS_OBSOLETE","IS_BIND_SENSITIVE","IS_BIND_AWARE","IS_SHAREABLE","CHILD_LATCH"
    ,"SQL_PROFILE","SQL_PATCH","SQL_PLAN_BASELINE","PROGRAM_ID","PROGRAM_LINE#","EXA
    CT_MATCHING_SIGNATURE","FORCE_MATCHING_SIGNATURE","LAST_ACTIVE_TIME","BIND_DATA"
    ,"TYPECHECK_MEM","IO_CELL_OFFLOAD_ELIGIBLE_BYTES","IO_INTERCONNECT_BYTES","PHYSI
    CAL_READ_REQUESTS","PHYSICAL_READ_BYTES","PHYSICAL_WRITE_REQUESTS","PHYSICAL_WRI
    TE_BYTES","OPTIMIZED_PHY_READ_REQUESTS","LOCKED_TOTAL","PINNED_TOTAL","IO_CELL_U
    NCOMPRESSED_BYTES","IO_CELL_OFFLOAD_RETURNED_BYTES" from v$sql
    PL/SQL procedure successfully completed.Huh? How can V_$SQL be based on V$SQL, when V$SQL is a synonym that points to V_$SQL??
    Well, this is where the trick comes in. SYS.V$SQL is a fixed view, i.e. a view that is owned by SYS and starts with 'V$' or 'GV$'.
    So, we can look at V$FIXED_VIEW_DEFINITION to see the definition of SYS.V$SQL:
    SQL> exec print_table('select view_definition from v$fixed_view_definition where view_name = ''V$SQL''');
    VIEW_DEFINITION            : select     SQL_TEXT , SQL_FULLTEXT , SQL_ID,
    SHARABLE_MEM , PERSISTENT_MEM , RUNTIME_MEM , SORTS , LOADED_VERSIONS ,
    OPEN_VERSIONS , USERS_OPENING , FETCHES , EXECUTIONS , PX_SERVERS_EXECUTIONS ,
    END_OF_FETCH_COUNT, USERS_EXECUTING , LOADS , FIRST_LOAD_TIME, INVALIDATIONS,
    PARSE_CALLS , DISK_READS , DIRECT_WRITES , BUFFER_GETS , APPLICATION_WAIT_TIME,
    CONCURRENCY_WAIT_TIME, CLUSTER_WAIT_TIME, USER_IO_WAIT_TIME, PLSQL_EXEC_TIME,
    JAVA_EXEC_TIME, ROWS_PROCESSED , COMMAND_TYPE , OPTIMIZER_MODE , OPTIMIZER_COST,
    OPTIMIZER_ENV, OPTIMIZER_ENV_HASH_VALUE, PARSING_USER_ID , PARSING_SCHEMA_ID ,
    PARSING_SCHEMA_NAME, KEPT_VERSIONS , ADDRESS , TYPE_CHK_HEAP , HASH_VALUE,
    OLD_HASH_VALUE, PLAN_HASH_VALUE, CHILD_NUMBER, SERVICE, SERVICE_HASH, MODULE,
    MODULE_HASH , ACTION , ACTION_HASH ,  SERIALIZABLE_ABORTS , OUTLINE_CATEGORY,
    CPU_TIME, ELAPSED_TIME, OUTLINE_SID, CHILD_ADDRESS, SQLTYPE, REMOTE,
    OBJECT_STATUS, LITERAL_HASH_VALUE, LAST_LOAD_TIME, IS_OBSOLETE,
    IS_BIND_SENSITIVE, IS_BIND_AWARE, IS_SHAREABLE,CHILD_LATCH, SQL_PROFILE,
    SQL_PATCH, SQL_PLAN_BASELINE, PROGRAM_ID, PROGRAM_LINE#,
    EXACT_MATCHING_SIGNATURE, FORCE_MATCHING_SIGNATURE, LAST_ACTIVE_TIME, BIND_DATA,
    TYPECHECK_MEM, IO_CELL_OFFLOAD_ELIGIBLE_BYTES, IO_INTERCONNECT_BYTES,
    PHYSICAL_READ_REQUESTS, PHYSICAL_READ_BYTES, PHYSICAL_WRITE_REQUESTS,
    PHYSICAL_WRITE_BYTES, OPTIMIZED_PHY_READ_REQUESTS, LOCKED_TOTAL, PINNED_TOTAL,
    IO_CELL_UNCOMPRESSED_BYTES, IO_CELL_OFFLOAD_RETURNED_BYTES from GV$SQL where
    inst_id = USERENV('Instance')
    PL/SQL procedure successfully completed.So, SYS.V$SQL is based on GV$SQL. So, what's GV$SQL??
    SQL> exec print_table('select owner,object_type,object_name from dba_objects where object_name =''GV$SQL''');
    OWNER                     : PUBLIC
    OBJECT_TYPE                : SYNONYM
    OBJECT_NAME                : GV$SQL
    PL/SQL procedure successfully completed.Another synonym?? Where does it all end?? (Hang in there, we're almost there!)
    So, what does the GV$SQL synonym point to?
    SQL> exec print_table('select * from dba_synonyms where owner=''PUBLIC'' and synonym_name = ''GV$SQL''');
    OWNER                     : PUBLIC
    SYNONYM_NAME                : GV$SQL
    TABLE_OWNER                : SYS
    TABLE_NAME                : GV_$SQL
    DB_LINK                 :
    PL/SQL procedure successfully completed.Ok, so, now we have GV_$SQL. What's that, exactly? Is it really a table? Or perhaps another view?
    SQL> exec print_table('select owner,object_type,object_name from dba_objects where owner=''SYS'' and object_name = ''GV_$SQL''');
    OWNER                     : SYS
    OBJECT_TYPE                : VIEW
    OBJECT_NAME                : GV_$SQL
    PL/SQL procedure successfully completed.Ok, so GV_$SQL is another view. Let's look at that definition!
    SQL> exec print_Table('select text from dba_views where owner=''SYS'' and view_name = ''GV_$SQL''');
    TEXT                     : select
    "INST_ID","SQL_TEXT","SQL_FULLTEXT","SQL_ID","SHARABLE_MEM","PERSISTENT_MEM","RU
    NTIME_MEM","SORTS","LOADED_VERSIONS","OPEN_VERSIONS","USERS_OPENING","FETCHES","
    EXECUTIONS","PX_SERVERS_EXECUTIONS","END_OF_FETCH_COUNT","USERS_EXECUTING","LOAD
    S","FIRST_LOAD_TIME","INVALIDATIONS","PARSE_CALLS","DISK_READS","DIRECT_WRITES",
    "BUFFER_GETS","APPLICATION_WAIT_TIME","CONCURRENCY_WAIT_TIME","CLUSTER_WAIT_TIME
    ","USER_IO_WAIT_TIME","PLSQL_EXEC_TIME","JAVA_EXEC_TIME","ROWS_PROCESSED","COMMA
    ND_TYPE","OPTIMIZER_MODE","OPTIMIZER_COST","OPTIMIZER_ENV","OPTIMIZER_ENV_HASH_V
    ALUE","PARSING_USER_ID","PARSING_SCHEMA_ID","PARSING_SCHEMA_NAME","KEPT_VERSIONS
    ","ADDRESS","TYPE_CHK_HEAP","HASH_VALUE","OLD_HASH_VALUE","PLAN_HASH_VALUE","CHI
    LD_NUMBER","SERVICE","SERVICE_HASH","MODULE","MODULE_HASH","ACTION","ACTION_HASH
    ","SERIALIZABLE_ABORTS","OUTLINE_CATEGORY","CPU_TIME","ELAPSED_TIME","OUTLINE_SI
    D","CHILD_ADDRESS","SQLTYPE","REMOTE","OBJECT_STATUS","LITERAL_HASH_VALUE","LAST
    _LOAD_TIME","IS_OBSOLETE","IS_BIND_SENSITIVE","IS_BIND_AWARE","IS_SHAREABLE","CH
    ILD_LATCH","SQL_PROFILE","SQL_PATCH","SQL_PLAN_BASELINE","PROGRAM_ID","PROGRAM_L
    INE#","EXACT_MATCHING_SIGNATURE","FORCE_MATCHING_SIGNATURE","LAST_ACTIVE_TIME","
    BIND_DATA","TYPECHECK_MEM","IO_CELL_OFFLOAD_ELIGIBLE_BYTES","IO_INTERCONNECT_BYT
    ES","PHYSICAL_READ_REQUESTS","PHYSICAL_READ_BYTES","PHYSICAL_WRITE_REQUESTS","PH
    YSICAL_WRITE_BYTES","OPTIMIZED_PHY_READ_REQUESTS","LOCKED_TOTAL","PINNED_TOTAL",
    "IO_CELL_UNCOMPRESSED_BYTES","IO_CELL_OFFLOAD_RETURNED_BYTES" from gv$sql
    PL/SQL procedure successfully completed.Another GV$SQL?? Does this ever end???
    Back to V$FIXED_VIEW_DEFINITION for the final round:
    SQL> exec print_table('select view_definition from v$fixed_view_definition where view_name = ''GV$SQL''');
    VIEW_DEFINITION            : select inst_id,kglnaobj,kglfnobj,kglobt03,
    kglobhs0+kglobhs1+kglobhs2+kglobhs3+kglobhs4+kglobhs5+kglobhs6+kglobt16,
    kglobt08+kglobt11, kglobt10, kglobt01, decode(kglobhs6,0,0,1),
    decode(kglhdlmd,0,0,1), kglhdlkc, kglobt04, kglobt05, kglobt48, kglobt35,
    kglobpc6, kglhdldc, substr(to_char(kglnatim,'YYYY-MM-DD/HH24:MI:SS'),1,19),
    kglhdivc, kglobt12, kglobt13, kglobwdw, kglobt14, kglobwap, kglobwcc, kglobwcl,
    kglobwui, kglobt42, kglobt43, kglobt15, kglobt02, decode(kglobt32,       0,
    'NONE',        1, 'ALL_ROWS',          2, 'FIRST_ROWS',          3, 'RULE',
    4, 'CHOOSE',            'UNKNOWN'), kglobtn0, kglobcce, kglobcceh, kglobt17,
    kglobt18, kglobts4, kglhdkmk, kglhdpar, kglobtp0, kglnahsh, kglobt46, kglobt30,
    kglobt09, kglobts5, kglobt48, kglobts0, kglobt19, kglobts1, kglobt20, kglobt21,
    kglobts2, kglobt06, kglobt07, decode(kglobt28, 0, to_number(NULL), kglobt28),
    kglhdadr, kglobt29, decode(bitand(kglobt00,64),64, 'Y', 'N'), decode(kglobsta,
    1, 'VALID',        2, 'VALID_AUTH_ERROR',      3, 'VALID_COMPILE_ERROR',
    4, 'VALID_UNAUTH',       5, 'INVALID_UNAUTH',           6, 'INVALID'), kglobt31,
    substr(to_char(kglobtt0,'YYYY-MM-DD/HH24:MI:SS'),1,19), decode(kglobt33, 1, 'Y',
    'N'),  decode(bitand(kglobacs, 1), 1, 'Y', 'N'),  decode(bitand(kglobacs, 2), 2,
    'Y', 'N'),  decode(bitand(kglobacs, 4), 4, 'Y', 'N'),  kglhdclt, kglobts3,
    kglobts7, kglobts6, kglobt44, kglobt45,  kglobt47, kglobt49, kglobcla,
    kglobcbca, kglobt22, kglobt52, kglobt53, kglobt54, kglobt55,  kglobt56,
    kglobt57, kglobt58, kglobt23, kglobt24, kglobt59,  kglobt53 -
    ((kglobt55+kglobt57) - kglobt52)  from x$kglcursor_childSo, here we are, finally, we get to the fabled 'X$' table! An X$ table is hardcoded into the Oracle kernel, and it's a table projection of a chunk of the SGA memory. It's can't be updated, only queried, and is not subject to read consistency.
    I'm sure this post will raise questions, but it's already too long, so, I'll leave it at that.
    Feel free to ask follow up questions, and I'll try to address them.
    Hope that helps,
    -Mark

  • SQL Views for applications, deployment types and deployments

    Has anyone seen any diagrams yet of the relationship between the views in the database for applications?  They are needless to say quite a bit more complex than the old Packages/Programs/Advertisements views.  I can probably figure out what I need,
    but it would save quite a time to be able to see the relationships called out.  A description of what some of the views actually do would be helpful too, I can figure out some, but others are a bit obtuse.
    Unfortunately there isn't an out of the box report that shows the information my customer wants, so I have to create one from scratch.
    If anyone is currious they want to see the status for all the computers that are targetted with an application deployment, this would include error codes, status, ect...
    Bob

    Yes, I know this is an old post, but I’m trying to clean them up. Did you solve this problem, if so what was the solution?
    The SQL view document has been release, it should help you out.
    https://technet.microsoft.com/en-us/library/dn581978.aspx
    Garth Jones | My blogs: Enhansoft and
    Old Blog site | Twitter:
    @GarthMJ

  • Using SQL view From SQL Express in Flex

    Hello All ,  i am new at Flex and yet searching for a basic answere to even more basic question...
    i am currently looking for a way o extract and import SQL views from my SQL Express database ( on my local host) and present it with RIA on desktop, grpahs Charts etc.
    my question is, which way is the best to do so ? 
    need i to use Coldfusion For the Data ?  and then Flex3 For the design ( i.e Graphs)?
    or maybe using another ODBC program for XML file and then Connect it as Data Resource into the flex3 project
    as you must see , i am a bit confused....
    thanks in advance

    Hi,
             If you go for AIR you can directly connect to Database and you can get the data and can be shown graphically ,
             But if you Go for Webapplication(Flex ) then definately u should use some backend like CFC,PHP,JAVA,.Net............ in order to connect to DB and use Remote Objects/HttpService and show the Result Graphically..............

Maybe you are looking for