Find SID from database for SQR

Hello All,
Let's say we have an SQR report which is running via TWS on a PeopleSoft system with Oracle 10.2.0.3 in backend. We would like to find the SID of this job from the database so that we can find DB level wait events for this job.
Is there any particular SQL we can employ? I have the value of PRCSINSTANCE with me.
For any queries, kindly let us know.
Thanks.

Sorry, I believe my question was put in wrong manner.
I don't have access to PeopleSoft or to change its code. When the job is running on the DB, my task is to find the SID of the job so that I can trace it to see its wait events.
As of now I use the below set of queries:
-- Find the Process Instance No.
SELECT *
  FROM PS_PMN_PRCSLIST
WHERE OPRID = 'MAESTRO' AND RUNSTATUSDESCR LIKE '%Proc%';
--If PRCSTYPE column says it is an Sqr PRocess, then fire below with input as PRCSINSTANCE value.
SELECT SID, serial#
  FROM V$Session
WHERE PROCESS IN (SELECT TO_CHAR (SESSIONIDNUM + 2)
                     FROM PSPRCSque
                    WHERE PRCSINSTANCE = <>);
-- If PRCSTYPE column says it is an Application Engine, then fire below with input as PRCSINSTANCE value.
SELECT SID, serial#
  FROM V$Session
WHERE PROCESS IN (SELECT TO_CHAR (SESSIONIDNUM)
                     FROM PSPRCSque
                    WHERE PRCSINSTANCE = <>);Hope above was understandable to all.
However in some of the cases, we are not getting the SID correctly or the SID at all !!
Please advice how this can be sorted out? PeopleSoft version is 8.8 with peopleTools 8.49. Thanks.

Similar Messages

  • I have business catalyst website imported in Dreamweaver. But I am unable to find or use database for it. Please help me into this

    I have business catalyst website imported in Dreamweaver. But I am unable to find or use database for it. Please help me into this

    You might find better help here: Dreamweaver & Business Catalyst
    Additional Info: Dreamweaver Help | Dreamweaver-Business Catalyst integration

  • How to find tables from database having no partition

    Hello Sir,
    How to find tables from oracle database having no partitions?
    Thank you.
    -Mal

    @SB,
    SQL> SELECT OWNER, TABLE_NAME FROM DBA_TABLES
      2  MINUS
      3  SELECT OWNER, TABLE_NAME FROM DBA_TAB_PARTITIONS;
    SELECT OWNER, TABLE_NAME FROM DBA_TAB_PARTITIONS
    ERROR at line 3:
    ORA-00904: "OWNER": invalid identifier@OP,
    select table_name,partitioned from dba_tables where partitioned='YES';
    select table_name,partitioned from dba_tables where partitioned='NO';
    Regards
    Girish Sharma
    Edited by: Girish Sharma on Jul 1, 2011 9:27 AM

  • How to Cache Data  from database for java mapping ?

    Hi
      I have a scenario where  i have to dynamically query  a huge table in some other database from java mapping code.
    Therefore instead of making a new Database trip everytime is there a mechanism by which i can cache the entire table contents into XI first and then use this cache for looking up data through my java mapping.
    Any other alternative also welcome which would give best performance.
    Please Suggest
    regards
    Nilesh Taunk.

    Hi Nilesh,
    I am not sure if you can actually cache the table in XI. You will have to look up directly from your Database everytime your mapping excecutes.
    To perform DB lookup during mapping very efficiently, I would suggest that you take a look at this blog,
    /people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler
    Also, instead of doing the DB look up in mapping, you can also use your JDBC adapter as a sender and collect the information you want from your DB,
    If you are using your JDBC as a sender, then your JDBC will poll over your database and select the rows that satisfy your Select Query. Also, there is another field in your JDBC adapter that is very important and that is the Update satatement. Once your JDBC adapter executes your select query and selects rows from the database, you might not need those rows to be selected again. In this csse, you can use the Update statement to update the database.
    http://help.sap.com/saphelp_nw04/helpdata/en/7e/5df96381ec72468a00815dd80f8b63/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm
    The choice between a JDBC sender adapter , and the DB lookup will have to be on the basis of your requirements.
    Regards,
    Bhavesh

  • Need to Extract Image from Database for Report

    Greetings,
    I have two databases that I could work with; both are for card access users.  One is an old Access 98 database, the other is a SQL database,
    In the tables I can "see" references to employee_photo and badge_picture_path respectively, but when I run the Report, the Image is not retrieved.
    Any ideas how I can overcome this ?
    I am trying to create a hard copy in a binder, so that new guards can thumb through the binder and familiarize themselves with employees.
    Thanks
    Peter

    Hi Peter,
    What format are the pcitures saved in.  I believe they have to be either BMP or JPEG.  Any other formats will not work in Crystal. 
    Have a look with the sample Extreme database.  The Employee table has a picture field, very similar to what you are using.  If you create a simple report with it, can you see the pictures? 
    Thanks,
    Brian

  • Loading caches from database for old application

    Hi,
    I clearly understand synchronization of DB with Coherence, if we do insert/update/delete records from both DB and Coherence, but as i understand this way is useful only if Coherence exists, from the time when the first record was created by Application.
    Is there any way to populate records for an existing/old DB to Coherence? If not, making small Java application that retrieves records and puts to Cache is acceptable?
    Thanks.

    Onur Aktaş wrote:
    Hi,
    I clearly understand synchronization of DB with Coherence, if we do insert/update/delete records from both DB and Coherence, but as i understand this way is useful only if Coherence exists, from the time when the first record was created by Application.
    Is there any way to populate records for an existing/old DB to Coherence? If not, making small Java application that retrieves records and puts to Cache is acceptable?
    Thanks.Hi Onur,
    do you use cache stores to write to the DB, or do you maintain the cache and the DB on your own?
    BR,
    Robert

  • Get results from database for the last one week ?

    Hi All,
    I have to make a query for retrieving the data for the last one week from a table say "Orderdata".
    So can anybody please tell me how to retrieve date of last weak from the current date. I mean if current date is 12/08/2004 (mm/dd/yyyy) then I would be needing date as :--
    12/01/2004 (mm/dd/yyyy) to 12/07/2004 (mm/dd/yyyy).
    To more clear, here is the query that am using :
    select * from orderdata where orderdate between 12/01/2004 AND 12/07/2004
    I know I would be needing java.sql.timestamp class to set date . but it is the last thing to do .
    First I have to get date of last weak...........
    Here is the code----------that i have just start to write ..
    Calendar cal;
    TimeZone tz;
    String estTimezone="GMT-05:00";
    tz=TimeZone.getTimeZone(estTimezone);
    cal=new GregorianCalendar(tz);
    cal.setTimeZone(tz);
    String currentdate=String.valueOf(cal.get(Calendar.MONTH)+1);
    currentdate+="/"+String.valueOf(cal.get(Calendar.DAY_OF_MONTH)-1);
    currentdate+="/"+String.valueOf(cal.get(Calendar.YEAR));
    out.println(currentdate);And assume if current date is 12/1/2004 (mm/dd/yyyy) then subtracting -1 form the current date will give 12/00/2004 so not getting the correct result .
    Hope it is clear to all................
    Please Help !
    amitindia

    http://forum.java.sun.com/thread.jspa?threadID=577953&tstart=0

  • Create Application from Database and Air

    I have tried several time to use the create application from
    database for an air app build in flex. I do the same steps and the
    only difference is that I click the create button as air not web.
    It does not seem to work. Does the create application from database
    command (referencing php mysql) work with Air???
    Thanks

    Hi Dave,
    Would you please file a bug with all the necessary details
    regarding this issue? The bug base is found at:
    http://bugs.adobe.com/jira.
    We’ll look into this. Thank you for letting us know!
    Lacra

  • Upload picture from database, transform picture in FLash

    Hi, all.
    I just want to do a test: I made an swf file that is to be
    embedded in an html web page. Inside swf I want a picture to be
    upload from database ( for customized purpose ), say ASP, or XML.
    And new picture will replace that old one inside swf. Further more,
    e.g. I upload just a picture that is a piece of tile. When it
    appears in swf, it should be tiled 5 by 5 and transformed for
    perspective. Is that possible with AS? if yes, could anyone offer
    help? And how to write interface code -- ASP or xml communicates
    with FLASH, to upload picture from database? Thanks.
    -percy

    probably but i'm not sure what you're trying to do. you can
    certainly tile the uploaded and then loaded image into a 5x5 grid.
    this is easy.
    and you can distort that grid in various ways including ways
    that make it appear the 5x5 flat sheet is rotating in three
    dimensions. this is not so easy but can be done using someone
    else's code.

  • How do I stop mavericks from looking for an old server and nagging me that it can't find it?

    MacBook Air running OS X 10.9.4
    Had it set up to connect to my main iMac for shared files.  Wife complained that when my iMac wasn't on the MacBook constantly nagged her with a message saying it couldn't connect to the server (my iMac).
    Removed sharing on my iMac.  Removed recent server list from the MacBook Air.  Removed my iMac from the finder side bar in the MacBook.  Now the MacBook Air constantly naggs us that it can't find the server (name of my iMac).  I just want the @#$@# thing to shut up, quit looking for the iMac and be quiet.
    Need help as I can't figure this one out.
    PLEASE!!  

    There are many possible causes for this issue, and it may be hard to resolve. Please take each of the following steps that you haven't already tried. Back up all data before making any changes.
    If you get the alert in the login screen before you log in, stop here and ask for instructions.
    Step 1
    If you get the alert as soon as you log in, it's probably caused by one of your login items or by software that otherwise loads at startup or login. Ask if you need help identifying it. A known offender is "AdobeResourceSynchronizer," which is a component of some Adobe products. See also this discussion.
    Step 2
    If there's an icon representing the server in the sidebar of a Finder window, hold down the command key and drag it out.
    Step 3
    In the Finder, press the key combination command-K or select
              Go ▹ Go to Server...
    from the menu bar. In the upper right corner of the window that opens is a Recent Servers popup menu represented by a clock icon. From that menu, select
              Clear Recent Servers…
    and confirm. Test.
    Step 4
    Open the Printers & Scanners pane in System Preferences and delete any network devices you no longer use.
    Step 5
    Triple-click anywhere in the line below on this page to select it, then copy the text to the Clipboard by pressing  command-C:
    ~/Library/PDF Services
    In the Finder, select
              Go ▹ Go to Folder...
    from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return. A folder may open. If it does, move the contents to the Desktop, or to a new folder on the Desktop. Log out and log back in. Test. If there's no change, put the items you moved back where they were and continue.
    Step 6
    Open the folder
    ~/Library/Preferences
    as in Step 5 and move the file named "loginwindow.plist" items in that folder to the Trash, if it exists (it may not.)
    Log out and back in again, and test.
    Step 7
    Other possible causes are references in the iPhoto, iTunes, or iMovie library pointing to the server, and bookmarks in the Preview application.
    Try rebuilding the iPhoto library.
    Step 8
    Disconnect all wired peripherals except those needed to start up. Start up in safe mode. Test. After testing, restart as usual (not in safe mode) and verify that you still have the problem.
    Note: If FileVault is enabled, or if a firmware password is set, or if the startup volume is a Fusion Drive or a software RAID, you can’t do this. Ask for further instructions.
    Step 9
    Triple-click the line below to select it:
    /System/Library/CoreServices/Directory Utility.app
    Rght-click or control-click the highlighted text and select
              Services ▹ Open
    from the contextual menu.* The application Directory Utility will open.
    In the Directory Utility window, select the Directory Editor tool in the toolbar. Select Mounts from the Viewing menu in the toolbar, and/Local/Default from the node menu, if not already selected. On the right is a list of names and values. By default, the list is empty. If it's not empty, post a screenshot of the window and stop here.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard (command-C). Open a TextEdit window and paste into it (command-V). Select the line you just pasted and continue as above.
    Step 10
    Open the following file as you did in the last step:
    /etc/auto_master
    It will open in a TextEdit window. The contents should be exactly this:
    # Automounter master map
    +auto_master          # Use directory service
    /net               -hosts          -nobrowse,hidefromfinder,nosuid
    /home               auto_home     -nobrowse,hidefromfinder
    /Network/Servers     -fstab
    /-               -static
    If there are any other lines in the window, post them. Otherwise, close the window.

  • Jasper report on HTML when one image loaded from database and for the other

    How to generate jasper report on HTML when one image loaded from database and for the other we give a image path
    My code
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
              exporter = new JRHtmlExporter();
              exporter.setParameter(JRExporterParameter.JASPER_PRINT, print);
              exporter.setParameter(JRExporterParameter.OUTPUT_STREAM, baos);
              exporter.setParameter(JRHtmlExporterParameter.IMAGES_URI, strImageInputDirectory);
         exporter.setParameter(JRHtmlExporterParameter.IMAGES_DIR_NAME, strImageOutputPath == null ? "." : strImageOutputPath);
         exporter.setParameter(JRHtmlExporterParameter.IS_OUTPUT_IMAGES_TO_DIR, Boolean.TRUE);
         exporter.setParameter(JRHtmlExporterParameter.IS_USING_IMAGES_TO_ALIGN, Boolean.FALSE);
         exporter.setParameter(JRHtmlExporterParameter.IS_WHITE_PAGE_BACKGROUND, Boolean.FALSE);
              exporter.exportReport();
              byte[] bdata = ((ByteArrayOutputStream) baos).toByteArray();
    Can any one help pls
    Message was edited by:
    ameet.au

    hey sorry for posting it in this forum.
    but do u have sample code for making it work.. since i am able to do it on PDF format(image from Database and another stored in the webserver) using
    byte image[] =(byte[]) outData.get("image");
                        ByteArrayInputStream img = new ByteArrayInputStream(image);
                        hmimg.put("P_PARAMV3", img);
    print = JasperFillManager.fillReport(reportFileName, hmimg, jrxmlds);
    bdata= JasperExportManager.exportReportToPdf(print);

  • I have three aperture libraries. But just recently two of them (old from 2011) will not open. I get the following error: There was an error opening the database for the library "~/Pictures/Family IIi.aplibrary". Please help, thanks

    I have three aperture libraries. But just recently two of them (old from 2011) will not open. I get the following error: There was an error opening the database for the library “~/Pictures/Family IIi.aplibrary”. Please help, thanks

    Are all three libraries under your account or are they in different accounts? Any other errros on the system?
    Start by doing the permission repair and library repair steps in Aperture 3: Troubleshooting Basics

  • How can I find the serial number for my creative suite CS6 I bought it from a store.

    How can I find the serial number for my creative suite CS6 I bought it from a store.

    https://www.adobe.com/account.html for serial numbers or subscriptions on your Adobe page... or
    Lost serial # http://helpx.adobe.com/x-productkb/global/find-serial-number.html

  • RMAN duplicate target database for standby from active fails to create newname for system tablespace/datafile

    When executing 'duplicate target database for standby from active'  the system tablespace/datafile (datafile 1)  is not cloned.  All other datafiles clone successfully.  The RMAN process aborts with the following errors while attempting to clone the system tablespace/datafile.
    ORA-19558: error de-allocating device
    ORA-19557: device error, device type: DISK, device name:
    ORA-17627: ORA-01041: internal error. hostdef extension doesn't exist
    ORA-17627: ORA-01041: internal error. hostdef extension doesn't exist
    ORA-03135: connection lost contact
    Here are the details:
    Primary is 11.2.0.2 RAC database  on an Exadata platform
    Standby is 11.2.0.2 Single Instance database (same patch level as primary) on a Red Hat Linux box
    This is an ASM to ASM duplication.
    This is not unique to this database.  We tried another database and go the same behavior - all datafiles clone successfully with the exception of the system tablespace/datafile.
    We have traced the RMAN execution and it seems to fail when it is trying to assign a NEWNAME to the system tablespace/datafile.
    We even issued an explicit SET NEWNAME command but RMAN ignored it.
    We also shutdown the primary and started is up in mount mode thinking that something had ahold of the System Tablespace/datafile.
    We also opened up the network firewall to allow permit any,any traffic.
    We increased the max_server_processes
    and added TCP.NODELAY=yes to the sqlnet.ora file.
    There seems to be some artifact present in our Primary System tablespace/data file that is preventing it form being cloned.
    checked all alert files grid, asm,  and dbhome - no abnormal messages.
    We are in the process of restoring the database from a backup but we would prefer to get this working using the 'Active Database' methodology

    I successfully created the standby database using RMAN backup and recovery.
    I started the managed recovery.  Archive logs are being sent from the primary to the standby ( I can see them in ASM), but the standby is not applying them.
    I get the following messages in the standby alert log...
    Fetching gap sequence in thread 2, gap sequence 154158-154257
    Tue Nov 26 16:19:58 2013
    Using STANDBY_ARCHIVE_DEST parameter default value as USE_DB_RECOVERY_FILE_DEST
    Using STANDBY_ARCHIVE_DEST parameter default value as USE_DB_RECOVERY_FILE_DEST
    Tue Nov 26 16:20:01 2013
    Fetching gap sequence in thread 2, gap sequence 154158-154257
    Tue Nov 26 16:20:11 2013
    Fetching gap sequence in thread 2, gap sequence 154158-154257
    Tue Nov 26 16:20:22 2013
    Fetching gap sequence in thread 2, gap sequence 154158-154257
    Tue Nov 26 16:20:32 2013
    Fetching gap sequence in thread 2, gap sequence 154158-154257
    I don't see any MRP processes:
    select process,
    status,
        thread#,
        sequence#,
       block#,
      blocks
      7     from v$managed_standby;
    PROCESS   STATUS          THREAD#  SEQUENCE#     BLOCK#     BLOCKS
    ARCH      CLOSING               2     154363          1        132
    ARCH      CONNECTED             0          0          0          0
    ARCH      CONNECTED             0          0          0          0
    ARCH      CONNECTED             0          0          0          0
    ARCH      CONNECTED             0          0          0          0
    ARCH      CONNECTED             0          0          0          0
    ARCH      CONNECTED             0          0          0          0
    ARCH      CONNECTED             0          0          0          0
    RFS       IDLE                  0          0          0          0
    RFS       IDLE                  1     145418        121          1
    RFS       IDLE                  0          0          0          0
    PROCESS   STATUS          THREAD#  SEQUENCE#     BLOCK#     BLOCKS
    RFS       IDLE                  0          0          0          0
    12 rows selected.
    SQL>  SELECT THREAD#, SEQUENCE#, APPLIED FROM V$ARCHIVED_LOG;
       THREAD#  SEQUENCE# APPLIED
             2     154356 NO
             2     154357 NO
             1     145411 NO
             2     154358 NO
             2     154360 NO
             2     154361 NO
             1     145414 NO
             1     145415 NO
             2     154362 NO
             2     154363 NO
             1     145416 NO
    11 rows selected.
    I do have the archive logs that cover sequences 154158-154257
    Crosschecked 38 objects
    Crosschecked 62 objects
    Finished implicit crosscheck backup at 26-NOV-13
    Starting implicit crosscheck copy at 26-NOV-13
    using channel ORA_DISK_1
    using channel ORA_DISK_2
    Crosschecked 2 objects
    archived log file name=+RECO_XORA/nmuasb00/archivelog/2013_11_26/thread_2_seq_154377.344.832521989 RECID=29 STAMP=832521990
    validation succeeded for archived log
    archived log file name=+RECO_XORA/nmuasb00/archivelog/2013_11_26/thread_2_seq_154378.346.832521991 RECID=31 STAMP=832521993
    Crosschecked 31 objects

  • I cannot find my original disks for Adobe Web Premium CS4.  How do I move the software from my old laptop to a new one?

    I purchased a new laptop and am in the process of installing all my software.  Due to a recent move, I cannot find my installation disks for Web Premium CS4.  Is there a way to move the software from the old laptop to the new one?  I am a casual user of the software and do not want to upgrade to a new version.

    Download CS4 products
    Mylenium

Maybe you are looking for