00206: %TYPE must be applied to a variable, column

it's 10g
create or replace type my_type as object
(customer number)
declare
my_var my_type.customer%type;
begin
null;
end;
/

<p>You may find <b>this</b> useful.</p>
Tom

Similar Messages

  • Application-Managed EntityManager transaction type must be RESOURCE_LOCAL

    [P-312 of Ejb3 In Action Book"] states:
    "For application-based EntityManager, the transaction-type must be set to RESOURCE_LOCAL in the persistence.xml file".
    but in case the application is running inside container (App server) , it can join JTA transaction. Sp why always transaction-type should be
    RESOURCE_LOCAL.?

    Because the section you took that from is 'Application-managed EntityManagers outside the Java EE Container'. So it would have to be RESOURCE_LOCAL as you are not running in the container (i.e. Java SE/Tomcat).
    If it is running inside a container then you could use JTA as the transaction type.
    m

  • Released Object Types must be transportable

    Hi,
    I am trying to release my BAPI and the BOs, but I am getting this error: "Released Object Types must be transportable"
    Please suggest. Does it have anything to do with the function modules I created of its the BOs?
    Thanks,
    Apurv

    Hi
    Jawle Apurv  and Vempalli.
    Do like this copy Same Business Object to Another Name Save it in Transport Request and in Transportable Objects.
    This is the Best way  overcome from that error .
    Regards,
    Hiriyappa

  • Exception: "The type "Collection" as used in the variable/parameter declarations

    I am getting the following exception when I try to run the test code.
    What could be causing it ?
    I am running Kodo 2.4.3 with JDK 1.4.1
    EXCEPTION
    javax.jdo.JDOFatalInternalException: [agencyNames:[AGENCY1, AGENCY2]]
    NestedThrowables:
    javax.jdo.JDOUserException: The type "Collection" as used in the
    variable/parameter declarations could not be found in the imports.
    TEST CODE
    JDOFactory jdoFactory = new JDOFactory();
    PersistenceManager pm = jdoFactory.getPersistenceManager("");
    try
    Class agencyClass = Agency.class;
    Extent agencyExtent = pm.getExtent(agencyClass, false);
    String filter = "agencyNames.contains(agencyName)";
    List agencyNames = Arrays.asList(new String[]{"AGENCY1",
    "AGENCY2"});
    String param = "Collection agencyNames";
    Query q = pm.newQuery(agencyExtent, filter);
    q.declareParameters(param);
    Collection deps = (Collection) q.execute(agencyNames);
    System.out.println("SIZE :" + deps.size());
    catch (Exception ex)
    ex.printStackTrace();
    JDO Mapping and Class
    package test;
    import java.util.*;
    public class Agency
    private String agencyName;
    private String hostCarrierCode;
    //Getter and Setter
    public static class Id
    public String agencyName;
    public String hostCarrierCode;
    //Application ID definition
    ?xml version="1.0"?>
    <jdo>
    <package name="test">
    <class name="Agency" identity-type="application"
    objectid-class="Agency$Id">
    <extension vendor-name="kodo" key="table" value="AGENCIES"/>
    <extension vendor-name="kodo" key="lock-column" value="none"/>
    <extension vendor-name="kodo" key="class-column" value="none"/>
    <field name="agencyName" primary-key="true">
    <extension vendor-name="kodo" key="data-column"
    value="AGENCY_NAME"/>
    </field>
    <field name="hostCarrierCode" primary-key="true" >
    <extension vendor-name="kodo" key="data-column"
    value="CARRIER_CODE"/>
    </field>
    </class>
    </package>
    </jdo>

    Kodo 2.4.3 does not support using collections as parameters.
    Kodo 2.5.0, due to be released shortly, does support this. See
    http://solarmetric.com/Software/beta/2.5.0 to get the latest release
    candidate.
    -Patrick
    On Thu, 05 Jun 2003 22:26:36 +0000, B K Adarsh wrote:
    I am getting the following exception when I try to run the test code.
    What could be causing it ?
    I am running Kodo 2.4.3 with JDK 1.4.1
    EXCEPTION
    javax.jdo.JDOFatalInternalException: [agencyNames:[AGENCY1, AGENCY2]]
    NestedThrowables:
    javax.jdo.JDOUserException: The type "Collection" as used in the
    variable/parameter declarations could not be found in the imports.
    TEST CODE
    JDOFactory jdoFactory = new JDOFactory();
    PersistenceManager pm = jdoFactory.getPersistenceManager("");
    try
    Class agencyClass = Agency.class;
    Extent agencyExtent = pm.getExtent(agencyClass, false);
    String filter = "agencyNames.contains(agencyName)";
    List agencyNames = Arrays.asList(new String[]{"AGENCY1",
    "AGENCY2"});
    String param = "Collection agencyNames";
    Query q = pm.newQuery(agencyExtent, filter);
    q.declareParameters(param);
    Collection deps = (Collection) q.execute(agencyNames);
    System.out.println("SIZE :" + deps.size());
    catch (Exception ex)
    ex.printStackTrace();
    JDO Mapping and Class
    package test;
    import java.util.*;
    public class Agency
    private String agencyName;
    private String hostCarrierCode;
    //Getter and Setter
    public static class Id
    public String agencyName;
    public String hostCarrierCode;
    //Application ID definition
    ?xml version="1.0"?>
    <jdo>
    <package name="test">
    <class name="Agency" identity-type="application"
    objectid-class="Agency$Id">
    <extension vendor-name="kodo" key="table" value="AGENCIES"/>
    <extension vendor-name="kodo" key="lock-column" value="none"/>
    <extension vendor-name="kodo" key="class-column" value="none"/>
    <field name="agencyName" primary-key="true">
    <extension vendor-name="kodo" key="data-column"
    value="AGENCY_NAME"/>
    </field>
    <field name="hostCarrierCode" primary-key="true" >
    <extension vendor-name="kodo" key="data-column"
    value="CARRIER_CODE"/>
    </field>
    </class>
    </package>
    </jdo>--
    Patrick Linskey
    SolarMetric Inc.

  • NAD010 data type must be 'Alphanumeric' in EDIFACT D96A INVOIC

    Hi B2B GURUS,
    I am new to B2B, I was trying to integrate EDIFACT D96A INVOIC from BPEL to B2B.
    I got below error in B2B:Can some one please help on this.
    Element NAD010 data type must be 'Alphanumeric'. Segment NAD is defined in the guideline at position 0120.{br}{br}This error was detected at:{br}{tab}Segment Count: 6{br}{tab}Element Position: 3 {br}{tab}Characters: 2012 through 2049
    XML published to B2B ==>
    <Invoke_SendInvoiceToB2b_Enqueue_InputVariable_1><part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Transaction-INVOIC"><Transaction-INVOIC xmlns:ns1="urn:oracle:integration:b2b:EB1F987EE11A4A3E98E3345554E5DB13" Standard="EDIFACT" Version="VD96A" GUID="{2d333538-3630-3735-3039-313132343638}" xmlns="urn:oracle:integration:b2b:EB1F987EE11A4A3E98E3345554E5DB13">
    <ns1:Segment-UNH>
    <ns1:Element-0062>3210012325</ns1:Element-0062>
    <ns1:Composite-S009>
    <ns1:Element-0065>INVOIC</ns1:Element-0065>
    <ns1:Element-0052>D</ns1:Element-0052>
    <ns1:Element-0054>96A</ns1:Element-0054>
    <ns1:Element-0051>UN</ns1:Element-0051>
    <ns1:Element-0057>EAN008</ns1:Element-0057>
    </ns1:Composite-S009>
    </ns1:Segment-UNH>
    <ns1:Segment-BGM>
    <ns1:Composite-C002>
    <ns1:Element-1001>380</ns1:Element-1001>
    </ns1:Composite-C002>
    <ns1:Element-1004>3210000019</ns1:Element-1004>
    </ns1:Segment-BGM>
    <ns1:Segment-DTM>
    <ns1:Composite-C507>
    <ns1:Element-2005>137</ns1:Element-2005>
    <ns1:Element-2380>21120821</ns1:Element-2380>
    <ns1:Element-2379>102</ns1:Element-2379>
    </ns1:Composite-C507>
    </ns1:Segment-DTM>
    <ns1:Loop-Group_1>
    <ns1:Segment-RFF>
    <ns1:Composite-C506>
    <ns1:Element-1153>VN</ns1:Element-1153>
    <ns1:Element-1154>3210012325</ns1:Element-1154>
    </ns1:Composite-C506>
    </ns1:Segment-RFF>
    <ns1:Segment-DTM>
    <ns1:Composite-C507>
    <ns1:Element-2005>171</ns1:Element-2005>
    <ns1:Element-2380>21120821</ns1:Element-2380>
    <ns1:Element-2379>102</ns1:Element-2379>
    </ns1:Composite-C507>
    </ns1:Segment-DTM>
    </ns1:Loop-Group_1>
    <ns1:Loop-Group_2>
    <ns1:Segment-NAD>
    <ns1:Element-3035>BY</ns1:Element-3035>
    <ns1:Composite-C082>
    <ns1:Element-3039>541218011234</ns1:Element-3039>
    <ns1:Element-3055>9</ns1:Element-3055>
    </ns1:Composite-C082>
    <ns1:Composite-C058>
    <ns1:Element-3124>Flex ABC Division GH-94404</ns1:Element-3124>
    </ns1:Composite-C058>
    <ns1:Composite-C080>
    <ns1:Element-3036>ABC ABC Ltd</ns1:Element-3036>
    </ns1:Composite-C080>
    <ns1:Composite-C059>
    <ns1:Element-3042>tyu Wei 45</ns1:Element-3042>
    </ns1:Composite-C059>
    <ns1:Element-3164>werentem</ns1:Element-3164>
    <ns1:Element-3251>B-455</ns1:Element-3251>
    <ns1:Element-3207>BE</ns1:Element-3207>
    </ns1:Segment-NAD>
    </ns1:Loop-Group_2>
    <ns1:Loop-Group_7>
    <ns1:Segment-CUX>
    <ns1:Composite-C504>
    <ns1:Element-6347>2</ns1:Element-6347>
    <ns1:Element-6345>EUR</ns1:Element-6345>
    <ns1:Element-6343>4</ns1:Element-6343>
    </ns1:Composite-C504>
    </ns1:Segment-CUX>
    </ns1:Loop-Group_7>
    <ns1:Loop-Group_8>
    <ns1:Segment-PAT>
    <ns1:Element-4279>5</ns1:Element-4279>
    <ns1:Composite-C110>
    <ns1:Element-4277>30</ns1:Element-4277>
    </ns1:Composite-C110>
    <ns1:Composite-C112>
    <ns1:Element-2475/>
    <ns1:Element-2009/>
    <ns1:Element-2151>D</ns1:Element-2151>
    <ns1:Element-2152>30</ns1:Element-2152>
    </ns1:Composite-C112>
    </ns1:Segment-PAT>
    <ns1:Segment-DTM>
    <ns1:Composite-C507>
    <ns1:Element-2005>12</ns1:Element-2005>
    <ns1:Element-2380/>
    <ns1:Element-2379>102</ns1:Element-2379>
    </ns1:Composite-C507>
    </ns1:Segment-DTM>
    <ns1:Segment-PCD>
    <ns1:Composite-C501>
    <ns1:Element-5245>12</ns1:Element-5245>
    <ns1:Element-5482/>
    </ns1:Composite-C501>
    </ns1:Segment-PCD>
    <ns1:Segment-MOA>
    <ns1:Composite-C516>
    <ns1:Element-5025>21</ns1:Element-5025>
    <ns1:Element-5004/>
    </ns1:Composite-C516>
    </ns1:Segment-MOA>
    </ns1:Loop-Group_8>
    <ns1:Loop-Group_25>
    <ns1:Segment-LIN>
    <ns1:Element-1082>1</ns1:Element-1082>
    </ns1:Segment-LIN>
    <ns1:Segment-PIA>
    <ns1:Element-4347>NH</ns1:Element-4347>
    <ns1:Composite-C212_1>
    <ns1:Element-7140>LDI323010</ns1:Element-7140>
    </ns1:Composite-C212_1>
    </ns1:Segment-PIA>
    <ns1:Segment-IMD>
    <ns1:Element-7077>F</ns1:Element-7077>
    <ns1:Element-7081>DSC</ns1:Element-7081>
    <ns1:Composite-C273>
    <ns1:Element-7008>ABCD IND/ Lux</ns1:Element-7008>
    </ns1:Composite-C273>
    </ns1:Segment-IMD>
    <ns1:Segment-QTY>
    <ns1:Composite-C186>
    <ns1:Element-6063>46</ns1:Element-6063>
    <ns1:Element-6060>10</ns1:Element-6060>
    </ns1:Composite-C186>
    </ns1:Segment-QTY>
    <ns1:Loop-Group_28>
    <ns1:Segment-PRI>
    <ns1:Composite-C509>
    <ns1:Element-5125>AAA</ns1:Element-5125>
    <ns1:Element-5118>769.31</ns1:Element-5118>
    </ns1:Composite-C509>
    </ns1:Segment-PRI>
    </ns1:Loop-Group_28>
    <ns1:Loop-Group_29>
    <ns1:Segment-RFF>
    <ns1:Composite-C506>
    <ns1:Element-1153>ON</ns1:Element-1153>
    <ns1:Element-1154>3210000025</ns1:Element-1154>
    <ns1:Element-1156>1</ns1:Element-1156>
    </ns1:Composite-C506>
    </ns1:Segment-RFF>
    </ns1:Loop-Group_29>
    <ns1:Loop-Group_33>
    <ns1:Segment-MOA>
    <ns1:Composite-C516>
    <ns1:Element-5025>124</ns1:Element-5025>
    <ns1:Element-5004>461.59</ns1:Element-5004>
    </ns1:Composite-C516>
    </ns1:Segment-MOA>
    </ns1:Loop-Group_33>
    <ns1:Loop-Group_38>
    <ns1:Loop-Group_43>
    <ns1:Segment-TAX>
    <ns1:Element-5283>7</ns1:Element-5283>
    <ns1:Composite-C243>
    <ns1:Element-5278>6</ns1:Element-5278>
    </ns1:Composite-C243>
    <ns1:Element-5305>S</ns1:Element-5305>
    </ns1:Segment-TAX>
    </ns1:Loop-Group_43>
    </ns1:Loop-Group_38>
    </ns1:Loop-Group_25>
    <ns1:Loop-Group_50>
    <ns1:Segment-MOA>
    <ns1:Composite-C516>
    <ns1:Element-5004/>
    </ns1:Composite-C516>
    </ns1:Segment-MOA>
    </ns1:Loop-Group_50>
    <ns1:Segment-UNT>
    <ns1:Element-0074>#SegmentCount#</ns1:Element-0074>
    <ns1:Element-0062>3210000019</ns1:Element-0062>
    </ns1:Segment-UNT>
    </Transaction-INVOIC>
    </part></Invoke_SendInvoiceToB2b_Enqueue_InputVariable_1>

    Hi Vikky,
    Glad that it worked but I am wondering why alphanumeric will allow only UPPERCASE characters. It works properly for me with lowercase characters as well. If you don't mind, can you please forward your ecs, xsd and the sample payload to my id (in my profile). Just want to check where is the gap.
    Regards,
    Anuj

  • Create Policy Resource Exception. Resource type must not be null

    OAM version: 11.1.1.5
    I have installed OAM 11g webgate but not able to register it from OAM admin console. It is throwing the error "Create Policy Resource Exception. Resource type must not be null" whenever I try to register the agent.
    Also I don't see any resource types like Http,Tokenservice and wl_Authen in Resource Type link of OAM Admin console.
    How to add these missing resource types in OAM 11g?
    Thanks in Advance

    Hi
    I didn't find solution for this issue. As I got this error in my VM machine, I reverted my snapshot to "After installing WLS" and then I installed and configured OAM again. This time I didn't get the issue.
    Good Luck.

  • Reg: PLS-00418: array bind type must match PL/SQL table row type error

    I am trying to access a table of records through JDBC OracleCallableStatement. I am able to do it fine for all mappings except for the ones below
    TYPE CAT_CD_TYPE IS TABLE OF A.B %TYPE INDEX BY BINARY_INTEGER;
    TYPE ORG_CD_TYPE IS TABLE OF C.D %TYPE INDEX BY BINARY_INTEGER;
    Column B is CHAR(1) and Column D is CHAR(2). I am trying to register the out parameters of Oraclecallablestatement as
    cstmt.registerIndexTableOutParameter(2, 2000, OracleTypes.CHAR, 0);
    cstmt.registerIndexTableOutParameter(3, 2000, OracleTypes.CHAR, 0);
    All the other mappings work fine. These two fail with the error
    SQLException in invokeDBPackage() : ORA-06550: line 1, column 32:
    PLS-00418: array bind type must match PL/SQL table row type
    ORA-06550: line 1, column 35:
    PLS-00418: array bind type must match PL/SQL table row type
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    I tried other OracleTypes mappings too but no luck so far.
    Any advice on this would be greatly appreciated.

    Hi,
    I'm not sure it's reasonable to expect someone to sift through that much stuff.
    Which parameter is it having a problem with?
    Can you modify the following to reproduce the behavior?
    Thanks
    Greg
    create package mypack5 as
    TYPE v2array is table of emp.ename%type index by BINARY_INTEGER;
    PROCEDURE test_it(thearray IN v2array, numrecs out number);
    END;
    CREATE or replace PACKAGE BODY MYPACK5 AS
    PROCEDURE test_it(thearray IN v2array, numrecs out number)
    IS
    begin
    numrecs := thearray.count;
    END;
    END;
    using System;
    using System.Data;
    using Oracle.DataAccess.Client;
    public class indexby
    public static void Main()
    OracleConnection con = new OracleConnection("data source=orcl;user id=scott;password=tiger;");
    con.Open();
    OracleCommand cmd = new OracleCommand("mypack5.test_it", con);
    cmd.CommandType = CommandType.StoredProcedure;
    OracleParameter Param1 = cmd.Parameters.Add("param1", OracleDbType.Varchar2);
    Param1.Direction = ParameterDirection.Input;
    Param1.CollectionType = OracleCollectionType.PLSQLAssociativeArray;
    Param1.Size = 3;
    string[] vals = { "foo", "bar", "baz" };
    Param1.Value = vals;
    OracleParameter Param2 = cmd.Parameters.Add("param2", OracleDbType.Int32, DBNull.Value, ParameterDirection.Output);
    cmd.ExecuteNonQuery();
    Console.WriteLine("{0} records passed in", Param2.Value);
    con.Close();
    }

  • PLS-00418: array bind type must match PL/SQL table row type

    If a PL/SQL table is indexed by CHAR and is a parameter
    in a Stored Program, we are not able to call the stored
    program from the Java code.
    We get the following error code.
    java.sql.SQLException: ORA-06550: line 1, column 62:
    PLS-00418: array bind type must match PL/SQL table row type
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    But if we change the CHAR into VARCHAR2 then it works.
    We are using Oracle9i Enterprise Edition Release 9.2.0.5.0 -64bit Production ,
    JServer Release 9.2.0.5.0 - Production
    and JDK1.4.
    Thanks
    Push..

    Hi,
    I'm not sure it's reasonable to expect someone to sift through that much stuff.
    Which parameter is it having a problem with?
    Can you modify the following to reproduce the behavior?
    Thanks
    Greg
    create package mypack5 as
    TYPE v2array is table of emp.ename%type index by BINARY_INTEGER;
    PROCEDURE test_it(thearray IN v2array, numrecs out number);
    END;
    CREATE or replace PACKAGE BODY MYPACK5 AS
    PROCEDURE test_it(thearray IN v2array, numrecs out number)
    IS
    begin
    numrecs := thearray.count;
    END;
    END;
    using System;
    using System.Data;
    using Oracle.DataAccess.Client;
    public class indexby
    public static void Main()
    OracleConnection con = new OracleConnection("data source=orcl;user id=scott;password=tiger;");
    con.Open();
    OracleCommand cmd = new OracleCommand("mypack5.test_it", con);
    cmd.CommandType = CommandType.StoredProcedure;
    OracleParameter Param1 = cmd.Parameters.Add("param1", OracleDbType.Varchar2);
    Param1.Direction = ParameterDirection.Input;
    Param1.CollectionType = OracleCollectionType.PLSQLAssociativeArray;
    Param1.Size = 3;
    string[] vals = { "foo", "bar", "baz" };
    Param1.Value = vals;
    OracleParameter Param2 = cmd.Parameters.Add("param2", OracleDbType.Int32, DBNull.Value, ParameterDirection.Output);
    cmd.ExecuteNonQuery();
    Console.WriteLine("{0} records passed in", Param2.Value);
    con.Close();
    }

  • No exception of type BPMIdentityNotFoundException can be thrown; an exception type must be a subclass of Throwable.

    How to solve this exception.
    I downloaded this jar  bpm-services.jar and i am using " LocalIdentityService.getManager(user);" this method from it which throws two exception : BPMIdentityNotFoundException, BPMIdentityException
    but i am getting compile time error as:
    "No exception of type BPMIdentityNotFoundException can be thrown; an exception type must be a subclass of Throwable"
    How to solve this error ?
    Help will be appreciated.

    Hi,
    The above provided code works fine,  As you are using SDK Exception that requires the package "com.crystaldecisions.sdk.exception.SDKException" need to be imported in the code.
    Please provide the references for ISessionMgr , and IEnterpriseSession as mentioned below.
    String username = "Administrator";
    String password = "";
    String CMS = "localhost";
    String Authen = "secEnterprise";
    try {
    ISessionMgr sm = CrystalEnterprise.getSessionMgr();
    IEnterpriseSession es = sm.logon(username, password, CMS, Authen);
    } catch (SDKException sdkException)
            out.println(sdkException.getMessage());
         out.println("The code runs.. !");
    Hope this works
    Regards,
    Rameez

  • Best Index type for low variability columns like Country or LastName

    Hi, 
    What would be best Index to use on Low variability columns like Country or LastName in SQL Server.
    I think BitMap index we can use only on columns where we can have two possible value like male/female.

    basically I was trying to figure out if there is any kind of Indexes in SQL Server which have special design for low variability column. 
    my example queries like :  select a,b,c from table t where country = 'USA'
    Hi Eshant,
    In your scenario, you need to know which index is the best Index to use on Low variability columns like Country or LastName in SQL Server. As per my understanding, the performance not only related to the types of index on that column, but also related
    to the records on your table.
    Here is blog which tests the performance for different types of index on variability column like lastname, please refer to the link below.
    http://www.codeproject.com/Articles/234399/Database-performance-optimization-part-Indexing
    Regards,
    Charlie Liao
    If you have any feedback on our support, please click
    here.
    Charlie Liao
    TechNet Community Support

  • Shipment type must be equal to shipment type

    Hi
         while iam creating shipment for one delivery document it is giving an error:
    "shipment type must be equal to shipment type"
    Pls suggest me how to get rid of it.
    Thanks

    Hia Ashish ,
    can u plz provide more details?
    i expect there in typing mistake, vch is not matching shipment type

  • SQL Data Sync - column type invalid for use as a key column

    Hello,
    our sync group is failing to do the sync. Here's a tracingID:
    For more information, provide tracing ID ‘e3e568b5-140a-4ae5-a4c8-c178c6bf805d’ to customer support.
    I must say, that the column in DB is not a PK or INDEX-ed, it was initially VARCHAR(MAX), after some reading I changed it to VARCHAR(200) and later to TEXT, but the result of syncing is still the same.
    Thank you,
    Bojan

    Hi Bojan,
    The error “column type invalid for use as a key column” could be due to the existence of unsupported data types or column properties when implementing the synchronization. I recommend you check your database according to this article:
    SQL Database Data Types supported by SQL Data Sync.
    Besides, before you design and implement a data synchronization plan, please check the following articles about system requirements for SQL Data Sync and so on.
    System Requirements for SQL Data Sync
    https://msdn.microsoft.com/en-us/library/azure/jj127278.aspx
    Known SQL Data Sync Limits
    https://msdn.microsoft.com/en-us/library/azure/jj590380.aspx
    SQL Data Sync Best Practices
    https://msdn.microsoft.com/en-us/library/azure/hh667328.aspx
    Thanks,
    Lydia Zhang
    Lydia Zhang
    TechNet Community Support

  • Pivot table with variables columns

    I need a helo to pivot table with variable columns,
    I have a pivot table :
    SELECT a.*
    FROM (SELECT codigo_aluno,nome_aluno , id_curso,dia FROM c_frequencia where dia like '201308%') PIVOT (sum(null)   FOR dia IN ('20130805' ,'20130812','20130819','20130826')) a
    but I need to run the select with values for dia , getting from a other table :
    SELECT a.*
    FROM (SELECT codigo_aluno,nome_aluno , id_curso,dia FROM c_frequencia where dia like '201308%') PIVOT (sum(null)   FOR dia IN (
    select dia from v_dia_mes )) a
    thank you

    The correct answer should be "Use the Pivoted Report Region Plugin".
    But, as far as I know, nobody has created/posted that type of APEX plugin.
    You may have to use a Basic Report (not an IR) so that you can use "Function returning SELECT" for your Source.
    You would need two functions:
    One that dynamically generates the Column Names
    One that dynamically generates the SELECT statement
    These should be in a PL/SQL Package so that the later can call the former to ensure that the column data matches the column names.
    i.e. -- no 'SELECT *'
    MK

  • Variable column names

    I'm working on a data collection application. Actual device names to be logged can change. Two tables are used: a log "header" table that contains an entry with input descriptions (one record per "run") and another table that contains logged data every 10 secondss
    Log header table:
    DT | run_num | input1_desc | input2_desc |
    xxxx 1234 inlet_temp zone_1_temp
    Data table:
    DT | run_num | input1 | input2 |
    xxxx 1234 12.234 45.675
    How can I create a view to show data with actual column names (ex: inlet_temp)? Or should db be re-designed?

    Are you using an application express report to display the results?
    If so, you could use the custom pl/sql headings for that purpose.
    This example could get you started:
    DECLARE
       l_ret   VARCHAR2 (500);
    BEGIN
       SELECT 'DT:RUN_NUM:' || input1_desc || ':' || input2_desc
         INTO l_ret
         FROM logheader
        WHERE run_num = :p1_run_num;
       RETURN l_ret;
    END;These custom headings only make sense for a single run_num.
    So create a report for the details :
    select * from data where run_num = :p1_run_num; and use the above mentioned pl/sql block on the report attributes tab for a heading type of pl/sql.
    The variable :p1_run_num refers to a variable on page 1 on which you set the current run_num value for the details.
    Regards,
    ~Dietmar.

  • Variable {column} in unique key template

    In unique constraint, the variable column not works when i do engineering to physical model.
    For example, my template is {table}_{column}_UK, after engineering my unique key stay table__uk, when I expect table_column_uk
    Version 4.0.3.853

    Hi,
    thanks for reporting the problem, I logged a bug.
    It appears columns are not taken into account for UK name during engineering. You always can apply templates on the whole relational model using "Apply naming standards to Keys and Constraints" in context menu for relational model in the browser.
    Philip

Maybe you are looking for

  • BOM and Routing import is not populating data in base table.

    BOM AND ROUTING INTERFACE Import Prog is not populating base table with interface data.Even the Interface table data is not processed.I am passing process flag as 1 and transaction_type as INSERT,still the ROUTING INTERFACE TABLES  are not getting pr

  • Is There any difference in Set @Var=ColmnName and Select @Var =Column from Table. I am using it in SSIs for Dynamic Packages

    hey there, Kindly elaborate me the difference Between Set and Select clause while Providing value to a Variable or Even  a  Column.     Declare @var nvarchar(Max)     Set @var= (Select TestName+ cAst(TestId as nvarchar) from TblTest where TestID=1)  

  • Saving or opening a download to the desktop

    How do you save a downloaded file to open or save directly to the desktop and not in the download folder???

  • My iPhone 3GS is on an endless spree of REBOOTING!

    Some days ago, I started noticing that my iPhone 3GS that I bought 2 years ago had some reboot problems. From nowhere, it would reboot, and that annoyed me a lot, but I didn't know if it was the battery or if it was my iPhone that was full of stuff (

  • Problem with kb21n

    Hi all Expert i need to make every month reclassifications of Activity Type on a lot of cost center for the work around we have create a job whit a call transaction of kb21n                seder                          AT               receiver