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

Database

This Category lists all questions related to all different kind of databases

Share
  • Facebook
0 Followers
0 Answers
150 Questions
Home/Database/Page 3
  • Recent Questions
  • Answers
  • No Answers
  1. Asked: January 31, 2021In: Oracle SQL

    ORA-29275 partial multibyte character

    Hassan AbdElrahman
    Best Answer
    Hassan AbdElrahman Master Oracle ACE Pro Alum ♠ | Oracle Senior ERP Technical Consultant
    Added an answer on February 1, 2021 at 8:32 pm
    This answer was edited.

    Hello Rain , Oracle Descritption for this error is given below: ORA-29275: partial multibyte character Cause: The requested read operation could not complete because a partial multibyte character was found at the end of the input. Action: Ensure that the complete multibyte character is sent from theRead more

    Hello Rain ,

    Oracle Descritption for this error is given below:
    ORA-29275:
    partial multibyte character
    Cause: The requested read operation could not complete because a partial multibyte character was found at the end of the input.
    Action: Ensure that the complete multibyte character is sent from the remote server and retry the operation. Or read the partial multibyte character as RAW.

    Mainly reason for this type or ora error is that there is a junk/invisible or special character available ,but unfortunately the cause and action that oracle give it to us is not that much descriptive, so to investigate more and figure out the problem and fix it let’s try this:

    First try to select columns individually like below example:

    SELECT COL1 FROM TABLENAME;
    SELECT COL2 FROM TABLENAME;

    until reach to the column that causing your problem and raise this ORA error.

    so far so good for now that we identified the column that has junk/invisible character we can fetch the column data and overcome this issue by using CONVERT function in oracle like below example :

    SELECT CONVERT(COL1, ‘US7ASCII’, ‘WE8ISO8859P1’) FROM TABLENAME;

    Hope that this answer was helpful. 

    See less
      • 1
    • 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: April 13, 2017In: Oracle SQL

    Using between on sysdate instead of TRUNC

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

    Use TO_DATE Function. SELECT sum(column3) from table1 where column1 = ‘XXXXXAA12’ and column2 between to_date (<yor val>,<your format>) and to_date (<yor val>,<your format>);

    Use TO_DATE Function.

    SELECT sum(column3)
    from table1
    where column1 = ‘XXXXXAA12’
    and column2 between to_date (<yor val>,<your format>) and to_date (<yor val>,<your format>);

    See less
      • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  4. Asked: July 14, 2017In: Oracle SQL

    How to order by number inside of character for a query like ’25 AB’ ,’30 MT’ ?

    Ahmed_Shmes
    Ahmed_Shmes Junior ahmedshmes21@gmail.com
    Added an answer on April 3, 2019 at 6:32 pm
    This answer was edited.

    Use REGEXP_SUBSTR  Syntax : REGEXP_SUBSTR( string, pattern [, start_position [, nth_appearance [, match_parameter [, sub_expression ] ] ] ] ) code : SELECT t.*, REGEXP_SUBSTR (COL1, '(d+)') as sort_by_col FROM test_table t Order by sort_by_col ; Result : application2 25 AB 30 AB 3125 50 50000 AS740TRead more

    Use REGEXP_SUBSTR 

    Syntax :
    REGEXP_SUBSTR( string, pattern [, start_position [, nth_appearance [, match_parameter [, sub_expression ] ] ] ] )
    code :
    SELECT t.*, REGEXP_SUBSTR (COL1, '(d+)') as sort_by_col
      FROM test_table t
    Order by sort_by_col ;
    Result :
    application2
    25 AB
    30 AB
    3125
    50
    50000
    AS740TRN
    QAS897ZCS
    oraask
    test
    
    See less
      • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  5. 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
  6. 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
  7. Asked: March 4, 2019In: Oracle SQL

    ORA-12705 invalid or unknown NLS parameter value specified error when connect to oracle 11g from a php application

    Googler
    Googler Explorer
    Added an answer on March 4, 2019 at 10:40 pm

    Hello Waqas, ORA-12705 invalid or unknown NLS parameter value specified Cause: There are two possible causes: Either an attempt was made to issue an ALTER SESSION statement with an invalid NLS parameter or value; or the NLS_LANG environment variable contains an invalid language, territory, or characRead more

    Hello Waqas,

    ORA-12705 invalid or unknown NLS parameter value specified

    Cause: There are two possible causes: Either an attempt was made to issue an ALTER SESSION statement with an invalid NLS parameter or value; or the NLS_LANG environment variable contains an invalid language, territory, or character set.

    Action: Check the syntax of the ALTER SESSION command and the NLS parameter, correct the syntax and retry the statement, or specify correct values in the NLS_LANG environment variable. For more information about the syntax of the ALTER SESSION command, see Oracle8i SQL Reference.

    See less
      • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  8. Asked: October 21, 2018In: Oracle SQL

    How to create synonym in oracle ?

    Hassan AbdElrahman
    Best Answer
    Hassan AbdElrahman Master Oracle ACE Pro Alum ♠ | Oracle Senior ERP Technical Consultant
    Added an answer on October 23, 2018 at 5:19 pm

    Hello Amira, synonyms is an alternative name for objects such as tables, views, sequences, stored procedures, and other database objects. You generally use synonyms when you are granting access to an object from another schema and you don't want the users to have to worry about knowing which schemaRead more

    Hello Amira,

    synonyms is an alternative name for objects such as tables, views, sequences, stored procedures, and other database objects.

    You generally use synonyms when you are granting access to an object from another schema and you don’t want the users to have to worry about knowing which schema owns the object.

    and here is the syntax to create synonym

    CREATE [OR REPLACE] [PUBLIC] SYNONYM [schema .] synonym_name
    FOR [schema .] object_name [@ dblink];

    Example:

    CREATE PUBLIC SYNONYM emps
    FOR app.employees;

    Hope this help.

    See less
      • 1
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  9. Asked: October 14, 2018In: Oracle SQL

    Is there SQL Function to add space inside string value?

    Hassan AbdElrahman
    Best Answer
    Hassan AbdElrahman Master Oracle ACE Pro Alum ♠ | Oracle Senior ERP Technical Consultant
    Added an answer on October 14, 2018 at 11:56 pm
    This answer was edited.

    You can use RPAD or LPAD functions with spaces select 'Ora' || rpad(' ',5,' ') || 'Ask' from dual;  

    You can use RPAD or LPAD functions with spaces

    select 'Ora' || rpad(' ',5,' ') || 'Ask'
    from dual;

     

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

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

    Hassan AbdElrahman
    Best Answer
    Hassan AbdElrahman Master Oracle ACE Pro Alum ♠ | Oracle Senior ERP Technical Consultant
    Added an answer on September 19, 2018 at 8:33 am
    This answer was edited.

    You can use the UTL_FILE package. For example, this will verify that you can create a new file named your_test_file_name.txt in the directory and write data to it [code]DECLAREl_file utl_file.file_type;BEGINl_file := utl_file.fopen (‘UR_DIR’, ‘some_new_file_name.txt’, ‘W’);utl_file.put_line (l_file,Read more

    You can use the UTL_FILE package. For example, this will verify that you can create a new file named your_test_file_name.txt in the directory and write data to it

    [code]
    DECLARE
    l_file utl_file.file_type;
    BEGIN
    l_file := utl_file.fopen (‘UR_DIR’, ‘some_new_file_name.txt’, ‘W’);
    utl_file.put_line (l_file, ‘Content of the file’);
    utl_file.fclose (l_file);
    EXCEPTION
    WHEN utl_file.invalid_path THEN
    dbms_output.put_line (‘File location is invalid’);
    END;
    [/code]

    Also you can use UTL_FILE.FGETATTR to check if your file is exist and readable or not for more info about UTL_FILE click here.

    If you are looking for How to grant read and write on directory in oracle you can check my answer here

    Regards.

    See less
      • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
1 2 3 4 5 … 9

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.