Sign Up

Sign Up to our social questions and Answers to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In
Continue with Google
or use


Have an account? Sign In Now

Sign In

Login to our social questions & Answers to ask questions, answer people’s questions & connect with other people.

Sign Up Here
Continue with Google
or use

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Continue with Google
or use

Forgot Password?

Need An Account, Sign Up Here

You must login to ask a question.

Continue with Google
or use

Forgot Password?

Need An Account, Sign Up Here

Sorry, you do not have permission to add post.

Continue with Google
or use

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Oraask Logo Oraask Logo
Sign InSign Up

Oraask

  • Write
    • Add A New Post
    • Ask A Question

Oraask Navigation

Search
Ask A Question

Mobile menu

Close
Ask A Question
  • Categories
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Dev Tools
    • Online Compiler
    • Base64 Converter
    • Oraask XML Formatter
    • Oraask JSON Formatter
  • Wiki
    • SQL Tutorials
    • Java Tutorials
    • Python Tutorials
    • JavaScript Tutorials

Hassan AbdElrahman

MasterOracle ACE Pro Alum ♠ | Oracle Senior ERP Technical Consultant
Ask Hassan AbdElrahman
1k Visits
29 Followers
0 Questions
Home/ Hassan AbdElrahman/Best Answers
  • About
  • Questions
  • Answers
  • Best Answers
  • Posts
  • Polls
  • Asked Questions
  • Comments
  1. Asked: June 3, 2023In: Oracle Fusion Queries, Oracle Fusion SCM

    What is Inventory Item Table in Oracle Fusion

    Hassan AbdElrahman
    Hassan AbdElrahman Master Oracle ACE Pro Alum ♠ | Oracle Senior ERP Technical Consultant
    Added an answer on June 3, 2023 at 11:28 pm
    This answer was edited.

    The table containing inventory item details in Oracle Fusion is "EGP_SYSTEM_ITEMS_B". It has one composite primary key (INVENTORY_ITEM_ID, ORGANIZATION_ID). and here you can find a sample query to get the most used information about items in Oracle Fusion: Query Inventory Item in Oracle Fusion SELECRead more

    The table containing inventory item details in Oracle Fusion is “EGP_SYSTEM_ITEMS_B“. It has one composite primary key (INVENTORY_ITEM_ID, ORGANIZATION_ID). and here you can find a sample query to get the most used information about items in Oracle Fusion:

    Query Inventory Item in Oracle Fusion

    SELECT ITEM_NUMBER
    ,INVENTORY_ITEM_ID
    ,FULL_LEAD_TIME
    ,PLANNER_CODE
    ,DECODE (MRP_PLANNING_CODE, 3, 'MRP Planned', 4, 'MPS Planned', 6, 'Not Planned', 7, 'MRP/MPP Planned', 8, 'MPS/MPP Planned', 9, 'MPP Planned', NULL)
    MRP_PLANNING_CODE
    ,INVENTORY_ITEM_STATUS_CODE
    ,MINIMUM_ORDER_QUANTITY
    ,MAXIMUM_ORDER_QUANTITY
    ,FIXED_ORDER_QUANTITY
    ,FIXED_LOT_MULTIPLIER
    ,DECODE (INVENTORY_PLANNING_CODE, 6, 'Not Planned', 2, 'Min-Max', 1, 'Reorder Point', 7, 'Vendor Managed') INVENTORY_PLANNING_CODE
    ,MIN_MINMAX_QUANTITY
    ,MAX_MINMAX_QUANTITY
    ,MTL_TRANSACTIONS_ENABLED_FLAG
    ,CUSTOMER_ORDER_ENABLED_FLAG
    ,SO_TRANSACTIONS_FLAG
    ,PRIMARY_UOM_CODE
    ,UNIT_LENGTH
    ,UNIT_WIDTH
    ,UNIT_HEIGHT
    ,UNIT_WEIGHT
    ,CREATED_BY
    ,CREATION_DATE
    ,LAST_UPDATED_BY
    ,LAST_UPDATE_DATE
    FROM EGP_SYSTEM_ITEMS_B
    WHERE ORGANIZATION_ID = NVL(:INV_ORG_ID,ORGANIZATION_ID);

    In the above query, we have one parameter, “:P_INV_ORG_ID” to get the item information in a specific inventory organization.

    You can refer to the Oracle doc to know all columns in this table.

    Hope this help.

    See less
      • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  2. Asked: January 23, 2023In: Oracle Database

    How to Find Queries Running For More than 5 Minutes

    Hassan AbdElrahman
    Hassan AbdElrahman Master Oracle ACE Pro Alum ♠ | Oracle Senior ERP Technical Consultant
    Added an answer on January 28, 2023 at 3:09 am

    To find the queries running for more than 5 or x of minutes you can try the below query and change the seconds parameter as per your need: Query: SELECT S.USERNAME ,Q.SQL_ID ,ROUND (S.LAST_CALL_ET, 2) TIME_IN_SECONDS ,ROUND (S.LAST_CALL_ET / 60, 2) TIME_IN_MINS ,S.SID ,Q.SQL_TEXT FROM GV$SESSION S,Read more

    To find the queries running for more than 5 or x of minutes you can try the below query and change the seconds parameter as per your need:

    Query:

    SELECT S.USERNAME
    ,Q.SQL_ID
    ,ROUND (S.LAST_CALL_ET, 2) TIME_IN_SECONDS
    ,ROUND (S.LAST_CALL_ET / 60, 2) TIME_IN_MINS
    ,S.SID
    ,Q.SQL_TEXT
    FROM GV$SESSION S, V$SQL Q
    WHERE S.SQL_ID = Q.SQL_ID
    AND STATUS = 'ACTIVE'
    AND USERNAME LIKE '%APPS%'
    AND S.LAST_CALL_ET > 300;

    Output:

    USERNAME SQL_ID TIME_IN_SECONDS TIME_IN_MINS
    —————————— ————- ————— ————
    SID
    ———-
    SQL_TEXT
    ——————————————————————————–
    APPS 497wh6n7hu14f 10562436 176040.6
    331
    BEGIN FND_CP_GSM_IPC.Get_Message(:1,:2,:3,:4,:5,:6,:7,:8,:9,:10); END;

    1 row selected.

    Note: 300 is (5*60). change it as you want to.

    See less
      • 1
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  3. Asked: January 25, 2023In: Oracle EBS Queries

    Query to get posted AP invoice in Oracle APPS R12

    Hassan AbdElrahman
    Hassan AbdElrahman Master Oracle ACE Pro Alum ♠ | Oracle Senior ERP Technical Consultant
    Added an answer on January 27, 2023 at 9:53 pm

    There is a seeded standard function provided from oracle to identify whether the invoice is posted or not. Which is (AP_INVOICES_PKG.GET_POSTING_STATUS) . This function take the invoice_id parameter and return one of four values: 'Y' - Posted 'N' - Unposted 'S' - Selected 'P' - Partially Posted ThesRead more

    There is a seeded standard function provided from oracle to identify whether the invoice is posted or not. Which is (AP_INVOICES_PKG.GET_POSTING_STATUS) .

    This function take the invoice_id parameter and return one of four values:

    ‘Y’ – Posted
    ‘N’ – Unposted
    ‘S’ – Selected
    ‘P’ – Partially Posted

    These values is the invoice posting status flag.

    Example:

    SELECT AIA.INVOICE_NUM, AP_INVOICES_PKG.GET_POSTING_STATUS (AIA.INVOICE_ID) INVOICE_POSTING_FLAG
    FROM AP_INVOICES_ALL AIA;
    

    Output:

    INVOICE_NUM
    ————————————————–
    INVOICE_POSTING_FLAG
    ——————————————————————————–
    ERS-9163-109073
    Y

    19879-781
    N

    ERS-4400-109091
    Y

    ERS-9164-109093
    P

    ERS-6970-109094
    Y

    ERS-6971-109095
    Y

    See less
      • 1
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  4. Asked: August 17, 2022In: Oracle SQL

    How to get Column Names from a Table in Oracle

    Hassan AbdElrahman
    Hassan AbdElrahman Master Oracle ACE Pro Alum ♠ | Oracle Senior ERP Technical Consultant
    Added an answer on August 17, 2022 at 1:35 am
    This answer was edited.

    To get the list of columns of a table in Oracle, we use to query the view "USER_TAB_COLUMNS" to get the columns of the tables or views owned by the current user. Or use the other view "USER_TAB_COLS". SELECT table_name ,column_name ,data_type ,data_length ,nullable ,data_default FROM user_tab_columnRead more

    To get the list of columns of a table in Oracle, we use to query the view “USER_TAB_COLUMNS” to get the columns of the tables or views owned by the current user. Or use the other view “USER_TAB_COLS“.

    SELECT table_name
    ,column_name
    ,data_type
    ,data_length
    ,nullable
    ,data_default
    FROM  user_tab_columns
    WHERE table_name = '&YOUTABLENAME'
    ORDER BY column_id;

    in the above query, we selected 7 columns to retrieve the most important information that you might be looking for in table columns which are

    • table names: the table name.
    • column name: column name.
    • data type: column data type like varchar2, number, etc.
    • data length: the value length.
    • nullable: whether the table accepts the null value or not.
    • data_default: whether the column has a default value or not.

    Note: you have to specify the table name parameter in uppercase.

    Note 2: If you use the above view, you will get all unhidden columns, but if you query the view “USER_TAB_COLS” you will get all columns, including hidden columns.

    Another view is “ALL_TAB_COLUMNS” this one is the same as “USER_TAB_COLUMNS” except that the “ALL_TAB_COLUMNS” view has a column called “OWNER” in which you can specify the owner of the table that you want to get its columns list.

    See less
      • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  5. Asked: July 25, 2022In: Oracle EBS Financial

    APP-FND-01388: Cannot Read Value For Profile Option FND_DEVELOPER_MODE In Routine &ROUTINE On Asset Workbench

    Hassan AbdElrahman
    Hassan AbdElrahman Master Oracle ACE Pro Alum ♠ | Oracle Senior ERP Technical Consultant
    Added an answer on July 26, 2022 at 12:28 am

    Error Cause: The profile option FND:Developer Mode is set to Yes Solution: Set the profile option FND:Developer Mode to No If the developer mode is on, this verifies numerous coding standards and ensures that you can see detailed error messages for unexpected exceptions.  It is not recommended to usRead more

    Error Cause:

    The profile option FND:Developer Mode is set to Yes

    Solution:

    Set the profile option FND:Developer Mode to No

    If the developer mode is on, this verifies numerous coding standards and ensures that you can see detailed error messages for unexpected exceptions.  It is not recommended to use developer mode for a testing environment as all
    the code is not compliant to pass the developer mode coding standards.

    As reference from Doc ID 1513711.1

    See less
      • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  6. Asked: July 7, 2022In: Oracle SQL

    Why do we use bulk collect in Oracle

    Hassan AbdElrahman
    Hassan AbdElrahman Master Oracle ACE Pro Alum ♠ | Oracle Senior ERP Technical Consultant
    Added an answer on July 8, 2022 at 8:51 pm

    BULK COLLECT in Oracle PL/SQL: BULK COLLECT in Oracle PL/SQL reduces the round trip between SQL engine and PL/SQL engine and allows SQL engine to fitch a bulk collection of data at once instead of the traditional LOOP statement. We are using the BULK COLLECT clause in the SELECT statement to fitch tRead more

    BULK COLLECT in Oracle PL/SQL:

    BULK COLLECT in Oracle PL/SQL reduces the round trip between SQL engine and PL/SQL engine and allows SQL engine to fitch a bulk collection of data at once instead of the traditional LOOP statement.

    We are using the BULK COLLECT clause in the SELECT statement to fitch the cursor result set in bulk or to populate the records in bulk.

    Since the BULK COLLECT fetches a result set or more than one record, the INTO clause must contain a collection variable like Oracle TYPE.

    Example:

    DECLARE
    CURSOR oraask_dept_details
    IS
    SELECT * FROM departments;

    TYPE l_dept_details_tbl IS TABLE OF departments%ROWTYPE;

    l_dept_details l_dept_details_tbl;
    BEGIN
    OPEN oraask_dept_details;

    LOOP
    FETCH oraask_dept_details BULK COLLECT INTO l_dept_details LIMIT 10;

    EXIT WHEN l_dept_details.count = 0;

    FOR dept_details_rec IN l_dept_details.first .. l_dept_details.last
    LOOP
    dbms_output.put_line ('DEPARTMENT ID:' || l_dept_details (dept_details_rec).department_id || ' - DEPARTMENT NAME:' || l_dept_details (dept_details_rec).department_name);
    END LOOP;
    END LOOP;

    CLOSE oraask_dept_details;
    END;
    /

    Output :

    DEPARTMENT ID:10 - DEPARTMENT NAME:Administration
    DEPARTMENT ID:20 - DEPARTMENT NAME:Marketing
    DEPARTMENT ID:30 - DEPARTMENT NAME:Purchasing
    DEPARTMENT ID:40 - DEPARTMENT NAME:Human Resources
    DEPARTMENT ID:50 - DEPARTMENT NAME:Shipping
    DEPARTMENT ID:60 - DEPARTMENT NAME:IT
    DEPARTMENT ID:70 - DEPARTMENT NAME:Public Relations
    DEPARTMENT ID:80 - DEPARTMENT NAME:Sales
    DEPARTMENT ID:90 - DEPARTMENT NAME:Executive
    DEPARTMENT ID:100 - DEPARTMENT NAME:Finance
    DEPARTMENT ID:110 - DEPARTMENT NAME:Accounting
    DEPARTMENT ID:120 - DEPARTMENT NAME:Treasury
    DEPARTMENT ID:130 - DEPARTMENT NAME:Corporate Tax
    DEPARTMENT ID:140 - DEPARTMENT NAME:Control And Credit
    DEPARTMENT ID:150 - DEPARTMENT NAME:Shareholder Services
    DEPARTMENT ID:160 - DEPARTMENT NAME:Benefits
    DEPARTMENT ID:170 - DEPARTMENT NAME:Manufacturing
    DEPARTMENT ID:180 - DEPARTMENT NAME:Construction
    DEPARTMENT ID:190 - DEPARTMENT NAME:Contracting
    DEPARTMENT ID:200 - DEPARTMENT NAME:Operations
    DEPARTMENT ID:210 - DEPARTMENT NAME:IT Support
    DEPARTMENT ID:220 - DEPARTMENT NAME:NOC
    DEPARTMENT ID:230 - DEPARTMENT NAME:IT Helpdesk
    DEPARTMENT ID:240 - DEPARTMENT NAME:Government Sales
    DEPARTMENT ID:250 - DEPARTMENT NAME:Retail Sales
    DEPARTMENT ID:260 - DEPARTMENT NAME:Recruiting
    DEPARTMENT ID:270 - DEPARTMENT NAME:Payroll

    In the above script, we used a LIMIT clause to limit fetching the bulk of records to 10 records at a time. This clause is very handful when dealing with a large number of records to avoid running out of memory because the collection type we use is expanding as more records are inserted into it.

    Do you find it helpful? Share to spread the knowledge

    See less
      • 1
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  7. Asked: July 6, 2022In: Oracle SQL

    Search all columns of the database oracle SQL

    Hassan AbdElrahman
    Hassan AbdElrahman Master Oracle ACE Pro Alum ♠ | Oracle Senior ERP Technical Consultant
    Added an answer on July 7, 2022 at 12:14 am
    This answer was edited.

    To find The tables which contain a particular column name, you can use the following query: SELECT owner, table_name, column_name FROM all_tab_columns WHERE column_name LIKE '%TRANSACTION_QUANTITY%'; The output of this select statement would be: You can get the result from a specific owner schema liRead more

    To find The tables which contain a particular column name, you can use the following query:

    SELECT owner, table_name, column_name 
    FROM all_tab_columns
    WHERE column_name LIKE '%TRANSACTION_QUANTITY%';

    The output of this select statement would be:

    query result

    You can get the result from a specific owner schema like ‘INV’ and so on. 

    You may also be interested in checking my answer to other related questions from here Get Column Name from Table in Oracle

    See less
      • 1
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  8. Asked: September 18, 2021In: Oracle SQL

    ORA-01417: a table may be outer joined to at most one other table

    Hassan AbdElrahman
    Hassan AbdElrahman Master Oracle ACE Pro Alum ♠ | Oracle Senior ERP Technical Consultant
    Added an answer on June 17, 2022 at 3:20 am

    Before Oracle database release 12c, the error ORA-01417 is raised when you have more than one table on the left-hand side of an outer join. To overcome this limit, we can convert the join to an ANSI syntax, e.g.: SELECT * FROM EMPLOYEES E LEFT JOIN DEPARTMENTS D ON (D.DEPARTMENT_ID = E.DEPARTMENT_IDRead more

    Before Oracle database release 12c, the error ORA-01417 is raised when you have more than one table on the left-hand side of an outer join. To overcome this limit, we can convert the join to an ANSI syntax, e.g.:

    SELECT *
    FROM EMPLOYEES E
    LEFT JOIN DEPARTMENTS D ON (D.DEPARTMENT_ID = E.DEPARTMENT_ID)
    LEFT JOIN LOCATIONS L ON (L.LOCATION_ID = D.LOCATION_ID);

    From the 12c version, Oracle has supported having multiple tables on the left-hand side of the join.

    See less
      • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  9. Asked: June 2, 2022In: Oracle Application Framework - OAF

    Create Item not showing up in Personalize Table

    Hassan AbdElrahman
    Hassan AbdElrahman Master Oracle ACE Pro Alum ♠ | Oracle Senior ERP Technical Consultant
    Added an answer on June 8, 2022 at 10:03 pm

    There are two columns already that may fits your need. START_DATE_ACTIVE Date when the classification becomes active for the supplier END_DATE_ACTIVE Date when the classification becomes inactive for the supplier However, if you need to capture more additional informations in any standard tables, OrRead more

    There are two columns already that may fits your need.

    START_DATE_ACTIVE

    Date when the classification becomes active for the supplier

    END_DATE_ACTIVE

    Date when the classification becomes inactive for the supplier

    However, if you need to capture more additional informations in any standard tables, Oracle recommended to capture those additional information through out a DFF attributes. In this table you have 5 addition attributes to use them. Therefore, Oracle not recommended to add any additional physical columns on any standard table.

    See less
      • 1
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  10. Asked: March 6, 2022In: Oracle SQL

    Oracle SQL Query to Find User Permissions

    Hassan AbdElrahman
    Hassan AbdElrahman Master Oracle ACE Pro Alum ♠ | Oracle Senior ERP Technical Consultant
    Added an answer on March 9, 2022 at 11:07 pm

    To check current user permission in oracle execute the following queries: First Query: SELECT * FROM USER_SYS_PRIVS WHERE USERNAME = USER; The result of this query would be: USERNAME PRIVILEGE ADMIN_OPTION HR CREATE VIEW NO HR UNLIMITED TABLESPACE NO HR CREATE DATABASE LINK NO HR CREATE SEQUENCE NORead more

    To check current user permission in oracle execute the following queries:

    First Query:

    SELECT *
    FROM USER_SYS_PRIVS
    WHERE USERNAME = USER;

    The result of this query would be:

    USERNAME PRIVILEGE ADMIN_OPTION
    HR CREATE VIEW NO
    HR UNLIMITED TABLESPACE NO
    HR CREATE DATABASE LINK NO
    HR CREATE SEQUENCE NO
    HR CREATE SESSION NO
    HR ALTER SESSION NO
    HR CREATE SYNONYM NO

    Second Query:

    SELECT *
    FROM USER_TAB_PRIVS
    WHERE GRANTEE = USER;
    
    The result of this query would be:
    GRANTEE OWNER TABLE_NAME GRANTOR PRIVILEGE GRANTABLE HIERARCHY
    HR SYS DBMS_STATS SYS EXECUTE NO NO

    Third Query:

    SELECT *
    FROM USER_ROLE_PRIVS
    WHERE USERNAME = USER;
    
    The result of this query would be:
    USERNAME GRANTED_ROLE ADMIN_OPTION DEFAULT_ROLE OS_GRANTED
    HR RESOURCE NO YES NO

    hope this help.

    See less
      • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
1 2 3 … 6

Sidebar

Adv 250x250

Explore

  • Categories
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Dev Tools
    • Online Compiler
    • Base64 Converter
    • Oraask XML Formatter
    • Oraask JSON Formatter
  • Wiki
    • SQL Tutorials
    • Java Tutorials
    • Python Tutorials
    • JavaScript Tutorials

Footer

Oraask

About

Oraask is a website for developers and software engineers who want to learn new skills, share their knowledge, and solve their coding problems. Oraask provides free content on various programming languages and topics, such as Oracle, Python, Java, etc. Oraask also allows users to ask questions and get answers from other members of the community.

About Us

  • About Us
  • Contact Us

Legal Stuff

  • Privacy Policy
  • Terms & Conditions

Follow

Oraask is licensed under CC BY-NC-SA 4.0Oraask CopyrightOraask CopyrightOraask CopyrightOraask Copyright

© 2019 Oraask. All Rights Reserved
With Love by Oraask.