SQL Access Advisor is not working

Hi all .
I'm running manually a script in order to improve database performance by SQL Access Advisor 10.2 . But it seems not goot when hitting en error .
DECLARE
l_taskname VARCHAR2(30) := 'test_sql_access_task';
l_task_desc VARCHAR2(128) := 'Test SQL Access Task';
l_wkld_name VARCHAR2(30) := 'test_work_load';
l_saved_rows NUMBER := 0;
l_failed_rows NUMBER := 0;
l_num_found NUMBER;
BEGIN
-- Create an SQL Access Advisor task.
DBMS_ADVISOR.create_task (
advisor_name => DBMS_ADVISOR.sqlaccess_advisor,
task_name => l_taskname,
task_desc => l_task_desc);
-- Reset the task.
DBMS_ADVISOR.reset_task(task_name => l_taskname);
-- Create a workload.
SELECT COUNT(*)
INTO l_num_found
FROM user_advisor_sqlw_sum
WHERE workload_name = l_wkld_name;
IF l_num_found = 0 THEN
DBMS_ADVISOR.create_sqlwkld(workload_name => l_wkld_name);
END IF;
-- Link the workload to the task.
SELECT count(*)
INTO l_num_found
FROM user_advisor_sqla_wk_map
WHERE task_name = l_taskname
AND workload_name = l_wkld_name;
IF l_num_found = 0 THEN
DBMS_ADVISOR.add_sqlwkld_ref(
task_name => l_taskname,
workload_name => l_wkld_name);
END IF;
-- Set workload parameters.
DBMS_ADVISOR.set_sqlwkld_parameter(l_wkld_name, 'ACTION_LIST', DBMS_ADVISOR.ADVISOR_UNUSED);
DBMS_ADVISOR.set_sqlwkld_parameter(l_wkld_name, 'MODULE_LIST', DBMS_ADVISOR.ADVISOR_UNUSED);
DBMS_ADVISOR.set_sqlwkld_parameter(l_wkld_name, 'SQL_LIMIT', DBMS_ADVISOR.ADVISOR_UNLIMITED);
DBMS_ADVISOR.set_sqlwkld_parameter(l_wkld_name, 'ORDER_LIST', 'PRIORITY,OPTIMIZER_COST');
DBMS_ADVISOR.set_sqlwkld_parameter(l_wkld_name, 'USERNAME_LIST', DBMS_ADVISOR.ADVISOR_UNUSED);
DBMS_ADVISOR.set_sqlwkld_parameter(l_wkld_name, 'VALID_TABLE_LIST', DBMS_ADVISOR.ADVISOR_UNUSED);
DBMS_ADVISOR.import_sqlwkld_sqlcache(l_wkld_name, 'REPLACE', 2, l_saved_rows, l_failed_rows);
-- Set task parameters.
DBMS_ADVISOR.set_task_parameter(l_taskname, '_MARK_IMPLEMENTATION', 'FALSE');
DBMS_ADVISOR.set_task_parameter(l_taskname, 'EXECUTION_TYPE', 'INDEX_ONLY');
DBMS_ADVISOR.set_task_parameter(l_taskname, 'MODE', 'COMPREHENSIVE');
DBMS_ADVISOR.set_task_parameter(l_taskname, 'STORAGE_CHANGE', DBMS_ADVISOR.ADVISOR_UNLIMITED);
DBMS_ADVISOR.set_task_parameter(l_taskname, 'DML_VOLATILITY', 'TRUE');
DBMS_ADVISOR.set_task_parameter(l_taskname, 'ORDER_LIST', 'PRIORITY,OPTIMIZER_COST');
DBMS_ADVISOR.set_task_parameter(l_taskname, 'WORKLOAD_SCOPE', 'PARTIAL');
DBMS_ADVISOR.set_task_parameter(l_taskname, 'DEF_INDEX_TABLESPACE', DBMS_ADVISOR.ADVISOR_UNUSED);
DBMS_ADVISOR.set_task_parameter(l_taskname, 'DEF_INDEX_OWNER', DBMS_ADVISOR.ADVISOR_UNUSED);
DBMS_ADVISOR.set_task_parameter(l_taskname, 'DEF_MVIEW_TABLESPACE', DBMS_ADVISOR.ADVISOR_UNUSED);
DBMS_ADVISOR.set_task_parameter(l_taskname, 'DEF_MVIEW_OWNER', DBMS_ADVISOR.ADVISOR_UNUSED);
-- Execute the task.
DBMS_ADVISOR.execute_task(task_name => l_taskname);
END;
can you help me out ?
REgard .

Error report:
ORA-13600: error encountered in Advisor
ORA-13635: The value provided for parameter ADJUSTED_SCALEUP_GREEN_THRESH cannot be converted to a number.
ORA-06512: at "SYS.PRVT_ADVISOR", line 3902
ORA-06512: at "SYS.PRVT_ADVISOR", line 3765
ORA-06512: at "SYS.DBMS_ADVISOR", line 56
ORA-06512: at line 10
13600. 00000 - "error encountered in Advisor\n%s"
*Cause:    An error occurred in the Advisor.
This message will be followed by a second message giving
more details about the nature of the error.
*Action:   See the Advisor documentation
for an explanation of the second error message.

Similar Messages

  • Privilege for SQL Access Advisor in OEM

    Hi experts,
    I tried to enter the option SQL Access Advisor in Oracle enterprise manager as user sh and got the following german error :
    Berechtigungsfehler
    Sie haben keine ausreichenden Berechtigungen zur Ausführung des SQL Access Advisors. Dazu ist die Rolle OEM_ADVISOR erforderlich. translated to english:
    Privileg error
    You don't have enough Privilegs to execute  SQL Access Advisors. The role OEM_ADVISOR is needed. but the user sh has in my system following roles:
    GRANTEE                        GRANTED_ROLE                   ADM DEF
    SH                             SELECT_CATALOG_ROLE            NO  YES
    SH                             OEM_MONITOR                    NO  NO
    SH                             OEM_ADVISOR                    NO  NO     "<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<"
    SH                             RESOURCE                       NO  YES
    SH                             CWM_USER                       NO  YESCan anyone help me?
    regards
    hqt200475

    Non-default roles are not enabled "by default".
    http://docs.oracle.com/cd/E11882_01/network.112/e16543/authorization.htm#sthref953

  • Differece b/w SQL Tunning & SQL Access advisor

    What the difference b/w these 2 , i know SQL Access advisor suggest for index or materialize view for fast query....what SQL tunning do?

    Mithu,
    Please stop lying!!!
    You are not new in this field. You have been asking RTFM questions for almost three years!!! When I had three years experience, I didn't need to ask the questions you think you need to ask. I LOOKED THEM UP IN THE DOCUMENTATION!!
    I will continue to expose your attitude as abysmal.
    You are in flagrant violation of the Etiquette in this forum.
    You are a parasite. You don't want to do anything to resolve your own questions.
    You are a disgrace to the DBA profession.
    In fact, because of this I may want to have your account removed.
    Sybrand Bakker
    Senior Oracle DBA

  • Do i implement SQL Access Advisor Recommendations

    Hi,
    I am using oracle 10.2.0 and i run SQL Access Advisor which gives me recommendations. But i can't figure out how many recommendations or all or some of them on any criteria i should implement and will they improve database performance.
    Thanks
    Umesh

    The Recommendation text would have the information of the SQL for which you have ran the Advisor and gives you the Explain and cost involved. Also,it would tell you the percentage of benefit by implementing the Recommendations.it gives you an adjusted PLan with cost and how you implement the same.
    Follow the process in your Test environment and to see if you get the same recommendations. if so, implement and see whether it really improved the performance or not.

  • "access restrictions" did not work sometimes when using 3-tier DeskI.

    My customer found that "access restrictions" did not work sometimes when using 3-tier DeskI.
    But this issue can be solved by logging on from another machine, or restarting the DeskI.
    For I can reproduce this issue, so I just want to know that:
    1.What is it probably related to?
    2.If this issue happens again, what can I suggest my customer for tracking it?
      For example, get some log files from servers etc.
    Thanks!

    Hi Sarah,
    Also you can try the following solution.
    1. Import the universe.
    2. Go to manage access restrictions
    3. Remove the restriction .
    4. Again create the rescrition and unchecked the " limit size of result set to"
    5. Now assign it to the unlimited results group ( this is the name of
    the group we have given to those users who should be able to retrieve
    more than X rows)
    6. Now we save the universe. (Dont export the universe).
    I hope this will help you.
    Regards,
    Sarbhjeet Kaur

  • SQL Access advisor

    We are on SQL Developer 3.2.09. We have a SQL tuning advisor Icon in this version. I am wondering if we can access SQL Access advisor for a specific query - I need advise on Materialized View creation. We can invoke DBMS_ADVISOR package for a set of SQL(s) but do we have this integration buit in SQL Developer. We are using Oracle 10gR2 and 11gR2.
    Thanks

    Pl post details of OS and database versions, along with what you are specifically trying to do.
    http://download.oracle.com/docs/cd/E11882_01/server.112/e16638/advisor.htm
    HTH
    Srini

  • SQL TRACE/TKPROF VS SQL ACCESS ADVISOR

    Hi All,
    Can anyone please tell me what's the exact difference between SQL TRACE/TKPROF and SQL ACCESS ADVISOR in Oracle 10g.(By showing some examples)
    And also why should I go for SQL ACCESS ADVISOR ?? (Since I have used the former all these days) :)
    Why can't I still use SQL TRACE/TKPROF.
    Please if anyone can pour light on this. Thanks in Advance.
    Regards,
    Marlon.

    Better go through below link........
    http://www.remote-dba.net/oracle10g_tuning/t_sqlaccess_advisor.htm_
    -Ek

  • Windows 8 Last Access Time Stamps not working

     Hi I have been trying to fix a issue with last access time stamps not working when I open a file
    so will have time on created modified and accessed from when created but some are wrong like one file
    saying
    created ‎Sunday, ‎September ‎14, ‎2014, ‏‎5:19:32 AM
    modified  ‎Sunday, ‎September ‎14, ‎2014, ‏‎5:19:32 AM
    accessed Sunday, ‎September ‎14, ‎2014, ‏‎5:19:32 AM
    I'm not sure what can cause this please help thank you

    Hi whowhatwere,
    Are you only confused about the last access time not change when you open a file?
    If you want to know more details about modified and created time, we can refer to the following KB.
    http://support.microsoft.com/kb/299648/en-us
    About the accessed time, please refer to the following blog.
    How do I access a file without updating its last-access time?
    http://blogs.msdn.com/b/oldnewthing/archive/2011/10/10/10222560.aspx
    The blog mentioned that: In fact, the intuitive definition of access is more specific: It's "the last time I opened, modified, printed, or otherwise performed some sort of purposeful action on the file."
    Best regards,
    Fangzhou CHEN
    Fangzhou CHEN
    TechNet Community Support

  • Oracle 10.1.0.4.2 SQL Plus dbms_output.put_line not working

    I am using Oracle 10.1.0.4.2 SQL Plus, and dbms_output.put_line is not working. It returns the dbms_output ONLY from outside the procedure. I have dbms_output INSIDE my procedure, and none of it gets returned. Please help!
    Here is what I enter:
    set serveroutput on size 1000000;
    DECLARE
         x number:=0;
    begin
    DBMS_OUTPUT.ENABLE;
    c2reports.c2proc(x,'TEST');
    DBMS_OUTPUT.PUT_LINE('testX');
    END;
    testX
    There should be more besides the 'testX' that gets returned. The first line in my procedure has output code to print testY. Thanks in advance!

    This is the forum for the Oracle's SQL Developer (Not for general SQL/PLSQL questions). You should ask question like this in the PL/SQL forum

  • Access Based Enumeration not working Windows 2012 R2 Datacenter

    I am having a hard time figuring out why Access Based Enumeration is not working for me.  I have set and re-set the settings and I'm still able to see folders I should not. I do get denied access on folders I don't have access to. 
    I have checked effective access which say everything is denied to me but I can still see the folder(s) listed. 
    I have the share permissions set to authenticated Users - Full Control
    I have the NTFS permissions set to the correct Dept. Groups. - Modify, and Domain Admins - Full Control and Guests - Deny Full Control
    Any idea's?
    --------Update--------
    I believe I had found the issue.  It was a rights issue with a group that added to the local admins group.

    Hi,
    It seems that you have resolve the issue.
    Please feel free to let us know if you need further assistance.
    Best Regards,
    Mandy
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • Frame access from servlet not working

    Dear all,
    I am running my servlets on Tomcat 5.5 and using JDK 1.6. I have a small program that uses codecs to access frames from a video file. PreAccessCodec implements Codec interface and PostAccessCodec extends PreAccessCodec. I set the two codecs into the processor's codec chain. The program is implemented as a thread and once started grabs frames and stores the images in a certain interval. The problem is this: whenever I start the thread from a main program, everything runs without a glitch. However, when I put the code in init() method of the servlet, I get the following error message:
    The input format is not compatible with the given codec plugin: com.mapper.utils.PostAccessCodec@69d02b
    Failed to realize: com.sun.media.ProcessEngine@1478a43
      Cannot build a flow graph with the customized options:
        Unable to add customed codecs:
          com.mapper.utils.PreAccessCodec@15356d5
          com.mapper.utils.PostAccessCodec@69d02b
    Error: Unable to realize com.sun.media.ProcessEngine@1478a43 I am using netbeans 5.5.1 to deploy my servlets. I doubt that the problem is with classpaths because the servlet doesn't complain when I am using JMF's classes like Processor.
    I would really appreciate any help.
    Thank you.
    Message was edited by:
    calculemus

    The GE.iH() method should return false for
    a ..head-full ..en-headed, not headless
    environment, and I expect (from what you
    reported above) that will return false for both
    your servlet and application, and is apparently
    not the problem.It returned false when I tried GE, and it was not the problem as you suggested. However, I now noticed in the logs:
    java.awt.HeadlessException
    I use Netbeans for the development, and I tried using -Dheadless=true and -Dheadless=false, it did not change anything...
    I think it is time to check that assumption
    more carefully.
    My impression is that PreAccessCodec and
    it's 'Post' equivalent are mentioned a lot in JMF
    example code, but are custom classes,
    built to suit the use at the time. Did you write the
    Pre/PostAccessCodecs for this app.?Yes I customized them from the JMF sample codes. They are in the classpaths and are correctly read by the servlet. I did some logging and I actually saw that the code inside Pre/PostAccess was logging when my servlet was run.
    >
    So, what I am thinking, is that while the JMF
    based Processor class may well be on the
    server's
    classpath, perhaps Pre/PostAccessCodec classes
    are not.
    oes a jar appear in the WEB-INF/lib directory,
    that contains the Pre/PostAccessCodec.class?
    Failing that, are the classes themselves in
    WEB-INF/classes/(sub-dir according to package name)/ ?Nevertheless, just to double check I checked WEB-INF directory and the classes appear correctly in their appropriate 'package-folders'.
    I figured out where exactly the thread was not running. In my PostAccessCodec class, I had overloaded getSupportedInputFormats() function to return RGB format.
    public Format [] getSupportedInputFormats() {
    Format [] fomats = {new RGBFormat()};
    return fomrats;
    When I changed it to return {VideoFormat()}, the codec initializes, but I get nothing when I want to access the frame.
    I guess I will have to start another thread.
    @moderators, please move the post if it is inappropriate to put it in this thread, my apologies.
    The problem is still there and I am not able to get the frame access not working from the servlet. :(
    Message was edited by:
    calculemus
    Message was edited by:
    calculemus

  • Access Restrictions still not working with latest firmware

    Linksys WRT54GS V5 with firmware v1.52.2
    I cannot believe what a frustrating experience this is. All I want to do is block facebook.com from my two high schoolers until they’ve done their homework.
    Starting out, it simply did NOT work, and I discovered from this forum that the initial firmware did not work for this feature. So here is what I did:
    - Downloaded v1.52.2 firmware, which is indicated as being the latest for this router
    - Upgraded the router, per the instructions with this firmware.
    - Pressed (and held)the reset button for the indicated 30 seconds
    At this point, my router switched back to the default access point name and access password. Fortunately, I had backed up my configuration, so I then:
    - Loaded my previous configuration that included my Wireless security settings, different AP name, etc...
    - Powered down, then back up router, cable modem.
    Router now works wireless as before, but Access Restrictions still does not restrict. Router does list the correct firmware on the admin screens.
    Here is how I sent up my one (and only policy)
    Internet Access Policy: 1(facebook)
    Status: Enable
    Enter policy name: facebook
    PCs: Allow checked
    Days: Everyday checked
    Times: 24 hours checked
    Blocked Services: NONE
    Wewbsite Blocking by URL Addresses:
    3 entered, they are:
    http://www.facebook.com
    http://static.ak.facebook.com
    http://apps.facebook.com
    Website blocking by keyword: All 6 boxes empty
    This was easier to do on my old netgear router, and it also actually WORKED. ARGHHHHHH

    Thanks, but that did not work either. It seems to me that, entering mac addresses ended up totally taking away all internet access for the computers on the MAC list. This is really pathetic that a concept that on the surface seems so simple, as in 'deny access to hostname xxx.com' can be so difficult to implement. If there wasn't the suggestion that this were a feature of the router, I wouldn't care. But it *is* supposedly a feature, and the feature simply does not work.
    It seem to me that LinkSys has too many mutually exclusive options on a single page. It would be easier to grok if the hostname filter had it's own page, then you wouldn't be wondering what the 'deny/allow' check box did or did not do in conjunction with your selections.
    Does the feature work or not? As I mentioned, this was childishly easy to accomplish on my Netgear router. If it didn't suck so bad in other areas of performance, I'd simply go back to it.

  • SQL Query Single Row not working

    My workflow contain a Query Single row activity. I have added a where clause in Arabic which is not working. If I remove the Arabic condition its working.
    Is there something to do with the server?
    My server is windows 2008 R2 Server.
    The same workflow is running perfectly on another identical environment.
    Thanks for any valuable suggestions,
    Nith

    Hi Sastry,
    Connection to the database is trough Pivotal, I have tried ODBC connection as well but same error
    The instruction at "0x005d53e0" refereced memory at "0x00000014'. The memory could not be "read".
    With ODBC I have always compilation error saying
    Query Engine Error: '42000:[Microsoft][ODBC SQL Server Driver][SQL server] Incorrect syntax near the keyword 'SELECT'. '.
    but even the simple select statment is showing the error.
    Do you think the error is with Drivers???
    Regards
    Stefan

  • Time access control does not work

    I set up the time access control for my kids devices, but they can still access the internet.

    Several possibilities exist:
    1) The Timed Access entries are not being set up correctly. Have you tested each device yourself?
    2) The kids are smart enough to know how to work around the settings
    3) The kids know how to get on another nearby wireless network.
    Regarding 2) and 3), there are numerous popular sites on the Internet that kids visit that provide them with tips and techniques to get around security on popular routers, so that possibility may be more real than you might imagine.
    Regarding 1), we may be able to help, as there are two basic ways to set up Timed Access.....one being quite a bit more secure than the other. Unfortunately, this means a more time consuming and tedious set up.

  • Accessability/Universal Access - Zoom does not work in Launchpad/Mission control

    If using the Accessability 'Zoom' option it works normally in 'normal' desktop Spaces.
    On entering either LaunchPad or Mission Control it is not possible to zoom in or, more importantly, zoom back out to full screen.
    It is also not possible to move the zoomed area around the full desktop.
    These issues make LaunchPad and Mission Control unusable if entered with any amount of Zoom enabled.
    The workaround appears to be to leave LaunchPad or Mission Control, Zoom fully out and go back in again.
    This is not helpful if you need the zoom mode in order to be able to see your computer screen.
    Anyone found a better workaround?

    Phoned AppleCare tonight - the fix was to nuke the System Preferences preference file and reboot.
    The good news - 'Zoom' now works with the keyboard shortcuts.
    The bad news - the trackpad 'zoom' gesture from Snow Leopard doesn't work in Lion.

Maybe you are looking for

  • Snapshot naming

    Snapshot naming: - Default to date, date/time or last edit name (default naming selectable via preferences)

  • Mac: Upgrading PS CS2 to PS CS3; LR sees CS3 - what I did.

    After reading several threads asking about upgrading from CS2 to CS3 and how that impacts LR, I decided to bite the bullet and did things the way I wanted. Here are my results for a MacBookPro 2 GB ram, core duo: * I first deactived CS2, since I didn

  • IPhoto 6 and FileVault

    My wife and I both use iPhoto 6 with FileVault. Editing files quickly eats up disk space and you have to log out to recover this space. I suspect (but don't know for sure) that there are temp files being created and deleted. Has anyone else seen this

  • Freight with TAX for canada

    Hello SAP Gurus, We have a new and urgent requirement from the business in canada. They are launching a new product and which is non-taxable. However, the freight is taxable. The tax comes from the external taxware system. Please let me know how to c

  • NEW MACBOOK PRO WITH 2.5GHZ CORE DUO ADN 4GB 667 MHZ / SUPER SLOW WITH DSL

    I just received this beautiful laptop, which was blazing fast with my wireless connection in the house, but after installing Adobe InDesign CS3 and Office 2008, it takes literally minutes after each click on-line. Any ideas, or is the software too mu