Distributed DBA: SQL stored procedure knowledge Summary (1)

DB2 stored procedure: Basic knowledge When you classify remote servers and databases on the server on the client workstation, a simple DB2 client/server environment exists. In this environment, each time an SQL statement is executed on the database

SQL Server triggers

Code for trigger Creation Create Trigger TG_ProjectNameOn table1After UpdateAsUpdate table2Set [project name] = B. Project NameFrom table2 a, inserted BWhere a. ProjID = B. ID Description of Inserted and Deleted in the trigger. Two

Some suggestions for setting search values in the WHERE statement

In database design and management, the WHERE clause is undoubtedly one of the most frequently used clauses. So are you really good at using this clause? I can't see it. The following suggestions can help you make full use of the WHERE clause

Compatibility between PostgreSQL and InnoDB multi-version Concurrency Control

Multi-version concurrency control technology has become the trend of database development in the future. Currently, multi-version concurrency control is adopted by many database or storage engines, such as Oracle, ms SQL Server 2005 +, PostgreSQL,

EXPLAIN the EXPLAIN commands in MySQL

Explain shows how mysql uses indexes to process select statements and connect tables. It can help you select better indexes and write more optimized query statements. You can add the explain statement before the select statement: For example:

An error occurred while using the attach function in SQL and Its Solution

Today, I used the attach function of SQL Server 2008 to attach a database. A problem occurred. The error message is: Unable to open physical file "D:\Documents\Dalt\XXXX.mdf" Operating system error 5: "5(error not found)" (Microsoft SQL Server: 

Five Aspects of Oracle

The new version can bring more efficient technology to the software. Now we can forget five aspects of the Oracle database. 1. only DBA can restore Data People who work directly with SQL database-DBAs and IT information personnel can cause database

Implementation of connecting SQL Server to Oracle Server

This article uses SQL Server 2 K as an example to illustrate the specific implementation process of connecting SQL Server to the Oracle Server. 1. Install the oralce client software and sqlserver2000 software on the PC. 2. Configure the tnsnames.

The stored procedure is automatically executed when SQL Server is started.

How to execute a stored procedure when starting SQL SERVER? Create the stored procedure in the master database, and then find the stored procedure in the Enterprise Manager. Right-click the stored procedure and choose Properties. Select "execute

Experience in ORACLE Database Management on Unix platforms

This article is a set of effective systems summarized by the author in years of ORACLE Database management work. It greatly improves the work efficiency, so as to predict the potential risks of the database in advance and eliminate them as soon as

Successfully transplanted Oracle 8i data to Oracle 10 GB

I. porting process records Basic information: two minicomputers, one sun250, with solaris8 + oracle8i, jgsun, ip 10.11.1.11, running, with application connection, and one with sunv890, it is installed with Solaris9 + Oracle10g, The Machine name is

How to import additional fields as null values in Oracle

We transplanted our Oracle database to the new environment. Some customer tables exist in two databases at the same time, but those tables in the new environment have some additional fields. Can you help me use the import/export tool? In this way, I

View post-relational databases from cchiné

Relational databases represent data as a simple two-dimensional model, that is, records represented as rows and columns for storage and processing. Relational databases were generated earlier, but they are only suitable for the storage and

Linux system high-load MySQL database thoroughly optimized (1)

At the same time, the increase in the number of online traffic is obviously difficult for servers with 1 GB of memory. In severe cases, even the server crashes every day or gets stuck from time to time. This problem has plagued me for more than half

How to solve loose relationships in SQL

If you have some creative thinking on some special business issues, you will often design solutions in SQL. For example, the company can select one of the following two methods to make the requested fee consistent with the paid fee. The first method

Introduction to Oracle 10 Gb AWR performance optimization tools

AWR (Automatic Workload Repository) is a new tool provided by Oracle 10 Gb to collect database statistics. It mainly includes the AWR memory area, historical data storage files, ASH and other components. The main content of the AWR report includes

Easily modify the size of an Oracle database table

In actual Oracle applications, many people may encounter such problems. For performance or other considerations, you need to change the tablespace of a table or all tables of a user. The common practice is to first Delete the table and then

Step 3: manually expand the Oracle database tablespace

1. First, check the name and file of the tablespace. select tablespace_name, file_id, file_name,round(bytes/(1024*1024),0) total_spacefrom dba_data_filesorder by tablespace_name; 2. Add data files alter tablespace users

Simple Method for reading XML files in SQL Server

SQL Server 2000 makes it easier to export data in XML, but it is troublesome to import and process XML data in SQL Server 2000. If you refer to Books Online (BOL), you will find related entries, including OPENXML and OPENROWSET. All of these

A simple view on Oracle concurrent processing mechanism

During Oracle development, If you test your application independently, deploy the application, and submit it to dozens of concurrent users, it is very likely that the concurrency problems that were not previously detected will suffer. For example,

Total Pages: 1013 1 .... 425 426 427 428 429 .... 1013 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.