Sql to find all Sysadmin logins in EBS

Hi ,
I am using this sql to find out all Sysadmin logins in my EBS environment.
SELECT user_name "User Name",
to_char(start_time, 'MM-DD-YYYY HH24:MI:SS') "Login Time",
to_char(end_time, 'MM-DD-YYYY HH24:MI:SS') "Logout Time"
FROM apps.fnd_logins a,
apps.fnd_user b
WHERE a.user_id = b.user_id
AND b.user_name IN ('SYSADMIN', 'MOBDEV', 'MOBADM')
AND TRUNC(start_time) > TRUNC(SYSDATE) - 1
AND login_type = 'FORM'
ORDER BY start_time;
But, somehow I am unable to relate this logins to database sessions id. Is these any direct sql to find out all session info from gv$session / gv$process whenever there is a sysadmin login.
EBS 11.5.10.2
DB 11.2.0.2

Hi
HusseinNone of the query gives a correct output.
For example , when I enter the user_name as SYSADMIN for the query , the v$session.action gives result as "FRM:GXGONG:ACCO CA IND Shipping "..this is the forms session info for "GXGONG" user who doesn't have the sysadmin responsibility.
SELECT distinct(s.sid),
s.serial#,
p.spid,
s.process,
substr(to_char(s.logon_time,'mm-dd-yy hh24:mi:ss'),1,20) Logon_Time,
s.action,
s.module,
fu.user_name,
fip.ipaddress
FROM
V$SESSION s, V$PROCESS p,fnd_oam_forms_rti fip, fnd_logins fl, fnd_user fu
WHERE s.paddr = p.addr
AND s.process = fip.PID
AND fl.pid = p.pid
AND fl.user_id = fu.user_id
AND s.username IS NOT NULL
and fu.user_name IN ('SYSADMIN', 'MOBDEV', 'MOBADM')
and s.action like 'FRM%'
and s.logon_time > trunc(sysdate) -1
1047     48328     28016     31638     03-25-13 13:04:55     FRM:JPJUSTIC:ACCO ITEM/INVENTORY     INVTVQOH     SYSADMIN     10.32.33.95:64961
3772     63791     32428     30206     03-25-13 22:10:16     FRM:EXFINKLE:ACCO INVENTORY ADJU     WIPTXSFM     SYSADMIN     10.32.82.104:46034
3425     48215     18143     14036     03-25-13 21:26:09     FRM:GXGONG:ACCO CA IND Shipping      WMSCTLBD     SYSADMIN     172.20.23.102:33548
774     51097     21922     26155     03-25-13 21:12:15     FRM:JXLIM:ACCO PURCHASING APPLIC     POXPOVPO     SYSADMIN     10.43.2.16:47312
1442     21606     20941     21354     03-25-13 07:58:41     FRM:MDJAMES:ACCO Shipping Execut     FNDRSRUN     SYSADMIN     10.32.33.127:6350
5150     17379     16824     31376     03-25-13 16:21:49     FRM:GXROY:ACCO Receivables Colle     ARXCWMAI     SYSADMIN     172.25.16.120:60150
5117     45721     16824     31376     03-25-13 16:09:17     FRM:GXROY:ACCO Receivables Colle     ARXCWMAI     SYSADMIN     172.25.16.120:60150
3447     151     18143     14036     03-26-13 00:26:44     FRM:GXGONG:ACCO CA IND Shipping      FNDRSRUN     SYSADMIN     172.20.23.102:33548
5147     4240     16824     31376     03-25-13 16:08:54     FRM:GXROY:ACCO Receivables Colle     ARXCUDCI     SYSADMIN     172.25.16.120:60150
5107     62706     16824     31376     03-25-13 16:11:17     FRM:GXROY:ACCO Receivables Colle     ARXCUDCI     SYSADMIN     172.25.16.120:60150
5168     4367     16824     31376     03-25-13 16:38:00     FRM:GXROY:ACCO Receivables Colle     ARXCUDCI     SYSADMIN     172.25.16.120:60150
3450     59009     18143     14036     03-26-13 00:29:13     FRM:GXGONG:ACCO CA IND Shipping      INVMATWB     SYSADMIN     172.20.23.102:33548
5137     45737     16824     31376     03-25-13 16:13:01     FRM:GXROY:ACCO Receivables Colle     OEXOETEL     SYSADMIN     172.25.16.120:60150
3461     16761     18143     14036     03-25-13 21:25:39     FRM:GXGONG:ACCO CA IND Shipping      INVMATWB     SYSADMIN     172.20.23.102:33548
434     26798     24756     17190     03-25-13 16:20:57     FRM:MXBAKER:Direct US CSR User     OEXOEORD     SYSADMIN     10.32.33.123:50117
5142     31731     16824     31376     03-25-13 16:20:46     FRM:GXROY:ACCO Receivables Colle     ARXCWMAI     SYSADMIN     172.25.16.120:60150
1716     11892     24609     27641     03-26-13 00:36:16     FRM:BAMALAGO:ACCO INVENTORY ADJU     WIPTXSFM     SYSADMIN     10.32.82.143:27123

Similar Messages

  • I need a SQL to find all users within OID

    Hi,
    I'm trying to find all usernames and last logon in OID and was thinking of two ways to do this.
    1. query OID with ldapsearch
    2. query LDAP schema in Oracle database.
    Any ideas on how to do this and what is the best way. If a sql in the database could solve this it would really be the best way for me.
    Regards
    Morten

    I did a:
    SELECT DISTINCT user_name
    FROM orasso.wwsso_audit_log_table_t
    WHERE action_code = 1001
    But this only gives me the users that have loged on to SSO.. I need all users even those who haven't loged on.
    All help will be really good.
    Regards

  • Sql query to find all contacts for an account

    I wonder if someone wrote an sql query to find all contacts for an account number in Oracle customer master. We are on EBS 11.5.10.
    I am also looking for sql query to find all ship to addresses for an account number.
    Thanks.

    Can you also post the query for people who read this post and are also looking for an answer?
    Regards,
    Johan Louwers.

  • Sql query to find activities between Login and Logout time

    Hi ,
    I have 2 tables as shown below
    User Table
    ActivityTable
    i have  a requirement in which i need to find all the activities done for a particular user inbetween login and logout time  can anybody help me how to write sql query for this .

    Is this what you looking for?
    DECLARE @User TABLE
    userid INT,
    date DATETIME,
    type VARCHAR(50),
    sessionid SMALLINT
    DECLARE @ActivityTable TABLE
    activityid SMALLINT,
    userid SMALLINT,
    activity VARCHAR(50),
    activitystarttime DATETIME,
    activityendtime DATETIME
    INSERT INTO @User
    (userid,
    [date],
    [type],
    sessionid)
    VALUES (1,
    '2002-08-25 16:51:25.107',
    'Logon',
    111),
    (1,
    '2002-08-25 17:52:25.107',
    'LOGOFF',
    111),
    (2,
    '2007-03-08 19:25:21.170',
    'Logon',
    222),
    (2,
    '2007-03-08 21:25:21.170',
    'LOGOFF',
    222),
    (3,
    '2007-03-08 19:25:21.170',
    'Logon',
    234);
    INSERT INTO @ActivityTable
    (activityid,
    userid,
    activity,
    activitystarttime,
    activityendtime)
    VALUES (234,
    1,
    'development',
    '2002-08-25 16:53:23.101',
    '2002-08-25 16:59:23.170'),
    (789,
    2,
    'Testing',
    '2007-03-08 19:53:23.180',
    '2007-03-08 20:53:23.180'),
    (789,
    2,
    'Lunch',
    '2007-03-08 19:53:23.180',
    '2007-03-08 20:53:23.180'),
    (456,
    3,
    'Testing',
    '2007-03-08 19:53:23.180',
    '2007-03-08 20:53:23.180'),
    (781,
    1,
    'Lunch',
    '2002-08-25 17:00:23.101',
    '2002-08-25 17:30:00.170'),
    (781,
    1,
    'Lunch',
    '2002-08-25 21:00:23.101',
    '2002-08-25 22:30:00.170');
    WITH logon
    AS (SELECT date,
    userid
    FROM @User
    WHERE type = 'Logon'),
    logoff
    AS (SELECT date,
    userid
    FROM @User
    WHERE type = 'LOGOFF')
    SELECT at.*
    FROM @ActivityTable AT
    INNER JOIN logon Lo
    ON at.userid = lo.userid
    INNER JOIN logoff LF
    ON at.userid = lf.userid
    WHERE At.activityendtime < LF.date
    AND AT.activitystarttime > LO.date
    Regards,
    Vishal Patel
    Blog: http://vspatel.co.uk
    Site: http://lehrity.com

  • How to find all sql ran in the database for particular time

    Hi All,
    i need to find all sql ran in the database between 7am to 9am on may 22 2012 , i can generate AWR but i think it shows only top sql but i need all sql during this time
    is any views in oracle to get this information
    Thanks

    i need to find all sql ran in the database between 7am to 9am on may 22 2012 , i can generate AWR but i think it shows only top sql but i need all sql during this time use below view to get detail.
    V$active_session_history
    dba_hist_active_sess_history

  • What's the query to find all requests' name of all modules EBS R12.1.3??

    What's the query to find all requests' name of all modules EBS R12.1.3??
    Regards:
    Shahzad M. Saleem

    Dear rioman !!!
    Thanks!!
    Regards:
    Shahzad M. Saleem

  • Find All Special Characters in a SQL Server

    I would like to find all Special Characters in a table. I am currently using the code below. Not sure if this gets all of them.
    select  top 50 *
    from [dbo].[SV20150122]
    where street LIKE '%[^0-9a-zA-Z @\.\-]%'
    SQL

    Depends on what you want to count as a special character.  Depending on your collation, your query might not consider é (for example) as a special character.  The same goes for other accented letters.  If that's what you want, then fine. 
    If that is not what you want, you may want to do
    where street LIKE '%[^0-9a-zA-Z @\.\-]%' Collate Latin1_General_BIN
    In any case, you can see exactly which characters are NOT counted as special characters on your system (with and without the Collate clause) by running
    Declare @Test Table(ID int, MyData char(1));
    ;With cte As
    (Select 0 As Number
    Union All
    Select Number + 1
    From cte
    Where Number < 255)
    Insert @Test(ID, MyData)
    Select Number, CHAR(Number)
    From cte Option(MaxRecursion 256);
    Select ID, MyData From @Test
    Except
    Select ID, MyData From @Test
    Where MyData LIKE '%[^0-9a-zA-Z @\.\-]%'
    Select ID, MyData From @Test
    Except
    Select ID, MyData From @Test
    Where MyData LIKE '%[^0-9a-zA-Z @\.\-]%' Collate Latin1_General_BIN
    Note: the above code assumes the column street is char or varchar. 
    Tom

  • Page cannot be displayed error when login to EBS home page

    Hi All,
    I have some problem login to EBS page, if only one responsibility is active to user it will get error Page cannot be Displayed error 404 on the Main Menu.
    However if 2 or more responsibilities are active no error will come up and it will show all responsibilities.
    Below is the log I got from apache.
    [Thu Apr 28 15:58:26 2011] [warn] mod_plsql: Stale Connection due to Oracle error 6502
    [Thu Apr 28 15:58:26 2011] [error] mod_plsql: /pls/XXX/OracleNavigate.menuBypass ORA-6502
    ORA-06502: PL/SQL: numeric or value error: hex to raw conversion error
    ORA-06512: at "APPS.ICX_CALL", line 1077
    ORA-06512: at "APPS.ORACLENAVIGATE", line 2358
    ORA-06512: at line 28
    Appreciate if someone can share something about this.
    Database Server
    RDBMS : 10.2.0.2.0
    Oracle Applications : 11.5.10.2
    Thanks a lot

    Hi All,
    Thanks for all your help.
    Seems I already found out the issue.
    Since we are using "Personal Home Page" for the system profile option "Self Service Personal Home Page Mode" I checked oracle note and found out
    that 11i did not support this mode. Maybe this is the problem that is why we are getting page cannot be displayed error when only 1 responsibility is active.
    The way to fix this, is to use mode 'Framework Only' instead of 'Personal Home Page' as Oracle are phasing out mod_plsql based UI and it will not be present in future releases. No maintenance is being performed (i.e. bug fixes) to the mod_plsql based UI technology.
    Please check this note for more clearer explanation:
    Is The 'Personal Home Page' Mode Supported In Oracle 11i Applications? [ID 368628.1]
    Again, thank you for your help!

  • Find the service which controls agent on job server and find out the login it's using ?

    How do I find the service that's controlling my SQL server agent on the job server and find out the login it's using ? Is there a query for this ?

    Go to SQL Server Configuration Manager and you will see the SQL Server Agent service there with all the information you need.
    Programmatic way:
    http://stackoverflow.com/questions/7324407/get-service-account-details-of-the-sql-agent-service
    Kalman Toth Database & OLAP Architect
    IPAD SELECT Query Video Tutorial 3.5 Hours
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

  • When I login to EBS as Japan language session some Forms Application is Eng

    Hi ,
    have recently applied japan NLS on r121.1 and later upgraded to 12.1.3 also applied 9239090(japan as well).
    But customer has complained the error below.
    Any ideas on it .
    Forms Application is still English.
    When I login to EBS as Japan language session, some Forms Application is English.
    e.g
    user MFG
    pass welcome
    Resp Manufacturing and Distribution Manager
    Path Inventory>品目>品目関連
    Thanks

    ls: /u100/app/HONDA1/orhonda1/oracle/aphonda1/apps/apps_st/appl/po/12.0.0/forms/JA/POXRQVRQ.fmx: No such file or directoryThis indicates that the fmx file was not generated via adadmin -- Can you upload the adadmin log file here?
    and also, after logging into the application selecting japan,to the left side i can see some responsibilities in english still..Is this the normal behaviour.No.
    Have you generated all NLS menus via adadmin? If possible, upload the log file.
    In the preferences tab when i check,logging to application with english can see the below..
    Current Session Language :- American English
    Default Session Language :- American English
    Is the above correct ?
    Do we need to perform any steps to so that we can see the responsibilites in english.Change the session language to Japanese and check then.
    Thanks,
    Hussein

  • What query should I use to find all versions of Office 2013 64-bit installed on client computers?

    What query should I use to find all versions of Office 2013 64-bit installed on client computers? Could someone create a custom query? I need all of the client computers names and which ones have any Office 64-bit components. Thank you so much! I really
    appreciate it!

    Hi,
    You could edit the following query to meet your requirement.
    SELECT     dbo.v_R_System.Name0, dbo.v_GS_OPERATING_SYSTEM.Caption0 AS [Operating System],
                          dbo.v_GS_OPERATING_SYSTEM.CSDVersion0 AS [OS Service Pack], arp.DisplayName0,
                          CASE WHEN arp.version0 LIKE '11.0.6361.0' THEN 'SP1' WHEN arp.version0 LIKE '11.0.7969.0' THEN 'SP2' WHEN arp.version0 LIKE '11.0.8173.0'
    THEN 'SP3' WHEN
                           arp.version0 LIKE '12.0.6215.1000' THEN 'SP1' WHEN arp.version0 LIKE '12.0.6425.1000' THEN 'SP2' WHEN arp.version0 LIKE '14.0.6029.1000'
    THEN 'SP1' ELSE '' END
                           AS 'Service Pack', arp.Version0
    FROM         dbo.v_Add_Remove_Programs AS arp INNER JOIN
                          dbo.v_R_System ON arp.ResourceID = dbo.v_R_System.ResourceID INNER JOIN
                          dbo.v_RA_System_SMSInstalledSites AS ASSG ON dbo.v_R_System.ResourceID = ASSG.ResourceID INNER JOIN
                          dbo.v_GS_OPERATING_SYSTEM ON dbo.v_R_System.ResourceID = dbo.v_GS_OPERATING_SYSTEM.ResourceID
    WHERE     (arp.DisplayName0 LIKE '%Microsoft Office%edition%' OR
                          arp.DisplayName0 LIKE '%Microsoft Office Standard 2007%' OR
                          arp.DisplayName0 LIKE '%Microsoft Office Enterprise 2007%' OR
                          arp.DisplayName0 LIKE '%Microsoft Office Professional%2007%' OR
                          arp.DisplayName0 LIKE '%Microsoft Office Standard 2010%' OR
                          arp.DisplayName0 LIKE '%Microsoft Office Enterprise 2010%' OR
                          arp.DisplayName0 LIKE '%Microsoft Office Professional%2010%' OR
                          arp.DisplayName0 LIKE 'Microsoft Office 2000%' OR
                          arp.DisplayName0 LIKE 'Microsoft Office XP%') AND (arp.DisplayName0 NOT LIKE '%update%') AND
                          (arp.DisplayName0 NOT LIKE '%Microsoft Office XP Web Components') AND (dbo.v_R_System.Operating_System_Name_and0 NOT LIKE '%server%')
    AND
                          (arp.InstallDate0 NOT LIKE 'NULL')
    ORDER BY dbo.v_R_System.Name0, arp.DisplayName0, arp.Version0
    Full details:http://social.technet.microsoft.com/Forums/systemcenter/en-US/7baeb348-fb63-4115-8d76-2c884d18f708/sql-query-to-check-ms-office-service-pack-level?forum=configmgrreporting
    Best Regards,
    Joyce
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • How do I find all pictures with no (empty) keyword ?

    I have decided to import all my pictures into LightRoom.
    A lot of my older pictures are not registered with any keywords :(
    - only with IPTC location information.
    My plan is to systematic go through all my pictures and add relevant keywords to all pictures - so my old pictures become as searchable as my newest pictures.
    Some of my old pictures has keywords some has not.
    How do I in Lightroom - find all pictures with no keywords?
    I have tried to use the Find tool - but don't see any options to search for "Empty/missing" keywords.
    Also I would like to find all pictures with few keywords and in step II add additional keywords to these pictures.
    Any ideas on how to make a find all pictures where number of keywords is less than X inside or outside LightRoom.
    Henrik Bach
    Denmark

    > I also did think of the SQL idea.
    > If I find a way of doing this I will repost my findings.
    Well, being a tech geek, I found this challenge kind of irresistible,
    and I'm happy to report I have a solution for you.
    STEP 1
    First, make a copy of your "Lightroom Database.lrdb" file (we'll work
    off the copy to be safe)
    STEP 2
    Next, you need to be able to browse the database. The database is in
    SQLite3 format. I tried installiing an SQLite3 ODBC driver and accessing
    it through MS Access 2003. While Access was able to see all of the
    tables in the database, every time I tried to link to one I got:
    "Reserved error (-7748); there is no message for this error"
    I found a few tips for this but wasn't able to work around it and get it
    to work. Which is a shame, since Access would be the easiest way for
    browsing and querying tables.
    Instead I found an open source tool called SQLite Database Browser.
    http://sourceforge.net/project/showfiles.php?group_id=87946&package_id=91778&release_id=41 4746
    I used the Windows version. There appears to be a version for MacOSX on
    PowerPC. It doesn't look like there is a version for Intel based Macs
    (though if you know how, you could always try downloading the source and
    compiling it yourself).
    STEP 3
    After you install the browser, open it up, choose "Open Database" and
    select the COPY of the lightroom database we made in step 1
    STEP 4
    go to the Execute SQL tab and issue the following command
    SELECT A.idx_filename, count(C.name)
    FROM Adobe_imageFiles A, AGLibraryTagImage B, AGLibraryTag C
    WHERE A.image=B.image AND B.tag=C.id_local AND C.kindName='AgKeywordTagKind'
    GROUP BY A.idx_filename
    HAVING count(C.name) <= 3
    That will give you all images with 3 or fewer keywords applied.
    Of course, theres no guarantee that this wont break in future versions.
    Now an explanation of the data.
    Adobe_imageFiles - contains data about image files:
    1) idx_filename is the filename
    2) absolutePath is the full file path
    3) image is a unique ID for the image which you can cross reference in
    other image related tables
    AGLibraryTag - contains info about "tags" applied to images:
    1) id_local is a unique ID for this "tag", which you can use to cross
    reference in other tag tables
    2) kindName is the kind of tag you are looking at. Available values
    appear to be:
    AgCaptionTagKind
    AgCollectionTagKind
    AgCopyrightTagKind
    AgEnumeratedMetadataTagKind
    AgFolderTagKind
    AgImportTagKind
    AgKeywordTagKind
    AgMissingFileTagKind
    AgQuickCollectionTagKind
    AgSpecialContentOwningTagKind
    AgTempImagesTagKind
    3) name is the value for that tag (the collection name, the keyword, etc)
    AGLibraryTagImage - Use this to connect the images and tags tables

  • Caught "com.evermind.server.rmi.OrionRemoteException" while attempting to find all De

    I am getting the following error while running JSP. Can anyone guide me.
    Caught "com.evermind.server.rmi.OrionRemoteException" while attempting to find all DepartmentBean entries.
    com.evermind.server.rmi.OrionRemoteException: Database error: Io exception: The Network Adapter could not establish the connection; nested exception is: java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
    Add entry
    I have doubt in
    My rmi.xml file
    <?xml version="1.0" standalone='yes'?>
    <!DOCTYPE rmi-server PUBLIC "Orion RMI-server" "http://xmlns.oracle.com/ias/dtds/rmi-server.dtd">
    <rmi-server port="23791" >     
         <!-- A remote server connection example -->
         <!-- <server host="the.remote.server.com" username="adminUser" password="123abc" /> -->
    <!--     <server host="169.254.162.207" username="admin" password="welcome" /> -->
    <!--     <server host="prg-fg9s9g12dnz" username="admin" password="welcome" /> -->
         <!-- path to the log-file where RMI-events/errors are stored -->
         <log>
              <file path="../log/rmi.log" />
         </log>
    </rmi-server>
    If I give server host line My oc4j server is NOT initialized.
    In My Data Sources file :
         <data-source
              class="com.evermind.sql.DriverManagerDataSource"
              name="jdbc/DBConnection"
              location="jdbc/OracleCoreDS"
              xa-location="jdbc/xa/OracleXADS"
              ejb-location="jdbc/DBConnection"
              connection-driver="oracle.jdbc.driver.OracleDriver"
              username="RajiveShukla"
              password="pujavrms1"
              url="jdbc:oracle:thin:@localhost:1521:wbs"
              inactivity-timeout="30"
         />
    And JSP which I run is :
    <%
    * list.jsp
    * Lists all the entries stored through EmployeeBean. This JSP is the only JSP
    * that will actually connect to the entity bean. On success, it will save a
    * reference to the entity bean in the session. So there will be one reference
    * to the bean per session.
    %>
    <%@ page import="com.webstore.*,java.io.*,java.net.*,java.util.*,javax.naming.*,javax.rmi.*" %>
    <%
    // Make sure this page will not be cached by the browser
    response.addHeader("Pragma", "no-cache");
    response.addHeader("Cache-Control", "no-store");
    // We will send error messages to System.err, for verbosity. In a real
    // application you will probably not want this.
    PrintStream errorStream = System.err;
    // If we find any fatal error, we will store it in the "error" variable. If
    // an exception is caught that corresponds with this error message, then we
    // will store it in the "exception" variable.
    String error = null;
    Exception exception = null;
    // First check if the reference to the EJB is already stored in the session.
    DepartmentHome home = (DepartmentHome) session.getAttribute("DepartmentHome");
    // If not, then attempt to get the initial JNDI context.
    if (home == null) {
    // When attempting to connect to JNDI, we store the reference to the
    // initial JNDI context in this variable. We will use it to lookup the
    // entity bean.
    Context context = null;
    try {
    context = new InitialContext();
    } catch (Exception e) {
    exception = e;
    error = "Caught \"" + exception.getClass().getName() + "\" while " +
    "attempting to create the initial JNDI context.";
    errorStream.println(error);
    exception.printStackTrace(errorStream);
    // We have specified "EmployeeBean" in the web.xml file as the name
    // by which we would like to contact the EmployeeBean home interface. We will
    // have to prepend "java:comp/env/", the root `directory' for enterprise
    // beans.
    //final String location = "java:comp/env/DepartmentBean";
    if (error == null) {
    try {
    // Attempt to lookup an object at the specified location in the JNDI
    // context.
    //Object boundObject = context.lookup(location);
    Object boundObject = context.lookup("Department");
    // Try to convert it to an instance of EmployeeBean, the home
    // interface for our bean.
    home = (DepartmentHome) PortableRemoteObject.narrow(boundObject,
    DepartmentHome.class);
    // If we got this far, we've done it, let's save the reference to the
    // Employee home interface in the session for future use by both
    // this page and the other JSP pages.
    session.setAttribute("DepartmentHome", home);
    } catch (Exception e) {
    exception = e;
    error = "Caught \"" + exception.getClass().getName() + "\" while " +
    "attempting to lookup the Department bean at \"" + "\".";
    //location + "\".";
    errorStream.println(error);
    exception.printStackTrace(errorStream);
    // This is the variable we will store all records in.
    Collection recs = null;
    if (error == null) {
    try {
    recs = home.findAll();
    } catch (Exception e) {
    exception = e;
    error = "Caught \"" + exception.getClass().getName() + "\" while " +
    "attempting to find all DepartmentBean entries.";
    errorStream.println(error);
    exception.printStackTrace(errorStream);
    // Decide what the title will be.
    String title;
    if (error != null) {
    title = "Error";
    } else {
    title = "com.webstore | List of entries";
    %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
    <HTML>
    <HEAD>
    <TITLE><%= title %></TITLE>
    </HEAD>
    <BODY bgcolor="#FFFFFF">
    <H1><%= title %></H1>
    <%
    // Display the error message, if any.
    if (error != null) {
    %>
    <P><BLOCKQUOTE><%= error %></BLOCKQUOTE>
    <%
    // Display the exception message, if any.
    if (exception != null) {
    %>
    <P><BLOCKQUOTE><CODE><%= exception %></CODE></BLOCKQUOTE>
    <%
    } /* if */
    } else {
    // If there are no recs to be displayed, display a descriptive text.
    if (recs.size() == 0) {
    %>
    <P><BLOCKQUOTE>No entries found.</BLOCKQUOTE>
    <%
    // Otherwise display a table with all columns, and
    // display two extra choices: "Edit" and "Delete".
    } else {
    %>
    <P><TABLE border="1" width="100%">
    <TR>
    <TD><STRONG>DptNo (long)</STRONG></TD>
    <TD><STRONG>DptName (String)</STRONG></TD>
    <TD><STRONG>Actions</STRONG></TD>
    </TR>
    <%
    Iterator iterator = recs.iterator();
    while(iterator.hasNext()) {
         Department rec = (Department) PortableRemoteObject.narrow(iterator.next(),
    Department.class);
    long dptNo = rec.getDptno();
    String dptName= rec.getDptname();
    // put all pk columns in hashtable for URLEncoding
    Hashtable cols = new Hashtable();
    cols.put("DPTNO",Long.valueOf("dptNo"));
    // URLEncode columns as params to JSP
    StringBuffer buf = new StringBuffer();
    Enumeration params = cols.keys();
    while (params.hasMoreElements()) {
    String param = (String)params.nextElement();
    String value = (String)cols.get(param);
    buf.append(URLEncoder.encode(param) +
    "=" + URLEncoder.encode(value));
    if (params.hasMoreElements())
    buf.append("&");
    String editURL = "dptedit.jsp?" + buf;
    String deleteURL = "dptdelete.jsp?" + buf;
    %>
    <TR>
    <TD><%= dptNo %></TD>
    <TD><%= dptName %></TD>
    <TD><A href="<%= editURL %>">Edit</A> <A href="<%= deleteURL %>">Delete</A></TD>
    </TR>
    <%
    } /* for */
    %>
    </TABLE>
    <%
    } /* else */
    } /* else */
    // Finally display a link to the page that allows the user to add an entry
    // to the address book.
    %>
    <P><TABLE border="1">
    <TR><TD><A href="dptadd.jsp">Add entry</A></TD></TR>
    </TABLE>
    </BODY>
    </HTML>
    Please guide me..

    Hi Avi,
    Thanks,
    I have already used earlier..
    the data-sources file is as under.
         <data-source class="com.evermind.sql.DriverManagerDataSource" name="jdbc/DBConnection" location="jdbc/OracleCoreDS" xa-location="jdbc/xa/OracleXADS" ejb-location="com.webstore.Department" connection-driver="oracle.jdbc.driver.OracleDriver" username="RajiveShukla" password="pxujxa" url="jdbc:oracle:thin:@PRG-FG9S9G12DNZ:1521:wbs" inactivity-timeout="30"/>
    </data-sources>
    The username and password and sid, I can connect in the sqlPlus
    Do we have to give remote server name in rmi.xml.. It is not initilizing the J2EE server if we give that.??
    I am using thin driver , if any change or any settings please write me..
    Thanks in advance..
    Rajive

  • How to find custom table in Oracle EBS

    Hi experts,
    I am looking for the query that can find out all custom tables/objects in Oracle EBS? For some reasons, the custom tables/objects's name does not follow any standard. That a reason why I cannot find all custom objects in database. If you have that query, please share with me.
    Thanks in advance
    Hieu

    I am looking for the query that can find out all custom tables/objects in Oracle EBS? For some reasons, the custom tables/objects's name does not follow any standard. That a reason why I cannot find all custom objects in database. If you have that query, please share with me.There is no direct way to list the custom objects in the database/application unless you follow the customization standard (naming convention).
    https://forums.oracle.com/forums/search.jspa?threadID=&q=Find+AND+Custom+AND+Objects&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    https://forums.oracle.com/forums/search.jspa?threadID=&q=Custom+AND+Objects+AND+Naming&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • Cannot connect to newly created SQL 2008 R2 instance. Login failed for user...

    I'm not a SQL guy, just figuring my way around here...
    I just created a new instance on an existing SQL server. The original instance works fine. On
    Database Engine Configuration > Account Provisioning
    I selected Windows authentication mode and added several users, myself among them.
    Tried to log in with one my account and getting:
    TITLE: Connect to Server
    Cannot connect to SERVERNAME\INSTANCE.
    ADDITIONAL INFORMATION:
    Login failed for user 'domain\myusername'. (Microsoft SQL Server, Error: 18456)
    Guidance/suggestions?
    Thanks,
    Scott

    http://sqlserver-help.com/2014/07/08/help-how-to-find-cause-of-login-failed-for-user-error/
    Balmukund Lakhani
    Please mark solved if I've answered your question, vote for it as helpful to help other users find a solution quicker
    This posting is provided "AS IS" with no warranties, and confers no rights.
    My Blog |
    Team Blog | @Twitter
    | Facebook
    Author: SQL Server 2012 AlwaysOn -
    Paperback, Kindle

Maybe you are looking for

  • Creative Cloud for Teams (Non-Profit) Renewal Loop

    Every time I open any Creative Cloud app I get this window: When I click "Try Again" I get this window: When I click "Continue" I get the previous window (above) again. If I click on "Have a different Adobe ID?" and input my password via that window

  • Is it possible to turn off a spot colour

    Hello Probably a dumb question but I will ask anyway. Is it possible to turn off a spot colour in CS4. I can effectively do it by creating a spot white and merging the spot colour I want to delete to the spot white using the ink aliasing. However, th

  • Creating or importing a table into Mail

    I have searched and found a few threads with this same question. The problem is, there is no answer in any of the threads! Can someone help me figure out how to either create or import a table into a Mail message? Thanks for any advice provided.

  • How to upgrade the version above 10.4 in free

    hello, Now the version of my Mac OS X system is 10.3.9. How to upgrade the version above 10.4 in free. Thanks very much!

  • Cost Center Report with Cost Element wise Subtotal

    Hi All, We have a requirement where customer wants a Cost Center report with Cost Element wise Subtotal and selection options required are Company Code, Cost Center, Cost Element. KSB1 solves the requirement, but when executed for 2 or more company c