Trap error in decleration block..?

in below code I know at line no 2 there is error of pricision length is too large.
but i want to trap this error in exception or meant to say I want to display error message "number precision too large" while running this codelike other exception in code.what is the possible way to trap this error in exception block.i wrote if block to trap it but its not working..
DECLARE
X NUMBER(2):=111;
Y NUMBER;
PCEXP EXCEPTION;
BEGIN
IF LENGTH(X)>2 THEN
RAISE PCEXP;
END IF;
SELECT SUM(SAL) INTO Y FROM EMP;
EXCEPTION
WHEN PCEXP THEN
DBMS_OUTPUT.PUT_LINE('PCEXP CAUGHT..');
WHEN OTHERS THEN
DBMS_OUTPUT.PUT_LINE('OTHERS CAUGHT');
END;

Hi,
welcome in the Installation forum. I think you should post your question in the PL/SQL forum. Here the link:
PL/SQL
Cheers,
David
OCP 9i / 10g / 11g
http://www.oratoolkit.ch/knowledge/howto/installation/otn.php

Similar Messages

  • Unable to trap error on NAS drive mount failure

    Following script works fine when NAS is on network but unmounted but fails to trap error when NAS not on network (it's on a wireless connection that drops out in heavy snow).
    I want to build a loop so that it tries to bring up the drive every few minutes but can't prevent the error: "Connection failed. Server may not exist or is not operational at this time....... OK"
    Any ideas why?
    -- Connect to Remote Backup NAS
    tell application "Finder"
    set disk_names to list disks
    if disk_names contains "dbqwbackup" then
    display dialog "Backup Drive dbqwbackup connected" buttons "Connected" default button "Connected" giving up after 4
    else
    display dialog "Mounting dbqwbackup" buttons "Mount Drive" default button "Mount Drive" giving up after 3
    try
    with timeout of 250 seconds
    mount volume "afp://192.168.0.18/dbqwbackup"
    end timeout
    display dialog "Backup Drive dbqwbackup connected" buttons "Connected" default button "Connected" giving up after 4
    on error error_message number error_number
    display dialog error_message & return & error_number with icon 2 giving up after 10
    return
    end try
    end if
    end tell

    I had the same problem. I found out that a +tell application "Finder"+ block around the +mount volume+ command make the +with timeout+ to work just fine.
    Hope this helps.
    try
    with timeout of 250 seconds
    tell application "Finder"
    mount volume "afp://192.168.0.18/dbqwbackup"
    end tell
    end timeout
    end try

  • Error message without blocking Input fields

    Hi,
    I want to display an error message in the selection screen. The error is for input date validation. But the once error displays in the status bar, it blocks the input fields in the selection screen. I want to display the error message without blocking any of the input parameter in the selection screen. Where should i write the code?
    Thanks in advance.
    Ezhil

    Hi Ezhilhrh
    I think you could have done a trial with different message types before posting this question.
    Please try with success message(Type - S) and DISPLAY LIKE 'E'.
    And also control the program flow using a flag or by checking the initiality of your internal table.
    Regards
    Hareesh Menon

  • Acrobat 7 mandatory update failing with error 16820 and blocking the use of the program

    Acrobat 7 mandatory update failing with error 16820 and blocking the use of the program

    Sorry I can't get the screen print to upload
    It says
    Mandatory Update Available
    A Mandatory version of this application is available for download. Application can't continue without installing this version.
    Application:     Acrobat_com
    Installed version: 2.0.0.0
    Update Version : 2.3.0.0
    Download now                    Quit
    Release notes ( this is blank)
    After selecting 'Download Now' I get the following message;
         Download failed
         There was an error downloading the update. Error #16820
         Close

  • RAC Create ORA-00206: error in writing (block 3, # blocks 1) of controlfile

    Why i am getting this error durint RAC DB Creation using dbca -datafileDestination /var/opt/oracle/oradata/orcl
    I cheek the directory and i am seeing 3 control files created in it. Out put of my alert.log file
    Any idea?
    =================================================
    Starting ORACLE instance (normal)
    Sun Apr 11 12:07:59 2004
    Global Enqueue Service Resources = 64, pool = 1
    Sun Apr 11 12:07:59 2004
    Global Enqueue Service Enqueues = 128
    LICENSE_MAX_SESSION = 0
    LICENSE_SESSIONS_WARNING = 0
    GES IPC: Receivers 1 Senders 1
    GES IPC: Buffers Receive 1000 Send 530 Reserve 300
    GES IPC: Msg Size Regular 396 Batch 2048
    SCN scheme 2
    Using log_archive_dest parameter default value
    LICENSE_MAX_USERS = 0
    SYS auditing is disabled
    Starting up ORACLE RDBMS Version: 9.2.0.4.0.
    System parameters with non-default values:
    processes = 150
    timed_statistics = TRUE
    shared_pool_size = 150994944
    large_pool_size = 33554432
    java_pool_size = 16777216
    control_files = /var/opt/oracle/oradata/orcl/control01.ctl, /var/opt/oracle/oradata/orcl/control02.ctl, /var/opt/oracle/oradata/orcl/control03.ctl
    db_block_size = 8192
    db_cache_size = 50331648
    compatible = 9.2.0.0.0
    db_file_multiblock_read_count= 16
    cluster_database_instances= 1
    thread = 1
    fast_start_mttr_target = 300
    instance_number = 1
    undo_management = AUTO
    undo_tablespace = UNDOTBS1
    undo_retention = 10800
    remote_login_passwordfile= EXCLUSIVE
    db_domain =
    instance_name = orcl
    local_listener = LISTENER_ORCL1
    remote_listener = LISTENERS_ORCL
    hash_join_enabled = TRUE
    background_dump_dest = /ora01/oracle/admin/orcl/bdump
    user_dump_dest = /ora01/oracle/admin/orcl/udump
    core_dump_dest = /ora01/oracle/admin/orcl/cdump
    sort_area_size = 524288
    db_name = orcl
    open_cursors = 300
    star_transformation_enabled= FALSE
    query_rewrite_enabled = FALSE
    pga_aggregate_target = 60817408
    Sun Apr 11 12:07:59 2004
    cluster interconnect IPC version:Oracle UDP/IP
    IPC Vendor 1 proto 2 Version 1.0
    PMON started with pid=2
    DIAG started with pid=3
    LMON started with pid=4
    LMD0 started with pid=5
    DBW0 started with pid=6
    LGWR started with pid=7
    CKPT started with pid=8
    SMON started with pid=9
    RECO started with pid=10
    Sun Apr 11 12:08:02 2004
    CREATE DATABASE orcl
    MAXINSTANCES 32
    MAXLOGHISTORY 0
    MAXLOGFILES 192
    MAXLOGMEMBERS 3
    MAXDATAFILES 1024
    DATAFILE '/var/opt/oracle/oradata/orcl/orcl/system01.dbf' SIZE 250M REUSE AUTOEXTEND ON NEXT 10240K MAXSIZE UNLIMITED
    EXTENT MANAGEMENT LOCAL
    DEFAULT TEMPORARY TABLESPACE TEMP TEMPFILE '/var/opt/oracle/oradata/orcl/orcl/temp01.dbf' SIZE 40M REUSE AUTOEXTEND ON NEXT 640K MAXSIZE UNLIMITED
    UNDO TABLESPACE "UNDOTBS1" DATAFILE '/var/opt/oracle/oradata/orcl/orcl/undotbs01.dbf' SIZE 20M REUSE AUTOEXTEND ON NEXT 5120K MAXSIZE UNLIMITED
    CHARACTER SET WE8ISO8859P1
    NATIONAL CHARACTER SET AL16UTF16
    LOGFILE GROUP 1 ('/var/opt/oracle/oradata/orcl/orcl/redo01.log') SIZE 5M REUSE,
    GROUP 2 ('/var/opt/oracle/oradata/orcl/orcl/redo02.log') SIZE 5M REUSE
    Sun Apr 11 12:08:02 2004
    lmon registered with NM - instance id 1 (internal mem no 0)
    Sun Apr 11 12:08:03 2004
    Reconfiguration started
    List of nodes: 0,
    Global Resource Directory frozen
    one node partition
    Communication channels reestablished
    Master broadcasted resource hash value bitmaps
    Non-local Process blocks cleaned out
    Resources and enqueues cleaned out
    Resources remastered 0
    set master node info
    Submitted all remote-enqueue requests
    Update rdomain variables
    Dwn-cvts replayed, VALBLKs dubious
    All grantable enqueues granted
    0 GCS shadows traversed, 0 replayed, 0 unopened
    Submitted all GCS remote-cache requests
    Sun Apr 11 12:08:03 2004
    Reconfiguration complete
    Post SMON to start 1st pass IR
    Sun Apr 11 12:08:24 2004
    Database mounted in Exclusive Mode.
    Sun Apr 11 12:08:35 2004
    Successful mount of redo thread 1, with mount id 1051001763.
    Assigning activation ID 1051001763 (0x3ea503a3)
    Thread 1 opened at log sequence 1
    Current log# 1 seq# 1 mem# 0: /var/opt/oracle/oradata/orcl/orcl/redo01.log
    Successful open of redo thread 1.
    Sun Apr 11 12:08:38 2004
    SMON: enabling cache recovery
    Sun Apr 11 12:08:38 2004
    WARNING: Default passwords for SYS and SYSTEM will be used.
    Please change the passwords.
    Sun Apr 11 12:08:38 2004
    create tablespace SYSTEM datafile '/var/opt/oracle/oradata/orcl/orcl/system01.dbf' SIZE 250M REUSE AUTOEXTEND ON NEXT 10240K MAXSIZE UNLIMITED
    EXTENT MANAGEMENT LOCAL online
    Sun Apr 11 12:10:08 2004
    Errors in file /ora01/oracle/admin/orcl/bdump/orcl1_ckpt_16649.trc:
    ORA-00206: error in writing (block 3, # blocks 1) of controlfile
    ORA-00202: controlfile: '/var/opt/oracle/oradata/orcl/control03.ctl'
    ORA-27072: skgfdisp: I/O error
    Linux Error: 5: Input/output error
    Additional information: 2
    ORA-00206: error in writing (block 3, # blocks 1) of controlfile
    ORA-00202: controlfile: '/var/opt/oracle/oradata/orcl/control01.ctl'
    ORA-27072: skgfdisp: I/O error
    Linux Error: 5: Input/output error
    Additional information: 2
    Sun Apr 11 12:10:08 2004
    Errors in file /ora01/oracle/admin/orcl/bdump/orcl1_ckpt_16649.trc:
    ORA-00221: error on write to controlfile
    ORA-00206: error in writing (block 3, # blocks 1) of controlfile
    ORA-00202: controlfile: '/var/opt/oracle/oradata/orcl/control03.ctl'
    ORA-27072: skgfdisp: I/O error
    Linux Error: 5: Input/output error
    Additional information: 2
    ORA-00206: error in writing (block 3, # blocks 1) of controlfile
    ORA-00202: controlfile: '/var/opt/oracle/oradata/orcl/control01.ctl'
    ORA-27072: skgfdisp: I/O error
    Linux Error: 5: Input/output error
    Additional information: 2
    Sun Apr 11 12:10:08 2004
    CKPT: terminating instance due to error 221
    Sun Apr 11 12:10:09 2004
    System state dump is made for local instance
    Sun Apr 11 12:10:09 2004
    Trace dumping is performing id=[cdmp_20040411121009]
    Sun Apr 11 12:10:13 2004
    Instance terminated by CKPT, pid = 16649
    =================================================

    dear karan & all
    i have copied "control file" from another location but now it generate an error
    SQL> startup
    ORACLE instance started.
    Total System Global Area  557842432 bytes
    Fixed Size                  1250140 bytes
    Variable Size             289410212 bytes
    Database Buffers          264241152 bytes
    Redo Buffers                2940928 bytes
    ORA-00211: control file does not match previous control files
    ORA-00202: control file: 'F:\ORACLE\IDS\SAPDATA1\CNTRL\CNTRLIDS.DBF'
    SQL>
    now tell me what can i do
    regard

  • ORA-00204: error in reading (block string, # blocks string) of controlfile

    dear all
    when i start db
    with command  sqlplus "/as sysdba" 
    at the end it generate an error
    C:\Documents and Settings\idsadm>sqlplus "/as sysdba"
    SQL*Plus: Release 10.2.0.1.0 - Production on Mon Oct 20 12:47:37 2008
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to an idle instance.
    SQL> startup
    ORACLE instance started.
    Total System Global Area  557842432 bytes
    Fixed Size                  1250140 bytes
    Variable Size             289410212 bytes
    Database Buffers          264241152 bytes
    Redo Buffers                2940928 bytes
    ORA-00204: error in reading (block 3, # blocks 50) of control file
    ORA-00202: control file: 'F:\ORACLE\IDS\SAPDATA1\CNTRL\CNTRLIDS.DBF'
    ORA-27091: unable to queue I/O
    ORA-27070: async read/write failed
    OSD-04006: ReadFile() failure, unable to read from file
    O/S-Error: (OS 23) Data error (cyclic redundancy check).

    dear karan & all
    i have copied "control file" from another location but now it generate an error
    SQL> startup
    ORACLE instance started.
    Total System Global Area  557842432 bytes
    Fixed Size                  1250140 bytes
    Variable Size             289410212 bytes
    Database Buffers          264241152 bytes
    Redo Buffers                2940928 bytes
    ORA-00211: control file does not match previous control files
    ORA-00202: control file: 'F:\ORACLE\IDS\SAPDATA1\CNTRL\CNTRLIDS.DBF'
    SQL>
    now tell me what can i do
    regard

  • Error in reading (block 3, # blocks 8) of control file

    Hi All,
    My database experiencing this error :
    ORA-00204: error in reading (block 3, # blocks 8) of control file
    ORA-00202: control file: 'C:\ORACLEXE\ORADATA\XE\CONTROL.DBF'
    ORA-27091: unable to queue I/O
    ORA-27070: async read/write failed
    OSD-04006: ReadFile() failure, unable to read from file
    O/S-Error: (OS 23) Data error (cyclic redundancy check).
    Worst part we do not have latest backup and makes things weird.
    My Control file seem corrupted.

    Error: ORA 204
    Text: error in reading control file <name> block <num>, # blocks <num>
    Cause: A disk read-failure occurred while attempting to read the specified
    control file.
    The block location of the failure is given.
    Action: Check that the disk is online.
    If it is not, bring it online and shut down and restart Oracle.
    If the disk is online, then look for operating system reasons for
    Oracle's inability to read the disk or control file.
    Use the mutiplxed controlfile if you have already available to start your instance...
    SQL>show parameter control_files;
    Use above command

  • Trap Error in DIAdem through ToCommand

    Can you let me know if there is any means to trap errors that would occur in DIAdem Interface when it’s called through ToCommand and NoErrorDisplay is set to true (1)?
    We try to invoke DIAdem through ToCommand in a COM, since we need DIAdem to work as a server bNoErrorDisplay is set to true. Could you please let us know the possible means to trap an DIAdem error in COM.
    Waiting for your earliest response.
    Thanks,Priya

    Hi Priya,
    Try this code, and see if you get the functionality you're looking for:
    Set ToCommand = CreateObject("DIAdem.ToCommand")
    Call ToCommand.CmdExecuteSync("LastErrorReset")
    Call ToCommand.CmdExecuteSync("AutoIgnoreError:= 1")
    Call ToCommand.CmdExecuteSync("L1:= 0")
    Call ToCommand.CmdExecuteSync("L1:= ProgramRevision(1,3,4)")
    'Call ToCommand.CmdExecuteSync("L1:= ProgramRevision")
    'Call ToCommand.CmdExecuteSync("LastErrorReset")
    Call ToCommand.CmdExecuteSync("LastErrorGet")
    Call ToCommand.IntegerVarGet("L1", Version)
    Call ToCommand.IntegerVarGet("LastErrorNo", ErrNum)
    Call ToCommand.TextVarGet("LastErrorFile", ErrText)
    Call ToCommand.IntegerVarGet("LastErrorPart", ErrPart)
    Call ToCommand.CmdExecuteSync("AutoIgnoreError:= 0")
    Set ToCommand = Nothing
    MsgBox "DIAdem Revision = " & Version & vbCRLF & "ErrNo = " & ErrNum & vbCRLF & "ErrMsg = " & ErrText & vbCRLF & "ErrPar = " & ErrPart
    Regards,
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • Developer Error: invalid  window block name passed to set_window_position

    Hi
    I had Registered a Form in Oracle apps
    After that i'm trying to open the form,then this message will be displayed
    Developer Error: invalid  window block name passed to set_window_position
    in the PreForm Trigger I had written the code as apps.set_window_position('MY block name(MAIN_BLOCK)','MY window(MAIN_WINDOW)')
    i had wriiten like that
    but
    After click on that Ok Button of the error message my form is Open
    and My form is Also not having any Minimize,Maximize and Close Buttons
    Please Tel me How should i resolve that Error and also how can i Get that buttons for the Form

    I agree with Francios, you should ask your question in the General EBS Discussion forum.
    in the PreForm Trigger I had written the code as apps.set_window_position('MY block name(MAIN_BLOCK)','MY window(MAIN_WINDOW)')You are using a Oracle E-Business Suite (EBS) framework procedure to set the window position, not the Forms standard Set_Window_Property built-in.
    and My form is Also not having any Minimize,Maximize and Close ButtonsThese could be controlled by the APPS.Set_Window_Position procedure, but I'm not sure. It could simply be that you set (or neglected to set) the default properties of your Form's window the enable these buttons. More than likely, the APPS procedure is setting them. It's been too long since I worked with the EBS to say for certain. You really should ask your question in the General EBS Discussion forum.
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • Error - Invoice is blocked for quality inspection.

    While making payment to vendor the error shown - Error - Invoice is blocked for quality inspection.
    Can anybody help ?

    This is caused by customizing of QM in procurement.
    You can only pay if the material is released from quality status.

  • Web Service - Invoke Web Service not trapping errors

    Greetings All:
    I am having an issue trying to trap errors coming out of the Invoke Web Service service.
    I have a Fault Route set up for SYSTEM EXCEPTION, and direct it to an ExecuteScript service.
    If the process I am developing fails, it appears to leave the web service "open". The next time the process is invoked, it will fail on the Web Service call.
    When my process fails, this failure route is never taken.
    I do not know why the initial failure does not "clean-up" after itself.
    I also do not know why the Web Service call does not follow the failure route.
    This is a turnkey 8.2 install on Windows Server 2003 running JBoss.
    Any assistance on how to overcome these problems would be greatly appreciated.
    Thank You
    Mark
    My process dies with the following ending up in the system log:
    2009-03-12 16:53:18,144 ERROR [com.eviware.soapui.impl.wsdl.WsdlSubmit] Exception in request: java.net.SocketException: Connection reset
    2009-03-12 16:53:18,144 ERROR [com.eviware.soapui.SoapUI] An error occured [Connection reset], see error log for details
    2009-03-12 16:53:18,144 ERROR [soapui.errorlog] java.net.SocketException: Connection reset
    java.net.SocketException: Connection reset
    at java.net.SocketInputStream.read(SocketInputStream.java:168)
    at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
    at java.io.BufferedInputStream.read(BufferedInputStream.java:235)
    at org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:77)
    at org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:105)
    at org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1115)
    at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.re adLine(MultiThreadedHttpConnectionManager.java:1382)
    at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1832)
    at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1590)
    at com.eviware.soapui.impl.wsdl.submit.transports.http.TimeablePostMethod.readResponse(Timea blePostMethod.java:56)
    at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:995)
    at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java :397)
    at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:17 0)
    at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
    at com.eviware.soapui.impl.wsdl.submit.transports.http.HttpClientRequestTransport.sendReques t(HttpClientRequestTransport.java:142)
    at com.eviware.soapui.impl.wsdl.WsdlSubmit.run(WsdlSubmit.java:112)
    at com.eviware.soapui.impl.wsdl.WsdlSubmit.submitRequest(WsdlSubmit.java:72)
    at com.eviware.soapui.impl.wsdl.WsdlRequest.submit(WsdlRequest.java:370)
    at com.adobe.idp.dsc.webservice.WebServiceSoapUIInvoker.invoke(WebServiceSoapUIInvoker.java: 126)
    at com.adobe.idp.dsc.webservice.WebServiceImpl.invoke(WebServiceImpl.java:93)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.adobe.idp.dsc.component.impl.DefaultPOJOInvokerImpl.invoke(DefaultPOJOInvokerImpl.jav a:118)
    at com.adobe.idp.dsc.interceptor.impl.InvocationInterceptor.intercept(InvocationInterceptor. java:140)
    at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
    at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor$1.doInTransaction(Transa ctionInterceptor.java:74)
    at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionCMTAdapterBean.execute(EjbTr ansactionCMTAdapterBean.java:342)
    at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionCMTAdapterBean.doSupports(Ej bTransactionCMTAdapterBean.java:212)
    at sun.reflect.Ge

    Hi Mark,
    Did you find out the origin of this problem? I've got a similar issue (without the stacktrace) and any help would be great!
    Thanks,
    Romain.

  • Trapping Error through PL/SQL

    I was wondering if there is a way to trap errors somehow. I am trying a FOR..LOOP and I am looping through one table, through a cursor and inserting into another table. There some records that may not meet the criteria of the table that is being inserted, and I will not be able to tell which record it was or what column of the record it was, but currently when I run this procedure, it craps out because of some condition it did not meet.
    I am hoping if I can maybe trap the error, and somehow use a “on error resume next” or “on error go to next” type of a function. Is this possible in PL/SQL?

    DECLARE
    BEGIN
      DECLARE
      BEGIN
        <your_error_generating_code_goes_here> ;
      EXCEPTION
      WHEN <specific_exception_you_want_ignored>
      THEN
        NULL ;
      END ;
    END ;

  • CMDTUX_CAT:1380: ERROR: Message queue blocking prevented delivery

    Today, I changed a Tuxedo application (server) to the product systems(One master and two slaves). Only a small changes in code. But after a period of running, there are many errors in ULOG:
    CMDTUX_CAT:1380: ERROR: Message queue blocking prevented delivery, Qaddr = 583902
    And then, the server is died. After restart the server, this will happen again later.
    I don't know why this happens? Thx.

    Hi Bill,
    This is happening because the BRIDGE process received a message from the network and was unable to place the message on the intended IPC queue. This could be because the server handling that message is backed up, or the system IPC resource settings are too low. Please check the recommended actions in:
    http://download.oracle.com/docs/cd/E18050_01/tuxedo/docs11gr1/messages/cdtux/cdtux013.html
    Regards,
    Todd Little
    Oracle Tuxedo Chief Architect

  • Trapping error in stored procedure

    Hi all,
    I forms 6i application development, i mostly called backend procedure ( Stored procedure ).
    problem is how can i trap error which occured in procedure in my Oracle forms application.
    Tell me different methods to solve this problem
    I'am working in Oracle 8 and Forms 6i for windows NT 4.0
    Regards,
    Seema shah

    user21354 wrote:
    i am creating the collection in my Stored procedure it is giving me this error
    declare
    type t_number is table of number;
    v_numbers t_number;
    begin
    select VISIT_ID
    bulk collect into v_numbers
    from visit
    where VISITTYPEID = 2;
    select VISIT_ID from v_numbers;
    end;
    error
    PL/SQL: ORA-00942: table or view does not exist
    please tell me this why this happeningcouple of things...
    context switching - Your second 'select visit_id' query is actually parsed outside plsql, in the 'sql engine'. This sql engine has no knowledge of what v_numbers is, it's expecting an actual table name but it can't find anything called v_numbers in it's metadata. So it bombs out with that error. Google 'context switching plsql' for more info. :o)
    - as v_numbers is a collection, you could just loop through the results:
      for n in 1..v_numbers.count
      loop
        dbms_output.put_line(v_numbers(n));
      end loop;- as stated above, a 'select' without 'into' won't work in plsql anyway.
    - there is a way of getting round the context switch, by creating your Type in sql rather than plsql and 'casting' it to a table. Let us know if you want to know the steps to do it, but try reading up on context switch first.
    cheers.

  • CHILD form error FRM-30100: Block must have at least one primary key item.

    Hi friends,
    I have increased the DML array of the child block from 1 to 10, but it throws me error:
    FRM-30100: Block must have at least one primary key item.
    Block: CEC_ADJUSTMENT_RECON
    Form: CEC_ADJ
    FRM-30085: Unable to adjust form for output.
    How does a form know that the table does not have primary key? Is it referring to it?
    Thanks a lot                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    I dont understand why do you increase the DML array size..
    Because it says in the HELP
    Specifies the maximum array size for inserting, updating, and deleting records in the database at one time.
    A larger size reduces transaction processing time by reducing network traffic to the database, but requires more memory.  The optimal size is the number of records a user modifies in one transaction.
    The FRM-30100 comes not because of the above property..
    If your query data source type is other than TABLE, it is a must to set at least one database field's PRIMARY KEY ITEM PROPERTY in the block to be a YES.

Maybe you are looking for

  • HT4314 I can't log in to my game center account.

    It wants my Apple ID and password. I put them in (the same ones I used to log onto this apple support site and my iTunes account). But it says they aren't right. So here's my question. My daughter set up my game center account. Is it possible the App

  • PDF headers and footers

    Hi, Trying to write a vocal reader for a PDF document, however, stuff that people would normally skip are being read by the reader (headers, footers, page numbers, footnotes, etc). Anyone knows a way to programmatically recognize the type of the para

  • 0doc_number not activating

    Hi All iam not able to activate 0doc_number.while activating /BI0/sdoc_number is not getting activated. I have tried to activate the SID table using T code se14 with no luck. Can any one give suggestion. regards. harry

  • Similar method like XtAppAddInput(..)

    I have used XtAppAddInput()method which is under X11 utility library in unix. Can you suggest any utility in java which allows similar funtionality? For more details about X window methods, pliz go thru Unix man page.

  • How to view automator code?

    I've recorded an automator action in another application that supports Applescript (soundtrack pro). I'd now like to view automator's code so I can use it as part of a larger Applescript script. How can we view automator's code after recording? Thank