Query to find Org ID for a respnsibility

Hi,
I do not have access to Application.
Can any one suggest me, how to find the org_id for a particular responsibility?
Thanks,
Santhosh

Hi Satyaki_De,
Thanks for the response.
I'm talking about Oracle Apps 11i (Application), for which I do not have access as of now. (do not have login ID/pwd)
How can I find the org_id for the responsibility, 'Inventory organization' (Inv ADM Support, responsibility name)
I could get the responsibility ID from the table, FND_RESPONSIBILITY_TL
How do I match this with profile table to get Org_id?
Thanks,
Santhosh

Similar Messages

  • Sql query to find the balances for a customer account wise.

    Hi,
    Could someone help me with the sql query to find the balances for each customer account wise. This is need to generate the report.
    presently we are using this query, but the output doesnot return the expected result.
    SELECT sum(nvl(ps.acctd_amount_due_remaining,0)) "Balance"
    FROM      ra_cust_trx_line_gl_dist_all gld,
              gl_code_combinations c,
              ar_payment_schedules_all ps,
              RA_CUSTOMER_TRX_ALL rat,
              ra_customers rc
    WHERE      c.CHART_OF_ACCOUNTS_ID = 101
    and gld.code_combination_id = c.code_combination_id
         and rat.CUSTOMER_TRX_ID=gld.CUSTOMER_TRX_ID
         and rat.CUSTOMER_TRX_ID=ps.CUSTOMER_TRX_ID
    and ps.customer_id=rc.customer_id
         and ps.status='OP'
         and ps.gl_date <= :PDATE
         and ps.org_id=:PORGID
         and ps.class in ('GUAR','INV','DM','DEP')
    and c.SEGMENT4=:Account_id
    and ps.customer_id=:Customer_id
    Thanks in advance.
    Kalyan.

    Can someone help us with this.

  • 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.

  • How to find org id for a cost center

    I want to find org id for a cost center which is segment1.segment2.segment4.segment6(le.div.acctclass.other-516.203897.343.8978) of gl_code_combinations table from database. When I log on to a responsibility in apps, I can find out org id as a profile value. But how to find it from a database for that cost center?

    Thanks Nagamohan. This functionality itself is working fine. But now when I am selecting the cost center from the table(the file is actually stored as an external table), lets say cc values are 010, 709, 840 each belongs to different responsibility, I get the value of the first responsibility initialized. So I think I will need to know the responsibility for each costcenter, pass resp id to initialize and then find out org id.
    This is my code:
    create or replace
    PROCEDURE XXIU_AA_COSTCTR_FILE
    p_file_path VARCHAR2,
    P_FILE_NAME VARCHAR2)
    AS
    c_file_handle_w UTL_FILE.FILE_TYPE;
    --end_of_file BOOLEAN := FALSE;
    v_record VARCHAR2(1000);
    V_ORG_ID VARCHAR2(3):= '123';
    v_le varchar2(3);
    CURSOR C_COSTCTR IS
    SELECT cost_center_no, cost_center_name, LEVEL1 LE, LEVEL2 DIVISION, LEVEL3 ACCT_CLASS, STATUS, INTERCOMPANY_LE
    FROM XXIU_AA_COSTCENTERS; {color:#993300}-- file stored as external table
    {color}
    BEGIN
    c_file_handle_w := UTL_FILE.FOPEN(p_file_path, p_file_name, 'w');
    FOR r in (select responsibility_id from fnd_responsibility where responsibility_id in ( 50001,50002,50822)) {color:#993300}--{color} {color:#993300}I have to find out resp id for each cost center in the loop to initialize apps for that cost center and get org id
    {color}loop
    fnd_global.apps_initialize(1234,r.responsibility_id,101);
    FOR i in c_costctr loop
    SELECT d.organization_id org_id, e.flex_value cost_center into v_org_id, v_le
    FROM fnd_segment_attribute_values a, fnd_id_flex_segments b, gl_sets_of_books c, hr_operating_units d, fnd_flex_values e
    WHERE a.id_flex_code = 'GL#'
    AND a.segment_attribute_type = 'FA_COST_CTR'
    AND b.flex_value_set_id = 1002590
    AND a.id_flex_code = b.id_flex_code
    AND a.attribute_value = 'Y'
    AND a.application_id = b.application_id
    AND a.id_flex_num = b.id_flex_num
    AND b.id_flex_num = c.chart_of_accounts_id
    AND c.set_of_books_id = d.set_of_books_id
    AND b.flex_value_set_id = e.flex_value_set_id
    AND e.flex_value = i.le
    and d.organization_id=fnd_profile.value('ORG_ID')
    and c.set_of_books_Id=fnd_profile.value('GL_SET_OF_BKS_ID')
    and is_valid_on_security_rules(1002590,i.le)='T';
    V_RECORD := RPAD(nvl(i.cost_center_no,' '),19, ' ')
    || RPAD(nvl(i.cost_center_name, ' '),100,' ')
    || RPAD(nvl(i.le, ' '),3, ' ')
    || RPAD(nvl(i.division, ' '), 6, ' ')
    || RPAD(nvl(i.acct_class, ' '), 6, ' ')
    || nvl(SUBSTR(i.STATUS,1,1), ' ')
    || RPAD(NVL(V_ORG_ID,' '),3,' ')
    || RPAD(NVL(i.intercompany_le, ' '),3,' ');
    dbms_output.put_line(v_record);
    utl_file.PUT_line(c_file_handle_w, v_record);
    end loop;
    end loop;
    END XXIU_AA_COSTCTR_FILE;
    Thanks,
    Sravanthi
    Edited by: SRANAY on Dec 6, 2008 8:49 PM

  • Correlated query to find cheapest manufacturer for a product

    Hi,
    I have a SQL Query that returns me:
    - the "product code" i must purchase,
    - the "quantity" to purchase for this product
    - and if it's in "promotion or not".
    Based on this result, i must to look at "manufacturer" table and find the cheapest "price" for each product to purchase and the quantity available at the manufacturer.
    If "quantity to order" (e.g. 20) is higher than "quantity available" (e.g. 12) at "cheapest manufacturer", i must order the missing quantity (8) to the next cheapest manufacturer.
    How can i do that ?
    thx

    ​Hi
    >>correlated query to find cheapest manufacturer for a product
    I have created two table [ProdTable] , [Product Code] to get the cheapeast manufacturer  for a product  which you can refer to .
    [Product Table]
    [Prod Table]
    select [ProdTable].[S_Prod_Code],Min([ProdTable].[Prod_Cost]) as MiniCost
    from [ProdTable] inner join [Product Table] on [ProdTable].[S_Prod_Code]=[Product Table].[Product Code]
    Where [Product Table].[Promotion]<>"YES"
    group by [ProdTable].[S_Prod_Code]
    Using the above query ,you can get the cheapest  cheapeast manufacturer  for a product , which the promotion is not YES
    >>for promotional products, i must firstly check if the cheapest manufacturer has enough prod in stock. If not, i order all the prod in stock the manufacturer has, and i must order to missing ones to the next cheapest manufacturer
    Are you looking for a select query or an update to the table or form design ?Can you separate your business rules with the technolege ?  So more people could understand your issues well to give you more help.
    Thanks for your understanding
    Best Regards
    Lan
    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.
    Click
    HERE to participate the survey.

  • Query to find supervisor_id hierarchy for a person

    Hi,
    I have a requirement, where i have to find the supervisor id hierarchy (bottom up) for a person. I am using below query to get it.
    SELECT LEVEL ,LPAD ( ' ', 7 (LEVEL-1)) || paaf.person_id AS person_id*
    FROM   per_all_assignments_f paaf
    WHERE sysdate between paaf.effective_start_date and paaf.effective_end_date
    START WITH paaf.person_id=2338
    CONNECT BY PRIOR paaf.supervisor_id  =  paaf.person_id
    Above query is returning the follwing results as i expected.
    1 2338
    2 2212
    3 2105
    Here, for 2338 supervisors is------> 2212 supervisor is -----------> 2105
    Now, my requirement is, for each person i have to find the direct reporteee list in separate column.
    for 2338, need to find direct reportees--------> for 2212, find direct reportees--------> for 2105, find direct reportees in separte column
    Note: I am developing a reporting to display the results like above.
    Any help is appreciated.
    Thanks in advance.

    Please use the below query it may help you get the employee & supervisor
    SELECT ROWNUM
    , pax.supervisor_id
    , pax.person_id
    , ppx.employee_number
    , mgx.employee_number supervisor_staff_number
    , REPLACE (ppx.full_name, '''', ' ') full_name
    , REPLACE (mgx.full_name, '''', ' ') supervisor_full_name
    , pj.NAME job_name
    , LEVEL
    FROM per_assignments_x pax
    , per_people_x ppx
    , per_people_x mgx
    , per_jobs pj
    WHERE ppx.person_id = pax.person_id
    AND ppx.current_employee_flag = 'Y'
    AND mgx.person_id = pax.supervisor_id
    AND pj.job_id = pax.job_id
    START WITH ppx.employee_number = :p_emp_num
    CONNECT BY NOCYCLE PRIOR mgx.employee_number = ppx.employee_number
    --ORDER BY   1 ASC;
    Sandeep Yaparla

  • Need Query to find Pending Quantity for Receipts

    Hi all,
    Can any one please help me in finding the pending quantity for a particular Receipt.
    ex. If a receipt has
    transaction_type Quantity
    Receive 15
    Accept 5
    Deliver 5
    then my accepted quantity should be (Receive-Deliver) = 10
    I have written a query
    SELECT RSH.RECEIPT_NUM RECEIPT_NUM, RSH.CREATION_DATE CREATION_DATE, RT.TRANSACTION_TYPE TRANSACTION_TYPE, NVL(RT.QUANTITY, 0) QUANTITY,rt.destination_type_code destination_type_code,
                   RT.UNIT_OF_MEASURE UNIT_OF_MEASURE, RSL.ITEM_DESCRIPTION ITEM_DESCRIPTION, NVL(RT.PO_UNIT_PRICE, 0) PO_UNIT_PRICE,
                   RT.CURRENCY_CODE CURRENCY_CODE, NVL(RT.CURRENCY_CONVERSION_RATE,0) RATE, RSL.SHIPMENT_LINE_ID SHIPMENT_LINE_ID,
                   NVL(RT.QUANTITY * RT.PO_UNIT_PRICE * RT.CURRENCY_CONVERSION_RATE ,0) VALUE               
         FROM RCV_TRANSACTIONS RT, RCV_SHIPMENT_HEADERS RSH, RCV_SHIPMENT_LINES RSL, PO_VENDORS POV, PO_VENDOR_SITES POVS,
              ORG_ORGANIZATION_DEFINITIONS ORG, HR_LOCATIONS_ALL_TL HRL, PO_LOOKUP_CODES PLC,
              RCV_SUPPLY RS
         WHERE RSH.SHIPMENT_HEADER_ID = RT.SHIPMENT_HEADER_ID
              AND RSH.SHIPMENT_HEADER_ID = RSL.SHIPMENT_HEADER_ID
              AND RSH.RECEIPT_NUM IS NOT NULL
              AND POV.VENDOR_ID (+) = RSH.VENDOR_ID
              AND POVS.VENDOR_SITE_ID (+) = RSH.VENDOR_SITE_ID
              AND HRL.LOCATION_ID (+) = RSH.SHIP_TO_LOCATION_ID AND HRL.LANGUAGE(+) = USERENV('LANG')
              AND ORG.ORGANIZATION_ID (+) = RSH.ORGANIZATION_ID AND RSH.RECEIPT_SOURCE_CODE = PLC.LOOKUP_CODE
              AND PLC.LOOKUP_TYPE = 'SHIPMENT SOURCE TYPE'
              AND RS.RCV_TRANSACTION_ID = RT.TRANSACTION_ID
              AND RT.SHIPMENT_LINE_ID = RSL.SHIPMENT_LINE_ID
              AND RT.TRANSACTION_TYPE IN ('RECEIVE','TRANSFER')
         ORDER BY 1
    I want want the pending quantity...
    Please help

    You can get the quantities in po line locations, then you can find the balance quantity to be received.
    you can get the following from po line locations.
    quantity
    quantity_received
    quantiy_accepted
    quantity_rejected
    quantity_billed
    quantity_cancelled
    --Prasanth                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • SQL Query to find cumulative values for a Financial Year

    Dear users,
    My requirement is to create a SQL query for a table/view where I have day-wise data. I want to find out cumulative values for financial year by giving any date. It should add the values from start of financial year till that date in the financial year.
    I think creating a view of such type will post heavy burden on resources since accuimulation will be done for each day upto that day.
    Thanks

    Dear users,
    My requirement is to create a SQL query for a
    table/view where I have day-wise data. I want to
    find out cumulative values for financial year by
    giving any date. It should add the values from start
    of financial year till that date in the financial
    year.
    I think creating a view of such type will post heavy
    burden on resources since accuimulation will be done
    for each day upto that day.
    ThanksKumar's solution will serve yours purpose but m not agreed
    I think creating a view of such type will post heavy
    burden on resources since accuimulation will be done
    for each day upto that day. Khurram

  • Query to find attachement information for wip operation seq number

    Hi Experts,
    I am working on EBS 11.5.10 and database 9i. I want table link to find attachments for particular operation sequence number.
    Navigation:
    WORK IN PROCESS --> DISCRETE JOBS --> OPERATIONS --> ATTACHMENTS(IN MENU YOU CAN FIND).
    In operations screen, for each operation sequence number, you can have attachement.In attachement, i want to pick the remarks column.
    Table: OPERATIONS -- WIP_OPERATIONS
    ATTACHEMENTS - FND_ATTACHED_DOCS_FORM_VL
    REMARKS - fnd_documents_short_text
    Link between FND_ATTACHED_DOCS_FORM_VL and fnd_documents_short_text is media_id. But i am not able to find the link between wip_operations and fnd_attached_docs_form_vl.
    Could anybody help me how to get attachement data for a particular operation sequence number.
    Thanks in advance.

    The link is
    entity_type = 'WIP_DISCRETE_OPERATIONS' and
    pk1_value =wip_entity_id and
    pk2_value = operation_seq_num and
    pk3_value = organization_idHope this answers your question,
    Sandeep Gandhi

  • Query to find all dependencies for a lookup type

    I have a lookup type and i need to find all the concurrent programs using it.

    Need dependencies for a particular Flexfield structure too.. pls help !!

  • Org.hibernate.PropertyNotFoundException: Could not find a getter for id in

    [skumar@aithdell3 events]$ java EventManager
    May 15, 2008 8:39:41 PM org.hibernate.cfg.Environment <clinit>
    INFO: Hibernate 3.2.3
    May 15, 2008 8:39:41 PM org.hibernate.cfg.Environment <clinit>
    INFO: hibernate.properties not found
    May 15, 2008 8:39:41 PM org.hibernate.cfg.Environment buildBytecodeProvider
    INFO: Bytecode provider name : cglib
    May 15, 2008 8:39:41 PM org.hibernate.cfg.Environment <clinit>
    INFO: using JDK 1.4 java.sql.Timestamp handling
    May 15, 2008 8:39:42 PM org.hibernate.cfg.Configuration configure
    INFO: configuring from resource: /hibernate.cfg.xml
    May 15, 2008 8:39:42 PM org.hibernate.cfg.Configuration getConfigurationInputStream
    INFO: Configuration resource: /hibernate.cfg.xml
    May 15, 2008 8:39:42 PM org.hibernate.cfg.Configuration addResource
    INFO: Reading mappings from resource : Event.hbm.xml
    May 15, 2008 8:39:43 PM org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
    INFO: Mapping class: Event -> EVENTS
    May 15, 2008 8:39:43 PM org.hibernate.cfg.Configuration doConfigure
    INFO: Configured SessionFactory: null
    May 15, 2008 8:39:43 PM org.hibernate.connection.DriverManagerConnectionProvider configure
    INFO: Using Hibernate built-in connection pool (not for production use!)
    May 15, 2008 8:39:43 PM org.hibernate.connection.DriverManagerConnectionProvider configure
    INFO: Hibernate connection pool size: 1
    May 15, 2008 8:39:43 PM org.hibernate.connection.DriverManagerConnectionProvider configure
    INFO: autocommit mode: false
    May 15, 2008 8:39:43 PM org.hibernate.connection.DriverManagerConnectionProvider configure
    INFO: using driver: org.hsqldb.jdbcDriver at URL: jdbc:hsqldb:sql://localhost
    May 15, 2008 8:39:43 PM org.hibernate.connection.DriverManagerConnectionProvider configure
    INFO: connection properties: {user=sa, password=****}
    May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory buildSettings
    INFO: RDBMS: HSQL Database Engine, version: 1.8.0
    May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory buildSettings
    INFO: JDBC driver: HSQL Database Engine Driver, version: 1.8.0
    May 15, 2008 8:39:44 PM org.hibernate.dialect.Dialect <init>
    INFO: Using dialect: org.hibernate.dialect.HSQLDialect
    May 15, 2008 8:39:44 PM org.hibernate.transaction.TransactionFactoryFactory buildTransactionFactory
    INFO: Using default transaction strategy (direct JDBC transactions)
    May 15, 2008 8:39:44 PM org.hibernate.transaction.TransactionManagerLookupFactory getTransactionManagerLookup
    INFO: No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
    May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Automatic flush during beforeCompletion(): disabled
    May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Automatic session close at end of transaction: disabled
    May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory buildSettings
    INFO: JDBC batch size: 15
    May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory buildSettings
    INFO: JDBC batch updates for versioned data: disabled
    May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Scrollable result sets: enabled
    May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory buildSettings
    INFO: JDBC3 getGeneratedKeys(): disabled
    May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Connection release mode: auto
    May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Default batch fetch size: 1
    May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Generate SQL with comments: disabled
    May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Order SQL updates by primary key: disabled
    May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory createQueryTranslatorFactory
    INFO: Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
    May 15, 2008 8:39:44 PM org.hibernate.hql.ast.ASTQueryTranslatorFactory <init>
    INFO: Using ASTQueryTranslatorFactory
    May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Query language substitutions: {}
    May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory buildSettings
    INFO: JPA-QL strict compliance: disabled
    May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Second-level cache: enabled
    May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Query cache: disabled
    May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory createCacheProvider
    INFO: Cache provider: org.hibernate.cache.NoCacheProvider
    May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Optimize cache for minimal puts: disabled
    May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Structured second-level cache entries: disabled
    May 15, 2008 8:39:45 PM org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Echoing all SQL to stdout
    May 15, 2008 8:39:45 PM org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Statistics: disabled
    May 15, 2008 8:39:45 PM org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Deleted entity synthetic identifier rollback: disabled
    May 15, 2008 8:39:45 PM org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Default entity-mode: pojo
    May 15, 2008 8:39:45 PM org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Named query checking : enabled
    May 15, 2008 8:39:45 PM org.hibernate.impl.SessionFactoryImpl <init>
    INFO: building session factory
    Intial session factory creation failed org.hibernate.PropertyNotFoundException: Could not find a getter for id in class Event
    Exception in thread "main" java.lang.ExceptionInInitializerError
    at HibernateUtil.<clinit>(HibernateUtil.java:18)
    at EventManager.main(EventManager.java:11)
    Caused by: org.hibernate.PropertyNotFoundException: Could not find a getter for id in class Event
    at org.hibernate.property.BasicPropertyAccessor.createGetter(BasicPropertyAccessor.java:282)
    at org.hibernate.property.BasicPropertyAccessor.getGetter(BasicPropertyAccessor.java:275)
    at org.hibernate.tuple.PropertyFactory.getGetter(PropertyFactory.java:168)
    at org.hibernate.tuple.PropertyFactory.buildIdentifierProperty(PropertyFactory.java:44)
    at org.hibernate.tuple.entity.EntityMetamodel.<init>(EntityMetamodel.java:123)
    at org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java:434)
    at org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:109)
    at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55)
    at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:226)
    at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1294)
    at HibernateUtil.<clinit>(HibernateUtil.java:14)
    How can i fix this exception
    Please help me.
    Thanks in advance

    [skumar@aithdell3 events]$ java EventManager
    May 15, 2008 8:39:41 PM org.hibernate.cfg.Environment <clinit>
    INFO: Hibernate 3.2.3
    May 15, 2008 8:39:41 PM org.hibernate.cfg.Environment <clinit>
    INFO: hibernate.properties not found
    May 15, 2008 8:39:41 PM org.hibernate.cfg.Environment buildBytecodeProvider
    INFO: Bytecode provider name : cglib
    May 15, 2008 8:39:41 PM org.hibernate.cfg.Environment <clinit>
    INFO: using JDK 1.4 java.sql.Timestamp handling
    May 15, 2008 8:39:42 PM org.hibernate.cfg.Configuration configure
    INFO: configuring from resource: /hibernate.cfg.xml
    May 15, 2008 8:39:42 PM org.hibernate.cfg.Configuration getConfigurationInputStream
    INFO: Configuration resource: /hibernate.cfg.xml
    May 15, 2008 8:39:42 PM org.hibernate.cfg.Configuration addResource
    INFO: Reading mappings from resource : Event.hbm.xml
    May 15, 2008 8:39:43 PM org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
    INFO: Mapping class: Event -> EVENTS
    May 15, 2008 8:39:43 PM org.hibernate.cfg.Configuration doConfigure
    INFO: Configured SessionFactory: null
    May 15, 2008 8:39:43 PM org.hibernate.connection.DriverManagerConnectionProvider configure
    INFO: Using Hibernate built-in connection pool (not for production use!)
    May 15, 2008 8:39:43 PM org.hibernate.connection.DriverManagerConnectionProvider configure
    INFO: Hibernate connection pool size: 1
    May 15, 2008 8:39:43 PM org.hibernate.connection.DriverManagerConnectionProvider configure
    INFO: autocommit mode: false
    May 15, 2008 8:39:43 PM org.hibernate.connection.DriverManagerConnectionProvider configure
    INFO: using driver: org.hsqldb.jdbcDriver at URL: jdbc:hsqldb:sql://localhost
    May 15, 2008 8:39:43 PM org.hibernate.connection.DriverManagerConnectionProvider configure
    INFO: connection properties: {user=sa, password=****}
    May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory buildSettings
    INFO: RDBMS: HSQL Database Engine, version: 1.8.0
    May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory buildSettings
    INFO: JDBC driver: HSQL Database Engine Driver, version: 1.8.0
    May 15, 2008 8:39:44 PM org.hibernate.dialect.Dialect <init>
    INFO: Using dialect: org.hibernate.dialect.HSQLDialect
    May 15, 2008 8:39:44 PM org.hibernate.transaction.TransactionFactoryFactory buildTransactionFactory
    INFO: Using default transaction strategy (direct JDBC transactions)
    May 15, 2008 8:39:44 PM org.hibernate.transaction.TransactionManagerLookupFactory getTransactionManagerLookup
    INFO: No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
    May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Automatic flush during beforeCompletion(): disabled
    May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Automatic session close at end of transaction: disabled
    May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory buildSettings
    INFO: JDBC batch size: 15
    May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory buildSettings
    INFO: JDBC batch updates for versioned data: disabled
    May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Scrollable result sets: enabled
    May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory buildSettings
    INFO: JDBC3 getGeneratedKeys(): disabled
    May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Connection release mode: auto
    May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Default batch fetch size: 1
    May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Generate SQL with comments: disabled
    May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Order SQL updates by primary key: disabled
    May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory createQueryTranslatorFactory
    INFO: Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
    May 15, 2008 8:39:44 PM org.hibernate.hql.ast.ASTQueryTranslatorFactory <init>
    INFO: Using ASTQueryTranslatorFactory
    May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Query language substitutions: {}
    May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory buildSettings
    INFO: JPA-QL strict compliance: disabled
    May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Second-level cache: enabled
    May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Query cache: disabled
    May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory createCacheProvider
    INFO: Cache provider: org.hibernate.cache.NoCacheProvider
    May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Optimize cache for minimal puts: disabled
    May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Structured second-level cache entries: disabled
    May 15, 2008 8:39:45 PM org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Echoing all SQL to stdout
    May 15, 2008 8:39:45 PM org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Statistics: disabled
    May 15, 2008 8:39:45 PM org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Deleted entity synthetic identifier rollback: disabled
    May 15, 2008 8:39:45 PM org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Default entity-mode: pojo
    May 15, 2008 8:39:45 PM org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Named query checking : enabled
    May 15, 2008 8:39:45 PM org.hibernate.impl.SessionFactoryImpl <init>
    INFO: building session factory
    Intial session factory creation failed org.hibernate.PropertyNotFoundException: Could not find a getter for id in class Event
    Exception in thread "main" java.lang.ExceptionInInitializerError
    at HibernateUtil.<clinit>(HibernateUtil.java:18)
    at EventManager.main(EventManager.java:11)
    Caused by: org.hibernate.PropertyNotFoundException: Could not find a getter for id in class Event
    at org.hibernate.property.BasicPropertyAccessor.createGetter(BasicPropertyAccessor.java:282)
    at org.hibernate.property.BasicPropertyAccessor.getGetter(BasicPropertyAccessor.java:275)
    at org.hibernate.tuple.PropertyFactory.getGetter(PropertyFactory.java:168)
    at org.hibernate.tuple.PropertyFactory.buildIdentifierProperty(PropertyFactory.java:44)
    at org.hibernate.tuple.entity.EntityMetamodel.<init>(EntityMetamodel.java:123)
    at org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java:434)
    at org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:109)
    at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55)
    at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:226)
    at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1294)
    at HibernateUtil.<clinit>(HibernateUtil.java:14)
    How can i fix this exception
    Please help me.
    Thanks in advance

  • Query to find out the time used by an user for an application

    Hello All,
    I want to know the query to find out the whole time used by the user for an application. Please view the below data
    Employee:
    SNO EMP_ID EMP_NAME EMP_DATE LOGIN_TIME LOGOUT_TIME
    1 10 Visu 21-Nov-2010 06:30:00 07:30:00
    2 10 Visu 21-Nov-2010 06:40:00 07:20:00
    3 10 Visu 21-Nov-2010 06:50:00 07:50:00
    4 10 Visu 21-Nov-2010 07:30:00 08:30:00
    5 10 Visu 21-Nov-2010 09:30:00 10:30:00
    By checking the above data we can say that the total time Visu used the application is
    8.30 - 6.30 (From 1,2,3,4 records) = 2hrs
    10.30 - 9.30 (Based on 5th rec) = 1hr
    So the total time Visu used the application would be 3 hrs = 180 mins.
    Could you please help me in getting the result from that data using a query?

    odie_63 wrote:
    I think it may be solved with analytics too.
    with t1 as (
                select 1 sno,10 emp_id,'Visu' emp_name,'21-Nov-2010' emp_date,'06:30:00' login_time,'07:30:00' logout_time from dual union all
                select 2,10,'Visu','21-Nov-2010','06:40:00','07:20:00' from dual union all
                select 3,10,'Visu','21-Nov-2010','06:50:00','07:50:00' from dual union all
                select 4,10,'Visu','21-Nov-2010','07:30:00','08:30:00' from dual union all
                select 5,10,'Visu','21-Nov-2010','09:30:00','10:30:00' from dual
         t2 as (
                select  emp_id,
                        emp_name,
                        emp_date,
                        to_date(emp_date || login_time,'DD-MON-YYYYHH24:MI:SS') login_time,
                        to_date(emp_date || logout_time,'DD-MON-YYYYHH24:MI:SS') logout_time
                  from  t1
         t3 as (
                select  t2.*,
                        case
                          when login_time < max(logout_time) over(
                                                                  partition by emp_id,emp_date
                                                                  order by login_time
                                                                  rows between unbounded preceding
                                                                           and 1 preceding
                            then 0
                          else 1
                        end start_of_group
                  from  t2
         t4 as (
                select  t3.*,
                        sum(start_of_group) over(partition by emp_id,emp_date order by login_time) grp
                  from  t3
         t5 as (
                select  emp_id,
                        emp_date,
                        min(login_time) login_time,
                        max(logout_time) logout_time
                  from  t4
                  group by emp_id,
                           emp_date,
                           grp
    select  emp_id,
            numtodsinterval(sum(logout_time - login_time),'day') time_spent
      from  t5
      group by emp_id
      order by emp_id
        EMP_ID TIME_SPENT
            10 +000000000 03:00:00.000000000
    SQL> SY.

  • Looking for a query to find first/last dates in overlapping dates...

    Hi,
    I'm looking for a query to find the first dates and last dates in a table conaining overlapping dates.
    I have a subscription table which has for each Customer start and end date for different subscriptions.
    I want to know the different ranges of date where there is subscriptions active.
    so if the table has this:
    CustID, Start date, end date
    1, 2008-01-01, 2012-06-06
    1 ,2009-01-01, 2011-01-01
    1, 2011-01-01, 2013-02-02
    1, 2013-01-01, 2013-08-08
    1, 2014-01-01, 2014-04-04
    I want to produce this result:
    custid, range start, range end
    1, 2008-01-01, 2013-08-08
    1, 2014-01-01, 2014-04-04
    the first row is the range identified from the 4 rows in my subscription table.
    thanks :)

    I think I found it...
    http://stackoverflow.com/questions/5213484/eliminate-and-reduce-overlapping-date-ranges
    let me try this method
    Hi,
    m writing to follow up with you on this post. Thanks for you posting a reply to share your workground. Was the problem resolved after performing the above link? If you are satisfied with the above solution, I’d like to mark this issue as "Answered".
    Please also feel free to unmark the issue, with any new findings or concerns you may have.
    Thanks,
    Sofiya Li
    If you have any feedback on our support, please click here.
    Sofiya Li
    TechNet Community Support

  • Query to find out controls displayed as in UI for an applet,along with view

    Hi,
    I am looking for a query to find out list of all the controls as displayed in UI applet along with applet's view.
    Please note that in the query only mapped controls (those displayed in UI ) should come up.
    Regards,
    Kunal

    Hi,
    If the EUL is an apps mode (EBS) EUL then the eu_username column is the apps user id or apps resp id. If you want to show only the responsibilities and convert those ids to names then you need to use the EUL5_GET_APPS_USERRESP function like this:
    select ba_name, ba_developer_key, EUL5_GET_APPS_USERRESP(eu.eu_username, 'R') responsibility_name
    from eul5_bas ba
       , eul5_access_privs ap
       , eul5_eul_users eu
    where ba.ba_id = ap.gba_ba_id
    and ap.ap_type = 'GBA'
    and ap.ap_eu_id = eu.eu_id
    and eu.eu_role_flag=1
    order by 1,2,3Rod West

  • Code for finding CPU utilisation for executing query

    Hi, i need code for finding CPU utilisation for executing the particular query.

    Use session tracing, then in trace file you can find cpu utilization for particular statement on each phase: parse, execute, fetch and the overall.
    Or You can use the dbms_utility.get_cpu_time (if your database is 10g) in pl/sql:
    declare
    cpt1 pls_integer;
    cpt2 pls_integer;
    cputime pls_integer;
    begin
    cpt1:=sys.dbms_utility.get_cpu_time;
    <some code here>
    cpt2:=sys.dbms_utility.get_cpu_time;
    cputime:=cpt2-cpt1;
    end;
    good luck

Maybe you are looking for

  • Cannot get recovery disk to work on CQ58

    Model Compaq CQ58 Product number is C2M29UA#ABA Purchased 11/22/2012 Windows 8 preinstalled. Turned laptop on and it came up with "No operating system found on HDD. I inserted my recovery disc's and chose to install operating system and drivers image

  • Complex Restrictions in Select-options

    Hi Team, I've coded SELECT-OPTIONS in my web dynpro(ABAP) and want to disable the complex selection button/link (displayed just before the actual field). This link takes the user to either "Exclude" the selection or other options like "GE", "BT" etc.

  • Multi-value parameters and strings with leading zeros

    I have invoice number as a multi-value parameter. Invoice is a string,10 (VBRP.VBELN) . Invoice number is my group. If I enter invoices 100 and 200 as parms, then I only get data for invoice #100 (the lowest value entered). But if I enter 100, 000000

  • OBIEE Line Missing from Line View

    Hi: OBIEE 11.1.1.6 When creating a line view from two rows of data points, OBIEE will not draw lines between data points when the data points are unbalanced. Here is an example. Let's say product 1 has sales for Jan, Feb, March, April, May and June.

  • MBP doesn't see usb card reader

    I have a MAUSB-10 card reader and my MBP doesn't see it. It's usb and was plugged into my xp box, but I'm trying to switch everything over to mac and this is a major stumbling block. Anyone have any ideas as to how I can get the MBP to see the reader