Common Errors During Oracle usage and development

Source: Internet
Author: User

Common Errors During Oracle usage and development

(1) scripts generated by powerdesigner cannot be run directly;

Otherwise error: ORA-00942: Table or attempt not to exist

Http://www.cnblogs.com/chinafine/articles/1847011.html

(2) ORA-00904 invalid identifier
This error occurs because the field name is incorrect, or a comma is added when the last field is created during table creation.

Http://heisetoufa.iteye.com/blog/344306

(3) Invalid Number or ORA-01722
Cause Analysis of ORA-01722: Invalid Number

Http://271788203.iteye.com/blog/653945

(4) ORA-00001: violation of unique constraints

(5) ORA-12526: TNS: listeners: all applicable routines are in restricted mode (this error occurs when you connect to the database)

This is because the database is switched to the restricted mode. The related command is:
SQL> conn sys/zkl @ zkl as sysdba
SQL> alter system enable restricted session;

The solution is to change it to the normal mode (that is, exit the restricted mode)
[Oracle @ gd47 Oracle] $ export oracle_sid = zkl
[Oracle @ gd47 Oracle] $ sqlplus/nolog
SQL> Conn/As sysdba
SQL> alter system disable restricted session

(6) An error occurred while modifying the server Character Set: ORA-12712: new character set must be a superset of old Character Set

This is because the superset of the old character set is required by default when the character set of Oracle Database is changed. Otherwise, this error occurs. solution:

Alter database character set internal_use zhs16gbk;

(7) after installing Oracle, the following error occurs when using sqlplus, LSNRCTL, and so on:
[Oracle @ vm01 Oracle] $ LSNRCTL
LSNRCTL: Error while loading shared libraries:/opt/oracle_11g_r2_x64/product/11.2.0.1.0/db_1/lib/libclntsh. so.11.1: cannot restore segment prot after reloc: Permission denied

I checked it online because of SELinux problems. The SELinux settings are too strict. The solution is to modify the/etc/SELinux/config file under the root user,
Change SELinux = enforcing to SELinux = disabled. Save and close. Restart the machine.
You can also temporarily disable/usr/sbin/setenforce 0.
Reference: http://blog.csdn.net/taolinke/article/details/6629462

(8) Non-oracle users execute the occi program, the error exception: code-1804, message-error while trying to retrieve text for error ORA-01804
Solution:
When executing the occi program, you must set the ORACLE_HOME environment variable in advance and run it as follows:
Export oracle_base =/sdb1/Oracle/11gr2_database_x64
Export ORACLE_HOME = $ oracle_base/product/11.2.0.1.0/db_1

./Test

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.