Cancelling queries

Is it possible to cancel a query that takes long to execute
using a "Cancel" button in forms 4.5 ?
SQLPLUS has a dialog box like that...
null

Vinicius S. Silva (guest) wrote:
: Is it possible to cancel a query that takes long to execute
: using a "Cancel" button in forms 4.5 ?
: SQLPLUS has a dialog box like that...
you can set smaller records in block property which are fetched
in one query .
If you use forms6.0 , you can set the module property to solve
this problem. when you submit a long query , a "Cancel" button
will appear .
null

Similar Messages

  • Oracle SQL Developer Cannot Cancel Queries Properly

    This was a problem with version 2 and continues to be an issue with version 3. If I chose to cancel a query that is taking a long time to run it gives me the prompt and displays that the query was cancelled. However, the query is not actually cancelled and is still running in the background. The lock on the table still exists. How can I tell? Once a query is cancelled I attempt to exit the program and when I try to disconnect it says that the connection is busy. My only options are to try again or abort. First of all, these are terrible option names. How about changing these to try again or cancel, which is actually what abort does. Second, at this point there is no way to exit the application until the query completes in the background. I can kill the application through the Task Manager which in turn kills the query. This is a major problem and needs to be fixed before this application is useful.

    I also am having this same issue. I am running SQL Developer 2.1.1.64.45 (JDK 1.6.0_11), connecting to Oracle 9.2.0.4.0 via TNSNAMES.
    Seems to be similar to this thread: http://forums.oracle.com/forums/thread.jspa?messageID=9524997&#9524997
    In which it appears to be a genuine bug.. Since I develop large queries in SQL Developer before sending them through a SAS program via PROC SQL, I have no other way to test them. It is frustrating, when testing the large queries, to have to do CTRL-ALT-DEL to delete the SQL Developer task and therefore losing any other query tab changes I have made before running/canceling the task. Grrrr.. :)
    Thoughts? -Kristi

  • Safe way to cancel queries in dbxml shell utility?

    Is there a (safe) way of cancelling a query you're running in the dbxml shell? Because I'm using a throwaway test container I've gone and used Ctrl-C a couple of times but it exits the shell completely so may be leaving the open container in a mess.
    If I had a working container properly set up with transaction support, locking, logging etc. and I wanted to test new XQueries from the shell afterwards, how would I interrupt queries which were slow, contained typos seen to late, etc.?
    There's an "abort" command but I don't think that's what I'm looking for as I'm not trying to stop transactions.
    Tim

    Tim,
    I assume you are adding some documents, then querying, and when that takes a long time, hitting ^C. In the 2.2.13 dbxml shell, the best way to ensure that your container is consistently on disk is to create the container, add documents, and then exit the shell.
    After that, you can restart the shell, open the container, and query/^C away and the container will still be intact. The reason is that exiting the shell closes the environment, which flushes the cache to the disk.
    As John mentioned, the upcoming 2.3 release has better ^C support in the shell. It also has a "sync" subcommand that flushes the cache to disk.
    Regards,
    George

  • IN-Clause export issues

    Hi guys
    SQL DEV: 3.2.20.09
    Windows 8.1 64bit
    JRE 7u45 32bit
    I have 10GB of memory.
    I realise lately that whenever SQL developer fails to export into excel or any other format for that matter, it always happens when I use an IN-CLAUSE.
    Today it happened again where I can only have 151 items in my in clause. This is regardless of how many records are returned. If I add another value in the in-clause in the sql statement, the data wont export.
    The resulting excel file that is created is either broken (.xlsx) or empty (.xls). I know when it's going to fail with the export when I confirm the export parameters and in the status bar, I dont see the record count flashing. It just immediately returns control to the SQL developer window
    Is anyone familiar with this issue? I'm pretty sure it's not memory as I've exported MUCH larger files (without IN CLAUSE) before. The current one has 2 varchar columsn for 152 rows, and it only successfully exports 151 if I only put 151 fields in the in-clause.
    I'm not sure if it matters, but the inclause has varchars in (all are 10 characters).
    I cannot modify my query not to use IN.
    Is there any testing I can do to clarify the issue or change some setting to overcome this limit?

    Hi
    My session stays in tact. So I can run it for the exceeded list, see all the data on the screen, try and export, get a blank file, and run the query again.
    It's almost asif SQL dev thinks it's successfully exported it.
    I have to add, I run my SQL Dev program with the following batch program:
    c:\program files (x86)\java\jre7\bin\java.exe" -Xmx1024M -Xms128M -Xverify:none -Doracle.net.disableOob=true -Doracle.ide.util.AddinPolicyUtils.OVERRIDE_FLAG=true -Dsun.java2d.ddoffscreen=false -Dwindows.shell.font.languages= -XX:MaxPermSize=128M -Dide.AssertTracingDisabled=true -Doracle.ide.util.AddinPolicyUtils.OVERRIDE_FLAG=true -Djava.util.logging.config.file=logging.conf -Dsqldev.debug=false -Dide.conf="./sqldeveloper.conf" -Dide.startingcwd="." -classpath ../../ide/lib/ide-boot.jar oracle.ide.boot.Launcher
    This was mainly to get the disableOob flag in so that I can cancel queries and resume my session.
    Even with sqldeveloper.exe and sqldeveloperw.exe it doesn't work.

  • Instant client - compatibility

    I'd like to try the OCI thick-client option to get around some irritations I've encountered with the thin client (cancelling queries, large data sets). So far I've not found a version that works. The only advice I've found is to use a more recent version than my DB, and to use 64 bit as I'm on a 64 bit machine. I've tried 4 different instant client installs, including the most recent (11.2.0.3.0) and I don't have time to try them all. The highest version caused SQL Dev to crash completely! With lower versions I get:
    An error was encountered performing the requested operation: oracle.jdbc.driver.T2CConnection.getLibraryVersionNumber()I Vendor code 0
    Could someone point me to a matrix of tested/supported versions?
    My SQL Dev version: 3.2.20.09, Database versions vary between 9i and 10g

    I do suspect yours is not a problem of compatibility between SQLDeveloper and instant client, but with the ojdbc6.jar file shipped with SQLDeveloper and the instant client.
    You should try to set an ORACLE_HOME variable pointing to your most recent instant client installation, this way SQLDeveloper should be able to pick up the correct ojdbc6.jar shipped with your instant client of choice.
    You can check the currently selected ojdbc6.jar by lookin at the property
    jdbc.libraryin
    Help -> About -> PropertiesObviously the instant client you point to should be of the same "bit level" of the SQLDeveloper installation as Jeff already pointed out.

  • SQLDeveloper on macosx 10.5 & killing a query

    When a search runs for a long time and I kill it (red button), I am unable to do another search until I quit and restart the application, made worse because I now can not quit the application but must do a force-quit from the operating system.

    user12269273 wrote:
    Thanks a lot for teaching me about 'Ctrl-Shift-N'. It's cool.
    As for expected behavior in stopping queries.
    It seems, this particular problem I was having had very little to do with SQLdeveloper itself. I was able to reproduce the same <A class=bodylinkwhite href="http://www.software-to-convert.com/adobe-flash-conversion-software/adobe-flash-to-h264-software.html"><FONT face=tahoma,verdana,sans-serif color=#000 size=1>flash</FONT></A> problem in SQLPlus. SQL I was using in the test was "execute dbms_lock.sleep(10)"
    As I said, I was connecting to Oracle using SSH port forwarding and SSH tunnel does not seem to handle properly special 'urgent' packets used for canceling queries. It can be easily demonstrated with TCPDUMP, it's just not clear to do with it.
    The reason I'm posting this is that maybe someone else has the same problem...It is good for reference, It is exactly what I need.

  • Interrupt a large process in Forms

    Hi!
    Anybody knows how can i interrupt a large process (takes more than two hours) in forms without using "CTRL-ALT-DEL".
    I hear about dk2wutil package but, semms it doesn't works
    Mark

    If you have Forms 6+ and Oracle 8+ you
    can set the property "Interaction Mode"
    to "Non-Blocking" (module property) what
    allows the users to cancel queries. If
    a query is taking time to execute a
    "Cancel" button appears on the screen. The
    problem with this property is that you can't
    execute any code that is dependent on
    query results ("EXECUTE_QUERY" will return
    control to the next statement immediately).
    But if you use default functionality, no
    problem.
    null

  • How can i cancel long running queries (red x doesnt work)

    hi there
    i am trying to work with some long running queries - it would be very nice to be able to cancel them (like toads cancel button)
    I have tried the red X in the circle but it doesnt seem to work - it appears to have cancelled it (the cylon-eye style comfort bar stops ocillating) but if i try to use the connection again, or disconnect or open another connection it says:
    "connection currently busy. Try again?"
    i have tried this in the latest release vanilla & the latest release plus patch 2
    thanks
    Martin

    Good news that this will be improved. Can't resist to post this Link: [plsql forum thread about start/stop.. | http://forums.oracle.com/forums/thread.jspa?forumID=75&threadID=927697]
    I have experienced the same and also noted that it feels better to execute stored procedures in sqldeveloper
    - by editing
    - compiling (might hang if already busy)
    - run from the same dialog just to get the the cylon's eye for emergency stops (which waits .... ) meanwhile jump to apex to fiddle with small table triggering exception to stop the procedure.
    If stored procedure is executed from the list via 'right mouse click'-style then you see in the log-region "connecting to databse ... ." but no method to stop nor cancel or cylon's eye is well hidden.
    When such "busy" is running I also noted that the database-connection right mouse click has greyed/inactivated the selections "connect/disconnect" so the next logical step for stopping via "disconnect" is out of the question.
    I think this also boils down also to question whether the user has rights to see gv$session and be able to drop/stop busy/jamming sessions. E.g. public synonyms listing has small icons with mystic red :)
    /paavo
    Java(TM) Platform     1.6.0_14
    Oracle IDE     1.5.4.59.40

  • Cancelling of Long Running Queries feature for GRID data block

    Hi,
    Maybe someone knows solution-
    we have custom form with Spreadtable (JTF_GRID object) block (similar as, for example, EBS form WMSCTLBD).
    Is here any possibility to enable ‘Cancel Long Running Queries’ feature for it?
    I have reviewed built-in JTF_GRID library (with hope to implement it by adding some custom timer) but I cannot find any API which could be used for cancelling already submitted queries.
    I have created a SR but analyst suggested to ask for it in forums :)
    Our Oracle Forms Version is 6.0.8.28.0
    Thanks in advance.
    BR,
    Kristaps

    Try CTRL-ALT-DELETE
    :-)

  • Cancel long running queries

    Hi Folks,
    Is it possible to submit a SELECT statment using OraSqlStmt object and retrieve the data so generated?
    I want to submit a long-running SELECT query against Oracle, and have the option to cancel the query.
    I can submit the query asynchronously NONBLK option of OraSqlStmt and then be able to cancel it. However, I also want to display the dataset returned by the query. But I think it is not possible to create a dataset / recordset or dynaset using OraSqlStmt.
    THe question is:
    How can I submit a long running Select query, be able to cancel it and if the query is not cancelled then be able to display the records in a grid? I am using VB6.
    Thanks

    Good news that this will be improved. Can't resist to post this Link: [plsql forum thread about start/stop.. | http://forums.oracle.com/forums/thread.jspa?forumID=75&threadID=927697]
    I have experienced the same and also noted that it feels better to execute stored procedures in sqldeveloper
    - by editing
    - compiling (might hang if already busy)
    - run from the same dialog just to get the the cylon's eye for emergency stops (which waits .... ) meanwhile jump to apex to fiddle with small table triggering exception to stop the procedure.
    If stored procedure is executed from the list via 'right mouse click'-style then you see in the log-region "connecting to databse ... ." but no method to stop nor cancel or cylon's eye is well hidden.
    When such "busy" is running I also noted that the database-connection right mouse click has greyed/inactivated the selections "connect/disconnect" so the next logical step for stopping via "disconnect" is out of the question.
    I think this also boils down also to question whether the user has rights to see gv$session and be able to drop/stop busy/jamming sessions. E.g. public synonyms listing has small icons with mystic red :)
    /paavo
    Java(TM) Platform     1.6.0_14
    Oracle IDE     1.5.4.59.40

  • Canceling long running queries

     

    This definitely occurs in 1.5.5 - in my particular case, and this is really strange, if one uses Task Manager to shut down SQLDeveloper because it is just taking forever to get a Data view (via the + expand sign on the side of a given admittedly big table, then clicking on the Data tab), SQLDeveloper freezes. Even if I start a new instance of SQLDeveloper, and ask for a Data view again, it freezes - I've waited as much as 1/2 hour, where as in prior days I'd get a response within say 1 min.
    I've even uninstalled and re-installed. Same deal. This is what's the strangest by far. How can it be that SQLDeveloper remembers that a long running query was once canceled even after an uninstall / reinstall ? I could not find anything remotely related to this in the Registry after the uninstall either.
    [By the way, if on the other hand, I say SELECT * FROM {table_name}, I get an instant response !]

  • Cancel Query dialog does not show for long queries

    Hi,
    I've set the interaction mode of my form to non-blocking. I then ran a long query which takes about 5 minutes to display the results. The Cancel Query popup that everyone is talking about is still not showing.
    What should my settings be to make the Cancel Query dialog popup? My client wants to have the option to cancel a query while it is still processing.
    I'm using Oracle Forms 9.0.4.0.10 and Oracle Database 10g.
    Any help with regards to this will be highly appreciated.

    super

  • Recopilatorio de Queries

    Hola buenas tardes.
    A modo granito de arena adjunto recopilatorio de queries que pueden serles de ayuda.
    No adjunto el autor de cada uno porque sería un trabajo minucioso. Si alguno de Ustedes quiere aportar algún otro sería estupendo.
    Gracias a todos! Un saludo.
    CLIENTES, TOTAL FACTURADO,IVA, GANACIA Y TOTAL FACTURADO.
    SELECT T0.CardCode, T0.CardName, Count(T0.DocNum)'NºDoctos', SUM(T0.DocTotal)'Total Facturas', SUM(T0.VatSum)'Total Impuesto', SUM(T0.DocTotal-T0.VatSum)'Total Base o neto', SUM(T0.GrosProfit)'Ganancia', SUM(T0.DocTotal-T0.PaidToDate)'Pendiente'
    FROM OINV T0
    WHERE T0.DocDate BETWEEN '[%0]' AND '[%1]'
    GROUP BY T0.CardCode, T0.CardName
    UNION
    SELECT T0.CardCode, T0.CardName, Count(T0.DocNum)'NºDoctos', -SUM(T0.DocTotal)'Total Facturas', -SUM(T0.VatSum)'Total Impuesto', -SUM(T0.DocTotal-T0.VatSum)'Total Base o neto', -SUM(T0.GrosProfit)'Ganancia', -SUM(T0.DocTotal-T0.PaidToDate)'Pendiente'
    FROM ORIN T0
    WHERE T0.DocDate BETWEEN '[%0]' AND '[%1]'
    GROUP BY T0.CardCode, T0.CardName
    PAGARÉS EN EL CAJÓN:
    SELECT T0.BoeStatus As "Status de efecto", T0.CardCode As "Código IC", T0.CardName As "Nombre de interlocutor comercial", T0.BoeNum As "Número de efecto", T0.BoeType As "Clase de efecto", T0.DueDate As "Vencimiento de efecto", T0.BoeSumSC As "Importe de efecto (MS)", T0.DpsBankCod As "Proyecto", T0.BPBankCod As "IC Código de banco", T0.BPBankNam As "IC Nombre de banco", T0.BPBankAct As "Cuenta bancaria IC", T0.BPBankBrnc As "IC Sucursal bancaria", T0.BPBankCtr As "IC País del banco", T0.ControlKey As "ID interna control bancos IC", T0.PayMethCod As "Total del documento sin IVA", T0.PymMethNam As "Saldo Haber", T0.AgentCode As "Código de agente" FROM OBOE T0 WHERE T0.BoeStatus = N'G'   ORDER BY T0.BoeStatus,T0.CardCode
    LISTADO DE INCIDENCIAS
    SELECT Num=T0.[ClgCode],Año=year(T0.[Recontact]),Mes=month(T0.[Recontact]) ,Fecha=T0.[Recontact], Hora=T0.[BeginTime],
    T3.[Name] as 'Tipo',
    T2.[Name]  as 'Asunto',
    T1.FirstName+' '+T1.LastName as 'Responsable',
    T0.[Details] as 'Comentarios', T0.[Notes] as 'Contenido', T0.[U_SEIAcInm] as 'Acción Inmediata', T0.[U_SEI_feAc] as 'Fecha Acción Inmediata', T0.[U_SEI_Resp] as 'Responsable Acción Inmediata', T0.[U_SEI_Desc] as 'Descripción Cierre', T0.[U_SEI_RespC] as 'Responsable Cierre',T0.[Closed] as 'Cerrado', T0.[CloseDate] 'Fecha Cierre Sistema' , U_SEI_fecc as' Fecha Cierre', T0.[U_SEICOST]  as 'Cost' FROM OCLG T0 LEFT JOIN OHEM T1 ON T0.AttendEmpl = T1.empID
    LEFT JOIN [dbo].[OCLS] T2  ON T2.[Code] = T0.[CntctSbjct] 
    LEFT JOIN [dbo].[OCLT] T3  ON T3.[Code] = T2.[Type]
    INCIDENCIAS SIN CERRAR:
    SELECT T0.[ClgCode], T0.[CardCode], T0.[Notes], T0.[Action], T0.[CntctType]
    FROM OCLG T0
    WHERE ISNULL(cast(T0.[Notes] as varchar(10)), '') <> '' and closed='N'
    QUE TRANSFERENCIA HEMOS RECIBIDO DEL CLIENTE Y EN QUE DIA:
    SELECT DISTINCT
    T1.DocDate,
    T0.CardCode,
    T0.CardName,
    T2.DocNum AS 'Inc Pay Nbr',
    T1.DocTotal AS 'Appl Amt'
    FROM OCRD T0
    LEFT OUTER JOIN ORCT T1
    ON T0.CardCode = T1.CardCode
    INNER JOIN ORCT T2
    ON T1.DocNum = T2.DocNum
    AND T2.TrsfrAcct IS NOT NULL
    WHERE
    T1.DocDate >= '[%0]'
    AND T1.DocDate <= '[%1]'
    ORDER BY
    T1.DocDate DESC,
    T0.CardCode,
    T0.CardName,
    T2.DocNum,
    T1.DocTotal
    FOR BROWSE
    ¿Cuánto DEBEN LOS CLIENTES Y EL TOTAL DE FACTURAS?:
    SELECT T0.[CardCode], T0.[CardName], T0.[Balance], T0.[OrdersBal],  T0.[DNotesBal], T0.[ChecksBal],
         'Pedidos'=(SELECT SUM(T10.DocTotal) FROM ORDR T10 WHERE T10.CardCode = T0.CardCode
         AND T10.DocDate BETWEEN '[%0]' AND '[%1]'),
         /* Trae la suma de total de documento de pedidos en rango de fechas*/
         'Facturas'=(SELECT SUM(T10.DocTotal) FROM OINV T10 WHERE T10.CardCode = T0.CardCode
         AND T10.DocDate BETWEEN '[%0]' AND '[%1]' AND T10.DocSubType NOT LIKE 'DN'),
         /*Trae  suma facturas en el rango de fechas*/
         'NC'=(SELECT SUM(T10.DocTotal) FROM ORPC T10 WHERE T10.CardCode = T0.CardCode AND T10.DocDate
         BETWEEN '[%0]' AND '[%1]'),
         'ND'=(SELECT SUM(T10.DocTotal) FROM OINV T10 WHERE T10.CardCode = T0.CardCode AND T10.DocDate
         BETWEEN '[%0]' AND '[%1]' AND T10.DocSubType LIKE 'DN')
    FROM OCRD T0
    WHERE T0.[CardType] LIKE 'C'
    TOP 10 CLIENTES:
    SELECT TOP 10 T0.CardCode, MAX(T0.Cardname) as Customer, SUM(T0.doctotal) as "Amount(LC)"
    FROM dbo.OINV T0
    WHERE t0.docdate BETWEEN [%0] AND [%1]
    GROUP BY T0.CardCode
    Order by SUM(T0.doctotal) DESC
    ALARMA STOCK AL MINIMO:
    SELECT T0.ItemCode, T0.ItemName, T0.OnHand, T0.SuppCatNum, T0.MinLevel
    FROM   OITM T0
    WHERE  MinLevel ! = 0 and OnHand < MinLevel
    ¿QUE HAY EN EL ALMACEN?
    SELECT T0.[WhsCode], T2.[WhsName], T0.[ItemCode], T1.[ItemName],
    ROUND(SUM(CASE M.InQty
              WHEN 0 THEN -1*M.CalcPrice*M.OutQty
              ELSE M.CalcPrice*M.InQty
    END),2) AS [Valor],
    (ISNULL(SUM(M.InQty)-SUM(M.OutQty),0)) AS [Stock]
    FROM OINM M
    INNER JOIN OITW T0 ON M.ItemCode=T0.ItemCode AND M.Warehouse=T0.WhsCode
    INNER JOIN OITM T1 ON T0.ItemCode = T1.ItemCode
    INNER JOIN OWHS T2 ON T0.WhsCode = T2.WhsCode
    WHERE M.DocDate <= '[%1]'
    GROUP BY T0.WhsCode, T2.WhsName, T0.ItemCode, T1.ItemName
    ORDER BY T0.[WhsCode], T0.[ItemCode]
    FACTURAS DE PROVEEDORES PAGADAS POR MES Y DIA EN TABLA CALENDARIO:
    SET LANGUAGE Spanish   
    DECLARE @TOP INT, @F_INI DATETIME, @F_FIN DATETIME, @COND_1 CHAR(1), @COND_2 CHAR(1) 
    SET @TOP=(SELECT TOP 1 A.TransId FROM [dbo].[JDT1] A WHERE A.RefDate>='[%0]' AND A.RefDate<='[%1]')   
    SET @F_INI='[%0]'   
    SET @F_FIN='[%1]' 
    SET @COND_1='N' 
    SET @COND_2='S' 
    SELECT DISTINCT B.DocDate AS DocDate, CONVERT(NVARCHAR, B.DocDate, 103) AS Fecha 
    INTO #FECHAS 
    FROM OVPM B 
    WHERE B.DocDate BETWEEN @F_INI AND @F_FIN   
    ORDER BY 1 
    DECLARE @pvt_table NVARCHAR(MAX)   
    SELECT @pvt_table = COALESCE(@pvt_table + ',[' + C.Fecha + ']', '[' + C.Fecha + ']')   
    FROM #FECHAS C 
    ORDER BY C.DocDate  
    DECLARE @Pvt NVARCHAR(MAX)   
    SET @Pvt =    
    N'   
    SELECT *   
    FROM ( 
    SELECT DISTINCT T0.CardCode AS CardCode, T0.CardName AS CardName, CONVERT(NVARCHAR, T0.DocDate, 103) AS Fecha, SUM(T0.DocTotal) AS Pagos 
    FROM OVPM T0 
    WHERE T0.DocDate BETWEEN (@INI) AND (@FIN) AND T0.Canceled=(@C_1) AND T0.DocType=(@C_2)
    GROUP BY T0.CardCode, T0.CardName, T0.DocDate    ) AS A  
         PIVOT (
      SUM(Pagos)
    FOR Fecha IN ('+ @pvt_table +')   
        ) AS Pvt
    ORDER BY 1,3
    EXEC sp_executesql @pvt, N'@pvt_table NVARCHAR(MAX), @INI DATETIME, @FIN DATETIME, @C_1 CHAR(1), @C_2 CHAR(1)',@pvt_table, @F_INI, @F_FIN, @COND_1, @COND_2 
    DROP TABLE #FECHAS
    VACACIONES (RESUMEN EMPLEADOS)
    SELECT T1.[empID], T1.[firstName], T1.[lastName], T0.[u_seiany], [Dias Pendientes]=SUM(T0.[U_Dias]) FROM HEM1 T0  INNER JOIN OHEM T1 ON T0.empID = T1.empID left JOIN [dbo].[@SEITIPVAC]  T2 ON T0.U_SEITIPO = T2.Code
    group by  T1.[empID], T1.[firstName], T1.[lastName],  T0.[u_seiany]
    RELACION MERMAS LOTE:
    SELECT  T3.Docentry, T0.DocLine, T1.*,
    --T0.ItemCode,T0.CardName,T0.ItemName ,T0.DocDate ,T0.DocType ,T0.DocNum as [Nº ALBARAN], T0.LocCode as [Cod. Almacén] ,t4.DistNumber as [Nº Lote], T1.Quantity,  SELECT T3.Docentry, T0.DocLine, T1.*,
    --T0.ItemCode,T0.CardName,T0.ItemName ,T0.DocDate ,T0.DocType ,T0.DocNum as [Nº ALBARAN], T0.LocCode as [Cod. Almacén] ,t4.DistNumber as [Nº Lote], T1.Quantity, T3.U_SEIECOE, T3.U_SEIECOC, T3.U_SEICALE, T3.U_SEITEOK,
    Tipo= CASE T0.[DocType]
    WHEN  '59 ' Then 'Entrada'
    WHEN  '15 ' Then 'Salida'
    Else 'Otros'
    End,T4. U_SEIM1 ,T4.U_SEIM2,U_SEIMerma
    FROM   OITL T0
              INNER JOIN [ITL1] T1  ON  T1.[LogEntry] = T0.[LogEntry] 
              INNER JOIN  OBTN T4 on T1.MdAbsEntry=T4.AbsEntry
                       INNER  JOIN DLN1 T3 ON T3.[DocEntry] = T0.Docentry and T0.DocLine=T3.Linenum
              WHERE isnull(U_SEIM1,0)+isnull(U_SEIM2,0)<>0 and T0.[DocType]='15'
              and YEAR(T3.Docdate)>'2013'
    LISTA DE FACTURAS QUE SE HAN PAGADO, COMO Y CUANDO:
    SELECT distinct
    T0.DocNum 'Factura',
    T0.DocStatus 'Estatus',
    T0.DocDate 'Fecha',
    T0.CardCode 'Cliente',
    T0.CardName 'Nombre',
    T0.DocCur 'Moneda',
    T0.DocTotal 'Total Factura',
    T0.PaidToDate 'Total Pagado',
    T1.SlpName 'Vendedor',
    T2.PymntGroup 'Cond. Pago',
    T0.DocTotalSy 'Total USD',
    T3.DocNum 'No.Doc. Pago',
    T3.CashSum 'Efectivo',
    T3.CreditSum 'T.Crédito',
    T3.CheckSum 'Cheque',
    T3.TrsfrSum 'Transf',
    T3.DocTotal, 'Total Pago',
    T3.DocDate 'Fecha Pago'
    FROM OINV T0
    INNER JOIN OSLP T1 ON T0.SlpCode = T1.SlpCode
    INNER JOIN OCTG T2 ON T0.GroupNum = T2.GroupNum
    INNER JOIN ORCT T3 ON T0.[ReceiptNum] = T3.DocNum
    INNER JOIN NNM1 T4 ON T3.Series = T4.Series
    INNER JOIN RCT2 T5 ON T3.DocEntry = T5.DocNum
    WHERE T0.DocDate <= '[%1]'
    AND T3.Canceled = 'N'
    ORDER BY T0.DocNum
    FACTURAS PROVEEDORES PROXIMAS A VENDER PARA EL CEO DE LA EMPRESA:
    SELECT T0.DocNum AS 'Factura', T0.DocDueDate AS 'Fecha de vencimiento', T0.CardCode AS 'Código cliente',
    T0.CardName AS 'Nombre'
    FROM OPCH T0
    WHERE DATEDIFF (DD, T0.DocDueDate, GETDATE( )) BETWEEN -7 AND 365
    AND T0.DocStatus = 'O'
    ORDER BY T0.DocDueDate
    FOR BROWSE
    PARA SABER QUE PRODUCTOS ESTAN EN NEGATIVO EN LOS ALMACENES:
    SELECT T0.ItemCode AS 'Código', T1.ItemName AS 'Descripción', T0.WhsCode AS 'Almacen',
    T0.OnHand AS 'Cantidad', T1.OnHand AS 'Disponible total'
    FROM OITW T0
    LEFT OUTER JOIN OITM T1 ON T0.ItemCode = T1.ItemCode
    WHERE T0.OnHand < 0
    FOR BROWSE
    PARA SABER DE QUE ARTICULOS TENGO MINIMOS Y HAY QUE COMPRAR:
    SELECT
    T0.CardCode AS 'Pref Vend',
    T2.CardName AS 'Pref Vend Name',
    T0.ItemCode AS 'Item Code',
    T0.ItemName AS 'Item Description',
    T1.ItmsGrpNam AS 'Item Group',
    T0.LeadTime AS 'Lead',
    CASE
    WHEN T0.MinLevel - (T0.OnHand + T0.OnOrder - T0.IsCommited) > T0.MinOrdrQty
    THEN T0.MinLevel - (T0.OnHand + T0.OnOrder - T0.IsCommited)
    WHEN T0.MinLevel - (T0.OnHand + T0.OnOrder - T0.IsCommited) < T0.MinOrdrQty
    THEN T0.MinOrdrQty
    END AS 'To Purch',
    T0.MinOrdrQty AS 'Min Ord',
    T0.DfltWH AS 'Whs',
    T0.MinLevel AS 'Min Inv',
    T0.PrchseItem AS 'Buy',
    T0.OnHand AS 'On Hand',
    T0.OnOrder AS 'On Order',
    T0.IsCommited AS 'Committed'
    FROM OITM T0
    LEFT OUTER JOIN OITB T1
    ON T0.ItmsGrpCod = T1.ItmsGrpCod
    LEFT OUTER JOIN OCRD T2
    ON T0.CardCode = T2.CardCode
    WHERE
    T0.InvntItem = 'Y'
    AND T0.PrchseItem = 'Y'
    AND T0.MinLevel - (T0.OnHand + T0.OnOrder - T0.IsCommited) > 0
    AND T0.ItmsGrpCod <> 108
    ORDER BY
    T2.CardCode,
    T0.ItemCode
    FOR BROWSE

    Excelente aporte, gracias por compartir.
    Salu2
    César

  • Renewing Creative Cloud for teams, but cancelling some of the seats

    Hi all,
    When our CC for Teams renewal comes up in December, I want to go ahead with it, but also reduce the number of seats we have, and also change a couple of full subscriptions to single apps only. Has anyone done this sort of thing, and how did it go?
    I just had a chat with an Adobe representative who made it all sound very simple, but based on past experience I can't deny that I have some misgivings. Hopefully the community here can give me a reality check! As many others have mentioned, there's no way to manage your renewal in the account settings, so the whole process is opaque to say the least.
    My questions are:
    1. Can I renew, but cancel some seats at the same time? Or will I end up having to cancel the whole account and start all over again?
    2. If we can cancel a few seats, but keep the account open, will we keep our promotional pricing on the remainder?
    3. I gather that when you use CC for teams, single application subscriptions can only be bought through a reseller. Is it possible to then integrate these into an existing CC for teams account?
    Thanks everyone. Any help or insights much appreciated!

    Here are the replies to your queries:
    1. Can I renew, but cancel some seats at the same time? Or will I end up having to cancel the whole account and start all over again?
    You can cancel the seats as the number of seats can be altered, you do not need to cancel the whole account.
    2. If we can cancel a few seats, but keep the account open, will we keep our promotional pricing on the remainder?
    If it is within the lock in price then you shall be able to get the promotional price, it needs to confirmed by the reseller or the team renewing it other wise the price at the time of renewal is at the prevalent price.
    3. I gather that when you use CC for teams, single application subscriptions can only be bought through a reseller. Is it possible to then integrate these into an existing CC for teams account?
    At this point of time, complete CC team & Single app CC team can not be amalgamated.
    Regards
    Rajshree

  • "The query was cancelled" error after upgrade from 10.1.3.3.3 to 10.1.3.4.2

    Hi,
    I was using OBIEE 10.1.3.3.3 /. After upgrading to 10.1.3.4.2 , the queries are not running ( long running queries alone) as expected. and so all the campaigns iwh tlong running queries are cancelled and the error message is seen in the xml log in Marketing jobs management.
    We have upgraded the OBIEE version from 10.1.3.3.3 to 10.1.3.4.2 yesterday after which the connectivites have been checked with SQLPLUS and they are working fine. But when the campaign has been loaded, the Analytics have received the request for the segment query and after longer run, the task has been cancelled with the error message "The Query was cancelled as mentioned below in the Job Stats
    <jobStats>
    <jobID>2</jobID>
    <jobType>WriteListFiles</jobType>
    <jobUser>userid</jobUser>
    <jobState>Error</jobState>
    <jobTotalMilliSec>1h 41m 21s 160ms</jobTotalMilliSec>
    <jobStartedTime>2012-03-22T08:06:13Z</jobStartedTime>
    <jobFinishedTime>2012-03-22T09:47:34Z</jobFinishedTime>
    <jobIsCancelling>N</jobIsCancelling>
    - <exception>
    <message>Job request of type "WriteListFiles" failed.</message>
    - <exception>
    <message>Error executing the list generation SQL.</message>
    - <exception>
    <message>Error in executing cursor for WorkNode (Id:0)</message>
    - <exception>
    <message>The query was cancelled.</message>
    </exception>
    </exception>
    </exception>
    </exception>
    </jobStats>
    Please let us know the suggestions
    So far, the unaccessedtimingrunoutminutes tag has been tried to set 50 under ODBC tag in instanceconfig.xml. and the defaulttimeoutminutes has been tried to set to 150 in the same instanceconfig.xml.
    along with that the rpd changes are done. For all the users apart from the Administrator, the timeout has been changedfrom 10 minutes to 150 minutes. But still that way is not working.
    The segments was fired with the Administrator login. So , if the timeout for admin login can be set, i assume that the problem might be solved. Please let us know ur suggestions here too.
    If that is the case, when we open rpd , only for Administrator user and group, the Permissions button is disabled. So i want to know how to change for Admin user settings in rpd..
    Please advice us on the same.
    Regards,
    Madasamy M.
    Edited by: Madasamy Murugaboobathi on Mar 26, 2012 1:40 PM

    The issue has been resolved by setting the following parameters
    <UnaccessedRunningTimeoutMinutes>120</UnaccessedRunningTimeoutMinutes>
    <DefaultTimeoutMinutes>120</DefaultTimeoutMinutes>
    <ClientSessionExpireMinutes>120</ClientSessionExpireMinutes>
    <ConnectionExpireMinutes>120</ConnectionExpireMinutes>
    <UIDefaultTimeoutMinutes>1440</UIDefaultTimeoutMinutes>

Maybe you are looking for

  • Stream Netflix to TV issue

    I used the Apple composite AV cable to play my iTunes movies from iPad 2 to my TV; it worked just fine. But now I can't get the video to show up when I try to watch Netflix videos. I only hear the audio and the video just plays on the iPad rather tha

  • Webdynpro ABAP Scenario

    Hi, Can we develop a WD ABAP application on system1(ECC 6.0) which has to access standard,custom infotypes on system2 (ECC5.0) process/update them. Can we use EP 6.0 to display the WD ABAP application as an iVIew. Edited by: SDN User on Nov 13, 2008

  • Retrieve duration of sound files via Apple Script - System Events

    I need to get more details of my sound files into a FileMaker 10 Database as it is possible by using the FileMaker import function. There ist a complicated way by going first through iTunes and than to FileMaker. Now I found out, that part of the inf

  • Can't get lift and stamp tool working

    I simply can't figure out how to get the lift & stamp tool going. I keep reading and re-reading the manual. I have a loop on one track with some effects on it, and want to apply the same effects (with the same levels) to a loop on a different track.

  • BI Beans catalog - other content

    is it possible for the BI Beans catalog to store other (xml) data besides presentation information. For example, can I use it deliver textual reports but use the built in permissions mechanism. Is there any code available to illustrate how this might