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

isouravghosh

Juniorisouravghosh
Ask isouravghosh
118 Visits
3 Followers
0 Questions
Home/ isouravghosh/Followers Answers
  • About
  • Questions
  • Answers
  • Best Answers
  • Posts
  • Polls
  • Asked Questions
  • Followed
  • Favorites
  • Comments
  • Followers Questions
  • Followers Answers
  • Followers Posts
  • Followers Comments
  1. Asked: March 25, 2017In: JavaScript

    How do i redirect user from page to another in JavaScript ?

    Hassan AbdElrahman
    Best Answer
    Hassan AbdElrahman Master Oracle ACE Pro Alum ♠ | Oracle Senior ERP Technical Consultant
    Added an answer on July 12, 2017 at 8:57 pm

    Hi Saly, Actually you can achieve this by simulate HTTP redirect by using one of the following : // similar behavior as an HTTP redirect [code]window.location.replace("http://www.oraask.com");[/code] or // similar behavior as clicking on a link [code]window.location.href("http://www.oraask.com");[/cRead more

    Hi Saly,

    Actually you can achieve this by simulate HTTP redirect by using one of the following :

    // similar behavior as an HTTP redirect

    [code]window.location.replace(“http://www.oraask.com”);[/code]

    or

    // similar behavior as clicking on a link

    [code]window.location.href(“http://www.oraask.com”);[/code]

    at the end this your choice but for my suggestion i prefer using  (window.location.replace) because this doesn’t keep originate page in the session history.

    hope this help.

     

    See less
      • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  2. Asked: March 24, 2017In: Oracle SQL

    How to add a new column to a table only if not exist?

    Hassan AbdElrahman
    Hassan AbdElrahman Master Oracle ACE Pro Alum ♠ | Oracle Senior ERP Technical Consultant
    Added an answer on July 12, 2017 at 7:12 pm

    You can find the following view to access all metadata about the columns :user_tab_cols; -- For all tables owned by the userall_tab_cols ; -- For all tables accessible to the userdba_tab_cols; -- For all tables in the Database.and lets consider you want to add new column only if doesn't exists you cRead more

    You can find the following view to access all metadata about the columns :

    user_tab_cols; — For all tables owned by the user

    all_tab_cols ; — For all tables accessible to the user

    dba_tab_cols; — For all tables in the Database.

    and lets consider you want to add new column only if doesn’t exists you can use this pl/sql to check and add new column

    [code]DECLARE
    v_column_exists number := 0;
    BEGIN
    Select count(*)
    into v_column_exists
    from user_tab_cols
    where column_name = ‘ADD_COLUMN’
    and table_name = ‘departments’;

    if (v_column_exists = 0) then
    execute immediate ‘alter table departments add (ADD_COLUMN NUMBER)’;
    end if;
    end;[/code]

    hope this help.

    See less
      • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  3. Asked: April 3, 2017In: PL/SQL

    ORA-06550: line , column : PLS-00201: identifier must be declared

    Hassan AbdElrahman
    Best Answer
    Hassan AbdElrahman Master Oracle ACE Pro Alum ♠ | Oracle Senior ERP Technical Consultant
    Added an answer on July 12, 2017 at 9:26 pm
    This answer was edited.

    ORA-06550: error causes are:  You tried to execute an invalid block of PLSQL code (like a stored procedure or function), but a compilation error occurred. in your example, you selected a value inside the variable (v_last) that is not declared in your block. So to correct your block of code, you canRead more

    ORA-06550: error causes are:  You tried to execute an invalid block of PLSQL code (like a stored procedure or function), but a compilation error occurred.

    in your example, you selected a value inside the variable (v_last) that is not declared in your block.

    So to correct your block of code, you can rewrite it like this:

    DECLARE
    V_LAST EMPLOYEES.LAST_NAME%TYPE;
    BEGIN
    SELECT LAST_NAME INTO V_LAST FROM EMPLOYEES; dbms_output.put_line(‘v_last is :’ || V_LAST );
    END;
    See less
      • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  4. Asked: May 1, 2017In: Oracle SQL

    How to get a list of all packages, procedures and functions in oracle database ?

    Mmorsy
    Mmorsy Junior mahmoudmorsymm1985@gmail.com
    Added an answer on July 12, 2017 at 5:27 pm

    Hi , use the below query : [code] select * from dba_objects [/code]

    Hi ,

    use the below query :

    [code]

    select * from dba_objects

    [/code]

    See less
      • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  5. Asked: July 11, 2017In: Oracle Database

    How to restore database with until time ?

    Mmorsy
    Mmorsy Junior mahmoudmorsymm1985@gmail.com
    Added an answer on July 11, 2017 at 4:28 pm

    Hello ,You can run this command in the shell session:export NLS_DATE_FORMAT="YYYY-MM-DD:HH24:MI:SS"Thenconnect with RMAN rman target /RUN{ ALLOCATE CHANNEL prmy1 TYPE disk ; set until time= "to_date('14/07/2015 10:34:36','dd/mm/yyyy hh24:mi:ss')"; RESTORE DATABASE; RECOVER DATABASE; RELEASE CHANNELRead more

    Hello ,

    You can run this command in the shell session:

    export NLS_DATE_FORMAT=”YYYY-MM-DD:HH24:MI:SS”

    Then

    connect with RMAN
    rman target /

    RUN
    {
    ALLOCATE CHANNEL prmy1 TYPE disk ;
    set until time= “to_date(’14/07/2015 10:34:36′,’dd/mm/yyyy hh24:mi:ss’)”;
    RESTORE DATABASE;
    RECOVER DATABASE;
    RELEASE CHANNEL prmy1;
    }

    See less
      • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  6. Asked: March 24, 2017In: Oracle Ebs Api’s

    API to create and update Inventory Items in Oracle Apps R12

    Hassan AbdElrahman
    Best Answer
    Hassan AbdElrahman Master Oracle ACE Pro Alum ♠ | Oracle Senior ERP Technical Consultant
    Added an answer on July 11, 2017 at 10:25 am
    This answer was edited.

    Hello @Jone,   you can create or update inventory item by using API (ego_item_pub.process_item) and this an example :   Note : before using both API's be aware that we are not committing the changes. You have to perform explicit commit manually from IDE or set parameter (p_commit = 'T') to commit yoRead more

    Hello Jone,   you can create or update inventory item by using API (ego_item_pub.process_item) and this an example :  

    Note : before using both API’s be aware that we are not committing the changes. You have to perform explicit commit manually from IDE or set parameter (p_commit = ‘T’) to commit your changes.

    1. Create new inventory item using this API example:
    DECLARE
      l_inventory_item_id   NUMBER;
      l_organization_id     NUMBER;
      l_return_status       VARCHAR2 (4000);
      l_msg_data            VARCHAR2 (4000);
      l_msg_count           NUMBER;
      x_message_list        error_handler.error_tbl_type;
    BEGIN
      fnd_global.apps_initialize (user_id => 1318, --> OPERATIONS
                                  resp_id => 50583, --> Inventory, Vision Operations (USA)
                                  resp_appl_id => 401); --> Inventory
    
      ego_item_pub.process_item (p_api_version                  => 1.0
                                ,p_init_msg_list                => 'T' -- (F:- False), (T:- True)
                                ,p_commit                       => 'F' -- (F:- False), (T:- True)
                                ,p_transaction_type             => 'CREATE' -- UPDATE FOR Updating item
                                ,p_segment1                     => 'Oraask_Item01' -- ITEM CODE
                                ,p_description                  => 'Oraask Test Item Description' -- ITEM DESCRIPTION
                                ,p_long_description             => 'Oraask Test Long Item Description' -- ITEM LONG DESCRIPTION
                                ,p_organization_id              => 204 -- Vision Operations
                                ,p_apply_template               => 'ALL'
                                ,p_template_id                  => 2 -- Purchased Item — select * from mtl_item_templates_vl
                                -- P_TEMPLATE_NAME => '@Purchased Item',
                                -- P_ITEM_TYPE => 'P',
                                ,p_inventory_item_status_code   => 'Active'
                                ,p_approval_status              => 'A'
                                ,x_inventory_item_id            => l_inventory_item_id
                                ,x_organization_id              => l_organization_id
                                ,x_return_status                => l_return_status
                                ,x_msg_count                    => l_msg_count
                                ,x_msg_data                     => l_msg_data);
    
      IF l_return_status = fnd_api.g_ret_sts_success THEN
        dbms_output.put_line ('Item is Created Successfully, Inventory Item ID : ' || l_inventory_item_id);
    
      ELSE
        dbms_output.put_line ('Item Creation is Failed');
        error_handler.get_message_list (x_message_list => x_message_list);
    
        FOR i IN 1 .. x_message_list.count
        LOOP
          dbms_output.put_line (x_message_list (i).message_text);
        END LOOP;
    
        ROLLBACK;
      END IF;
    --> EXCEPTIONS HANDLING PART
    EXCEPTION
      WHEN OTHERS THEN
        FOR i IN 1 .. l_msg_count
        LOOP
          dbms_output.put_line (substr (fnd_msg_pub.get (p_encoded => fnd_api.g_false), 1, 255));
          dbms_output.put_line ('message is: ' || l_msg_data);
        END LOOP;
    END;

     

    • Update existing inventory item using this API example:
    DECLARE
      l_inventory_item_id   NUMBER;
      l_organization_id     NUMBER;
      l_return_status       VARCHAR2 (4000);
      l_msg_data            VARCHAR2 (4000);
      l_msg_count           NUMBER;
      x_message_list        error_handler.error_tbl_type;
    BEGIN
      fnd_global.apps_initialize (user_id => 1318, --> OPERATIONS
                                  resp_id => 50583, --> Inventory, Vision Operations (USA)
                                  resp_appl_id => 401); --> Inventory
     
      ego_item_pub.process_item (p_api_version                  => 1.0
                                ,p_init_msg_list                => 'T' -- (F:- False), (T:- True)
                                ,p_commit                       => 'F' -- (F:- False), (T:- True)
                                ,p_transaction_type             => 'UPDATE' -- UPDATE FOR Updating item
                                ,p_Inventory_Item_Id            => 53899
                                ,p_description                  => 'Oraask test description' -- ITEM DESCRIPTION
                                ,p_organization_id              => 204 -- Vision Operations
                                ,x_inventory_item_id            => l_inventory_item_id
                                ,x_organization_id              => l_organization_id
                                ,x_return_status                => l_return_status
                                ,x_msg_count                    => l_msg_count
                                ,x_msg_data                     => l_msg_data);
     
      IF l_return_status = fnd_api.g_ret_sts_success THEN
        dbms_output.put_line ('Inventory Item has been updated Successfully, Inventory Item ID : ' || l_inventory_item_id);
    
      ELSE
        dbms_output.put_line ('Update inventory item is Failed');
        error_handler.get_message_list (x_message_list => x_message_list);
     
        FOR i IN 1 .. x_message_list.count
        LOOP
          dbms_output.put_line (x_message_list (i).message_text);
        END LOOP;
     
        ROLLBACK;
      END IF;
    --> EXCEPTIONS HANDLING PART
    EXCEPTION
      WHEN OTHERS THEN
        FOR i IN 1 .. l_msg_count
        LOOP
          dbms_output.put_line (substr (fnd_msg_pub.get (p_encoded => fnd_api.g_false), 1, 255));
          dbms_output.put_line ('message is: ' || l_msg_data);
        END LOOP;
    END;
    

    — By executing above code we have updated item description to be “Oraask test description” for inventory item id “53899”

    Hopefully, this code snippet helps you 🙂

    See less
      • 7
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  7. Asked: June 10, 2017In: PL/SQL

    How to check and test read/write permissions of Oracle directory?

    Mmorsy
    Mmorsy Junior mahmoudmorsymm1985@gmail.com
    Added an answer on July 9, 2017 at 6:28 pm

    Check the below query :SELECT * FROM all_tab_privs WHERE table_name = 'your_directory';

    Check the below query :

    SELECT * FROM all_tab_privs WHERE table_name = ‘your_directory’;

    See less
      • -1
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  8. Asked: April 30, 2017In: Oracle E-Business Suite

    What is FNDLOAD command to move Value Sets from one instance to another ?

    Hassan AbdElrahman
    Hassan AbdElrahman Master Oracle ACE Pro Alum ♠ | Oracle Senior ERP Technical Consultant
    Added an answer on May 1, 2017 at 6:35 pm
    This answer was edited.

    Hello Matheo, You can use this command to download and upload value sets : FNDLOAD to Download Valueset: $FND_TOP/bin/FNDLOAD username/password 0 Y DOWNLOAD $FND_TOP/patch/115/import/afffload.lct XX_CUSTOM_VS.ldt VALUE_SET FLEX_VALUE_SET_NAME="XX Value Set Name" FNDLOAD to Upload Valueset: $FND_TOP/Read more

    Hello Matheo,

    You can use this command to download and upload value sets :

    FNDLOAD to Download Valueset:

    $FND_TOP/bin/FNDLOAD username/password 0 Y DOWNLOAD $FND_TOP/patch/115/import/afffload.lct XX_CUSTOM_VS.ldt VALUE_SET FLEX_VALUE_SET_NAME="XX Value Set Name"

    FNDLOAD to Upload Valueset:

    $FND_TOP/bin/FNDLOAD username/password 0 Y UPLOAD $FND_TOP/patch/115/import/afffload.lct XX_CUSTOM_VS.ldt - WARNING=YES UPLOAD_MODE=REPLACE CUSTOM_MODE=FORCE
    See less
      • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  9. Asked: April 8, 2017In: Oracle Forms

    Repeat same previous record or item in oracle forms ?

    Hassan AbdElrahman
    Hassan AbdElrahman Master Oracle ACE Pro Alum ♠ | Oracle Senior ERP Technical Consultant
    Added an answer on April 21, 2017 at 7:32 pm

    You can use DUPLICATE_RECORD built-in

    You can use DUPLICATE_RECORD built-in

    See less
      • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  10. Asked: April 8, 2017In: Oracle Reports

    How to show a message in a report at runtime?

    Hassan AbdElrahman
    Best Answer
    Hassan AbdElrahman Master Oracle ACE Pro Alum ♠ | Oracle Senior ERP Technical Consultant
    Added an answer on April 11, 2017 at 5:10 pm
    This answer was edited.

    hi Albert, You can display a message in Oracle report builder by using the standard built-in srw.message. The basic syntax for using this package is: srw.message(error_no,'YOUR MESSAGE'); the error no will appear along with the message text. and here is the sample to do this in a particular functionRead more

    hi Albert,

    You can display a message in Oracle report builder by using the standard built-in srw.message.

    The basic syntax for using this package is:

    srw.message(error_no,'YOUR MESSAGE');

    the error no will appear along with the message text. and here is the sample to do this in a particular function

    FUNCTION chck_sal RETURN BOOLEAN IS
    BEGIN
      IF :sal < 0 THEN SRW.MESSAGE(
        100,
        'There is employee that take negative salary.'
      );
    RAISE SRW.PROGRAM_ABORT;
    ELSE :bonus := :sal * .01;
    END IF;
    RETURN(TRUE);
    END;
    See less
      • 1
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
1 … 14 15 16 17 18 19

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.