Fix the last row of the MySQL cursor

When MySQL cursor is used, the last row is read repeatedly. Later, we found that we should put the read data in the next loop to avoid duplication. The Code is as follows:DELIMITER $ USE 'test' $ Drop procedure if exists 'SP _ getalltablename'

Oracle index monitoring and analysis

Dba_indexes and dba_ind_columns are required to view table index information, including the composite index script: WITH nonformat (SELECT I. index_name, I. table_name, t. column_name, t. column_position, I. uniqueness, t. table_owner FROM

The UTL_TCP package in Oracle 11g cannot be used.

After switching to Oracle11g today, when UTL_TCP was used to interact with the Service Program, an ACL Access Control Problem was reported. Fortunately, there were still some network basics, what is ACL, In the Oracle11g environment, to enhance the

How to Create DBLink in Oracle

1. To create a global DBLink, you must first confirm that you have the permission to create a dblink: Select * from user_sys_privs where privilege like upper ('% Database link %'); If not, you must use the sysdba role to grant permissions to

Oracle 10g rac em unable to monitor node status

Recently, when I was working on two sets of AIX5.3 + 10.2.0.4 RAC, I didn't find the AIX Toolbox for Linux Applications for POWER Systems CD. To make it simple, I used RSH as the remote node file copy method. After the database is installed, it is

The bare device created in AIX is the logical volume in AIX for Oracle

The bare device created in AIX is the logical volume in AIX. The creation method is as follows: Syntax: mklv-t raw-y [lvname] [vgname] [LPs] For example, when creating a bare device required by Oracle: Mklv-t raw-y lv_sysaux datavg 3 Mklv-t raw-y lv_

GROUPING functions in Oracle PL/SQL

When you use ROLLUP or CUBE for GROUP operations, fields with NULL values are generated, then, how can we tell whether the field itself is NULL or generated by ROLLUP and CUBE? In this case, GROUPING (groupingfield) can be used to solve the problem.

Oracle date calculation-INTERVAL

In addition to add_months, you can also use INTERVAL: Connected to Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 ConnectedAsXxpo SQL> SQL> SELECT to_char (SYSDATE,'Yyyy/MM/DD HH24: MI: ss') Now FROM dual; NOW ------------------

Oracle NULL IS NULL

NULLNoGreater than/less than/equal to/not equal to any value (including NULL itself), with only: NULL IS NULL SQL>SetServeroutput on SQL> SQL> BEGIN 2 IF (2> NULL) 3 THEN 4 dbms_output.put_line ('>'); 5 ELSIF (2 6 THEN 7

Oracle Study Notes: analyze various data types

According to my recent study on Oracle databases, I have learned more about Oracle and hope to help some new Oracle users. Oracle provides several simple data types, Unlike SQL server. Common Oracle data types include char, varchar2, clob, number,

Oracle PL/SQL WITH Query

Why use? 1. If you need to apply the same query multiple times in a complex query, use WITH to implement code reuse; 2. WITH query is similar to retaining the query results to the user's temporary table. IO can be reduced in large and complex

Basic Oracle tablespace operations

1.Queries the current tablespace of a database. Select tablespace_name, file_name, sum (bytes)/1024/1024 table_size from dba_data_files group by tablespace_name, file_name;   2.Create a tablespace Create tablespace data01 DATAFILE

Use of Oracle learning notes package

The use of the Oracle learning notes package can make the functions and stored procedures clearer. At the same time, you must add the package name when calling these functions and stored procedures... /** Create and use a package Syntax:

Solution to network check failure during Oracle Installation in Linux

Installing Oracle in Linux is not easy for new users. Of course, it is the same for me (for myself, I have never learned Linux ). When installing Oracle, the Oracle program will check some system configurations, and the network configuration is one

In Linux, only auto start of Oracle is configured.

Linux: RedHat Enterprise Linux 5.6 Oracle version: 10 GB 1. Modify the/etc/oratab File Set orcl:/home/oracle/product/10.2.0/db_1: N Changed to orcl:/home/oracle/product/10.2.0/db_1: Y. 2. Modify the $ ORACLE_HOME/bin/dbstart file under the oracle

Oracle control statement

Oracle control statement Logical control statements in Oracle If elsifElse EndIf SetServeroutOn; DeclarePer_dep_count number; Begin Select Count(*)IntoPer_dep_countFromEmp; If per_dep_count> 0Then

Find the most resource-consuming SQL statement in Oracle

1. Find the most resource-consuming SQL We can first use top and other tools to find the process with the best resources (remember the process number), for example, the operating system process number is 2796, And then according to this process

Uninstalling an Oracle database in Linux

Last week, a colleague encountered an error while installing Oracle in Linux. The installation was not successful. The supervisor asked me to re-install it. Only after all the previous installations are deleted can we ensure the installation is

Oracle stored procedure from scratch

1. The following describes the Oracle stored procedure! 2. Focus on the preparation, debugging, and application of stored procedures, rather than the introduction of too many syntaxes! 3. As long as you know the SQL statement, you can continue

Installing Oracle 11gR2 in RHEL6

1. Install Oracle database software1) Check basic requirements (mem: 1024 M, swap: mem *. Can be skipped)Memory sizeGrep MemTotal/proc/meminfoSwap partition sizeGrep SwapTotal/proc/meminfoAdd swap PartitionCreate a partition file such as/home/swap.

Total Pages: 1013 1 .... 870 871 872 873 874 .... 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.