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

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

PL/SQL

This Category lists all questions related to PL/SQL programming language

Share
  • Facebook
5 Followers
30 Answers
36 Questions
Home/Database/PL/SQL
  • Recent Questions
  • Answers
  • No Answers
  1. Asked: August 9, 2021In: PL/SQL

    HTTP request failed ORA-29270: too many open HTTP requests

    Hassan AbdElrahman
    Hassan AbdElrahman Master Oracle ACE Pro Alum ♠ | Oracle Senior ERP Technical Consultant
    Added an answer on June 25, 2022 at 2:09 am

    This error is thrown because there is a limit of 5 open HTTP connections per session in the Oracle database server. Usually, the application intends to open one connection at a time. However, this error might occur due to the application not closing the connection properly after being finished. So,Read more

    This error is thrown because there is a limit of 5 open HTTP connections per session in the Oracle database server.

    Usually, the application intends to open one connection at a time. However, this error might occur due to the application not closing the connection properly after being finished.

    So, it’s recommended to review your code and to make sure you are ending the response after you have finished as well as in the exception part also, ending the request like the below code.

    Catch too many requests exception to handle it by closing the request and response:

    EXCEPTION
    WHEN UTL_HTTP.TOO_MANY_REQUESTS THEN
    UTL_HTTP.END_REQUEST(req);
    UTL_HTTP.END_RESPONSE(resp);

    Ending the request at the end of your program

    UTL_HTTP.END_REQUEST(req);
    See less
      • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  2. Asked: September 3, 2019In: PL/SQL

    What is the difference between searched case and simple case in oracle pl/sql?

    praveen
    praveen
    Added an answer on February 3, 2020 at 2:21 pm

    1 difference I can c is, when using    case <expression> when ….(i.e simple case), u'll do an exact comparison (like a=b).  e.g case <expression> when value1 then... when value2 then...etc (i.e ur checking if expression = value1 or expression = value2 & so on) for case when <expreRead more

    1 difference I can c is, when using    case <expression> when ….(i.e simple case), u’ll do an exact comparison (like a=b).  e.g case <expression> when value1 then… when value2 then…etc (i.e ur checking if expression = value1 or expression = value2 & so on)

    for case when <expression> then .. (i.e searched case), u’ll do at least 2 comparisons i.e >= x and <=y case when variable >= x & <=y then.. when variable between a and b then…

    there may b other differences.. eager 2 know

     

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

    How to convert text with comma separated to array in pl/sql ?

    Ahmed_Shmes
    Ahmed_Shmes Junior ahmedshmes21@gmail.com
    Added an answer on April 3, 2019 at 5:44 pm

    Use REGEXP_SUBSTR  to Extract desired info REGEXP_SUBSTR( string, pattern [, start_position [, nth_appearance [, match_parameter [, sub_expression ] ] ] ] ) And CONNECT BY  to loop over the string searching for the "," and use it as a delimiter. SELECT REGEXP_SUBSTR ('text1, text2, text3', '[^,]+',Read more

    Use REGEXP_SUBSTR  to Extract desired info

    REGEXP_SUBSTR( string, pattern [, start_position [, nth_appearance [, match_parameter [, sub_expression ] ] ] ] )

    And CONNECT BY  to loop over the string searching for the “,” and use it as a delimiter.

    SELECT REGEXP_SUBSTR (‘text1, text2, text3’,
    ‘[^,]+’,
    1,
    LEVEL),LEVEL
    FROM DUAL
    CONNECT BY REGEXP_SUBSTR (‘text1, text2, text3’,
    ‘[^,]+’,
    1,
    LEVEL)
    IS NOT NULL;

    See less
      • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  4. Asked: March 18, 2019In: PL/SQL

    Which symbol is used for concatenation? in plsql

    Hassan AbdElrahman
    Hassan AbdElrahman Master Oracle ACE Pro Alum ♠ | Oracle Senior ERP Technical Consultant
    Added an answer on March 18, 2019 at 12:05 am

    its very simple you can use || symbol to concatenate two string or using concat function and here you can find full explanation with examples about how to use oracle || - oracle concatenation in knowledge base section. have a nice day.

    its very simple you can use || symbol to concatenate two string or using concat function and here you can find full explanation with examples about how to use oracle || – oracle concatenation in knowledge base section.

    have a nice day.

    See less
      • 2
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  5. Asked: April 30, 2017In: PL/SQL

    What is the difference between binary_integer and pls_integer in pl/sql?

    Googler
    Googler Explorer
    Added an answer on September 19, 2018 at 8:10 am

    Hi, binary_integer and pls_integer both are same. Both are PL/SQL datatypes with range -2,147,648,467 to 2,147,648,467. Compared to integer and binary_integer pls_integer very fast in excution. Because pls_intger operates on machine arithmetic and binary_integer operes on library arithmetic. pls_intRead more

    Hi,

    binary_integer and pls_integer both are same. Both are PL/SQL datatypes with range -2,147,648,467 to 2,147,648,467.

    Compared to integer and binary_integer pls_integer very fast in excution. Because pls_intger operates on machine arithmetic and binary_integer operes on library arithmetic.

    pls_integer comes from oracle10g.

    binary_integer allows indexing integer for assocative arrays prior to oracle9i.

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

    How to handle a unique constraint exceptions in PL/SQL code?

    Hassan AbdElrahman
    Hassan AbdElrahman Master Oracle ACE Pro Alum ♠ | Oracle Senior ERP Technical Consultant
    Added an answer on April 1, 2018 at 8:50 pm

    hello, you can use exception : [code] EXCEPTION WHEN DUP_VAL_ON_INDEX [/code]

    hello,

    you can use exception :

    [code]
    EXCEPTION
    WHEN DUP_VAL_ON_INDEX
    [/code]

    See less
      • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  7. Asked: July 19, 2017In: PL/SQL

    “What is the difference between Views and Materialized Views in Oracle? “

    Mmorsy
    Mmorsy Junior mahmoudmorsymm1985@gmail.com
    Added an answer on July 25, 2017 at 11:44 am

    Hello Nall, The Materialized views are disk based and are updated periodically based upon the query definition. The Views are virtual only and run the query definition each time they are accessed. Regards, Mahmoud Morsy.

    Hello Nall,

    The Materialized views are disk based and are updated periodically based upon the query definition.
    The Views are virtual only and run the query definition each time they are accessed.

    Regards,

    Mahmoud Morsy.

    See less
      • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  8. Asked: June 19, 2016In: PL/SQL

    ORA-29280: utl_file.fopen invalid directory path with directory

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

    utl_file.fopen takes the name of a directory, not the path. For example: (you may need to login as SYS to execute these) [code]Windows: CREATE DIRECTORY CUST_DIR AS 'C:'; Linux CREATE DIRECTORY CUST_DIR AS '/usr/tmp'; GRANT READ ON DIRECTORY CUST_DIR TO SCOTT;[/code] Then, you can refer to it in theRead more

    utl_file.fopen takes the name of a directory, not the path. For example:

    (you may need to login as SYS to execute these)

    [code]Windows:
    CREATE DIRECTORY CUST_DIR AS ‘C:’;

    Linux
    CREATE DIRECTORY CUST_DIR AS ‘/usr/tmp’;

    GRANT READ ON DIRECTORY CUST_DIR TO SCOTT;[/code]

    Then, you can refer to it in the call to fopen:

    [code]
    UTL_FILE.FOPEN(‘CUST_DIR’, ‘oraask_test.txt’, ‘W’);
    [/code]

     

    hope this help.

    See less
      • 1
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  9. Asked: June 18, 2016In: PL/SQL

    Error: PLS-00103: Encountered the symbol when trying to compile

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

    You need to change ELSEIF to ELSIF . your code would be like this : [code]declare CURSOR abc IS select * from all_Objects; begin for rec in abc loop if rec.object_id is null then null; elsif rec.owner is null then null; end if; end loop; end;[/code]

    You need to change ELSEIF to ELSIF .

    your code would be like this :

    [code]declare
    CURSOR abc IS select * from all_Objects;
    begin
    for rec in abc
    loop
    if rec.object_id is null then
    null;
    elsif rec.owner is null then
    null;
    end if;
    end loop;
    end;[/code]

    See less
      • 2
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  10. Asked: April 1, 2017In: PL/SQL

    What is the difference between procedure and function in PL/SQL?

    Hassan AbdElrahman
    Hassan AbdElrahman Master Oracle ACE Pro Alum ♠ | Oracle Senior ERP Technical Consultant
    Added an answer on July 13, 2017 at 9:53 am

    1. Procedure may or may not return value where as function should return one value. 2. Function can be called from SQL statement where as procedure can't be called from the SQL statement. 3. Function are normally used for computation where as procedure are normally used for executing business logic.Read more

    1. Procedure may or may not return value where as function should return one value.

    2. Function can be called from SQL statement where as procedure can’t be called from the SQL statement.

    3. Function are normally used for computation where as procedure are normally used for executing business logic.

    4. Stored procedure is pre-compiled execution plan where as function are not.

    5. We can call function within procedure but we can not call procedure within function.

    6. A FUNCTION must be part of an executable statement, as it cannot be executed independently, whereas procedure represents an independent executable statement.

    and for example of both syntax of function and procedure :

    [code]CREATE OR REPLACE PROCEDURE test_proc
    (p_id IN VARCHAR2) as begin … end

    CREATE OR REPLACE FUNCTION test_func
    (p_id IN VARCHAR2) return varchar2 as begin … end[/code]

     

    hope this help.

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

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.