How create a record type and a pl/sql table of that record type in database

Hi
I want to create a record type and then I want to create a PL/SQL table in the oracle 9i database.
I have done it in PL/SQL block.
But when I am trying to do it in database it is throwing me some error.
Could you please tell me how can I do that?
Regards

user576726 wrote:
Hi
I want to create a record type and then I want to create a PL/SQL table in the oracle 9i database.
I have done it in PL/SQL block.
But when I am trying to do it in database it is throwing me some error.
Could you please tell me how can I do that?
RegardsRECORD type is supported only in PL/SQL for SQL you need to use OBJECT type.

Similar Messages

  • I have a 17" Mac Book Pro and a 13" Mac Book Pro...both use the same Apple ID. My wife now wants to change the Apple ID on the 13" to her Apple ID.  How do I do this and not loose the information on that computer?

    I have a 17" Mac Book Pro and a 13" Mac Book Pro...both use the same Apple ID. My wife uses the 13" and now wants to change the Apple ID on the 13" to her Apple ID.  How do I do this and not loose the information on that computer?

    Hello Teddy53149 and welcome to Apple Support Communities,
    Follow this procedure:
    Change your OS X account name and home directory name - Apple Support
    As they recommend and as always when you're messing with administrator accounts back everything up first.

  • I shot a video using my iPad 2, and it is too far away from the subject. How do I zoom in and save the whole video like that? Thanks!

    I shot a video using my iPad 2, and it is too far away from the subject. How do I zoom in and save the whole video like that? Thanks!

    Sorry to be such a moron with this, but I just don't have much experience with this iPad.  I have had it for over a year and I just keep adding stuff to it and it has worked great.  Now that the memory is used up, I am trying to figure out how to free up space and not lose what I have paid for. 
    So, Step 1 is complete, as I have "Transferred" all of the purchases.
    What is Step 2?  I unchecked the concert on the iTunes library, did a sync, but it's still on my iPad.
    Thanks again for the help!!!

  • Is there a recommended limit on the number of custom sections and the cells per table so that there are no performance issues with the UI?

    Is there a recommended limit on the number of custom sections and the cells per table so that there are no performance issues with the UI?

    Thanks Kelly,
    The answers would be the following:
    1200 cells per custom section (NEW COUNT), and up to 30 custom sections per spec.
    Assuming all will be populated, and this would apply to all final material specs in the system which could be ~25% of all material specs.
    The cells will be numeric, free text, drop downs, and some calculated numeric.
    Are we reaching the limits for UI performance?
    Thanks

  • How to read ecel sheet and insert into oracle table

    hi all,
    am working on forms builder 6i. and i want , from a trigger to read from a a sheet excel file the data and insert into a table that i had aleady created.
    i whrite a code that can till now open the excel file but i cant read the data to insert it into the table.
    am using TEXT_IO.IS_OPEN to open the file
    TEXT_IO.GET_LINE to take each line
    and subst(x as variable) to read the first line , but the subsrt return nohing
    any solution??

    There's already a topic made on this: how to copy data from excel to oracle forms

  • How to export full dump and metadata of particular table

    let us consider mytest schema is having 6 tables
    tname tabtype
    myt table
    myaxpertlog table
    abb table
    ccc table
    ddd table
    xxx table
    now from this schema i want full dump and also from myaxpertlog table i required metadata only not records.
    c:> export mytest/log file=20130409mytest0904pm.dmp tables=(myaxpertlog) rows=n
    if i tried i am get only one table but it does have records.
    Not like this.

    Hello,
    I follow a smart way to do this:
    1-Create a parfile then put the conditions in.
    2-put in this parfile the conditions
    directory=DPUMP_DIR
    dumpfile=dumpfilename.dmp
    logfile=logfilename.log
    schemas=yourschema
    query=Yourschema.myaxpertlog:"where 1=2"In this example you will get all the tables you want with data inside the schema name you provided.
    The table myaxpertlog will come with metadata only because the condition 1=2 will never occur.
    Please note that this condition will apply only if you want to export those tables from the same schema.Kind Regards
    Mohamed ElAzab
    http://mohamedelazab.blogspot.com/

  • How create query based .txt, .pdf file in SQL/PLSQL

    Hello,
    I am sending email alerts for new employements/resigns.
    I want to create ry based .txt, .pdf file in SQL/PLSQL and email it.
    How i can create file
    queyy : select dempartment,empid,name,joining_date from employee;
    Thanks

    Andreas Weiden wrote:
    There is a commercial tool called plpdf, but i can't tell if its good..
    Also possible would be to create an XML-FO with sql or pl/sql.
    And then use Apache-FOP to convert the XML-FO into a pdf, rtf or whatever you want.
    No extra costs but the effort to learn a bit about the fo elements/syntax.
    I think the newer Apex-Versions can doing something like this also. Maybe additionally ask in the Apex Forums.

  • How to fetch the data from a pl/sql table and varray, with some example

    I want to fetch the data using a cursor from Pl/sql table and varry and I want to update the data.
    Please provide me some example.

    PL/SQL Table  - please note that, right term is Associative Array.
    Presumably you are referring to the 'often heated' back-and-forth that sometimes goes on in the forums when people refer to ANY PL/SQL type using a term with the word 'table' in it?
    Curious that you then show an example of a nested table!
    type emp_tab is table of employees%rowtype;
    The 'right term' for that is 'nested table'. The following would be an 'associative array' or 'index-by table'
    type emp_tab is table of employees%rowtype INDEX BY PLS_INTEGER;
    Those used to be called 'PL/SQL tables' or 'index-by tables' but 'associative array' is the current term used.
    Associative Arrays
    An associative array (formerly called PL/SQL table or index-by table) is a set of key-value pairs. Each key is a unique index, used to locate the associated value with the syntax variable_name(index).
    The data type of index can be either a string type or PLS_INTEGER.
    Since the Oracle docs often use 'PL/SQL table' or 'index-by table' it isn't unusual for someone asking a question to use those terms also. Technically the types may not be 'tables' but it's clear what they mean when they use the term.
    In PL/SQL the term 'nested table' is still used even though the PL/SQL collection is not really a table. SQL does have nested tables where the data is actually stored in a table. The PL/SQL  'nested table' type can be used as the source/destination of the SQL data from a nested table so that may be why Oracle uses that term for the PL/SQL type.
    The doc that SKP referenced refers to this use:
    Nested Tables
    In the database, a nested table is a column type that stores an unspecified number of rows in no particular order. When you retrieve a nested table value from the database into a PL/SQL nested table variable, PL/SQL gives the rows consecutive indexes, starting at 1.

  • How to fetch records from the database into a combo box?

    Hi:
    I´m really new with ABLBPM and I´m trying to fetch records from the database to display them into a combo box as valid values for a presentation but I´m using a dynamic method with this code:
    <em>for each row in SELECT campo1, campo2 from TABLE</em>
    <em>do</em>
    <em>solicitudes[] = [row.campo1, row.campo2]</em>
    <em>end</em>
    <em>return solicitudes
    </em>And the debugger says that SQL instructions can be used only in fuctions and procedures that are executed on the server.
    Do you know another way to do it?
    P.D. Sorry for my terrible english
    Greetings

    Hi Steve,
    Thank you, your idea is perfect, but when I try to run the screenflow where the combo should be filled I get this error:
    fuego.lang.ComponentExecutionException: No se ha podido ejecutar correctamente la tarea.
    Motivo: 'java.lang.NullPointerException'.
         at fuego.web.execution.InteractiveExecution.setExecutionError(InteractiveExecution.java:307)
         at fuego.web.execution.InteractiveExecution.process(InteractiveExecution.java:166)
         at fuego.web.execution.impl.WebInteractiveExecution.process(WebInteractiveExecution.java:54)
         at fuego.webdebugger.servlet.DebuggerServlet.redirect(DebuggerServlet.java:136)
         at fuego.webdebugger.servlet.DebuggerServlet.doPost(DebuggerServlet.java:85)
         at fuego.webdebugger.servlet.DebuggerServlet.doGet(DebuggerServlet.java:66)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
         at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
         at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
         at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
         at fuego.web.execution.servlet.ServletExternalContext.forwardInternal(ServletExternalContext.java:197)
         at fuego.web.execution.servlet.ServletExternalContext.processAction(ServletExternalContext.java:110)
         at fuego.webdebugger.servlet.DebuggerExecution.dispatchComponentExecution(DebuggerExecution.java:64)
         at fuego.web.execution.InteractiveExecution.invokePrepare(InteractiveExecution.java:351)
         at fuego.web.execution.InteractiveExecution.process(InteractiveExecution.java:192)
         at fuego.web.execution.impl.WebInteractiveExecution.process(WebInteractiveExecution.java:54)
         at fuego.web.execution.InteractiveExecution.process(InteractiveExecution.java:223)
         at fuego.webdebugger.servlet.DebuggerServlet.doDebug(DebuggerServlet.java:148)
         at fuego.webdebugger.servlet.DebuggerServlet.doPost(DebuggerServlet.java:82)
         at fuego.webdebugger.servlet.DebuggerServlet.doGet(DebuggerServlet.java:66)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    Any ideas??
    Thanks and greetings

  • How to Break this String and put into a Table

    Hi all,
    Currently i working on the Reading of Csv file.THe Csv file wil be stored as BLOB in one table.
    The Format of the Csv file is
    EMPCODE :DATEOFBIRTH
    312089 ,12/01/1984
    321456 ,03/05/1980
    120212 ,04/08/1987
    312456 ,23/12/1977
    311110 ,12/04/1998
    323232 ,20/06/1990
    UPLOAD_BLOB
    column     Datatype
    UploadId Number
    File_details BLOB
    And i reading the BLOB in one procedure and i m getting the String as like this ---->
    "312089 ,12/01/1984
    321456 ,03/05/1980
    120212 ,04/08/1987
    312456 ,23/12/1977
    311110 ,12/04/1998
    323232 ,20/06/1990"
    I am Dont know how to Parse this String and put in table
    While 1<STRING.LENGTH
    LOOP
    EMPCODE=SUBSTRING();
    DATEOFBIRTH=SUBSTRING();
    INSERT INTO TABLE VALID_EMPCODE(EMPCODE,DATEOFBIRTH)VALUES(......);END LOOP
    VALID_EMPCODE
    EMPCODE VARCHAR2(30)
    DATEOFBIRTH VARCHAR2(15)
    Can any one tell me how to parse this whole string and break them

    Duplicate post
    How to Break this String and put into a Table

  • How it use Filter Id and FilterPanelFocusid in JSF Table component

    How it use FilterId and FilterPanelFocusid in JSF Table component

    How it use FilterId and FilterPanelFocusid in JSF Table component

  • How to retrive firstname,middlename and lastname in a table

    Hi all,
    Please can u help me anyone.
    example:
    EMP table
    Ename column
    ramesh sachin tendulkar
    vara prasad
    bala
    how to display firstname,middlename,lastname in a emp table using oracle 9i.
    firstname middlename lastname
    ramesh sachin tendulkar
    vara prasad
    bala
    Thank in advance

    Something like this perhaps?
    SQL> ed
    Wrote file afiedt.buf
      1  with e as (select 'ramesh sachin tendulkar' as ename from dual union all
      2             select 'vara prasad' from dual union all
      3             select 'bala' from dual)
      4  --
      5  -- END OF TEST DATA
      6  --
      7  select substr(ename,1,decode(instr(ename,' '),0,length(ename),instr(ename,' '))) as firstname
      8        ,substr(ename,instr(ename,' ')+1,length(ename)-instr(ename,' ')-(length(ename)-instr(ename,' ',-1))) as middlename
      9        ,substr(ename,decode(instr(ename,' ',-1),0,length(ename)+1,instr(ename,' ',-1)+1)) as surname
    10* from e
    SQL> /
    FIRSTNAME               MIDDLENAME              SURNAME
    ramesh                  sachin                  tendulkar
    vara                                            prasad
    bala
    SQL>If you upgraded to 10g or 11g it would be easier as you could use regular expressions.

  • How create plugins in java and access then from the app

    How can I create plugins for a Java app. And how do I need in my app to access those plugins??

    Generally speaking, any sort of plugin is simply an implementation of some defined or set of defined interfaces that is loaded at runtime and invoked based on some event, configuration or other such mechanism. Java plugins can be implemented simply as .jar or individual classes that implement the interface(s). The application loads these (perhaps using separate, specifically defined class loaders) and is responsible for knowing how and when to invoke their method(s).
    The trick, of course, is defining the interfaces to be supported by the app and implemented by the plugin and to define a set of events, etc. that would cause these to be invoked. The mechanics of loading the classes, instatiating the instances as need, etc. is fairly basic Java programming.
    Chuck

  • Hi, my problem is that i transferred music off my cd's into atones, created an mp3 playlist and would now like to copy that music on to my usb..how do i do it. also would like to snapshot my desk top info

    I ingested music off my cd's in to iTunes. have created an mp3 playlist with my music i iTunes. now how to copy my music on to a usb..also would like to snapshot my desktop so as to send info to my friend

    In iTunes, you can Control-Click on a song and select "Show in Finder".
    In theory you should also be able to select all the songs in the playlist (command-A) and drag them to the USB disk.
    Screen Shots can be obtained using:
        Mac OS X Screen Shots:
            Screen Shot to a Desktop file:
                Command-Shift-3              - Capture entire screen
                Command-Shift-4              - Drag to select copy region
                Command-Shift-4-Space   - Capture Window under cursor
                If you want a menu or pop-up, then do the
                    Command-Shift-4-Space
                after the menu or pop-up is setup as you like it.
            Screen Shot to Clipboard:
                Command-Control-Shift-3              - Capture entire screen
                Command-Control-Shift-4              - Drag to select copy region
                Command-Control-Shift-4-Space   - Capture Window under cursor
                If you want a menu or pop-up, then do the
                    Command-Control-Shift-4-Space
                after the menu or pop-up is setup as you like it.
                Now paste the clipboard into whatever document accepts graphics.
            NOTE:  Preview can be used to annotate a Screen Shot with Circles,
                   Arrows, and Text to describe interesting point in the Screen
                   Shot.
    If this is not what you were interested in, please provided clarification information

  • How to retrieve records from a database and display it in a jsp page.Help!!

    Hello everyone ! im very new to this forum.Please help me to solve my problem
    First i ll explain what is my requirement or needed.
    Actually in my web page i have text box to enter start date and end date
    and one list box to select the month .If user select or enter the dates in text box
    accordingly the data from ms access database has to display in a jsp page.
    Im using jsp and beans.
    I tried returning ResultSet from bean but i get nothing display in my web page
    instead it goes to error page (ErrorPage.jsp) which i handle in the jsp.
    I tried many things but nothing work out please help me to attain a perfect
    solution. I tried with my bean individually to check whether the result set has
    values but i got NullPointerException . But the values which i passed or
    available in the database.
    I dint get any reply for my last post please reply atleast to this.
    i get the date in the jsp page is by this way
    int Year=Integer.parseInt(request.getParameter("year"));
    int Month=Integer.parseInt(request.getParameter("month"));
    int Day=Integer.parseInt(request.getParameter("day"));
    String startdate=Day+"/"+Month+"/"+Year;
    int Year1=Integer.parseInt(request.getParameter("year1"));
    int Month1=Integer.parseInt(request.getParameter("month1"));
    int Day1=Integer.parseInt(request.getParameter("day1"));
    String enddate=Day1+"/"+Month1+"/"+Year1;But this to check my bean whether it return any result!
    public void databaseConnection(String MTName,String startDate,String endDate)
    try
             java.text.SimpleDateFormat dateFormat=new java.text.SimpleDateFormat("dd/MM/yyyy");
             java.util.Date fromDate=dateFormat.parse(startDate);
            java.util.Date tillDate=dateFormat.parse(endDate);          
            java.sql.Date sqlFromDate=new java.sql.Date(fromDate.getTime());
            java.sql.Date sqlTillDate=new java.sql.Date(tillDate.getTime());
              String query1="select MTName,Date,MTLineCount from Main where MTName='"+MTName+"'  and Date between '"+sqlFromDate+"' and '"+sqlTillDate+"' " ;
            System.out.println(query1);
              Class.forName(driver);
             DriverManager.getConnection(url);
             preparedStatement=connection.prepareStatement(query1);
             preparedStatement.setString(1,"MTName");
              preparedStatement.setDate(2,sqlFromDate);
              preparedStatement.setDate(3,sqlTillDate);
              resultSet=preparedStatement.executeQuery();           
               while(resultSet.next())
                        System.out.println(resultSet.getString(1));
                        System.out.println(resultSet.getDate(2));
                        System.out.println(resultSet.getInt(3));
            catch (Exception e)
             e.printStackTrace();
    I Passed value from my main method is like thisl
    databaseConnection("prasu","1/12/2005","31/12/2005");Please provide solutions or provide some sample codes!
    Help!
    Thanks in advance for replies

    Thanks for ur reply Mr.Rajasekhar
    I tried as u said,
    i tried without converting to sql date ,but still i din't get any results
    java.text.SimpleDateFormat dateFormat=new java.text.SimpleDateFormat("dd/MM/yyyy");
             java.util.Date fromDate=dateFormat.parse(startDate);
            java.util.Date tillDate=dateFormat.parse(endDate);          
              String query1="select MTName,Date,MTLineCount from linecountdetails where mtname='"+MTName+"'  and Date >='"+fromDate+"' and Date <='"+tillDate+"' " ;
            System.out.println(query1);
    //From main method
    databaseConnection("prasu","1/12/2005","31/12/2005");I got the output as
    ---------- java ----------
    select MTName,Date,MTLineCount from linecountdetails where mtname='prasu'  and Date >='Thu Dec 01 00:00:00 GMT+05:30 2005' and Date <='Sat Dec 31 00:00:00 GMT+05:30 2005'
    java.lang.NullPointerException
    null
    null
    java.lang.NullPointerException
    Output completed (4 sec consumed) - Normal TerminationThanks
    Prasanna.B

Maybe you are looking for

  • Will not print anything but Pdf files!

    If I try to print anything at all other than a PDF file from Adobe only(other readers will not even work) very little of the page prints if anything at all. For example, I was trying to print a shipping label off of the website, and the only thing th

  • What isa the best way to reorganize my photos from multiple libraries to a single library

    I need to reorganize my photos from multiple libraries to a single library. What is the best way to do this?

  • N96 issues version 11.101

    Hi there i can report the following issues: 1. the background lighting does not work! 1 degree lower then max, and the screenlight is flickering (lower higher lower higher very fast) 2. The option where you can set the brightness also doesn't work ri

  • Setting classpath in Process object

    Anybody run into this before? I am trying to call the OracleXML utility on Windows using the Runtime to get a process object. When I pass my classpath to the Process object, somebody is changing the period in the file name (eg. classes12.zip) to a fo

  • Where does the logging happens for System.out.println

    Hello: I'm usingNetWeaver 2004sJava SP9 evaluation version. Added some System.out.println to the ejbs. Would like to know where to look for the logging details in this case. Thanks for your help, Ravi