User-defined views on tables

Hello there,
I am working on a project that requires tuning the oracle9i database having, among other objects, around 205 tables and about 210 views on these tables. Performance has been a major bottleneck here. After doing the database analysis, I am suggesting that one of the main hazards to database's performance is creating so many views. Unfortunately I am not able to substantiate this. Can somebody tell me whether creating so many views is a real threat? By the way, almost all of these views are used in the application.
Thanks,
Jyothi.

Jyothi,
Thanks for the example. Yes, the way these views are built are too complex for optimizers to come up with an optimized query plan.
Regards,
Geoff
Geoff,
Yes, most of these views are for queries. We have indexes on their underlying base tables, but still the performance is poor.
For example, there are views created as follows:
SELECT tody.SECURITY_ID,
tody.CLOSE_PRICE as PR_CURR, tody.CLOSE_DATE as DT_CURR,
t_1d.CLOSE_PRICE as PR_1D, t_1d.CLOSE_DATE as DT_1D,
t_2d.CLOSE_PRICE as PR_2D, t_2d.CLOSE_DATE as DT_2D,....
FROM
(select bpsv.SECURITY_ID, bpsv.CLOSE_PRICE, bpsv.CLOSE_DATE
from BASE_PRC_SC_VIEW bpsv where CLOSE_DATE = TRDG_DAY(NULL,0)) tody,
(select bpsv.SECURITY_ID, bpsv.CLOSE_PRICE, bpsv.CLOSE_DATE
from BASE_PRC_SC_VIEW bpsv where CLOSE_DATE = TRDG_DAY(NULL,-1)) t_1d,
(select bpsv.SECURITY_ID, bpsv.CLOSE_PRICE, bpsv.CLOSE_DATE
from BASE_PRC_SC_VIEW bpsv where CLOSE_DATE = TRDG_DAY(NULL,-2)) t_2d,....
WHERE tody.SECURITY_ID = t_1d.SECURITY_ID(+)
and tody.SECURITY_ID = t_2d.SECURITY_ID(+)
and tody.SECURITY_ID = t_3d.SECURITY_ID(+).....and this goes on for 124 columns!! I feel this way of coding is highly inefficient.
Plus, there are views that select 5 columns out of 9 columns from one table, without any filter condition. I would rather query 5 columns from the base table rather than run a 'select * from the view'.

Similar Messages

  • ALV view : Problem with user defined views

    Dear Experts,
    We are facing a problem pertaining to user defined views for a ALV table that we have in SAP eRecruiting application in webdynpro ABAP. The problem is as follows.
    There is a candidate application ABC & only ONE person can edit this at a time.In this application ABC there is a ALV table.
    If the user clicks on this application & navigates to the ALV,this ABC application is in normal/edit mode(no one else has opened this ). So, the user can make changes in ABC. In the ALV, he can click on the 'settings 'button and save the STANDARD view as his own user defined view(by adding or removing columns).
    If the user opens the application ABC in display mode(implying that someone else has alraedy opened ABC for editing), when i navigate to the same ALV,the user CANNOT see the views which were saved in the edit mode.Only the standard view is displayed. The user however has the option to again freshly save a view.
    The views created by a user for this ALV should be seen irrespective of the application being opened in normal or display mode.
    To add to the confusion, this problem is occuring only in some systems & not in others. There is atleast one system where the views are displayed correctly to the user.
    On debugging, the table wdy_conf_user has config ids as different where the user views are stored separately for display & edit mode.
    In systems where the user views are displayed correctly, the config id is one & the same ensuring that the user can see all his views irrespective of the mode of the application.
    Any thoughts on how we can rectify this?
    sorry for the long & tedious explanation
    Thanks in advance,
    Sowmya

    See
    michaels>  select xmlquery('declare function local:test_function($namecmp as xs:string?, $inputtype as xs:string?) as xs:string?      
                        return {$inputtype}
                     local:test_function("1","2")' returning content) o from dual
    Error at line 5
    ORA-19114: error during parsing the XQuery expression:
    LPX-00801: XQuery syntax error at '{'
    3                       return {$inputtype}
    -                              ^
    michaels>  select xmlquery('declare function local:test_function($namecmp as xs:string?, $inputtype as xs:string?) as xs:string?      
                        $inputtype
                     local:test_function("1","2")' returning content) o from dual
    O   
    2   
    1 row selected.

  • CM21/cm25 sorting of user defined field in table area

    Hallo,
    I implemeted the field MARC-MATGR in the table area of the CM21 with user exit CYPP0005 and now I'm trying to use the user exit CYPP0002 for sorting in order of this field like explained in oss note 605217.
    I implemented the coding like shown in the examples of the user exits but sorting is not workiing.
    By debugging the user exit I'm not shure where I can change the internal tables to get a result sorted by this "MARC-MATGR".
    Perhaps someone can help me giving me an hint how the user exit is working and what has to be changed ?
    Thanks a lot in advance,
    Volker

    Dear ,
    I have posted a similar kind of reply in one of the thread  which may help u defining the User Defined Tabel /Filed .Just check this Out :
    For cm25/CM21 : Assuming that you have all the other set up for Capacity Requirement in place , please note the belwo steps for layout design for CM25 OR cm21 or cm22( all you will be used same overall profile )
    1.Make sure that you have proper Overall profile defined in OPD0-Define Overall profile .Here u will define Time Profile , Startegy prfoile . Lay out Profile etc .
    2.To paint your layout your soultion is to Goto -CY38-Pop down the menu -Select the Lay out Key which have been used as lay out -Goto Change Mode (Pencil symbol)-Now you will find the fields are high ligheted as per CM25 dipaly in a sequnce -You can un chekcde the Filed like Operation , Operation text , Setup what ever you do not want to show in Order Pool and Hit SAVE butotn and come back .
    CM25 --> Settings --> Display Profiles --> Planning tab.profile --> I01 --> Layout ID ( Example : 'SAPSFCLA05') which is Main Capacity Lay out id .
    If you goto CY38-Pop down the menu -You will find Main Capcitity Lay out Id : Example SAPSFCAS01 -Enter this lay out and chenage accordingly as I have explained in above
    Once you save this , then go back to CM25 and execute with coupe of work centres to check how is the order pool looks now .
    Refer this threade for Layout Id and option which u may need for CM25 front end
    Exception messages in CM21 or CM25
    I hope this should work
    Regards

  • Access result set in user define type of table

    here is the situation. I have a stored procedure that dequeues messages of a AQ and passes them as an OUT parameter in a collection of a user defined type. The same type used to define the queues. The java code executes properly but seems like we don't/can't access the result set. We don't receive any erros but don't know how to access the results. I've included relevant parts of the problem.
    I know this should be doable but........Can someone please tell us what we are doing wrong....thanks in advance.
    -----create object type
    create type evt_ot as object(
    table_name varchar(40),
    table_data varchar(4000));
    ---create table of object types.
    create type msg_evt_table is table of evt_ot;
    ----create queue table with object type
    begin
    DBMS_AQADM.CREATE_QUEUE_TABLE (
    Queue_table => 'etlload.aq_qtt_text',
    Queue_payload_type => 'etlload.evt_ot');
    end;
    ---create queues.
    begin
    DBMS_AQADM.CREATE_QUEUE (
    Queue_name => 'etlload.aq_text_que',
    Queue_table => 'etlload.aq_qtt_text');
    end;
    Rem
    Rem Starting the queues and enable both enqueue and dequeue
    Rem
    EXECUTE DBMS_AQADM.START_QUEUE (Queue_name => 'etlload.aq_text_que');
    ----create procedure to dequeue an array and pass it OUT using msg_evt_table ---type collection.
    create or replace procedure test_aq_q (
    i_array_size in number ,
    o_array_size out number ,
    text1 out msg_evt_table) is
    begin
    DECLARE
    message_properties_array dbms_aq.message_properties_array_t :=
    dbms_aq.message_properties_array_t();
    msgid_array dbms_aq.msgid_array_t;
    dequeue_options dbms_aq.dequeue_options_t;
    message etlload.msg_evt_table;
    id pls_integer := 0;
    retval pls_integer := 0;
    total_retval pls_integer := 0;
    ctr number :=0;
    havedata boolean :=true;
    java_exp exception;
    no_messages exception;
    pragma EXCEPTION_INIT (java_exp, -24197);
    pragma exception_init (no_messages, -25228);
    BEGIN
    DBMS_OUTPUT.ENABLE (20000);
    dequeue_options.wait :=0;
    dequeue_options.correlation := 'event' ;
    id := i_array_size;
    -- Dequeue this message from AQ queue using DBMS_AQ package
    begin
    retval := dbms_aq.dequeue_array(
    queue_name => 'etlload.aq_text_que',
    dequeue_options => dequeue_options,
    array_size => id,
    message_properties_array => message_properties_array,
    payload_array => message,
    msgid_array => msgid_array);
    text1 := message;
    o_array_size := retval;
    EXCEPTION
    WHEN java_exp THEN
    dbms_output.put_line('exception information:');
    WHEN no_messages THEN
    havedata := false;
    o_array_size := 0;
    end;
    end;
    END;
    ----below is the java code....
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Struct;
    import oracle.jdbc.driver.OracleCallableStatement;
    import oracle.jdbc.driver.OracleTypes;
    public class TestOracleArray {
         private final String SQL = "{call etlload.test_aq_q(?,?,?)}";//array size, var name for return value, MessageEventTable
         private final String driverClass = "oracle.jdbc.driver.OracleDriver";
         private final String serverName = "OurServerName";
         private final String port = "1500";
         private final String sid = "OurSid";
         private final String userId = "OurUser";
         private final String pwd = "OurPwd";
         Connection conn = null;
         public static void main(String[] args){
              TestOracleArray toa = new TestOracleArray();
              try {
                   toa.go();
              } catch (InstantiationException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              } catch (IllegalAccessException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              } catch (ClassNotFoundException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              } catch (SQLException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
         private void go() throws InstantiationException, IllegalAccessException, ClassNotFoundException, SQLException{
              Class.forName(driverClass).newInstance();
              String url = "jdbc:oracle:thin:@"+serverName+":"+port+":"+sid;
              conn = DriverManager.getConnection(url,userId,pwd);
              OracleCallableStatement stmt = (OracleCallableStatement)conn.prepareCall(SQL);
              //set 1 input
              stmt.setInt(1, 50);
              //register out 1
              stmt.registerOutParameter(2, OracleTypes.NUMERIC);
              //register out 2
              stmt.registerOutParameter(3, OracleTypes.ARRAY, "MSG_EVT_TABLE");
              * This code returns a non-null ResultSet but there is no data in the ResultSet
              * ResultSet rs = stmt.executeQuery();
              * rs.close();
              * Tried all sorts of combinations of getXXXX(1);
              * All return the same error Message: Invalid column index
              * So it appears that the execute statment returns no data.
              stmt.execute();
              Struct myObject = (Struct)stmt.getObject(1);
              stmt.close();
              conn.close();
    }

    Hi,
    Sorry but I'd refer you to the following sections (and code samples/snippets) in my book:
    Mapping User-Defined Object Types (AD) to oracle.sql.STRUCT in section 3.3, shows how to pass user defined types as IN, OUT,IN/OUT
    JMS over Streams/AQ in the Database: shows how to consume AQ
    message paylod in section 4.2.4
    CorporateOnine, in section 17.2, show how to exchanges user defined type objects b/w AQ and JMS
    All these will hopefully help you achieve what you are trying to do.
    Kuassi

  • How to migrate sql server 2000 user defined function returns table

    Hi,
    How do I capture the SQL Server 200 user defined function that returns table? Is this supported in the current version of Oracle Migration Workbench? I am using the latest version - Release 9.2.0.1.0 with SQL SERVER 2000 plug-in.
    I was able to capture the SQL Server 2000 user defined function that returns string and smalldatetime but not the functions return table during the migrate data source stage.
    Thanks in Advance,
    Susan

    Susan,
    This is not currently supported. The next release of the Oracle Migration Workbench (due very soon), will do a better job of catching this mad reporting an error. We are looking into a suitable mapping and have created bug # 2355073 - TABLE DEFINITIONS NOT ACCEPTED FOR TABLE FUNCTIONS to track this issue.
    Once possible solution we are looking into is using the object type to emulate. Here is an example from the bug:
    Original table
    SQL> create table tabela (a number, b number, c number, d number);
    SQL> insert some values...
    SQL> select * from tabela;
    A B C D
    1 1 1 1
    2 2 2 2
    3 3 3 3
    4 4 4 4
    SQL Server 2000 code
    CREATE FUNCTION FUNCRETORNATABELA()
    RETURNS TABLE
    AS
    RETURN SELECT A,B,C,D FROM TABELA
    SELECT A,B,C,D
    FROM FUNCRETORNATABELA()
    ORDER BY A
    Oracle code (workaround)
    SQL> create or replace type MyObjType as object (
    2 a number, b number, c number, d number);
    3 /
    Type created.
    SQL> create or replace type MyTabType as table of MyObjType;
    2 /
    Type created.
    SQL> create or replace function teste return Mytabtype pipelined as
    2 aa MyObjType := MyObjType(null, null, null, null);
    3 cursor c1 is select a,b,c,d from tabela;
    4 begin
    5 open c1;
    6 loop
    7 fetch c1 into aa.a, aa.b, aa.c, aa.d;
    8 exit when c1%NOTFOUND;
    9 pipe row (aa);
    10 end loop;
    11 close c1;
    12 return;
    13 end;
    14 /
    Function created.
    SQL> select * from table(teste);
    A B C D
    1 1 1 1
    2 2 2 2
    3 3 3 3
    4 4 4 4
    SQL> select a, c from table(teste) order by c desc;
    A C
    4 4
    3 3
    2 2
    1 1
    Donal

  • User Defined Fields and Tables

    I am trying to create U defined fields and link it with a usr defined table. Whenevr i am trying to link its throwing error - Alphanumeric field size cannot be decreased.
    Also can anyone tell me how to create data entry form through user defined objects. Can it be done without involving sdk/programming

    First question, Your UDF length field is morethan 8, if you linking with UDT the length should be 8. if your UDF less then 8 e.g. 1-7. after you linking it the UDF length will be 8, it's because default length field in UDT ( Code(8), Name(30)).
    Second, yes it can, but on for simple requeirement, if Your requirement is complex, You need SDK.
    Step :
    - create UDT
    - Create UDF
    - Register  ( Tool >> User Defined Object >> Registration Wizard ) don't forget to tick Default Form.
    fyi, there 2 kind of UDO : Document and Master Data,  You should consider this.
    Rgds,

  • User Defined Fields & Tables Problem

    After the upgrade to B1 2007 and converting our database to 2005 compatibility as per the upgrade directions, we’re having some weird issues with our user defined fields and tables. 
    •     Our user defined fields that used to be alpha-numeric when set up in B1 are now in the database as nvarchar(MAX), even after updating the fields in the Manage User Defined Fields screen.  B1 is obviously not setting the right field information as per its interface.
    •     We’re can no longer add records to user defined tables through the B1 interface, though we can add them fine through SQL Server or an ODBC interface.  The error we are getting is
    [Microsoft][SQL Native Client][SQL Server]Conversion failed when converting the nvarchar value '-3 @PASSWORDS' to data type int. (CINF)
    .  I don’t understand where this problem is coming from because there isn’t even a data field that is an integer, so I don’t know what it’s trying to convert.

    Derek,
    I would suggest you post this question to SAP Support by creating a message.  Also search for any notes on this from https://websmp201.sap-ag.de/notes
    Suda

  • User Defined datatypes

    Hello,
    Is there any way we can make user defined datatypes in oracle as we do in Microsoft SQL / Sybase ASE.
    I tried using Abstract TYPE but using it changes the Select query. I need to migrate some Sybase code to Oracle and also need to implement the user defined datatypes for tables.
    Any clue on as to how I can create this in oracle.
    Regards
    Suchetan

    Thanks for your replies.
    Here is how we use UDD in sybase and also how the queries change when TYPE is used in Oracle.
    Eg:-
    ***************** Sybase **************************
    sp_addtype 'name10','varchar(10)'
    go
    Type added.
    (return status = 0)
    create table TEST
    usrname name10)
    go
    sp_help TEST
    go
    Name Owner
    Object_type
    TEST dbo
    user table
    (1 row affected)
    Data_located_on_segment When_created
    default Jan 17 2007 9:43AM
    Column_name Type Length Prec Scale Nulls Default_name
    Rule_name Access_Rule_name Identity
    usrname name10 10 NULL NULL 0 NULL
    NULL NULL 0
    (return status = 0)
    INSERT INTO TEST VALUES('SUC') /* Insert is like any table created without
    UDD */
    GO
    (1 row affected)
    SELECT usrname FROM TEST
    GO
    usrname
    SUC
    (1 row affected)
    ******************************** Sybase End ***********************
    ********************** ORACLE *******************************
    create or replace type name10
    ss object
    name10 varchar(10))
    Type created.
    create table test
    ( usrname name10)
    Table created.
    desc test
    Name Null? Type
    USRNAME NAME10
    INSERT INTO TEST VALUES('SUC')
    INSERT INTO TEST VALUES('SUC')
    ERROR at line 1:
    ORA-00932: inconsistent datatypes: expected SYSTEM.NAME10 got CHAR
    INSERT INTO TEST VALUES(NAME10('SUC'));
    1 row created.
    SELECT USRNAME FROM TEST
    USRNAME(NAME10)
    NAME10('SUC')
    SELECT USRNAME.NAME10 FROM TEST
    SELECT T.USRNAME.NAME10 FROM TEST T
    USRNAME.NA
    SUC
    ********************* ORACLE END **********************************
    Thanks
    Suchetan Shetty

  • Limited Logistics users and User Defined Fields - UDF

    The SAP "Overview of SAP Business One License User Types" shows, in the last section under General, that only Professional users have any access at all to User-defined fields and tables.
    This seems counterintuitive as these fields are usually set up for others to see and to use.
    What is the real scoop on this?
    Thank you,
    Sal

    Hi Sal,
    It only means Professional User License has unlimited usages of UDF & UDT including managing and defining them.
    To read the values and use them are available to all license types.
    Thanks,
    Gordon

  • Using user-defined transport recording routine with table maintenance view?

    Hi,
    I have  a table that is maintained through a maintenance view. I need to record the changes to a dedicated transport object (not TABU) with my own recording routine instead of teh standard recording routine.Could someone tell me which/how the events can be used to achieve this?
    Regards
    Rachana

    Hi Rajeev,
    I have changed TMG to choose the option - User defined routine. And I have created a new transport object in SOBJ for the table. Is this enough to record the object to the transport as the object i defined instead of TABU? Do I need to write some subroutine for any view event to achieve this? Do you mean to use the menu option to include the object to a request?
    I have a bigger problem where this view is actually part of a view cluster. Even in that case is teh above steps enough?
    Regards
    Rachana

  • Attach User define tables and view table need add to database into my add-o

    Hi there,
    I want to deploy an addon, there are User define tables and view table need add to database.
    I need some advice on some issues..
    1. Can I attach User define tables and view table need add to database into my addon.
    2. I wonder which chance is properly to add them, if add these user define objects in time of install and I can't get the enough information that connect to SQL server
    Thanks for any help.

    Hi Weerachai,
    Here's an example of how to create a user-defined table in code. My suggestion would be to check if it exists when your add-on starts up and then if not, create the tables, fields and objects.
    'User Table
        Private Sub CreateTable(ByVal sTable As String, ByVal sDescription As String, ByVal oObjectType As SAPbobsCOM.BoUTBTableType)
            Dim oUserTablesMD As SAPbobsCOM.UserTablesMD
            Dim iResult As Long
            Dim sMsg As String
            oUserTablesMD = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserTables)
            If Not oUserTablesMD.GetByKey(sTable) Then
                oUserTablesMD.TableName = sTable
                oUserTablesMD.TableDescription = sDescription
                oUserTablesMD.TableType = oObjectType
                iResult = oUserTablesMD.Add()
                If iResult <> 0 Then
                    oCompany.GetLastError(iResult, sMsg)
                    MessageBox.Show("Error Creating Table: " & sTable & " Error: " & sMsg)
                End If
            End If
            System.Runtime.InteropServices.Marshal.ReleaseComObject(oUserTablesMD)
        End Sub
    'User Field
        Private Sub CreateField(ByVal sTable As String, ByVal sName As String, ByVal sDescription As String, _
                                ByVal iSize As Integer, ByVal aFieldType As SAPbobsCOM.BoFieldTypes, _
                                ByVal aSubType As SAPbobsCOM.BoFldSubTypes, ByVal sLink As String, _
                                ByVal bMandatory As SAPbobsCOM.BoYesNoEnum)
            Dim oUserFieldsMD As SAPbobsCOM.UserFieldsMD
            Dim oTable As SAPbobsCOM.UserTable
            Dim iResult As Long
            Dim sMsg As String
            Dim i As Integer
            Dim x As Integer
            Dim bFound As Boolean = False
            Dim oField As SAPbobsCOM.Field
            oTable = oCompany.UserTables.Item(sTable)
            For i = 0 To oTable.UserFields.Fields.Count - 1
                oField = oTable.UserFields.Fields.Item(i)
                'MessageBox.Show(oField.Name)
                If oField.Name = "U_" & sName Then
                    bFound = True
                End If
            Next
            System.Runtime.InteropServices.Marshal.ReleaseComObject(oTable)
            If Not bFound Then
                oUserFieldsMD = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserFields)
                oUserFieldsMD.TableName = "@" & sTable
                oUserFieldsMD.Name = sName
                oUserFieldsMD.Description = sDescription
                oUserFieldsMD.Type = aFieldType
                If aFieldType = SAPbobsCOM.BoFieldTypes.db_Alpha Or aFieldType = SAPbobsCOM.BoFieldTypes.db_Numeric Then
                    oUserFieldsMD.EditSize = iSize
                Else
                    oUserFieldsMD.SubType = aSubType
                    oUserFieldsMD.Mandatory = bMandatory
                End If
                oUserFieldsMD.LinkedTable = sLink
                iResult = oUserFieldsMD.Add()
                If iResult <> 0 Then
                    oCompany.GetLastError(iResult, sMsg)
                    MessageBox.Show("Error Creating Field: " & sTable & "." & sName & " Error: " & sMsg)
                End If
                System.Runtime.InteropServices.Marshal.ReleaseComObject(oUserFieldsMD)
            End If
        End Sub
    If you want to create a View I think you would have to use the RecordSet object. This will ensure that you don't have to log in to the database again
    Hope it helps,
    Adele

  • View Object with User Defined Type input

    I am trying to use a View Object with a query that requires a user defined object as an input parameter.
    I have the query working with a PreparedStatement, but would like to use a View Object.
    When I use the PreparedStatement, I prepare the user defined type data like this:
    // get the data into an object array
    Object[] wSRecObjArr = wSRec.getObjectArray();
    // set up rec descriptor
    StructDescriptor WSRecDescriptor = StructDescriptor.createDescriptor("WS_REC",conn);
    // populate the record struct
    STRUCT wSRecStruct = new STRUCT(WSRecDescriptor,conn,wSRecObjArr);
    Then I can use this in the PreparedStatement like this:
    OraclePreparedStatement stat = null;
    ResultSet rs = null;
    stat = (OraclePreparedStatement)conn.prepareStatement("Select test_pkg.test_function(?) FROM DUAL");
    stat.setSTRUCT(1, wSRecStruct);
    rs = stat.executeQuery();
    I would like to do the same process with a View Object instead of the PreparedStatement.
    My question is "How do I create the input objects"?
    I obtain the View Object from the Application Module using findViewObject(). I don't actually have a connection object to pass into the StructDescriptor.createDescriptor method.
    I have tried just using Java Object Arrays (Object[]) to pass the data, but that gave an error:
    oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation.
    Any help or pointers are greatly appreciated.
    Thank you.
    Edited by: 942120 on May 1, 2013 8:45 AM
    Edited by: 942120 on May 1, 2013 8:46 AM
    Edited by: 942120 on May 1, 2013 9:05 AM
    Edited by: 942120 on May 1, 2013 9:06 AM

    Custom domains are the way to go.
    When I try to pass custom domains that represent my user defined types - it works.
    However, one of the functions requires a table of a user defined type be passed in.
    I tried creating a domain of the table type. It forces me to add a field during creation (in JDEV), so I tried adding a field of type Array of Element of the domain representing the user defined type.
    I populate the table by setting the field I created, but the table is empty in PL/SQL (TEST_TAB.COUNT = 0).
    I also tried passing the oracle.jbo.domain.Array object, but that produced an error:
    java.sql.SQLException: ORA-06553: PLS-306: wrong number or types of arguments in call
    I also tried passing Object[], but that produced an error:
    oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation.
    How do I properly create, and pass an domain that represents a table of a user defined type?
    When I use a OraclePreparedStatement, I can pass a oracle.sql.ARRAY using stat.setARRAY.
    Thank you for the help you have provided, and any future advice.
    JDEV 10.1.2.3
    JDBC 10.2.0.5
    Edited by: 942120 on May 13, 2013 7:13 AM
    Edited by: 942120 on May 13, 2013 7:16 AM

  • User defined F4 help on a table control field

    hi
               i m calling table maintenance view on click of a button on module pool screen . i have 1 column internal table which has the contents of help to be displayed on 1 of the fields in table control . how to code and where?
    i m using   CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    for user defined F4 help . but where exactly to code i  dont knw.please help.
    thank you.
    Ajantha.

    Hi,
    Inthe Module Pool Program, By Default the PROCESS BEFORE OUTPUT and PROCESS AFTER INPUT, at the same way we need to write the POV ...
    As same as we need to write the POV enent manuvally, what you writen the Event will be work in the Report but that does not work in the Module pool Program you need to write PROCESS ON VALUE REQUEST
    write as PROCESS ON VALUE REQUEST then under this write the Function module to call the F4 for that field
    The Code should be like
    PROCESS ON VALUE-REQUEST.
      FIELD <f> MODULE <mod>. --> " Double click it and write the Function module for this then the F4 help will come for this Field
    Look at the below link
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbaac935c111d1829f0000e829fbfe/content.htm
    Regards
    Sudheer

  • User defined Function in materlized view???

    Hi All:
    can we use user defined functions in materlized views. If anybody know about it. Please help me. Thanks
    Ali

    Here we go... (see how quick it was)...
    SQL> create or replace function myfunc(x in number) return number is
      2  begin
      3    return (x*2*3.14152);
      4  end;
      5  /
    Function created.
    SQL> create table a as select rownum x from dual connect by rownum <= 90;
    Table created.
    SQL> create materialized view as
      2
    SQL> create materialized view mv_a as
      2  select x, myfunc(x) as x_2pi from a;
    select x, myfunc(x) as x_2pi from a
    ERROR at line 2:
    ORA-12014: table 'A' does not contain a primary key constraint
    SQL> alter table a add primary key (x);
    Table altered.
    SQL> create materialized view mv_a as
      2  select x, myfunc(x) as x_2pi from a;
    Materialized view created.
    SQL> select * from mv_a;
             X      X_2PI
             1    6.28304
             2   12.56608
             3   18.84912
             4   25.13216
             5    31.4152
             6   37.69824
             7   43.98128
             8   50.26432
             9   56.54736
            10    62.8304
            11   69.11344
            12   75.39648
            13   81.67952
    etc.

  • Unifier Table name used for storing User-Defined Reports Information

    Hello Everyone,
    I am looking for the table name that stores all the User-Defined Reports information pertaining to report creation details. I want to create a dataview that will provides all the user-defined reports the system presently had on file.
    Does anyone know about the system auto-created table name for User Defined Reports. It might start with "sys_"
    Thanks

    For custom reports, you can find them through data views - "sys_custom_report". I am wondering why UDR tables were not included.
    The only effort left is manually copy pasting each name and information from Unifier on an Excel sheet. It will take a lot of time though. I will also log a SR meanwhile.
    Thanks everyone for your help.

Maybe you are looking for

  • LOGDUMP utility, more than one filter at a time

    I need to search in a trailfile for a specific transaction and would like to search for an update statement to table XYZ. When I issue the following commands, it only uses the filter for the update statement: Logdump 115 >filter clear Logdump 116 >op

  • How to write into generated HTML " " etc.?

    Hi! I use xmlparser_v2_0_2_6 for JAVA2 Solaris7. When I declare ENTITY as: <!ENTITY nbsp "#xA0;"> write into generated HTML symbol (code=#xA0), but I need " " string. Intuitivity I can declare ENTITY as: <!ENTITY nbsp "&nbsp;">, but it is not work. W

  • Windows 2008 R2 servers won't update manually or via WSUS - error code 80073712

    We have a number of Windows Server 2008 R2 servers which have been refusing majority of windows updates for a while now. Tried DSIM utility and SURT - both produce  errors in checksur.log, although different: DSIM- 4 * problems with IE hyphenation an

  • Are there any compatibility issues with Mavericks and EMC Celerra File shares, particularly with the SMB protocols?

    Our company uses a EMC Celerra file share, but most of our users are Windows based. We have a small production department of 7 macs. Starting with Snow Leopard, we noticed some issues with SMB. We were able to resolve those issues, but had to wait to

  • Blinking page

    My CS5.5 Dreamweaver has a problem. When I'm in design mode and typing in a page it blinks with every keystroke. I think I'm going to have convulsions if I don't get this fixed. What could be causing that?