Creating the Script to insert the table.

Hi Team
I have object type like
emp_obj(
empno number,
empname varchar2(22)
Refer to the Table Type
TYPE EmpTabTyp IS TABLE OF emp_obj
By using this below SP who to pepare the script to insert into the emp table.
create or replace procedure spi_emp(
in_emp emptabtype)
as
begin
for i in in_emp.first..in_emp.last
loop
insert into emp (empno,empno) values(in_emp.emp_obj.empno(i),in_emp.emp_obj.empname(i));
end loop;
end;

Your question is rather vague, but I guess you want something like this:
declare
    l_nt EmpTabTyp;
begin
    l_nt.extend(3);
    l_nt(1) := emp_obj(1111, 'MR KNOX');
    l_nt(2) := emp_obj(2222, 'FOX IN SOCKS');
    l_nt(3) := emp_obj(3333, 'THE LORAX');
    spi_emp(l_ent);
end;
/Cheers, APC

Similar Messages

  • Using Pages, I have created a document and inserted a Table for use in logging an inventaory. When I came to print this off however the lines for the table were missing but the text was in the Table format, weird! How do I print the Table?

    Using Pages, I have created a document and inserted a Table for use logging an inventory. When I came to print this document the lines and boarders of the Table feature did not print however the text did print in the table format. How do I get the lines and boarders to print also?

    Using Pages, I have created a document and inserted a Table for use logging an inventory. When I came to print this document the lines and boarders of the Table feature did not print however the text did print in the table format. How do I get the lines and boarders to print also?

  • How to create the Table of Content (TOC) in WEB

    Dear Sir
    Please help me
    How to create the Table of content (TOC) in Web Intelligence Report,
    Thanks
    Gnanasekarn.K
    Edited by: Gnanasekaran Kandasamy on Nov 20, 2008 11:12 AM

    Hi Gnanasekarn,
    You can create TOC in webi using Open Document, You can create link on the TOC and you can connect that link to open new report .
    With the help of open document you can open the specific portion of report.
    So you can achive your requirement using URL reporting or Open Document.
    Regards,
    Chaitanya Deshpande

  • Error in creating the table by code

    Hi All,
    When i creating the table by a code then i get the error code,
    Plz Help...
    Regards
    Vikas

    Hi Vikas,
    When u create a table so after creating the table you have to remove the both object,table object and field object.
    I think it ll helpful for you.
    Regards
    Yogesh

  • HELP!! just finished a 20pages report and when trying to create the table of contest I lost EVERYTHING... there is nothing left of my work. WHY????

    HELP!! just finished a 20pages report and when trying to create the table of contest I lost EVERYTHING... there is nothing left of my work. WHY????

    Hi Peter,
    Yes I'am in 5.2, I did mention it right after.
    This is wonderful Peter, great advice. I got to have my latest version before I created my table of contents.
    In Pages > Menu > File > Revert
    and see what you get.
    Peter
    Thank you so much!!
    Have a wonderful day

  • Find User Created the table Entry

    Hi All,
    This is my scenario , I've one Custom Table ztable which is there in the quality system and entries will be made in the table and it would be transported to the production system. Now My problem is this I've received one wrong entry in the table because of that i'm getting short dump in one of my application. Is there anyway to find out who has made the entries in the table and transported it. Table doesn't have entries like created by or created date like what we have in standard tables. Considered that tranport would be within a month.Your Solution is appreciated.
    Note : This is regarding the table contents not table.

    Hi Anand,
      Do the below.
    First go to Se16 and give table E071 and in the 
    selection  screen give Object = 'TABU' and Obj_Name
    = your Ztable name. It will give you all the
    trasport requests which are used for transporting table
    contents of you Z table. Then take the latest request
    and go to table E070  and give the request and check
    the entries, it will give you who created the request
    and when it is trasported like deatils.
    Hope this will help you , just give atry. But you will definitly know who tranported the table contents, it will give you the user id.
    Thanks & Regards,
    Siri.
    Message was edited by: Srilatha T

  • Please help me to create the table

    How may Long column will create in the table
    any restriction on this

    Longs are deprecated. Oracle actively discourages using long in any new application, in part because there are huge deficiencies. Better to go with LOB (CLOB, BLOB or BFILE) if at all possible.

  • Create the table in the rich text field

    Hi All,
    I am facing a problem with the copy paste of a table with content on to the textbox with rich text format from the word document in adobe livecycle designer.Like if you paste the table in the rich textbox , the border of the table will get collapsed and only the content will be pasted.So how can we avoid the collapsing of the table border.
    Here is the exact explanation of the problem
    step1: Drag and drop the textbox and check the allow multiple lines checkbox and increase the size of the textbox as shown. Change the field format to rich text.
    step2:Now copy a table with some content  from the word doc.
    step3:And paste it to that textbox field in preview PDF window.
    Here you can see the whole table structure got collapsed.
    so how we can get the whole table structure with the rich textbox??
    Thanks

    And the next question would be: What tags does it support?
    Answer: LiveCycle supports a subset of XHTML.  This subset is outlined in section 27 (Rich Text Reference) of the Adobe XML forms specification document found on the Adobe Developer XFA Resources page.
    Ref: http://blogs.4point.com/rob.mcdougall/2009/01/sending-rich-text-to-livecycle-es.html

  • Creating a script for inserting images

    I am new to the scripting concept, so please forgive me when I use incorrect terminology.
    I would like to create a script that will automatically place images in my InCopy document. Basically I want to type the names of image files in an InCopy document then run a script that will replace the name of the file with the actual image (either as an embedded image or as an image in a graphics frame, although the graphics frame might not work if the document isn't linked to an InDesign document.)
    I'm assuming I'd have to identify the image name in some way (slashes or something before and after) and during the script I'd have to identify where to find the given images, such as which folder they are in.
    Is this possible in InCopy?
    Eventually, these InCopy documents will be used in InDesign. Would it be better/faster to use a script to import these images into InDesign instead of InCopy?
    (In case the information is important, the images are all either .tif files or .eps files.)
    Also, how do I find someone who can write this script for me? I'm assuming there are freelance programmer people out there... how do I find one?
    Thanks for any advice/help you can give me!

    senza wrote:
    this is ok, this i understand now. But where to tell which schema for which user?I don't understand this question. You create a synonym in your own schema for the object you want a synonym for...
    so instead of referencing
    select * from scott.empyou would create a synonym for scott.emp, so you can do
    select * from emp

  • How to create the Table of Contents in Preview for a pdf file?

    Does anyone know how to use the Preview to create a new table of contents or add a new link to the existing table of contents?
    Thanks

    Preview cannot do this - it is not a PDF editing utility. If you have the original document in an editable format (eg a Pages, or Word document) then you can edit it, print it, and from the print dialogue, save as a PDF. Otherwise you'll need the full Adobe product or similar to acheive what you want.

  • How to create partition after creating the table

    I have created a table. Now I want to create range partitions of that table.Please tell me how to do this?

    Yes, that is true.
    It is also possible to create a new partitioned table with exactly the same structure, ensure it has a partition, and exchange (trade) the partition for that existing table. That is outlined in the DBA manual at http://tahiti.oracle.com under chapter 17 "Managing Partitioned Tables and Indexes" close to the keywords 'exchange' or 'convert'

  • Error while creating the table

    ORA-01658: unable to create INITIAL extent for segment in tablespace APPS_TS_TX_DATA

    Ora-code.com is a very useful site and faster even than using the docs.
    "ORA-01658:     unable to create INITIAL extent for segment in tablespace string
    Cause:     Failed to find sufficient contiguous space to allocate INITIAL extent for segment being created.
    Action:     Use ALTER TABLESPACE ADD DATAFILE to add additional space to the tablespace or retry with a smaller value for INITIAL"
    Cheers, APC

  • Create index partition in the table partition tablespace

    Hello,
    I am running a custom job that
    * Creates a tablespace daily
    * Creates the daily table partition in the tablespace created
    * Drops the tablepartition X days old
    * Drops the tablespace for that partition on X+1 day.
    The above job runs perfectly, but 'm having issues with managing the indexes for these partitioned tables. In the old database (10g - Single Node), all the partitions/indexes existed in one BIG tablespace and when I imported the table creation script into the new database, I modified all the table partitions & indexes to go into their respective tablespace.
    Eg:
    Table_name........Partition_name.....................Index_Part_name..........................Tablespace_name
    ============...================............====================...........=================
    TABL1...................TABL1_2012_07_16............TABL1_IDX_2012_07_16............TBS_2012_07_16
    TABL1...................TABL1_2012_07_15............TABL1_IDX_2012_07_15............TBS_2012_07_15
    But now when the job runs, it creates the index into the default tablespace TBS_DATA.
    Table_name........Partition_name.....................Index_Part_name..........................Tablespace_name
    ============...================.............====================...........=================
    TABL1...................TABL1_2012_08_16............TABL1_IDX_2012_08_16............TBS_DATA
    TABL1...................TABL1_2012_08_15............TABL1_IDX_2012_08_15............TBS_DATA
    I can issue alter index rebuild to move the indexes to its default tablespace, but how can I ensure that the index gets created in its designated tablespace?
    NOTE - the partition/tablespace management job that I run only creates the table partition and not the index.
    The new env is a 2-Node 11gR2 RAC cluster on Linux x86_64.
    Thanks in advance,
    aBBy.

    Excerpt from the job -
    This creates the partition into the new tablespace.
    v_sql_new_part := 'alter table '||tab_owner||'.'||tab_name||' add partition '||v_new_part_nm||'
    values less than (to_date('''||v_new_part_dt_formatted||''',''DD-MON-YYYY'')) tablespace '||part_tbs;
    execute immediate v_sql_new_part;New tablespace for new partition - because this is a 10T database and having multiple tablespaces helps with backup/recovery.
    Thanks,
    aBBy.

  • Error while creating the DWH tables using DAC

    Hi,
    I am getting error while creating the DWH tables using DAC. I have created a ODBC DSN using merant driver with DAC repository DB credentials and the test connection is successful. And while creating the tables i gave the olap dw credentials and the DSN name which i created earlier. But it throws the error as below:
    Please find the below mentioned error message
    =====================================
    STD OUTPUT
    =====================================
    CREATING SIEBEL DATABASE OBJECTS
    F:\DAC\bifoundation\dac\UTILITIES\BIN\DDLIMP /I N /s N /u infdomain /p ******* /c DB_DAC /G "SSE_ROLE" /f F:\DAC\bifoundation\dac/conf/sqlgen/ctl-file/oracle_bi_dw.ctl /b "" /K "" /X "" /W N
    Error while importing Siebel database schema.
    =====================================
    ERROR OUTPUT
    =====================================
    Siebel Enterprise Applications ODBC DDL Import Utility, Version 7.7 [18030] ENU
    Copyright (c) 2001 Siebel Systems, Inc. All rights reserved.
    This software is the property of Siebel Systems, Inc., 2207 Bridgepointe Parkway,
    San Mateo, CA 94404.
    User agrees that any use of this software is governed by: (1) the applicable
    user limitations and other terms and conditions of the license agreement which
    has been entered into with Siebel Systems or its authorized distributors; and
    (2) the proprietary and restricted rights notices included in this software.
    WARNING: THIS COMPUTER PROGRAM IS PROTECTED BY U.S. AND INTERNATIONAL LAW.
    UNAUTHORIZED REPRODUCTION, DISTRIBUTION OR USE OF THIS PROGRAM, OR ANY PORTION
    OF IT, MAY RESULT IN SEVERE CIVIL AND CRIMINAL PENALTIES, AND WILL BE
    PROSECUTED TO THE MAXIMUM EXTENT POSSIBLE UNDER THE LAW.
    If you have received this software in error, please notify Siebel Systems
    immediately at (650) 295-5000.
    F:\DAC\bifoundation\dac\UTILITIES\BIN\DDLIMP /I N /s N /u infdomain /p ***** /c DB_DAC /G SSE_ROLE /f F:\DAC\bifoundation\dac/conf/sqlgen/ctl-file/oracle_bi_dw.ctl /b /K /X /W N
    Connecting to the database...
    28000: [DataDirect][ODBC Oracle driver][Oracle]ORA-01017: invalid username/password; logon denied
    Unable to connect to the database...
    any help is appreciated.
    Thanks,
    RM

    The fact that you are getting an "ORA-01017: invalid username/password; logon denied" message indicates that you are at least talking to the database.
    The log shows that username "infdomain" is being used. Can you double check the username and password you have in DAC in a SQL*Plus/SQL Developer session?
    Please mark if useful/helpful,
    Andy.

  • Creating tables on SQL studio and viewing the table in the SAP system

    i have just created a table using the SQL studio and wants to use it view it in the SAP system using the SAP logon. till now i have not found a way to create it therefore any help is much appreciated.

    Hmm... you want to see tables via SAPLogon ??
    Ok, let's assume you really want to access tables via ABAP instead.
    For that you've two options:
    1. Create the table in the ABAP dictonary (SE11) exactly like you created it in the database and activate the table.
    After that you can access the table via SE16 or any ABAP as you like.
    2. You don't create the table in the ABAP dictonary and use native SQL to access the data.
    Neither of these options is meant to be the way to do it.
    The correct way would be to design the whole table in the ABAP dictionary and create the table on the database from that.
    regards,
    Lars

  • How to create the custom table?

    Hi, how to create the custom table and how to integrate the table with defferent R/3?
    my requiremnt is i have to create the two tables and those i have to integrate with the existed R/3 and using those R/3 i have to update my custom tables .....can give me some idea?
    Tks
    DPk

    how to create the custom table
    There are two approach in creating a table.
    1. Bottom-up approach
    2. Top-down approach.
    Both are valid and you can choose which approach is suitable for you. I always use the bottom-up approach. Here are the steps to create the tables with this approach.
    1. SE11 will take you to the DDIC and enter the name of the new table to be created. Let us say Zname. Click create.
    2. Enter the short discription of the table and enter the field of the table. If it is primary key and you have to check the box.
    3. Enter the data element and double click it, you will be asked to save and will take you to data element discription page. Enter the short discription of the data element and enter the information of domain like the length of field and type of field.
    4. If you wanted to use the existing domain then its fine, or else, you have to create one. Enter the domain name in the data element page and double click it. Page will ask to save and jump to domain creation page.
    5. In the domain page, you have to save the information which you have already given in the data elements page and check it. Before going to data element page, you have to activate the domain.
    6. Go to data element page and save, check and activate.
    7. Go to main table page and save, check, and activate.
    8. Also, you have to save the technical settings of the table.
    The table is now ready for operation. You can use it in your program or you can use it to enter information.
    Check table: It is the table which will have all the information about the Foreign keys which are the primary keys in the check table.
    It can be created by creating the foreign key from the main table. Click foreign key in the main table and it will take you to a page which will ask for table name and field to which foreign key relation has to be associated. Enter the information and you can create the check table automatically.
    SM30 is used for maintenance of the table, that is to realease the errors occured during the creation of the table.
    how to integrate the table with defferent R/3
    Transport the Table to the another server/client/qas/prd
    Kanagaraja L

Maybe you are looking for

  • How to justify text vertically in multi-column frame

    How do I justify text vertically in a multi-column frame but within the baseline grid? Working at a very busy publication, fitting text evenly in multi-column text boxes are crucial to be done quickly! I understand that it can be done manually by adj

  • Java script is not working in custom tabular form

    hai all, i have changed my built in tabular form to custom tabular form.my java script is coding working fine in built in tabular form . But in my custom tabular form java script is not working ,since it is created as standard report(Display As). pls

  • Why can't I play DVDs from my mac to my Apple TV

    I can't play a DVD from my iMac to my Apple TV, why and what can I do to fix this

  • What is wrong in this code .... !

    Hi I used the code below to raed a histogram image stored in an two dim. array to detmine the peaks of the histogram or in other words (the tallest rows in the array) but I faced a wrong results. Why ? I couldnt figure out why . Help me plz . Thanks

  • Problem in retrieving the model content

    Hi, i am using the webservice as a model in my application. In the database table i have nearly 100 fields, for this i have written a CRUD's in EJB and make it available through the webservices. Now i am using this webservices in the webdynpro. while