Help Creating Types

Hello,
Hopefully I can explain this clearly.
I am using data pump import to bring several source databases into different schemas in one new database. The source databases are extracts at different times from a seperate production database and I am encountering errors as follows -
ORA-39083: Object type TYPE failed to create with error:
ORA-02304: invalid object identifier literal
Failing sql is:
CREATE TYPE "F10BANINST1"."DATE_NT" OID 'DEEC3F961E7C4CB1E0340003BA29B58F' as
table of DATE;
This makes sense as the types existed under one schema in the original database and the OIDs are present as they were imported into the first schema I created. What I need to do is create these types in each of the schemas I have created in the new database. I am not sure how best to do this. Apparently I am not able to do something like the following -
SQL> copy type schema2.TYPE from schema1.TYPE;
What I would like to do is pull the DDL from the source database into a create statement of the form -
SQL> create type schema2.type as.....
and I am not sure how to do this. I need to be certain I get the type body as well. Can someone help me do this please.
Thank you.
Bill Wagman

The OID of the object/collection type must be unique across all schemas. So trying to re-create the type in multiple schemas with the same OID will not work. You will need to choose a new OID for each schema's version of the type.
However, the obvious question is: why not create a single instance of the type, and grant privileges (EXECUTE and UNDER) to use/extend it to the other schemas?
Gerard

Similar Messages

  • Help using a created type

    Anyone,
    I started by creating a typelike this:
    create type NUMS_TYP as object (nums number);
    That seemed to work fine. Now I'm trying to use that type in a PL/SQL procedure like this:
    FOR z IN (select empno from emp)
    LOOP
    IF z.empno IS OF (NUMS_TYP) THEN
    htp.p ('NUMBER');
    ELSE
    htp.p('STRING');
    END IF;
    END LOOP;
    I keep getting - PLS-00382: expression is of wrong type. Can anyone help?
    Thanks,
    Kirk

    hi,
    there is problem when you passing null plsql can't recognize type for null the workaround for it is just using explicit converstion
    consider following
    i use generic object - anydata in my OO api
    CREATE OR REPLACE TYPE "IAS_ANYDATA"
    as object
    val_c varchar2(32000)
    ,val_n number
    ,val_d date
    ,old$val_c varchar2(32000)
    ,old$val_n number
    ,old$val_d date
    ,type varchar2(1)
    ,name varchar2(30)
    ,ind number
    -- Attributes
    -- Member functions and procedures
    ,CONSTRUCTOR function ias_anydata(val varchar2 default null) return self as result
    ,CONSTRUCTOR function ias_anydata(val number) return self as result
    ,CONSTRUCTOR function ias_anydata(val date) return self as result
    ,CONSTRUCTOR function ias_anydata(name varchar2, val varchar2, old$val varchar2) return self as result
    ,CONSTRUCTOR function ias_anydata(name varchar2, val number, old$val number) return self as result
    ,CONSTRUCTOR function ias_anydata(name varchar2, val date, old$val date) return self as result
    ,CONSTRUCTOR function ias_anydata(name varchar2, val varchar2) return self as result
    ,CONSTRUCTOR function ias_anydata(name varchar2, val number) return self as result
    ,CONSTRUCTOR function ias_anydata(name varchar2, val date) return self as result
    ,member function to_string return varchar2
    ,member procedure check_ind
    ,member function isNull return boolean
    ,member function isTrue(Bool_ind varchar2 default 'Y' ) return boolean
    ) not final
    what will happen if i call following
    z:=null;
    o = ias_anydata( 'col1', z ); -- object of string becuse of default is null for varchar
    o = ias_anydata( 'col1',to_date( z ) ); -- object of date
    o = ias_anydata( 'col1',to_number( z ) ); -- object of number
    Message was edited by:
    [email protected]

  • I need Fusion help creating a demo of BRM JCA Resource Adapter

    I need Fusion help creating a demo of BRM JCA Resource Adapter.
    I know BRM well but am clueless with Fusion.
    I am trying to figure out what Fusion products to download and install and how I manipulate the Fusion side to manipulate BRM.
    My BRM docs say:
    Installing the BRM JCA Resource Adapter ->
    Software requirements
    (yada yada install a bunch of BRM stuff I know how to do)
    The adapter must be deployed on a J2EE 1.4-compliant application server that has implemented the JCA 1.5 specification. The adapter runs only in a managed environment. (Does this imply some particular Fusion package?)
    (more yada yada about installing more BRM packages I know how to do)
    Deploying and configuring the BRM JCA Resource Adapter ->
    Overview of the BRM JCA Resource Adapter configuration procedure
    The procedure for setting up the BRM JCA Resource Adapter includes the following tasks:
    Installing the adapter on your BRM system, if you have not already done so. See Installing the BRM JCA Resource Adapter.
    Generating the schema files for the adapter. See Generating the schema files for your system. (links to some BRM commands np)
    Specifying how to construct XML tags. See Specifying the XML tags for extended fields. (links to an oob file included with directions on how to address BRM customizations np)
    Generating the WSDL files for the adapter. See Generating the WSDL files for your system. (links to an oob file with directions to configure. I could use some help if/when I get this far)
    The last two look pretty important but I haven't a clue. I pasted the text from the docs below.
    Deploying the adapter on your application server. See Deploying the BRM JCA Resource Adapter on an Oracle application server.
    Connecting the adapter to the BRM software. See Connecting the adapter to BRM in Oracle AS.
    Deploying the BRM JCA Resource Adapter on an Oracle application server
    The adapter is dependent on Java Archive (JAR) files to deploy properly. The following table lists the JAR files that the adapter requires from each application in your system.
    Application
    JAR files
    J2EE application server
    classes12.jar, connector15.jar, and jta.jar
    Oracle BPEL process
    bpm-infra.jar, orabpel-thirdparty.jar, orabpel.jar, and xmlparserv2.jar
    BRM J2EE Resource Adapter
    pcm.jar and pcmext.jar
    Apache
    xercesImpl.jar
    If you are deploying the adapter in a standalone Oracle Containers for Java EE (OC4J) instance, make sure these JAR files are available to the class loader that is loading the adapter.
    If you are deploying the adapter by using Oracle SOA Suite, these JAR files are available as part of the oracle.bpel.common code source. You import these libraries as follows:
    Open the Oracle_home/j2ee/Instance/config/applications.xml configuration file for the J2EE instance.
    Add the oracle.bpel.common entry (shown in bold below) to the imported-shared-libraries section of the file:
    <imported-shared-libraries>
    <import-shared-library name="adf.oracle.domain"/>
    <import-shared-library name="oracle.bpel.common"/>
    </imported-shared-libraries>
    Save and close the file.
    Restart the application server or the J2EE instance.
    After you make the JAR files available, deploy the adapter on the Oracle application server by using either the Oracle Application Server (Oracle AS) Application Server Control (ASC) or the Oracle admintool.jar file. Copy the adapter archive file (BRM_home/apps/brm_integrations/jca_adapter/OracleBRMJCA15Adapter.rar) from the installation directory to a location that is accessible to the adapter deployment tool. You can then open and deploy the archive file on your application server.
    After successful deployment, return the applications.xml file to its original settings and add the oracle.bpel.common codesource to the BRM Adapter oc4j-ra.xml file:
    Open the Oracle_home/j2ee/Instance/config/applications.xml configuration file for the J2EE instance.
    Remove the following oracle.bpel.common entry (shown in bold below):
    <imported-shared-libraries>
    <import-shared-library name="adf.oracle.domain"/>
    <import-shared-library name="oracle.bpel.common"/>
    </imported-shared-libraries>
    Save and close the file.
    Open the JCA Resource Adapter oc4j-ra.xml file from the Oracle_home/j2ee/Instance/application-deployments/default/BRMAdapterDeploymentName directory.
    Add the oracle.bpel.common entry (shown in bold below) to the oc4j-connector-factories section of the file:
    <oc4j-connector-factories...>
    <imported-shared-libraries>
    <import-shared-library name="oracle.bpel.common"/>
    </imported-shared-libraries>
    <oc4j-connector-factories>
    Save and close the file.
    Restart the application server or the J2EE instance.
    For more information about deploying the adapter, see your application server’s documentation.
    Connecting the adapter to BRM in Oracle AS
    You connect the adapter to the BRM software by creating connection pools and connection factories. As part of the adapter deployment, the application server creates oc4j-ra.xml from the packaged ra.xml. The ra.xml file is located in the Oracle_home/j2ee/Instance/connectors/AdapterDeploymentName/AdapterDeploymentName/META-INF directory. For example, Oracle_home/j2ee/home/connectors/BRMAdapter/BRMAdapter/META-INF/ra.xml.
    Use the resource adapter home page from the Oracle AS ASC page to create connection pools and connection factories.
    Create your connection pool by following the performance and tuning guidelines in Configuring Connection Pooling in OC4J in Oracle Containers for J2EE Resource Adapter Administrator's Guide. See download.oracle.com/docs/cd/B31017_01/web.1013/b28956/conncont.htm.
    Make sure you set the pool’s Maximum Connections parameter (maxConnections XML entity) equal to or greater than the Oracle BPEL process manager’s dspMaxThreads parameter. For more information, see Oracle BPEL Process Manager Performance Tuning in Oracle Application Server Performance Guide for 10g Release 3 (10.1.3.1.0) at download.oracle.com/docs/cd/B31017_01/core.1013/b28942/tuning_bpel.htm.
    Note To set up JCA Resource Adapter transaction management in BPEL, you must create a private connection pool and set its Inactive Connection Timeout property (inactivity-timeout XML entity) to 0. See About JCA Resource Adapter transaction management in BPEL for more information.
    Create as many connection factories as your system needs. For each connection factory, specify the following:
    The JNDI location for the connection factory.
    The connection pool to use.
    How to connect to BRM by using these entries:
    Entry
    Description
    ConnectionString
    Specify the protocol, host name, and port number for connecting to the BRM software. For example: ip Server1 12006.
    DBNumber
    Specify the database number for the BRM database. For example, enter 1 or 0.0.0.1 for database 0.0.0.1.
    InputValidation
    Specifies whether to validate the input XMLRecord:
    True — The adapter validates the input XMLRecord against the opcode schema.
    False — The adapter does not validate the input XMLRecord.
    The default is False.
    This overrides any other validation parameter specified in the WSDL file.
    OutputValidation
    Specifies whether to validate the output XMLRecord:
    True — The adapter validates the output XMLRecord against the opcode schema.
    False — The adapter does not validate the output XMLRecord.
    The default is False.
    This overrides any other validation parameter specified in the WSDL file.
    LoginType
    Specifies the authentication method:
    1 — The adapter logs in to BRM by using the specified login name and password.
    0 — The adapter logs in to BRM by using the specified service type and POID ID.
    The default is 1.
    UserName
    Specifies the login name the adapter uses for logging in to the BRM software.
    Note This entry is required only if LoginType is set to 1.
    Password
    Specify the password the adapter uses for logging in to the BRM software.
    Note This entry is required only if LoginType is set to 1.
    PoidID
    Specifies the POID ID. This entry should be set to 1.
    ServiceType
    Specifies the service the adapter uses to log in to the BRM software.
    The default is /service/pcm_client.
    You have successfully configured the adapter to connect to BRM.

    I need Fusion help creating a demo of BRM JCA Resource Adapter.
    I know BRM well but am clueless with Fusion.
    I am trying to figure out what Fusion products to download and install and how I manipulate the Fusion side to manipulate BRM.
    My BRM docs say:
    Installing the BRM JCA Resource Adapter ->
    Software requirements
    (yada yada install a bunch of BRM stuff I know how to do)
    The adapter must be deployed on a J2EE 1.4-compliant application server that has implemented the JCA 1.5 specification. The adapter runs only in a managed environment. (Does this imply some particular Fusion package?)
    (more yada yada about installing more BRM packages I know how to do)
    Deploying and configuring the BRM JCA Resource Adapter ->
    Overview of the BRM JCA Resource Adapter configuration procedure
    The procedure for setting up the BRM JCA Resource Adapter includes the following tasks:
    Installing the adapter on your BRM system, if you have not already done so. See Installing the BRM JCA Resource Adapter.
    Generating the schema files for the adapter. See Generating the schema files for your system. (links to some BRM commands np)
    Specifying how to construct XML tags. See Specifying the XML tags for extended fields. (links to an oob file included with directions on how to address BRM customizations np)
    Generating the WSDL files for the adapter. See Generating the WSDL files for your system. (links to an oob file with directions to configure. I could use some help if/when I get this far)
    The last two look pretty important but I haven't a clue. I pasted the text from the docs below.
    Deploying the adapter on your application server. See Deploying the BRM JCA Resource Adapter on an Oracle application server.
    Connecting the adapter to the BRM software. See Connecting the adapter to BRM in Oracle AS.
    Deploying the BRM JCA Resource Adapter on an Oracle application server
    The adapter is dependent on Java Archive (JAR) files to deploy properly. The following table lists the JAR files that the adapter requires from each application in your system.
    Application
    JAR files
    J2EE application server
    classes12.jar, connector15.jar, and jta.jar
    Oracle BPEL process
    bpm-infra.jar, orabpel-thirdparty.jar, orabpel.jar, and xmlparserv2.jar
    BRM J2EE Resource Adapter
    pcm.jar and pcmext.jar
    Apache
    xercesImpl.jar
    If you are deploying the adapter in a standalone Oracle Containers for Java EE (OC4J) instance, make sure these JAR files are available to the class loader that is loading the adapter.
    If you are deploying the adapter by using Oracle SOA Suite, these JAR files are available as part of the oracle.bpel.common code source. You import these libraries as follows:
    Open the Oracle_home/j2ee/Instance/config/applications.xml configuration file for the J2EE instance.
    Add the oracle.bpel.common entry (shown in bold below) to the imported-shared-libraries section of the file:
    <imported-shared-libraries>
    <import-shared-library name="adf.oracle.domain"/>
    <import-shared-library name="oracle.bpel.common"/>
    </imported-shared-libraries>
    Save and close the file.
    Restart the application server or the J2EE instance.
    After you make the JAR files available, deploy the adapter on the Oracle application server by using either the Oracle Application Server (Oracle AS) Application Server Control (ASC) or the Oracle admintool.jar file. Copy the adapter archive file (BRM_home/apps/brm_integrations/jca_adapter/OracleBRMJCA15Adapter.rar) from the installation directory to a location that is accessible to the adapter deployment tool. You can then open and deploy the archive file on your application server.
    After successful deployment, return the applications.xml file to its original settings and add the oracle.bpel.common codesource to the BRM Adapter oc4j-ra.xml file:
    Open the Oracle_home/j2ee/Instance/config/applications.xml configuration file for the J2EE instance.
    Remove the following oracle.bpel.common entry (shown in bold below):
    <imported-shared-libraries>
    <import-shared-library name="adf.oracle.domain"/>
    <import-shared-library name="oracle.bpel.common"/>
    </imported-shared-libraries>
    Save and close the file.
    Open the JCA Resource Adapter oc4j-ra.xml file from the Oracle_home/j2ee/Instance/application-deployments/default/BRMAdapterDeploymentName directory.
    Add the oracle.bpel.common entry (shown in bold below) to the oc4j-connector-factories section of the file:
    <oc4j-connector-factories...>
    <imported-shared-libraries>
    <import-shared-library name="oracle.bpel.common"/>
    </imported-shared-libraries>
    <oc4j-connector-factories>
    Save and close the file.
    Restart the application server or the J2EE instance.
    For more information about deploying the adapter, see your application server’s documentation.
    Connecting the adapter to BRM in Oracle AS
    You connect the adapter to the BRM software by creating connection pools and connection factories. As part of the adapter deployment, the application server creates oc4j-ra.xml from the packaged ra.xml. The ra.xml file is located in the Oracle_home/j2ee/Instance/connectors/AdapterDeploymentName/AdapterDeploymentName/META-INF directory. For example, Oracle_home/j2ee/home/connectors/BRMAdapter/BRMAdapter/META-INF/ra.xml.
    Use the resource adapter home page from the Oracle AS ASC page to create connection pools and connection factories.
    Create your connection pool by following the performance and tuning guidelines in Configuring Connection Pooling in OC4J in Oracle Containers for J2EE Resource Adapter Administrator's Guide. See download.oracle.com/docs/cd/B31017_01/web.1013/b28956/conncont.htm.
    Make sure you set the pool’s Maximum Connections parameter (maxConnections XML entity) equal to or greater than the Oracle BPEL process manager’s dspMaxThreads parameter. For more information, see Oracle BPEL Process Manager Performance Tuning in Oracle Application Server Performance Guide for 10g Release 3 (10.1.3.1.0) at download.oracle.com/docs/cd/B31017_01/core.1013/b28942/tuning_bpel.htm.
    Note To set up JCA Resource Adapter transaction management in BPEL, you must create a private connection pool and set its Inactive Connection Timeout property (inactivity-timeout XML entity) to 0. See About JCA Resource Adapter transaction management in BPEL for more information.
    Create as many connection factories as your system needs. For each connection factory, specify the following:
    The JNDI location for the connection factory.
    The connection pool to use.
    How to connect to BRM by using these entries:
    Entry
    Description
    ConnectionString
    Specify the protocol, host name, and port number for connecting to the BRM software. For example: ip Server1 12006.
    DBNumber
    Specify the database number for the BRM database. For example, enter 1 or 0.0.0.1 for database 0.0.0.1.
    InputValidation
    Specifies whether to validate the input XMLRecord:
    True — The adapter validates the input XMLRecord against the opcode schema.
    False — The adapter does not validate the input XMLRecord.
    The default is False.
    This overrides any other validation parameter specified in the WSDL file.
    OutputValidation
    Specifies whether to validate the output XMLRecord:
    True — The adapter validates the output XMLRecord against the opcode schema.
    False — The adapter does not validate the output XMLRecord.
    The default is False.
    This overrides any other validation parameter specified in the WSDL file.
    LoginType
    Specifies the authentication method:
    1 — The adapter logs in to BRM by using the specified login name and password.
    0 — The adapter logs in to BRM by using the specified service type and POID ID.
    The default is 1.
    UserName
    Specifies the login name the adapter uses for logging in to the BRM software.
    Note This entry is required only if LoginType is set to 1.
    Password
    Specify the password the adapter uses for logging in to the BRM software.
    Note This entry is required only if LoginType is set to 1.
    PoidID
    Specifies the POID ID. This entry should be set to 1.
    ServiceType
    Specifies the service the adapter uses to log in to the BRM software.
    The default is /service/pcm_client.
    You have successfully configured the adapter to connect to BRM.

  • Create TYPE

    I am not able to create type objects tried with different versions of oracle too.
    Currently I am using Oracle 11g Enterprise edition (2.9GB).
    The problem is when i create a TYPE object and when i terminate the command with a semicolon ';',oracle sql does not stop only (the query does not execute) the loop goes on and on.
    I did like this and found that the SYNTAX is also perfect.
    SQL> CREATE TYPE address_type AS OBJECT
    2 (street varchar2(30),
    3 city varchar2(30),
    4 pincode number(10));
    5
    6
    7
    8...
    It goes on and on it never ends. Command never executes.
    Please Help!

    end the command with "/" :
    create type .....
    /

  • CREATE TYPE address_type AS OBJECT - ERROR

    I am not able to create type objects tried with different versions of oracle too.
    Currently I am using Oracle 11g enterprise edition (2.9GB).
    The problem is when i create a TYPE object and when i terminate the command with a semicolon ';',oracle sql does not stop only (the query does not execute) the loop goes on and on.
    I did like this and found that the SYNTAX is also perfect.
    SQL> CREATE TYPE address_type AS OBJECT
    2 (street varchar2(30),
    3 city varchar2(30),
    4 pincode number(10));
    5
    6
    7
    8...
    It goes on and on it never ends. Command never executes.
    Please Help!

    A type body will contain PL/SQL semicolons, so once SQL*Plus sees that you're entering a type it stops treating semicolons as the SQL*Plus multi-line statement terminator character. (A type header will not contain semicolons, but I expect Oracle decided it would be even more confusing if CREATE TYPE BODY behaved differently to CREATE TYPE.)
    Note you can also terminate entry by entering a dot (period) on a line on its own.
    I guess in older version there was nothing like that.Actually this has been around for over 10 years ;)

  • SQL 3 : Create type

    hello,
    in an example using the object-relational model
    I created the following type:
    create type professeur_t as object (
    +     nump varchar2(5),+
    +     nomp varchar2(20),+
    +     nbg integer);+
    +     /+
    create type "professeurs_t" as table of professeur_t;
    create type eleve_t as object (
    +     nume integer,+
    +     nome varchar2(25),+
    +     nomc varchar2(5)+
    +     );+
    +     /+
    create type "eleves_t" as table of eleve_t;
    when I try to create another type with the following command
    create type ecole1_t as object (
    +     nomc varchar2(5),+
    +     eleves eleves_t,+
    +     professeurs professeurs_t );+
    +     /+
    I get the following error message:
    Warning: Type created with compilation errors
    checking with:
    select type_name from user_types ;
    indicates that the type has been created
    but when I try to create a table on this type with this command :
    create table ecole1 of "ECOLE1_T" (primary key (nomc))
    +     nested table eleves_t store as elev,+
    +     nested table professeurs_t store as prof;+
    I get:
    ERROR at line 1:
    ORA-00902: invalid datatype
    Please if you have an idea about what to do? help me ?
    Thank you in advance

    Hi,
    If you enclose the name of a type (or a table, or a cloumn, or anything else) in double-quotes when you create it, then you generally have to enclose it in double quotes and spell it exactly the same way (case-sensitive) every time you use it.
    Lose the double-quotes:
    create OR REPLACE type eleves_t as table of eleve_t;
    create OR REPLACE type professeurs_t as table of professeur_t;
    /All identifiers in Oracle are case-sensitive. You may not realize that because all unquoted code (that is, everything not in suingle-quotes, like 'foo', or double-quotes, like "bar") is converted to upper case before it is compiled.
    So when you said
    create type eleve_t ...the type that was created was ELEVE_T, all uppercase, exactly as it appears in all_objects.
    When you referenced it like this:
    create type "eleves_t" as table of eleve_t;there was no error, because all the unquoted code got capitalized before compiling, so it's as if you had said
    CREATE TYPE "eleves_t" AS TABLE OF ELEVE_T;Because it was quoted, "eleves_t" was not capitalized.

  • Creating type along or inside a path

    Hi All,
    I read the tutorial about Creating type along or inside a path. I have tried to create few types of type along,inside and outside a path and shape. I was wondering why there are variations and restriction among them. Below are my screen shots to describe my problem.
    Screen 1

    Sorry, I have been trying to upload the screen shots, now it is done.
    Screen 1: type outside the path
    Screen 2:type inside the path
    Screen 3:type outside the shape
    Screen 4:type inside the shape
    I am confused why I cannot flip the "type inside the path" whereas flipping inside and outside is possible for "type outside the path". Any help is greatly appreciated. Thank you.

  • Create TYPE-POOlS

    how to create our own Type-pools?for using alv?

    hi,
    This is taken directly from the HELP.
    Type Groups
    Before Release 4.5A, it was not possible to define standalone types in the ABAP Dictionary to which you could refer using a TYPE addition in an ABAP program. It was only possible to refer to flat structures. Structures in programs corresponded to the structures of database tables or structures in the ABAP Dictionary. In ABAP programs, you could only refer to database tables and structures in the ABAP Dictionary using LIKE. It was, however, possible to refer to individual components of the Dictionary type. Complex local data types such as internal tables or deep structures had no equivalent in the ABAP Dictionary. The solution to this from Release 3.0 onwards was to use type groups. Type groups were based on the include technique, and allowed you to store any type definitions globally in the Dictionary by defining them using TYPES statements.
    The definition of a type group is a fragment of ABAP code which you enter in the ABAP Editor. The first statement for the type group <pool> is always:
    TYPE-POOL <pool>.
    After this came the definitions of data types using the TYPES statement, as described in Local Data Types in Programs. It was also possible to define global constants using the CONSTANTS statement. All the names of these data types and constants must begin with the name of the type group and an underscore:
    In an ABAP program, you must declare a type group as follows before you can use it:
    TYPE-POOLS <pool>.
    This statement allows you to use all the data types and constants defined in the type group <pool> in your program. You can use several type groups in the same program.
    Let the type group HKTST be created as follows in the ABAP Dictionary:
    TYPE-POOL hktst.
    TYPES: BEGIN OF hktst_typ1,
    col1(10) TYPE c,
    col2 TYPE i,
    END OF hktst_typ1.
    TYPES hktst_typ2 TYPE p DECIMALS 2.
    CONSTANTS hktst_eleven TYPE i VALUE 11.
    This type group defines two data types HKTST_TYP1 and HKTST_TYP2, as well as a constant HKTST_ELEVEN with the value 11.
    Any ABAP program can use this definition with the TYPE-POOLS statement:
    TYPE-POOLS hktst.
    DATA: dat1 TYPE hktst_typ1,
    dat2 TYPE hktst_typ2 VALUE '1.23'.
    WRITE: dat2, / hktst_eleven.
    The output is:
    1,23
    11
    The data types defined in the type group are used to declare data objects with the DATA statement and the value of the constant is, as the output shows, known in the program.
    ~~Guduri

  • Create type problems

    Hi all,
    I'm not able to create objects using SQL in oracle.
    When I use
    Create type obj_ty as object(name varchar2(10));
    2
    is what I get, that is, it goes to the next line without executing the create object stmt. Kindly help me out.
    Thanks,
    -Vikram

    You need to put a slash to execute the create type:
    SQL> Create type obj_ty as object(name varchar2(10));
      2  /
    Type created.
    SQL>

  • Creating Abstract datatypes from Create Type As Object

    hi.
    I am define new type abstract datatypes as
    create type cust_address_ty as object
    (STREET VARCHAR2(25),
    CITY VARCHAR2(25),
    COUNTRY VARCHAR2(25));
    then insert data into new created table
    when we run sql select command for * from
    following error occured.
    SQL> select * from fml.cust;
    select * from fml.cust
    ERROR at line 1:
    ORA-01024: invalid datatype in OCI call
    what should i do for this.
    please help
    thanks
    Ali

    try to update your sqlnet version.
    regards
    daniel

  • Uber Noob Needs Help Creating website!

    I need help creating my webpage: It has a textbox on it were
    the user enters a URL and it then redirects the end user to that
    URL when they press the GO Button. It also has a check box saying
    "Hide my IP", If the end user clicks this box and then clicks go
    they will be directed to the website they stateted in the Textbox
    but this time it shall mask there IP Address so they can bypass
    proxys and surf anonomosly. Please can someone give me some HTML
    code i could use for this site or a Link to a website that can give
    me the code.

    I assume the application is connecting to Oracle using an application ID/password. If so, check to see if that user has a private synonyn to the table. If so drop it since you have a public synonym.
    Verify that the public synonym is in fact correct. Drop and recreate the public synonym if you cannot select against the synonym name using an ID that can perform select * from inhouse.icltm where rownum = 1. That is if this other user cannot issue select * from icltm where rownum = 1 without an error.
    Check that the application ID has the necessary object privileges on the table.
    Queries you need
    select * from dba_synonyms
    where table_owner = 'INHOUSE'
    and table_name = 'ICLTM'
    You may find both public and private synonms. Either fix or delete. (Some may reference someelses.icltm table if one exists)
    select * from dba_tab_privs
    where table_name = 'ICLTM'
    and owner = 'INHOUSE'
    Note - it is possible to create mixed case or lower case object names in Oracle by using double quotes around the name. Do not do this, but do look to see that this was not done.
    You could also query dba_objects for all object types that have the object_name = 'ICLTM'
    HTH -- Mark D Powell --

  • Need help creating arraylist

    I am trying to help a friend in school with a project and we need some help...
    We need to write a program to estimate how much paint is needed to paint a house. Assuming we know the square feet that a gallon of paint covers, number of coats required, and the dimensions of the wall, window, door, or gable.
    We are using a GUI to enter the data for the different regions.
    We have the GUI created and the hierchy competed. I need some help creating the arraylist to run the program.
    The user will enter a new region by selecting:
    surface type
    width
    height
    then you will be able to add or insert to include this region in the list.
    You will also be able modify, delete, or navigate to existing regions in the list by selecting the appropriate navigigation buttons below:
    ( |< or < or > or >| )
    Classes include:
    PaintEstimatorView
    PainEstimator Model
    Regions:
    Wall
    Door
    Gable
    Window
    And the Approriate Listners
    Each region will have its own height and width which are set when the region is created
    Each region will compute and return its area and the walls and gables will contribute to the surface; windows and doors will reduce the surface.
    each region will calculate its area.
    We need to include a View and Model
    The view will manage the interface and the model will provide the necessary processing.
    responsibilities of the view:
    Instantiate and arrange the windowobjects
    instantiate and initialize the model
    handle user generated events such as button clicks and menu selections by sending message to the model
    represent the model to the user.
    Model:
    Define and manage the applications data(coordinating the activities of several programmer defined classes)
    respond to messages from the view
    We have the GUI completed I just need some help getting the arraylist started to run the program.
    We will need to keep a count and index of all the regions created by the user and you need to be able to shuffle throught them if you need to delete or modify them. You also need to insert windows and doors which will subtract from the total surface area but you have to go back to which ever wall or gable and create the window or door before or after that region.
    If anybody could help it would be greatly appreciated.
    Thanks in adavnce
    Rus

    Sorry, I forgot to add my code last night.
    This is what we have so far.
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.border.*;
    import java.awt.event.*;
    public class TestSwingCommonFeatures extends JFrame {
    private JRadioButton wall, window, gable, door;
    private JButton computegal;
    public TestSwingCommonFeatures() {
    // Create a panel to group three buttons
    JPanel p1 = new JPanel(new GridLayout(2, 2, 5, 5));
    JTextField sqftpergal = new JTextField(8);
         JTextField coats = new JTextField(8);
         JTextField gallonsneeded = new JTextField(8);
         gallonsneeded.setEditable(false);
         p1.add(new JLabel("SQ ft / gallon"));
    p1.add(sqftpergal);
    p1.add(new JLabel("Number of gallons:"));
    p1.add(coats);
    p1.add(new JLabel("Gallons needed:"));
    p1.add(gallonsneeded);
         p1.add(computegal = new JButton("Compute gallons needed"));
         //computegal;
    p1.setBorder(new TitledBorder("Select gallons & coats"));
    // Create a font and a line border
    Font largeFont = new Font("TimesRoman", Font.BOLD, 20);
    Border lineBorder = new LineBorder(Color.BLACK, 2);
    // Create a panel to group two labels
    // panel 2
         JPanel p2 = new JPanel(new GridLayout(4, 2, 5, 5));
    p2.add(wall = new JRadioButton("wall"));
    p2.add(gable = new JRadioButton("gable"));
         p2.add(new JButton("ADD"));
              p2.add(window = new JRadioButton("window"));
              p2.add(door = new JRadioButton("door"));
                   p2.add(new JButton("Remove"));
    p2.add(new JLabel("Width"));
    p2.add(new JTextField(12));
         p2.add(new JButton("Insert"));
         p2.add(new JLabel("Height"));
    p2.add(new JTextField(12));
         p2.add(new JButton("Delete"));
    p2.setBorder(new TitledBorder("Controls"));
    ButtonGroup radiogroup = new ButtonGroup();
    radiogroup.add(wall);
    radiogroup.add(gable);
         radiogroup.add(window);
         radiogroup.add(door);
    //panel 3     
         JPanel p3 = new JPanel(new GridLayout(2, 1, 5, 5));
    p3.setBorder(new TitledBorder("Section Selection"));
         p3.add(new JButton("<|"));
              p3.add(new JButton("<"));
                   p3.add(new JButton(">"));
                        p3.add(new JButton("|>"));
    p3.add(new JLabel("Count"));
    p3.add(new JTextField(4));
         p3.add(new JLabel("Index"));
    p3.add(new JTextField(4));
    // Add two panels to the frame
    setLayout(new GridLayout(3, 1, 5, 5));
    add(p1);
    add(p2);
         add(p3);
    public static void main(String[] args) {
    // Create a frame and set its properties
    JFrame frame = new TestSwingCommonFeatures();
    frame.setTitle("TestSwingCommonFeatures");
    frame.setSize(600, 400);
    frame.setLocationRelativeTo(null); // Center the frame
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.setVisible(true);
    private class UpdateListener implements ActionListener {
    public void actionPerformed(ActionEvent e) {
    System.out.println("Update button was clicked");
    private class NavListener implements ActionListener {
    public void actionPerformed(ActionEvent e) {
    System.out.println("Nav button was clicked");
    // Create a list to store data
    java.util.ArrayList paintList = new java.util.ArrayList();
    This is the GUI for the project that we have come up with. I have to write the arraylist for inside the model.
    I have tried a couple different things but have been unsuccessful getting it to work. All I am looking for is a start of the arraylist I will try to figure out the rest myself.
    Thanks

  • Help Creating A Link

    Ok I need help creating links with my banner. It's a take off
    of Macromedia's tutorial banner for the Coffee Shop.
    What it is, is a banner. You have the "Front page" of the
    banner. And it has a next button. The User clicks the next button
    and it displays the next "page" of the banner. I WANT the user to
    then click THAT page (or somewhere) on that "page" to be directed
    to a whole new page IN the current browser window. Can ANYONE
    please tell me how to change the script below so it will do that?
    /* 0 */
    var image0title:String = "Click Next To View:";
    var image0desc:String = "Photos, Videos, Forums,
    Screen-Shots, Stories And Much, Much More";
    var image0uri:String = "images/Ban1.jpg";
    /* 1 */
    var image1title:String = "Video Section";
    var image1desc:String = "Click Here to view a multitude of
    videos we've made ourselves.";
    var image1uri:String = "images/Ban2.jpg";
    The image1title:String is my title text on my banner.
    The image1desc:String is the description text on my banner.
    The images/ban2.jpg is my background image on my banner.
    I don't care of some of that TEXT is the link....or what I
    really want is the background img to be the link. Either works for
    me can anyone please fix this? I've only spent 2 hours on
    ActionScripting and trying to learn. I couldn't figure out how to
    do it through the tutorials. Thanks. IM or email me!
    [email protected]

    To accomplish this I would build the link as part of the value. So if Yes the Yes itself would be a link, if No is simply text as today.
    It would look something like this:
    SELECT
          ,CASE WHEN ft.feature_id IN (SELECT cc.feature_id
                                       FROM customer_commitments cc
                                       WHERE ft.feature_id = cc.feature_id
           THEN
            '<a href="f?p=&APP_ID.:NEW_PAGE:&SESSION.::::Pn_FEATURE_ID:' || ft.feature_id || '">Yes</a>'
           ELSE
            'No'
           END "Commitment Exists"
              ,ft.feature_id
    FROM ....One problem with this approach is when you export the report (as a CSV for example). There are a few ways to handle this, one is to simply duplicate the column with clear text yes and no and set this column to be included on export and only visible on export. The other column, with the link, set it to no export.
    The other option is to add another condition on the REQUEST value.
    SELECT
          ,CASE WHEN ft.feature_id IN (SELECT cc.feature_id
                                       FROM customer_commitments cc
                                       WHERE ft.feature_id = cc.feature_id
           THEN
                  decode(:REQUEST, 'CSV', 'Yes'
                , '<a href="f?p=&APP_ID.:NEW_PAGE:&SESSION.::::Pn_FEATURE_ID:' || ft.feature_id || '">Yes</a>'
           ELSE
            'No'
           END "Commitment Exists"
              ,ft.feature_id
    FROM ....It seems that the link itself is getting replaced with a #. The link would look something like this:
    'f?p=&APP_ID.:NEW_PAGE:&SESSION.::::Pn_FEATURE_ID:' || ft.feature_id
    Hope this helps.
    Oh and of course, in order for the link to display you need to change the Display Type to "Standard Report Column" otherwise the HTML will be escaped.
    Thanks
    -Jorge

  • Help creating a lightbox please

    Hi everyone
    I've just launched my first portfolio site and I really need some help creating a lightbox to show my work.
    This is the page i need help with
    www.marieparkinson.co.uk/portfolio.html
    I think I'm struggling with online tutorials as I've already designed the layout of my work (and maybe i've not used the best coding either??)
    What i want to happen is the user clicks on the thumbnail image and in a pop-up screen another full size image is displayed.
    I've read all the tutorials etc and downloads for it, but i just don't know where to start.
    I've read a lot about JQuery, is this something I need to download??
    Please help!
    Any comments will be really appreciated!!
    Thanks!

    Primer for using jQuery Plug-ins:
    #1 Download the Plug-in files from the source site.  I'm using Fancybox in this example:
    #2 Extract Zip files with WinZip or StuffIt and save to your local site folder.  I prefer to keep scripts in my Scripts folder CSS files in my Styles folder but that's up to you.
    #3 jQuery has 3 basic parts to it:
        the core code library which you ref in your <head>
        the plug-in scripts & CSS files which you ref in your <head>
        the function code inside <script> tags to invoke the plug-in. I prefer to put this above closing </body> tag but again that's up to you.
    EXAMPLE:
    <head>
    <!--Link to latest jQuery core library from the CDN-->
    <script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js">
    </script>
    <!-- links to  plug-in files in your local site-->
    <script type="text/javascript" src="Scripts/fancybox/jquery.mousewheel-3.0.4.pack.js"></script>
    <script type="text/javascript" src="Scripts/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
    <link rel="stylesheet" type="text/css" href="Styles/fancybox/jquery.fancybox-1.3.4.css" media="screen" />
    </head>
    <body>
    <!--BEGIN IMAGE GALLERY -->
    <div id="thumbs" class="fancybox">
    <a rel="group" href="Images/big-image1.jpg" title="optional captions and description"><img src="Images/small-image1.jpg" alt="image 1" width="75" height="75" /></a>
    <a rel="group" href="Images/big-image2.jpg" title="optional captions and description"><img src="Images/small-image2.jpg" alt="image 2" width="75" height="75" /></a>
    <a rel="group" href="Images/big-image3.jpg" title="optional captions and description"><img src="Images/small-image3.jpg" alt="image 3" width="75" height="75" /></a>
    </div>
    <!--Fancybox function-->
    <script type="text/javascript">
    /* Apply fancybox slideshow to 'group'*/
    $("a.group").fancybox({
    'transitionIn'     :     'elastic',
    'transitionOut'     :     'elastic',
    'speedIn'          :     600,
    'speedOut'          :     200,
    'overlayShow'     :     false
    </script>
    </body>
    That's all there is to it.
    Nancy O.

  • Service desk error creating support message "help- create support message"

    Hi
    I'm customizing SM 7.0 SP Stack 15 service desk scenario. I'm in a VAR SAP, so It's a mandatory scenario.
    I've done all basic settings from General Settings, Connection to SAP, Online Documentation, ...,
    Business Partners, iBase, Basic BC-Sets for Configuration, Number Ranges. After them , for Scenario-Specific Settings-> Service Desk->Service Provider I've done all these steps. At SAP System Solution Manager, I've created solutions at dswp transaction and EW Alert are centralized these steps works. Transaction notif_create works and iBase are well mantained.
    The problem is when I try create a support message from satellite SAP system. I logged With a SAP user which is BP, key user and has authorizations in a satellite system and I choose help->create support message, so a pop-up appears and I fill the fields, and I press button (Save/Send). An error appears:
    Error in Local Message System: Access via 'NULL' object reference not possible. Message was Not Created
    In order solve the error I review:
    - The satellite SAP system is at the iBase installed components.
    - I've Assign Number Range for ABA notifications at SLF1 transaction.
    - I've Checked number range for Service Desk Message at SLFN transaction.
    - I've configured ABA Message transaction DNO_CUST01, transaction DNO_CUST04
    - (satellite system) Transaction sm30, table BCOS_CUST:
       Appl.            +       Dest.                                  +                     +
       OSS_MSG   W     SM_SMGCLNT010_BACK    CUST620          1.0
       TST_CUS                                                        0120009939
       RFC SM_SMGCLNT010_BACK works, SM recollects EW Alert from this satellite system
    - (satellite system) I logged with a SAP user with these roles:
      SAP_SUPPDESK_CREATE
      SAP_BC_CUS_CUSTOMIZER  according SAP NOTE 834534
      SAP_BC_CUS_ADMIN       according SAP NOTE 834534
      SAP_SV_FDB_NOTIF_BC_CREATE
      SAP_SV_FDB_NOTIF_BC_ADMIN
      All these roles are mantained.
    - I've review SAP Notes 834534, 864195, 621927(I haven't applied this SAP Note because it's older)
    Please could you help me?
    Thanks and Regards
    Raul

    Hi,
    When I try create a SAP message via help->create suuport message, I get the same error so I run help->create support message in a satellite system so I run help->create support message in Solution Manager
    system. Also, a dump is generated in Solution Manager when I try create support message or from satellite or from solution manager.
    ========================================================================
    Runtime Errors         OBJECTS_OBJREF_NOT_ASSIGNED
    Date and Time          10.07.2008 10:17:26
    Short text
        Access via 'NULL' object reference not possible.
    What happened?
        Error in the ABAP Application Program
        The current ABAP program "CL_BOR_SERVICE_PPF============CP" had to be
         terminated because it has
        come across a statement that unfortunately cannot be executed.
    Error analysis
        You attempted to use a 'NULL' object reference (points to 'nothing')
        access a component (variable: " ").
        An object reference must point to an object (an instance of a class)
        before it can be used to access components.
        Either the reference was never set or it was set to 'NULL' using the
        CLEAR statement.
    How to correct the error
        If the error occures in a non-modified SAP program, you may be able to
        find an interim solution in an SAP Note.
        If you have access to SAP Notes, carry out a search with the following
        keywords:
        "OBJECTS_OBJREF_NOT_ASSIGNED" " "
        "CL_BOR_SERVICE_PPF============CP" or "CL_BOR_SERVICE_PPF============CM004"
        "PROFILE_CONTAINS_PARTNERDEP"
        If you cannot solve the problem yourself and want to send an error
        notification to SAP, include the following information:
    Information on where terminated
        Termination occurred in the ABAP program "CL_BOR_SERVICE_PPF============CP" -
         in "PROFILE_CONTAINS_PARTNERDEP".
        The main program was "SAPMSSY1 ".
        In the source code you have the termination point in line 41
        of the (Include) program "CL_BOR_SERVICE_PPF============CM004".
    =========================================================================
    Thanks and Regards
    Raul

Maybe you are looking for

  • After updating my mac, I can no longer close the lid without it going into a sleep mode, that I can only wake by powering off.

    Ever since I have updated my Macbook Pro to the newest version of OS, it will go into a sleep mode when I close the lid that I can only wake with powering off the entire computer. I used to be able to close the lid for the night, open it in the morni

  • Airport card for powerbook G4 12" Aluminum

    I have a powerbook G4 12" aluminum and I have looked everywhere for an airport card. I have gotten two original airport cards and they did not fit,these cards are just a smidge too wide for the card slot. I know there is an apple card that will fit i

  • Tasks not opening in UWL through LR script

    Hi, I am trying to script a scenario in SAP NW Portal. The scripted scenario looks like: 1) VUser.init() section: A user logs in to the portal. 2) VUser.run() section: The User performs few steps in the portal (UWL - WD Java). 3) VUser.end() section:

  • How you check the balance on an itunes gift card?

    I CAN NOT FIND THIS ANYWHERE!!!! PHONE SUPPORT DIDN'T KNOW EITHER. HOW YOU CHECK AN ITUNES GIFT CARD BALANCE??? I NEED TO KNOW BECAUSE I HAVE ONE AND I'M PLANNING ON GIFTING IT TO SOMEONE. THE SCRACH OFF PART HAS 16 LETTERS AND NUMBERS

  • Tax procedure for Canada

    Hi guys, Can anyone guide me in configuration of tax procedure for Canada. Basically our company uses third party s/w Vertex for tax calculations. Any guidlines on what is difference between US and canada config. Also, any specific docs on Canadian c