Upgrade and migration Flashcards
Which file does the Database Upgrade Assistant (DBUA) obtain its list of databases from?
tnsnames.ora
glogin.sql
host_name.olr
sqlnet.ora
host_name.olr
tnsnames.ora
-tnsnames.ora is a configuration file in Oracle that contains network service names and their corresponding connection details.
-It is used by the Oracle client software to connect to an Oracle database.
-The file holds information such as the location of the database (hostname and port number), and the service name of the database.
-The tnsnames.ora file is typically located in the Oracle client software’s network/admin directory.
-It plays important role in connecting Oracle client software to the database.
what is glogin.sql
- glogin.sql is a file in Oracle that contains SQL commands that are executed whenever a user logs into the database.
-It allows to set up user-specific environment settings such as default date format, default number format, and default editor.
-It can also be used to define commonly used PL/SQL procedures, functions and variables.
-It is executed after login.sql and before login.sql
-It allows to customize the SQL*Plus environment for individual users
What is glogin.sql located
The file is located in the Oracle client software’s home directory, typically $ORACLE_HOME/sqlplus/admi
What is host_name.olr
host_name.olr is a file in Oracle that contains information about the performance of the Oracle database on a specific host
How is the host_name.orl created
The file is generated by Oracle’s Automatic Workload Repository (AWR) feature, which periodically collects and stores performance statistics in the database’s Automatic Workload Repository (AWR) tables.
What does the host_name.orl contani
It contains information such as statistics on database activity, resource usage, and performance metrics like wait events and SQL execution statistics
Where is the host_name.orl stored by defult
The file is stored in the $ORACLE_HOME/rdbms/log directory by default, but the location can be configured to be stored in a different location.
What is the host_name.orld used for
The file is used to diagnose performance issues and to identify the cause of performance problems
-It helps to troubleshoot performance issues and improve overall performance of the database.
How do you view the content of the host_name.orld
The content of the file can be viewed using the awrrpt.sql script which is located in $ORACLE_HOME/rdbms/admin.
Q: What is the sqlnet.ora file in Oracle?
A: The sqlnet.ora file is a configuration file in Oracle that contains settings for the SQL*Net networking protocol.
Q: What kind of information is contained in the sqlnet.ora file?
A: The sqlnet.ora file contains settings such as the location of the listener, the location of the directory service, and the protocols and services to be used for communication
Q: Where is the sqlnet.ora file typically located?
A: The sqlnet.ora file is typically located in the Oracle client software’s network/admin directory.
Q: What is the purpose of the sqlnet.ora file?
A: The purpose of the sqlnet.ora file is to configure the network communication parameters for the Oracle database, including the listener, the directory service, and the protocols and services used for communication.
Q: How does the sqlnet.ora file help in the communication between the client and the server?
A: The sqlnet.ora file contains the information that the client uses to communicate with the server, such as the location of the listener, the location of the directory service, and the protocols and services to be used for communication. These settings help the client and server to communicate with each other and establish a connection.
Which action updates a database from an earlier version to a newer version while the database remains online?
Using Oracle Golden Gate
Q: What is Oracle GoldenGate?
A: Oracle GoldenGate is a software product from Oracle that provides real-time data replication, data integration, and data migration capabilities.
Q: How does GoldenGate work?
A: GoldenGate captures changes made to a database and replicates them to another database, in real-time, using a set of pre-built or custom extract, transfer, and load (ETL) processes.
Q: What kind of use cases is Oracle GoldenGate typically used for?
A: GoldenGate can be used for a variety of use cases such as real-time data replication between databases, data integration, and data migration.
Q: How does GoldenGate differ from other data replication solutions?
A: GoldenGate is a real-time data replication solution that can replicate data at the transaction level, whereas other solutions may only replicate data at certain intervals, such as every hour or every day. Additionally, GoldenGate can replicate data across different platforms and different database versions, and can handle complex data structures and high-volume data.
Q: How does GoldenGate help in disaster recovery and high availability?
A: GoldenGate’s real-time data replication capabilities allow for the creation of a real-time disaster recovery solution. By replicating data to a secondary site, the secondary site can be used as a failover in the event of a disaster at the primary site. This allows for minimal data loss and minimal downtime.
Q: What is Oracle Universal Installer (OUI)?
A: Oracle Universal Installer (OUI) is a graphical user interface (GUI) based tool that is used to install Oracle software, such as the Oracle database, on a server.
Q: How does OUI work?
A: OUI guides the user through the installation process by providing prompts for information such as the location of the software, the type of installation, and the configuration options. Once the installation is complete, OUI creates a log file that contains information about the installation.
Q: What are the main features of OUI?
A: OUI provides a user-friendly interface that simplifies the installation process. It also provides the ability to install multiple products and options at the same time, and the ability to install and configure the software in silent mode. Additionally, it allows for easy management of multiple Oracle homes, and provide a rollback feature if something goes wrong during the installation process.
Q: What are the advantages of using OUI?
OUI is easy to use and provides a consistent installation process across different platforms. It also allows for the installation of multiple products and options at the same time, and provides the ability to install and configure the software in silent mode. Additionally, it allows for easy management of multiple Oracle homes, and provides a rollback feature if something goes wrong during the installation process.
Q: How OUI differ from other Oracle installer ?
A: OUI is a graphical user interface (GUI) based tool that is used to install Oracle software, whereas other Oracle installers may be command-line based. Additionally, OUI provides a consistent installation process across different platforms and allows for the installation of multiple products and options at the same time. OUI also provide the ability to install and configure the software in silent mode, and allows for easy management of multiple Oracle homes.
Q: What is a manual upgrade in Oracle?
A: A manual upgrade in Oracle refers to the process of upgrading the database manually, step-by-step, by following the instructions in the Oracle upgrade documentation. This process typically involves shutting down the database, running the upgrade scripts, and then starting the database back up again.
Q: What is a parallel upgrade in Oracle?
A: A parallel upgrade in Oracle refers to the process of upgrading the database while it is still running. This is achieved by creating a new Oracle home and upgrading the software in the new home while the old home is still in use. Once the upgrade is complete, the database is switched over to the new home
Q: What are the main differences between manual and parallel upgrades in Oracle?
A: The main difference between manual and parallel upgrades is the amount of downtime required. A manual upgrade typically requires the database to be shut down and will result in more downtime than a parallel upgrade. A parallel upgrade allows the database to continue running during the upgrade process and results in less downtime.
Q: What are the advantages of a parallel upgrade over a manual upgrade in Oracle?
A: The main advantage of a parallel upgrade is that it reduces the amount of downtime required for the upgrade. Additionally, parallel upgrades allow for testing the upgraded software before switching over to it, which can help to identify any potential issues before they occur.
Q: When should you use manual upgrade over parallel upgrade and vice versa?
A: A manual upgrade is appropriate when the database is not critical and you can afford downtime. Parallel upgrades are suitable for mission-critical databases where downtime is not acceptable. Additionally, when the database version is too old, parallel upgrade may not be supported and manual upgrade is the only option available.
Which data pump parameter can an administrator use to perform a metadata-only export?
CONTENT
Q: What is Oracle Data Pump?
A: Oracle Data Pump is a command-line tool for exporting and importing data in the Oracle database. It is used to transfer large amounts of data between databases, schemas, and tables.
Q: How does Oracle Data Pump work?
A: Oracle Data Pump uses a set of SQL commands and a command-line utility called “expdp” and “impdp” to export and import data, respectively. It exports data from the source database into a binary file called a dump file, which can then be imported into the target database. The dump file contains the data, as well as all necessary information to recreate the objects and their dependencies in the target database.
Q: What are the main features of Oracle Data Pump?
A: Oracle Data Pump allows for exporting and importing data at the table, schema, or database level. It also provides the ability to export and import specific data using filters and provides the ability to compress the dump file. Additionally, it allows for the export and import of metadata and data across different platforms, and provides the ability to perform parallel exports and imports
Q: What are the advantages of using Oracle Data Pump?
A: Oracle Data Pump provides a fast and efficient way to transfer large amounts of data between databases. It also allows for the export and import of specific data using filters, and provides the ability to compress the dump file. Additionally, it allows for the export and import of metadata and data across different platforms, and provides the ability to perform parallel exports and imports.
Q: How does Oracle Data Pump differ from other data transfer methods?
A: Oracle Data Pump is specifically designed for use with the Oracle database, whereas other data transfer methods may not be. Additionally, Oracle Data Pump provides the ability to export and import specific data using filters and provides the ability to compress the dump file. It also allows for the export and import of metadata and data across different platforms and provides the ability to perform parallel exports and imports.
Q: What is Oracle Data Pump?
A: Oracle Data Pump is a feature in Oracle Database that allows you to move data and metadata from one database to another.
Q: What is the CONTENT parameter used for in Oracle Data Pump?
A: The CONTENT parameter is used to specify the type of data that should be exported or imported.
Q: What are the options for the CONTENT parameter?
A: The options for the CONTENT parameter include: ALL, DATA_ONLY, and METADATA_ONLY
Q: What does the ALL option for the CONTENT parameter do?
A: The ALL option exports all database data and metadata.
Q: What does the DATA_ONLY option for the CONTENT parameter do?
A: The DATA_ONLY option exports only data, not metadata.
Q: What does the METADATA_ONLY option for the CONTENT parameter do?
A: The METADATA_ONLY option exports only metadata, not data.
Q: If I want to move all data and metadata from one database to another, which CONTENT option should I use?
A: If you want to move all data and metadata, you should use the ALL option for the CONTENT parameter.
Q: What is the purpose of the SCHEMAS parameter in Oracle Data Pump?
A: The SCHEMAS parameter is used to specify which schemas should be exported or imported.
Q: How can I specify which schemas to export or import using the SCHEMAS parameter?
A: You can specify one or more schemas to export or import by listing them in the SCHEMAS parameter, separated by commas.
Q: Can I use wildcard characters in the SCHEMAS parameter?
A: Yes, you can use wildcard characters in the SCHEMAS parameter to specify a group of schemas to export or import.
Q: What happens if I don’t specify any schemas in the SCHEMAS parameter?
A: If you don’t specify any schemas in the SCHEMAS parameter, Data Pump will export or import all schemas in the database.
Q: Can I export or import a single table from a schema using the SCHEMAS parameter?
A: No, the SCHEMAS parameter only allows you to specify entire schemas to export or import. If you want to export or import a single table, you can use the TABLES parameter instead.
Q: Is it possible to exclude certain schemas while exporting or importing data?
A: Yes, it is possible to exclude certain schemas while exporting or importing data, you can use the EXCLUDE parameter and specify the schemas that you want to exclude.
Q: What is the purpose of the INCLUDE parameter in Oracle Data Pump?
A: The INCLUDE parameter is used to specify which specific objects you want to include in the export or import operation.
Q: What types of objects can be specified with the INCLUDE parameter?
A: The INCLUDE parameter can be used to include specific tables, views, procedures, functions, packages, triggers, and other database objects.
Q: How can I specify which objects to include using the INCLUDE parameter?
A: You can specify one or more objects to include by listing them in the INCLUDE parameter, separated by commas.
Q: What happens if I don’t specify any objects in the INCLUDE parameter?
A: If you don’t specify any objects in the INCLUDE parameter, all objects in the specified schemas will be exported or imported.
Q: Can I use wildcard characters in the INCLUDE parameter?
A: Yes, you can use wildcard characters in the INCLUDE parameter to specify a group of similar objects to includ
Q: Can I use the INCLUDE parameter together with the SCHEMAS parameter?
A: Yes, you can use the INCLUDE parameter together with the SCHEMAS parameter to specify both which schemas to include and which objects within those schemas to include.
Q: Can I use the INCLUDE parameter together with the EXCLUDE parameter?
A: Yes, you can use the INCLUDE parameter together with the EXCLUDE parameter to specify both which objects to include and which objects to exclude.
Q: What is the purpose of the ATTACH parameter in Oracle Data Pump?
A: The ATTACH parameter is used to specify whether the import should be attached to a running Data Pump job or not.
Q: What are the options for the ATTACH parameter?
A: The options for the ATTACH parameter are YES and NO.
Q: What happens when I set the ATTACH parameter to YES?
A: If you set the ATTACH parameter to YES, the import process will be attached to a running Data Pump export job. This means that the import will use the metadata and data files created by the export job.
Q: What happens when I set the ATTACH parameter to NO?
A: If you set the ATTACH parameter to NO, the import process will create its own metadata and data files, separate from any running export job.
Q: When should I use the ATTACH parameter?
A: You should use the ATTACH parameter when you want to import data that was exported using a running Data Pump export job and you want to use the metadata and data files created by that job.
Q: Can I use the ATTACH parameter if I didn’t use it while exporting?
A: No, the ATTACH parameter is only applicable when you are importing data that was exported using a running Data Pump export job. If you didn’t use the ATTACH parameter while exporting, it can’t be used for importing the data.
Which method allows any Oracle release to be migrated to Oracle 12c?
Export and Import
What is Oracle Release
It is what they name the next version.
Q: What is a Transportable Tablespace?
A: A Transportable Tablespace is a feature in Oracle that allows you to move a tablespace from one database to another, without having to export and import the data.
Q: How does Transportable Tablespace work?
A: Transportable Tablespace works by copying the datafiles of a tablespace from one database and moving them to another database. The metadata for the tablespace is also exported and imported, so that the tablespace can be used in the new database.