1) create a storage directoryMkdir backup2) Write a shell script #! /Bin/bashExport ORACLE_BASE =/opt/oracle -- the path must be changed according to the actual path.Export ORACLE_HOME = $ ORACLE_BASE/ora10gr2/db_1 -- the path must be changed
You can use the following SQL statement in PL/SQL to query which tables in the current database are locked and which users are locking these tables:
SELECTA. OWNER, -- user to which the OBJECT belongsA. OBJECT_NAME, -- OBJECT Name (table name)B.
The complete execution sequence of the SQL Select statement:1. The from clause assembles data from different data sources;2. The where clause filters record rows based on specified conditions;3. The group by clause divides data into multiple groups;4
Ora-32035 error reportedIf the with clause is defined and is not used in a query, A ora-32035 error is reported: the query name defined in the with clause is not referenced. (At least one with query name is not referenced. The solution is to remove
In oracle, The utl_file package provides some functions and procedures for operating text files, and learns their basic operations.1. Create a directory and authorize the userCopy codeThe Code is as follows:-- Create directoryCreate or replace
In principle, the Recycle Bin is a data dictionary table that stores information about database objects deleted by users. Objects deleted by a user are not deleted by the database and still occupy space. Unless the user Purge manually or the
Dbms_random is a random function package provided by oracle. The following describes common examples of dbms_random:Dbms_random.value usage:Generate a 38-digit decimal number greater than or equal to 0 and less than or equal to 1Copy codeThe Code is
Today, I will talk about my understanding of these two operation modes and give some feasible suggestions to improve the security of Oracle databases.I. Advantages and Disadvantages of non-archive mode. The non-archive mode is a log operation mode
During development, a cursor containing a table that does not have fields may be declared to solve special problems. This article will introduce such problems in detail. For more information, seeData. * is a table, and then the fields in other
Modifying a project involves modifying many tables in Oracle (including adding, deleting fields, and modifying comments ). As no records are recorded at the beginning, the tables that have been modified are missing during the test. Later, I found
Unlike SQL Server, Oracle uses Select to return the result set in the stored procedure, but returns the result set through Out parameters. It is actually using REF CURSORCopy codeThe Code is as follows:-- Procedure:-------------------- Declare a
Oracle cursors include display cursors and implicit cursors.Explicit Cursor: The Cursor defined in the PL/SQL program for query is called a display Cursor.Implicit Cursor: A Cursor automatically allocated by the Oracle system when UPDATE/DELETE
This article will introduce some interesting functions that trisi often uses in daily life, or which are rarely used. There are two types of introduction:Famous functions-frequently used functionsNon-famous functions-although rarely used, they are
I. oracleOracle servers include Oracle instace and Oracle databaseAn instance consists of a memory structure and a background process.Memory structure includes shared pool and SGA (System Global Area ).SGA includes Database buffer cache and Redo log
Use the dbms_random package of oracle combined with rownum. For example, 499 users are randomly selected:Select * from(Select * from busi. t_ar_userinfo order by dbms_random.value)Where rownum: References for dbms_random, link:
The SecureFile function is a completely re-designed implementation of the large object (LOB) storage format in oracle 11g. The original LOB storage format is now called BASIXFILE, and it is still the default storage method, however, the SECURFILE
Insert view conditions:1. if a view is generated based on a basic table, this is called a non-join view. All non-join views can be updated, that is, they can be performed on the view, INSERT, UPDATE, DELETE operation.2. for a connection view, follow
The ORACLE tutorial is: Modeling and Design of Oracle databases. To develop a database-based application system, the most critical step is the database modeling design on which the entire system is based. From logical to physical, the design is
The ORACLE tutorial is about Oracle Index.
Index is a common Database object. It is set to good or bad, and is used properly, which greatly affects the performance of Database applications and databases. Although there are a lot of materials about
The ORACLE tutorial is: Oracle Data Warehouse's hierarchical Manager Solution Developer Network Oracle.SummaryThis article describes the principles, steps, and restrictions of the layered manager, and combines it with Oracle Data warehouse to
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