0. Preparations-- Create the transferred tablespaceSQL> create tablespace tbs_singleDatafile 'C: \ Oracle \ oradata \ ora9i \ tbs_single01.dbf' size 100 MExtent management local;-- Create a user and use the tablespace as the default tablespaceSQL>
// The extract () function in Oracle is introduced from oracle 9i to extract specific parts from a date or interval Type// Syntax:EXTRACT ({YEAR | MONTH | DAY | HOUR | MINUTE | SECOND}| {TIMEZONE_HOUR | TIMEZONE_MINUTE}| {TIMEZONE_REGION |
A friend configures the DG of the master database and the physical slave database. After the configuration is complete, he finds that there is a slave database which cannot receive the archive logs of the master database.
Logs cannot be transmitted
Oracle Import utility allows you to extract data from a database and write the data to an operating system file. The basic format used by imp: imp [username [/password [@ service]. The following describes common usage of imp.
1. Get help
Imp help =
1. view the current database log ModeSQL> select name, log_mode from v $ database; orSQL> archive log list; (This method requires as sysdba)
To archive a non-archive database, follow these steps:1. SQL> alter system set log_archive_dest_1 =
From the following experiment, we can see that the full table scan is performed to retrieve data according to the extent/block sequence. The first experiment had a 'db file scattered read' wait event, and the second experiment had loaded the data
Background_dump log:
[Oracle @ HBCADB001 trace] $ tail-f/u01/sys_software/oracle/product/11.2.0/grid/log/hbcadb001/alerthbcadb001.log
The warning Log File alert_sid.log stores routine information and error information. Its path is BDUMP.
SQL> show
Dblink is a database object that allows you to access remote tables and execute remote programs. In addition, dblink is a one-way connection. When dblink is created, Oracle records its metadata in the data dictionary.
In db link, you must consider
The developer asked me to set an Oracle 11g sga slightly larger. Therefore, follow the previous 10 Gb memory operation on oracle.[Oracle @ localhost db_1] $ sqlplus/nolog SQL * Plus: Release 11.2.0.1.0 Production on Saturday June 30 13:42:07
Move the MySQL database directory on Linux today
The configuration is as follows:
/Etc/my. cnf
[Mysqld]Datadir =/home/mysqlSocket =/var/lib/mysql. sock
The following problems occur when the configuration file is changed and MYSQL is restarted:
110222
Fault symptom
Oracle Database 11g Database common user login prompt ORA-28002: the password will expire within 7 days
[11: 01: 00oracle @ dvd db_1] $ sqlplus wang/oracle
SQL * Plus: Release 11.2.0.1.0 Production on Fri Nov 16 11:01:23 2012
Copyright
Slave processes is the background process that represents the execution of other processes.
I/O Slave Processes
I/O slave processes (Innn) simulate asynchronous I/O for systems and devices that do not support it. in asynchronous I/O, there is no
When installing the Oracle 11g Database, the password setting item is skipped. When you need to use sys and system later, the system always prompts that the password is incorrect. Here, we provide a way to reset these user passwords.
Use sqlplus to
Redis is a high-performance key-value database. Its key has a wide range of data structures: string, hash, list set, and sorted set. Compared with memcache, NOSQL not only has a rich key data structure, but also has persistence functions. It also
Error:
./Ggsci: error whileloading shared libraries: libnnz10.so: cannot open shared object file: No suchfile or directory.
Problem Analysis:
Obviously, the above error is reported because libnnz10.so of the library file is required when the./ggsci
The results returned by the recent SQL query cause a ORA-06502 error to the PL/SQL variable. The error description is ORA-06502: PL/SQL: numeric or value error: character string buffer too small. obviously, the length of the character variable
On MySQL, the index Merge function is added, and two indexes can be used for one SQL statement.
The following is an example:
Mysql> select * from t;
+ ------ +
| A | B |
+ ------ +
| 1 | 24 |
| 4 | 1 |
| 1 | 20 |
| 4 | 26 |
| 5 | 10 |
| 4
References.
Alter system set log_archive_dest = "location =/u01/app/Oracle/baklog" scope = spfile;
A problem occurs after execution. After the database is closed, it cannot start,
Bytes ----------------------------------------------------------------
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