Plsql dev - Sql dev

same procedure i am running in plsql developer tool i am not geting any error
while i am running(executing) in SQL Developer tool i am getting below error;
Error: ORA-00604: error occurred at recursive SQL level 1
ORA-01654: unable to extend index SYS.I_PLSCOPE_SIG_ACTION$ by 128 in tablespace SYSAUX
any solution...???

OraclePLSQL wrote:
same procedure i am running in plsql developer tool i am not geting any error
while i am running(executing) in SQL Developer tool i am getting below error;
Error: ORA-00604: error occurred at recursive SQL level 1
ORA-01654: unable to extend index SYS.I_PLSCOPE_SIG_ACTION$ by 128 in tablespace SYSAUX
any solution...???What if you just run it in SQL*Plus?
I don't imagine it's the tool that's the problem, unless the tool is doing something behind the scenes for debugging/tracing purposes on top of what you're trying to run yourself.
However, you've not told us your database version or shown any code, so we're more clueless than you.

Similar Messages

  • Weird behavior: PLSQL-generated SQL Report Region

    I am trying to tune my PLSQL-generated SQL Report Region. I put in some code to write the resulting query to a table. I turn it on, run the page, and then turn it off and look at the SQL. Instead of getting one query for each time I load the page, I get five. Trying to find out a bit more about why, I concatenate :APP_USER and to_char(sysdate, 'hh:mi:ss') to the resulting SQL. What I find is that four of the entries in the table have my ApEx dev username, and all of these writes are 3 seconds before the SQL generated under the app username is written!
    It probably goes without saying, but in all of the writes under my dev username, there are no session values and so any PLSQL if statements that depend on a session value act as if the session values are null. Also, any place I have :APP_ID show up as 4000 in those writes instead of the app number that shows up under my app username.
    Do you follow this?
    Well, on a hunch I copied the whole region back on to the page and disabled the original. This time, no writes with the dev username, only one select statement as originally expected.
    Is that wierd or what?
    Bill

    Scott, Your last comment - that was it. I should've paid more attention to the time. The minutes must have been off. I made sure to log out of the dev environment before I ran the page, but the writes under my dev login were occurring when I saved the region. I still don't see why that process causes four identical writes, but it's not that important.
    Thanks! Now I can to working on the real problem - improving my SQL.
    Bill

  • Complete plsql and sql grammars

    Hi Guys,
    Does anyone know where to get the complet PLSQL and SQL grammars?
    The one I found is outdated.....

    Unfortunately, the SQL (and PL/SQL) reference are probably the closest you're going to get (at least from Oracle). And that documentation is designed to be human readable, so it includes comments and explanations in addition to the bare syntax. You could, of course, cut and paste the BNF syntax diagrams from each page into a single document, but that's probably a rather laborious and error-prone process.
    If you're just interested in ANSI standard SQL, you might look to see whether the ANSI standard document includes a single syntax tree.
    I still, though, come back to the question of why. The documentation Oracle provides seems quite human readable to me-- I'd be hard pressed to envision a need for a SQL programmer to have a single document that contains just BNF diagrams for every SQL statement without explanation or discussion. The only people I could imagine wanting this would be writing a SQL (or PL/SQL) parser, which is virtually guaranteed not to match Oracle's real SQL (or PL/SQL) parsers, particularly given the frequency that the real parsers change.
    Justin

  • Can I do plsql in SQL Developer?

    I am new to SQL Developer. Can I do plsql stuff in it just like in SQL Station?

    I have no idea what SQL Station is....so the phrase 'just like' may not apply; however, SQL Developer supports PL/SQL development and debugging.
    http://www.oracle.com/technology/obe/sqldev/plsql_debug/plsql_debug.htm
    http://www.oracle.com/technology/products/database/sql_developer/index.html

  • PLSQL-generated SQL report with variable number of columns

    I created an app to track college football bowl picks:
    http://apex.oracle.com/pls/otn/f?p=21723
    The main report region includes columns for the various games as well as a column for each participant. In order not to hard code the number of participants, I used PLSQL to generate the SQL so that new columns could be added on the fly.
    However, whenever I add a new user I get this result -
    report error:
    ORA-01403: no data found
    If I copy and paste the PLSQL into a new report region and then delete the old one, however, all is well.
    Is there something I can do to overcome this?
    Thanks.
    Bill

    Roberto
    <br><br>
    Here are the tables:
    <br><br>
    BOWL_GAMES<br>
    ID     NUMBER<br>
    NAME     VARCHAR2(30)<br>
    FAV     VARCHAR2(20)<br>
    DOG     VARCHAR2(20)<br>
    BDATE     DATE<br>
    LINE     NUMBER(3,1)<br>
    FAV_SCORE     NUMBER(4,0)<br>
    DOG_SCORE     NUMBER(4,0)<br>
    <br>
    BOWL_USERS<br>
    ID     NUMBER<br>
    USERNAME     VARCHAR2(20)<br>
    PW     VARCHAR2(20)<br>
    NAME     VARCHAR2(20)<br>
    EMAIL     VARCHAR2(50)<br>
    <br>
    BOWL_PICKS<br>
    ID     NUMBER(5,0)<br>
    USERID     NUMBER(10,0)<br>
    GAMEID     NUMBER(10,0)<br>
    PICK     NUMBER(1,0)<br>
    <br>
    <br>
    Below is my PLSQL. Feel free to try out the app. Thanks.
    <br><br>
    Bill<br><br>
    declare<br>
    p_sql varchar2(32767);<br>
    cursor c1 is select * from bowl_users order by id;<br>
    begin<br>
    p_sql := q'! select to_char(b.bdate, 'Mon FMdd') "Date", b.name, '< a href="javascript$pickEm(''' || b.fav || ''')">' || b.fav || '</ a> -' || b.line || ' < a href="javascript$pickEm(''' || b.dog || ''')">' || b.dog || '</ a>' "Line" !';<br>
    for a1 in c1 loop<br>
    p_sql := p_sql || q'! , bowl_strike(b.id, !' || a1.id || q'! , 0) || (select decode(p.pick, 0, substr(b.dog,1,4), 1, substr(b.fav,1,4), 'No pick') from bowl_picks p where p.userid = !' || a1.id || q'! and p.gameid = b.id) || bowl_strike(b.id, !' || a1.id || q'! , 1) "!' || upper(a1.name) || q'!" !';<br>
    end loop;<br>
    p_sql := p_sql || q'! , bowl_score(b.id) "SCORE" from bowl_games b order by b.bdate !';<br>
    return replace(p_sql,'$',':');<br>
    end;
    <br><br>
    Message was edited by:
    [email protected]

  • Not able to connect db using developers(plsql developer,sql developer)

    Hi,
    I used to work on plsql developer, but since from few days i am not able to connect to it, so i have installed sql developer still i am not able to connect to database.
    I can connect to the database using sql*plus. dont know what happend suddenly i have not changed any settings.
    I am getting the error when connecting sql developer: Status : Failure -Test failed: IO Error: The Network Adapter could not establish the connection
    when connecting through plsql developer getting the error: ora-12545 connect failed because target host or object does not exist
    Please help.
    Thanks,
    Vinod

    Wrong forum - please repost in the SQL Developer forum, edit this post to include the link to the SQL Developer thread and then mark this as ANSWERED.
    SQL Developer
    >
    when connecting through plsql developer getting the error: ora-12545 connect failed because target host or object does not exist
    >
    In you post on the other forum include your 4 digit Oracle version and the version of SQL Developer that you are using.
    Also provide the step by step details of how you are trying to create the new connection.
    The error message is telling you that you are using a server or host name that does not exist.

  • Converting plsql to sql server

    Hi guys,
    Originally I use Taod to execute plsql scripts, however I now have to use a software callded 'Query analyzer' which only recognises sql server scripts.
    I am having difficulty in converting my plsql scripts into sql server, deos any one no of any resource on the internet which may be helpful to me? or of any program which I can download to automate this terrible task?
    Thanks

    Are you working on an Oracle database or a SQL server database? If you are working on SQL Server database, I heard there are tools you can use within the sql server, to write procedures, compile and execute. If you are using Oracle, then you should be able to use TOAD, as it is one among the best tool available. Of course there are a whole bunch of tools you can use for creating/executing pl/sql scripts.
    Hope this helps. If it didn't then please post with more details on what exactly are you trying to do.

  • Report based on PLSQL returning SQL query

    I created function which builds the SQL and returns it as VARCHAR2. For testing purposes I harcoded the primary ID for the query to be based on. I run the function as standalone call to get the generated SQL and to test it. It works fine. The moment I try to use the ID parameter as an argument passed to the function it doesn't work and I get the "No data found" error. Again if I try this function outside of Apex it produces correct SQL syntax and it runs.
    The function signature is really simple:
    FUNCTION abc(i_id NUMBER) RETURN VARCHAR2
    IS
    l_id NUMBER;
    BEGIN
    -- this works:
    -- l_id := 300;
    -- this doesn't work:
    l_id := i_id;
    ... more code follows. It uses the l_id while building the query.
    I also tried to make it an anonymous block and place it directly in Apex region. Again I face the same problem. I modified this function slightly to reference the page attribute instead of accepting parameter:
    DECLARE
    l_id NUMBER;
    BEGIN
    -- this works:
    -- l_id := 300;
    -- this doesn't work:
    l_id := :P65_ID;

    Have you verified that i_id and P65_ID have a value when the procedure runs? Perhaps have something along the lines of "if i_id is null then return 'select <dummy data> from dual' else [build real query here]"...?
    -D.

  • Is it possible to run PLSQL, or SQL script daily?

    I am trying to write a script will delete everything that is older then 90 days, and i only want to run this script once a day.
    is this something it can be done in apex?
    Thanks
    John Lau
    APEX version: Application Express 4.1.1.00.23
    Browser(s) and version(s) used: Firefox
    Theme: Midnight Blue

    Hello John,
    You have not given the database version you are using. If it is Oracle Database 10g Release 3 or higher then you can go with DBMS_SCHEDULER and schedule your script to run periodically.
    Following is the Oracle Database 11g Release 2 documentation for DBMS_SCHEDULER:
    http://docs.oracle.com/cd/E11882_01/appdev.112/e25788/d_sched.htm#CIHHBGGI
    I found the following blog post of @Tobias Arnhold helpful while creating my first scheduled job:
    http://www.apex-at-work.com/2009/06/dbmsscheduler-examples.html
    If you are looking for APEX built-in solution then here is one using APEX_PLSQL_JOB :
    http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21676/apex_plsql_job.htm#BGBFGBIB
    But I will suggest DBMS_SCHEDULER over APEX_PLSQL_JOB as DBMS_SCHEDULER package has more fine tuning facilities regarding scheduling than the APEX_PLSQL_JOB.
    Hope it helps!
    Regards,
    Kiran

  • Converting SQL Report Region to PLSQL Function Body Returning SQL Query

    All:
    I want to convert my SQL Report Region to a PLSQL-generated SQL Report Region so that I can eliminate where clauses dynamically and speed up my app, and also so that I can provide additional sorting options.
    <br><br>
    My problem is that I have lots of embedded single quotes that already are coded as 3 single quotes in the SQL Report Region. I am not sure at all how to code them within the PLSQL.
    <br><br>
    As example, here is one column from my query:
    <br><br>
    select decode(nvl(g.date_sub_1,g.date_rec_1), null, decode(g.article, 0, 'E', 1, 'U'), '< a href="javascript:unElevate( ' ' ' || g.grid || ' ' ',' ' ' || g.natca || ' ' ')">' || decode(g.article, 0, 'E', 1, 'U') || '< /a>') "Reverse" from g_table g
    <br><br>
    (Note that I added spaces within the code so it would display properly in the browser.)
    <br><br>
    To clarify, that's a double quote before javascript, and then 3 single quotes before the first concatenation group, then 3 single quotes after the second concatenation group, then 3 single quotes before the third, 3 single quotes after the fourth followed by an end-paren followed by a double quote etc.
    <br><br>
    My question is, what do I do with these triple-single quotes within PLSQL? Probably a no-brainer for the experienced folks, but I am thinking like a mobius strip at this point.
    <br><br>
    Bill
    Message was edited by:
    [email protected]
    Message was edited by:
    [email protected]
    Message was edited by:
    [email protected]

    Scott,
    I think that feature was made for my situation! I keep getting
    Function returning SQL query: Query cannot be parsed within the Builder. If you believe your query is syntactically correct, check the generic columns checkbox below the region source to proceed without parsing.
    (ORA-20001: Unable to bind :43 verify length of item is 30 bytes or less. Use v() syntax to reference items longer than 30 bytes. ORA-01006: bind variable does not exist)
    I did chop the query up into little bits, i.e.
    p_sql := p_sql || q'! ... !';
    p_sql := p_sql || q'! ... !';
    p_sql := p_sql || q'! ... !';
    return p_sql;
    But I'm not sure what I'm supposed to do here.
    Thank you.
    Bill

  • Need advise on SQL,plsql developer career and future

    Hi all,
    I need all your advise in making an important decisions of my career path.I work in the IT field and have about total 4-5 years of work experience involving development and testing in a product based organization.
    Presently-i have got chance since last 4-5 months to work with writing PLSQL code,SQL etc on a part basis. I am very much interested to continue my career path as a PLSQL developer.
    But, unfortunately -in the total of my work experience-in the past 2-3 years-i worked with a internally developed DB query language(similar to SQL) and then from last few months with plsql. But this chance to work with PLSQL has been for less time and limited scope after which i will have to work on something different.
    Ii want to fully take on my career in SQL,PLSQL as Database Developer.
    Please advise me if my thinking seems logical and good and if I could do it. I have planned on applying for relevant SQL,PLSQL profile jobs.
    Now, My serious worry and concern is I feel that since i have worked very less with PLSQL-so am low in confidence that I feel i wont be able to answer ,or tell or not knowledgeable enough to be able to clear the technical interviews for SQL,plsql development profile which would need at least some years of experience.
    I have started studying and practsing PLSQL,sql by myself for from internet. So, can you all please advise me on how could i prepare myself for hard core technical interviews of SQL,PLSQL knowledge for about 2-3 years expertise.
    I know its not much possible to be competent so much in the subject by just studying and practicing.Its easy as saying to study and get it by myself-but i want to try and will put my best for it.
    Please help me with your inputs,all interview questions,hard ones-suggestions,links,any study materials, real time problems which i can try solving of SQL, PLSQL development.
    Thanks All

    Hi,
    A very good starting point is (in my opinion): [Steven Feuerstein PL/SQL Obsession|http://www.toadworld.com/Knowledge/DatabaseKnowledge/StevenFeuersteinsPLSQLObsession/tabid/153/Default.aspx]. Also the official site [PL/SQL Technology Center|http://www.oracle.com/technology/tech/pl_sql/index.html]
    Regards,

  • SQL types over PLSQL types while using Oracle Applications adapter in BPEL

    Use SQL types over PL/SQL types while using Oracle Applications adapter
    in BPEL/ ESB
    This document will be focusing on Oracle Applications adapter. However Database adapter is much like OA adapter (even OA adapter uses DB Adapter), so the readers who are interested to explore DB adapters, can relate things with this document and go further as well.
    Some Guidelines for writing PL/SQL APIs for OA Adapter
    As we know when we create a partner link from the OA adapter wizard it sometimes writes some wrapper script supportive to the OA Adapter WSDL which contains below
    * Object type for PL/SQL RECORD
    * Nested table of the given type for PL/SQL TABLE. For example, the nested table of NUMBER.
    * INTEGER substituted for PL/SQL BOOLEAN
    * Wrapper Script for converting above three set of data types . (PLSQL to SQL and SQL to PLSQL conversion functions)
    In runtime this wrapper script for converting PL/SQL to SQL and SQL to PL/SQL is an extra overhead.
    So the first advice would be to avoid the use of the below as parameters of PLSQL API being called by OA Adapter.
    * PL/SQL RECORD
    * PL/SQL TABLE. For example, the nested table of NUMBER.
    * PL/SQL BOOLEAN
    In other way we can say we should try to use only SQL data types in arguments if we are planning to call any PL/SQL API from the OA Adapter.
    If the requirement is to use a table or record uses the Object type. In place of BOOLEAN better to use VARCHAR or INTEGER what ever fulfills your requirement. Following this guideline we can reduce a huge number of Line of codes to be run each time the adapter being called.
    Generally, Oracle E-Biz standard APIs use PL/SQL record types and table types so when there is a requirement to call these API’s from OA Adapter (this is a common requirement in development), and if we directly browse the API in OA Adapter Configuration Wizard and create the partner link, again a huge number of code is written by the wizard in the wrapper script (a number of extra mapping of fields which are not being used in the interface).
    In this case better would be to create an Object type with only the required fields which are being used in that call and use them as parameters for the PLSQL API.

    Find the complete document
    http://www.4shared.com/file/167171882/29525116/Use_SQL_types_over_PLSQL_types.html

  • Plsql procedure with sql query data

    plsql newbie(learning sql): please excuse for asking a basic plsql question
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod on windows server 2003
    PL/SQL Release 10.2.0.1.0 - Production
    "CORE     10.2.0.1.0     Production"
    TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    CREATE OR REPLACE PROCEDURE p_check
    AS
    v1 NUMBER(20,0);
    BEGIN
    SELECT count(*) INTO v1
    FROM ad_reg;
    dbms_output.put_line(v1);
    end;
    inserts the number of rows in the table ad_reg into v1
    and displays v1 by using dbms_output
    i want my procedure to return table data
    CREATE TABLE "TEST_SH"
    "TEXT_ID" NUMBER,
    "TEXT" CLOB
    Insert into TEST_SH (TEXT_ID) values (1);
    Insert into TEST_SH (TEXT_ID) values (2);
    Insert into TEST_SH (TEXT_ID) values (3);
    Insert into TEST_SH (TEXT_ID) values (4);
    there will be a way with which i can see all the data(select * from test_sh) as the output of the plsql procedure
    1.please tel me what to google
    2.please guide me with a site or tell what is actually used and help me
    3.or post an example here
    thank you much
    Edited by: 946207 on Nov 20, 2012 2:05 PM

    946207 wrote:
    there will be a way with which i can see all the data(select * from test_sh) as the output of the plsql procedurePL/SQL is
    a) nothing at all like T-SQL
    b) two different languages, PL (Programming Logic) and SQL
    SQL is used to access data in the Oracle database. So select * from test_sh is the correct statement to access the data.
    The client can make execute this SQL statement itself. And view the data. However, this requires the client to understand the SQL language, and the database model. Which is typically not that you want. You want to abstract that from the client.
    Why would you want the client to deal with the complexities of the SQL language? Or deal with the complexities of your database model in Oracle?
    So instead of the client doing SQL, PL/SQL can do it on behalf of the client. The client uses PL/SQL as an API - in a similar fashion as the client would use any other API.
    The PL/SQL code determines the SQL statement - and returns a SQL cursor handle to the client. The client then simply uses the SQL cursor that the PL/SQL code created for it (and the client needs to close the SQL cursor when done, so as to not cause server resource leakage).
    E.g. (using PL/SQL as an API to abstract SQL and the data model)
    create or replace procedure TestProc( c out sys_refcursor ) is
    begin
      open c for select * from test_sh order by 1;
    end;The client then calls TestProc and gets a reference cursor handle. E.g. (the client call to Oracle):
    begin
      TestProc( c => :1 );
    end;The client needs to supply a host (client language) bind variable of type cursor, as value for bind variable +:1+.
    This is the correct way to deal with PL/SQL and cursors from a client GUI/language perspective. Any other method, like using PL/SQL to cache SQL data as a collection, is usually very wrong.

  • Inconsistent results sql versus plsql

    I'm using Oracle SQL Developer v1.1.2.25 in an Oracle 10g environment and obtain a different results set depending on whether I use SQL or PLSQL to retrieve the data.
    The select statement is a relatively simple one ( a distinct (desired_column) selection based on criteria = or != to columns in our data warehouse + an order by clause).
    When the SQL is executed using F9, the results are consistent with what is expected and cross check correctly against reports produced using other applications.
    However, when I attempted to incorporate the selection into an anonymous block via a cursor (and run it using the F5), my results were off. A count of the total 'returns' resulted in a correct value, but the actual rows returned WERE OFF BY ABOUT 765.
    We then ran the anonymous block using a different application (developed by QUEXT software); totals and rows returns were correct.
    I'm curious to know if anyone else has come across a similar issue with plsql and SQL Developer. Is there a remedy?

    Pre-1.5.1 versions had bugs in obtaining the Windows regional settings instead of the desired NLS parameters for running PL/SQL. A wrong region would generate wrong predicates for affected SQL, so I'd guess yours is...
    Hope 1.5.1 fixes your issue,
    K.

  • Write sql for plsql record

    im trying to builde plsql table like given below
    ids               nme
    1     ICOL$
    2     CON$
    3     UNDO$
    4     PROXY_ROLE_DATA$
    5     FILE$
    6     UET$
    7     IND$
    8     SEG$
    9     COL$
    10     CLU$then trying to get value for ids 5 is FILE$ but it's not working as expected. please find the code below.
    declare
    type v_ty is record
    ( ids  array,
      nme array_char);
    v_r  v_ty;
    v_ids number;
    begin
    select rownum idx ,table_name tnme
    bulk collect into v_r
    from user_tables
    where rownum < 11;
    select b.column_value into v_ids
    from table(v_r.ids) a , table(v_r.nme) b
    where a.column_value = 5;
    end;thanks
    Raj
    Edited by: user13397097 on Jan 2, 2013 12:46 AM

    user13397097 wrote:
    dose it not bring down the context switch between plsql and sql engine ?Well if you manage to do the data modification in a single SQL query, that would be 1 context switch.
    In your case there is at least 2 of them.
    Moreover : You seems to be fighting against context switch. Did you identify that as being the bottleneck in your processing ?
    The basic example of costly context switch is calling a PLL/SQL function in a where clause when you could do it purely in SQL. In that cas the main SQL does a context switch on each row tested, and if the PL/SQL function is actually doing SQL inside, that is another "nested" context switch.
    Doing so on a million rows would "hurt" performance wise.

Maybe you are looking for