Oracle 11g Stored Proccedure won't talk to our ColdFusion code.

WHY IS JIVE SAYING THIS IS A BLANK MESSAGE?????
We are attempting to execute a stored procedure with this piece of code.
[Macromedia][Oracle JDBC Driver]Unhandled sql type  
The error occurred in
D:\playground\warren\PpurComponents.cfc: line 49
Called from D:\playground\warren\ppur_file_import.cfm: line 53
Called from D:\playground\warren\PpurComponents.cfc: line 49
Called from D:\playground\warren\ppur_file_import.cfm: line 53
Here is what I hope is the relevant portion of a 1400 line stored procedure located in Oracle.  We don't get to refactor the stored procedure until phase two of this project.

WELL THAT SURE TURNED OUT TO BE CRAP!
ORIGINAL MESSAGE:
We are attempting to execute a stored procedure with this piece of code.
<cfstoredproc returncode="yes" datasource="purload" procedure="co_error.check_records" debug="yes">
     <cfprocparam type="in" cfsqltype="cf_sql_decimal" value="2010">
</cfstoredproc>
As you can see, it is a pretty small <cfstoredproc...> block.  Executing it returns this error.
[Macromedia][Oracle JDBC Driver]Unhandled sql type
The error occurred in D:\playground\warren\PpurComponents.cfc: line 49
Called from D:\playground\warren\ppur_file_import.cfm: line 53
Called from D:\playground\warren\PpurComponents.cfc: line 49
Called from D:\playground\warren\ppur_file_import.cfm: line 53
Here is what I hope is the relevant portion of a 1400 line stored procedure located in Oracle.  We don't get to refactor the stored procedure until phase two of this project.
PROCEDURE Check_records(p_year IN NUMBER)
AS v_use_no               NUMBER(8);
v_error_code           BINARY_INTEGER := 0;
v_error_type           VARCHAR2(20);
This project is to replace a 15 year old Perl program that used to call this procedure with this code.
open(SQL_OUTPUT, "sqlplus -S ops\$xxxxx/yyyyyy\@dev11ge \@check_errors $year |")
That executed this SQL file.
* Run the error checking procedures
SET pause off
SET verify off
SET TERMOUT ON
SET FEEDBACK OFF
SET document off
SET serveroutput ON size 1000000 format word_wrapped
WHENEVER SQLERROR EXIT 1 ROLLBACK
WHENEVER OSERROR EXIT 1 ROLLBACK
EXECUTE Co_error.Check_records(&1);
show errors
EXIT 0
Can anybody provide some insight on why this won't work form our CFML?
TIA
Ian
Message was edited by: ilssac  MY GOOD LORD DID THAT TAKE A LOT OF EFFORT IN ORDER TO MAKE A READABLE MESSAGE!
Message was edited by: ilssac: After fighting with Jive I forgot to add - if we take out the returncode="yes" parameter from the <cfstoredproc...> tag, CF will not throw an exception, but the stored procedure still does not execute.

Similar Messages

  • Oracle 11g stored procs: SELECT ALL_ARGUMENTS not returning certain values in certain cases

    I'm doing a select on the ALL_ARGUMENTS like:
    SELECT count(*) FROM all_arguments WHERE owner LIKE 'MySchema' ESCAPE '/' AND object_name LIKE 'MyStoredProc' ESCAPE '/' AND package_name LIKE 'MyPackage' ESCAPE '/';
    Sometimes, after connecting to the DB after a certain period of time, I get a result = 0, althought the Stored Procedure is there. Immediatelly after that I retry, and I get result = 2.
    Why is that? Does the SELECT recompile the stored proc?

    I'm surprised that you get anything if you use that query.
    Oracle considers object names to be uppercase unless the name is enclosed in double quotes. So there would be no schemas with a name 'MySchema' since the name would actually be 'MYSCHEMA'.

  • My Macbook won't talk to our new wireless printer. What should I do?

    We have recently purchased a new wireless printer (Lexmark S600 Series) and my mum and dad's laptops (hp and acer) both talk to the printer. However my macbook and the imac we have upstairs do not talk to it as a printer. It will scan but it wont print...which is kind of the point of a printer So what I want to know is how to get the apple computers to print from our new printer.
    Please help!
    Thanks
    Hannah x

    Have you set up the printer on both Macs? Are the recognizing the printer as a scanner and not as a printer? Have you tried hooking the printer directly to a Mac to see if it will recognize it that way?
    Here's a website with PDFs that might help you get it set up with the Macs.
    http://www.lexmark.com/publications/pdfs/2007/s600/en.html
    I've had a few pain in the rear printers that wouldn't work unless I hooked up them up directly. After that they seemed to work ok through my network.

  • Update jdk from Oracle 11g? (version is EOL)

    When does Oracle plan to update the jdk and jvm used in Oracle 11g stored procedures?
    Oracle 11g ships with java 1.5, which reached EOL in October, 2009.
    (See [http://www.oracle.com/technetwork/java/eol-135779.html] )
    Thus, the compiler and VM used to provide Java functionality in the Oracle Database are ~2.5 years beyond the era when they were officially supported.
    Edited by: 921895 on Mar 19, 2012 9:55 AM

    Currently , the java version in the database cannot be upgraded - this is being looked upon as a future option.
    OracleJVM Install and Upgrade FAQ [ID 825306.1]
    Possible to Upgrade JDK Classes Supplied with Database Version 8i-10g? [ID 342810.1]     
    HTH
    Srini

  • RMAN backup is getting failed after oracle 11g upgarde (11.2.0.2)

    Hi Basis Expert,
    We have done oracle 11g ugrade (11.2.0.2) in our Dev BI system.
    But after the upgrade the RMAN backup is failing. The backup use to work fine when we were on 10g (10.2.0.4).
    Has anyone face this issue earlier.
    Appreciate your help.
    Regards,
    Anil Shenoy

    Hello Anil,
    Syntax is -
    ln -s /path/to/original/ /path/to/linkName
    Output will be -
    linkName --> original
    In your case, 112_64 is the link name according to above SAP Note and 11202 is the original/physical path. So, the command should be -
    ln -s /oracle/<DBSID>/11202 /oracle/<DBSID>/112_64
    And the Result should be, 112_64 --> 11202 (in short)
    So, I think you should change the existing link, 11202->112_64
    Thanks

  • /dev/shm on Oracle Linux 6.x to run Oracle 11g R2 - manual configuration?

    Hello
    We are building a server to run Oracle 11g R2 database (11.2.0.3 x64) on Oracle Linux 6.2 with UEK R2.
    Our preference is to use AMM to have Oracle 11g R2 manage memory. We may impose some minium SGA and PGA memory allocations but basically aim to use MEMORY_TARGET to manage overall memory.
    By default Linux makes the size of /dev/shm ~50% of server physical RAM, as far as I can tell.
    Here is the /etc/fstab entry created by the installation:
    tmpfs /dev/shm tmpfs defaults 0 0
    Given this Linux server will only run Oracle 11g R2 database and some monitoring software, almost application code will run on the server. The application code will run on the separate application server and is Java based.
    Can I change the */etc/fstab* entry for /dev/shm to manually increase the size to take up ~80-90% of the server physical RAM ? Is it a good idea?
    The server is 64-bit, the RAM = 64 GB, so I am thinking to manually make /dev/shm to be = ~55GB, leaving ~8GB for other purposes.
    Right now it's about 32GB (50%?) if I leave the /dev/shm 'defaults' on.
    many thanks

    thanks,
    I have read the doc (what little there is on this topic).
    I have asked on the database forum......
    just FYI - below is the proof:
    SQL> show parameter mem
    NAME                    TYPE     VALUE
    hi_shared_memory_address     integer     0
    memory_max_target          big integer 4G
    memory_target          big integer 0
    shared_memory_address     integer     0
    SQL> show parameter ga
    NAME                    TYPE     VALUE
    lock_sga               boolean     FALSE
    pga_aggregate_target          big integer 1600M
    pre_page_sga          boolean     FALSE
    sga_max_size          big integer 3G
    sga_target               big integer 1600M
    still does not work.
    And I cant change memory_max_target = 0 because I get error on startup:
    SQL> alter system set memory_max_target=0 scope=spfile;
    System altered.
    SQL> shutdown immediate;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup;
    ORA-01078: failure in processing system parameters
    ORA-00843: Parameter not taking MEMORY_MAX_TARGET into account
    ORA-00849: SGA_TARGET 3221225472 cannot be set to more than MEMORY_MAX_TARGET 0.
    BUT if memory_max_target is > 0 then alert log says hugepages can not be used
    it feels like catch-22.....
    thanks
    Edited by: yurib on Jun 1, 2012 4:53 PM

  • Oracle 11g software uninstall

    Hi Basis Expert,
    We have done a oracle 11g (11.2.0.2) upgrade in our Mock system.
    Can anybody tell me how to uninstall oracle 11g software in AIX 5.3.
    I tried searching google but couldnt find it.
    Please help me.
    Regards,
    Anil

    Hi,
    Uninstalling all products from UNIX is a lot more consistent. If you do need to resort to a manual uninstall you should do something like:
        Uninstall all Oracle components using the Oracle Universal Installer (OUI).
        Stop any outstanding processes using the appropriate utilities.
    oemctl stop oms user/password
    agentctl stop
    lsnrctl stop
        Alternatively you can kill them using the kill -9 pid command as the root user.
        Delete the files and directories below the $ORACLE_HOME.
    cd $ORACLE_HOME
    rm -Rf *
        With the exception of the product directory, delete directories below the $ORACLE_BASE.
    cd $ORACLE_BASE
    rm -Rf admin doc jre o*
        Delete the /etc/oratab file. If using 9iAS delete the /etc/emtab file also.
    rm /etc/oratab /etc/emtab
    http://docs.oracle.com/cd/B28359_01/install.111/b32002/remove_oracle_sw.htm#CEGBAJIA
    Br,
    Venky

  • Calling Stored procedure in Oracle 11g from Oracle forms developer 6i

    We have Oracle 11g (11.1.0.7.0 ) database (64 bit) installed on Windows Server 2008.
    In this database, we have stored procedure ABC(arg1) which is accesing a table in another instance through DB LINK. If we EXECUTE this procedure from SQL/TOAD. It runs successfully and generates the desired output.
    If we write the contents of the stored procedure in the PROGRAM UNIT / ANY TRIGGER in FORM 6i then also, It runs successfully and generates the desired output.
    It is also mentioned, that if we try to use any table in the same instance (and not through DBLINK) then it works fine.
    However, if we try to call this stored procedure (which is  accesing a table in another instance through DB LINK) from  ORACLE FORMS  6i  in WHEN-BUTTON-PRESSED trigger then the FORM BUILDER gets hanged while compiling the form developed in FORMS 6i.
    Please provide a solution to this problem.
    THANKS IN ADVANCE.
    Hemant Singh.
    Asstt. Manager(IT)
    Software development team.

    Forms 6i was never meant to run against a 11g database, this was not tested and is also not supported.Well, that is not completely true. Developer 6i is supported against a 11g database, but only for Oracle Apps R11. That means that for most other customers (not Apps) Forms 6i will work against an 11g database. However, only Apps R11 is supported, and patches are only created specifically for Apps. We are also running Forms 6i against an 11g database without (well, minor) problems.
    In this case, you need to find a solution. You can try to put the stored procedure in a package. The package body, with the reference to the remote table, will be hidden from Forms this way.

  • Storing Images in Oracle 11g

    Hi everybody,
    Can anybody tell me how to store the images in an oracle 11g database and i want it in forms 10g

    Hi Friend,
    Use this link to store the images into oracle DB
    http://sureshvaishya.blogspot.in/2009/08/insert-blob-image-file-into-database.html
    http://www.google.co.in/#safe=active&hl=en&sclient=psy-ab&q=how%20to%20store%20the%20image%20in%20oracle%20table&oq=&gs_l=&pbx=1&bav=on.2,or.r_qf.&bvm=bv.45960087,d.bmk&fp=102d4945c0f75701&biw=1280&bih=836&pf=p&pdl=300&safe=on
    Once the images are stored in table then in form
    Create a new item in form and type as Image and change the image format to what format u have stored in DB.
    Now Compile the form and check whether the images are getting displayed in forms.
    Thanks & Regards
    Srikkanth

  • MS SQL Server system stored procedures can't be migrated into Oracle 11g

    During database migration from MS SQL Server 2008 to Oracle 11g R2, if the application stored procedure invokes the MS SQL Server system stored procedures (for example: sp_getapplock, sp_releaseapplock ....), these SQL server system stored procedures can't be transferred. See following migrated Oracle application stored procedure for example:
    create or replace
    PROCEDURE spPwSysID_GetNextID
    v_ID OUT NUMBER,
    iv_SysType IN NVARCHAR2 DEFAULT NULL ,
    iv_Cnt IN NUMBER DEFAULT NULL
    AS
    v_SysType NVARCHAR2(50) := iv_SysType;
    v_Cnt NUMBER(10,0) := iv_Cnt;
    v_result NUMBER(10,0);
    BEGIN
    --SQL Server BEGIN TRANSACTION;
    utils.incrementTrancount;
    v_Systype := UPPER(v_Systype) ;
    IF v_Cnt < 1 THEN
    v_Cnt := 1 ;
    END IF;
    v_result :=sp_getapplock(v_Resource => v_Systype,
    v_LockMode => 'Exclusive') ;
    IF v_result >= 0 THEN
    BEGIN
    SELECT ID
    INTO v_ID
    FROM PWSYSID
    WHERE SysType = v_SysType;
    IF SQL%ROWCOUNT = 1 THEN
    UPDATE PwSysID
    SET ID = ID + v_cnt
    WHERE SysType = v_SysType;
    ELSE
    BEGIN
    INSERT INTO PwSysID
    ( ID, SysType )
    VALUES ( v_cnt + 1, v_SysType );
    v_ID := 1 ;
    END;
    END IF;
    v_result :=sp_releaseapplock(v_Resource => v_Systype) ;
    END;
    ELSE
    BEGIN
    raise_application_error( -20002, 'Lock failed to acquire to generate Cityworks Id.' );
    END;
    END IF;
    utils.commit_transaction;
    END;

    During database migration from MS SQL Server 2008 to Oracle 11g R2, if the application stored procedure invokes the MS SQL Server system stored procedures (for example: sp_getapplock, sp_releaseapplock ....), these SQL server system stored procedures can't be transferred. See following migrated Oracle application stored procedure for example:
    create or replace
    PROCEDURE spPwSysID_GetNextID
    v_ID OUT NUMBER,
    iv_SysType IN NVARCHAR2 DEFAULT NULL ,
    iv_Cnt IN NUMBER DEFAULT NULL
    AS
    v_SysType NVARCHAR2(50) := iv_SysType;
    v_Cnt NUMBER(10,0) := iv_Cnt;
    v_result NUMBER(10,0);
    BEGIN
    --SQL Server BEGIN TRANSACTION;
    utils.incrementTrancount;
    v_Systype := UPPER(v_Systype) ;
    IF v_Cnt < 1 THEN
    v_Cnt := 1 ;
    END IF;
    v_result :=sp_getapplock(v_Resource => v_Systype,
    v_LockMode => 'Exclusive') ;
    IF v_result >= 0 THEN
    BEGIN
    SELECT ID
    INTO v_ID
    FROM PWSYSID
    WHERE SysType = v_SysType;
    IF SQL%ROWCOUNT = 1 THEN
    UPDATE PwSysID
    SET ID = ID + v_cnt
    WHERE SysType = v_SysType;
    ELSE
    BEGIN
    INSERT INTO PwSysID
    ( ID, SysType )
    VALUES ( v_cnt + 1, v_SysType );
    v_ID := 1 ;
    END;
    END IF;
    v_result :=sp_releaseapplock(v_Resource => v_Systype) ;
    END;
    ELSE
    BEGIN
    raise_application_error( -20002, 'Lock failed to acquire to generate Cityworks Id.' );
    END;
    END IF;
    utils.commit_transaction;
    END;

  • How to convert SQL server stored procedures to Oracle 11g

    Hi Experts,
    In SQL server 30 stored procedures are there how to convert all the stored procedure
    from SQL server to Oracle 11g.
    Please help me,
    Thanks.

    ramya_162 wrote:
    In SQL server 30 stored procedures are there how to convert all the stored procedure
    from SQL server to Oracle 11g.
    The single most fundamental concept you need to understand (grok in its fullness) is:
    ORACLE IS NOT SQL-SERVER
    There is very little, to NOTHING, in common between T-SQL (a language extension to SQL) and PL/SQL (integration of SQL with the language Ada, part of ALGOL family of languages that includes Pascal and C++).
    So taking a T-SQL procedure and porting it as is to PL/SQL is plain stupid.
    Why?
    Oracle sucks at trying to be SQL-Server.
    So how do you migrate from SQL-Server to Oracle?
    By taking the REQUIREMENTS that the T-SQL procedures address, and addressing these requirements using Oracle SQL and PL/SQL.

  • Storing more than 2000 characters in a varchar2 column in Oracle 11g?

    We have a table in Oracle 11g with a varchar2 column. We use a proprietary programming language where this column is defined as string. Maximum we can store 2000 characters (4000 bytes) in this column. Now the requirement is such that the column needs to store more than 2000 characters. The DBAs don't like BLOB, CLOB or LONG datatypes for maintenance reasons.
    There are 2 solutions I can think of -
    1. Remove this column from the original table and have a separate table for this column and then store each character in a row, in order to get more than 2000 characters. This table will be joined with the original table for queries.
    2. If maximum I need is 8000 characters, can I just add 3 more columns so that I will have 4 columns with 2000 char each to get 8000 chars. So when the first column is full, values would be spilled over to the next column and so on.
    Which one is a better and easier approach? Please suggest.

    Visu - Some people also do not like to use LOBs because of difficulty in reclaiming space and ever increasing LOB segments. Some of these problems were caused by Oracle bugs (eg, Bug 2944866 Free space in LOB table / tablespace not reused with ASSM, Bug 3019979 Space may not be reused efficiently in a LOB segment) - albeit in 9.2. I've seen a few bug reports for similar things in 10.2 (don't have the references). Still, if there is a workaround/patch is this reason enough to steer the application development into a new direction?

  • Anyone using Drupal 7 with Oracle 11g?

    I am currently with a group that fields PHP applications on top of Oracle 11g databases. We currently use OCI8 in a RHEL6/Apache environment for our homegrown PHP apps and sites. We are looking at using Drupal 7 to help stream-line our development process as well as make our web apps a bit more visually appealing. (engineers not artists here!).
    The problem we have run into is that it seems Drupal 7 does not see or recognize the OCI8 driver as valid for its install. It apparently wants us to use PDO_OCI which we have no experience with.
    Does anyone out there run a Drupal 7/Oracle 11g combo that could share their experiences and which driver they use? My googling of the subject has led me to believe the PDO driver may be inferior in some respects to OCI8 for BLOB handling. This is a concern as we do a lot of user upload file sharing as BLOBs stored in the database rather than as files on the OS.
    Thank you.

    Drupal needs PDO and won't work with native drivers like OCI8. Contact Andrea Gariboldi, the maintainer of the Oracle adapter for Drupal http://drupal.org/project/oracle. He maintains a number of customer sites running Drupal. He will be able to help you make a decision.
    The main PDO_OCI issues with LOBs are: (1) no CLOB support due to original creator being unsure how to handle CLOBs in a portable way across all databases (2) a crash doing multi-row fetches of BLOBs (potential patch in https://bugs.php.net/bug.php?id=57702)
    There are other issues with PDO_OCI including no connection pooling and no statement caching. It's a pity the community interest in PDO_OCI hasn't been greater and so no one is maintaining it. Even the core PDO layer isn't getting much attention - there was idle talk recently about moving PHP away from PDO.

  • Oracle 11g result cache and TimesTen

    Oracle 11g has introduced the concept of result cache whereby the result set of frequently executed queries are stored in cache and used later when other users request the same query. This is different from caching the data blocks and exceuting the query over and over again.
    Tom Kyte calls this just-in-time materialized view whereby the results are dynamically evaluated without DBA intervention
    http://www.oracle.com/technology/oramag/oracle/07-sep/o57asktom.html
    My point is that in view of utilities like result_cache and possible use of Solid State Disks in Oracle to speed up physical I/O etc is there any need for a product like TimesTen? It sounds to me that it may just asdd another layer of complexity?

    Oracle result cache ia a useful tool but it is distinctly different from TimesTen. My understanding of Oracle's result cache is caching results set for seldom changing data like look up tables (currencies ID/code), reference data that does not change often (list of counter parties) etc. It would be pointless for caching result set where the underlying data changes frequently.
    There is also another argument for SQL result cache in that if you are hitting high on your use of CPUs and you have enough of memory then you can cache some of the results set thus saving on your CPU cycles.
    Considering the arguments about hard wired RDBMS and Solid State Disks (SSD), we can talk about it all day but having SSD does not eliminate the optimiser consideration for physical I/O. A table scan is a table scan whether data resides on SCSI or SSD disk. SSD will be faster but we are still performing physical IOs.
    With regard to TimesTen, the product positioning is different. TimesTen is closer to middletier than Oracle. It is designed to work closely to application layer whereas Oracle has much wider purpose. For real time response and moderate volumes there is no way one can substitue TimesTen with any hard wired RDBMS. The request for result cache has been around for sometime. In areas like program trading and market data where the underlying data changes rapidly, TimesTen will come very handy as the data is real time/transient and the calculations have to be done almost realtime, with least complications from the execution engine. I fail to see how one can deploy result cache in this scenario. Because of the underlying change of data, Oracle will be forced to calculate the queries almost everytime and the result cache will be just wasted.
    Hope this helps,
    Mich

  • Environment Issue in Oracle 11g.

    I have a java stored procedure loaded into Oracle 11g that reads a CLOB type, and getting a null pointer exception in one oracle 11g environment and not in another. Following is the code snippet,
    <code>StringBuffer str = new StringBuffer(); String strng; BufferedReader bufferRead = new BufferedReader(clb.getCharacterStream()); while ((strng=bufferRead .readLine())!=null) str.append(strng); </code>
    I believe it has nothing todo with the code, because same code is not giving any error and working fine in the other. Following is the version of oracle 11g in both the environments
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production PL/SQL Release 11.1.0.7.0 - Production CORE 11.1.0.7.0 Production TNS for Linux: Version 11.1.0.7.0 - Production NLSRTL Version 11.1.0.7.0 - Production
    can you please guide where else can i find the root cause of this issue. Is there a way to find the loaded java class versions on the database?

    I'd suggest running it from SQLPlus, where all your System.out.println statements will show up and you won't need to bother the DBA for that output ... unless you have already done so or if you happen to be the DBA. From the snippet you provided the only thing that looks like it could be null is "clb".

Maybe you are looking for