1. Set up Database automatic backup control files, spfile files
2. Every Sunday to do Rman 0-level full-Library backup
3. Daily (excluding Sunday) do Rman 1-level incremental backup
4. Keep a full library backup, incremental backup within one
The concept of a sequence:
A sequence is a database object that can be used to generate a unique integer.
The main code value is generated automatically by using a sequence. The value of a sequence is automatically generated by a special Oracle
In an Oracle database, creating an index is relatively straightforward. However, it is more difficult to create indexes reasonably. The author believes that when creating an index, it is three appropriate to create an appropriate number of indexes
In Oracle databases, a set of default user operating environments is provided. The number of rows fetched from the database once, such as when a user queries, the separator between columns, the maximum width per line, the number of rows by default
In order to do this experiment I first create a user, user name: 111 Password: 111
Sql> create user identified by 111;
User created.
Sql> Grant connect to 111;
Grant succeeded.
Test on the client link
$ sqlplus 111/111
Sql> select Sysdate
There is a problem that has been puzzling for a long time, in case of a failure when upgrading CRS. The RAC is a joke that can't be easily opened.
This test is done on the Linux platform, and the production library operations need to be cautious.
1
--The syntax is as followsMerge into QCFANG.BBB b using (SELECT * from QCFANG.AAA) aOn (b.a_id=a.a_id)When matched thenUpdate setB.a_name=a.a_name, B.a_sex = a.a_sex, B.a_type = A.a_type,b.a_salary = A.a_salaryWhen not matched
--View the Locked object
Select A.session_id,a.object_id,a.oracle_username,b.object_type,b.object_name from V$locked_object a,all_objects b
where a.object_id = b.object_id;
--Unlocking method
1 Find SID, serial#
Select c.sid,c.serial# from
First, modify the password:
Alter user test_user identified by password;
Second, modify the user default table space:
Alter user Test_user default tablespace users;
Third, modify user temporary table space:
Alter user Test_user Temporary
Parallel DML operations should be noted for 2 points:
1), display in session execution: Alter sessions enable parallel DML;
2, for Delete, Update, merge operation, only the object is the partition table, Oracle will enable parallel operation;
3),
Parameter files are settings that are used to configure the database. such as the location of the control file (control_files), the size of the data block (db_block_size), buffer cache size (db_cache_size), and other information
1. Oracle parameter
List of common commands summary memo
The list command lists the control files and the backup information in the Rman recovery directory, which is one of the most intuitive ways to understand all of the visible database backup files.
List
1, open the console, select the resource-jdbc provider on the left-new, select a driver in the Drop-down list, I want to configure the Oracle connection pool, so select Oracle JDBC DRIVER, and then fill in the name and Classpath in the scene that
Oracle data can be exported to a text file using the spool buffer pool technology in Oracle.
1, enter the buffer start command in Oracle Pl/sql, and specify the file name of the output:
Spool D:\output.txt
2, enter your SQL query at the command
Oracle provides the Wrap tool to encrypt stored procedures, and in 10g this operation can already be done in the database.
Oracle's DBMS_DDL adds a wrap function that allows you to return the encrypted process:
Sql> Select Dbms_ddl.wrap (' CREATE
ASM supports not only the RAC environment, but also the single node environment.
It has always been thought that a single node ASM also needs Clusterware support, and that in this case, starting ASM needs to be configured as a RAC one node approach.
An attempt to import awr data on the test database caused a ORA-4031 error.
The error message is:
Sql> @?/rdbms/admin/awrload
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Briefly describe the Rman configure EXCLUDE for tablespace command.
Rman can use configure EXCLUDE for tablespace to set up a full library to skip some tablespaces. In general, you can use this command to skip the read-only or offline table space
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