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 ;)

Similar Messages

  • CREATE TYPE AddressType AS OBJECT

    I use XDK with Oracle 8.1.7.
    I can't use this example in SQL+ :
    SQL> CREATE TYPE AddressType AS OBJECT (
    2 STREET VARCHAR2(20),
    3 CITY VARCHAR2(20),
    4 STATE CHAR(2),
    5 ZIP VARCHAR2(10)
    6 );
    7
    8
    9
    10 I only type <ctrl C>
    SQL>
    Why?
    null

    SQL> CREATE TYPE AddressType AS OBJECT (
    2 STREET VARCHAR2(20),
    3 CITY VARCHAR2(20),
    4 STATE CHAR(2),
    5 ZIP VARCHAR2(10)
    6 );
    7 /
    Type created.
    SQL>
    You need to enter a / to run the create type statement.
    Steve.

  • Problem in creating the ADODB.Connection object Error Number returned:-2147024770

    Hi,
    We are migrating our applications from Windows 2003 to 2008 application server. We have vbs script in a job which is invoked from Tivoli Workload Scheduler (Windows)/JOBLNCH 8.5.1. We are getting the error while creating ADOBD object (Error Number returned:-2147024770).
    The error does not occur when we directly run the job on the 2008 server, but only when invoked throught the TWS scheduler. Also, this error is not occurring on 2003 server when run through the TWS.
    Here is the code snippet used to create object.
    set oSrcConnect = CreateObject("ADODB.Connection")
    Could you please help us identify if any settings need to be changed to avoid this error. Many Thanks for looking into the question.

    Hi,
    Error -2147024770 = hex 8007007E
    Least significant 32 bits are hex 7E = decimal 126
    C:\>net helpmsg 126
    The specified module could not be found.
    This usually indicates that the COM object you're using is trying to load a DLL that is not installed.
    Based on only this error message, there's no way we can tell you how to fix your script.
    Bill

  • 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 .....
    /

  • 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

  • Create type not working

    I'm following the 8.1.6 documentation to create type, but it always returns me the error.
    My references are from :
    http://technet.oracle.com/docs/products/oracle8i/doc_library/817_doc/appdev.817/a76976/adobjmng.htm
    The script is:
    CREATE TYPE location (
    building_no NUMBER,
    city VARCHAR2(40) );
    The error is:
    1/15 PLS-00103: Encountered the symbol "(" when expecting one of the following:
    ; is authid as compress compiled wrapped
    4/0 PLS-00103: Encountered the symbol "end-of-file" when expecting one of the following:
    pragma
    May I know that how can I work around it?
    I had tried earlier another syntex successfully:
    create type typeName as object(definition....).
    May I also know what's the difference between these 2 commands?
    Thanks in advance
    Minny

    I think there's a mistake in the documentation. I may be wrong but I think it should always be CREATE TYPE x AS OBJECT (...)

  • Type attribute with Object type or Nested table?

    I have been creating lot many threads around the same problem, however i thought i knew but realized I do not know or else do not know how to..
    I have created object type with an attribute READINGVALUE NUMBER(21,6)...How can i use type attribute on this object while declaring variable.....can we use type attribute on NESTED TABLES, similar to the db tables?
    example
    CREATE TYPE READING AS OBJECT(READINGVALUE NUMBER(21,6));
    CREATE TABLE INTERVALREADINGS OF TYPE READING;

    meghavee wrote:
    Thanks Solomon, however this approach does not preserve precision/scale of number data type.....What you can do is create placeholder tables:
    SQL> create table reading_type_placeholder of reading
      2  /
    Table created.
    SQL> desc reading_type_placeholder
    Name                                      Null?    Type
    READINGVALUE                                       NUMBER(21,6)
    SQL> declare
      2      v_var reading_type_placeholder.readingvalue%type;
      3  begin
      4      v_var := 123456789012345;
      5  end;
      6  /
    PL/SQL procedure successfully completed.
    SQL> declare
      2      v_var reading_type_placeholder.readingvalue%type;
      3  begin
      4      v_var := 1234567890123456;
      5  end;
      6  /
    declare
    ERROR at line 1:
    ORA-06502: PL/SQL: numeric or value error: number precision too large
    ORA-06512: at line 4
    SQL>And if you modify type attribute:
    SQL> alter type reading modify attribute readingvalue number(26,6) cascade;
    Type altered.
    SQL> desc reading_type_placeholder
    Name                                      Null?    Type
    READINGVALUE                                       NUMBER(26,6)
    SQL>SY.

  • 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.

  • 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]

  • Create type problem

    I want to create a simple (not composite) data type using CREATE TYPE
    CREATE TYPE mytype under number (number(9));
    Obviously it was wrong. Am I trying in vain? I mean CREATE TYPE can be used just to create composite types.

    I am not sure if you did not confuse two things
    PL/SQL - User Defined Subtype. Variables of type mytype will be maximum number(9)
    [email protected]> declare
    2 subtype mytype is number(9);
    3 x mytype := 1;
    4 begin
    5 dbms_output.put_line(x);
    6 end;
    7 /
    1
    PL/SQL procedure successfully completed.
    SQL type.
    [email protected]> create type mtype is object(x number(9))
    2 /
    Type created.
    Best regards
    Krystian Zieja / mob

  • Create TYPE question

    Hi ,
    I have problems to understand the create type command !
    CREATE TYPE test_type AS OBJECT
    ( test_id_pk number,
    test_city varchar2(20),
    test_state varchar2(10),
    test_zip number
    Is this a kind of reference or what ?
    thank for any commets...
    marcel

    In Oracle, a TYPE is a database object and also an OBJECT in the Object-Oriented Programming sense (although there are key differences between Oracle's implementation and say Java). A TYPE has attributes (and so can be used to hold data) and it has methods (which can manipulate that data).
    You can find out more by reading the online documentation (which you will find here).
    Cheers, APC

  • 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>

  • Error while creating Attribute In BPM Object

    Hi,
    I am getting error while creating attributes in BPM Object.I am not able to open BPm object. while opening I am getting Below error.
    Please suggest.
    java.lang.StringIndexOutOfBoundsException: String index out of range: 28
         at java.lang.String.charAt(Unknown Source)
         at fuego.type.TypeFactory.createFromName(TypeFactory.java:482)
         at fuego.type.TypeFactory.forNameLazy(TypeFactory.java:263)
         at fuego.lang.CollectionTypeDescription.getIndexTypeRef(CollectionTypeDescription.java:146)
         at fuego.compiler.type.TypeRenderer.renderArrayType(TypeRenderer.java:355)
         at fuego.compiler.type.TypeRenderer.renderType(TypeRenderer.java:261)
         at fuego.compiler.type.TypeRenderer.renderArrayType(TypeRenderer.java:344)
         at fuego.compiler.type.TypeRenderer.renderType(TypeRenderer.java:261)
         at fuego.compiler.type.TypeRenderer.render(TypeRenderer.java:106)
         at fuego.compiler.type.TypeRenderer.render(TypeRenderer.java:94)
         at fuego.compiler.type.TypeRenderer.render(TypeRenderer.java:78)
         at fuego.designer.XObjectComponentStructurePanel$CellTypeRenderer.getText(XObjectComponentStructurePanel.java:612)
         at fuego.designer.XObjectComponentStructurePanel$CellTypeRenderer.getText(XObjectComponentStructurePanel.java:605)
         at fuego.ui.peer.swt.SwtTable$SwtTableModel.getColumnText(SwtTable.java:956)
         at org.eclipse.jface.viewers.TableColumnViewerLabelProvider.update(TableColumnViewerLabelProvider.java:70)
         at org.eclipse.jface.viewers.ViewerColumn.refresh(ViewerColumn.java:135)
         at org.eclipse.jface.viewers.AbstractTableViewer.doUpdateItem(AbstractTableViewer.java:386)
         at org.eclipse.jface.viewers.StructuredViewer$UpdateItemSafeRunnable.run(StructuredViewer.java:466)
         at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
         at org.eclipse.core.runtime.Platform.run(Platform.java:857)
         at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:46)
         at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:199)
         at org.eclipse.jface.viewers.StructuredViewer.updateItem(StructuredViewer.java:2026)
         at org.eclipse.jface.viewers.AbstractTableViewer.internalRefreshAll(AbstractTableViewer.java:695)
         at org.eclipse.jface.viewers.AbstractTableViewer.internalRefresh(AbstractTableViewer.java:633)
         at org.eclipse.jface.viewers.AbstractTableViewer.internalRefresh(AbstractTableViewer.java:620)
         at org.eclipse.jface.viewers.StructuredViewer$7.run(StructuredViewer.java:1433)
         at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1368)
         at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1330)
         at org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java:1431)
         at org.eclipse.jface.viewers.ColumnViewer.refresh(ColumnViewer.java:536)
         at org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java:1390)
         at fuego.ui.peer.swt.SwtViewer.repaint(SwtViewer.java:59)
         at fuego.ui.peer.swt.SwtColumn.setLabelProvider(SwtColumn.java:89)
         at fuego.ui.Column.setLabelProvider(Column.java:82)
         at fuego.designer.XObjectComponentStructurePanel.buildUI(XObjectComponentStructurePanel.java:299)
         at fuego.designer.AbstractEditor.build(AbstractEditor.java:542)
         at fuego.designer.AbstractEditor.init(AbstractEditor.java:133)
         at fuego.designer.XObjectComponentStructurePanel.<init>(XObjectComponentStructurePanel.java:126)
         at fuego.eclipse.studio.multipageeditor.BPMObjectMultipartEditor.createStructurePage(BPMObjectMultipartEditor.java:581)
         at fuego.eclipse.studio.multipageeditor.BPMObjectMultipartEditor.addDefaultPages(BPMObjectMultipartEditor.java:464)
         at fuego.eclipse.studio.multipageeditor.ExtendedMultiPageEditorPart.createPages(ExtendedMultiPageEditorPart.java:399)
         at fuego.eclipse.studio.multipageeditor.eclipse.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:253)
         at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:661)
         at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:426)
         at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:592)
         at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:299)
         at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:179)
         at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:268)
         at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
         at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:400)
         at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1256)
         at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1209)
         at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1604)
         at org.eclipse.ui.internal.PartStack.add(PartStack.java:499)
         at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:103)
         at org.eclipse.ui.internal.PartStack.add(PartStack.java:485)
         at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:112)
         at org.eclipse.ui.internal.EditorSashContainer.addEditor(EditorSashContainer.java:63)
         at org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorAreaHelper.java:217)
         at org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAreaHelper.java:207)
         at org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:774)
         at org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:673)
         at org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:634)
         at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2737)
         at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2651)
         at org.eclipse.ui.internal.WorkbenchPage.access$13(WorkbenchPage.java:2643)
         at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2595)
         at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
         at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2590)
         at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2574)
         at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2557)
         at fuego.eclipse.ui.DefaultEditor.open(DefaultEditor.java:65)
         at fuego.eclipse.studio.EclipseWorkbench.createEditorFromResource(EclipseWorkbench.java:529)
         at fuego.eclipse.studio.EclipseWorkbench.createEditor(EclipseWorkbench.java:297)
         at fuego.designer.action.OpenCatalogNodeAction.open(OpenCatalogNodeAction.java:91)
         at fuego.designer.action.OpenCatalogNodeAction.run(OpenCatalogNodeAction.java:55)
         at fuego.eclipse.ui.EclipseAction.run(EclipseAction.java:180)
         at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
         at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:546)
         at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490)
         at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402)
         at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
         at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
         at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
         at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
         at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
         at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
         at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
         at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
         at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
         at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
         at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
         at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
         at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
         at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
         at org.eclipse.equinox.launcher.Main.run(Main.java:1173)

    When you say you're having trouble "opening" the BPM Object, is it possible you instead mean you're having trouble expanding the BPM Object?
    Just a guess, but if you're having trouble expanding the BPM Object I'd suspect that the object's xcdl contents might be corrupted. You might want to consider exporting and saving a backup of the project and then try deleting the object from the Project Navigator. Rebuild the BPM Object once you've deleted it.
    Dan

  • Create Type as Object not working in linux oracle 11g

    Pleae refer to the following simple create type as object statement.
    CREATE OR REPLACE TYPE EC_VIEWABLETYPES as object ( CASE_TYPE_ID NUMBER)
    It is working in oracle 11g and windows server 2008 environment.
    But it is not working in oracle 11g with linux environment.
    I am executing this statement as dynamic sql as follows
    CREATE OR REPLACE PROCEDURE TEMP_SP
    AS
    BEGIN
    DECLARE vcType VARCHAR2(30);
    BEGIN
    SELECT OBJECT_TYPE into vcType FROM USER_OBJECTS
    WHERE OBJECT_NAME='EC_VIEWABLETYPES' AND OBJECT_TYPE='TYPE';
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    EXECUTE IMMEDIATE 'CREATE OR REPLACE TYPE EC_VIEWABLETYPES as object ( CASE_TYPE_ID NUMBER) ';
    COMMIT;
    RETURN;
    END;
    END;
    exec TEMP_SP
    please let me know what i am missing ?

    And error is:ORA-00600: internal error code, arguments: [kothc_uc_md5:lxerr], [], [], [], [], [], [], [], [], [], [], []
    ORA-06512: at "ATIPAGENT.TEMP_SP", line 10
    ORA-01403: no data found
    ORA-06512: at line 1
    ..Query:exec TEMP_SP...Previous Query:CREATE OR REPLACE PROCEDURE TEMP_SP AS BEGIN DECLARE vcType VARCHAR2(30); BEGIN
    SELECT OBJECT_TYPE into vcType FROM USER_OBJECTS
    WHERE OBJECT_NAME='EC_VIEWABLETYPES' AND OBJECT_TYPE='TYPE'; EXCEPTION WHEN NO_DATA_FOUND THEN
    EXECUTE IMMEDIATE 'CREATE OR REPLACE TYPE EC_VIEWABLETYPES as object ( CASE_TYPE_ID NUMBER) ';
    COMMIT;
    RETURN;
    END;
    END;

  • Error On Creating Type

    SQL> create or replace type WS_REQUEST as object
      2  (
      3    xml xmltype,
      4    http_request utl_http.req
      5   )
      6  /
    Warning: Type created with compilation errors
    SQL> show err;
    Errors for TYPE SYS.WS_REQUEST:
    LINE/COL ERROR
    4/16     PLS-00201: identifier 'UTL_HTTP.REQ' must be declared
    0/0      PL/SQL: Compilation unit analysis terminated
    SQLI logged in sys schema as sysdba. What is the problem?

    I think you cannot create types if the attributes' datatypes are based on package records, constants, etc
    See:
    mmara@pyn> create or replace package val
    is
    type dummy is record (
    pid number,
    pname varchar2(15));
    end val;
    Package created.
    mmara@pyn> create or replace type WS_REQUEST as object
    xml xmltype,
    http_request val.dummy
    Warning: Type created with compilation errors.
    mmara@pyn> show errors type ws_request;
    Errors for TYPE WS_REQUEST:
    LINE/COL ERROR
    0/0 PL/SQL: Compilation unit analysis terminated
    4/18 PLS-00201: identifier 'VAL.DUMMY' must be declared
    mmara@pyn>
    In that case, why don't you create the same type as seen in utl_http as an object in the schema?:
    TYPE req IS RECORD (
    url VARCHAR2(32767 byte), -- Requested URL
    method VARCHAR2(64), -- Requested method
    http_version VARCHAR2(64), -- Requested HTTP version
    private_hndl PLS_INTEGER -- For internal use only
    );

Maybe you are looking for

  • The volumn is very low on the computer or playing CD's.

    I do not Skype or anything like that - all I want to do is to listen to & burn CD's, but I haven't been able to do so as the volumn is too low.  I attached speakers (speakers which were on my old computer & worked fine), but the volumn is very faint

  • Error in importing ST-A/PI

    Hi Guru,   I am getting error whileexecute  RTCCTOOL program in se38. Error: Table contents for table /SSF/PTAB from addon ST-A/PI are missing So i checked in SAINT queue ST - A/PI(latest 01L_ECC600) component OCS package is missing. so I load latest

  • Ok, i am lost. do i need to re install adobe flash for games in   facebook thru explorer

    I have adobe flash 12 installed in programs section. it is enabled. I can play facebook games thru chrome. when i try to play via explorer, it says must install latest version. do i need to re install via windows, or does that 12 already run? Pat Wil

  • I need this reviewed

    Hi all! I need this reviewed. Its a zip of a pdf about some code I have developed/am developing. I would appreciate it a lot if I can get some opinions about it. http://www.geocities.com/raghuraman1/rad.zip I plan to put up a more complete document a

  • Logic unable to handle midi controller data from my alesis andromeda

    I'm having problems recording knob movement (filter sweeps, lfo rate movement) into logic from my alesis andromeda. When logic is in record mode and I'm moving the filter from low to high very slowly, the data comes out all jumpy, with the midi in/ou