Error "Nothing in SQL buffer to run"

Hi All,
I am facing an error while running sql script (names.sql) " Nothing in SQL buffer to run" .
The sql file contains insert and update statements.
I don't understand why it is giving that error. i tried changing the directory where the file is kept , even then the problem exist.
Kindly suggest me .

Hi,
I am facing an error while running sql script (names.sql) " Nothing in SQL buffer to run" .
The sql file contains insert and update statements.Can You share with us what is the first line in your sql file which you are calling.
I hope its not '/' in the first line.
I have come across a problem where I had / in the first line following the sql commands. That gave me the same error which you are facing.
Twinkle

Similar Messages

  • SP2-0103: Nothing in SQL buffer to run.

    Hi All,
    When i execute the script it throws the following error msg.
    SP2-0103: Nothing in SQL buffer to run.
    Thanks in advance!

    Please past here below what you tried.
    SQL> /
    SP2-0103: Nothing in SQL buffer to run.
    SQL> l
    SP2-0223: No lines in SQL buffer.
    SQL> Nicolas.

  • Error - SP2-0103: Nothing in SQL buffer to run - With only one user

    I receive this error when we login to the sqlplus tool using - sqlplus /nolog command - sql prompt. This error is specific to one of the users in the Solaris[5.10] unix box. In the other users we do not receive this message.
    Workarounds tried -
    1. Verfied the glogin.sql under $ORACLE_HOME/sqlplus/admin for any additional "/" characters as suggested by metalink
    2. Tried to clear the buffer.
    Please anyone help me on this issue.

    Sounds like a local login.sql exists for that user and that results in the error.
    Refer to http://www.jlcomp.demon.co.uk/faq/glogin.html for details.

  • SQL Buffer character limit too small.

    I am attempting to execute an .SQL script file using the SQLPlus.exe command line. The script is a simple INSERT statement and executes fine as long as the text being inserted is english. But when the text is translated to either Traditional or Simplified Chinese the script generates the following error:
    SP2-0341: line overflow during variable substitution (>3000 characters at line 2)
    Some background information:
    1. The database was created with the National Character Set of AL16UTF16 and the Database Character Set of AL32UTF8.
    2. The data types for the columns being populated are NVARCHAR2 and NCLOB.
    3. SQLPlus command line syntax: SQLPLUS.EXE -MARKUP "HTML ON SPOOL ON" UID/PWD@DBNAME @CREATE-5-CHINESE1.sql > CREATE-5-CHINESE1.HTML
    4. Environment variable setting: NLS_LANG=.UTF8
    5. Contents of CREATE-5-CHINESE1.SQL:
    WHENEVER SQLERROR EXIT SQL.SQLCODE
    SET DEFINE OFF
    SET ECHO ON;
    SET ESCAPE ON;
    CLEAR BUFFER
    INSERT INTO tbl_lm_notification_nls (col_id_notification, col_id_language, col_name_notification, col_subject, col_text) VALUES (1001, 5, '默认测评者邀请', '%s - 你被选择参与', '你已经被选择参加360度反馈调查,本调查使用一种称为 xxxxxxxxxxxxxxxxx(R) 的网络反馈工具来收集对人们的强项和发展需要的观察信息。 \
    你要完成的调查将要求你对自己在一些与工作相关的技能、行为和知识等方面进行评估。 你还将邀请与你的工作有关的人们完成调查。 这些测评者可以包括你的经理、同级人员、直接下属、客户及其他人。 评估信息的质量和准确性要依赖于你和你的测评者们诚实地提供反馈。\
    A提交调查答案之后,xxxxxxxxxxxxxxxxx 将计算结果并产生报告。 报告将把你的自我看法与测评者对你的看法相比较。 这个比较可以指出先前未知的强项和发展需要,还将协助确认你和他人有一致看法的领域。\
    报告中的信息将协助你回答两个重要问题:\
    o 你最强的地方是什么?\
    o 你最需要发展的地方是什么?\
    了解你的强项和发展需要将协助你和你的组织识别适当的发展活动和你的未来成长计划。\
    COMMIT;
    EXIT SQL.SQLCODE;
    6. Contents of CREATE-5-CHINESE.HTML (command output):
    SQL*Plus: Release 10.1.0.2.0 - Production on Wed Oct 19 11:02:58 2005
    Copyright (c) 1982, 2004, Oracle. All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
    With the Partitioning, Oracle Label Security, OLAP and Data Mining options
    SQL> SET ESCAPE ON;
    SQL> /
    SP2-0103: Nothing in SQL buffer to run.
    SQL> CLEAR BUFFER
    SQL> INSERT INTO tbl_lm_notification_nls (col_id_notification, col_id_language, col_name_notification, col_subject, col_text) VALUES (1001, 5, '默认测评者邀请', '%s - 你被选择参与', '你已经被选择参加360度反馈调查,本调查使用一种称为 xxxxxxxxxxxxxxxxx(R) 的网络反馈工具来收集对人们的强项和发展需要的观察信息。 \
    2 \
    3 你要完成的调查将要求你对自己在一些与工作相关的技能、行为和知识等方面进行评估。 你还将邀请与你的工作有关的人们完成调查。 这些测评者可以包括你的经理、同级人员、直接下属、客户及其他人。 评估信息的质量和准确性要依赖于你和你的测评者们诚实地提供反馈。\
    4 \
    5 A提交调查答案之后,xxxxxxxxxxxxxxxxx 将计算结果并产生报告。 报告将把你的自我看法与测评者对你的看法相比较。 这个比较可以指出先前未知的强项和发展需要,还将协助确认你和他人有一致看法的领域。\
    6 \
    7 报告中的信息将协助你回答两个重要问题:\
    8 \
    9 o 你最强的地方是什么?\
    10 o 你最需要发展的地方是什么?\
    11 \
    12 了解你的强项和发展需要将协助你和你的组织识别适当的发展活动和你的未来成长计划。\
    13 \
    14 ');
    SP2-0341: line overflow during variable substitution (>3000 characters at line 2)
    SQL> /
    SP2-0341: line overflow during variable substitution (>3000 characters at line 2)
    SQL> COMMIT;
    Commit complete.
    SQL> EXIT SQL.SQLCODE;
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
    With the Partitioning, Oracle Label Security, OLAP and Data Mining options
    I believe that increasing the size of SQL Buffer may fix the problem, but I am unsure of how to do this or if it is even possible.
    Thanks in advance for any information that you can provide.
    Mike Z.

    I'm not suggesting this is your problem, but
    select status
    into v_status,
    from registration_offender_xref But you have declared
          v_status  varchar2(10);Much better to declare things like this
          v_status  registration_offender_xref.status%type;That way you know your variable is declared with a proper length, if the column length ever changes ... your code doesn't go kaboom.
    Cheers,

  • Error when generating the SQL statement while running the Query

    Hello SDN Mates,
    Am using three cubes in one infoset and build a query on that. Intially it was running fine, but now am getting error generating the SQL statement. Can you please throw some light on this. Your idea would be highly appreciated.
    Thanks and Regards
    Arun S

    Hi Arun
    is there any change in the objects (Check also the consistency of infoobject ) included in infoset, just make sure those are active, open the query in designer and check if no error/warning message are present
    Thanks
    Tripple k

  • Error Buffer Under Run iDVD4

    I've downloaded successfully my project in imovie (40mins) and while burning in iDVD, after 4 hours, in the step 4, the following error message came.
    "Errors were found during the burning process. The recording device found illegal request. Buffer under run.(0x21, 0x02)"
    Only this project I couldn't burn. All the other projects I was able to burn without problem. Appreciate anyone help. Thanks.
    emac   Mac OS X (10.3.2)  
    emac   Mac OS X (10.3.1)  

    Hi samy1970:
    Read these:
    http://docs.info.apple.com/article.html?artnum=25750
    http://www.kentidwell.com/idvd4/#faqmulQTNote_2_204
    Sue

  • Buffer Under-run Error

    Instaled QT-Pro in my production machine that is not connected to the internet. When starting QT it kind of sticks on the "Loading" screen. If I click on the screen It says "Switching". I can still open a movie though and play it but when I try to export it as anything it gives me a Buffer Under Run error and crashes.
    Where should I look? I have reinstaled it and the same file works fine on my other machine.

    Finaly figured out my problem after doing some searching. At least with me anyway I had the videos I was working on in the root directory of the drive I was using. Apparently QTP likes them in a folder. Now it all works great.
    Let me know if this is your problem too.

  • Alert log internal error exeception caught in pfrrun() while running pl/sql

    Hi ,
    For the past two days these error messages appears in the alert log.
    ACTION NAME(PAGE 1)
    MODULE NAME:(APPLICATION xxx)
    *** got internal error exception caught in pfrrun() while running pl/sql***
    *** Got ora-3113 while running plsql***
    Function FLOWS_030000.V (or) PACKAGE BODY FLOWS_030000.WWV_FLOW:
    can anyone assist me on this.
    Thanks

    user589320,
    As Scott mentioned, have a look at
    http://www.inside-oracle-apex.com/2008/03/attention-are-you-using-drop-in.html
    That might solve your problem.
    Patrick
    *** New *** Oracle APEX Essentials *** http://essentials.oracleapex.info/
    My Blog, APEX Builder Plugin, ApexLib Framework: http://www.oracleapex.info/

  • Error 45 Initializing In SQL*Plus When Running A Sql Script

    Hi All
    I have a daily scheduled jobs running on Windows server 2003 and 2008. Oracle Version :10.2.0.1 and 10.2.0.4
    right now jobs are not even starting when i run them manually. Found the error Error 45 Initializing In SQL*Plus When Running A Sql Script.
    it says Bug:3039738.
    what is the solution to fix this Bug ?
    thanks
    Shawn

    user9174724 wrote:
    Hi
    do you think the Problem is not with the script ?
    when i run the job its reaching SQLPLUS and giving error
    Error 45 Initializing In SQL*Plus When Running A Sql Script .
    Server:windows 2003 and oracle version :10.2.0.1
    CMD /C %ORACLE_HOME_PRIME%\bin\sqlplus.exe /NOLOG @ %xxxx_HOME%\DBA_Backup\BackupDo.sql testdb BackupFull
    The above line does the following:
    1) launches a command procesor
    2) passes that command processor the following command line parms:
    /C
    (process the following command, then terminate)
    %ORACLE_HOME_PRIME%\bin\sqlplus.exe
    the launched processor will process the executable 'sqlplus.exe' found in the \bin subdirectory, found in the directory indicated by the environment variable ' ORACLE_HOME_PRIME'. The remainder of the command line will be passed to sqlplus.exe for interpretation and processing
    /NOLOG
    tell sqlplus to start up without trying to immediately log on to a database
    typically used to indicate to sqlplus that the immediately following string names a file of sql and sqlplus commands to be processed.
    %xxxx_HOME%\DBA_Backup\BackupDo.sql
    tell sqlplus to execute the commands found in the file 'BackupDo.sql', found in the subdirectory DBA_Backup, found in the directory name by the environment variable 'xxxx_HOME'.
    testdb
    BackupFull
    pass the values 'testdb' and 'BackupFull' to be used as values for substitution variables &1 and &2 in the file 'BackupDo.sql'
    Script:
    rmanbackup.rman
    BACKUP AS COMPRESSED BACKUPSET DATABASE FORCE PLUS ARCHIVELOG;
    DELETE NOPROMPT ARCHIVELOG ALL BACKED UP 2 TIMES TO DEVICE TYPE DISK;
    LIST BACKUP SUMMARY;
    LIST BACKUP;
    EXIT;I don't know what you expect of this. It is an rman script and we've seen no sign of an rman script being executed in any of what you've shown us. RMAN commands are processed by rman, not sqlplus.
    Unfortunately, you didn't think showing us the contents of BackupDo.sql was of any value in finding out what your problem was.
    Edited by: EdStevens on Jul 11, 2011 7:58 PM

  • Error Debug on SQL Developer

    Hi all,
    I´m here again to ask for your help :-|
    I´m using the SQL developer 1.0.0.15.27.
    when I run a procedure, it works fine,
    but when I try to debug this procedure, the
    following error occurs:
    Connecting to the database userproc.
    Executing PL/SQL: ALTER SESSION SET PLSQL_DEBUG=TRUE
    Executing PL/SQL: ALTER SESSION SET PLSQL_COMPILER_FLAGS=INTERPRETED
    Executing PL/SQL: CALL DBMS_DEBUG_JDWP.CONNECT_TCP( '192.168.11.42', '1093' )
    Debugger accepted connection from database on port 1093.
    Processing 56 classes that have already been prepared...
    Finished processing prepared classes.
    ORA-00600: internal error code, arguments: [15419], [severe error during PL/SQL execution], [], [], [], [], [], []
    ORA-06544: PL/SQL: internal error, arguments: [pbjrms - signature buffer too small], [36], [], [], [], [], [], []
    ORA-06553: PLS-801: internal error [pbjrms - signature buffer too small]
    Process exited.
    Disconnecting from the database userproc.
    Debugger disconnected from database.somebody already saw this error?
    thank U very much!!!
    []´s

    Hi,
    I think this is like Bug:2829071. Look for it on Metalink.
    Regards,
    Paulo.

  • SQL2005 cluster error MDB-05053  Errors when executing sql command: p nr="

    Hi all,
    We are migrating from 32 bit to x64 bit machines. SQL 2005 database on windows 2003.
    I am trying to install E 4.7-200 SR1 on the clustered nodes. The installation manuals for 4.7 are very old and there is nothing for SQL2005 installation.
    Now that some how we were able to have SQL up and running in clustered environment (It only took 10 days), After installing CI, I am not able to deploy the database and database creation phase is failing with the following error:
    MDB-05053  Errors when executing sql command: <p nr="0"/>.
    I am heavily relying on our server managment team on clustering and hoping they have done a good job, However I need some guidelines which can help me in verifying what they have done is correct and meets SAP and SQL requirments and issues we are facing is actually install problems not cluster.
    SAP install manuals are not detailed in this regards. Also manuals are out dataed and they only show the sql 2000 clustering pre-requisit for 4.7 installls.
    Can any one with clustering experience please help.
    Calling out NPC, As his sql installation and upgrade manual has helped me with stand alone installs, Hoping he has some thing for clustering as well.
    Regards,
    KG

    Hi,
    What installation CD/DVD are you using?
    Try look at SAP note [924288|https://service.sap.com/sap/support/notes/924288],
    and note [969699|https://service.sap.com/sap/support/notes/969699],
    and note [967124|https://service.sap.com/sap/support/notes/967124],
    and note [106275|https://service.sap.com/sap/support/notes/106275].
    In special the last note say at the end:
    "3. You must use the 51031444 CD to install Enterprise 4.7 on an x64 platform with SQL Server 2005. This CD installs the central instances and database instances. To convert the A and B nodes in MSCS, use the SAP NetWeaver 04 SR1 installation master CD or DVD."
    Hope this helps
    Regards
    Rolf

  • Error: while generating SQL.java.rmi.ServerException:

    Hi:
    I tried the JGuru's "MusicStore" example. HOwever at Task 6 and 7 I am getting the following error:
    Error: while generating SQL.java.rmi.ServerException:
    RemoteException occured in server thread; nested exception is:
    * java.rmi.RemoteException: Error connecting to database;
    nested exception is:
    * SQL Exception: Failed to start database 'MusicStoreDB', see
    the next exception for details.
    Please make sure the database name/user/password is valid
    and the J2ee server and database are running.
    However when i check my database it is running perfectly:
    E:\>%j2ee_home%\bin\cloudscape -start
    Sun Feb 16 12:48:11 PST 2003: [RmiJdbc] Starting Cloudscape RmiJdbc Server Version
    Sun Feb 16 12:48:14 PST 2003: [RmiJdbc] COM.cloudscape.core.JDBCDriver registered i
    Sun Feb 16 12:48:14 PST 2003: [RmiJdbc] Binding RmiJdbcServer...
    Sun Feb 16 12:48:14 PST 2003: [RmiJdbc] No installation of RMI Security Manager...
    Sun Feb 16 12:48:14 PST 2003: [RmiJdbc] RmiJdbcServer bound in rmi registry
    Server:
    J2EE server listen port: 1050
    Naming service started:1050
    Binding DataSource, name = jdbc/DB2, url = jdbc:cloudscape:rmi:CloudscapeDB;crea
    te=true
    Binding DataSource, name = jdbc/Cloudscape, url = jdbc:cloudscape:rmi:Cloudscape
    DB;create=true
    Binding DataSource, name = jdbc/InventoryDB, url = jdbc:cloudscape:rmi:Cloudscap
    eDB;create=true
    Binding DataSource, name = jdbc/DB1, url = jdbc:cloudscape:rmi:CloudscapeDB;crea
    te=true
    Binding DataSource, name = jdbc/MusicStore, url = jdbc:cloudscape:rmi:MusicStore
    DB;create=false
    Binding DataSource, name = jdbc/XACloudscape, url = jdbc/XACloudscape__xa
    Binding DataSource, name = jdbc/XACloudscape__xa, dataSource = COM.cloudscape.co
    re.RemoteXaDataSource@1d88db7
    Starting JMS service...
    Initialization complete - waiting for client requests
    Binding: < JMS Destination : jms/Topic , javax.jms.Topic >
    Binding: < JMS Destination : jms/Queue , javax.jms.Queue >
    Binding: < JMS Cnx Factory : TopicConnectionFactory , Topic , No properties >
    Binding: < JMS Cnx Factory : QueueConnectionFactory , Queue , No properties >
    Binding: < JMS Cnx Factory : jms/QueueConnectionFactory , Queue , No properties
    >
    Binding: < JMS Cnx Factory : jms/TopicConnectionFactory , Topic , No properties
    >
    Starting web service at port: 8000
    Starting secure web service at port: 7000
    J2EE SDK/1.3.1
    Starting web service at port: 9191
    J2EE SDK/1.3.1
    J2EE server startup complete.
    Can anyone suggest me a way out..plz

    what type of persistent u r using also post ur query if bmp and check with another example with cmp.

  • How can I enable embedded pl/sql gateway to run on port 80

    I have a new 11G install on OEL 4.0, database created. I would like to be
    able to access the instance using the pl/sql gateway. Works fine with
    port 8080, the default. How to I enable it to run on port 80?
    I found this statement in the following docuementation:
    http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14259/xdb22pro.htm#ADXDB2500
    Using HTTP(S) on Nonstandard Ports
    By default, HTTP listens on a nonstandard, unprotected port: 8080. To use HTTP(S) on
    the standard port, such as 80, your DBA must chown the TNS listener to setuid ROOT
    rather than setuid ORACLE, and configure the port number in the Oracle XML DB
    configuration file /xdbconfig.xml.I have root priviledges on the box.
    I've tried setting the listener file permissions:
    chown root:dba /u01/app/oracle/product/11.1.0/db_1/bin/tnslsnr
    chmod 6775 /u01/app/oracle/product/11.1.0/db_1/bin/tnslsnr
    Also put root in the dba group.
    The permissions turn out like this:
    -rwsr-sr-x 1 root dba 830854 Jun 17 21:04 /u01/app/oracle/product/11.1.0/db_1/bin/tnslsnr
    I stopped the listener, bounced the database, and started the listener again.
    But it still shows the process being owned by oracle:
    oracle 29682 1 0 21:08 ? 00:00:00 /u01/app/oracle/product/11.1.0/db_1/bin/tnslsnr LISTENER -inherit
    Changing the port is easy:
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SYS>select dbms_xdb.gethttpport as "HTTP-Port" , dbms_xdb.getftpport as "FTP-Port" from dual;
    HTTP-Port FTP-Port
    8080 2100
    At this point, I can access the apex home page with the following url:
    http://hostname:8080/apex/f?p=4550:10:1454849288245548
    I can than change it to port 80:
    SYS>begin
    dbms_xdb.sethttpport('80');
    dbms_xdb.setftpport('2100');
    end;
    2 3 4 5
    PL/SQL procedure successfully completed.
    SYS>SYS>select dbms_xdb.gethttpport as "HTTP-Port" , dbms_xdb.getftpport as "FTP-Port" from dual;
    HTTP-Port FTP-Port
    80 2100
    When I try to access apex with the following url:
    http://rmdcopslnx1.us.oracle.com/apex/f?p=4550:10:1454849288245548
    I get the following:
    Failed to Connect
    Firefox can't establish a connection to the server at hostname.com.
    Though the site seems valid, the browser was unable to establish a connection.
    * Could the site be temporarily unavailable? Try again later.
    * Are you unable to browse other sites? Check the computer's network connection.
    * Is your computer or network protected by a firewall or proxy? Incorrect settings
    * can interfere with Web browsing.I can set the port. Just can't talk to it.
    This is the entry from the listener log:
    <msg time='2008-07-03T15:40:09.741-06:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='hostname'
    host_addr='xxx.xxx.xxx.xxx'>
    <txt>TNS-12546: TNS:permission denied
    TNS-12560: TNS:protocol adapter error
    TNS-00516: Permission denied
    Linux Error: 13: Permission denied
    </txt>
    </msg>
    So this looks like an permissions problem. But where? I posted
    this on the apex forum here:
    Re: How can I enable embedded pl/sql gateway to run on port 80
    They suggested asking here.

    No, that thread did not provide the information that I need. Some more data:
    I have the port set to 8080:
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SYS>select dbms_xdb.gethttpport as "HTTP-Port" , dbms_xdb.getftpport as "FTP-Port" from dual;
    HTTP-Port FTP-Port
    8080 2100
    At this point, I can access the apex home page with the following url:
    http://hostname:8080/apex/f?p=4550:10:1454849288245548
    I can than change it to port 80:
    SYS>begin
    dbms_xdb.sethttpport('80');
    dbms_xdb.setftpport('2100');
    end;
    2 3 4 5
    PL/SQL procedure successfully completed.
    SYS>SYS>select dbms_xdb.gethttpport as "HTTP-Port" , dbms_xdb.getftpport as "FTP-Port" from dual;
    HTTP-Port FTP-Port
    80 2100
    When I try to access apex with the following url:
    http://rmdcopslnx1.us.oracle.com/apex/f?p=4550:10:1454849288245548
    I get the following:
    Failed to Connect
    Firefox can't establish a connection to the server at hostname.com.
    Though the site seems valid, the browser was unable to establish a connection.
    * Could the site be temporarily unavailable? Try again later.
    * Are you unable to browse other sites? Check the computer's network connection.
    * Is your computer or network protected by a firewall or proxy? Incorrect settings can interfere with Web browsing.
    I can set the port. Just can't talk to it.

  • Error in appdstln.sql during upgrade to 12.1.1

    Hi All,
    I am upgrading my 11.5.9 ebs to 12.1.1 I have gone through all steps outlined in chapter 3 of Oracle® E-Business Suite
    Upgrade Guide Release 11i to 12.1.3 Part No. E16342-03. I am now in point number 10 under " Perform the Upgrade" i.e :
    Run the American English upgrade patch driver which is (u6678700.drv)
    After going through nearly 130,000 jobs I got the following error in appdstln.sql
    ORA-01400: cannot insert NULL into("AP"."AP_PAYMENT_HIST_DISTS"."INVOICE_DISTRIBUTION_ID")
    Please help me get through this error asap as we are very low on time.

    Please log a SR as no similar issues are reported in MOS website.
    Thanks,
    Hussein

  • SQL 2012 SP1 - How to determine a query that causes Error 8623 in SQL Log: The query processor ran out of internal resources and could not produce a query plan. This is a rare event...

    We are getting multiple 8623 Errors in SQL Log while running Vendor's software.
    How can you catch which Query causes the error?
    I tried to catch it using SQL Profiler Trace but it doesn't show which Query/Sp is the one causing an error. 
    I also tried to use Extended Event session to catch it, but it doesn't create any output either.
    Error:
    The query processor ran out of internal resources and could not produce a query plan. This is a rare event and only expected for extremely complex queries or queries that
    reference a very large number of tables or partitions. Please simplify the query. If you believe you have received this message in error, contact Customer Support Services for more information.
    Extended Event Session that I used;
    CREATE EVENT SESSION
        overly_complex_queries
    ON SERVER
    ADD EVENT sqlserver.error_reported
        ACTION (sqlserver.sql_text, sqlserver.tsql_stack, sqlserver.database_id, sqlserver.username)
        WHERE ([severity] = 16
    AND [error_number] = 8623)
    ADD TARGET package0.asynchronous_file_target
    (SET filename = 'E:\SQLServer2012\MSSQL11.MSSQLSERVER\MSSQL\Log\XE\overly_complex_queries.xel' ,
        metadatafile = 'E:\SQLServer2012\MSSQL11.MSSQLSERVER\MSSQL\Log\XE\overly_complex_queries.xem',
        max_file_size = 10,
        max_rollover_files = 5)
    WITH (MAX_DISPATCH_LATENCY = 5SECONDS)
    GO
    -- Start the session
    ALTER EVENT SESSION overly_complex_queries
        ON SERVER STATE = START
    GO
    It creates only .xel file, but not .xem
    Any help/advice is greatly appreciated

    Hi VK_DBA,
    According to your error message, about which query statement may fail with error message 8623, as other post, you can use trace flag 4102 & 4118 for overcoming this error. Another way is looking for queries with very long IN lists, a large number of
    UNIONs, or a large number of nested sub-queries. These are the most common causes of this particular error message.
    The error 8623 occurs when attempting to select records through a query with a large number of entries in the "IN" clause (> 10,000). For avoiding this error, I suggest that you could apply the latest Cumulative Updates media for SQL Server 2012 Service
    Pack 1, then simplify the query. You may try divide and conquer approach to get part of the query working (as temp table) and then add extra joins / conditions. Or You could try to run the query using the hint option (force order), option (hash join), option
    (merge join) with a plan guide.
    For more information about error 8623, you can review the following article.
    http://blogs.technet.com/b/mdegre/archive/2012/03/13/8623-the-query-processor-ran-out-of-internal-resources-and-could-not-produce-a-query-plan.aspx
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

Maybe you are looking for

  • Error while deploying a war file in Oracle Weblogic 10gr3 server

    Hi I am trying to deploy a web application which uses Hibernate 3 in Oracle weblogic 10gr3.But I am getting following exception.The same application gets deployed in tomcat without any problem. urce [WEB-INF/servicesContext.xml]: Cannot resolve refer

  • Best way to refresh page after returning from task flow?

    Hello - (Using jdev 11g release 1) What is the best way to refresh data in a page after navigating to and returning from a task flow with an isolated data control scope where that data is changed and commited to the database? I have 2 bounded task fl

  • How do I know if the CTRL button is pressed or not?

    I want to let the user hold down CTRL or not, on the keyboard, when they click on a button, how do I detect this? I don't want to add a listener to it, I only need to check,if it is down or not, when the mouse is clicked on a specific button. Surely

  • Pdf defaults fonts

    I just bought CS6. When I export a file from Indesign to a pdf, the fonts change in the pdf. How do I create the pdf so that it displays the fonts I used?

  • Maintain an Adobe Muse site for a client once Muse subscription expires?

    Hi there, I'd really appreciate some advice here. I have created a site in adobe muse for a client that is shortly to be pushed live. I also have a subscription to Adobe Muse (monthly), which  will need to terminate shortly. How can I ensure that the