Compatibility problem between 8.0.5 and 8.1.7

We have a system that runs on 8.0.5 which we wish to move to 8.1.7 or 9i, however on both versions we experience problems with PRAGMA's
Given the package spec:
PACKAGE test IS
FUNCTION error_text (I_ERROR_NO IN INTEGER) RETURN VARCHAR2;
PRAGMA RESTRICT_REFERENCES (error_text, WNPS, WNDS);
and the function 'error_text' :
FUNCTION error_text(I_ERROR_NO IN INTEGER)RETURN VARCHAR2
IS
-- PL/SQL Block
CURSOR c_err
( cp_error_no INTEGER
) IS
SELECT description
FROM ukl_error
WHERE err_code = TO_CHAR(cp_error_no,'FM0000')
r_err c_err%ROWTYPE;
BEGIN
OPEN c_err( i_error_no );
FETCH c_err INTO r_err;
CLOSE c_err;
RETURN( r_err.description );
END error_text;
On compilation, it spits it out saying 'function error_text violates it's own pragma'
By removing the pragma, and running the function, the session hangs and then eventually times out.
This code works on versions 7.x, and up to 8.0.5 - are there any known issues for 8.1.x or higher which would explain why this doesn't work?
Thanks

No problems under 8.1.7.4 (only object name changes):
sql>create or replace package test
  2  is
  3    function error_text (i_error_no in integer)
  4      return varchar2;
  5  end;
  6  /
Package created.
sql>create or replace package body test
  2  is
  3    function error_text(i_error_no in integer)
  4      return varchar2
  5    is
  6      cursor c_err(cp_error_no integer)
  7        is
  8        select object_name
  9          from user_objects
10         where object_id = cp_error_no;
11      r_err c_err%rowtype;
12    begin
13      open c_err(i_error_no);
14      fetch c_err into r_err;
15      close c_err;
16      return(r_err.object_name);
17    end error_text;
18  end;
19  /
Package body created.
sql>select test.error_text(13760) from dual;
TEST.ERROR_TEXT(13760)
EMP
1 row selected.I would, however, recommend typing the parameter and return value to the columns and using an implicit instead of the explicit cursor.
sql>create or replace package test
  2  is
  3    function error_text (i_error_no in user_objects.object_id%type)
  4      return user_objects.object_name%type;
  5  end;
  6  /
Package created.
sql>create or replace package body test
  2  is
  3    function error_text(i_error_no in user_objects.object_id%type)
  4      return user_objects.object_name%type
  5    is
  6      v_return  user_objects.object_name%type;
  7    begin
  8      select object_name
  9        into v_return
10        from user_objects
11       where object_id = i_error_no;
12 
13      return(v_return);
14    end error_text;
15  end;
16  /
Package body created.
sql>select test.error_text(13760) from dual;
TEST.ERROR_TEXT(13760)
EMP
1 row selected.

Similar Messages

  • PAGES COMPATIBILITY PROBLEM BETWEEN THE 2009 IPAD VERSION AND 2008 MAC VERSION ON MY LAPTOP.  HOW DO WE FIX THIS?

    PAGES COMPATIBILITY PROBLEM BETWEEN THE 2009 IPAD VERSION AND 2008 MAC VERSION ON MY LAPTOP.  HOW DO WE FIX THIS?

    cherifrombartlett wrote:
    PAGES COMPATIBILITY PROBLEM BETWEEN THE 2009 IPAD VERSION
    What are you talking about? If I'm not not mistaken the iPad was released in April 2010 so there is no 2009 iPad version.
    Typing in all capital letters in a forum like this is considered to be rude and all capital letters indicate that you are shouting.

  • HT4623 Is there any compatibility problem between iPod 4 and Bose docks?

    Is there any compatibility problem beteween ipod touch 4 and Bose docks?

    What does Bose say? Make sure you look for a 4G with iOS 6.
    I do not recall being aproblem with iOS 6 but with 7 I think yes.
    Sometimes this works:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset the dock
    - Reset all settings      
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                 
    iOS: How to back up                                                                
      - Restore to factory settings/new iOS device.

  • I have connection problems between the mini ipad and my powerbook g4, you are not allowed to see or share applications.

    I have connection problems between the mini ipad and my powerbook g4, you are not allowed to see or share applications.

    That is not possible.

  • IChat - compatibility problems between v2.1 and v3.1

    Hi,
    I now have the new iMac Intel with iChat 3.1. I am trying to use it with a friend who has OS 10.3.9 with iChat 2.1.
    I can see and hear him, but he can only hear me.
    Is there a compatiliby problems between v2.1 and v.3.1 or it is just a configu problems?
    Thanks a lot for any information
    Bruno

    Most likely cause is that you haven't updated the ProApplication Support file. Check here:
    http://www.apple.com/support/downloads/proapplicationsupport31macosx104.html

  • Compatibility problem between HBS-730 and iOS6 (6.0.1) ?

    I bought bluetooth headset named HBS-730.
    But, I think iOS have some problem with the compatibility about Bluetooth as follows.
    Sound streaming is delayed about 1 seconds. For instances, I got the game item in game play. After 1 seconds, The sound play. This is very unconfortable.
    Also If I listen to the music and pause the play, I hear the noisy after 1 seconds.
    I've search the similar issue in this community. and I found the follows.
    https://discussions.apple.com/thread/4389635
    Re: IOS 6 bluetooth issues - micro cuts on musichttps://discussions.apple.com/message/19670046#19670046
    I think this is bluetooth 3.0 compatibility problem because backbeat headset is works well with iOS6.01
    backbact is equiped with bluetooth 2.1
    First of all, I wonder this issue is iOS's problem or headset's problem.
    Please help me. I want to escape the this delaying problem.
    I'm very unconfortable and I lost the trust about the Apple's product.
    Thank you.

    I bought bluetooth headset named HBS-730.
    But, I think iOS have some problem with the compatibility about Bluetooth as follows.
    Sound streaming is delayed about 1 seconds. For instances, I got the game item in game play. After 1 seconds, The sound play. This is very unconfortable.
    Also If I listen to the music and pause the play, I hear the noisy after 1 seconds.
    I've search the similar issue in this community. and I found the follows.
    https://discussions.apple.com/thread/4389635
    Re: IOS 6 bluetooth issues - micro cuts on musichttps://discussions.apple.com/message/19670046#19670046
    I think this is bluetooth 3.0 compatibility problem because backbeat headset is works well with iOS6.01
    backbact is equiped with bluetooth 2.1
    First of all, I wonder this issue is iOS's problem or headset's problem.
    Please help me. I want to escape the this delaying problem.
    I'm very unconfortable and I lost the trust about the Apple's product.
    Thank you.

  • Wireless Communication problem between HP Photosmart C309g and Linksys E2500 router

    Hello,
    I used C309g  connected to DLink Dl-624 router (wireless connection) and everything was working correctly. Now I changed the router to Linksys E2500 (dual band router) and I've got strange problem I cannot fix.
    The printer connects to router, obtaint IP address and network report does not indicates any problem. Also HP Print & Scan Doctor does not report any problem.
    But when I try to print from my laptop, the pint start and is quickly broken, and I've got the message that printer is diconnected. The printer stops. When I leave it for a coupl of minutes, the printing starts and after few lines stops again with the same message on the laptop.
    When I return to DLink router, everything works correctly.
    I tried with 4 different laptops, with different operating systems, and i've gor the same issue. But the laptops communicates well, the network does not break..
    I enforced router to use IP reserved number for the printer, used the same IP range and number for my network and printer on Linksys and DLink, does not help.  I've turn off firewall on the router - does not help. I've change the channel range for 2.4 GHz network to 20MHz only - does not help.
    What would be the problem with it? Is there something related to dual-band? Any idea? 

    Well, I did not install the printer drivers from cd, I did it from the Hp webpage. Looking for the potential problems I reinstall the drivers and it did not helped. I also turn off the firewall router application and it also did not help.
    I suspect I have the printer firmware up to date e.g my version is WHM1FN0931BR.
    I've made some test with router settings:  switch from automatic WPS configuration to manual and tried network mode as wireless b only (default was mixed). This makes the communication between router and printer continuous (no breaks), I could normally scan documents directly to network drive, but could not print at all: the printing option on my laptop pops up, and looks like document was sent to nowhere.. printer did not start to print at all. But other network devices starts to experience connection breaks and performance issues. When I returned to mixed mode, the communication between network devices returns to normal operation, but not with the printer - where I experiences original problems.
    My network is quite complex - 4 laptops and 2 TV sets communicates (wireless or LAN 100mbit cable ) via cental router with NAS server (with DLNA) and internet (DSL cable modem). Router also works as DHCP server, where any server type devises (e.g my printer) has reserved IP addresses (based on MAC number). No matter if I try to print from wireless or via LAN cable laptop, no matter what OS is on laptop. I have even tried to connect the printer via LAN (forcing DHCP to give the LAN pronter the same IP as was previously for wireless ), and stil the same: communication is broked and the print starts and suddenly stops.., then starts angain after few minutes - and stops (the same problem as wireless). So I do not understand what the hell is going on. Rest of my network works perfect .. except this printer.. Any other idea, what coul be the issue?

  • DB link problem between active Data Guard and report application database

    My database version in 11.2.0.2.0 and OS is Oracle Solaris 10 9/10.
    I am facing a problem in my Active data guard Database for reporting purpose. Active Data guard information is as below.
    SQL> select name, database_role, open_mode from v$database;
    NAME DATABASE_ROLE OPEN_MODE
    ORCL PHYSICAL STANDBY READ ONLY WITH APPLY
    Problem detail is below
    I have created a db link (Name: DATADB_LINK) between active data guard and report application database for reporting purpose.
    SQL> create database link DATADB_LINK connect to HR identified by hr using 'DRFUNPD';
    Database link created.
    But when I run a query using db link from my report application database I got this below error.
    ORA-01555: snapshot too old: rollback segment number 10 with name "_SYSSMU10_4261549777$" too small
    ORA-02063: preceding line from DATADB_LINK
    Then I check Active Data Guard database alart log file and get below error
    ORA-01555 caused by SQL statement below (SQL ID: 11yj3pucjguc8, Query Duration=1 sec, SCN: 0x0000.07c708c3):SELECT "A2"."BUSINESS_TRANSACTION_REFERENCE","A2"."BUSINESS_TRANSACTION_CODE",MAX(CASE "A1"."TRANS_DATA_KEY" WHEN 'feature' THEN "A1"."TRANS_DATA_VALUE" END ),MAX(CASE "A1"."TRANS_DATA_KEY" WHEN 'otherFeature' THEN "A1"."TRANS_DATA_VALUE" END )
    But the interesting point if I run the report query directly in Active Data Guard database, I never got error.
    So is it a problem of DB link between active Data Guard and other database?

    Fazlul Kabir Mahfuz wrote:
    My database version in 11.2.0.2.0 and OS is Oracle Solaris 10 9/10.
    I am facing a problem in my Active data guard Database for reporting purpose. Active Data guard information is as below.
    SQL> select name, database_role, open_mode from v$database;
    NAME DATABASE_ROLE OPEN_MODE
    ORCL PHYSICAL STANDBY READ ONLY WITH APPLY
    Problem detail is below
    I have created a db link (Name: DATADB_LINK) between active data guard and report application database for reporting purpose.
    SQL> create database link DATADB_LINK connect to HR identified by hr using 'DRFUNPD';
    Database link created.
    But when I run a query using db link from my report application database I got this below error.
    ORA-01555: snapshot too old: rollback segment number 10 with name "_SYSSMU10_4261549777$" too small
    ORA-02063: preceding line from DATADB_LINK
    Then I check Active Data Guard database alart log file and get below error
    ORA-01555 caused by SQL statement below (SQL ID: 11yj3pucjguc8, Query Duration=1 sec, SCN: 0x0000.07c708c3):SELECT "A2"."BUSINESS_TRANSACTION_REFERENCE","A2"."BUSINESS_TRANSACTION_CODE",MAX(CASE "A1"."TRANS_DATA_KEY" WHEN 'feature' THEN "A1"."TRANS_DATA_VALUE" END ),MAX(CASE "A1"."TRANS_DATA_KEY" WHEN 'otherFeature' THEN "A1"."TRANS_DATA_VALUE" END )
    But the interesting point if I run the report query directly in Active Data Guard database, I never got error.
    So is it a problem of DB link between active Data Guard and other database?
    Check this note which is applicable for your environment
    *ORA-01555 on Active Data Guard Standby Database [ID 1273808.1]*
    also
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:8908307196113

  • Are there any compatibility issues between Firefox 6-beta and Norton internet security?

    I received a warning before installing it that Firefox 6-beta is incompatible with the Norton toolbar - does this imply any deeper compatibility problems with Norton?

    That "test" only implies a number is incorrect in the add-on, nothing more should be read into that message.
    Norton, and many other security software vendors, don't usually support pre-release Beta version web browsers. Firefox only checks the '''maxVersion''' specified in the install.rdf file for the extension that is installed in Firefox, which is a very minor point as far as "compatibility" goes, and that is "set" by the developer of the add-on. The burden for true compatibility is on the developer.

  • Problem between K7T266 Pro2-RU and ASUS GeForce 3 V8200

    Hi, i've installed an ASUS GeForce 3 V8200 in my K7T266 Pro2-RU.
    The system starts correctly, but when i force the AGP from BIOS at 4x all games doesn't run very well...
    I usually play games like UT or RTCW and when i run they i see many problem with the 3D rendering and shadow build...
    All drivers are up to date...
    How can i resolve this problem ???
    Thanx...

    Quote
    Originally posted by Fredrik Åsenius
    I guess you got your problem solved. Just wondered about:
    Did you uninstall the previous drivers?
    Do you have any PCI cards near the AGP?
    What are your system temperature, according to BIOS?
    I think i'll follok the Toenne suggest. The difference between the AGP 2x and 4x is very small, anyway my drivers are (un)installed correctly and i don't have any PCI card near the AGP slot. Instead i think that in the future i'll pay more attention at the temperature problem: my Athlon XP 2000+ is  hot also with a good copper cooler...
    Another questios is, can anyone help me to find the best BIOS settings for my system?
    In the next days i'll post my BIOS configuration so we can see where i've mistaken.
    Thanx again...

  • Compatibility issues between solaris 10 patches and Weblogic server 9.2

    Is there any documentation about possible incompatibility between certain solaris patches and Weblogic server?

    Hi,
    Can you post the output of below commands from your OS?
    uname -a
    getconf LONG_BIT
    Do you want to download and install 64-bit WLS 9.2 on your OS?
    - - Tarun

  • HT4623 Problem between iPhone 4, PC and iTunes.  Please help!!

    I inserted the plugs between my iPhone 4 and my PC.  And then, the iTunes connected automatically.  However, I dont know why the update function cannot stop at my iTunes and my mobile cannot run again automatically.  Please help.  Tks

    It could be caused by a weak phone connection.

  • Compatability problems between NI-FBUS and Rosemount DXR375

    Hello,
    Some time ago I had the chance to use a Rosemount DXR375 FF handheld, which I hope is familiar for most instrumentation users. Well, I was using Configuration 2.3.6 and I had problems when I hooked up the DXR375, like having other devices going offline or even dissapearing from the network. I have tried to match the communication parameters, (T1, T2, T3, slot time, etc.) but I was not able to use DXR375 in combination with NI-Fbus in sa safely way. Please note that both FF interfaces (NI-FBus Configurator and DXR375) work properly when used separately, but as soon as they are together, conflict appears.
    I would like to know if somebody at the forum have good experience with DXR375 in combination with NI-Fbus.
    Thanks in Advance,
    Alfredo Matus
    Service Manager
    Endress+Hauser Chile Ltda.

    Alfredo,
    To be honest, I am not clear the relationship between DXR375 and Emerson 375 Field Communicator device. But if you are talking about 375 Field Communicator, I had ever put NI interface card together with it in the same H1 segment before, and as I remembered, the devices on the segment worked properly and I was able to read data from NI-FBUS Configurator software.
    However, as I know, the 375 Field Communicator normally works in a vistor address and will not conflict with LAS device, thus the PCMCIA-FBUS card is able to work well with it.
    I think the best way to find out the problem is to have another NI interface card with NI-FBUS Monitor software if it is possible; with the Montor software, you can simply know whether there is conflict in node addresses or bus communciations.
    Anyway, please feel free to contact us at [email protected] if you want to have further discussion about any conflict issues.
    Regards,
    -- Sean
    BTW: If you need any help to upgrade your Series 1 card, just let me know.

  • Connection key compatibility problem between Mac and Windows

    I'm wondering if anyone has had this problem and came up with a work-around?
    We are rolling out Contribute CS5 to some employees.
    The designers (I'm one of them) are all on Macs. Everyone else is on Windows XP.
    We are connecting to our sites via local/network. IT didn't want to set up FTP (I won't go into why right now).
    So, here is where the problem is... We set up the site and do the first connection on our Macs. Then when we send out a site key, to a Windows user, the key is no good. This is because Macs handle paths to network shares differently than Windows does.
    I thought the solution would be to customize the key with the Windows share path before sending it to the Windows users. However, Contribute wants to verify the path before letting me continute to make a customized key. And that is where I'm stuck. Is there a solution to this - besides switching to FTP?
    Thanks,
    Ward

    For windows users can you create a connection key in Windows machine and send the same.

  • Problems between a Wireless Controller and a Switch.

    I have a Wireless Controller 4402 connected to one sw2960G.
    I configured the controller with LAG and the switch (sw2960G) with etherchanel.
    I connected the controller 2 distribution ports to the 2 ports of the switch (configured with etherchanel).
    It worked like it should work.
    But the problem is like this: if I take one cable that is connected to the switch and unplugged that cable from the switch (if that cable is the one connected to controllers port one) I have connectivity between both machines.
    If I plug in the switch the cable connected to controller port one and take the other cable and unplugged that cable from the switch I stop the connectivity between the two machines.
    I think that was not supposed to happen… because the LAG in the controller should put every AP in the second controller's port, and the connectivity between the machines should not end.
    Can any one help me?
    Can any one tell me what I am doing wrong?
    Thanks in advance,
    Rui

    With LAG enabled in the controller I think I can have only one ap-manager interface.
    The LAG will (it is supposed to) do the load balance automatically.
    I mean, if one of the interfaces is “down” the other will have to coupe with all the AP's.
    I should have always connection between the controller and the switch.
    The STP of the controller is configured by default (STP Mode = OFF).
    In the case of etherchannel load balance… I saw the Cisco documentation and I did not saw any thing about that. I think that The LAG as to do that for the controller… I'm right about that?
    I will see the link that you advised…
    Can you help me?
    Thanks,
    Rui

Maybe you are looking for

  • Using InDesignCS3 on Portrait Monitor

    We just had dual monitors installed and would like to have InDesignCS3 open in PORTRAIT view so that we could view an entire page. Unfortunately, we can move the IND screen to the second monitor and rotate the screen, but the image is still in landsc

  • Icloud and gmail password problem

    I can't log into icloud or any of the programs on my mac with icloud password or gmail password. Can anybody help me, please?

  • Using expression

    hi I have to use expression operator in a cube's mapping. i am using two different tables to get a column from each table in input group of the expression. On the bases of these two columns i have to make a decision in CASE statement in output group.

  • Impossible Filter on Bex for free characteristic

    Hi,    We have a problem on a workbook. Our query has as free characteristics company and profit center for enabling the user to filter on the workbook.    But when the query is executed on the workbook and the user try to select filter values on com

  • Cisco NAC Web Agent + Windows 8

    Hello, I´m implementing a Cisco ISE 1.2 and I am having troubles with NAC Web Agent and Windows 8 compatibility. All time that I try install NAC Web Agent in Windows 8, I get the message "Agent User Operating System is Not Supported". Follow are some