Detailed differences in null processing in MS server and Oracle

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.

Oracle 10 Gb DBA login Solution

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

SQL statement used to check deadlocks in Oracle

Check the SQL statement of the deadlock 1. Select Sid, decode (Block, 0, 'No', 'yes') blocker, decode (request, 0, 'No', 'yes') WaiterFrom v $ lockWhere request> 0 or block> 0Order by block DESC; 2. Select BS. username "blocking user", BS.

[Switch] breaks through the 2 GB memory limit of Oracle for Win2k

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

Oracle decode Function Application Example

/* 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

Oracle can easily obtain DDL statements for table creation and indexing.

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

Database Data Acquisition instance in Oracle Stored Procedure

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

View the execution time and SP2-0027 errors of an SQL statement in the Oracle database

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,

Oracle archiving Mode

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_

Analysis of Non-equal signs in Oracle

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

Several ways to import data from oracle to Excel

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

In-depth summary and analysis of ORACLE migration to MYSQL

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

Detailed description of oracle sorting methods

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

Asp.net Oracle Database Access Operations

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.

Oracle queries the table space size and usage SQL statements

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.

How to obtain the possible Oracle parameter values

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 "_

Oracle Connect to Idle Instance Solution

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 @

Solution to a unique constraint error reported by oracle 11g em Reconstruction

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

Oracle zone management and segment space management

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'

[Oracle] Data Guard Analysis of Switchover and Failover

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

Total Pages: 2147 1 .... 836 837 838 839 840 .... 2147 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.