Linux net configuration assistant

3 Configuring Oracle Database

This chapter describes how to configure Oracle Database for Oracle products. It contains the following sections:

3.1 Using Configuration Assistants as Standalone Tools

Configuration assistants are usually run during an installation session, but you can also run them in standalone mode. As with Oracle Universal Installer, you can start each of the assistants noninteractively by using a response file.

This section contains the following topics:

3.1.1 Using Oracle Net Configuration Assistant

When Oracle Net Server or Oracle Net Client is installed, Oracle Universal Installer automatically starts Oracle Net Configuration Assistant.

If you choose to perform a separate Oracle Database Client installation, then Oracle Net Configuration Assistant automatically creates a configuration that is consistent with the selections made during the installation. Oracle Universal Installer automatically runs Oracle Net Configuration Assistant to set up a net service name in the local naming file located in the $ORACLE_HOME/network/admin directory of the client installation.

After installation is complete, you can use Oracle Net Configuration Assistant to create a more detailed configuration by entering the following command:

When you use Oracle Database Configuration Assistant to create a database, it automatically updates the network configuration files to include information for the new database.

3.1.2 Using Oracle Database Upgrade Assistant

During an Oracle Database installation, you can choose to upgrade a database from an earlier release to the current release. However, if you choose not to upgrade a database during installation or if there are multiple databases that you want to upgrade, then you can run Oracle Database Upgrade Assistant after the installation.

Читайте также:  How to create shortcuts in linux

If you installed Oracle Database 11 g and chose not to upgrade the database during the installation, then you must upgrade the database before mounting it.

To start Oracle Database Upgrade Assistant, run the following command:

For information about the command-line options available with Oracle Database Upgrade Assistant, use the -help or -h command-line arguments as follows:

3.1.3 Using Oracle Database Configuration Assistant

You can use Oracle Database Configuration Assistant to:

  • Create a default or customized database
  • Configure an existing database to use Oracle products
  • Create Automatic Storage Management disk groups
  • Generate a set of shell and SQL scripts that you can inspect, modify, and run at a later time to create a database

To start Oracle Database Configuration Assistant, run the following command:

For information about the command-line options available with Oracle Database Configuration Assistant, use the -help or -h command-line arguments as follows:

3.1.4 Configuring New or Upgraded Databases

Oracle recommends that you run the utlrp.sql script after creating or upgrading a database. This script recompiles all PL/SQL modules that may be in an invalid state, including packages, procedures, and types. This is an optional step but Oracle recommends that you do it when you create the database and not at a later date.

To run the utlrp.sql script:

  1. Switch user to oracle .
  2. Use the oraenv or coraenv script to set the environment for the database on which you want to run the utlrp.sql script:
  3. Bourne, Bash, or Korn shell:
% source /usr/local/bin/coraenv

When prompted, specify the SID for the database.

3.2 Relinking Executables

You can relink the product executables manually by using the relink shell script located in the $ORACLE_HOME/bin directory. You must relink the product executables every time you apply an operating system patch or after an operating system upgrade.

Before relinking executables, you must shut down all executables that run in the Oracle home directory that you are relinking. In addition, shut down applications linked with Oracle shared libraries.

The relink script does not take any arguments.

Depending on the products that have been installed in the Oracle home directory, the relink script relinks all Oracle product executables.

«Accessing Oracle Database with SQL*Plus» in Oracle Database Installation Guide for Linux for more information on how to use the relink script with Automatic Storage Manager.

To relink product executables, run the following command:

Источник

Linux net configuration assistant

This chapter describes how to configure Oracle Database for Oracle products. It contains the following sections:

3.1 Using Configuration Assistants

Oracle Database software is supplied with configuration assistants that you can use to perform various database administration operations.

This section contains the following topics:

3.1.1 Using Oracle Net Configuration Assistant

Oracle Net Configuration Assistant enables you to configure basic network components during installation, including listener names and protocol addresses, naming methods, net service names in tnsnames.ora file, and directory server usage.

After installation is complete, you can use Oracle Net Configuration Assistant to create a more detailed configuration by entering the following command:

When you use DBCA to create a database, it automatically updates the network configuration files to include information for the new database.

3.1.2 Using Oracle Database Upgrade Assistant

Oracle Database Upgrade Assistant (DBUA) interactively guides you through a database upgrade and configures the database for the new release. DBUA automates the upgrade by performing all tasks normally performed manually. DBUA makes recommendations for configuration options such as tablespaces and the online redo log.

To start DBUA, run the following command:

For information about the command-line options available with DBUA, use the -help or -h command-line arguments. For example:

Related Topics

3.1.3 Using Oracle Database Configuration Assistant

Oracle Database Configuration Assistant (DBCA) is a graphical user interface that assists you in creating and configuring a default or customized database. It also enables you to configure an existing database to add Oracle Database features, and create Oracle Automatic Storage Management disk groups. DBCA also generates a set of shell and SQL scripts that you can inspect, modify, and run at a later time to create a database.

To start DBCA, run the following command:

For information about the command-line options available with DBCA, use the -help or -h command-line arguments. For example:

3.2 Relinking Executables

You can relink the product executables manually by using the relink shell script located in the $ORACLE_HOME/bin directory. You must relink the product executables every time you apply an operating system patch or after an operating system upgrade.

Before relinking executables, you must shut down all the relinking executables which run in the Oracle home directory. In addition, shut down applications linked with Oracle shared libraries. The relink script takes all and as_installed as arguments. If you do not specify any argument, then the all argument is considered.

Depending on the products that have been installed in the Oracle home directory, the relink script relinks all Oracle product executables.

Oracle Database Installation Guide for Linux for more information about how to use the relink script with Automatic Storage Manager

To relink the product executables, run the following command:

Источник

Оцените статью
Adblock
detector