Errors using DBMS_SQLTUNE Advisors for Oracle 10g

I get errors trying to tune the below query for Oracle 10g using the DBMS_SQLTUNE advisors.
It happens when I wrap either a large block of PL/SQL code that uses bind variables or multiple nested subqueries with multiple JOIN conditions in a SELECT query statement that I wish to tune using the 10g SQLTUNE advisors.
Message was edited by:
benprusinski

Hi, I was trying to use the DBMS_SQLTUNE package to tune my sql statements used in the huge procedure. I can successfully create a task and execute it. But when I run report tuning task, I'm always getting error like the one in below example. Two questions I have now.
1) Is this becuase I'm using bind, but not passing any values?
2) Can I able to use to this package to tune a procedures instead of sql statement?
Example output...
SQL> SELECT DBMS_SQLTUNE.REPORT_TUNING_TASK( 'my_sql_tuning_task3')
2 FROM DUAL;
DBMS_SQLTUNE.REPORT_TUNING_TASK('MY_SQL_TUNING_TASK3')
GENERAL INFORMATION SECTION
Tuning Task Name : my_sql_tuning_task3
Tuning Task Owner : SCOTT
Scope : COMPREHENSIVE
Time Limit(seconds) : 3000
Completion Status : COMPLETED
Started at : 02/26/2009 21:44:41
Completed at : 02/26/2009 21:44:41
Number of Errors : 1
DBMS_SQLTUNE.REPORT_TUNING_TASK('MY_SQL_TUNING_TASK3')
Schema Name: KPRAVEEN
SQL ID : 479831s42xj1n
SQL Text : SELECT a.pdrorn, a.pdrcto, a.pdrlln FROM f4311 a
WHERE a.pddoco = receiptsrcrec.prdoco AND a.pddcto = :2 AND
a.pdkcoo = :3 AND a.pdsfxo = :4 AND a.pdlnid = :5
ERRORS SECTION
SQL>

Similar Messages

  • Error using "Microsoft ODBC for Oracle" driver

    I am trying to connect to Oracle 10g Express Edition from Access 2003 on Windows XP. I created a DSN using "Microsoft ODBC for Oracle" driver. When I try to connect using ADO, I get this error:
    [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed
    I googled this error and got a lot of hits but no solution.
    Any help would be greatly appreciated. I am new to Oracle and am coming from SQL Server 2000.
    Thanks a lot!

    This is the connection string I am using:
    Conn1.ConnectionString = "driver={Oracle in XE};Dbq=GMIS_LIVE.WORLD;Uid=Administrator;Pwd=ubs;"
    These are the contents of my tnsnames.ora (what entries do I add to make this work)?
    XE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = your-a9279112e3)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = XE)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    ORACLR_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (CONNECT_DATA =
    (SID = CLRExtProc)
    (PRESENTATION = RO)
    )

  • Encountering errors when installing OO40 for oracle  10g version 10.1.0.5.2

    Hello:
    I am installing an oracle application (argus) on a machine running Windows 2008 Server and Oracle 11g Database..
    The Argus installation manual says that Oracle Objects should be installed.
    I found the version listed in the Sibject line but when I tried to run the installer, it comes up with an error dialog box that says "Abnormal program termination. An internal error has occured. Please provide the following files to Oracle Support" and then says "Unlknown" three times.
    Did anybody encounter this scenario? How did you resolve it?
    Venki

    Hi:
    While I am still waiting for someone to help to solve the issue, I did some research. I used the Oracel Universal Installer and checked into the Products.XML associated with the installation for Oracle Objects I downloaded from Oracle site. The Installer came up with the following error message:
    Some components in the Stage Area have stage versions less than 10.2.0.0.0. Please ensure that all the components have their stage versions greater than or equal to 10.2.0.0
    I opened Products.XML and all components are 10.1.x.
    Any idea where I can get compatible versions?
    Venki

  • Echoping Debian for Oracle 10g

    Hi
    Do you know if echoping tool can be used on Debian for Oracle 10g
    Regards
    Den

    If you do not have it installed yet, you can download it from http://packages.debian.org/stable/net/echoping

  • Error while creating datasource userdsn for oracle 10g Errorcode (998)

    while creating datasource userdsn for oracle 10g i am getting error "The setup routines for the oracle in OraDb10g_home1 odbc driver could not be loaded due to system error code 998" please give reply soon

    Thanks for your reply , Steve.
    I noticed that there is a default datasouce on the EM with the following parameters:
    <data-source
              class="com.evermind.sql.DriverManagerDataSource"
              name="OracleDS"
              location="jdbc/OracleCoreDS"
              xa-location="jdbc/xa/OracleXADS"
              ejb-location="jdbc/OracleDS"
              connection-driver="oracle.jdbc.driver.OracleDriver"
              username="scott"
              password="->pwForScott"
              url="jdbc:oracle:thin:@localhost:1521:oracle"
              inactivity-timeout="30"
         />
    The location and xa-location attributes that I use for my "test" data source are the same as the default one. So, could this be the issue?
    What should be the values for location and xa-location attributes from my "test" data source?
    Any help will be greatly appreciated.
    Thanks,
    Shyam

  • Reg : I am getting an error while Using MicroSoft ODBC For Oracle Driver

    I am Using MicroSoft ODBC For Oracle Driver  for JDBC. Why i am using this driver is i could not able to get  the arabic content if i use the other driver  .I Right now i cannot change the NLS Lang because its a production server    also it has around 300 gb of data  and i can not take risk now by changing the NLS lang.. coming to the below error .i could able to access my data up to 4 Hours after that i am getting this error.If i restart my tomcat i can use my application  one more 4 hrs  .Please get back to me if u have any solution.Its very very helpful to me......+*
    [java.sql.SQLException] [ Microsoft ODBC for Oracle ]
    at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6957)
    at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7114)
    at sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(JdbcOdbc.java:3073)
    at sun.jdbc.odbc.JdbcOdbcConnection.initialize(JdbcOdbcConnection.java:3
    23)
    at sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.java:174)
    at java.sql.DriverManager.getConnection(DriverManager.java:582)
    at java.sql.DriverManager.getConnection(DriverManager.java:185)
    at com.iton.eoffice.DatabaseBean.connecteOfficeMoEnq(DatabaseBean.java:4
    60)
    at org.apache.jsp.MhewProfilesearchMoEnq_jsp._jspService(MhewProfilesear
    chMoEnq_jsp.java:434)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
    .java:384)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3
    20)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
    icationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
    ilterChain.java:206)
    at com.iton.eoffice.tree.CharacterEncodingFilter.doFilter(CharacterEncod
    ingFilter.java:63)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
    icationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
    ilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
    alve.java:228)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
    alve.java:175)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
    ava:128)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
    ava:104)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
    ve.java:109)
    at org.apache.catalina.ha.tcp.ReplicationValve.invoke(ReplicationValve.j
    ava:347)
    at org.apache.catalina.ha.session.JvmRouteBinderValve.invoke(JvmRouteBin
    derValve.java:209)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
    a:212)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
    :844)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
    ss(Http11Protocol.java:634)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:44
    5)
    at java.lang.Thread.run(Thread.java:619)
    ------------1234-----------
    java.lang.NullPointerException
    at com.iton.eoffice.DatabaseBean.getSQLRows(DatabaseBean.java:764)
    at org.apache.jsp.MhewProfilesearchMoEnq_jsp._jspService(MhewProfilesear
    chMoEnq_jsp.java:435)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
    .java:384)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3
    20)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
    icationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
    ilterChain.java:206)
    at com.iton.eoffice.tree.CharacterEncodingFilter.doFilter(CharacterEncod
    ingFilter.java:63)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by sreenivas navuluri:
    Oracle(tm)Client and networking components not found. These components are supplied by Oracle Corporation and part of Oracle Version 7.2 or greater Client software installation. You will be unable to use this driver until these components have been installed . This error occurs while selecting the Microsoft Odbc for Oracle driver from the ODBC in control panel. Pls suggest<HR></BLOCKQUOTE>
    null

  • Using javax.crypto in oracle 10g

    Hi,
    I have a java stored procedure for oracle 10g (running jdk1.4) that
    uses the javax.crypto package and the bouncy castle provider for RSA
    decryption. Here is a snippet of the code in the procedure:
    Security.addProvider(new
    org.bouncycastle.jce.provider.BouncyCastleProvider());
    Cipher rsaCipher = Cipher.getInstance("RSA");
    RSAPrivateKey key = (RSAPrivateKey)
    MSPrivKeytoJKey.getPrivateKey(aKey);
    rsaCipher.init(Cipher.DECRYPT_MODE, key);
    rsaCipher.doFinal(encryptedByteArray);
    This works fine on my own machine running jdk1.4. However, when I load
    my stored procedure into the database and run it, I get the following
    exception after the line
    Cipher rsaCipher = Cipher.getInstance("RSA");
    tries to execute:
    java.security.NoSuchAlgorithmException: Cannot find any provider
    supporting RSA
    I have tried the following (based on information gathered from various
    forums):
    - ran
    loadjava -u username/pass@DB -v bcprov-jdk14-137.jar
    - added the following line to java.security
    security.provider.4=org.bouncycastle.jce.provider.BouncyCastleProvider
    but i still get the same error.
    I am reaching out desperately to all you experts for help :)
    Pouria

    Hi,
    Unfortunately, the Java VM only supports the basic JDK functionalities; you could try the Metalink Note 356123.1 which should work using BC library but this note only addresses AES.
    Furthermore, you need the following two extra permissions:
    exec dbms_java.grant_permission('SCOTT', 'SYS:java.security.SecurityPermission','putProviderProperty.BC', '' );
    exec dbms_java.grant_permission( 'SCOTT', 'SYS:java.security.SecurityPermission','insertProvider.BC', '' );
    Oboviously SCOTT would be changed to whichever schema you are using.
    Kuassi http://db360.blogspot.com

  • Can't Create the ODBC connection for Oracle 10g

    Hi,
         I am working with Oracle 10g Database Release 2 in windows XP professional. I am trying to create an ODBC connection for oracle but become failure because its generating the following errors:
    system error code 998
    could not locate the setup or translator library
    Please help me how can I solve this problem and create the ODBC connection for oracle 10g database.
    Best Regards,

    mwz wrote:
    I am trying to create an ODBC connection for oracle but become failure because its generating the following errors:
    system error code 998
    could not locate the setup or translator libraryThe symptom described is typical of an incorrect system env PATH setting (used by the data source admin tool), compared to that of the Oracle Home (specifically, path $OH/bin). The odbc driver config routine will search directories listed in PATH variable for necessary libraries (Client dll's). If some library fails to load (from e.g. oraoci*.dll or oraclient10.dll) it will probably error out, as in your case.
    Are you creating the odbc dsn on the databse server host or on some other machine? I.e. are you using the db host as a client or not?

  • SAP Note 830576 - Parameter recommendations for Oracle 10g

    As per SAP Note 830576 - Parameter recommendations for Oracle 10g, I have tried to change the value for
    parameter "db_file_multiblock_read_count".
    In sql prompt it shows:
    SQL> show parameter DB_FILE_MULTIBLOCK_READ_COUNT
    NAME                                 TYPE        VALUE
    db_file_multiblock_read_count        integer     128
    and in brtools it shows:
    58 - db_file_multiblock_read_count      both     no      *       yes   128
    But  I got the following error, when i tried to set it null
    1 * Parameter description (desc) ..... [db block to be read each IO]
    2 * Parameter type (type) ............ [integer]
    3 * Current parameter value (parval) . [128]
    4 * Value in spfile (spfval) ......... []
    5 # New parameter value (value) ...... [null]
    6 - Scope for new value (scope) ...... [both]
    7 # Database instance (instance) ..... []
    8 ~ Comment on update (comment) ...... []
    9 - SQL command (command) ............ [alter system reset db_file_multiblock_read_count scope = spfile sid = '*'; alter system reset db_file_multiblock_read_count scope = memory sid = 'MBD']
    BR0662I Enter your choice:
    c
    BR0280I BRSPACE time stamp: 2008-08-14 18.19.22
    BR0663I Your choice: 'c'
    BR0259I Program execution will be continued...
    BR0280I BRSPACE time stamp: 2008-08-14 18.19.23
    BR0301E SQL error -32010 at location BrSqlExecute-1, SQL statement:
    '/* BRSPACE / alter system reset db_file_multiblock_read_count scope = spfile sid = '''
    ORA-32010: cannot find entry to delete in SPFILE
    BR1017E Execution of SQL statement 'alter system reset db_file_multiblock_read_count scope = spfile sid = '*'; alter system reset db_file_multiblock_read_count scope = memory sid = 'MBD'' failed
    BR0669I Cannot continue due to previous warnings or errors - you can go back to repeat the last action
    BR0280I BRSPACE time stamp: 2008-08-14 18.19.23
    BR0671I Enter 'b[ack]' to go back, 's[top]' to abort:
    Kinldy let me know, what could me wrong.

    Hi Markus,
    As per your suggestion we have downloaded the files from UCLIB_3-20000978.SAR. But now getting the error as
    sapccmsr -DCCMS -j2ee pf=profile value
    INFO: use SAPLOCALHOST hostname
    INFO: CCMS agent sapccmsr working directory is /usr/sap/ccms/XX1_00/sapccmsr
    INFO: CCMS agent sapccmsr config file is /usr/sap/ccms/XX1_00/sapccmsr/csmconf
    INFO: Central Monitoring System is [XX1]. (found in config file)
    INFO: additional Central Monitoring System is [AS2]. (found in config file)
    ERROR: Cannot open Monitoring Segment 0 rtc = 245
    Last reported error: [249]  CCMS monitoring segment has wrong EYE CATCH. It seems to be created as non-unicode segment.
    This program runs as unicode. Please use non-unicode version
    Please suggest
    Thanks,
    Anu

  • VSS Agent for Oracle 10g ?

    Hi there,
    I have SAP NW2004s, Windows 2003 server 64bit, Oracle 10g
    4 partition with 1 hdd, C for OS, D for SAP application E for system and oracle logs+archived, F for only database files
    We are trying to get backup in extrinal HDD 3TB HDD... through Symantic exec backup utility ver. 12
    C and D drivers are backup fine, but sometime when server very busy and symantic start full backup for E and D drive database shutdown... sap instance is fine, but only DB instance is stoped
    We are not using Symantec Agent software, is there any other software can help for that for-exmaple VSS for oracle 10g... if yes, where may i get this software any link?
    Why we are not using BR tools:
    1 - as i maintion before when I select "E" drive which is all logs files located symantec stoped db instance
    2 - in case if i am taking backup from brtools full backup online + archived so its only take database backup + archived, not all others structure in case hard-drive failer, and data restore from symantec so its will be ok with C drive and D drive, but its nohting resotre for E and D
    when I try to restore from oracle brtools to restore its getting an error for missing structure in E
    so thats why I am looking only one solution either perfect symantec with online backup
    please give me some advised
    Thanks

    Hi,
    Please use the standard & reliable Backup/Restore methods for any DB, to avoid more headache while Backup/Restore Operations.
    Please refer [this thread|Re: Need some advise]. it will attend your most of questions. Some other alternatives (without using Backup agent) are mentioned there.
    If you use Backup Agent to perform any DB backup, then It will be reliable method to perform Backup/Restore operations of DB.
    With BR*tools u can also perform Non-Database Backup. Please refer [this link|http://help.sap.com/saphelp_NW04/helpdata/en/0c/cd271365debc42bef96ac7fd907787/frameset.htm] and other relative links.
    If you have configured the Backup Exec utility with Oracle agent on the DB server, then you can perform Online Backup by deselecting "Perform the backup offline" option withing that Oracle Backup Job properties.
    Regards,
    Bhavik G. Shroff

  • Long-term  retention backup strategy for Oracle 10g

    Hello,
    I need design a Archivelog, Level 0 and Level 1 long-term retention backup strategy for Oracle 10g, It must be based in Rman with tapes.
    ¿Somebody could tell me what it's the best option to configure long-term retention backups in Oracle?, "CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 1825 DAYS;" It's posibble ?
    Regards and thanks in advance

    Hello;
    RECOVERY WINDOW is an integer so yes its possible. Does it make sense?
    Later My bad, this is Oracle 11 only ( the gavinsoorma link ) . Getting harder and harder to think about 10. Don't think I would use RECOVERY WINDOW.
    I would let the tape backup system handle the retention of your rman backups.
    Using crosscheck and delete expired commands you can keep the catalog current with the available backups on tape.
    Oracle 10
    Keeping a Long-Term Backup: Example
    http://docs.oracle.com/cd/B19306_01/backup.102/b14191/rcmbackp.htm#i1006840
    http://web.njit.edu/info/oracle/DOC/backup.102/b14191/advmaint005.htm
    Oracle 11
    If you want to keep 5 years worth of backups I might just use KEEP specific date using the UNTIL TIME clause :
    keep until time 'sysdate+1825'More info :
    RMAN KEEP FOREVER, KEEP UNTIL TIME and FORCE commands
    http://gavinsoorma.com/2010/04/rman-keep-forever-keep-until-time-and-force-commands/
    Best Regards
    mseberg
    Edited by: mseberg on Dec 4, 2012 7:20 AM

  • Where can I download the ODBC driver for Oracle 10g XE?

    where can I download the ODBC driver for Oracle 10g XE?
    I need the ODBC drivers for windows 7 x64, I installed Oracle Database 10g Express Edition, the use and connects with RazorSQL well, I just want to make a connection THROUGH ConnectionString language using the ODBC driver

    already checked these http://www.connectionstrings.com/oracle, I need Help Please.

  • Should I go for Oracle 10g OCA/OCP or 11g OCA/OCP Certification?

    Hi all,
    I am lil bit confuse to decide about my oracle core dba certification.
    Please help me to know, as per the present requirements of the business organizations.
    ***Should I go for Oracle 10g OCA/OCP or 11g OCA/OCP Certification?***
    Hope u guys answer me earliest.
    Thanks & Regards,

    Most likely, it doesn't matter too much. I doubt that most employers are terribly concerned with what recent version of Oracle you have a certification on.
    That said, if it matters
    - What does your organization use? What are their plans to upgrade? If your company still uses 9.2 primarily and has plans to upgrade to 10.2 this year, you're probably better off with a 10g certification. If your company is already running mostly 11.2, you're probably better off with an 11g certification.
    - What do most employers in your particular part of the world tend to use? What do job postings in your particular part of the world generally list?
    Justin

  • Enable autoarchiving for Oracle 10g RAC db

    Hello
    What are the steps to enable autoarchiving for Oracle 10g cluster database?
    It is currentrly in noarchivelog mode.
    Thank you,
    Yelena

    Hi.
    I think that this has been improved in 10g, so that we can do an exclusive mount on any database in a RAC without setting cluster_database to false. Also the parameter log_archive_start has been depreciated so the steps is simply (assuming that you by default wants to use db_recovery_file_dest to store archived redo logs)
    1) Shutdown immediate (instance 1)
    2) Startup mount
    3) Alter database archivelog
    4) Alter database open
    Repeat this sequence for all nodes in the RAC.
    And the best is to leave the log_archive_format by it's default value, to ensure that the incarnation of the database is represented in the archive log name.
    (On 10g, backupsets and archivelogs are usable beyond different reincarnation of a database, so there is a good change that S% or s% will repeat itself after an open resetlogs).
    Hopes this might help you.
    Good Luck
    Rgds
    Kjell Ove

  • Registration Key for Oracle 10g

    Iam trying get a registration key for Oracle 10g
    but after choosing DVD or CD Option and hit Continue
    button I get this message:
    We're sorry.
    An unexpected exception has occurred when contacting Database. Cannot proceed further.
    You can change or re-visit previous page(s) by starting a new session.
    If you have questions regarding registration, please contact us.
    Paddy

    I have been unsucesfull in getting the Oracle 10g regitration keys. After I update my profile and hit continue I get a page not found error. Any help will be appreciated.

Maybe you are looking for