How to call SQL statements in InDesign CS6?

Hello

My plugin needs to interact with the database and update the database of content, how do I do it, I can call the SQL statements in InDesign CS6?

Thanku very much.

The same way you would call them from any C++ program. You don't mention what platform, and that probably made a difference.

I am accessing a SQL database in InDesign CS6 on Windows. I use the interface ODBC for SQL Windows database provides, through the nanodbc wrapper. I am therefore a link to odbc32.lib odbccp32.lib and including the nanodbc.cpp and nanodbc.h files. (See http://lexicalunit.github.io/nanodbc/ )

Paul.

Tags: InDesign

Similar Questions

  • How to trash the prefs for InDesign CS6?

    Very, very frustrating.

    Each 'how to' I find online on the way to the trash my ID CS6 Pref told me to replace the files called "InDesign Defaults" and "InDesign SavedDate. The locations of these are supposed to be here:

    InDesign Defaults:

    Macintosh: Disk hard/users / < USER > / Library/Preferences/Adobe InDesign / < Version # > / < language > /.

    InDesign SavedData:

    Macintosh: users/hard disk / < USER > / Library/Caches/Adobe InDesign / < Version # > / < language > /

    Well, there is no "Library" folder in my folder '< USER > '. The folder does not exist "Hiding" anywhere on my hard drive. Nowhere is there not "Adobe InDesign" folder on my hard drive. There seems not to be all the files on my hard drive with the names of "InDesign Defaults" or "InDesign SavedDate".

    What all this possible?

    In the current versions of Mac OS X, these are hidden files. User library files see hidden access | Mac OS 10.7 Lion

  • How can I remove a seat InDesign CS6?

    I have an old CS6 InDesign which I want to transfer to another person.

    The serial number of the product is registered in my name by not installed.
    Can someone tell me how to do this, please

    I tried to find a solution on the website of Adobe, but without success.

    Thank you!

    To transfer a license from product to someone else, follow these steps

    Transfer an Adobe product license

  • How to call a statement VCB of PowerShell commands

    Good day everyone!

    I was pulling my hair recently trying to get a simple backup VCB working from powershell script.

    Basically, I can browse the script very well until I get to my statement VCB. My research led me to try the following:

    *

    "Set-Alias VCB"C:\Program VMware Consolidated Framework\vcbMounter.exe backup.

    *

    and VCB h $strVIHostname - a name: $strBackupName u $strVIUsername $strVIPassword - nbd t Pei fullvm - Ma & lt; way to place the backups & gt; »

    This part of the script generates the following error:

    (A complete virtual machine disassemble operation just to remove the exported files.)

    To: line: 75 char: 5

    + & & lt; & lt; & lt; & lt; VCB h $strVIHostname - a name: $strBackupName u $strVIUsername Pei $strVIPassword m ndb fullvm - r $strVCBBackupPath t $ strBackupName\$ strDayOfWeek

    I need to learn how to operate with reliability of PowerShell program statements, WHICH MUST INCLUDE of the parameters. Lame Microsoft do this NEVER, include additional parameters, which Im guessing is the place where the real complexity to do this...

    Any help would be greatly appreciated!

    In my backup VCB (of course in PowerShell) script, I use the http://System.Diagnostics.Process: Start method.

    This method allows me to capture the output of the command for later analysis.

    I packed the call to this method into a separate function.

    Something like that

    function Invoke-Cmd{
         param($cmd, $arguments)
    
         $global:StdOut = ""
         $global:StdErr = ""
    
         $pStart = new-object System.Diagnostics.ProcessStartInfo
         $pStart.Filename = $cmd
         $pStart.Arguments = $arguments
         $pStart.UseShellExecute = $false
         $pStart.ErrorDialog = $false
         $pStart.CreateNoWindow = $True
         $pStart.RedirectStandardOutput = $true
         $pStart.RedirectStandardError = $true
         $myProcess = [http://System.Diagnostics.Process|http://System.Diagnostics.Process]::Start($pStart)
    
         $myOutput = $myProcess.StandardOutput
         $myErrOutput = $myProcess.StandardError
         $global:StdOut = $myOutput.ReadToEnd()
         $global:StdErr = $myErrOutput.ReadToEnd()
    
         $myProcess.WaitForExit()
    
         $myProcess.ExitCode
    }
    
    ....
    # Call VCBmounter
         $myarg = "-h " + $VCBhost + " -u " + $VCBuser + " -p " + $VCBpassword + " -a " + $vmMoRef
         if($VCBbase -eq "image"){
           $myarg += (" -r " + $VCBSnapDirImage + "\" + $vmName + " -t fullvm")
         }
         else{
           $myarg += (" -r " + $VCBSnapDirFile + "\" + $vmName + " -t file")
         }
         $myarg += (" -M 1 -F 0 -L 0")
         $mycmd = $VCBProgDir + "\" + "vcbMounter.exe"
         $rc = Invoke-Cmd $mycmd $myarg
    ....
    

    Note: since it is an extract from my real VCB script there are a few variables requiring here maybe explain.

    VCBhost: the host name of the VCB Server

    VCBuser: the account that has the permissions required on VCB

    VCBpassword: the password of the account VCB

    vmMoRef: the object reference managed to the guest who needs to be backed up. Get it as follows: (Get - VM |) Get - View). MoRef

    Variable%%: asked the type of backup VCB (image or file)

    VCBSnapDirImage: directory where image snapshots are stored

    VCBSnapDirFile: directory where file snapshots are stored

    VMname: name of the guest

    VCBProgDir: directory where the VCB commands

    I hope that it affects you on the right track.

  • How to call sql loader control file with in the pl/sql procedure

    Hi friends,

    I am doing a project in relation to the transfer data using queues. In the queue, I'll get a data delimited by tabs in the form of CLOB variable/message. I don't want to keep this dat in the oracle table.
    During the updating of the data in the table.

    1. don't want to write data to a file. (You want to access directly after the specific queue).

    2. as the data is in the form of delimited by tabs, I want to use sql loader concept.

    How can I call the ctrl charger sql file with in my pl/sql procedure. When I searched, most forums recommending the external procedure or a Java program.

    Please guide me on this issue. My preferrence is pl sql, but don't know the external procedure. If no other way, I'll try Java.

    I'm using oracle 9.2.0.8.0.

    Thanks in advance,
    Vimal...

    Or SQL * Loader, or external tables are designed to read data from a CLOB stored in the database. They both work on files stored on the file system. If you don't want the data to be written to a file, you have to roll your own parsing code. It is certainly possible. But it will be much less effective than SQL * Loader or external tables. And it is likely to lead to a little more code.

    The simplest possible thing that might work would be to use something like Tom Kyte string tokenization package to read a line in the CLOB, divide the component parts and save the different chips in a significant collection (i.e. an object type or a record type that matches the table definition). Of course, you need manage things like the conversion of strings to numbers or dates, rejecting the lines, writing to log files, etc.

    Justin

  • How to write sql statement

    Hello

    create table test (unit varchar2 (100), posted date, identification number);

    Insert into test ("BA-101", December 31, 2012 ', 2);

    Insert into test ("BA-101", 31 December 2013 ', 1);

    Insert into test ("BA-101", 31 December 2014 ', 3);

    Insert into test ('BA-102", December 31, 2012", 5);

    Insert into test ('BA-102", 31 December 2013 ', 4);

    Insert into test ('BA-102", 31 December 2014 ', 6);

    Insert into test ('BA-103", December 31, 2012", 9);

    Insert into test ('BA-103", 31 December 2013 ', 7);

    Insert into test ('BA-103", 31 December 2014", 8);

    I want output like below

    BA - 101-31/12/2014 3

    BA - 102-31/12/2014 6

    BA - 103-31/12/2014 8

    I TRIED

    SELECT UNIT, MAX (EXPIRYDATE)

    OF THE TEST

    GROUP BY UNIT

    BUT I DON'T KHOW HOW TO RETRIEVE ID NUMBER BELONG TO DISPLAYED.

    tHANS

    Try the below

    Unit SELECTION,

    displayed,.

    ID

    (SELECT UNIT,

    displayed,.

    ID,

    ROW_NUMBER() over (PARTITION BY unit ORDER BY posted DESC) rn

    TEST)

    WHERE rn = 1;

  • How to create numbered hierarchical in InDesign CS6 lists

    Hi all

    I searched a bit on the web for the usual tutorials that help with queries of database layout.

    I never had to try to build manuals containing lists of hierarchical in them in InDesign.

    Something about the Word makes automatically (including all the usual problems with formatting later of course).

    What I need is an approach for obtaining a manual put out and able to be updated and changed as easily as possible.

    HAND POSITION

    x. TITLE

    x.y content paragraph

    x.y.z. contents paragraphs

    for example

    CONFIGURATION OF THE HAND

    1. the internal balancing trees

    1.1 access to the PIN

    1.1.1 C-Clips and disassembly of the bearing

    1.1.2 installation of reversible glasses

    1.2 remove the PIN

    2. implementation of the Tower

    Etc.

    I tried all kinds of ways to get some automatic manipulation of the present, but because it is related to the paragraph format and I have section and formatting of the body, according to me, I can get 1 numbering level that seems to work:

    1 the internal balancing trees

    1 access to the PIN

    2 C - Clips and disassembly of the bearing

    3 mounting of reversible glasses

    4. Remove axis

    2. set up the Tower

    I'm starting to think that's not quite able to be configured in InDesign, but I would like some feedback if possible...

    Best regards

    Will be

    You need to implement paragraph for each level 1 style.

    In each paragraph style from the section 'bullets & numbering '.

    Updated the numbering, the value of each paragraph for the corresponding level style. Each level adds in terms of numbering space reserved for the same level in the second and third level set the placeholder and the point before the real for the first level and the second level (this is only for the third level of course).

    It is also an idea of goot to create and select a list that can be made in the same dialog box. It would work without a list, but it is preferable to use a list to not get problems with other numbering lists numbered in the document.

  • How to call SQL in the filter condition

    Hello

    Booking dashboard report, I need filter order_date between this quarter beginning date and this date of end of quarter.
    I customized data are available from quarter to quarter end date.
    How do I use the filter.

    Thank you

    Looks like you need filter the date of the order between the start of quarter and the ending quarter by ensuring that order dates is always present between the quarter start date and the date of end of quarter

    Create a report of sub with a column of order date and order date is invited.

    So now, in the report main use filter option advanced and

    Take the quarter start date column and use the advanced on this filter option. Use the results to filter based on another request. You can specify the quarter start date is greater than the date of the selected order (order reporting date column)

    and

    Take the quarter end date column and use the advanced on this filter option. Use the results to filter based on another request. You can specify the quarter end date is less than the date of the selected order (order reporting date column)

    In this way, you can force the order date always between the date of beginning of quarter and quarter end date columns

    It may be useful
    Thank you
    Prash

  • How to use SQL or another way to check if the assets have been post GL?

    Hi all:
    I wan to ask, how to use SQL statements or any other way to check iif assets have been post GL?


    my environment is oracle 11.5.9






    Concerning
    Terry

    to create entries and transfer to GL
    assets: -.
    (1) (log N entries)-> standard
    (2) complete the setting and submit.

    to check if the assets have been post GL
    Journal:--
    (1) magazines-> Enter
    (2) in the form of research journals Source LOV, select 'Assets', then enter
    (3) you will find all transferred assets (Addition or depreciation) magazines, and the status of the batch is (Unposted), then review and Post

    Published by:! ALotfy September 2, 2010 08:54

  • How to call PL/SQL function processRequest

    Hello

    I'm trying to run a function called xxhr_trg_evaluation_pkg.xx_get_class_desc (1);

    How can I run the above inside the processRequest function and pass the value returned in a variable string.

    Thanks in advance

    Kind regards... Ashraf

    Ashraf,

    The following code will help you how to call the function or procedure in processRequest.

    processRequest Code:

    {} public processRequest Sub (pageContext OAPageContext, OAWebBean webBean)

    Oaam = pageContext.getApplicationModule (webBean) OAApplicationModule;
    OADBTransaction dbtrans;
    TXN OADBTransaction = (OADBTransaction) oaam.getOADBTransaction ();

    statement that even execute the statement as pl/sql in Toad
    = Txn.createCallableStatement cs CallableStatement ("start: 1: = xxhr_trg_evaluation_pkg.xx_get_class_desc (: 2); end;", 0);

    variable will contain the return value
    String outputVal ="";

    pass the value of the entry to the callable statement
    try {}
    cs.setString(2,1+"");

    }
    catch (Exception e) {}
    }

    try {}
    CS. Execute();
    outputVal = cs.getString (1);
    }
    catch (Exception e) {}
    }

    try {}
    CS. Close();
    }
    catch (Exception e) {}
    }
    Did all the insert/update/etc means do validation of here too but you did not engage in the service by using the following syntax
    dbtrans.Commit ();

    }

    Thank you
    SAN

  • How to call the pl/sql function in application of the ADF

    Hi Experts,

    I need to call the pl/sql function in application of ADF, I have logic written in my AM

    Method:

    public String reportStoredProcedure (locationID customerID, number,
    String tailNum) {}

    CallableStatement st = null;
    String v_sanctioned = null;
    If (locationID! = null & & customerID! = null & & tailNum! = null) {}
    System.out.println (locationID + "" + customerID + "" + tailNum);
    Tail string = "TAIL";
    String result = "N";

    try {}
    String stmt =
    "start XXWFS_SANCTIONS_PKG. CHECK_SANCTION(:1,:2,:3,:4,:5,:6,:7,:8,:9,:10,:11); end; « ;
    St = getDBTransaction () .createCallableStatement (stmt, 0);
    st.setNull (1, Types.VARCHAR);
    st.setNull (2, Types.NUMERIC);
    st.setObject (3, customerID);
    st.setNull (4, Types.NUMERIC);
    st.setNull (5, Types.NUMERIC);
    st.setObject (6, locationID);
    st.setNull (7, Types.NUMERIC);
    st.setNull (8, Types.NUMERIC);
    st.setObject (9, tail);
    st.setObject (10, tailNum);
    st.setObject (11, result);
    St.Execute ();
    System.out.println ("v_sanctioned in AM:" + v_sanctioned);
    } catch (Exception e) {}
    e.printStackTrace ();
    return "N";
    } {Finally
    If (st! = null)
    try {}
    St.Close ();
    } catch (Exception e1) {}
    E1. PrintStackTrace();
    return "N";
    }
    }
    } else {}
    System.out.println ("v_sanctioned is null");
    v_sanctioned = "N";
    }
    Return v_sanctioned;
    }


    Error:

    java.sql.SQLException: ORA-06550: line 1, column 7:
    PLS-00306: wrong number or types of arguments in the call to 'CHECK_SANCTION '.
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored

    at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
    at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:206)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)
    at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1035)
    at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:191)
    at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:950)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1224)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3386)
    at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3487)
    at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:3858)
    at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1374)
    at weblogic.jdbc.wrapper.PreparedStatement.execute(PreparedStatement.java:99)
    at model.view.CardAMImpl.reportStoredProcedure(CardAMImpl.java:182)
    at com.emboss.bean.ReadyToPrint.invokeVSanctioned(ReadyToPrint.java:485)
    at com.emboss.bean.ReadyToPrint.PrintingCards(ReadyToPrint.java:434)
    at com.emboss.bean.ReadyToPrint.printCards(ReadyToPrint.java:204)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.sun.el.parser.AstValue.invoke(AstValue.java:157)
    at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
    at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1259)
    at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:183)
    at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:148)
    at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:97)
    to oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$ 1.run(ContextSwitchingComponent.java:90)
    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:309)
    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:94)
    at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:91)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:812)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:292)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
    to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)
    to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:420)
    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
    to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:420)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    to oracle.security.jps.ee.http.JpsAbsFilter$ 1.run(JpsAbsFilter.java:94)
    at java.security.AccessController.doPrivileged (Native Method)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:414)
    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:138)
    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:159)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.doIt (WebAppServletContext.java:3684)
    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.run (WebAppServletContext.java:3650)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

    Can someone help me how to call...

    Call it in function, not as a procedure you do

    try {
    String stmt =
    "begin :1 := XXWFS_SANCTIONS_PKG.CHECK_SANCTION(:2,:3,:4,:5,:6,:7,:8,:9,:10,:11,:12); end;";
    st = getDBTransaction().createCallableStatement(stmt, 0);
    st.registerOutParameter(1, Types.VARCHAR);
    st.setNull(2, Types.VARCHAR);
    st.setNull(3, Types.NUMERIC);
    st.setObject(4, customerID);
    st.setNull(5, Types.NUMERIC);
    st.setNull(6, Types.NUMERIC);
    st.setObject(7, locationID);
    st.setNull(8, Types.NUMERIC);
    st.setNull(9, Types.NUMERIC);
    st.setObject(10, tail);
    st.setObject(11, tailNum);
    st.setObject(12, result);
    st.execute();
     = st.getString(1);
    
  • How to execute the SQL statement in the Application Module

    Hi people
    I´d would like to know how I can execute a SQL statement like "remove user" in the Module to request... prepareSession method...
    I m using Jdev 10 with ADF Faces
    Thank you

    This is possible, but you should think twice about it.
    If this can be done with an EO/VO do in this way.
    If you can't do it with an EO/VO you can yourself the DB operation (ApplicationModule.getDBTransaction ()) and use a call of createStatement (...) do what you want.

    Timo

  • How creat special infographic graphic in Adobe Illustrator CC2015 Adobe Indesign CS6

    Hi guys,.

    How creat infographic special cane graphs to help please as I atteche in short form. I use Adobe Illustrator CC 2015 and Adobe Indesign Cs6 please see the screen shot as bleo I want to do this type of graphics please saher all video ttorials like... I am wationg for my replay

    http://i.stack.imgur.com/QSIfm.PNG

    1.jpg

    2.jpg5.jpg

    Thank you

    The first two are similar to radar charts. Please see the documentation on how to use the chart tools.

    How to create graphs in Illustrator

    Perhaps you might do a third as well, but in case you have another software that can display a vector file then it might be easier to create the data in one Office application, and then save it to PDF format for further editing in Illustrator.

  • How to run a SQL statement to use a specific implementation plan

    Hi all

    I have a SQL that has recently been run badly. I tried the Advisor tuning SQL for the given SQL query and it gives the following information:

    GENERAL INFORMATION SECTION

    -------------------------------------------------------------------------------

    Name of the task of tuning: 2q94zb7djr2xn

    The owner task of tuning: LMDBPROD

    Type of work: single SQL statement

    County of execution: 2

    The current run: EXEC_8869

    Type of execution: TUNE SQL

    Scope: COMPLETE

    Time Limit (seconds): 60

    Status: COMPLETED

    Started on the: 03/02/2014-20:43:39

    To the: 03/02/2014 20:44:25

    -------------------------------------------------------------------------------

    Name of the schema: LMDBPROD

    SQL ID: 2q94zb7djr2xn

    SQL text: SELECT NPCOMMON. FGET_ACTION_CODE (ORDNUM) ACTIONCODE, STATUS,

    SUMA COUNT (*) FROM SORDER, WHERE HEADORDNUM IS NOT NULL AND

    NPCOMMON. FGET_PRODUCTOFFER4ORDER (ORDNUM) IN (SELECT ID FROM)

    PRODUCTOFFER WHERE PPSPECIFICATION_ID IN (SELECT ID FROM)

    PPSPECIFICATION WHERE PCLASS_CODE IN (SELECT PCLASS_CODE FROM)

    ARUSERGROUP WHERE CODE IN (SELECT ARUSERGROUP_CODE FROM)

    ARUSER_ARUSERGROUP WHERE ARUSER_USERNAME =: B1 AND STATUS = '1')

    AND STATUS = '1'))) GROUP BY NPCOMMON. FGET_ACTION_CODE (ORDNUM),

    STATUS

    -------------------------------------------------------------------------------

    RESULTS SECTION (1 result)

    -------------------------------------------------------------------------------

    1-alternative Plan conclusion

    ---------------------------

    Some implementation plans alternative for this statement was found by searching

    performance data in real-time and historical of the system.

    The following table lists these plans sorted by their average time.

    See "SECTION of ALTERNATIVE PLANS" section for detailed information on each

    plan.

    plan ID hash last visit elapsed note of origin (s)

    -- ---------- -------------------- ------------ --------------- ----------------

    1 617797893 2013-07-11/07: 45:20 9.555 no reproducible STS

    2 1311086720 2014-01-31/04: 00:44 19.569 AWR

    3 1226863820 2014-01-31/18: 00:24 AWR 21.158

    4 1359606848 2014-02-03/16: 00:34 21.492 AWR original plan

    The plan with hash 617797893 seems the most efficient one and is based on some specific SQL Tuning Set I ran on this time. But the note says that the plan is not reproducible. Is there anyway how can I force the SQL statement to execute the plan? The database version is Standard Edition 11.2.0.1.0

    Best regards

    Rodriguez

    Hello

    I think you can use this

    http://rnm1978.WordPress.com/2011/06/28/Oracle-11g-how-to-force-a-sql_id-to-use-a-plan_hash_value-using-SQL-baselines/

    before 11 g, we used to create an outline stored for this.

    concerning

  • My MacBook Pro suddenly crashed. I lost all the programs, including InDesign CS6 I use the most. I installed a new hard disk, can't find my license number. How can I install CC? Adobe does not accept my address, no credit card no etc.

    My MacBook Pro suddenly crashed. I lost all the programs, including InDesign CS6 I use the most. I installed a new hard disk, can't find my license number. How can I install CC? Adobe does not accept my address, no credit card no etc.

    Find your http://helpx.adobe.com/x-productkb/global/find-serial-number.html serial No.

    Download & install instructions https://forums.adobe.com/thread/2003339 can help

    -includes a link to access a page to download the Adobe programs if you do not have a disk or drive

Maybe you are looking for