How to use 10g's SQL tuning support from SQL*Plus

Hi,
I am having problems with my application's SQL queries execution time. I am not tuning guru, I know pretty little about tuning. As I read 10g has a SQL Tuning Advisor. Can I use it from SQL*Plus? I didn't say, but do not have the possibility to access the database, by no other means only SQL*Plus.
TIA
Regards,
Tamas Szecsy

If you have granted the ADVISOR privilege you may use it from SQL*PLUS
Look for examples on the web
(using DBMS_SQLTUNE package)

Similar Messages

  • How to use views in sql script report?

    All all
    Can any one tell how to use views in sql script report?

    Most of the views are based on tables (or other views which are based on tables).
    The view typically shows one org at a time based on the context that is set.
    If you need records for all orgs, you need to use the underlying tables. Oracle typically names the tables with a _all suffix.
    e.g. PO_HEADERS will show records for one org at a time. PO_HEADERS_ALL will show records for all orgs.
    Hope this answers your question,
    Sandeep Gandhi

  • QuestionJust purchased a USB Super Drive but unsure how to use it - o instructions provided apart from how to eject a cd.  Each time I put in a cd it just ejects it again.

    Just purchased a USB Super Drive but unsure how to use it - o instructions provided apart from how to eject a cd.  Each time I put in a cd it just ejects it again.Can anyone help.

    USB is rarely bootable under Mac OS X and PowerPC Macs.   Get a Firewire Superdrive from http://www.macsales.com/ if your intent is to boot the machine.   PPC, which is PowerPC, indicates the Mac predates 2006.

  • Help me!    How to use it as a web service from third party application?

    After using JDeveloper to develop BSSV object e.g. JP550010, how to use it as a web service from third party application?
    TKS!

    Obviously the OP is working on a project for the Bead Society of Southeastern Virginia http://www.bssv.org. Oh, wait, maybe he's researching the Blueberry Shoestring Plant Virus http://abbreviations.yourdictionary.com/bssv
    :D
    John

  • How to use utl_ftp package to transfer files from one system to another

    Hi all,
    How to use utl_ftp package to transfer files from one system to another using plsql procedure .
    I failed to find the appropriate document ,kindly help me .
    Thanks,
    P Prakash

    prakash wrote:
    I am sorry tell you, this blog is not enough to for me.It's not a blog, it's Chris' website where you download the package from. Once you download the package and unrar it, then the package spec gives instructions (and I think there's instructions on how to install it too).
    Kindly let me know if there is any oracle documentation for this .It's not an Oracle created package, it was created by Chris. It's based around the UTL_TCP package if you really want to get into the nitty gritty of how it works, but I don't think you do.

  • How to use property file - sql query define in property file

    Hi All,
    Anybody please tell me how to use property file.
    I have placed sql query in propery file and I have to access this in my file.
    well so far this is my code but don't know how to implement in the following ...
    pstmt = con.prepareStatement("select * from registration where username=?");
    instead of writting the query I want to use the property file.
    so far I have developed the following code...
    FileInputStream fis = new FileInputStream("querysql.property");
    Properties dbProp = new Properties();
    dbProp.load(fis);is the code correct... or is there another way to access property file
    Please help.
    please reply soon....
    Thanks

    Before answering, check if it's already been done here http://www.jguru.com/forums/view.jsp?EID=1304182

  • How to use the generated SQL of "Recommendation"

    Dear Experts,
    I am using KXEN recommendation function. After trained the model, I expose the result in form of HANA SQL. However, I am really have no idea how to make this SQL runnable because there are some subqueries like:
    FROM $Dataset "SPACEIN"
      LEFT OUTER JOIN (SELECT * FROM  WHERE "GRAPH_NAME" = 'Transactions') "PRODUCTS" ON ("PRODUCTS"."KXNODEFIRST" = "SPACEIN".MemberID)
      LEFT OUTER JOIN (SELECT * FROM  WHERE "GRAPH_NAME" = 'Product') "RULES" ON ("PRODUCTS"."KXNODESECOND" = "RULES"."KXNODESECOND")
      LEFT OUTER JOIN (SELECT * FROM  WHERE "GRAPH_NAME" = 'Transactions') "NOTIN" ON ("RULES"."KXNODESECOND_2" = "NOTIN"."KXNODESECOND") AND ("NOTIN"."KXNODEFIRST" = "SPACEIN".MemberID)
    Please pay attention to the red parts. While $Dataset, I assume it should be the data source which is used to train the model, but how to handle the "GRAPH" parts(the next 3 subqueries)? There are something missing after "FROM" clause, what should I fill in here? why the XKEN will generate sucn incomplete codes?
    Thanks for your help!

    Hi Richard,
    To apply a recommendation model, you first need to save your model in your database. (saving the model in the database for such models and for what you want to do is mandatory).
    Once you saved it, you will see many tables starting with "Kx" : KxInfos, KxLinks, KxNodes...
    These tables contains information on the nodes available in the data used, on the links between products.
    Now, if you generate the SQL code for Hana, the name of your KxLinks table should now be used in the SQL code.
    When prompted for $Dataset and $Key, you should specify in place of $Dataset the name of the table on which you want to apply your model. In place of $Key, you should enter the name of the key of this table (e.g. UserId).
    In my case $Dataset =>KAR_UniqueCustomers and $Key=>UserID
    My generated code looks like this :
    FROM KAR_UniqueCustomers "SPACEIN"
    LEFT OUTER JOIN (SELECT * FROM KxLinks1 WHERE "GRAPH_NAME" = 'Transactions') "PRODUCTS" ON ("PRODUCTS"."KXNODEFIRST" = "SPACEIN".UserID)
    LEFT OUTER JOIN (SELECT * FROM KxLinks1 WHERE "GRAPH_NAME" = 'ItemPurchased') "RULES" ON ("PRODUCTS"."KXNODESECOND" = "RULES"."KXNODESECOND")
    Note that your application table must contain:
    - A column with the same name as your users identifier in the training dataset. It contains the list of distinct users (stricly 1 row for each customer id)
    - A column with the same name as your products name in the training dataset. It can contain the name of the same product for all customers.
    I hope you'll make it work !
    Armelle

  • How to use PHP with SQL?

    how to use sql in php and output a new ERP table contains every order_number, every order_quantity and so on then ouput sum of company and then sum of area
    and so on.
    now i only know a little how to use sql in php and you can give some examples of this?

    This sounds like a nice little homework exercise.
    Check the PHP FAQs for Oracle/PHP help
    http://www.oracle.com/technology/tech/php/htdocs/php_faq.html
    http://www.oracle.com/technology/tech/php/htdocs/php_troubleshooting_faq.html
    For SQL help, check http://asktom.oracle.com/
    -- cj

  • How to use SP_transaction_notification in SQL to provide SAP warnings?

    Hi Guys,
    I use SP_transaction_notification in SQL to block certain event and give error messages on sap screens.  Anyone knows how to provide a warning only using the same technique?
    For example if a user doesn't enter customer reference number on a order , can you provide a warning?
    Thanks

    Hi,
    As an addt. info, this link seems unavailable :
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid /53cefa6a-0a01-0010-cd8e-e7c189cb6519
    I've tested it after browsing the link.
    Rgds,

  • IaaS SQL/VM - how to use an existing SQL VM

    Hello
    I have a Cloud Service with a Window Web VM and SQL VM. They both are on the same Vnet. Now I want to add a DB using the existing SQL VM. But this VM does not show up of the Server drop down menu in "Specify Database setting"
    wizard. What am I missing here?
    If I let the DB Wizard add a new server (leveraging PaaS offer for SQL DB), how can I make sure that this new server shows up on my Vnet (the same one where I have Web VM on)? I assume that these VMs needs to be on the same Vnet to be able to communicate
    with each other. 
    Thanks in advance for your help

    Hello,
    It seems that you had mix up Windows Azure SQL database with SQL Server on Azure VM. When you create a SQL Server virtual machine in Azure, it similar to on-premises SQL Server installed on VM. You can create and manage databases with SSMS.
    If you create a SQL database on Management Portal, the SQL database server host a VM of the datacenter, you cannot using the existing SQL Server VM which your created yourself.
    When connect to the SQL database from your azure VM which hosted on Cloud Service, there is no need to create a virtual network, just configure the firewall rule of the SQL database server to allow connection from Windows
    Azure Serivces.
    Reference: How to: Configure the Server-Level Firewall Settings (Azure SQL Database)
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

  • How to use advanced PL/SQL concepts in oracle forms/reports

    Hi all,
    Can any one suggest me how to use the advanced PL/SQL Concepts(nested tables,PAA,Varrays,Objects...) in Oracle forms.
    Actually i Created a Table having column of Varray datatype. now i want to create a item in oracle forms on this field. can any one suggest me the way to do this.
    Thanks,
    Kumar

    Hello,
    Have a look at this one:
    http://sheikyerbouti.developpez.com/tutoforms10g/tutoforms10g.htm
    particularly the chapter about block that contain a collection (2.3.3). The sample is built around a nested table but you have the idea to adapt it to work with a varray.
    Kind regards,
    Alex
    If someone's answer is helpful or correct please mark it accordingly.

  • How to use the oem_exec_template.sql

    hi,guys
    Env
    OWB 9.2.0.2.8
    Oracle DB 9.2.0.1
    OEM 9.0.1
    I've deployed a mapping SRC_TO_TAR. And I've successfully run this mapping in owb.
    But when I try to use the oem_exec_template.sql to invoke in sqlplus, the script always tells me 'Taks not found'.
    I use the following command to invoke the oem_exec_template.sql:
    sqlplus owb_runtime_access/dw@dwdb @oem_exec_template.sql owb_runtime owb_target PLSQL SRC_TO_TAR "," ","
    the result is
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.1.0 - Production
    Session altered.
    Role set.
    Stage 1: Decoding Parameters
    | location_name=owb_target
    | task_type=PLSQL
    | task_name=SRC_TO_TAR
    Stage 2: Opening Task
    declare
    ERROR at line 1:
    ORA-20001: Task not found - Please check the Task Type, Name and Location are
    correct.
    ORA-06512: at line 261
    Could any one here tell me how to correctly use the oem_exec_tempalte.sql?
    thanks very much.
    Frank

    I login in as runtime owner and runtime access user and run the sql:
    select * from all_objects where owner = 'OWB_TARGET'
    I can't find the mapping that I have already deployed.
    is this the reason why it always retrun "Task not found"
    who knows?
    urgent
    thanks
    Frank

  • Problem while executing script in Toad - How to use '&' in the sql script ?

    I have to execute sql script in toad. Sql script has one insert query in which one insert-value is 'USA & CAN'. When I executed the script in toad by pressing F5, I got a prompt window asking for the value if 'CAN' as it is after the &.
    I tried using[b] {escape '\' } .... but could not resolve the problem.
    Is there any solution or workaround to overcome this problem. I have thousands of records with such values and I have to use sql script only.

    There is an option in TOAD to change this behaviour.
    Look in VIEW/OPTIONS/SQL Editor/
    Uncheck the box for "Scan statements for bound variables before execution".
    In SQL*PLUS it would be SET SCAN OFF
    (desupported version is SET DEFINE OFF)
    Message was edited by:
    Sven Weller

  • How to use Airplay Mirroring to Apple TV from MacBook Pro 5.1

    How do you use "Airplay Mirroring" to an Apple TV from a MacBook Pro 5.1

    Hi HunterHerring,
    Thanks for using Apple Support Communities. Based on what you stated, it sounds like you want to mirror from a 2008 MacBook Pro to an Apple TV. I would recommend that you read these articles, they may be helpful in answering your question.
    About AirPlay Mirroring in OS X - Apple Support
    A supported Mac
    The following Mac models support AirPlay Mirroring when using OS X Mountain Lion or later:
    MacBook Pro (Early 2011 or newer)
    How to identify MacBook Pro models - Apple Support
    MacBook Pro (15-inch, Late 2008)
    MacBookPro5,1
    MB470xx/A
    15.4"/D2.4G/2G/250/SD-DL
    MB471xx/A
    15.4"/D2.53G/4G/320/SD-DL
    MC026xx/A
    15.4"/D2.66G/4G/320/SD-DL
    Cheers,
    Mario

  • Using Internet enabled SQL*Plus

    I' d like to use this feature just as it is describe in the document from Luan Nim.
    I wrote a simple test_sql.sh that work very well under unix.
    # test utilisation sqlplus sous Web
    #! /usr/bin/sh
    # . $HOME/.profile
    echo Content-type: text/html
    # Mise en place des variables
    ORACLE_HOME=/oracle/u01/app/oracle/product/9i/
    export ORACLE_HOME
    ORACLE_SID=oracle_sid
    export ORACLE_SID
    #export TNS_ADMIN
    #NLS_LANG=FRENCH_FRANCE.WE8ISO8859P1
    #export NLS_LANG
    #echo $ORACLE_HOME
    #echo $ORACLE_SID
    # Execution de sqlplus
    #echo $ORACLE_HOME/sqlplus -M \"html on\" user/pwd@$ORACLE_SID @./test_sql.sql
    sqlplus -M "html on" -S user/pwd@$ORACLE_SID @./test_sql.sql
    When calling it from Web Browser (IE5) I get the following error :
    403 - Forbidden
    You don't have permission to access cgi-bin directory ?
    How can I do ?

    It looks like your web server is not configured to handle
    CGI scripts. Does your web server documentation give steps
    to configure CGI? Sometimes simple example CGI scripts
    are included. Once these are working, then we can help
    setting up a SQL*Plus CGI.
    If you are using Apache, check the httpd.conf file for the
    ExecCGI option. See if you can get the "printenv"
    demonstration CGI script working. Then move your SQL*Plus
    CGI shell script to the same directory, and try it there.
    Don't forget to echo a blank line after the "Content-type:
    text/html", else the CGI output will not be interpreted
    correctly.
    The SQL*Plus 9.2 UG&R has an example of a Perl CGI script
    for calling SQL*Plus:
    http://otn.oracle.com/docs/products/oracle9i/doc_library/release2/server.920/a90842/ch8.htm#1005951
    The iSQL*Plus web-based interface does most of the things
    done by a CGI based call to command-line SQL*Plus. Its
    "Dynamic Reports" feature is very similar to getting a CGI
    script to return a report from a static .SQL file. If you
    (i) have Oracle 9.2 (or 9.0 on Windows) installed (ii) don't
    mind getting HTML pages back, then it may be a better
    alternative to CGI. (Note the SET MARKUP HTML PREFORMAT OFF
    command can be used to give traditional character aligned
    text, but there will still be HTML page headers and
    footers).
    -- CJ

Maybe you are looking for

  • Photostream adding photos to camera roll...

    I have a single photostream (one iCloud account) set up on 4 devices - iMac (running Aperture 3.3), two iPhone 4S's, and an iPad 2.  In order to share photos over all devices, I used my wife's iCloud account to connect all the devices to one Photostr

  • Using Drop-Down List in Express Application

    To: [email protected] cc: Subject: Using Drop-Down List in Express Application On an Express generated Form window I want to use a drop-down list to define the list of valid values for a database field. The underlying database field could have a data

  • UnHappy With Built in iSight

    I have a macbook and im kind of unhappy with the built in iSight. I think it is awsome idea for location but the quality is not that great. Ive seen many pictures on apples website showing confrences but unfortunatly my iChat conferences are always b

  • Out of the blue! clicking HD, "can't read disk"

    I've got a 4th gen. click wheel. I didn't drop it, I didn't sit on it, I didn't give it a bath... I just plugged it in this morning, and out of the freakin blue: the first sign was that it wasn't showing up in itunes. The second was that when I tried

  • Printing with Business Objects in Forte 2.0.f

    Hello, Where are trying to get businessObject to work within the Forte environment (2.0.F), but we are stuck. Does anyone uses Business objects as a printing tool together with Forte, and if so, how is this done?? Hans van Drunen Philip Morris Münche