Condition: In the same version of the operating system, copying a database involves copying software and database files as follows:1. Package files in the Oracle Installation Directory of the source database:Js_znjh_1./app/oracle $ tar cvf
1: Enter slqplus sytem/password as sysdba In the Ubuntu terminal to report the following error:
ORA-01031: insufficient privileges, found on google
ORA-01031: insufficient privilegesAfter the Oracle installation is complete, the system has an
1. Stop database-related processesStop the database on two machines respectivelySqlplus "/as sysdba ";SQL> shutdown immediateLsnrctl stop
Read: EXP-00056 error reported when exporting data after Oracle10201 RAC upgrade to 10204
You can also use the
For large databases, Oracle occupies a very large disk space, master the database users and tables that occupy a lot of disk space to kill, and increase the situation, you can easily maintain and expand the disk system in the future.
The usage of
Set an auto-increment primary key for a table in the project today
Mysql> alter table 'users' CHANGE 'id''' id' INT (11) not null AUTO_INCREMENT;
ERROR 1062 (23000): Duplicate entry '1' for key 1
The original data in the table is as follows:+ ----
1. Script and test procedure
-- 1. Create a test tableCreate table tab_default (id varchar2 (2), default_sysdate date, default_char_date varchar2 (8), default_guid varchar2 (100 ));-- 2. Add the default value ConstraintAlter table tab_default modify
Format of mysqladmin tool:
Mysqladmin [option] command [command option] command ......
Option options:
-C number indicates the number of automatic runs, which must be used with-I.
-How long is the I number interval repeated?
Check the status of the
How does navicat import SQL files?
Tools-data transmission-Files
How does navicat import SQL files?
Navicat 8,Click the one that runs the SQL file. How can I import a local SQL database file to a mysql database? How can I use Navicat for MySQL?
Mysql fastest paging method, mysql Paging
As we all know, mysql paging is written like this:
select * from 'yourtable' limit start,rows
A table in my database contains million pieces of data. The table name is tweet_data.
select count(*) from
Java. SQL. SQLException: Column count doesn't match value count at row 1
1. Error description
Java. SQL. SQLException: Column count doesn't match value count at row 1
2. Error cause
When inserting data, the number of inserted fields is
Super powerful: Use case... when... then... else... end condition query (different from where) in SQL commands and type conversion
Case... when... then... else... end is before from. You can change the value of a field in the record and cannot
1 syntax
GREATEST (expr_1, expr_2,... expr_n)2 Description
The GREATEST (expr_1, expr_2,... expr_n) function returns the maximum number from the expressions (columns, constants, and calculation values) expr_1, expr_2,... expr_n, and so on. During
In DataGuard, the data protection mode should be set as needed
In all configurations, performance is used for data security, or the data security level is used for performance.
1. Data protection modeFirst: Maximize Data ProtectionMaximum
I. The following error is reported when 10gRAC uses DBCA to reconstruct asm:The ASM instance configured on the local node is a single-instance ASM. to create a single-instance database using this ASM instance, restart DBCA and select the
A set of Oracle 11 GB is implemented in the Linux6.2 system, which may be because the operating system is not properly installed. For example, if each disk of a magnetic array cannot exceed 2 TB, the rpm requires x86_64, there are a lot of
First look at the example
Example 1: select ltrim ('caolingxiong ', 'cao') from dual;
------ The returned result is ----------
Lingxiong
This result is expected because the beginning of the first parameter is the same as that of the second
1. Automatic growth of identityApplicable to MySQL, DB2, and ms SQL Server. It uses the primary key generated by the database to generate unique identifiers for long, short, and int types.Use auto-increment fields of SQL Server and MySQL. This
Installing MySQL on Ubuntu is very simple. You only need to open the terminal and run several commands.
1. sudo apt-get install mysql-server
2. apt-get isntall mysql-client
3. sudo apt-get install libmysqlclient-dev
During the installation process,
Hardware: IBM P770
OS: AIX 5.3.1.2
DB: 9.2.0.1 (upgrade to 9.2.0.8)
Figure: XManager 3.0 and XManager 4.0
Recently, I was working on a data migration project. The installation of the Oracle 9i Database was stuck. No error was reported when I
For the heap table in Oracle, we can obtain the ROWID value of the corresponding row record through the ROWID pseudo column built in oracle (note that this ROWID is only a pseudo column, the column does not exist in the actual block ). Then we can
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