Error when creating table with nested table of object

Dear all,
I tried to create a table that contains nested table of an object but got an error:
create or replace type some_obj is object (
  a number, b blob
  4  /
Type created.
create or replace type some_type is table of some_obj;
  2  /
Type created.
SQL>
create table test (obj_id number, temp some_type) nested table temp store as nes_tab;
Table created.
SQL> create table test (obj_id number, temp some_type) nested table temp store as nes_tab
ERROR at line 1:
ORA-00955: name is already used by an existing objectWhat is causing the error? How can I troubleshoot this?
best regards,
Val

Valerie Debonair wrote:
never mind, I put "/" at the end of the create statement that makes executing create table twice....Yep. If I'm writing a script, I tend to just stick with "/" for all my statements, including the SQL as well as the DDL, otherwise it can be confusing whether a ";" is needed or not or whether it will try and execute it twice like you found.
"/" works for all.

Similar Messages

  • Error when creating index with parallel option on very large table

    I am getting a
    "7:15:52 AM ORA-00600: internal error code, arguments: [kxfqupp_bad_cvl], [7940], [6], [0], [], [], [], []"
    error when creating an index with parallel option. Which is strange because this has not been a problem until now. We just hit 60 million rows in a 45 column table, and I wonder if we've hit a bug.
    Version 10.2.0.4
    O/S Linux
    As a test I removed the parallel option and several of the indexes were created with no problem, but many still threw the same error... Strange. Do I need a patch update of some kind?

    This is most certainly a bug.
    From metalink it looks like bug 4695511 - fixed in 10.2.0.4.1

  • Error when creating PO with reference to PR

    Hello Expert,
    When creating PO with reference to PR I encountered with one error i.e. system is taking into consideration one to one relation of PR line item to PO line item. For example: I have created PR with one line item for XYZ value and with reference to PR line item I am creating one PO but with two line items in PO that means I am splitting PR value into two line items in PO, 1st line item with zero tax and second one is with tax.
    So there is one PR line item but in PO I am creating two line items with reference to single PR item. In this case system is giving error saying Item 001 WBS element XXXXXXXXXX budget exceeded. message no: BP604. However if I create single line item in PO then it wont give any error.
    Please suggest any customization setting is done for such kind of behavior of the system.
    Thanks
    Shyam

    Hi,
    SAP creates the requisition with item category "U" even in case of cross-company (intercompany) purchase requisition.
    When converting it to PO the item category becomes blank - as I tried and I got no error message.
    Please check your settings under SPRO > MM > Purchasing > Purchase Order > Define Document Types (V_T161). You will see (if standard settings have not been changed) that NB requisition type with "U" item category is allowed for NB purchase order type with " " (empty) item category.
    Regards,
    Csaba

  • Getting Error when createing Table control in Module Pool.

    Hi expert ,
    i am creating a module pool program . i want to crate line item value for that i have created table control  on screen 200 .
    but when i am activation to that giving error below mention.
    The field "ZFBDCHALLAN-EBELN" is not assigned to a loop. "LOOP ...ENDLOOP" must appear in "PBO" and "PAI".
    thanks
    chandra

    Its mandatory to have loop endloop in both events
    PBO and PAI
    loop your internal table similarly.
    Please check it should be below format
    PROCESS BEFORE OUTPUT.
    * Set PF Status for screen 100.
      MODULE status_0200.
    * This module will initialize the field
      MODULE init_0100.
      LOOP AT t_custmat_asg INTO w_custmat_asg
          WITH CONTROL tc_1
          CURSOR tc_1-current_line.
    * It will count the record in internal table
        MODULE set_linecount.
    * Screen Modifications
        MODULE status_check.
      ENDLOOP.
    PROCESS AFTER INPUT.
    * Module AT EXIT-COMMAND
      MODULE exit_0200 AT EXIT-COMMAND.
      LOOP AT t_custmat_asg .
        CHAIN.
          FIELD :
          w_custmat_asg-check,
                  w_custmat_asg-kunnr,
                  w_custmat_asg-name1,
                  w_custmat_asg-asgtyp,
                  w_custmat_asg-productcls,
                  w_custmat_asg-sctegry,
                  w_custmat_asg-ctegry,
                  w_custmat_asg-parent,
                  w_custmat_asg-frmdate,
                  w_custmat_asg-todate,
                  w_custmat_asg-frecster,
                  w_custmat_asg-salesrep,
                  w_custmat_asg-flag,
                  w_custmat_asg-username,
                  w_custmat_asg-udate.
    * Validation For Forecaster.
          MODULE validate_forecaster.
    * Validation For Salesrep.
          MODULE valiate_salesrep.
    * Validation for Customer
          module validate_customer.
    * Validate null value
          module validate_null_vals.
    * Validation For Data Changed On The Screen
          MODULE data_changed_0200 ON CHAIN-REQUEST.
        ENDCHAIN.
      ENDLOOP.
    Regards
    Satish Boguda

  • Error when CREATE TABLE

    Hi,
    I'm trying to create the following table
    SQL>  CREATE TABLE T_IMP (
      2      C_ID VARCHAR2(16 BYTE) NOT NULL ENABLE,
      3      I_ID VARCHAR2(50 BYTE) NOT NULL ENABLE,
      4      POWER NUMBER(*,0) DEFAULT 0,
      5      HRS NUMBER(*,0) DEFAULT 0,
      6      KWH NUMBER GENERATED ALWAYS AS (POWER*HRS) VIRTUAL VISIBLE ,
      7      ACT VARCHAR2(1 BYTE) DEFAULT 'Y' NOT NULL ENABLE,
      8      USRC VARCHAR2(64 BYTE),
      9      DATE_F DATE DEFAULT CURRENT_TIMESTAMP NOT NULL ENABLE,
    10      CONSTRAINT T_IMP_PK PRIMARY KEY (C_ID, I_ID)
    11     );But I get this error:ORA-00406: COMPATIBLE parameter needs to be 11.0.0.0.0 or greater
    ORA-00722: Feature "Virtual columns"below you can see my Oracle versione and compatible parameter:
    Oracle version: 11.2.0.1.0
    select name, value
    from v$parameter
    where name = 'compatible';
    NAME                 VALUE
    compatible           10.2.0.3.0How can I create my table with Virtual columns?
    Thanks in advance!

    R. Royal wrote:
    Ok,
    but my not-rhetorical question is:
    Can I modify the compatible parameter to allow me to create the table?Yes you can. But just make sure that the person who has set it that way does not come to you screaming!!
    Seriously, some parameter is changed by someone for some reason. The reason could be good or bad, but there must be a reason. And your job is to find it out ;)

  • Error when creating BufferedImage with IndexColorModel from a byte array.

    Hi, I have a 1-dimentional byte array and an IndexColorTable, and I can't figure out how to combine the 2 into an BufferedImage without unnecessary copying/reallocating of the image buffer.
    The color model I have is:
    int [] cmap = new int [numColors];
    cmap[i++] = 0xffa0f000;  /etc.
    new IndexColorModel(8, 22, cmap, 0, true,  transparentIndex,  DataBuffer.TYPE_BYTE );Thanks for your help
    -Ben
    Ps.
    I've was looking at some example code (http://javaalmanac.com/egs/java.awt.image/Mandelbrot2.html?l=rel), and can't figure out how to go from the color model they're using to the one I have (the 8 bit one specified above). When I replace the 4bit colormodel in the code below with the 8bit color model specified above, I get the following error:
    [java] java.lang.IllegalArgumentException: Raster ByteInterleavedRaster: width = 5120 height = 3520 #numDataElements 1 dataOff[0] = 0 is incompatible with ColorModel IndexColorModel: #pixelBits = 8 numComponents = 4 color space = java.awt.color.ICC_ColorSpace@c51355 transparency = 2 transIndex = 22 has alpha = true isAlphaPre = false
    [java] at java.awt.image.BufferedImage.<init>(BufferedImage.java:613)
    Code:
    byte[] pixelArray = (byte[]) getData_CHAR();                
    int width = 5120;
    int height = 3520;
    int numbytes = width*height;
    //create DataBuffer using byte buffer of pixel data.
    DataBuffer dataBuffer = new DataBufferByte(pixelArray, numbytes, 0);
    //prepare a sample model that specifies a storage 8-bits of pixel data in an 8-bit data element
    int bitMasks[] = new int[]{0xf};
    SinglePixelPackedSampleModel sampleModel = new SinglePixelPackedSampleModel(DataBuffer.TYPE_BYTE, width, height, bitMasks);
    //create a raster using the sample model and data buffer
    WritableRaster writableRaster = Raster.createWritableRaster(sampleModel, dataBuffer, new Point(0,0));
    //generate 16-color model
    byte[] r = new byte[16];
    byte[] g = new byte[16];
    byte[] b = new byte[16];
    r[0] = 0; g[0] = 0; b[0] = 0;
    r[1] = 0; g[1] = 0; b[1] = (byte)192;
    r[2] = 0; g[2] = 0; b[2] = (byte)255;
    r[3] = 0; g[3] = (byte)192; b[3] = 0;
    r[4] = 0; g[4] = (byte)255; b[4] = 0;
    r[5] = 0; g[5] = (byte)192; b[5] = (byte)192;
    r[6] = 0; g[6] = (byte)255; b[6] = (byte)255;
    r[7] = (byte)192; g[7] = 0; b[7] = 0;
    r[8] = (byte)255; g[8] = 0; b[8] = 0;
    r[9] = (byte)192; g[9] = 0; b[9] = (byte)192;
    r[10] = (byte)255; g[10] = 0; b[10] = (byte)255;
    r[11] = (byte)192; g[11] = (byte)192; b[11] = 0;
    r[12] = (byte)255; g[12] = (byte)255; b[12] = 0;
    r[13] = (byte)80; g[13] = (byte)80; b[13] = (byte)80;
    r[14] = (byte)192; g[14] = (byte)192; b[14] = (byte)192;
    r[15] = (byte)255; g[15] = (byte)255; b[15] = (byte)255;
    //create buffered image    
    ColorModel colorModel = new IndexColorModel(4, 16, r, g, b);
    BufferedImage image = new BufferedImage(colorModel, writableRaster, false, null);Message was edited by:
    ben_weisburd
    Message was edited by:
    ben_weisburd

    I had the same problem too.
    anyone found the solution for this problem?
    thanks
    Bruno Rabino
    When I try to make a MD-form, where the base-table for the detail contains a column with a BLOB-datatype. I get following error when I finish creation of the form.
    Error: Exception from wwv_generate_component.build_procedure (WWV-01821)
    Error creating module: ORA-01403: no data found (WWV-16042)
    When I use the table with the BLOB as master or in a form, it works fine.
    Has anyone else experienced this problem? Or knows a way to fix or work around it. Thanks in advance.
    Portal version: 3.0.6.6.5
    null

  • Error when creating MD with a blob on detail

    When I try to make a MD-form, where the base-table for the detail contains a column with a BLOB-datatype. I get following error when I finish creation of the form.
    Error: Exception from wwv_generate_component.build_procedure (WWV-01821)
    Error creating module: ORA-01403: no data found (WWV-16042)
    When I use the table with the BLOB as master or in a form, it works fine.
    Has anyone else experienced this problem? Or knows a way to fix or work around it. Thanks in advance.
    Portal version: 3.0.6.6.5
    null

    I had the same problem too.
    anyone found the solution for this problem?
    thanks
    Bruno Rabino
    When I try to make a MD-form, where the base-table for the detail contains a column with a BLOB-datatype. I get following error when I finish creation of the form.
    Error: Exception from wwv_generate_component.build_procedure (WWV-01821)
    Error creating module: ORA-01403: no data found (WWV-16042)
    When I use the table with the BLOB as master or in a form, it works fine.
    Has anyone else experienced this problem? Or knows a way to fix or work around it. Thanks in advance.
    Portal version: 3.0.6.6.5
    null

  • Error when creating connection with SSO Authentication mode

    Hi All,
    when I am creating the connection with Authentication Mode as SSO, I get error "Unable to connect to SAP BW Server User abc has no RFC Authorization for function group SYST".
    When I am craeting connection with specific user id and Password it works fine.
    Pls. let me know whats the problem with creating connection with SSO.
    System Info: BOXIR.3.1 Sp3, SAP 7.1
    Regards,
    Nisha

    Yes, I have installed Integration Kit, and configured the SSO.
    I am able to login into designer with Authentication as SAP.
    But, the Problem is with connection creation with SSo authentication mode.
    Is there any property or role needs to be defined for the universe designer Group or user, so that SSO is allowed in authentication mode?
    Regards,
    Nisha

  • ORA-28113 policy predicate has error when created VO with some tables

    When I created a VO with just SQL statements(no EO), if the sql statements included some special tables or views such as:
    hz_locations
    oe_order_headers_v
    when testing the validation of the sql statement, I encountered the following errors:
    SQL Query Error Message: ORA-28113 policy predicate has error
    and I can't continue to create this VO.
    Does JDeveloper have some special rules to check some tables or views behind the scenes?
    I used the apps/apps to connect and the following sql to create the VO:
    select state from hz_locations
    Can anyone give some help?
    Many thanks in advance!

    Hi prasannaj,
    Thanks for your prompt response.
    I find the solution and would like to share with all.
    As I guessed, this is related to the policy.Execute the following sql:
    select * from dba_policies where object_name ='hz_locations'
    you'll find the point.
    So I run policy manager with oracle database client, and find the policy related to the table 'hz_locations' , and disable this policy.
    At this time, with the original sql:
    select * from hz_locaitons
    created VO and everything goes fine and passed the validation.
    But in fact I wondered if this is the best workaround for this issues.
    If anyone has the same problem, you can refer to my solution.
    If you have better solution, also let me know.
    Thanks!

  • Error when creating table (Document contains no data)

    Hi,
    I've installed htmldb 2.0 and after playing with it for a while, everything seems to be ok, except
    for table creation. No matter I use the sql command console or the object creation wizard, the
    situation is the same: i can arrive until the last confirmation page, and after submitting the browser
    complains about a page with no data (Document contains no data).
    I can create other things, such as views, functions, sequences, even applications. Is just table the one giving problems. Can somebody tell me where are the relevant logs, in order to trace better the situation? Or, if you have any other suggestion (maybe I missed something during the installation, or things like that).
    Thanks in advance.
    salu2
    dario estepario ...

    Sure, this is part of the weird thing: nothing is displayed when this error happens. However, yesterday, a friend of mine made the same test (with another browser) and I saw some messages like this ones on the error_log*:
    [Tue Nov 22 15:12:01 2005] [error] [client 201.138.102.50] [ecid: 1132693921:192.168.1.1:24300:0:155,0] mod_plsql: /pls/htmldb/wwv_flow.accept HTTP-500 Error Reading Data from Client!!
    At least, they are a http-500 errors ... while in my case, I can not receive any answer at all.
    But this was yesterday, today ... every time I reproduce the situation, the error_log does not move.
    Regards,
    PS: Another point: I can create the table importing data.

  • Error when creating table in cloudscape database

    Hi, all:
    I installed j2sdk1.4.0, j2sdkee1.3.1 on windows XP. I am able to start j2ee, cloudscape and deploy without error. I try to follow the J2EE tutorial to setting up the database, I go to the j2eetutorial/examples directory and type "ant create-savingsaccount-table", I got error "java.lang.NoClassDefFoundError: COM/cloudscape/tools/ij".
    Following are the environment variables:
    JAVA_HOME C:\j2sdk1.4.0
    J2EE_HOME C:\j2sdkee1.3.1
    CLASSPATH %JAVA_HOME%\lib\tools.jar;%J2EE_HOME%\lib\j2ee.jar;%J2EE_HOME%\lib\jhall.jar;%J2EE_HOME%\lib\system\cloudutil.jar;%J2EE_HOME%\lib\system\cloudscape.jar;%J2EE_HOME%\lib\cloudscape\cloudclient.jar;%J2EE_HOME%\lib\cloudscape\RmiJdbc.jar
    cloudscape is from the j2ee1.3.1 bundle. does anyone know how to get around this?
    please help. thanks in advance.

    I'm having the same problem.
    I really did some searching put couldn't find a working solution :|
    This worked fine at work but when I continued learing at home it didn't work anymore. I have xp at home and nt4 at work.

  • Error when create JLabel with ImageIcon from server

    Hi!
    When I run applet that contain JLabel(String, ImageIcon, int) from server I get follow error: "java.security.AccessControlException: access denied (java.io.FilePermission middle-1.gif read)". .gif-file and .class-file are located in the same directory. From local disk this applet run successfully. Who can help me?
    Thanks.

    Look at the docs for Applet class, and use getImage()
    from there. Running in browser is quite different
    than to run locally...
    Better yet to pack image and classes in jar file,
    and read from there with getResourceAsStream()
    ( search forums, there were examples )

  • Error in transporting ODS(Error when creating the export DataSource.......)

    Hi All,
        When I try to transport ODS from dev to quality i m getting the following error.
      <b>DataSource 8XADDR1 does not exist in source system BQ1CLNT355 of version A  
    Error when creating the export DataSource and dependent Objects             
    Error when activating ODS Object XADDR1                                     
    </b>
        <b>XADDR1</b> is my ODS.  <b>BQ1CLNT355</b>  is myself source system. When i checked the connection in the source system tab in Quality,it is ok.
      Please Suggest solution,if any body encountered same problem. It is very urgent for me.
    Regards,
    Ramana.

    Hi
    You generate export datasource once again
    Replicate your source system in qual and then try to transport the ODS and the datamart object 8ODS ....
    Hope this helps
    Reg
    N Ganesh
    assign points if useful***

  • Syntax error when creating a user-defined table type in SQL Server 2012

    Why am I getting a syntax error when creating a user-defined table type in SQL Server 2014?
    CREATE TYPE ReportsTableType AS TABLE 
    ( reportId INT
    , questionId INT
    , questionOrder INT );
    Results:
    Msg 156, Level 15, State 1, Line 1
    Incorrect syntax near the keyword 'AS'.

    Hope these posts could help, 
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/37a45a9a-ed8c-4655-be93-f6e6d5ef44be/getting-incorrect-syntax-while-creating-a-table-type-in-sql-server-2008-r2?forum=transactsql
    Regards, Dineshkumar,
    Please Mark as Answer if my post answers your question and
    Vote as Helpful if it helps you

  • (500) Internal Server Error when create storage table use development account

    Yesterday, our team suddenly cannot use storage emulator all, it always said 'can not create database' when start the emulator. Finally, we found a issue may affect this, we delete the WAStorageEmulatorDb30.mdf file in C:\Users\[User], and create manully
    in localdb, and so we can start the storage emulator later.
    But we still can not use it, since it always throw exception when creating Tables/Blobs/Queues, the exception like this:
    Microsoft.WindowsAzure.Storage.StorageException was caught
    HResult=-2146233088
    Message=The remote server returned an error: (500) Internal Server Error.
    Source=Microsoft.WindowsAzure.Storage
    StackTrace:
    at Microsoft.WindowsAzure.Storage.Core.Executor.Executor.ExecuteSync[T](RESTCommand`1 cmd, IRetryPolicy policy, OperationContext operationContext)
    at Microsoft.WindowsAzure.Storage.Table.TableOperation.Execute(CloudTableClient client, CloudTable table, TableRequestOptions requestOptions, OperationContext operationContext)
    at Microsoft.WindowsAzure.Storage.Table.CloudTable.Exists(Boolean primaryOnly, TableRequestOptions requestOptions, OperationContext operationContext)
    at Microsoft.WindowsAzure.Storage.Table.CloudTable.CreateIfNotExists(TableRequestOptions requestOptions, OperationContext operationContext)
    at WorkerRole1.TableService..ctor() in c:\Users\<user>\Documents\Visual Studio 2013\Projects\WindowsAzure8\WorkerRole1\TableService.cs:line 21
    InnerException: System.Net.WebException
    HResult=-2146233079
    Message=The remote server returned an error: (500) Internal Server Error.
    Source=System
    StackTrace:
    at System.Net.HttpWebRequest.GetResponse()
    at Microsoft.WindowsAzure.Storage.Core.Executor.Executor.ExecuteSync[T](RESTCommand`1 cmd, IRetryPolicy policy, OperationContext operationContext)
    InnerException:
    And if we visit this url: http://127.0.0.1:10002/devstoreaccount1, it said Internal Error:
    <error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
    <code>InternalError</code>
    <message xml:lang="en-US">
    Server encountered an internal error. Please try again after some time. RequestId:e9637e04-76ad-4237-8df0-31a511e4c116 Time:2014-04-25T00:56:16.9990136Z
    </message>
    </error>
    Any ideas of this? We still don't know what caused this whole trouble from yesterday, is it possible affect the storage emulator just by code? We were coding, not configuring anything. Strange.

    I have tried it before, but not works.
    Finally, I solved this issue by delete LocalDB instance, uninstall storage emulator and install LocalDB instance / storage emulator again, it works now. Quite strange.

Maybe you are looking for

  • Cannot open files while printing

    Does anyone know of a reason why when printing a large pdf (say around 100+ pages) i cannot open another file in the same program? The only way i have found around this is to: open one file to be printed in Reader then once the printing process has b

  • Fill in all required entry fields Message no. 00055

    Hi, I am facing the Bdoc ,BUPA_MAIN error Fill in all required entry fields Message no. 00055.The scenario is BP will replicate from CRM 2007 to  ECC 6.0. Where this is particularerly prospect role the above error is coming. Some of the prospects are

  • The lower right corner of my screen clicks when I press on it.

    I have an iPhone 5, and when ever I press on the bottom right corner of the screen, it makes a clicking noise. If I press hard, it will stop for a few minutes, but then starts again. Whats wrong?

  • Issues with songs/older NI AU settings after upgrading logic and NI AU

    Hi All, I'm digging around the net for this, but thought I'd ask you all. I have older songs created with Logic 7 on a PPC with Absynth 3. I have since upgraded to an Intel and Logic 8.02 and also have upgraded to Absynth 4. When I open this older so

  • Migrating photos from Tiger to Mavericks

    I'm attempting to migrate over 4,000 photos from Tiger 10.4.11 on my old G4 to my new iMac with Mavericks 10.9.1.  I lose all of my keywords, events, etc.  Is there any way to get around this?  Thanks in advance for your help!