ACL denied using Pkb but works using anonymous block with same user

I have a recent 11g installation with a developer that is getting a access denied message when using a package but is able to run the same code manually in sqlplus and it works.
eg. I have granted access to connect and resolve to the user BLAH.
from sqlplus, BLAH can do
select trim(substr(utl_inaddr.get_host_name,1,30)) from dual;
TRIM(SUBSTR(UTL_INADDR.GET_HOST_NAME,1,30))
serverhostname
and get the hostname successfully, but this same line in a pkb fails when called like so
exec func_name.something()
BEGIN func_name.something(); END;
ERROR at line 1:
ORA-24247: network access denied by access control list (ACL)
ORA-06512: at "SYS.UTL_INADDR", line 4
ORA-06512: at "SYS.UTL_INADDR", line 35
ORA-06512: at line 1
ORA-06512: at "BLAH.FUNC_NAME", line 83
ORA-06512: at line 1
but if you were to do this same bit of code in sqlplus as follows:
set serveroutput on
declare
mhost varchar(30);
begin
select trim(substr(utl_inaddr.get_host_name,1,30)) into mhost
from dual;
dbms_output.put_line(mhost);
end;
it works.
I do not understand this at all. This is the same user account that owns the pkb and is running it in sqlplus. The user has been granted the connect and resolve priv through being granted a role that has this permission.
Can anyone help me out here?

Thanks, the oracle logic behind this doesn't make sense to me - if the user can do this action, then surely the user should be able to run the package...
Anyway, I will try to grant directly to the user that needs the privs, but then how do I grant this privilege to multiple users, it's some awkward bit of pl/sql just to grant it to one user.
Here is what I did:
dbms_network_acl_admin.create_acl(acl => 'filename.xml',
description => 'Network permissions for BLAH_USER to connect/resolve any host',
principal => 'BLAH_USER', is_grant => TRUE, privilege => 'connect');
dbms_network_acl_admin.add_privilege(acl => 'filename.xml', principal => 'BLAH_USER', is_grant => TRUE, privilege => 'resolve');
dbms_network_acl_admin.assign_acl(acl => 'filename.xml', host => '*');
grant execute on dbms_network_acl_admin to BLAH_USER;
but this only works for 1 user and I cannot recreate this as the acl now already exists. Would I have to change filename.xml every time and do all these steps for every user?
This is why I granted to a role and then granted that role to the BLAH_USER originally.
Any ideas on how to make this scalable to many users or to add users to this ACL?

Similar Messages

  • Error in Stoerd Procedure But working in Anonymous Block.

    declare     
         Cursor Cur Is
         Select 'Alter '||Object_Type||' '||Object_Name||' Compile' Invalid_Obj, Object_Type, Object_Name
         From Dba_Objects A
         Where A.Owner='Dataload' And A.Status='Invalid' ;
    Begin
         For I In Cur
         Loop
         Begin
              Execute Immediate I.Invalid_Obj;
         Exception
              When Others Then
              Null;--Dbms_Output.Put_Line(Sqlerrm||' : '||I.Object_Type||' '||I.Object_Name);
         End;
         End Loop;
    Exception
         When Others Then
         Null;--Dbms_Output.Put_Line(Sqlerrm);
    End;
    Above anonymous block Run successfully.
    but when I create it as stored procedure then, it give error like
    Dba_Objects does not exist.
    Please, suggest what I do for stored procedure?
    Edited by: Nilesh Hole on Jun 2, 2010 12:00 AM

    If you don't have any sys rights you either should
    a) ask the DBA to run utlrp (preferred, as that always executes compilation in the right order)
    b) do not use dba_objects but user_objects, assuming you are connected as DATALOAD
    In a normal situation this shouldn't be necessary, so you should still question why you even want to do this (and are reinventing the wheel). Also the dbms_utility package has a COMPILE_SCHEMA procedure.
    Sybrand Bakker
    Senior Oracle DBA

  • How to use anonymous block in select statement

    Hello Experts.
    I have one requirement which i can resolve using anonymous block in plsql. But i want implement it in select query only.
    Database: Oracle 11.2.0
    select count(*) from emp where name='xyz' and sal=50
    if count(*)>0
    then
    select dept,sector from emp where name='xyz' and sal=50
    here i dont have any primary key.
    How can i achieve above using sql query not plsql. Here is one sloution which i have got but its not satisfying above requiremnt as i dont have any primary key columns
    select toll_number from toll_details
    where toll_id =(select toll_id from toll_details where toll_new_id='5263655214' group by toll_id having count(*)>0)
    here toll_id is primary key, so used group by. But how to do this in my above requirement as i dont have primary key.
    Appreciate any help on this.
    Thank you

    897112 wrote:
    Hello Experts.
    I have one requirement which i can resolve using anonymous block in plsql. But i want implement it in select query only.
    Database: Oracle 11.2.0
    select count(*) from emp where name='xyz' and sal=50
    if count(*)>0
    then
    select dept,sector from emp where name='xyz' and sal=50
    here i dont have any primary key.
    How can i achieve above using sql query not plsql. Here is one sloution which i have got but its not satisfying above requiremnt as i dont have any primary key columns
    select toll_number from toll_details
    where toll_id =(select toll_id from toll_details where toll_new_id='5263655214' group by toll_id having count(*)>0)
    here toll_id is primary key, so used group by. But how to do this in my above requirement as i dont have primary key.
    Appreciate any help on this.
    Thank youTry this
    SQL> create table plch_test(id number,name varchar2(20),sal number);
    Table created.
    SQL> insert into plch_test values(1,'XYZ',50);
    1 row created.
    SQL> insert into plch_test values(2,'AAA',100);
    1 row created.
    SQL> insert into plch_test values(3,'BBB',200);
    1 row created.
    SQL> insert into plch_test values(4,'CCC',400);
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> select * from plch_test;
            ID NAME                        SAL
             1 XYZ                          50
             2 AAA                         100
             3 BBB                         200
             4 CCC                         400
    SQL> ed
    Wrote file afiedt.buf
      1  select id,name
      2  from plch_test a
      3  where 1=(select count(*) from plch_test b where a.id=b.id)
      4* and id=&id
    SQL> /
    Enter value for id: 2
    old   4: and id=&id
    new   4: and id=2
            ID NAME
             2 AAA
    SQL> /
    Enter value for id: 0
    old   4: and id=&id
    new   4: and id=0
    no rows selectedHope this helps!!!
    Regards,
    Achyut

  • Hi everyone, to use the portal with many users using the same portal user?

    I have an another question is possible to use the portal with many users using the same portal user with diferent roles in the same time?
    thanks

    Hi Israel,
    It is possible to have same user logged in through differnt terminals or browser windows. However if there are say 10 roles assigned to that user, all 10 will be visible in all the windows. However you may open and work on different roles.. in the different windows.
    Note that the real time collaboration features shall not be available if the same user logs in multiple times.
    Hope this is useful.
    Regards,
    Anagha

  • Using windows vista with two users and I can only open books with adobe digital editions on one account?

    using windows vista with two users and I can only open books with adobe digital edition

    You must authorize the second computer with the same Adobe ID.
    There are sometimes issues with this registration: if you have them ....
    Sometimes ADE gets its registration/activation confused and in a semi-authorized state.
    Uninstalling and reinstalling does not help.
    Unfortunately, it often then gives misleading error messages about what is wrong.
    A common incorrect message informs you that the ID is already in use on another computer and cannot be reused.
    This can often be resolved by completely removing any authorization using ctrl-shift-D to the Library screen on ADE (cmd-shift-D if on Mac).
    Restart ADE, and then reauthorize with your (old) Adobe ID.

  • Anonymous access with named users

    Hi!
    I am trying to set up anonymous access with named users on EP6 SP9. I am using Database only as UME Data storage. I have applied the note #728106, since most of the content is html-pages on the KM.
    I defined the UME settings ume.login.guest_user.uniqueids=anon01,anon02
    ume.login.anonymous_user.mode=1
    Restarted the server and attached user account into roles (which contain only anonymous content).
    I then accessed the page /irj/portal/anonymous (or the longer version /irj/servlet/prt/portal/prtroot/com.sap.portal.navigation.portallauncher.anonymous) and everything was fine. However I wasn't able to get the portal working with /irj/portal/anonymous?j_user=anon02. I always received Portal runtime error. From the logs I saw that the portal tried to access as user anon01.
    When I changed the UME settings into
    ume.login.guest_user.uniqueids=anon02,anon01
    I was able to get the anon02 user account working, but not /irj/portal/anonymous?j_user=anon01. From the logs I saw that the portal tried to access as user anon02.
    Both user account are using the same rule, portal desktop and framework page. I can see the correct (and different) TLN for each user only in the content are I see this error.
    Any ideas?
    Thanks,
    Petri

    I need to switch between two named anonymous users.
    It works fine using http://<server>:<port>/irj/portal?j_user=<first_Guest_user>&j_password=<pwd_of_first_Guest_user>&login_submit=true
    Then to switch to the other user I must do a log-off or close the browser and input the other url http://<server>:<port>/irj/portal?j_user=<second_Guest_user>&j_password=<pwd_of_second_Guest_user>&login_submit=true
    I developed a servlet to switch the users using IAuthentication (method forceLogoffUser) and then redirect to the respective url. But when I call forceLogoffUser method I get a login screen and the script stop executing. Passing 'returnURL' parameter  did not work.
    Parameters:
    req - HttpServletRequest
    resp - HttpServletResponse
    returnURL - url to use to logon again.
    Is there a way to switch automaticaly between the two named anonymous users?

  • Cursor query works in anonymous block but not in procedure

    Hello,
    My cursor query works fine in anonymous blcok but fails in pl/sql block.
    Anonymous block:
    declare
    cursor c1 is
    select object_name
    from all_objects
    where owner='IRIS_DATA'
    and object_type='SEQUENCE';
    v_string varchar2(2000);
    begin
    for c2 in c1 loop
    v_string := 'DROP SEQUENCE IRIS_DATA.'||c2.object_name;
    execute immediate v_string;
    end loop;
    commit;
    exception
    when others then
    dbms_output.put_line('Exception :'||sqlerrm);
    end;
    works fine.
    but inside the procedure the it doesn't go inside the cursor loop
    procedure get_sequence is
    l_dp_handle NUMBER;
    v_job_state varchar2(4000);
    l_last_job_state VARCHAR2(30) := 'UNDEFINED';
    l_job_state VARCHAR2(30) := 'UNDEFINED';
    l_sts KU$_STATUS;
    v_logs ku$_LogEntry;
    v_row PLS_INTEGER;
    v_string1 varchar2(2000);
    cursor seq_obj is
    select object_name
    from all_objects
    where owner='IRIS_DATA'
    and object_type='SEQUENCE';
    begin
         log_status('get_sequence started.');
         --Cursor records to drop the sequences before importing.
         for seq_obj_rec in seq_obj loop
    log_status('get_sequence: Dropping sequence started.');
         v_string1 := 'DROP SEQUENCE IRIS_DATA.'||seq_obj_rec.object_name;
    execute immediate v_string1;
         end loop;
         log_status('get_sequence: Dropping sequence completed.');
    exception
    WHEN OTHERS THEN
    log_status('get_sequence: exception.');
    end get_sequence;
    it's not going into the seq_obj_rec cursor.
    I granted select on all_objects to the user.this user is also having the DBA role as well.
    Please advice.

    PROCEDURE Get_sequence
    IS
      l_dp_handle      NUMBER;
      v_job_state      VARCHAR2(4000);
      l_last_job_state VARCHAR2(30) := 'UNDEFINED';
      l_job_state      VARCHAR2(30) := 'UNDEFINED';
      l_sts            KU$_STATUS;
      v_logs           KU$_LOGENTRY;
      v_row            PLS_INTEGER;
      v_string1        VARCHAR2(2000);
      CURSOR seq_obj IS
        SELECT object_name
        FROM   all_objects
        WHERE  owner = 'IRIS_DATA'
               AND object_type = 'SEQUENCE';
    BEGIN
        Log_status('get_sequence started.');
        --Cursor records to drop the sequences before importing.
        FOR seq_obj_rec IN seq_obj LOOP
            Log_status('get_sequence: Dropping sequence started.');
            v_string1 := 'DROP SEQUENCE IRIS_DATA.'
                         ||seq_obj_rec.object_name;
            EXECUTE IMMEDIATE v_string1;
        END LOOP;
        Log_status('get_sequence: Dropping sequence completed.');
    EXCEPTION
      WHEN OTHERS THEN
                 Log_status('get_sequence: exception.');
    END get_sequence; How do I ask a question on the forums?
    SQL and PL/SQL FAQ
    scroll down to #9 & use tags in the future.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Using multiple SSIDs with same name but different PSKs

    I have a central WLC 2504 controller that is being used for remote site FlexConnect 1141 APs. They all advertise three different SSIDs. One SSID is a global SSID that is the same at every office. One is a hidden SSID using 802.1x machine auth.
    The one I am trying to get working is the local office guest network. These SSIDs are all the same at each office but should have different PSKs. They are local to the office, therefore would only ever be applied to a specific FlexConnect group.
    I understand why in theory this is generally not a good idea but given these are for remote sites I'd like it to be possible. I always get this message though:
    "WLAN with duplicate SSID and L2 security policy found"
    Is there a way around this? New WLC code that allows it maybe?

    I was able to configure three (more I think possible) WLANs with same SSID name and all are WPA2-AES-PSK on the same WLC and all are enabled at hte same time.
    Note that you can not have any of those broadcasting on same AP group. Each WLAN can be only broadcasted on a separate AP group. For your sites, It will probably need you to define an AP group for each site to broadcast different WLANs on different sites.
    You can do that if all your WLANs have an ID of 17 or higher. (the reason is, WLANs of 1-16 are by default broadcasted on the default AP group. and because those can not be on the same AP group - including the default one - then you can't have them with WLAN IDs 1-16. i.e on same - default - AP group)
    HTH
    Amjad
    rating useful replies is more useful than saying "Thank you"

  • Problem: Using iTunes 6 with multiple user accounts in XP

    I recently installed iTunes 6.0.0.18 as an upgrade in Windows XP Professional. After installing the software and a restart, I attempted to use iTunes with success as the Administrator. However as another user, iTunes when launched will prompt the user with the user license agreement. When the user accepts the agreement, iTunes never opens, however I have noticed that the hard drive where the music files are located is continually accessed. When logging out an "End Task" message pops up stating that Quicktime Helper Files are still being used.
    After the problem arose I attempted twice to completely uninstall iTunes, restart, cleanup the directories, reinstall, and then give all users full control permissions in both the directory structure of iTunes and the registry, with the exact same results.
    Currently I have no fix for this problem, but I suspect that it is an issue with the software (iTunes 6.0.0.18). I have since downgraded back to iTunes 5.0.1.4 and am not having any issues.

    Hello B,
    So I finally had time to download the latest version of iTunes (ver. 6.0.1.3) and install it (logged on as the Administrator account). Please note that during the install I did get an error message that stated something to the effect that "a program tried to access memory location XXXX which is "READ" only." I believe this to be the new memory lock "virus" deterrent system that Intel has recently introduced with the latest 64-bit processors and motherboards, (which I have) but I am only guessing. In any case the installer finished in the background without incident.
    After installing iTunes I launched it as the Administrator, and everything work just fine. I then logged off and logged in as my user account and attempted to run iTunes. I got the license agreement window, clicked "Accept" and nothing happened, but again I noticed that the Network card and my NAS were being accessed. I launched "services.msc" to check, as you suggested, to see if my QuickTime service had started. Much to my surprise the service was not listed. So I figured, well if there is such a service that needs to be launched then perhaps launching QuickTime would start this service, (still baffled to why the service is not listed in Windows Services). I launched QuickTime, and while leaving QuickTime open I then attempted to launch iTunes. Much to my surprise it started! I then closed both apps and have attempted to start iTunes several times since with success. A crazy fluke but, the steps listed above seemed to work for me. I can only hope that it helps others out who may be experiencing the same issue.
    So it seems that my issue has been resolved. Thank you for all your time and efforts on this matter, I do appreciate it.
    Jamie

  • How do I format my HDD to Advanced Format/512E to use 512K blocks with Windows Backup?

    I'm running Windows 7 Pro 64-bit. When running Windows Backup onto an external 4TB Touro HDD (2TB partition), I receive the error:
    The last backup did not complete successfully. One of the backup files could not be created. Details: The request could not be performed because of an I/O device error.
    Error code: 0x8078002A
    The cause was given on a forum as:
    "The "root cause" is that Windows 7 (and its system tools) does not support a 4K native block size. As a workaround the disk can be formatted with "Advanced Format"/512E to use 512K blocks."
    It was suggested I try WD Quick Formatter, but this only works with WD HDDs.
    How do I format my HDD to "Advanced Format"/512E to use 512K blocks, so I can use Windows Backup with it?

    Microsoft Windows [Version 6.1.7601]
    Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
    C:\Windows\system32>fsutil fsinfo ntfsinfo c:
    NTFS Volume Serial Number :       0x242afc902afc5fea
    Version :                         3.1
    Number Sectors :                  0x000000003a352fff
    Total Clusters :                  0x000000000746a5ff
    Free Clusters  :                  0x0000000005e48694
    Total Reserved :                  0x00000000000007f0
    Bytes Per Sector  :               512
    Bytes Per Physical Sector :       512
    Bytes Per Cluster :               4096
    Bytes Per FileRecord Segment    : 1024
    Clusters Per FileRecord Segment : 0
    Mft Valid Data Length :           0x000000000c3c0000
    Mft Start Lcn  :                  0x00000000000c0000
    Mft2 Start Lcn :                  0x0000000000000002
    Mft Zone Start :                  0x00000000000cc3c0
    Mft Zone End   :                  0x00000000000cc820
    RM Identifier:        16D85EDA-ACBE-11E4-A5A3-A05A914FC676
    C:\Windows\system32>fsutil fsinfo ntfsinfo d:
    NTFS Volume Serial Number :       0x42f230acf230a657
    Version :                         3.1
    Number Sectors :                  0x000000003a344fff
    Total Clusters :                  0x00000000074689ff
    Free Clusters  :                  0x0000000004cd1d59
    Total Reserved :                  0x00000000000004f0
    Bytes Per Sector  :               512
    Bytes Per Physical Sector :       512
    Bytes Per Cluster :               4096
    Bytes Per FileRecord Segment    : 1024
    Clusters Per FileRecord Segment : 0
    Mft Valid Data Length :           0x000000000d680000
    Mft Start Lcn  :                  0x00000000000c0000
    Mft2 Start Lcn :                  0x0000000003d33dff
    Mft Zone Start :                  0x00000000000cd680
    Mft Zone End   :                  0x00000000000d0a80
    RM Identifier:        ECA1E0C8-16BA-11E2-9D34-BC5FF45A168E
    C:\Windows\system32>fsutil fsinfo ntfsinfo g:
    NTFS Volume Serial Number :       0x3c2a8ca32a8c5c30
    Version :                         3.1
    Number Sectors :                  0x00000000e8dc7fff
    Total Clusters :                  0x000000001d1b8fff
    Free Clusters  :                  0x0000000011a7dc88
    Total Reserved :                  0x0000000000002180
    Bytes Per Sector  :               512
    Bytes Per Physical Sector :       4096
    Bytes Per Cluster :               4096
    Bytes Per FileRecord Segment    : 1024
    Clusters Per FileRecord Segment : 0
    Mft Valid Data Length :           0x0000000002780000
    Mft Start Lcn  :                  0x00000000000c0000
    Mft2 Start Lcn :                  0x0000000000000002
    Mft Zone Start :                  0x00000000000c0e40
    Mft Zone End   :                  0x00000000000cc840
    RM Identifier:        9E8A90E7-BF88-11E4-B26E-BC5FF45A168E
    C:\Windows\system32>

  • Use multiple Macs with same .Mac account to edit different sites

    Last year our school purchased a .Mac account to host our school website. All of the teachers had been using the same .Mac account and using iWeb to publish their own sites. Because all the sites had different names, there were no publishing problems. That changed with iWeb 2. We experimented with the new iWeb 2 on a couple workstations and discovered that publishing to the same .Mac account on different Macs resulted in sites being overwritten by the computer that was published the most recently. What's confusing to me is the that sites were being overwritten even though the sites had different names. In other words, teacher "Jones" publishes their web named "jones" to .Mac. Teacher "Smith" then publishes their web named "smith". The result... the Jones web gets deleted and overwritten by Smith. In iWeb 1x, all the sites had their own named folders organized nice and neatly, now, no matter what we do, we still get the same overwritting issue. I can understand this happening if the sites all had the same name, but this is not the case.
    This had been a great way for our teachers to easily publish their own pages, unfortunately they won't be able to take advantage of the new features in iWeb 2, if this isssue isn't resolved. Any help would be very much appreciated.

    You've got a mess on your hands with only one iDisk being used and dozens of versions of the Domain.sites2 (made by iWeb) in use.
    If all used the same version of the Domain.sites2 package things would work. That would mean sharing that same file each time anyone edited it between all users.
    You could do that but eventually someone will make a change and fail to move to all users and the Site could get messed up at publishing.
    If all of the teachers used the same machine and user account they could also upload to one iDisk.
    Last would be to publish to folder and upload using the Finder for each user. Those pages would not include some .Mac specific features.

  • Using oc4j Jaas with external user-base

    Hi,
    Im evaluating the possibility of migrating my application from BEA Weblogic 7.00 to Oracle9iAS. I Use OC4j 9.0.3 for the migration proof.
    My Weblogic application uses a LoginModule, written by us which access our existing user-base (stored in an rdbms).
    We use proprietary Principal classes and update the Subject when a login 'transaction' is committed.
    Our EJB code (which is the resource we want to protect) includes role definitions and the specific weblogic deployment-descriptors includes mapping between the roles defined in the ejb dd and the principal names we return with the login-module.
    I have some questions:
    1. How can i perform a similar mapping (propriatary principal names to ejb roles), do i have to declare all those principals in jazn.data?, where do I have to declare them?
    2. Can i disregard the UserManager concept?
    3. Do i have to implement a LoginContext on my own?
    4. Do I need to explicitly call LoginCOntext.login in my login code or is it automatically done (please elaborate)?
    5. Do i have to keep using RealmLoginManager along with my LoginModule?
    6. Where is the preferable place for putting the login module (application’s ear file?)
    7. Can i use any LoginModule which simply implements the JAAS LoginModule interface?, are there any specific oracle behavior/requirement i should know about?
    8. What is the class name for the JAZN class which serves as the default LoginContext?
    Note: I dont want to integrate with OID or manage the user-base using Oracles JAZN-XML, i want to simply integrate with my own existing user authentication data and use it for authorizing calls to EJBS.
    Thanks in advanced,
    Yuval.

    sorry for delay in repsonding.
    I only use my LDAP directory to manage poeple and groups but not organisational units.
    When a user logs in using BPM, you view the details for a person in process administrator or view a groups members etc that information is then stored in the bpm database. That information is refreshed whenever the directory service is polled. The frequency of this is determined by the value of 'Directory Polling Interval' set under the Other tab of your engine.
    I don't belive the user passwords etc are stored in the bpm database only meta information about people and groups and therefore your directory service must be available whenever a user tries to login to workspace etc.
    Hope that helps,
    Mike.

  • HT201412 my ipad3 does not turn on after it went off while using it, anyone with same experience and have it resolve already?

    my Ipad 3 will not turn-on after it went off while using it, anyone with the same experience and have it resolve?

    Is the battery charged?
    Frozen or unresponsive iPad
    Resolve these most common issues:
        •    Display remains black or blank
        •    Touch screen not responding
        •    Application unexpectedly closes or freezes
    http://www.apple.com/support/ipad/assistant/ipad/
    iPad Frozen? How to Force Quit an App, Reset or Restart Your iPad
    http://ipadacademy.com/2010/11/ipad-frozen-how-to-force-quit-an-app-reset-or-res tart-your-ipad
    What to Do When Your iPad Won't Turn On
    http://ipad.about.com/od/iPad_Troubleshooting/ss/What-To-Do-When-Your-Ipad-Wo-No t-Turn-On.htm
    iOS: Not responding or does not turn on
    http://support.apple.com/kb/TS3281
    iPad: Basic troubleshooting
    http://support.apple.com/kb/TS3274
     Cheers, Tom

  • Anonymous Block with Variable and SELECT

    Hi Guys,
    I am struggling to connect the material I am learning. I read about anonymous blocks and variables so I want to write a
    nice and neat select with all the fancy stuff (variables, exceptions) to get it right and to it as I read in the book.
    DECLARE
    MYSTRING VARCHAR(10);
    MYSTIRNG := 'X';     
    BEGIN
    SELECT * FROM DUAL WHERE DUMMY = MYSTRING
    END;
    but....this causes one error after the other. Am I getting the concept wrong here or is it a syntax error?

    cant I just get the result without using variable to store the result in the first place???Perhaps you're better off using a REF CURSOR (a.k.a. cursor variable).
    That way you'll pass a resultset to the caller and you don't need any variables to select into.
    You can read about them here:
    http://www.oracle-base.com/articles/misc/UsingRefCursorsToReturnRecordsets.php
    Re: PL/SQL 101 : Understanding Ref Cursors
    http://download.oracle.com/docs/cd/E11882_01/appdev.112/e10766/tdddg_subprograms.htm#TDDDG99939

  • I have iMac 27.  After Mountain Lion install, my trackpad freezes partially after deep sleep and need to restart to get it working again.  anyone with same issue?

    I have an iMac 27 and installed Mountain Lion last week.  Since then, after a deep overnight sleep, certain of my trackpad functions are frozen after i wake the Mac.  i need to restart the computer in order to get the trackpad fully functional.  Anyone with same issue or ideas?

    I'm having the exact same issue with Mountain Lion on my 2008 17" MacBook Pro. I've just tried the SMC reset, so we'll see how that does. The problem was intermittent, occuring not after every wake--from-sleep, but every few.
    Interestingly, my 2007 17" MacBook Pro is also running Mountain Lion (the oldest MacBook Pro than can!), and hasn't had this problem at all.

Maybe you are looking for