How to convert between p1 and p1raw in v$ session_wait?

We have a tool on v$ session_wait showing only p1 instead of p1raw. For a wait as free lock, I need to know the p1raw. But how to convert between p1 and p1raw?

example of v$ session_wait:
P1 675562835
p1raw 28444553

I tried to use rawtohex (p1raw) = rawtohex (28444553) = 3238343434353533, which has nothing to do with the real p1. Someone has an idea?

Thank you
Daniel
  1* select distinct sid, p1, p1raw, TO_char(p1,'XXXXXXXX') from v$session_wait
SQL> /

       SID        P1 P1RAW    TO_CHAR(P
---------- ---------- -------- ---------
       159 1650815232 62657100     62657100
       163       300 0000012C          12C
       166       300 0000012C          12C
       160       100 00000064           64
       161       300 0000012C          12C
       162       500 000001F4          1F4
       164     180000 0002BF20        2BF20
       165       300 0000012C          12C
       168       300 0000012C          12C
       152         0 00            0
       167       300 0000012C          12C

       SID        P1 P1RAW    TO_CHAR(P
---------- ---------- -------- ---------
       170       300 0000012C          12C
       169       300 0000012C          12C

13 rows selected.

See a pattern here?

Tags: Database

Similar Questions

  • Don't know how to read the results of netstat EI s list? If I received 860592506 bytes sent from 43421482 how to convert MB? And does this mean byte received?

    Don't know how to read the results of netstat EI s list? If I received 860592506 bytes sent from 43421482 how to convert MB? And does this mean byte received?

    Hello

    This shows the total number of bytes transmitted and received via the Ethernet card. This is the total of the amount of use up to this day.

    This includes all the Web sites you have visited and emails you sent, etc..

    You can calculate using one of the following methods:

    Method 1:

    860592506 / 1048576 = 820,72 MB

    Method 2:

    Multiply 860592506 with 9.53674316 * 10 ^-7 that will give us the result in mega bytes.

    860592506 bytes = 820 MB 9MB not, accept my apology for the miscalculation.
    Similarly 43421482 acroos = 40MB

  • How to convert merge documents and mailing for the docs individual pdf and each with a field record in the merge?

    How to convert merge documents and mailing for the docs individual pdf and each with a field record in the merge?

    What is an actual field or just a piece of static text somewhere? Whatever it is, you can't do this using the Split Document command. You will need to use a script custom read the value of this 'field' and use it during extraction of pages in the file.

  • How to convert the number and time of storage in my table

    Hai all

    I have a table called present in that certain fields are

    Code varchar

    Name varchar

    Date of the respondent

    outtime date

    eTime number

    number of wtime

    number of cutmin


    SO I Wtime calculated by Outtime sub - intimate and now I need to calculate the time additional IE Etime

    So for all employees working hours are 0830 so I need for less 0830 train employees working hours

    How can I convert this at 0830 and sub with Wtime and to get the exact time


    Thanks in advance

    srikkanth. M

    Hello!

    Outtime - intimate is a figure which means days

    0830 8.5 hours and that's 1/24 * 8.5 days.

    Lets say I work today between 0700 and 1510

    Follow my example

    SQL> with data as (
      2    select to_date('02.04.2010 15:10','DD.MM.YYYY HH24:MI') outdate ,
      3           to_date('02.04.2010 07:00','DD.MM.YYYY HH24:MI') indate ,
      4           1/24 * 8.5 need_to_work from dual )
      5  select round((outdate - indate - need_to_work) * 1444) etime_in_minutes from data
      6  /
    
    ETIME_IN_MINUTES
    ----------------
                 -20
    
    SQL> 
    

    Again you can now convert minutes to hours or test whether etime is negative or what...

    Then in your case update statement would be

    update attendance set etime = round((outtime - intime - 1/24*8.5) * 1444) where 
    

    T

    Published by: ttt on 1.4.2010 22:17

  • Display satellite C50-A546 cards how to switch between NVIDIA and INTEL?

    Hello

    How can I switch between NVIDIA and INTEL graphics cards?

    PS
    I have already installed all the drivers, but I can see that INTEL the card used chart!

    * OS: Windows 8.1 x 64
    * NVIDIA driver: 340, 52-portable
    * DirectX: 11

    Hello

    The Intel graphics chip, which is part of the central unit should be used for low performance applications, because it allows you to save energy and reduce the internal temperature.

    For best performance while game, it s advisable to use the external GPU (nVidia or AMD)
    This setting can be changed in the nVidia control panel s

    Here, you should choose manage them 3D settings (can be found on the left in the nVidia control panel)

    Now in the main window, you will find two global settings and program parameters tabs
    In the program settings tab, select the (game) program that needs to use the nVIdia GPU

    If it is not listed, click the Add button
    Then choose the graphic processor preferred for this program (generally must be nVidia processor high performance)

    Last but no less, in this program-specific settings, you can assign additional features to improve performance.

  • How to convert retail, oem, and licenses renewed for a Volume License?

    I have about 30 Windows 7 PCs that have a variety of licenses of Windows 7, some purchased through licenses, some hollow purchased an OEM and some just buy the retail. They are all Windows 7 Professional.

    I want to keep all their licenses on a KMS server. Without having to buy a new licese of volume for all 30 PC, is it possible to "recover" my variety of licenses and get a volume license?

    Thank you.

    To take advantage of volume license, you must purchase a volume license agreement that gives you the right to install Windwos 7 Professional or Enterprise according to the terms agreed between you and Microsoft. You can not simply convert the existing volume license licenses because you have the eligible license. Volume License Windows is an upgrade and requires that the machine is an appropriate license before you can use it. There are more than just the software volume license since you go to an agreement.

    The link provided SpiritX will be very useful in exploring the options available under volume license. On the right track, but with the qualification SKU installed on each machine.

  • How to communicate between JSP and jsf/jspx/managed bean using ADF11gR2

    Hello

    Scenario1.

    I use Jdeveloper 11 g R2, I am developing an application in the ADF. In our application, we implement of payment gateway.
    Application of the ADF, we call payment gateway.
    inside the payment2.jspx
    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    * < af:commandButton text = "#{res ['makepayment_2.totalpaymentthroughknet ']}" id = "cb1" action = "#{makePayment2.callPaymentGatway}" / > * "
    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    PaymentGatwayManagebean Method callPaymentGatway()
    public void callPaymentGatway() {
    > System.out.println ("Hi callKnetMethod method called");}
    > String payUrl, payId = null;
    > HashMap hm = new HashMap();
    > HttpServletRequest request = (HttpServletRequest) (JSFUtils.getFacesContext ()) .getExternalContext () .getRequest ();
    > logger.info ("-> callKnetMethod method called");
    > hm = KnetUtils.knetInitialize ("1", "2", "3", "4", "5", "6", "7");
    > payUrl = (String) hm.get ("PayUrl");
    > payId = (String) hm.get ("PayId");
    > request.setAttribute ("knetRedirect", "true");
    > try {}
    > KnetUtils.knetPay (payUrl, payId);
    >} catch (Exception e) {}
    > e.printStackTrace ();
    {>}
    }
    the above method called Paymentgateway after response from gateway payment successful return transaction with some data as the id of the transaction, the name of the Bank, amount, train etc. all data by adding to the URL
    Exodus http://192.168.102.41:7101/amificweb/faces/ami/repback.jsp?paymentId="+paymentId+"& result ="+ result +"& auth ="+ auth +"& ref ="+ ref +"& postdate ="+ post +"& trackid ="+ trackid +"& amp; tranid = "+ tranid + ' & udf1 =" + udf1 + ' & udf2 = ' + udf2 + ' & udf3 = "+ udf3 +" & udf4 = "+ udf4 +" & udf5 = "+ udf5;

    *Current repback.jsp page*
    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    < %
    Payment gateway data take into repback.jsp
    > String paymentId = request.getParameter("paymentid");
    > String ErrorNo = request.getParameter("Error");
    > String udf1 = request.getParameter("udf1");
    > string udf2 = request.getParameter("udf2");
    > string udf3 = request.getParameter("udf3");
    > string udf4 = request.getParameter("udf4");
    > string udf5 = request.getParameter("udf5");
    > System.out.println (request.getParameter("result").toString ());
    > if (request.getParameter("result").equalsIgnoreCase ("CAPTURED")) {}
    > result = request.getParameter("result");
    > are later = request.getParameter ("postdate");
    > tranid = request.getParameter("tranid");
    > auth = request.getParameter("auth");
    > trackid = request.getParameter("trackid");
    > Ref = request.getParameter("ref");
    >
    > out.println ("REDIRECT = http://192.168.102.41:7101/amificweb/faces/ami/*voucherPrinting1.jsp*?paymentId="+paymentId+ "& result =" + result + "& auth =" + auth + "& > Ref =" + ref + "& > postdatent =" + postdatent + "& trackid =" + trackid + "& tranid =" + tranid + "& udf1 =" + udf1 + "& udf2 =" + udf2 + "& udf3 =" + udf3 + "& udf4 =" + udf4 + "& udf5 =" + udf5 "); {
    } else if (request.getParameter("result").equalsIgnoreCase ("CANCELED")) {
    > result = request.getParameter("result");}
    >
    out.println ("REDIRECT =http://192.168.102.41:7101/amificweb/faces/ami/Error1.jsp?paymentId=" + paymentId + "& result =" + result + "& ErrorText =" + ErrorText);
    >}
    > % >
    -
    In the present scenario I can redirect from repack.jsp to voucherPrinting1.jsp and I can take all of the data in the jsp page.

    But I want all the data * CallPaymentGatwayManagebean * method, how can I do. ?

    How communication between jsp and jsf, jsff, jspx, managedbean?



    Maroof

    You must save the config.xml file adfc bean in the scope of the request this ways you can call the method any page bean.

    Also have you tried using the pages in a taskflow with jspx and saving the bean in the taskflow which is a better approach?

  • How to convert a string and use a rope as a property?

    I have an array in the following format:

    {ownsCar: 'true', ownsBike: 'true', ownsHouse: 'true'}

    {ownsCar: ownsBike 'false',: 'true', ownsHouse: 'true'}

    {ownsCar: 'true', ownsBike: ownsHouse 'false',: 'true'}

    etc ............

    And I need to test against each element, for example

    If...

    myDataGrid ["myItem"] .ownsCar is object (myCheckbox) .label

    ... then

    If...

    myDataGrid ["myItem"] .ownsBike is object (myCheckbox) .label

    ... then

    If...

    myDataGrid ["myItem"] .ownsHouse is object (myCheckbox) .label

    ... then

    But I have to build my application where the property (for example 'ownsCar', 'ownsBike', 'ownsHouse') is a variable such as:

    If...

    myDataGrid ["myItem"] .myProperty is object (myCheckbox) .label

    ... then

    I would like to browse my table, by counting the number of items and then use each element as a property.

    How to convert the string (for example, "ownsCar") in a property "myProperty"?

    Thanks in advance

    Chris

    OK, if I got this right what you need to do is introspection.

    The easiest way to do this would be:

    for ( var propertyName:String in myObject ) {
         // Do what you need with this here:
         myObject[ propertyName ];
    }
    
  • How to convert TIFF black and white color?

    I have 11 items on an iMac with OS X 10.7.5 (Lion). I want to convert a black and white TIFF image, but when I click on improve the option convert to black and white on the menu that follows is grayed out. Is there a way to do this or do I have to convert TIFF to JPEG before I can convert color to black and white?

    Your solution worked! Thank you for the necessary reminder that there are still some actions that are not items on 16-bit images.

  • How to convert a black and white tif image to color

    I want to convert a black and white tif image to color. I opened it in Photoshop, change the color RGB/8 mode, saved as a psd, but when I use the dialog box to change color, I just get my color showing in grayscale. What is the correct way to proceed?

    Thank you

    .

    Create a solid color with mode "Lighter color" fill layer on top of the B & W image fusion.

  • How to communicate between ExtendScript and basic generator

    I run a separate node server as described in this tutorial to create a plugin with generator-core. http://tomkrcha.com/?p=3896

    I'm in a situation where I need to send a lot of JS to photoshop via generator.evaluateJSXString (). But it can easily become uncontrollable that you can send a string. So, for any complicated feature, it becomes difficult to maintain. Is it possible set a bunch of functions in a script to measure file and then call these functions from the application node?

    So I could send:

    generator.evaluateJSXString ('doSomeStuff ()');

    And in a script somewhere (I don't know where this script should go)

    I have the defined function that can do something

    function doSomeStuff() {}

    for (var i = 0; i < 10; i ++) {}

    doc.artLayers.add ();

    }

    }

    Where the Script to extend file would in this case? OR is there a better way to make this kind of thing.

    Just a mixed collection of thoughts:

    • Yes, you can package scripts in the form of .jsx files (also jsxbin if you prefer not to share the source) and run with generator.evaluateJSXFile (path), which will work even in ESTK. It has some limitations

      • It is just a file that runs, that is not this function 'call '. I managed this by dividing my Javascript libraries and plugins (= this a function). Can I use Gulp to concatenate libraries necessary for each plugin to create scripts of jsx 20 + that I call the two panels of node & Photoshop
      • There is no parameter passing, but it can be overcome by the presence of a script (that you run a string) parameter store (or fetch result) to Photoshop as a descriptor of persistent custom action
    • The plugin folder where your main.js is accessible by Node.js variable '__dirname '.
    • Depending on how you use paths, you should consider Windows "------" vs. Mac ' / '.
    • Another good way of communication between the panels of Photoshop and the node is a Web server in the configuration node and use Ajax/jQuery in Panel of Photoshop. You can do ~ 500ms update on election and get feedback from Panel pretty real time.
  • How to convert 16:9 and 4:3 projects

    I have created many projects in 4:3 with first Elements 4. I now want to change these projects in 16:9. Each project has a mix of 16:9, and many still photos in 3:2 and 4:3 videos. I can see how to set a new wide screen, but how do I convert the current projects of 4:3 and 16:9. I don't want to have to redo all because that would take many many hours of rework.

    Any help would be much appreciated.

    Unfortunately, you can not change project workplace settings. They can be defined when you create a new project.

  • How to switch between levels and curves

    I'm going through a whole bunch of old photos of black and white box-Brownie and change most of the corrections that I made with levels of curves. I want to be able to switch between the applied image with levels and curves applied to observe the difference. Is it possible to do it with a key? If so, how?

    Maybe you should look into layers.

  • How to convert JPEG image and write to TCP

    I need to convert an image in JPEG format and write it on a TCP port, rather than in a file.

    I thought I could change "Write JPEG File.vi", but it is password protected.

    Thank you

    If you use IMAQ Vision, so you can convert your image to a compressed string:

    Compress an IMAQ Image without saving it to disk

    This topic can also be interesting for you: Decoding JPEG String

    Andrey.

  • compression of image and convert between Bitmap and byte]

    Hello

    I'm trying to compress an image raw data(byte[]), and here's what I did:

    Bitmap image = Bitmap.createBitmapFromBytes( _raw, 0, -1, 7 );
    Bitmap scaledBitmap = new Bitmap(192, 144);
    image.scaleInto(scaledBitmap, Bitmap.FILTER_BILINEAR, Bitmap.SCALE_TO_FIT);
    

    So now that I have a compressed Bitmap, scaledBitmap and I want the gross data(byte[]) extract from the scaledBitmap. I noticed there is a getRGB565 method, but I don't know how to use it. Can someone give me an example on how to extract the raw data? If it is not possible, is there another way to compress the _raw?

    Thanks in advanc

    I found the solution:

    Bitmap image = Bitmap.createBitmapFromBytes( _raw, 0, -1, 8 );
    
    int newWidth = 192;
    int newHeight = 144;
    
    Bitmap scaledBitmap = new Bitmap(newWidth, newHeight);
    image.scaleInto(scaledBitmap, Bitmap.FILTER_BILINEAR, Bitmap.SCALE_TO_FIT);
    PNGEncodedImage encoder = PNGEncodedImage.encode(scaledBitmap);
    byte[] resizedBytes = encoder.getData();
    

Maybe you are looking for