Insert into table (testcol) values ('')
The testcol field has been designed as not null during design, but we need to know that in SQL Server, null and space are different, that is, the preceding statement inserts an empty field, but is not null.
The solution is as follows:
1-from the command prompt, stop ISQLPLUS: C: \> isqlplusctl stop
2-assuming that you install Oracle under C drive, run the following comands:
C: \> set ORACLE_HOME = c: \ oracle \ product \ 10.2.0 \ db_1
C: \> set
As we all know, in 32-bit operating systems such as Win2k, the memory that the operating system can manage is 4 GB (Power (2, 32) = 4 GB), and the total memory used by Oracle is limited to 2 GB. Currently, most information systems can provide
/*
Decode Function
*/
--
The prototype of the decode function is decode (testvalue, if1, then1, if2, then2.... else ).
--
Test testvalue. If testvalue is set to if1, then1 is returned. If testvalue is set to if2, then2,... is
We all know that before 9i, It is very troublesome to obtain statements for creating tables and indexes. We can use export with rows = No, but its output cannot be used directly due to format issues. Another method is to write complex scripts to
How can we insert the data obtained in Table A into another table B?
(1) For tables A and B with the same structure [number of fields, type of corresponding fields, etc.], you can use
Insert into B select * From;
Insert into B (field1, field2
Go to sqlplus
SQL> set timing on
SQL>
SQL> select count (*) from comm_human_role;
Count (*)
----------
866
Elapsed: 00:00:00. 05
The preceding digital outputs are: Hours: Minutes: seconds. milliseconds.
It takes 0.05 seconds to execute,
Directory
Check whether the oracle database is in archive Mode
What is Oracle archive mode?
Configure the database archive Mode
Check whether the oracle database is in archive Mode
[1]
1. select name, log_
About Non-equal signs in Oracle:In Oracle,
<>
! =
~ =
^ =
They all mean no. Can be used.
But it's strange. When I want to take out products whose price is not 180000: (price is Number type)
SELECT id, name FROM product where price <> 180000;
When
Method 1: use SQL * LoaderThis is a lot of methods, as long as the target table already exists in oracle Data. The general steps are as follows:1. Compare the excelfile with a new file. For example, the file name is text.txt. Select a text file for
During the past two weeks, I have been busy with the migration of databases. When I did not do it, I felt it was very easy, but I was dumpfounded when I did it. This tangle,
Here we will first talk about the problem:1. Database Table Structure
Before Oracle9i, Chinese characters were sorted by binary encoding. The sorting by pinyin, radical, and stroke function is added to oracle9i.1. Set the NLS_SORT parameter value SCHINESE_RADICAL_M is sorted by Ministry (First Order), strokes (Second
Copy codeThe Code is as follows: using System;
Using System. Collections;
Using System. Collections. Specialized;
Using System. Data;
Using System. Data. OracleClient;
Using System. Configuration;
Using System. Data. Common;
Using System.
SQL1:
Copy codeThe Code is as follows: -- 1. view the table space name and size.
SELECT t. tablespace_name, round (SUM (bytes/(1024*1024), 0) ts_size
FROM dba_tablespaces t, dba_data_files d
WHERE t. tablespace_name = d. tablespace_name
Group by t.
Sometimes it is unclear that all the values allowed for some parameters can be obtained by the following two methods:
1. directly enter the error value and let the error prompt
Copy codeThe Code is as follows: SQL> alter system set "_
Connect to Idle Instance
Step 1
View Oracle_SID.
[Oracle @ linuxserver ~] $ Echo $ ORACLE_SID
Cjdl
The SID here must be the same as that in the initialization file spfilecjdl. ora.
[Oracle @ linuxserver ~] $ Cd $ ORACLE_HOME
[Oracle @
The following error is always reported when you manually configure the EM of Oracle11g:
WARNING: ORA-00001: uniqueconstraint (SYSMAN. PARAMETERS_PRIMARY_KEY) violated
ORA-06512: at "SYSMAN. EMD_LOADER", line4986
ORA-06512: atline1.
No solution was
As a DBA, one of the common scenarios is:
Create a tablespace:
Copy codeThe Code is as follows: createtablespaceThink
Datafile '/u01/app/oracle/oradata/orcl/think. dbf'
Role Switching between Data Guard master and slave databases is divided into the following two types:1) SwitchoverSwithchover is generally designed to switch roles, such as upgrading. It is usually lossless, that is, there will be no data loss.Its
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