sys_context procedure does not return an ip address

Hello


DB 11 GR 1 material

What would be the reason for which this query does not return an IPAddress?

Select sys_context ('userenv', 'IPAddress') of double;

Thank you

What would be the reason for which this query does not return an IPAddress?

USERENV does not know what the IP # is.

Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> select sys_context('userenv', 'ip_address') from dual;

SYS_CONTEXT('USERENV','IP_ADDRESS')
--------------------------------------------------------------------------------

Maybe it's because you are connected locally & not via SQL * Net

Published by: sb92075 on October 27, 2010 12:53

Tags: Database

Similar Questions

  • Procedure does not return values

    Hello

    I have a stored procedure that has varchar2 as IN and OUT parameters sys_recursor.
    CREATE OR REPLACE PROCEDURE check_values (
         my_values            IN          emp.dept_no%TYPE,
         p_cursor        OUT sys_refcursor
    )
    AS
         quoteValues     VARCHAR2 (256);
    BEGIN
         SELECT     '''' || REPLACE(my_values, ',', ''',''') || ''''
           INTO     quoteValues
           FROM     DUAL;
    
         OPEN p_cursor  FOR
              SELECT          emp_no,
                             emp_name,
                FROM     emp
               WHERE     dept_no IN (quoteValues);
    END check_values;
    /
    The problem, I do face is in where condition, if I give quoteValues it don't get me all the records when I run the sqlplus procedure, but if I give
    my_values he get me folders. I get IN settings such as the 9856,9712,8723, so first I put single quotes around the emp_no and pass to the where condition.

    How can I solve this problem?

    Thank you

    user20090209 wrote:
    So why then is not running? If I hard code the values above in where condition it runs very well.

    Watch your WHERE clause:

    WHERE dept_no IN (quoteValues);

    Expressions how many there are in the list? A straight, single. So regardless of the value of quoteValues, this INTEGER value is compared to dept_no. What you're trying to do can be done through dynamic SQL LIKE operator or collection.

    Dynamic SQL:

    CREATE OR REPLACE PROCEDURE check_values (
         my_values            IN          emp.dept_no%TYPE,
         p_cursor        OUT sys_refcursor
    )
    AS
         quoteValues     VARCHAR2 (256);
    BEGIN
         OPEN p_cursor  FOR
              'SELECT          emp_no,
                             emp_name,
                FROM     emp
               WHERE     dept_no IN (' || my_values || ')';
    END check_values;
    / 
    

    AS the operator:

    CREATE OR REPLACE PROCEDURE check_values (
         my_values            IN          emp.dept_no%TYPE,
         p_cursor        OUT sys_refcursor
    )
    AS
         quoteValues     VARCHAR2 (256);
    BEGIN
         OPEN p_cursor  FOR
              SELECT          emp_no,
                             emp_name,
                FROM     emp
               WHERE     ',' || my_values || ',' LIKE '%,' || dept_no || ',%';
    END check_values;
    / 
    

    Collection:

    CREATE OR REPLACE PROCEDURE check_values (
         my_values            IN          sys.OdciVarchar2List,
         p_cursor        OUT sys_refcursor
    )
    AS
         quoteValues     VARCHAR2 (256);
    BEGIN
         OPEN p_cursor  FOR
              SELECT          emp_no,
                             emp_name,
                FROM     emp
               WHERE     dept_no IN (SELECT * FROM TABLE(my_values));
    END check_values;
    / 
    

    and pass my_values as a sys. OdciVarchar2List ('2345 ', '1245','9076 ').

    SY.

  • vCloud add a Workflow network card does not have a mac address

    Good day to all,

    I'm trying to add a network adapter to a vCenter orchestrator vcloud vm by using the built-in workflow, however it does not generate a mac address on the new network adapter. Does anyone know if I need to run another method in order to generate the MAC?

    It is a strange question. You must report this to the GSS so this can be checked / fixed.

    In the meantime, you can try this in an action in return for a vcloud:Task:

    vm.updateInternalState();
    var networkConnectionSection = vm.getNetworkConnectionSection();
    var networkConnections = networkConnectionSection.networkConnection.enumerate();
    
    if (networkConnections.length == 0) throw "No network connection for this VM";
    //System.log("previous Mac was " +  networkConnections[0].mACAddress);
    networkConnections[0].mACAddress = null;
    networkConnectionSection.networkConnection.remove(0);
    networkConnectionSection.networkConnection.add(networkConnections[0]);
    return vm.updateSection(networkConnectionSection);
    

    Christophe.

  • Procedure does not display output

    Hello!

    The following procedure does not show the output.

    {create or replace procedure GET_USER
    (username_in IN VARCHAR2, password_in IN VARCHAR2, OUT VARCHAR2 first_name, last_name OUT VARCHAR2)
    is
    Start
    Declare the cursor is c_user (users.username%TYPE, i_password IN users.password%TYPE IN i_username)
    Select first_name, last_name
    users
    where username_in = i_username
    and password_in = i_password;

    i_username users.username%TYPE;
    i_password users.password%TYPE;

    l_first_name users.first_name%TYPE;
    l_last_name users.last_name%TYPE;

    Start
    If c_user % isopen then
    close c_user;
    end if;
    Open c_user (i_username, i_password);
    extract the c_user in l_first_name l_last_name;
    close c_user;

    first name: = l_first_name;
    name: = l_last_name;
    end;
    end GET_USER ;}

    Output showing only:

    Name =
    Last_name =

    Thanks for any help!

    Assuming that your cursor never returns a line with name of user and password (if it is not, which seems quite a big security hole!), then your code could just be rewritten:

    create or replace procedure GET_USER (p_username_in IN VARCHAR2,
                                          p_password_in IN VARCHAR2,
                                          p_first_name OUT VARCHAR2,
                                          p_last_name OUT VARCHAR2)
    is
    begin
      select first_name, last_name
      into   p_first_name, p_last_name
      from   users
      where  username_in = p_username_in
      and    password_in = p_password_in;
    end GET_USER;
    /
    

    I modified your parameter names, as they have matched the same names as the columns in your table, and it's usually a Really Bad Idea (tm)! Keep all your unique identifiers, and you will have less problems!

  • Foxfire does not recognize my email address which is in thunderbird. Does take and how I going to foxfire if not?

    I downloaded Foxfire thinking that Thunderbird and Foxfire is the same. Am I wrong? Foxfire does not recognize my email address or password. How can I fix it?

    Firefox and Thunderbird are two software published by Mozilla, but they are completely different.

    Firefox is a web browser, visit Web sites.
    Thunderbird is an email client, send and receive emails.

    What do you mean with Firefox won't recognize my email address or password? Why do enter you your email address in Firefox?

  • AutoComplete does not work on the address field.

    AutoComplete does not work on the address field. This means that the completed form is missing from the address. What is special about the address field and why doesn't autocomplete work? I have NOT opted for "don't follow it.

    http://www.thepetitionsite.com/TakeAction/918/708/047/

    Hi robmm76. I looked at the link you provided. It seems that the reason why AutoFill does not work for the address field is because of the way this field has been programmed on the site. It has been programmed to make type you part of your address and click on the right pair and it would then fill in city, State and zip code. If this field is just a special case.

    I hope this information answers your question. If you need more information or help please do not hesitate to reply to this reply.

  • When I return from the page of google search for a link then button does not return return

    When I return from the page of google search for a link, then button does not return back. Instead, the same page refills. I need to go back click back button twice or even more. How to fix? I cheked it it another browser and there is no such behavior. It seems completele Firefox problem.

    the problem was resolved after remooving extenshion «user agent overrider»

  • When I open a link in a new window does not display the web address.

    When I open a link in a new window does not display the web address. What have I done wrong? It used to work and it works if I open the link in a new tab, the problem is that I hate to use tabs prefer a new window every time... Help!

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).

  • With the help of Firefox 4.0 Beta 4. When I open a link in a new window, the web address does not appear in the address bar. Why?

    When I opened a web page link in "a new window" opens the link, but the information of the web page does not appear in the address bar. It is empty. If I open the link in a new tab, ho problem exists.

    In addition, if one open a link in the tab without a location in a new tab in the same window and then go to the original tab, the address bar fills up with the web address.

    Made it from several places, so it not dependent on location.

    That behavior is likely to be the top caused by an add-on, and in your case the probable guilty is IE Tab 2, the different versions of IE Tab caused problems with Firefox 4 beta, including issues with the location bar not updated.

    You can test to see if IE Tab 2 is causing your problem by disabling the it and then see if the address in a new window bar displays the address. If it isn't this add-on causing the problem, see Troubleshooting extensions and themes and problems of hardware acceleration to resolve common Firefox problems.

    FYI, the IE Tab Plus add-on has been updated recently to improve compatibility with Firefox 4 beta, you can try this one instead. The latest version is available from http://coralietab.mozdev.org/installation.html

  • Wireless devices shows the MAC address for 1 device that does not have an IP address

    I am tracking down each device connected to my router nighthawk and I identified everyone except this. There is a device of Wirelsss appears when I connect to the router that does NOT have an IP address but it has a MAC address. An interesting point is that the router device itself has a number of MAC that is not anywhere in the list of devices. Any ideas what this could be? I have an Extneder range wireless attached Nighthawk also but I already idenfified his IP address and Mac address.

    How a device could have a mac address, but not IP address?

    Why the address of the router device do not show in the list of anywhere?

    Try to turn off the Extender and see if that will fill again.

  • HP 640 c: HP640c cartridge does not return to its original position and the printer will be no print anything

    Printer cartridge does not return to its original position on the right side of the printer after the top cover is opened, with the resume light continues to Flash.

    After restarting the printer, the cartridge moves to the right, but not all the way and remained there when the printer is off.

    The printer will not print anything.

    How can I get the cartridge is positioned correctly?

    Solved the problem... it's a defective color print cartridge, which was the carrage Act strangely.

  • Screen turns black and does not return. One stop forced

    When I leave my computer for a while, the screen turns black and does not return when I press 'enter', or any other key.  I do a forced shutdown (turn off with the power button).  Can I get, and the "incorrect closing" message when I turn on computer. I think that it is a problem of Hibernate.  Any ideas?.
    MMM

    Original title: hibernation problem?

    What happens if you press Ctrl + SHIFT + ESC when you want to get out of hibernation?

    You use a wireless keyboard and mouse with a transponder. What happens if you press the button on the transponder?

  • PC Windows 7 does not return the document or the printed page

    I had a setting for this in XP control but can't find the page, that I got it.

    This occurs in AN application, or a browser.  I print from a workbook Excel specific, for example, when I have a number of them opens.  The system does not return the workbook that I printed.  It's maddening and causes all sorts of questions.  Searching the Web for this instant product nothing and I know I can't be the only person who saw this.

    It is a platform of Windows 7 in a commercial network environment.  I use the snap Menu Addintools classic because I can't stand the Ribbon and never loved.  In Windows 7, I run a couple of other supplements that restore the XP the taskbar properly use, so you can work efficiently.

    None of the supplements are causing this problem because I was running the same classic Menu Add-in in the XP box and he had the same problem until I found workaround that I don't remember now.

    Everyone knows about this problem?

    Jeff Lynch

    Hello Jeff,.

    Please contact the Microsoft community.

    As the Windows 7 computer is under the corporate network environment, the issue that you are facing is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the IT Pro TechNet public.

    Please post your question in the TechNet Forum.

    https://social.technet.Microsoft.com/forums/Windows/en-us/home?category=w7itpro&filter=AllTypes&sort=lastpostdesc

    Hope the information above has been a useful answer, Mercia back to us if you respect them more.

  • Cisco Wrvs4400n V2 DDNS does not update when IP address changes.

    Hi, I have two routers Wrvs 4400n V2 VPN (V2.0.2.1 - ETSI) in different countries, one in the United Kingdom and Australia. They are connected permanently using the IPSec VPN tunnel and the dynamic DNS feature (DynDNS.org). I found that the router to the United Kingdom does not refresh its IP address automatically to dns Web site when the provider of Internet services in the United Kingdom changed the WAN IP of this router. This makes the IPSEC tunnel go down until I have the phone UK location and ask someone to force the router to update its IP address with dyndns, by restarting it or by using the configuration of routers for re - save the password for the dynamic dns. Does anyone else have this problem? Someone at - it information / suggestions that can help me solve this problem.

    Thanks for your time,

    Kind regards

    Jason.

    Hi Jason,

    Have you changed the password on the Web site, but not in the DDNS of the router config?

    Do you use special characters in the password to the HTTP transmission ineligible?

    Have you changed the DynDNS host name on the site, but not on the router?

    Try to change the password of the account (and update the configuration of the router to use the new password).

    -Tom
    Please mark replied messages useful

  • error 0x800ccc78 server does not recognize my email address...

    0x800CCC78 server does not recognize my email address... any help here?

    1. Version of Windows?
    2. E-mail program?
    3. Who is your mail server?
    4. Please post any error message in its entirety. You can left click on it to highlight then right click to copy and then paste in this thread. Just the number of code alone is not enough.
     
     

Maybe you are looking for

  • Pages stops and freezes computer

    I have a 13 inch, MacBook Air (early 2014), which is running OSX Yosemite (Version 10.10.5). Processor speed: 1.4 GHz Intel Core i5 Memory: 4 GB 1600 MHz DDR3 Storage capacity: 5.8 GB free of 102.1 GB My version of Pages is: 5.6.1 Pages crashing for

  • When I try to open the window Defender, an error message appears

    The error message that stays up for about 3 seconds and said something as "defender of the window may not protect your computer from viruses...". "but I can't read more because it goes too fast. I tried to scan my computer several times with Symantic

  • Message not indexed Windows Movie Maker cannot import

    A few minutes videos.   I converted to wmv format factory .mov.  I open windows movie maker import and on some I get a message is not indexed and cannot be imported.  Why the few very well and other will not import.

  • reinstallation of Windows 7 premium edition family

    I installed the free version of windows 10 and I don't like it and now I want to go back to what I had before which is windows 7 Home premium. This edition of windows was already on my pc when he bought and I do not have a disk but I have a product k

  • New software blackBerry Z10 10.3.1.1565

    My BB is Z10. A few days ago I updated my software to 10.3.1.1565. Thereafter, whenever I type a new message, I don't see what I'm typing. If I scroll upward Ican see, but then the virtual keyboard disappear. If I put the virtual keyboard on the scre