Use SQL Workshop SQL Scripts function

When I tried the following 5 steps,
I cannot enter the ddl in the SQL editor window.
The fact is that I cannot enter anything.
Anyone can point out what is wrong with my procedure??????
Thanks!
Create the HT_EMP Table
To create the HT_EMP table and the appropriate associated objects:
1. Click SQL Workshop on the Workspace home page.
2. Click SQL Scripts.
3. When the SQL Scripts Repository appears, click Create.
The Script Editor appears.
4. In Script Name, enter HT_EMP
5. In the Script Editor, enter the following DDL:
CREATE TABLE ht_emp (
emp_id NUMBER primary key,
emp_first_name VARCHAR2(30) not null,
emp_middle_initial VARCHAR2(1),
emp_last_name VARCHAR2(45) not null,
emp_part_or_full_time VARCHAR2(1) not null check (emp_part_or_full_time in
('P','F')),
emp_salary NUMBER,
emp_dept VARCHAR2(20) check (emp_dept in
('SALES','ACCOUNTING',
'MANUFACTURING','HR')),
emp_hiredate DATE,
emp_manager NUMBER references ht_emp,
emp_special_info VARCHAR2(2000),
emp_telecommute VARCHAR2(1) check (emp_telecommute in ('Y')),
rec_create_date DATE not null,
rec_update_date date)
/

You need to upload the file to the SQL scripts area of ApEx. If you upload it to the static files area it's not going to be treated as a SQL script.
Barring that as the problem - did you verify the contents of the script file on your workstation before you uploaded it - to make sure that the script actually contained the correct contents of the script?
I've never had any significant problems with script uploads and running scripts in ApEx that couldn't be traced back to operator error. :>)
Try explaining in detail the steps that you took to try to make this work - then we'll know where to start.
Earl
Message was edited by:
Earl

Similar Messages

  • Bug in SQL Workshop, SQL Scripts, Results page [Apex 4.0.1.00.03]

    I have some scripts that I have created to insert various rows into a table called level5. Most rows execute properly and the output shows "1 row inserted" as I would expect.
    But then some others give bizarre output on the Results page. Here are a few examples (first 2 are what I would term "correct", the rest are "odd"):
    1 0.27 insert into level5 (name, description, active, approver_id, 1 row(s) inserted. 1
    2 0.02 insert into level5 (name, description, active, approver_id, 1 row(s) inserted. 1
    33 0.02 insert into level5 (name, description, active, approver_id, Statement processed. 1
    58 0.02 insert into level5 (name, description, active, approver_id, Statement processed. 1
    65 0.03 insert into level5 (name, description, active, approver_id, User created. 1
    633 0.05 insert into level5 (name, description, active, approver_id, Role created. 1
    924 0.02 insert into level5 (name, description, active, approver_id, Role created. 1
    The SQL across these various rows is identical except for some values in varchars.
    Here are the corresponding sql commands:
    1
    insert into level5 (name, description, active, approver_id, level4_id) values ('M_SECROLE', 'Security', '1', (select id from persons where pernr='376' and active='1'), (select id from level4 where name='SD1' and level3_id=(select id from level3 where name='xyz' and level2_id=(select id from level2 where name='clienta' and level1_id=(select id from level1 where name='Application')))));
    2
    insert into level5 (name, description, active, approver_id, level4_id) values ('M_ADMIN', 'ADMIN', '1', (select id from persons where pernr='376' and active='1'), (select id from level4 where name='SD1' and level3_id=(select id from level3 where name='xyz' and level2_id=(select id from level2 where name='clienta' and level1_id=(select id from level1 where name='Application')))));
    33
    insert into level5 (name, description, active, approver_id, level4_id) values ('COLL_CREAT_RM', 'Collaboration Create Room', '1', (select id from persons where pernr='327' and active='1'), (select id from level4 where name='SD1' and level3_id=(select id from level3 where name='xyz' and level2_id=(select id from level2 where name='clienta' and level1_id=(select id from level1 where name='Application')))));
    58
    insert into level5 (name, description, active, approver_id, level4_id) values ('360_FEEDBACK', '360 Feedback', '1', (select id from persons where pernr='327' and active='1'), (select id from level4 where name='SD1' and level3_id=(select id from level3 where name='xyz' and level2_id=(select id from level2 where name='clienta' and level1_id=(select id from level1 where name='Application')))));
    65
    insert into level5 (name, description, active, approver_id, level4_id) values ('AUTO_USER_ADM', 'Automated User Admin', '1', (select id from persons where pernr='702' and active='1'), (select id from level4 where name='DD1' and level3_id=(select id from level3 where name='xyz' and level2_id=(select id from level2 where name='clienta' and level1_id=(select id from level1 where name='Application')))));
    633
    insert into level5 (name, description, active, approver_id, level4_id) values ('PROD_SUPPORT_CRE_INV', 'IT SRM Prod Support Role Create Invoices', '1', (select id from persons where pernr='990' and active='1'), (select id from level4 where name='PC1' and level3_id=(select id from level3 where name='xyz' and level2_id=(select id from level2 where name='clienta' and level1_id=(select id from level1 where name='Application')))));
    924
    insert into level5 (name, description, active, approver_id, level4_id) values ('PROD_SUPPORT_CRE_INV', 'IT SRM Prod Support Role Create Invoices', '1', (select id from persons where pernr='327' and active='1'), (select id from level4 where name='QC1' and level3_id=(select id from level3 where name='xyz' and level2_id=(select id from level2 where name='clienta' and level1_id=(select id from level1 where name='Application')))));
    Basically it looks to me like the results text is somehow being affected by the text in my description colum in my SQL. This seems wrong to me, and a bug. Why don't they all just show the same "1 row inserted" text? Why do some say "statement processed"? And why the User and Role created -- that is just plain wrong!
    Would you agree this is a bug??
    This is on Application Express 4.0.1.00.03 in case that matters!

    Hi,
    Browser: Firefox 3.6.13 and IE 8.0
    Template: One Level Tabs - Right Sidebar (optional / table-based)
    Theme: 2. Builder Blue
    Here is an application I created on http://apex.oracle.com.
    http://apex.oracle.com/pls/apex/f?p=29067:1
    Workspace: abc
    User ID: [email protected]
    Password: ssddaa05
    Please look at this application and help me to get the SAL column in RED font when SAL>2000.
    Thanks
    Chandra.
    Edited by: Chandra on Jan 11, 2011 12:38 PM

  • SQL Workshop - SQL Commands - Saved SQL:  Saved set of commands

    Has any thought been given to this, or perhaps this has already been done.....
    A saved set of SQL commands as a template
    For example, when I'm in Excel and I start writing a lookup formula, a guide appears below the cell, reminding me of the format of what comes next. When I know what I'm doing, I simply ignore the guide. When I don't know what I'm doing, the guide is helpful - even linkable to more information.
    Perhaps there are too many variables here to do that....
    In the meantime, I'm creating my own 'set' as I learn - perhaps that's even better.
    Marion in NY

    Hi Kirsten,
    this could be controlled at the database level whereby you create a schema that doesn't own the objects your users are querying but has the appropriate grants and privileges made to it and synonyms or views created to represent the objects. This schema then becomes the parsing schema for the workspace you let your users use. This wont prevent them from creating update statements, but at the database level it will not allow them to be executed.
    Regards
    Andre

  • APEX - SQL Workshop - SQL Commands : Issue in extracting hour from date

    Hello All,
    When I run
    SELECT to_char(sysdate,'hh24') from DUALon SQL Developer and APEX SQL Commands window, both are returning correct hour value.
    But when I run
    SELECT to_char(i_date,'hh24') from t_factthen I'm getting correct values in SQL Developer but not in APEX SQL Commands window. In APEX, it always returns '00' for all rows. I'm totally lost what could be the issue with APEX? Any suggestions?
    DB Version: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    APEX Version: 4.0.1.00.03
    Web Server : EPG
    Table structure:
    CREATE TABLE  "T_FACT"
       (     "TF_KEY" NUMBER,
         "TOWER" VARCHAR2(20),
         "LOC_ID" NUMBER,
         "TF_CAT" VARCHAR2(35),
         "EQP_NAME" VARCHAR2(35),
         "I_DATE" DATE,
         "MON_CATEGORY" VARCHAR2(35),
         "EVENT" VARCHAR2(35),
         "UNIT" VARCHAR2(35),
         "TF_VALUE" NUMBER
       );Regards,
    Hari

    Hi,
    Just silly question case you have same table in multiple schemas:
    You run query in same schema?
    Regards,
    Jari

  • Using SQL workshop

    I have a workspace with two schema and I want to copy a table from one to another
    Can this be done from within HTML_DB?

    Bjorn:
    I have two schemas in my workspace, JASON and JASON2. I have a table called EMP that I also want with all rows in JASON2. I used the steps below with the SQL Workshop SQL Commands facility.
    1) With schema JASON selected, I executed the command 'GRANT SELECT ON EMP TO JASON2'
    2) With schema JASON2 selected, I executed the command 'CREATE TABLE EMP AS SELECT * FROM JASON.EMP'
    And that does the trick.
    Regards,
    Jason

  • Added Schemas can be viewed in SQL workshop but can't while creating Form

    Hi Friends
    We are using APEX 3.1 and Oracle 10.2.0 at back end.
    I can assign other schemas to a work space successfully.
    The Problem is that
    Added schemas can be viewed in SQL Workshop (SQL commands)
    But can not view the added schemas in the list when want to create a form based on table
    Regards
    Jazib

    Jazib,
    When you select an application the application's Owner attribute determines which tables/views you see in the wizard LOVs. If your application owner (parsing schema) is FOO and you want to create a form on table BAR.T then you have to grant select on BAR.T to FOO.
    Scott

  • Added can be viewed in SQL Workshop but can't when want to create form

    Hi Friends
    We are using APEX 3.1 and Oracle 10.2.0 at back end.
    I can assign other schemas to a work space successfully.
    The Problem is that
    Added schemas can be viewed in SQL Workshop (SQL commands)
    But can not view the added schemas in the list when want to create a form based on table
    Regards
    Jazib

    Closed: duplicate post.

  • HTML DB SQL Workshop Output to csv Max Row Count

    I am using HTML DB 1.6 with Oracle 10g 10.1.0.3.0 On SuSE Linux Enterprise Server 9.
    When I execute a query in SQL Workshop SQL Command Processor that returns a result set of greater than 5,000 rows and click the Output to Excel link, it exports NO MORE than 5,000 records.
    In working through Metalink with Oracle Tech Support, apparently for Reports in HTML DB there is a way to change the Max Row Count default limitation of 5,0000. However, this isn't in a report. It is simply from the query results page in SQL Workshop. Tech Support has been unable to idnetify ANYWHERE where I can change the default Max Row Count for simply outputting the results to csv format through the Output to Excel link.
    I am desperately looking for where I can globally change this default that will allow me to use SQL Worskshop to output greater than 5,000 records from within SQL Workshop.
    Thanks for you help!
    Mike

    hi mikes--
    that sqlworkshop 5k row limit issue was corrected in htmldb 2.0. in 1.6.x, i'm pretty sure you're always limited to 5k no matter what you select for that Max Rows attribute.
    regards,
    raj

  • Oracle: SQL Workshop needs the SYSTEM MESSAGE to show up..

    Hi Oracle Dev Team,
    We have 3-4 environments as most of us do...
    DEV, TEST, UAT, PROD
    When I am in UAT SQL Workshop and then get distracted from phone call etc
    I come back and start working on a DEV issue BUT I forget I am in UAT.
    The SYSTEM MESSAGE shows up when you go to SQL Workshop area but when you go into the SQL Workshop > SQL Commands window its gone.
    also the other windows as well:
    Object Browser
    SQL Commands
    SQL Scripts
    Query Builder
    Utilities
    Any way to distinguish between environments?
    Thanks, Bill

    Hi Bill,
    We follow a standard for 'Developer Usernames' in our workplace. We always post fix environment details to our user names, like BILL_DEV, BILL_UAT etc. So if you follow similar standard, you can always point out in which environment you are, just by seeing the welcome message at upper-right corner of your screen. It's not the technical solution, but still it will serve your purpose.
    You may check-out "Background Image depending on Connection" section in following site, if it might help.
    http://builderplugin.oracleapex.info/
    Regards,
    Hari
    Edited by: Hari_639 on Jan 20, 2011 3:51 PM

  • Run procedure from SQL Workshop Command window?

    hi, this one is simple.
    how to run a created procedure from APEX SQL Workshop SQL Command window?
    simon

    Simon,
    begin [proc_name]; end;
    -Carsten

  • Purge Sql history from sql workshop

    in APEX decelopment-->SQL Workshops--> sql commands
    you can execute sql commands.
    is there a way to purge the history?

    Hi,
    Instance admin can do that
    http://docs.oracle.com/cd/E37097_01/doc/doc.42/e35129/adm_mg_service_set.htm#sthref329
    Regards,
    Jari

  • Using CAST/COLLECT with a function

    I have a select statement that gathers comments into a report by user ID and Project Name.
    This works really well until I get to a point where the total comments exceeds 4000 characters, then I get a "character string buffer too small".
    Is there another way to gather the comments and report on them in APEX?
    Here is the Select Statement:
    /** START SELECT
    SELECT
    PROJECT_NAME, USER_ID, COLLECT_FUNC(CAST(COLLECT (USER_NOTES) AS VARCHAR2_T)) as COMMENTS
    FROM
    TBL_PROJECT
    where PROJ_DATE >= to_date('5/1/2011','MM/DD/YYYY') and PROJ_DATE <= to_date('6/30/2011','MM/DD/YYYY')
    PROJECT_NAME, USER_ID
    order by USER_ID;
    /** END SELECT
    Where the VARCHAR2_T is:
    CREATE OR REPLACE TYPE "VARCHAR2_T" as table of varchar2(4000)
    and the function that collects the comments is:
    /*** START CODE
    create or replace function collect_func (t in varchar2_t)
    return varchar2
    as
    ret varchar(4000) := '';
    i number;
    begin
    i := t.first;
    while i is not null loop
    if ret is not null then
    ret := ret || ' -- <BR> ';
    end if;
    ret := ret || t(i);
    i := t.next(i);
    end loop;
    return ret;
    end;
    /*** END CODE

    SleepDeprivedInSeattle wrote:
    I created a workspace at http://apex.oracle.com
    The user name is: TEST_USER
    Password is: myPassword1!You need to tell us the workspace name as well.
    If you go to the SQL Workshop, SQL Commands window and try to execute:
    SELECT
    PROJECT_NAME, USER_ID, COLLECT_FUNC(CAST(COLLECT (COMMENTS_FLD) AS VARCHAR2_T)) as COMMENTS
    FROM
    TBL_PROJECT
    group by PROJECT_NAME, USER_ID
    order by USER_ID;
    It will work for 10 row. But if you select 1000 rows, it fails because one of the projects has more than 4000 characters in the COMMENTS_FLD field. I expanded the VARCHAR to 6000 and it still fails.The VARCHAR2maximum size of <tt>VARCHAR2</tt> value that can be returned in Oracle SQL is 4000 bytes.
    To return more than 4000 bytes, modify <tt>collect_func</tt> to return a CLOB, or use a different string aggregation technique. I normally (ab)use XMLDB for this as it:
    <li>allows for either VARCHAR2 or CLOB output
    <li>doesn't require any additional objects or privileges
    <li>produces clean and properly structured XHTML without a lot of tedious and unreadable concatenations (my colleagues point out that it introduces a lot of tedious and unreadable XMLDB stuff instead)
    SQL> select
      2            d.deptno
      3          , d.dname
      4          , xmlserialize(
      5             content
      6             xmlelement(
      7                 "ul"
      8               , xmlagg(
      9                  xmlelement("li", e.ename)
    10                  order by e.ename
    11                 )
    12             )
    13             as clob
    14             indent size=2
    15            ) employees
    16  from
    17            dept d
    18           join emp e on d.deptno = e.deptno
    19  group by
    20            d.deptno
    21          , d.dname
    22  order by
    23            d.deptno
    24*          , d.dname
    SQL> /
        DEPTNO DNAME       EMPLOYEES
         10 ACCOUNTING       <ul>
                       <li>CLARK</li>
                       <li>KING</li>
                       <li>MILLER</li>
                     </ul>
         20 RESEARCH       <ul>
                       <li>ADAMS</li>
                       <li>JONES</li>
                       <li>SCOTT</li>
                       <li>SMITH</li>
                     </ul>
         30 SALES       <ul>
                       <li>ALLEN</li>
                       <li>BLAKE</li>
                       <li>JAMES</li>
                       <li>MARTIN</li>
                       <li>TURNER</li>
                       <li>WARD</li>
                     </ul>
         40 OPERATIONS       <ul>
                       <li>FORD</li>
                     </ul>Note that there is a 32K limit on the total size of a report row in APEX, including all data and mark-up.

  • Java Stored Procedure via Function Give 0RA 600 from SQL Workshop and App

    Hi,
    Anyone experienced stored procedures or functions failing when called from APEX app or SQL Workshop ( ora 600 ) yet they work fine when called from SQLPlus?
    Sqlplus connected as my apex workspace schema owner:
    select net_services.test_db_connection_via_ldap(
    'APEXPRD1', 'test1', 'test1', null ) as result from dual;
    RESULT
    The database connection attempt was SUCCESSFUL
    From Apex Sql Worshop:
    select net_services.test_db_connection_via_ldap(
    'APEXPRD1', 'test1', 'test1', null ) as result from dual;
    ORA-00600: internal error code, arguments: [16371], [0x434B08150], [0], [], [], [], [], [], [], [], [], []
    NOTE: Same result when run in response to button push on page in application.
    Apex Version: 3.2.1.00.10
    Oracle Version: 11.1.0.7.0
    NOTE: I am using the embedded plsql gateway; was going to try NOT using it to see if it was shared server related (seemed to be from trc files)
    Any ideas?
    Since the code works from sqlplus, I know that it's good: Here some snippets
    -- ========================================================================================
    public class NetServices extends Object {
    public static String doTestDbConnectionViaLdap
    String piDbConnUrl,
    String piUserName,
    String piUserPassword
         String vResult = null;
    try
         Connection conn = null;
         OracleDataSource ods = new OracleDataSource();
         ods.setUser( piUserName );
         ods.setPassword( piUserPassword );
         ods.setURL( piDbConnUrl );
         conn = ods.getConnection();
         conn.close();
         vResult = "The database connection attempt was SUCCESSFUL";
    } catch ( SQLException e )
         int vErrCode = e.getErrorCode();
         String vErrMsg = e.toString();
              if ( vErrCode == 1017 ) {
              vResult = "The database connection attempt FAILED! Incorrect Username or Password";
         } else if ( vErrCode == 17433 ) { // Null Username or Password
              vResult = "The database connection attempt FAILED! You must provide both a Username and a Password";
         } else if ( vErrCode == 17002 ) {
              vResult = "The database connection attempt FAILED! Net Service Name was Not Found";
         } else if ( vErrCode == 17067 ) { // NULL Net Service Name
              vResult = "The database connection attempt FAILED! You must provide a Net Service Name";
         } else {
              vResult = "The database connection attempt FAILED! Error " + vErrCode;
    return vResult;
    } // method: doTestDbConnectionViaLdap
    -- ========================================================================================
    function do_test_db_connection_via_ldap
    pi_db_conn_url IN VARCHAR2,
    pi_user_name IN VARCHAR2,
    pi_user_password IN VARCHAR2
    return VARCHAR2
    is -- PRIVATE to the net_services package
    language java -- NOTE: See cr_java_class_NetServices.sql for actual java implementation
    name 'NetServices.doTestDbConnectionViaLdap
    ( java.lang.String, java.lang.String, java.lang.String ) return java.lang.String ';
    -- ========================================================================================
    function test_db_connection_via_ldap
    pi_net_service_name IN VARCHAR2,
    pi_user_name IN VARCHAR2,
    pi_user_password IN VARCHAR2,
    pi_search_base IN VARCHAR2
    return VARCHAR2
    is -- PUBLIC procedure
    v_url      VARCHAR2(256);
    begin
    g_err_source := 'NET_SERVICES.test_db_connection_via_ldap';
    g_err_action := 'build_jdbc_conn_url_using_oid';
    /*     NOTE: We don't want to assert the parameters because we don't want to raise
    an exception;
    -- Get the jdbc connection url that uses oid info
    v_url := build_jdbc_conn_url_using_oid( pi_net_service_name, pi_search_base );
    return( do_test_db_connection_via_ldap( v_url, pi_user_name, pi_user_password ) );
    end test_db_connection_via_ldap;
    -- ========================================================================================
    Thanks in advance for your consideration.
    Troy

    Troy:
    You could be right in your guess that the error is related to MTS. Search Metalink for '16371'. Why not switch your APEX app to use OHS and test whether the error persists. ?
    varad

  • Running sql or perl script using DBMS_JOB

    Hi,
    Is there a way to run a sql or perl script using DBMS_JOB procedures? I have a perl script which checks out the table usage and emails the report to specific users. I want to run this script in a job scheduler, where I am using dbms_job to add the job. Please help. Any suggestions are greatly appreciated. Thanks.
    -Kristine

    You cannot run sql or perl scrips using DBMS_JOBS. You can run only Oracle procedures, functions, packages with DBMS_JOBS. They have to be stored in the database. You will have to create a Pro*C program that is listening on the pipe and push data to that pipe by using dbms_pipe. Then you can execute anything you want.

  • Function which returns multiple values that can then be used in an SQL Sele

    I'd like to create a function which returns multiple values that can then be used in an SQL Select statement's IN( ) clause
    Currently, the select statement is like (well, this is a very simplified version):
    select application, clientid
    from tbl_apps, tbl_status
    where tbl_apps.statusid = tbl_status.statusid
    and tbl_status.approved > 0;
    I'd like to pull the checking of the tbl_status into a PL/SQL function so my select would look something like :
    select application, clientid
    from tbl_apps
    where tbl_apps.statusid in (myfunction);
    So my function would be running this sql:
    select statusid from tbl_status where approved > 0;
    ... will return values 1, 5, 15, 32 (and more)
    ... but I haven't been able to figure out how to return the results so they can be used in SQL.
    Thanks for any help you can give me!!
    Trisha Gorr

    Perhaps take a look at pipelined functions:
    Single column example:
    SQL> CREATE OR REPLACE TYPE split_tbl IS TABLE OF VARCHAR2(32767);
      2  /
    Type created.
    SQL> CREATE OR REPLACE FUNCTION split (p_list VARCHAR2, p_delim VARCHAR2:=' ') RETURN SPLIT_TBL PIPELINED IS
      2      l_idx    PLS_INTEGER;
      3      l_list   VARCHAR2(32767) := p_list;
      4      l_value  VARCHAR2(32767);
      5    BEGIN
      6      LOOP
      7        l_idx := INSTR(l_list, p_delim);
      8        IF l_idx > 0 THEN
      9          PIPE ROW(SUBSTR(l_list, 1, l_idx-1));
    10          l_list := SUBSTR(l_list, l_idx+LENGTH(p_delim));
    11        ELSE
    12          PIPE ROW(l_list);
    13          EXIT;
    14        END IF;
    15      END LOOP;
    16      RETURN;
    17    END SPLIT;
    18  /
    Function created.
    SQL> SELECT column_value
      2  FROM TABLE(split('FRED,JIM,BOB,TED,MARK',','));
    COLUMN_VALUE
    FRED
    JIM
    BOB
    TED
    MARK
    SQL> create table mytable (val VARCHAR2(20));
    Table created.
    SQL> insert into mytable
      2  select column_value
      3  from TABLE(split('FRED,JIM,BOB,TED,MARK',','));
    5 rows created.
    SQL> select * from mytable;
    VAL
    FRED
    JIM
    BOB
    TED
    MARK
    SQL>Multiple column example:
    SQL> CREATE OR REPLACE TYPE myrec AS OBJECT
      2  ( col1   VARCHAR2(10),
      3    col2   VARCHAR2(10)
      4  )
      5  /
    Type created.
    SQL>
    SQL> CREATE OR REPLACE TYPE myrectable AS TABLE OF myrec
      2  /
    Type created.
    SQL>
    SQL> CREATE OR REPLACE FUNCTION pipedata(p_str IN VARCHAR2) RETURN myrectable PIPELINED IS
      2    v_str VARCHAR2(4000) := REPLACE(REPLACE(p_str, '('),')');
      3    v_obj myrec := myrec(NULL,NULL);
      4  BEGIN
      5    LOOP
      6      EXIT WHEN v_str IS NULL;
      7      v_obj.col1 := SUBSTR(v_str,1,INSTR(v_str,',')-1);
      8      v_str := SUBSTR(v_str,INSTR(v_str,',')+1);
      9      IF INSTR(v_str,',')>0 THEN
    10        v_obj.col2 := SUBSTR(v_str,1,INSTR(v_str,',')-1);
    11        v_str := SUBSTR(v_str,INSTR(v_str,',')+1);
    12      ELSE
    13        v_obj.col2 := v_str;
    14        v_str := NULL;
    15      END IF;
    16      PIPE ROW (v_obj);
    17    END LOOP;
    18    RETURN;
    19  END;
    20  /
    Function created.
    SQL>
    SQL> create table mytab (col1 varchar2(10), col2 varchar2(10));
    Table created.
    SQL>
    SQL> insert into mytab (col1, col2) select col1, col2 from table(pipedata('(1,2),(2,3),(4,5)'));
    3 rows created.
    SQL>
    SQL> select * from mytab;
    COL1       COL2
    1          2
    2          3
    4          5

Maybe you are looking for

  • Problems importing clips from JVC Everio HD

    Hi there, Seems that there was a good thread on this topic that was closed some time ago...so I apologize if this has been covered before. I have just purchased my first Mac, an iMac 2.66 GHz machine after my PC died for the last time. I bought it ba

  • Can't open photos - needs MIME plug-in?

    I'm using Safari 2.0.4 and am trying to view photos on a website, but have encountered this error message: +The page "Browser Express" has content of MIME type "application/x-oleobject". Because you don't have a plug-in installed for this MIME type,

  • Change Purchase Order - Tolerance and Routing

    Hi, I would like to implement the Change Order functionality (Tolerances and Routing) for standard purchase orders. The Problem is that only percentage tolerances are available. our business requirement is to use fix amount tolerance. Is it possible?

  • Decommissioning 1st OCS 2007 R2 FE after deploying Lync 2013

    Hello, We have done a successful deployment of Lync 2013 that interoperates with OCS 2007 R2. Now we want to start decommissioning OCS 2007 R2 step by step. We have four OCS pools on different sites and I want to decommission the first OCS. 2007 r2 F

  • Why is my Adobe Application Manager telling me it is not a genuine copy.

    I've restarted my computer and the Application Manager keeps telling my program is not genuine while it is updating, and I downloaded it from my Creative Cloud account. I don't know what to do, because I have no control of the application because it