[NEWBIE] How to view contents of a view

I have to check the content of the v$sql_text view or rather SQL_TEXT column of v$sql or v$sqlarea view to see which SQL statements are executed but, how can I view the contents of a view?
Aqua Data Studio 4.7.2 that I use is ok for viewing the data of a table but I cannot seem to find a way to display the contents of a view :-C

A View is a stored query. You store a query by name in the database and then query against it.
SQL> Create table dept( dno number, dname varchar2(30));
SQL> insert into dept values ( 10, 'Finance');
SQL> insert into dept values ( 20, 'Sales');
SQL> insert into dept values ( 30, 'HR');
SQL> Commit;
Now create a view on dept table, and restrict the view to query only dept no. 30:
SQL> Create or replace view dept_30 as select * from dept where dno =30;
Now, run a query against this view, like below:
SQL> select * from dept_30;
To see what is the underlying query on which the veiw is built, query "USER_VEIWS"
SQL> set long 50000
SQL> select text from USER_VIEWS;
Regards

Similar Messages

  • I am trying to open a website that is using Microsoft content viewer, and the page does not show. Any ideas on how to view this site using firefox. It works on IE.

    I am participating in an online class whose website uses Microsoft Content Viewer to view the class content. The browser opens a new page, but nothing is there. At the top of the tab it says Microsoft Content Viewer, and nothing else. Can anyone tell me how to view my course using Firefox? I would prefer not to use IE, but it works there.

    When originally creating the pdf, you would need to choose another pdf conversion setting. In Word if you use the pdf menu, change your settings there: Adobe PDF > Change Conversion Settings. I would use High Quality Print instead. If you use the File > Print method, click the Properties button next to the Adobe PDF printer selection.
    For your already created form, you can change the file so your users will not encounter issues. In Acrobat 9, which hopefully is similar in process to 8: Advanced > Preflight > Profile tab > PDF/A compliance > Remove PDF/A information.(You'll have to unsecure your form first).
    You can read about PDF/A files in the Help.

  • How to View Multiprovider contents

    Hi,
    How to view the MUltiprovider Contents in Bw server itself not in Query.
    Regards,
    Raj

    Hi Raj,
    Steps are as follows:
    Step1: Log on BW
    Step2. type T Code: LISTCUBE
    it open " Call Up List Viewer For Data Targets" screen
    Step3. in the "Object Type" field choose- Multiprovider by SAP(DMPR)
               in the "Data Target" field choose your Multiprovider
               and if you want to display SID then check "Display SID" or and other check box are   
               to choose.
    Step 4 Click "Execute" or F8
    to view Multiprovider contents
    Atul

  • Hi i am using oracle 10g how to view the content of the stored procedure or trigger ?

    Hi i am using oracle 10g .How to edit  the content of the stored procedure or trigger ?

    jklopkjl wrote:
    Hi i am using oracle 10g .How to view the content of the stored procedure or trigger ?
    query ALL_SOURCE
    SQL> desc all_source
    Name                                      Null?    Type
    OWNER                                              VARCHAR2(30)
    NAME                                               VARCHAR2(30)
    TYPE                                               VARCHAR2(12)
    LINE                                               NUMBER
    TEXT                                               VARCHAR2(4000)

  • How to view alerlog contents using SQL?

    How to view alertlog contents using SQL?

    Hi,
    Why don't you use the OEM Database Console ?? Now, in order to view the contents of the alert log file using a SELECT statement, you need to create a external table:
    create or replace
    directory background_dump_dest_dir
    as '<your_oracle_home>/bdump';
    CREATE table alert_log_external
    (line varchar2(4000) )
    ORGANIZATION EXTERNAL
    (TYPE oracle_loader
    DEFAULT DIRECTORY background_dump_dest_dir
    ACCESS PARAMETERS (
    RECORDS DELIMITED BY newline
    nobadfile
    nologfile
    nodiscardfile
    FIELDS TERMINATED BY '#$~=ui$X'
    MISSING FIELD VALUES ARE NULL
    (line)
    LOCATION ('alert_<sid_of your_database>.log') )
    REJECT LIMIT UNLIMITED;Cheers

  • OOM PermGen... How to view the content of permgen

    I have a pretty big java application running on windows and linux (redhat) using JBoss as the application server.
    The application has been running for a long time without issues and now, with the end of a new release of our software, under heavy load, we are running out of perm gen space.
    What I would like to see is a tool that lets me view the content of the perm gen space so I can determine why we are using so much memory.
    I am aware of jmap -permstat (on linux only) that should let you view some info about permgem but for me, jmap connects to the java process and never comes back. I tried a profiler (jprofiler) and again, I can't find info about what is occupying the permgen memory space.
    Can someone suggest tools, or methods to get to the content of the permgen space so I can determine what our issue is?
    Here are our startup options; as you can see it has been tuned quite a bit for maximum performance for our usage patterns.
    I would appreciate any help chasing down this issue.
    Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_02-b05, mixed mode)
    -Xms8000m
    -Xmx8000m
    -Xss256k
    -XX:PermSize=256m
    -XX:MaxPermSize=256m
    -Xmaxjitcodesize96m
    -XX:+UseParNewGC
    -XX:+HandlePromotionFailure
    -XX:ParallelGCThreads=16
    -XX:GCHeapFreeLimit=10
    -XX:NewRatio=3
    -XX:SurvivorRatio=2
    -XX:InitialSurvivorRatio=2
    -XX:MinSurvivorRatio=2
    -XX:GCTimeRatio=19
    -XX:MaxTenuringThreshold=128
    -XX:TargetSurvivorRatio=90
    -XX:+ClassUnloading
    -XX:ErrorFile=hs_err_<pid>.log
    -XX:HeapDumpPath=java_<pid>.hprof
    -XX:-HeapDumpOnOutOfMemoryError

    jklopkjl wrote:
    Hi i am using oracle 10g .How to view the content of the stored procedure or trigger ?
    query ALL_SOURCE
    SQL> desc all_source
    Name                                      Null?    Type
    OWNER                                              VARCHAR2(30)
    NAME                                               VARCHAR2(30)
    TYPE                                               VARCHAR2(12)
    LINE                                               NUMBER
    TEXT                                               VARCHAR2(4000)

  • Cannot figure out how to view ipod contents on itunes screen??

    My kids have the nanos where I could see what had been transferred over and what wasn't. With my 5th generation, I can't figure out how to view it's contents. I get the summary screen and related screens on what to sync with the 7.0 version.

    On the left-hand sidebar in iTunes you should be able to see your iPod - icon with name beside it. Underneath it, there should be listings like music, movies, T.V. shows, podcasts, audiobooks. (I guess if there's nothing on the iPod yet there may be none of that) Select one of the items and it will show you the iPods' contents of that particular thing.

  • How to view exp.dmp contents....

    Hi All..
    How to view only contents of exp.dmp without importing into the user.
    Sudhir S.

    Use SHOW=Y option, e.g.
    $ imp test/test file=test.dmp show=y$ imp help=y (to show options)

  • When I get messages from Barnes and Noble, the text is blank. If I hit reply or forward, I can then see the content. This only happens with Barnes and Noble. Any suggestions on how to view the content?

    When I get messages from Barnes and Noble, the text is blank. If I hit reply or forward, I can then see the content. This only happens with Barnes and Noble. Any suggestions on how to view the content?

    I'm sorry, but your sister, unless she had already turned on the "Find my iPhone" feature and the person who took the phone has not disabled it, is out of luck. She should report the theft to local police authorities, including the serial number of her iPhone. While her experience is unfortunate, there are good reasons why Apple cannot do anything else about it.
    I hope she gets her phone back.
    Best of luck.

  • Hi everyone! newbie here! can someone tell me how to view my flash drive on an imac please?, hi everyone! newbie here! can someone tell me how to view my flash drive on an imac please?

    Hello, can someone help me by telling me how to view my flash drive on an imac? I have it on a port but cant find it even using finder. Thanks!

    If you think repeat yourself three times makes your problem clearer?
    It does not.
    Details are needed.
    Allan

  • How to view iPhoto pictures?!

    OK guys... this will sound a newbie question... but for the life of me I cannot figure out how to view pictures from my iTunes lib on my Apple TV without have to 'Sync' (copy) them to the Apple TV.
    Right now I cannot only copy the pictures to the Apple TV.... but I want to just be able to 'stream' them from my Macbook.... is that now possible?
    Cheers!

    You can connect your tv with itunes on your computer in two different ways. I prefer to call one a primary and the other a secondary, others will call them paired and shared and others will call them syncing and streaming.
    Basically a primary (paired or syncing) library allows you to sync content or stream it or a mixture of both. You can only connect one primary library to an tv.
    A secondary library will only let you stream content, but you can have up to 5 of these.
    The one exception to this is photos which have to be synced from a primary library, you don't have the option of streaming, so to stream photos you have to use a secondary library.
    JGG isn't saying you need 2 computers just to watch different types of content. If you want to stream photos then you will need to stream everything (movies, tunes etc etc), what JGG is saying is that if you didn't want to stream everything and say sync a few movies but stream photos then you would need two computers, or since you are using a mac run two user accounts.
    Can I ask why you only want to stream photos.

  • How to view the sql query?

    hi,
      how to view the sql query formed from the xml structure in the receiver jdbc?

    You can view SAP Note at
    http://service.sap.com/notes
    But you require SMP login ID for this which you should get from your company. The content of the notes are as follows:
    Reason and Prerequisites
    You are looking for additional parameter settings. There are two possible reasons why a feature is available via the "additional parameters" table in the "advanced mode" section of the configuration, but not as documented parameter in the configuration UI itself:
    Category 1: The parameter has been introduced for a patch or a SP upgrade where no UI upgrade and/or documentation upgrade was possible. In this case, the parameter will be moved to the UI and the documentation as soon as possible. The parameter in the "additional parameters" table will be deprecated after this move, but still be working. The parameter belongs to the supported adapter functionality and can be used in all, also productive, scenarios.
    Category 2. The parameter has been introduced for testing purposes, proof-of-concept scenarios, as workaround or as pre-released functionality. In this case, the parameter may or may not be moved to the UI and documentation, and the functionality may be changed, replaced or removed. For this parameter category there is no guaranteed support and usage in productive scenarios is not supported.
    When you want to use a parameter documented here, please be aware to which category it belongs!
    Solution
    The following list shows all available parameters of category 1 or 2. Please note:
    Parameter names are always case-sensitive! Parameter values may be case-sensitive, this is documented for each parameter.
    Parameter names and values as documented below must be used always without quotaton marks ("), if not explicitly stated otherwise.
    The default value of a parameter is always chosen that it does not change the standard functionality
    JDBC Receiver Adapter Parameters
    1. Parameter name: "logSQLStatement"
                  Parameter type: boolean
                  Parameter value: true for any string value, false only for empty string
                  Parameter value default: false (empty String)
                  Available with: SP9
                  Category: 2
                  Description:
                  When implementing a scenario with the JDBC receiver adapter, it may be helpful to see which SQL statement is generated by the JDBC adapter from the XI message content for error analysis. Before SP9, this can only be found in the trace of the JDBC adapter if trace level DEBUG is activated. With SP9, the generated SQL statement will be shown in the details page (audit protocol) of the message monitor for each message directly.
                  This should be used only during the test phase and not in productive scenarios.
    Regards,
    Prateek

  • HOw to view the records in a structure qaqee ?

    hi every one ,
    we can view the tble through SE16 
    HOw to view the records in a structure qaqee ?
    Thanks in advance

    Hello,
    Please check the link
    http://help.sap.com/saphelp_erp60_sp/helpdata/EN/90/8d7301b1af11d194f600a0c929b3c3/content.htm
    You can view the struture in SE11 t-code for its components.
    Regards,
    Shailesh

  • How to view process of outbound Adaptor

    Hi,
      I am doing file to idoc scenario. I want to see the
    status of message through "Outbound Adaptor" Monitoring.
    In this Monitoring 3 tabs are. There thy were...
    "Message Content",
    "Queue Monitor"
    "Outbound Adaptor"
       when I am logging into this it is not taking my User
    id. Then I tried with service user ids..even it is not
    taking. why it is not taking and how to view all this
    information?
    Thx,
    Ansar.

    Hi Ansar,
    Do you have the full logging and trace level in SXMB_ADM enabled.
    In  system the tracing is not enabled since it will occupy more memory . But you can turn it on and off in SXMB_ADM under the intergration engine configuration and press the help button to get all the parameters you can set.
    This might help you
    View Old Outbound docu in AE
    Regards
    Agasthuri Doss

  • HOW TO VIEW HIDDEN FILES?????

    i have searched for days on my computer for some hint a program or option that allows me to view any hidden files in an application folder, but it has yet eluded me.
    I am having trouble with a program of mine, and the tech service there told me to send them the programs log file, which they named. i looked in the applications folder, and the only files i saw was the program icon, and the uninstall folder, which contained the uninstall icon. i told them this, and they replied:
    "i'am sure that these files are on your computer. Maybe they are invisible.
    Please search (automatic) the folder ".********" ."
    if anyone knows, eitehr what this means, or how to view hidden files, please let me know
    Thanx

    To see inside an application package select the application then CTRL- or RIGHT-click and select Show package contents from the contextual menu. You can navigate through the application package's content. It's unlikely you will find anything useful there.
    To see invisible files open the Terminal application in your Utilities folder and at the command line prompt enter or paste the following command then press RETURN:
    defaults write com.apple.finder AppleShowAllFiles TRUE
    To turn off the display of invisible files substitute FALSE for TRUE in the same command line.
    Invisible files are invisible for a reason - to hide them from the prying eyes of novice users and ignorant tech support people. Perhaps it would be more helpful if you could detail the problem you are having.

Maybe you are looking for