PL/SQL execution error Question

Hi Experts,
It's the SQL procedure I remove a set number of order that are closed

CREATE OR REPLACE PROCEDURE closed_test1 (varchar tabname, v_rowcount_int certain NUMBER)
is
v_sql varchar2 (4000);
Start
v_sql: =' delete ' | tabname |' College where exists (select order_nbr from the cl closed_order where fac.internal_order_id = cl.order_nbr)';
immediately run v_sql;
v_rowcount_int: = number of lines sql %;
dbms_output.put_line (v_rowcount_int |) ("' deleted rows");
commit;
end;
/

I use an ETL tool to display the number of deleted rows, so I had to create an output parameter and awarded for the number of rows sql %

When I run

Declare
number of v_rowndel;
exec closed_test1 ('COST_TRANS_TABLE', v_rowndel);

I get this error message
ERROR at line 3:
ORA-06550: line 3, column 57:
PLS-00103: encountered the symbol "end-of-file" when awaits an of the
Next:
:= ; not null default characters

I don't understand what the problem is! Is it because I don't have an exit statement, but the sql statement is interlooped

Any help is apprct in advance

Thank you
AJ

It's the way you need to call the procedure.

DECLARE
  v_rowndel   NUMBER;
BEGIN
  closed_test1 ( 'COST_TRANS_TABLE', v_rowndel);
  DBMS_OUTPUT.PUT_LINE ('v_rowndel = ' || v_rowndel);
END;

If you use a tool, then turn on dbms_output.
If execution of sqlplus and then SET SERVEROUPUT on.

G.

Tags: Database

Similar Questions

  • SQL execution plan - question

    Under SQL result in development in a few seconds, but in production continues to run. Explain plan is also less.

    Oracle Database 11 g Enterprise Edition Release 11.2.0.4.0 - 64 bit Production

    CURSOR_SHARING is set to EXACT (production) and FORCE (development) - is this the reason?

    select wonum from workorder where
    worktype in ('EM','CM')
    and siteid = 'DWS_DSS'
    and historyflag = 0
    and (exists (select null
                 from dcw_ddotpermits b
                 where workorder.wonum = b.wonum 
                    and workorder.siteid = b.siteid
                    and b.permittype in ('Construction Permit', 'Occupancy Permit')
                    and b.permitenddate > sysdate
                 group by b.wonum, b.permittype
                 having count(wonum) > 1));
    

    Explain the Plan of Production (which is slow)

    -------------------------------------------------------------------------------------------------------------------------
    | Id  | Operation                          | Name               | Rows  | Bytes | Cost (%CPU)| Time     | Pstart| Pstop |
    -------------------------------------------------------------------------------------------------------------------------
    |   0 | SELECT STATEMENT                   |                    |     1 |    26 |   162K (17)| 00:32:30 |       |       |
    |*  1 |  TABLE ACCESS BY GLOBAL INDEX ROWID| WORKORDER          |  1491 | 38766 |  4259   (1)| 00:00:52 |     1 |     1 |
    |*  2 |   INDEX RANGE SCAN                 | WORKORDER_NDX20    |  2399 |       |   988   (1)| 00:00:12 |       |       |
    |*  3 |    FILTER                          |                    |       |       |            |          |       |       |
    |   4 |     HASH GROUP BY                  |                    |     1 |    35 |     6  (17)| 00:00:01 |       |       |
    |*  5 |      TABLE ACCESS BY INDEX ROWID   | DCW_DDOTPERMITS    |     1 |    35 |     5   (0)| 00:00:01 |       |       |
    |*  6 |       INDEX RANGE SCAN             | W_DDOTPERMITS_NDX2 |     3 |       |     2   (0)| 00:00:01 |       |       |
    ------------------------------------------------------------------------------------------------------------------------
    
    Predicate Information (identified by operation id):
    ---------------------------------------------------
    
       1 - filter("WORKTYPE"='CM' OR "WORKTYPE"='EM')
       2 - access("SITEID"='DWS_DSS' AND "HISTORYFLAG"=0)
           filter( EXISTS (SELECT 0 FROM "MAXIMO"."DCW_DDOTPERMITS" "B" WHERE "B"."WONUM"=:B1 AND 
                  ("B"."PERMITTYPE"='Construction Permit' OR "B"."PERMITTYPE"='Occupancy Permit') AND 
                  "B"."PERMITENDDATE">SYSDATE@! AND "B"."SITEID"=:B2 GROUP BY "B"."WONUM","B"."PERMITTYPE" HAVING COUNT(*)>1))
       3 - filter(COUNT(*)>1)
       5 - filter(("B"."PERMITTYPE"='Construction Permit' OR "B"."PERMITTYPE"='Occupancy Permit') AND 
                  "B"."PERMITENDDATE">SYSDATE@! AND "B"."SITEID"=:B1)
       6 - access("B"."WONUM"=:B1)
    

    Explain the Plan of development (which is fast)

    -----------------------------------------------------------------------------------------------------
    | Id  | Operation                      | Name               | Rows  | Bytes | Cost (%CPU)| Time     |
    -----------------------------------------------------------------------------------------------------
    |   0 | SELECT STATEMENT               |                    |     1 |    25 | 28247  (17)| 00:05:39 |
    |*  1 |  FILTER                        |                    |       |       |            |          |
    |*  2 |   VIEW                         | index$_join$_001   |  7991 |   195K|   985   (1)| 00:00:12 |
    |*  3 |    HASH JOIN                   |                    |       |       |            |          |
    |   4 |     INLIST ITERATOR            |                    |       |       |            |          |
    |*  5 |      INDEX RANGE SCAN          | WWORKORDER_NDX32   |  7991 |   195K|   279   (2)| 00:00:04 |
    |*  6 |     INDEX RANGE SCAN           | WORKORDER_NDX20    |  7991 |   195K|   973   (1)| 00:00:12 |
    |*  7 |   FILTER                       |                    |       |       |            |          |
    |   8 |    HASH GROUP BY               |                    |     1 |    39 |     6  (17)| 00:00:01 |
    |*  9 |     TABLE ACCESS BY INDEX ROWID| DCW_DDOTPERMITS    |     1 |    39 |     5   (0)| 00:00:01 |
    |* 10 |      INDEX RANGE SCAN          | W_DDOTPERMITS_NDX2 |     3 |       |     2   (0)| 00:00:01 |
    -----------------------------------------------------------------------------------------------------
    
    Predicate Information (identified by operation id):
    ---------------------------------------------------
    
       1 - filter( EXISTS (SELECT 0 FROM "MAXIMO"."DCW_DDOTPERMITS" "B" WHERE "B"."WONUM"=:B1 
                  AND ("B"."PERMITTYPE"=:SYS_B_4 OR "B"."PERMITTYPE"=:SYS_B_5) AND 
                  "B"."PERMITENDDATE">SYSDATE@! AND "B"."SITEID"=:B2 GROUP BY "B"."WONUM","B"."PERMITTYPE" 
                  HAVING COUNT(*)>:SYS_B_6))
       2 - filter("HISTORYFLAG"=:SYS_B_3 AND "SITEID"=:SYS_B_2 AND ("WORKTYPE"=:SYS_B_0 OR 
                  "WORKTYPE"=:SYS_B_1))
       3 - access(ROWID=ROWID)
       5 - access("WORKTYPE"=:SYS_B_0 OR "WORKTYPE"=:SYS_B_1)
       6 - access("SITEID"=:SYS_B_2 AND "HISTORYFLAG"=:SYS_B_3)
       7 - filter(COUNT(*)>:SYS_B_6)
       9 - filter(("B"."PERMITTYPE"=:SYS_B_4 OR "B"."PERMITTYPE"=:SYS_B_5) AND 
                  "B"."PERMITENDDATE">SYSDATE@! AND "B"."SITEID"=:B1)
      10 - access("B"."WONUM"=:B1)
    

    It looks more like a problem with the size of the data and related statistics.  (It may be simply the outdated statistics on dev).

    In the production of a larger data NDX20 index on its own looks too expensive to the optimizer so it combines this with the index of ndx32 to avoid visiting the table.

    The first step to study the problem would be to check if the estimated row counts are realistic for individual systems, and then to determine if the data cluster for the production system is much better than Oracle think it is - if yes, then (for newer versions) affecting the preference of table 'table made of blocks cached' a realistic value can help ( https://jonathanlewis.wordpress.com/2015/11/02/clustering_factor-4/ ). If all else fails and the dev is good then allusion and capture of a Plan SQL database may be required.

    Concerning

    Jonathan Lewis

  • Questions HFR - "5200: query execution error: invalid item ID".

    Hi all

    We use the Hyperion HFM 11.1.1.3 application. We have recently upgraded to the Oralce Database 11.2.0.2 and reconfigured the HFM application with this new version of the database. When I tried to run the Financial reporting via the HFR studio, I get the error message - ' 5200: query execution error: invalid item ID ". Please could you help me solve this problem.

    Thank you

    Michel K

    It was because of the default angle that is invalid for the user which was inconsistent with the special report.

    Change the preferences to the preview from the user Point of view and rerun the report.

    File > preference > Financial Reporting > preview select 'ON' box under the Point of view.

    Re-run the report, then select the desired POV.

    This will prompt the user to change their POV every time that he or she opens a report. They can select the correct POV and the report runs successfully.

    You can turn off later. Let me know if it solved that problem.

  • Question by adding the LOBs-ORA-06502: PL/SQL: digital error or value

    Hello

    I'm using Oracle 11 g.

    I have a requirement in which I need to add LOBs and I must insert the LOB in a table column. I am facing problem when the data exceeds certain limits. My program works like the following:

    (Please note that my program logic is given below, not the exact program)

    DECLARE

    final_html CLOB.
    int_html CLOB.
    v_str VARCHAR2 (32767).

    i the number: = 0;

    BEGIN


    DBMS_LOB.CREATETEMPORARY (lob_loc = > int_html, CACHE = > TRUE, hard = > dbms_lob.) CALL);
    DBMS_LOB.CREATETEMPORARY (lob_loc = > final_html, CACHE = > TRUE, hard = > dbms_lob.) CALL);
    DBMS_LOB. OPEN (int_html, DBMS_LOB. LOB_READWRITE);
    DBMS_LOB. OPEN (final_html, DBMS_LOB. LOB_READWRITE);
    dbms_output. ENABLE (1000000);


    FOR i 1,100 loop

    v_str: = "< b >" |
    "< style td =" "DRESSING: break-word" width = "50" > < font size = "2" > ' | "
    I have | ' < / police > < table > ' |
    "< /tr >";

    DBMS_LOB. WriteAppend (lob_loc = > int_html, amount = > LENGTH (v_str), BUFFER = > v_str);


    END LOOP;
    dbms_output.put_line (' the length of the int_html is :'||) DBMS_LOB. GetLength (int_html));

    dbms_output.put_line (' the int_html :'|| is int_html).

    final_html: = "< html >" | int_html | "< / html > ';
    dbms_output.put_line (' the final_html :'|| is final_html).



    EXCEPTION
    WHILE OTHERS THEN


    dbms_output.put_line(SQLCODE||) e -'|| SQLERRM);
    DBMS_LOB. CLOSE (int_html);
    DBMS_LOB. CLOSE (final_html);
    DBMS_LOB. FREETEMPORARY (int_html);
    DBMS_LOB. FREETEMPORARY (final_html);

    END;


    When the loop is made of lesser value, say FOR example, the loop i IN 1.10, the program works very well, but when the closure is done for values more I'm ' - 6502-ORA-06502: PL/SQL: digital error or value ' error message.

    Please help me solve this problem.

    Thanking you in advance.


    Kind regards
    Sri

    Can you please specify what environment you run this?

    I modified your code as follows

    The code executed successfully until the length has been<= 32767="" i.e="" (="" until="" for="" i="" in="">

    In addition, you must use the function APPEND to concatenate variables clob.

    Please check the maximum size by default for varchar2 or dbms_output in your server since you get the error for just the loop in the range (FOR i IN 1,100).

    And Yes, Siva comments are valid.

    DECLARE

    final_html CLOB.
    int_html CLOB.
    v_str VARCHAR2 (32767).

    i the number: = 0;

    BEGIN

    DBMS_LOB.CREATETEMPORARY (lob_loc-online int_html, CACHE-online TRUE, hard-online dbms_lob. CALL);
    DBMS_LOB.CREATETEMPORARY (lob_loc-online final_html, CACHE-online TRUE, hard-online dbms_lob. CALL);
    DBMS_LOB. OPEN (int_html, DBMS_LOB. LOB_READWRITE);
    DBMS_LOB. OPEN (final_html, DBMS_LOB. LOB_READWRITE);
    dbms_output. ENABLE (1000000);

    FOR i 1.1092 loop

    v_str: = '' ||
    '' ||
    I have | '' ||
    '';

    DBMS_LOB. WriteAppend (lob_loc-int_html, amount => (v_str), BUFFER LENGTH-online v_str online);

    END LOOP;

    dbms_output.put_line (' the length of the int_html is :'||) DBMS_LOB. GetLength (int_html));
    Start
    dbms_output.put_line (' the int_html :'|| is int_html).
    dbms_output.put_line (' the length of the int_html is :'||) DBMS_LOB. GetLength (int_html));
    exception when others then
    dbms_output.put_line(SQLCODE||) e -'|| SQLERRM);
    end;
    /*
    Start
    final_html: = ''|| int_html | »';
    dbms_output.put_line (' the final_html :'|| is final_html).
    exception when others then
    dbms_output.put_line(SQLCODE||) e -'|| SQLERRM);
    end; */

    EXCEPTION
    WHILE OTHERS THEN

    dbms_output.put_line(SQLCODE||) e -'|| SQLERRM);
    DBMS_LOB. CLOSE (int_html);
    DBMS_LOB. CLOSE (final_html);
    DBMS_LOB. FREETEMPORARY (int_html);
    DBMS_LOB. FREETEMPORARY (final_html);

    END;

    Published by: Gurnani houta July 29, 2011 03:11

    Published by: Gurnani houta July 29, 2011 03:14

  • How can I correct - fatal execution error (0x7927f22e)

    How can I correct - fatal execution error (0x7927f22e).  I started having this popup after automatic update of Windows.  Also get error message MsiExec message saying that no debugger is found. What happened and how do I fi?  Thanks for help.

    Hi JimSrB,
     
    -Do you remember the number of the Knowledge Base article (KB) updates that have been installed recently?
     
    (0x7927f22e) Fatal execution engine error is due to corruption in Microsoft .net Framework.
     
    Try to repair Microsoft .net Framework and check if it helps.
     
    Write about the State of the question once you try this method.
  • Connection failed SQL State 08001 SQL Server Error 10061 SQL Native Client TCP provider no. could be made because the target machine actively refused it

    Wandering SQL Native Client Datasource - apparently, it's a pretty common problem and I see several resolutions to it.  This problem started for our long company until I started working here.  We do not allow remote connections.  JDE Enterprise Server and SQL server are on the same subnet.  Users are on a different subnet.  SQL Server gets this message tries to connect to the Server Enterprise JDE:

    Connection failed: State 08001 ' SQL': SQL Server Error 10061: Microsoft SQL Native Client TCP provider: no connection could be made because the target machine actively refused it.

    I tried several suggested solutions and do not get the case. Any help is appreciated. Thank you, Sophie

    Hello

    The issue of Windows XP, you have posted is better suited for the IT Pro TechNet public. Please ask your question in the SQL Serversupport for assistance.

    Hope the helps of information.

    Concerning
    Joel S
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • State SQL 28000 and SQL Server error 18452

    I have a SQL 2000 Server on a server with Windows Server 2003 computer.

    I have a laptop with Windows Vista, for which we are unable to connect to the database and it gives an error 24000 state SQL and SQL Server error 18452 with description as "failed to connect to the user (null). Reason: Not associated with approved connection SQL server.

    Please provide a solution to this problem.

    Thank you

    Hello

    Questions like these are much better handled in the TechNet IT Pro Forums.

    My moderator tools cannot transfer messages on Windows forums, please re - ask you question there.

    http://social.technet.Microsoft.com/forums/en-us/category/SQLServer/
    Jack - Microsoft MVP, Windows networking. WWW.EZLAN.NET

  • MS SQL SERVER Error: 262 on Windows 7 family

    A standard family Windows 7 as operating system.  Downloaded SQL Express and I try to create a new database.  Get the following error MS SQL SERVER error: 262.

    Do not know how to set different settings for users for permissions set dbenable?

    Any help would be great!

    Thank you

    Hello
     
    Your question of Windows 7 is more complex than what is generally answered in the Microsoft Answers forums. It is best suited for in the MSDN forums. Please post your question in the MSDN forum.
     
     
    Here are some links that can help you.
     

    Aziz Nadeem - Microsoft Support

    [If this post was helpful, please click the button "Vote as helpful" (green triangle). If it can help solve your problem, click on the button 'Propose as answer' or 'mark as answer '. [By proposing / marking a post as answer or useful you help others find the answer more quickly.]

  • ORA-06502: PL/SQL: digital error or value

    Hello

    We have a package with a cursor that returns the session information:

    create or replace 
    PACKAGE BODY             "LOGIN_AUDIT" 
    ...
    ...
      CURSOR session_cur IS
        SELECT * FROM v$session WHERE audsid=USERENV('sessionid');
    
     session_rec session_cur%ROWTYPE;
    
    ...
    
    FUNCTION get_osuser
        RETURN VARCHAR2
      IS
      BEGIN
        RETURN session_rec.osuser;
      END;
    
    FUNCTION get_dbuser
        RETURN VARCHAR2
      IS
      BEGIN
        RETURN NVL(session_rec.username, 'ORACLE_SYS');
      END;
    
    ...
    

    The package compiled successfully and works ok out for a function that is the get_osuser. When you launch sqlplus, we get the following error:

    Select double LOGIN_audit.get_osuser;

    *

    ERROR on line 1:

    ORA-06502: PL/SQL: digital error or value

    ORA-06512: at "APPUSR. LOGIN_AUDIT', line 94

    ORA-06512: at "APPUSR. LOGIN_AUDIT', line 102

    The APPUSR has select priv on V$ SESSION and a select * from v$ session returns the session information. We can perform any other function since the package without any problem, for example:

    APPUSR@APPD > select double login_audit.get_dbuser;

    GET_DBUSER

    -------------------------------------------------------------

    APPUSR

    Can someone help us work on what happens please.

    PS Oracle: 11.2.0.3, OS Windows 2008 server.

    Thank you

    Really I have not aside, this and raise the question?

    Why you write all this code?

    wouldn't the following very good enough?

    1. FUNCTION get_osuser RETURN VARCHAR2;                    Use sys_context ('USERENV', 'OS_USER')
    2. FUNCTION get_dbuser RETURN VARCHAR2;                    Use sys_context ('USERENV', 'SESSION_USER')
    3. FUNCTION get_client_info RETURN VARCHAR2;                   Use sys_context ('USERENV', 'CLIENT_INFO')
    4. FUNCTION get_module_info RETURN VARCHAR2;               Use sys_context ('USERENV', 'MODULE')
    5. FUNCTION get_action_info RETURN VARCHAR2;                  Use sys_context ('USERENV', 'ACTION')

    Just do not know, I see the advantage of messing around with this slider and have to fight with the updating of information and others.

    This would totally work around the error you get and probably accelerate - and make it easier to maintain.

    ??

    Unless there is some additional requirements, that I'm missing

  • [Need help] Command execution error: null java.lang.ClassCastException - HQAPI

    Hello

    I need your support on the following error, I got from hqapi when I try to «./hqapi.sh alertdefinition sync. My order is:

    # cat ad10100.xml

    <? XML version = "1.0" encoding = "UTF-8" standalone = "yes"? >
    < AlertDefinitionResponse >
    Success of < status > < / status >
    < AlertDefinition mtime = ctime "1331204852666" = "1331204068642" id = "10100" name = "Fs [/] ok" description = "Filesystem sotto soglia critica" priority = "2" enabled = "true" active = "true" frequency = "0" count = "0" range = "0" willRecover = "false" notifyFiltered = "false" controlFiltered = "false" >
    < resource id = "10910" name = "/ dev/map/VolGroup00-LogVol00 of HR-client Linux file system mounted on / (local/ext3)" / >
    < AlertCondition required = "true" type = "1" thresholdValue = "50.0" thresholdComparator = "" & lt; "thresholdMetric ="Use %"/ >"
    < AlertAction id = "10101" className="org.hyperic.hq.measurement.action.MetricAlertAction"/ >
    < / AlertDefinition >
    < / AlertDefinitionResponse >

    # cat ad10100.xml | SH hqapi.sh alertdefinition sync

    Command execution error: null
    java.lang.ClassCastException
    at java.lang.Class.cast(Class.java:2990)
    at org.hyperic.hq.hqapi1.XmlUtil.deserialize(XmlUtil.java:64)
    at org.hyperic.hq.hqapi1.tools.AlertDefinitionCommand.sync(AlertDefinitionCommand.java:439)
    at org.hyperic.hq.hqapi1.tools.AlertDefinitionCommand.handleCommand(AlertDefinitionCommand.java:152)
    at org.hyperic.hq.hqapi1.tools.Shell.dispatchCommand(Shell.java:245)
    at org.hyperic.hq.hqapi1.tools.Shell.main(Shell.java:260)

    I have tested the following workaround but unsuccessfully:

    -try d'utiliser./hqapi.sh instead hqapi.sh sh

    -try to use different java bin (mine is/usr/java/default jdk6_u31), I tried /opt/hyperic/server-4.5.3/jre/bin/

    -Try sh hqapi.sh alertdefinition sync - file = ad10100.xml

    -try to change the XML, removal of State <>success < / status >

    HQAPI version: hqapi1-client - 4.3.0

    Hyperic HQ version: 4.5.3 - GA

    I need to synchronize alertdefinitions based on XML files please help me around this error.

    Thank you very much.

    Claudio

    Trying some updates for automatic alert via the script API definition, I met this problem as well. No matter what I did, it seemed that this class cast exception would be thrown. I downloaded the Github source HQAPI and started searching. I found that the error was in the call to the XmlUtils.deserialize method, which has invoked a JAXBContext to select the class of the object to return, after analysis of the XML. The code that calls the method waits get an object that can be cast to the type AlertDefinitionsResponse, but he returned to an object that must be cast to type AlertDefinitionResponse.

    After a bit of investigation, I realized that JAXB is the context of the node root XML data. Because the root node is AlertDefinitionResponse, he always returned an object of this type, instead of the expected AlertDefinitionsResponse type. Currently, the only way I found to get around this problem is to change the node root to AlertDefinitionsResponse. So, sync-able XML would look like the following, based on XML of the original poster.



         Success
        
            

            
            
        

    I raise a question on the Github repository so that officials are aware of this problem.

    EDIT: The problem has been discussed here

  • InternalExecute/SQLS-SQLError: ' error #3128: disk i/o error has occurred. ", details:", operation:' Executive "

    InternalExecute/SQLS-SQLError: ' error #3128: disk i/o error has occurred. ", details:", operation: 'running' "

    Is what happens when a file specific .muse is open? Does occur during or immediately after the full opening? Or is it occurring randomly while working with the Muse?

    Please send the file MuseLog.txt to your Documents folder to [email protected] along with a link to this topic.

    While you work, Muse both bed the file you opened and writes the changes that you make on the disk in temporary files stored on your startup disk. Without more information, we don't know what file generates this error. Answers to the questions above and the file MuseLog.txt will help.

  • procedure execution error

    Hello

    My procedure is as follows:
    CREATE OR REPLACE
    PROCEDURE retrieve_user_details
      (
        p_taskid IN PROCESS_TASKLIST.PRTK_ID%TYPE,
        p_userid IN USERID.UID_USERID%TYPE,
        p_bizid OUT business.BIZ_ID%TYPE,
        p_bizname OUT business.BIZ_BUSINESS_NAME%TYPE,
        p_fullname OUT VARCHAR2)
    IS
      p_contactid CONTACT.CONT_ID%TYPE;
    BEGIN
       SELECT PRTK_BIZ_ID
         INTO p_bizid
         FROM PROCESS_TASKLIST
        WHERE PRTK_ID=p_taskid;
      COMMIT;
       SELECT BIZ_BUSINESS_NAME
         INTO p_bizname
         FROM business
        WHERE BIZ_ID=p_bizid;
       SELECT UID_CONT_ID
         INTO p_contactid
         FROM USERID
        WHERE UID_USERID=p_userid;
      COMMIT;
       SELECT (CONT_CONTACT_FIRST_NAME
        ||' '
        ||CONT_CONTACT_MIDDLE_NAME
        ||' '
        ||CONT_CONTACT_LAST_NAME)
         INTO p_fullname
         FROM contact
        WHERE cont_id=p_contactid;
      
      DBMS_output.put_line(p_bizid||p_bizname||p_fullname);
    EXCEPTION
    WHEN OTHERS THEN
      dbms_output.put_line('error occured');
    END retrieve_user_details;
    And my script execution is:
    DECLARE
      p_taskid PROCESS_TASKLIST.PRTK_ID%TYPE;
      p_bizid business.BIZ_ID%TYPE;
      p_bizname business.BIZ_BUSINESS_NAME%TYPE;
      p_userid USERID.UID_USERID%TYPE;
      p_fullname VARCHAR2;
    BEGIN
      p_taskid:=36191;
      p_userid:= 'kinneyk2882';
      retrieve_user_details(p_taskid,p_bizid,p_bizname,p_userid,p_fullname);
    END;
    And the error I get is:
    Error report:
    ORA-06550: line 6, column 14:
    PLS-00215: String length constraints must be in range (1 .. 32767)
    06550. 00000 -  "line %s, column %s:\n%s"
    *Cause:    Usually a PL/SQL compilation error.
    *Action:
    Can someone help me inthis please

    Thank you

    p_fullname VARCHAR2;

    a precision needs, such as

    p_fullname VARCHAR2 (30);

  • IAM trying to get a pdf file to open, but it keeps telling me that I have a sql syntax error, how can I solve this

    Hello I have an email in outlook express I need to open a pdf file to, whenever I try to open the pdf file, told me that I have a SQL syntax error, how can I fix this problem

    Hello

    I suggest you to follow the steps in this link and check if it helps:

    http://answers.Microsoft.com/en-us/Office/Forum/office_2010-Outlook/cannot-open-preview-of-PDF-attachment-in-Outlook/a68e5aa4-F730-4b5d-b1ca-b8670d679240?page=3

    It will be useful.

  • I get the error access path/file execution error ' 75 "you try to start a product.

    I get the error access path/file execution error ' 75 "you try to start a product. How will I know which file it is trying to access. Is there a log or something?

    Hello

    1. when exactly you get this error message?

    2 have you made any changes to the computer before the show?

    Please provide more information on the issue so that we can better help you.

    In the meantime, make the boot minimum troubleshooting and check if the problem persists.

    How to configure Windows XP to start in a "clean boot" State

    http://support.Microsoft.com/kb/310353

    Note:

    How to configure Windows to use a Normal startup state

    After you have used the boot is a way to solve your problem, you can follow these steps to configure Windows XP to start normally.

    1. Click Startand then click run.
    2. Type msconfig and click OK.
      The System Configuration utility dialog box appears.
    3. Click the general tab, click Normal Startup - load all device drivers and services, and then click OK.
    4. When you are prompted, click restart to restart the computer.
  • SQLite SQL syntax error

    Hello

    This SQL statement generates a DatabaseException in my program:

    Statement sAddCurrentDay = dbScoreKeeper.createStatement ("INSERT INTO METRICS VALUES (?,?,?,?,?,?,?)" ");
    sAddCurrentDay.prepare ();

    The DatabaseException is:

    INSERT INTO METRICS VALUES (?,?,?,?,?,?,?): SQL logic error or missing database

    I'm sure that the database is fine. I have previous statements that operate on the database successfully.

    You can see where there is a SQL logic with my SQL statement error?

    Thank you

    OK, I think that I understand it. The problem was with my education where I created the table.

    Here's the original statement. Can you find the problem?

    Statement sCreate2 = dbScoreKeeper.createStatement ("CREATE TABLE METRICS (DATETIME Long," +)
    "Whole COMP_ONTIME +,
    "Whole COMP_LATE +,
    "Whole COMP_TOTAL +,
    "Whole OPEN_ONTIME +.
    "Whole OPEN_PASTDUE +.
    "(OPEN_TOTAL Integer) ');"

    There are a couple of missing commas there. If the table has only 5 columns, when he must have 7 columns.

    Thank you

Maybe you are looking for

  • How to limit the volume of the speakers on iPad

    This is more a request to Apple than a question. My friend's son is autistic and loves its iPads, the bad news is that he likes to full volume.  And while he will turn them down on request, 5 seconds later it has in turn it back to 100%.  I've seen a

  • Re: Toshiba download website down?

    Everyone can access http://support.toshiba-tro.de/? This is the Web site of the downloads section of www.toshiba.co.uk/computers pointing once youv'e ' e selected your laptop model and which driver / software you want to download. All I get is some k

  • Satellite C650D-126 - ODD will not work

    I have a Toshiba Satellite C650D-126 and it has stopped recognizing discs although it is trying to read. I ran Microsoft Fix It and everything he had to say was "the disk in drive [E:] is not detected, or failed to load." - that being said, there was

  • Why apear internet gateways in network connections

    In Windows XP, I click on network connections and internet gateway is sometimes there and sometimes not.  Why is this? Thanks for any help. Jack

  • Blue screen after system recovery.

    HP Pavilion 9070 Intel q6600 quad hard drive 500 GB 3 GB ram Vista premium edition _________________________________________________________ PC works well, until such time as the latter.  Will not load up, try runnning Hp recovery, goes through the r