Some DB objects like User-defined datatypes being missed out?

Dear all.
I create an Oracle model for a captured SQL Server model and then right click -> click on 'Generate' to create the DB creation script.
(1) But few objects like user-defined datatypes are missed out in the script.
(2) Also, a simple stored proc as defined below missed out:
CREATE PROCEDURE [SalesLT].[SayHi]
AS
SELECT 'Hi I am a job scheduler'
GO
Rgds, Abhi

Hello,
An OracleDI Dataserver connection to an RDBMS is, most of the time, defined with a single set of parameters: a user account name, a password and a URL.
OracleDI may need to access numerous tables on the RDBMS which may not all be stored in the same database schema, catalog, library, ...and for which access privileges may not be identical.
For this reason, it is necessary to ensure that the RDBMS user account has sufficient access privileges for these schema, catalog, librairies ...
The user account should have at least read/right access permission for any OracleDI Physical Schema referenced for the concerned Dataserver (depending on the project within which it is used, a Physical Schema may store both source and/or target tables).
Moreover, for project requirements, it may be necessary to use/create/drop certain RDBMS
components such as stored procedures, views, temporary tables, system tables ...
For this reason, make sure the user account referenced in the dataserver connection parameters is attributed sufficient privileges to any object it may manipulate with OracleDI.
2nd point: you can use any logical name for the data server Name.

Similar Messages

  • 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

  • OC4J and Oracle9i and user defined datatypes over SOAP.

    Does OC4J and Oracle9i, that comes with JDeveloper9i-rc, support user defined datatypes over SOAP?
    If I invoke the EJB over RMI it is working fine.
    But if I try to invoke it over SOAP I get this fault:
    500 Internal Server Error: Servlet error: Error building response envelope: java.lang.IllegalArgumentException: No Serializer found to serialize a 'mypackage.myObj' using encoding style 'http://schemas.xmlsoap.org/soap/encoding/'.
    I have written the Deployment descripter like this:
    <?xml version = '1.0'?>
    <isd:service
    id="urn:mypackage.EJB2"
    type="rpc"
    xmlns:isd=" " target="_new">http://xmlns.oracle.com/soap/2001/04/deploy/service"> <isd:provider
    id="stateless-ejb-provider"
    methods="getData"
    scope="Request">
    <isd:option key="JNDILocation" value="EJB2"/>
    <isd:option key="DeploymentName" value="EJB2"/>
    </isd:provider>
    <isd:faultListener class="org.apache.soap.server.DOMFaultListener"/>
    <isd:mappings>
    <isd:map
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding" xmlns:x="http://glo2158" qname="x:mypackage.myObj"
    javaType="mypackage.myObj"
    java2XMLClassName="org.apache.soap.encoding.soapenc.BeanSerializer"
    xml2JavaClassName="org.apache.soap.encoding.soapenc.BeanSerializer"/>
    </isd:mappings>
    </isd:service>

    AFAIK this is not possible with the Oracle 8i implementation. This is my main gripe about Oracle's so called objects - you can't define your own constructors, you can't put check constraints on them and you can't use them in triggers.
    In other words you can put any old scheisse in an object and you can't populate them with derived or default values.
    I'm on a 9i New Features course as I type and I'm hoping to hear that Oracle have added some features to objects that will make them worth using.
    regards, APC

  • User Defined datatypes dont work

    URGENT HELP REQUIRED! SOS!
    I had installed PO 8.0 on one of my machines, but when tried to create user defined datatypes, it says 'Object Type Not Enabled'. Does that mean we can ENABLE creation of user defined datatypes in PO 8.0? If so, please guide as to where i can find this option.
    Secondly, when I install Oracle 8.1.6 and forms6i on my Server (windows NT environment), I find that although tyopes can be defined in sql8.0, the same is shown as UNDEFINED in sql3.3. Is it a bug or am i missing out something? Please guide.
    Thanks, in anticipation!

    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

  • Help needed for User-Defined Datatype

    Hi All,
    I have one table which has User-defined Column Datatype.
    Now Client wants us to rename the User-Defined Datatype for some Standardization process.
    How to do rename of it, coz Rename old to new doesnt work in Oracle 10.2.0.4G for TYPES.
    So we re-created it with the new names. Now our Problem is how do i re-assign the column datatype with the New User-Defined DataType.
    Regards,
    Prathamesh

    The Only Solution that i could found was - Create a new column with new User-Defined Datatype, copy the old column values to New Column, then drop the old column and rename the new Column to Old Column
    ORA-22859:     invalid modification of columns
    Cause:     An attempt was made to modify an object, REF, VARRAY, nested table, or LOB column type.
    Action:     Create a new column of the desired type and copy the current column data to the new type using the appropriate type constructor.

  • How can 1 make an object of user defined class immutable?

    Hi All,
    How can one make an object of user defined class immutable?
    Whats the implementation logic with strings as immutable?
    Regards,

    Hi All,
    How can one make an object of user defined class
    immutable?The simple answer is you can't. That is, you can't make the object itself immutable, but what you can do is make a wrapper so that the client never sees the object to begin with.
    A classic example of a mutable class:
    class MutableX {
        private String name = "None";
        public String getName() {
            return name;
        public void setName(String name) {
            this.name = name;
    }I don't think it's possible to make this immutable, but you can create a wrapper that is:
    class ImmutableX {
        private final MutableX wrappedInstance;
        public ImmutableX (String name) {
            wrappedInstance = new MutableX();
            wrappedInstance.setName(name);
        public String getName() {
            return wrappedInstance.getName();
        // Don't give them a way to set the name and never expose wrappedInstance.
    }Of course, if you're asking how you can make your own class immutable then the simple answer is to not make any public or protected methods that can mutate it and don't expose any mutable members.
    Whats the implementation logic with strings as
    immutable?
    Regards,I don't understand the question.

  • How to Use Sequence Object Inside User-defined Function In SQL Server

    I'm trying to call sequence object inside SQL Server user-defined function. I used 
    Next Value for dbo.mySequence  to call the next value for my sequence created. But I'm getting an error like below.
    "NEXT VALUE FOR function is not allowed in check constraints, default objects, computed columns, views, user-defined functions, user-defined aggregates, user-defined table types, sub-queries, common table expressions, or derived tables."
    Is there any standard way to call sequence inside a function?
    I would really appreciate your response.
    Thanks!

    The NEXT
    VALUE FOR function cannot be used for User Defined function. It's one of the limitation.
    https://msdn.microsoft.com/en-us/library/ff878370.aspx
    What are you trying to do? Can you give us an example and required output?
    --Prashanth

  • 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

  • How to convert Oracle User defined datatype to SQL Server 2014 using SSMA Version 6.0

    I am trying to convert Oracle 11g OE schema to SQL Server 2014, using SSMA version 6.0
    Getting an error in converting the Oracle View to SQL Server
    CREATE OR REPLACE VIEW OC_CUSTOMERS OF OE.CUSTOMER_TYP WITH OBJECT IDENTIFIER (customer_id) AS
    SELECT c.customer_id, c.cust_first_name, c.cust_last_name, c.cust_address,
               c.phone_numbers,c.nls_language,c.nls_territory,c.credit_limit,
               c.cust_email,
               CAST(MULTISET(SELECT o.order_id, o.order_mode,
                                   MAKE_REF(oc_customers,o.customer_id),
                                   o.order_status,
                                   o.order_total,o.sales_rep_id,
                                   CAST(MULTISET(SELECT l.order_id,l.line_item_id,
    l.unit_price,l.quantity,
    MAKE_REF(oc_product_information,
    l.product_id)
    FROM order_items l
    WHERE o.order_id = l.order_id)
                                        AS order_item_list_typ)
                             FROM orders o
                             WHERE c.customer_id = o.customer_id)
                    AS order_list_typ)
         FROM customers c
    *   SSMA error messages:
    *   O2SS0461: Conversion of object view is not supported.
    *   OF OE.CUSTOMER_TYP
    *      WITH OBJECT IDENTIFIER (customer_id)
    CREATE VIEW dbo.OC_CUSTOMERS
    AS
       /*Generated by SQL Server Migration Assistant for Oracle version 6.0.0.*/
       *   SSMA error messages:
       *   O2SS0481: Conversion of statement containing user defined type column 'c.cust_address' not supported.
       *   O2SS0481: Conversion of statement containing user defined type column 'c.phone_numbers' not supported.
       *   O2SS0430: Conversion of multiset conditions is not supported.
       *   CAST(MULTISET
       *      SELECT
       *         o.order_id,
       *         o.order_mode,
       *         MAKE_REF(oc_customers, o.customer_id),
       *         o.order_status,
       *         o.order_total,
       *         o.sales_rep_id,
       *         CAST(MULTISET
       *               SELECT
       *                  l.order_id,
       *                  l.line_item_id,
       *                  l.unit_price,
       *                  l.quantity,
       *                  MAKE_REF(oc_product_information, l.product_id)
       *               FROM order_items  l
       *               WHERE o.order_id = l.order_id
       *            ) AS order_item_list_typ)
       *      FROM orders  o
       *      WHERE c.customer_id = o.customer_id
       *   ) AS order_list_typ)
       SELECT
          c.CUSTOMER_ID,
          c.CUST_FIRST_NAME,
          c.CUST_LAST_NAME,
          c.cust_address,
          c.phone_numbers,
          c.NLS_LANGUAGE,
          c.NLS_TERRITORY,
          c.CREDIT_LIMIT,
          c.CUST_EMAIL,
          NULL
       FROM dbo.CUSTOMERS  AS c   */
    Any suggestion on converting this view would be helpful.
    Kind regards.

    Thanks Lydia Zhang for your reference urls.
    Please let me know if you come across any reference articles related to
    Creating a SQL Server table and View with columns as SQL Server TVP similar to Oracle UDT like
      CREATE TABLE "OE"."CUSTOMERS"
       (    "CUSTOMER_ID" NUMBER(6,0),
        "CUST_FIRST_NAME" VARCHAR2(20 BYTE) CONSTRAINT "CUST_FNAME_NN" NOT NULL ENABLE,
        "CUST_LAST_NAME" VARCHAR2(20 BYTE) CONSTRAINT "CUST_LNAME_NN" NOT NULL ENABLE,
        "CUST_ADDRESS" "OE"."CUST_ADDRESS_TYP" ,
        "PHONE_NUMBERS" "OE"."PHONE_LIST_TYP" ,
        "NLS_LANGUAGE" VARCHAR2(3 BYTE),
    And also creating a SQL Server TVP inside an another SQL Server TVP as in Oracle
    create or replace TYPE customer_typ
     AS OBJECT
        ( customer_id        NUMBER(6)
        , cust_first_name    VARCHAR2(20)
        , cust_last_name     VARCHAR2(20)
        , cust_address       cust_address_typ
       , credit_limit       NUMBER(9,2)
        , cust_email         VARCHAR2(30)
        , cust_orders        order_list_typ
    NOT FINAL;
    Kind regards.
    Venkatesha

  • Dynamic webservice client for User-defined datatypes

    Hi All,
    I have a webservices with user-defined datat types. I want to write a dynamic client that will work even if there are any changes in the wsdl, so that I do not want to recompile the client or make any changes on the client side.
    I tried using DII but we need to modify the custome objects and recompile the same. Suggest me any alternative.
    Regards,
    Sanjay

    Rob, unfortunately not. If I ever come across the solution, I will post it here.
    The reason I wanted to use weblogic webservices was to take advantage of the asynchronous webservice functionality. I ended up using xfire instead for my webservices, as we already had that in place in the application, and then using polling clients to get the response. Not an ideal solution, but it works very good anyway.
    regards,
    Marcus

  • Object to user defined object

    I pushed user defined objects in to the Vector or Stack.
    But they return an java defined Object type when I try to use them.
    Is there way that I can convert this Object into my defined object.
    MyClass a;
    MyClass b;
    Stack table = new Stack();
    table.push(a);
    table.push(b);
    //now when i use pop to get it back it returns an Object type
    Object temp = table.pop();
    //how do I change this object into MyClass so i can have access to MyClass stuff?

    dam..thank you so much I feel stupid..Don't.
    Casting is one of those things that can take a while to get used to.
    In your original post, you asked: how do I change this object into MyClass so i can have access to MyClass stuff?
    It's important that you understand that casting doesn't change the object in any way.
    All it does is cause a reference that's been declared as one type to be treated as a different type. So even though all the compiler knows about what's returned from pop() is that it refers to an Object, you're telling it you know better, and that the object pointed at will in fact be a MyClass, and so you can access MyClass' members.
    If, at runtime, the object you happen to pop off the stack isn't a MyClass, casting won't magically turn it into one. You'll get a ClassCastException.

  • User defined rule for missing triples

    Hi,
    i would like to know if there is a way to define a user defined rule for triples that are not contained in a model. With curly brace syntax it could be something like this:
    INSERT INTO mdsys.semr_validation_rb VALUES(
    'test_rule',
    '{?s ?p ?o. OPTIONAL{?s rdf:type ?t}}',
    't is null',
    '(?s <hasType> "false")',
    null);
    Unfortunately this is not working. Has anybody a suggestion to solve this problem with user defined rules?

    Hi,
    This is related to the following post.
    built-in primitives(noValue,remove) for user defined rules
    Note that there is something you need to pay a bit attention to.
    Say your original graph contains
    :John :fatherOf :Mary
    but not any type classification for :John (i.e. no match for {:John rdf:type ?t})
    Assume you add the following triple according to the rule you described
    (:John <hasType> "false")
    Now, what happens if :John is classified as a :Person (or :Parent, :Father),
    do you want to withdraw* :John <hasType> "false"?
    Thanks,
    Zhe

  • Java Objects for Oracle datatypeJava Objects for Oracle user-defined datatype

    I'm trying to create a Java object that maps to VARRAY of numbers.
    I created a type "NUMARRAY" which is a varray of numbers.
    I also created a type "NUMCOLLECTION" which is an object and contains "NUMARRAY"
    The plan was to create the java object to map to numcollection. My question is can I map a java type directly to the NUMARRAY type, or must it map to an object? (here I'm referring to 'CREATE TYPE NUMARRAY AS VARRAY" or "CREATE TYPE NUMCOLLECTION AS OBJECT" in sql.
    Also, if I do need to write java objects for both types? And if I do, do both need to implement SQLData?
    I'm trying to create a Java object that maps to VARRAY of numbers.
    I created a type "NUMARRAY" which is a varray of numbers.
    I also created a type "NUMCOLLECTION" which is an object and contains "NUMARRAY"
    The plan was to create the java object to map to numcollection. My question is can I map a java type directly to the NUMARRAY type, or must it map to an object? (here I'm referring to 'CREATE TYPE NUMARRAY AS VARRAY" or "CREATE TYPE NUMCOLLECTION AS OBJECT" in sql.
    Also, if I do need to write java objects for both types? And if I do, do both need to implement SQLData?
    Does anyone have an example? Your expertise would be much appreciated.
    Thanks,
    Roxanne
    null

    Hi Roxanne,
    I have the same problem if you get an idea or answer..I have a problem in updating and inserting in Varray datatype from java object of Objects (arraylist)..
    please mail me
    [email protected]
    Bye
    I created a type "NUMARRAY" which is a varray of numbers.
    I also created a type "NUMCOLLECTION" which is an object and contains "NUMARRAY"
    The plan was to create the java object to map to numcollection. My question is can I map a java type directly to the NUMARRAY type, or must it map to an object? (here I'm referring to 'CREATE TYPE NUMARRAY AS VARRAY" or "CREATE TYPE NUMCOLLECTION AS OBJECT" in sql.
    Also, if I do need to write java objects for both types? And if I do, do both need to implement SQLData?
    I'm trying to create a Java object that maps to VARRAY of numbers.
    I created a type "NUMARRAY" which is a varray of numbers.
    I also created a type "NUMCOLLECTION" which is an object and contains "NUMARRAY"
    The plan was to create the java object to map to numcollection. My question is can I map a java type directly to the NUMARRAY type, or must it map to an object? (here I'm referring to 'CREATE TYPE NUMARRAY AS VARRAY" or "CREATE TYPE NUMCOLLECTION AS OBJECT" in sql.
    Also, if I do need to write java objects for both types? And if I do, do both need to implement SQLData?
    Does anyone have an example? Your expertise would be much appreciated.
    Thanks,
    Roxanne
    null

  • Accessing user defined datatype in smartforms

    I have created type group named “zkttp”. In that I have created a data type named zkttp_ty_sflight. I did include that in my smartform “zrkt_sform_saplane”. But it is showing error. This I am trying because I don’t want to send all fields of sflight table in smartform. is this the right way? in smartform i have defined internal table with like as the the above datatype. still it is giving error as "TYPE ZKTTP_TY_SFLIGHT NOT ALLOWED IN THIS CONTEXT".

    Ruby,
    obviously there is no official way to use type-pools in SMARTFORMS, I assume what you created as type group is what you include in ABAP programs as TYPE-POOLS ZKTTP_TY_SFLIGHT.
    If you put this statement inside a FORM, you can use the included types locally.
    Yo don't need to define anything what is existing. In the SMARTFORMS TYPES section, you may define your own type as
    TYPES:
    begin of zkttp_ty_sflight,
      end of zkttp_ty_sflight.
    Then You can use it.
    Regards,
    Clemens

  • User-defined datatypes as IN variables in stored procedures

    Hello,
    I'm trying to write a stored procedure which will accept a custom data type as an IN variable. Using the information here: http://download.oracle.com/docs/cd/B10501_01/appdev.920/a96624/05_colls.htm I've set up a procedure which looks like this:
    CREATE OR REPLACE PROCEDURE EDEPOSIT.merch_acct_proc_method_insert
         arg_ALL_PROC_METHODS          IN proc_array
    IS
         TYPE proc_array IS TABLE OF VARCHAR2 INDEX BY VARCHAR2;
    BEGIN
         arg_METHOD := arg_ALL_PROC_METHODS.first;
         while (arg_METHOD is not null)
         loop
              --processing code
         end loop;
    END;
    but I'm running into a problem where it seems that the data type needs to be defined before the parameters block (Error(3,27): PLS-00201: identifier 'PROC_ARRAY' must be declared), but a DECLARE block won't co-exist with the CREATE OR REPLACE command (PLS-00103: Encountered the symbol "CREATE" when expecting one of the following: begin function pragma procedure subtype type <an identifier>).
    What am I missing?
    Thanks in advance!

    Hi,
    Welcome to the forum!
    877369 wrote:
    ... CREATE OR REPLACE PROCEDURE EDEPOSIT.merch_acct_proc_method_insert
         arg_ALL_PROC_METHODS          IN proc_array
    IS
         TYPE proc_array IS TABLE OF VARCHAR2 INDEX BY VARCHAR2;
    BEGIN
         arg_METHOD := arg_ALL_PROC_METHODS.first;
         while (arg_METHOD is not null)
         loop
              --processing code
         end loop;
    END;
    but I'm running into a problem where it seems that the data type needs to be defined before the parameters block (Error(3,27): PLS-00201: identifier 'PROC_ARRAY' must be declared), but a DECLARE block won't co-exist with the CREATE OR REPLACE command (PLS-00103: Encountered the symbol "CREATE" when expecting one of the following: begin function pragma procedure subtype type <an identifier>).I'm not sure what you mean by "parameters block".
    Whoever is going to call the procedure will have to create a proc_array first. If proc_array is defined inside the procedure, then it can't be referenced from outside the procedure.
    A common way to define types is to do so in a package. Procedures normally belong to pacages anyway. You can define a TYPE and a procedure that uses it in the same package, like this:
    CREATE OR REPLACE PACKAGE     merch_acct_pkg
    AS
    TYPE proc_array IS TABLE OF VARCHAR2 (30) INDEX BY VARCHAR2 (30);
    PROCEDURE merch_acct_proc_method_insert
         arg_ALL_PROC_METHODS     IN     proc_array
    END     merch_acct_pkg;
    SHOW ERRORS
    CREATE OR REPLACE PACKAGE BODY     merch_acct_pkg
    AS
    PROCEDURE merch_acct_proc_method_insert
    arg_ALL_PROC_METHODS IN proc_array
    IS
    BEGIN
         arg_METHOD := arg_ALL_PROC_METHODS.first;
         while (arg_METHOD is not null)
         loop
              --processing code
         end loop;
         dbms_output.put_line ('Hello');
    END     merch_acct_proc_method_insert;
    END     merch_acct_pkg;
    SHOW ERRORSYou can call the procedure like this:DECLARE
         foo     merch_acct_pkg.proc_array;
    BEGIN
         merch_acct_pkg.merch_acct_proc_method_insert (foo);
    END;
    /

Maybe you are looking for

  • Dynamic action on text box change does not working

    i have a page with following components. a report that has and edit link. a text box to catch the primary key from report link when it is clicked a number of elements (text boxes, check boxes and LOVs) which are used as data entry form. Now my design

  • How can i update my new iphone with the data from my old iphone?

    I recently bought an iphone 3GS after my iphone 4 was stolen but when i try to sync the new phone it says the software is out of date. (when i was telling the guy at the apple store about my phone being stolen he said when you get a new phone just sy

  • Payment currency in the APP

    Hi We have a below requirement, please suggest me how can i proceede the requirement. We have multiple vendor invoice with different currencies and my client want to run the APP for open items but they asking to control the each bank with particular

  • HP Photosmart C7280 All in One - not printing

    have replaced black & cyan cartridges but still get printer message saying Out of Ink. Have restarted printer and computer, downloaded printer driver, unplugged and reconnected.  Control Panel shows cartridges all have ink, but still get Out of Ink i

  • Change default port used for FlexUnit reports

    Good day, I have recently set up a CruiseControl server that runs two concurrent builds. Most of these builds contain FlexUnit tests. I am well aware that the default port for FlexUnit task is 1024 and I know that only one listener can access the por