Oracle case study ORA-01722

Source: Internet
Author: User
1.1.ORA-01722 Date: 2014-06-0514: 09 environment: test environment [scenario description] run SQL @? Rdbmsadmincatupgrd. An error occurred while running the SQL script. [Error message] DOC ################################### #################################### DOCT

1.1.ORA-01722 Date: Environment: test environment [scenario description] run SQL @? /Rdbms/admin/catupgrd. SQL script reports an error and exits. [Error message] DOC ################################### #################################### DOCT

1.1. ORA-01722

Date:

Environment: test environment

[Scenario description]

During Database Upgrade, execute SQL> @? /Rdbms/admin/catupgrd. SQL script reports an error and exits.

[Error message]

DOC> ###################################### #################################

DOC> The following statement will cause an "ORA-01722: invalidnumber"

DOC> error if the Oracle Database Vault option is TRUE. Upgrades cannot

DOC> be run with the Oracle Database Vault option set to TRUE since

DOC> as sysdba connections are restricted.

DOC>

DOC> Perform "alter system checkpoint" prior to "SHUTDOWNABORT", relink

DOC> the server without the Database Vault option, and restart the server

DOC> using UPGRADE mode.

DOC>

DOC>

DOC> ###################################### #################################

DOC> ###################################### #################################

DOC> #

SELECT TO_NUMBER ('data _ VAULT_OPTION_ON ') FROM v $ option

*

ERROR at line 1:

ORA-01722: invalid number.

[Error cause]

The Database instance is configured with the Oracle Database Vault function.

[Solution]

After the Oracle Database Vault function is disabled, perform the upgrade operation again.

Disable Oracle Database Vault:

# Check whether the OracleDatabase Vault function is Enabled:

SQL> col parameter for a30

SQL> col value for a20

SQL> SELECT * FROM V $ OPTION WHEREPARAMETER = 'oracle Database Vault ';

PARAMETER VALUE

--------------------------------------------------

Oracle Database Vault TRUE

# Disabling database instances

SQL> shutdown immediate

SQL> exit

$ Emctl stop dbconsole

$ Lsnrctl stop

# Compile ins_rdbms.mk

[Oracle @ oracle ~] $ Cd $ ORACLE_HOME/rdbms/lib/

[Oracle @ oracle lib] $ make-f ins_rdbms.mkdv_off

/Usr/bin/ar d/U01/app/oracle/product/11.2.3/db_1/rdbms/lib/libknlopt. a kzvidv. o

/Usr/bin/ar cr/U01/app/oracle/product/11.2.3/db_1/rdbms/lib/libknlopt. a/U01/app/oracle/product/11.2.3/db_1/rdbms/lib/kzvnewcastle. o

[Oracle @ oracle lib] $

# Execute relink

[Oracle @ oracle lib] $ cd $ ORACLE_HOME/bin

[Oracle @ oracle bin] $ relink all

Writing relink log to:/U01/app/oracle/product/11.2.3/db_1/install/relink. log

[Oracle @ oracle bin] $

# Start a database instance

$ Sqlplus/as sysdba

SQL> startup

# Check the Oracle DatabaseVault status

SQL> SELECT * FROM V $ OPTION WHERE PARAMETER = 'oracle Database Vault ';

PARAMETER VALUE

----------------------------------------

Oracle Database Vault FALSE

SQL>

[References]

Close/enable Oracle Database Vault:

Http://docs.oracle.com/cd/B28359_01/server.111/b31222/dvdisabl.htm#DVADM70984

Install Oracle Database Vault:

Http://www.stanford.edu/dept/itss/docs/oracle/10gR2/install.102/b32496/upgrd.htm

What is Oralce Database Vault:

OracleDatabase Vault helps users solve existing extremely difficult security problems, that is, to prevent internal threats, meet compliance requirements, and implement division of duties. Oracle Database Vault prevents DBAs from viewing application data, solving the most worrying issues that must protect sensitive business information or private data involving partners, employees, and customers. Oracle Database Vault prevents high-Permission application DBAs from accessing other applications and executing tasks beyond their permissions. Oracle Database Vault can easily and quickly protect existing applications without affecting the functions of applications.

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.