Detailed introduction to the use of various control statements in Oracle databases

Oracle DatabaseVariousControl statementThe usage is what we will introduce in this article, including some logical control statements, the use of Case when, the use of While, and the use of, next we will introduce this part one by one, hoping to

Solutions to ora-12154 problems connecting to Oracle virtual machines

ConnectionOracle Virtual MachineAppearsOra-12154The knowledge about the solution to the problem is what we will introduce in this article. Speaking of ora-12154 problems, there are a lot of solutions online, the reasons are basically unified: tns or

Oracle recovery experiment (III)

Environment: Oracle10g, Red Hat 4, Oracle running in archive mode. Scenario: Restore unbacked data files. Procedure:1. Create a tablespace testts, create a table, and insert some data.SQL> create tablespace testts datafile

Common performance problems in Oracle databases

Through the following Oracle performance tuning method, you should be able to avoid these problems. If you encounter these problems, repeat the Oracle Performance Tuning steps mentioned above, or read appropriate chapters to solve these

Oracle comment on usage

In oracle, the comment on command is used to describe tables or fields. The syntax is as follows:COMMENT ON{TABLE [schema.]{Table | view}| COLUMN [schema.]{Table. | view. | materialized_view.} column| OPERATOR [schema.] operator| INDEXTYPE [schema.]

Oracle Learning and Development of PLSQL subprograms and packages

You can use exec or call to call a stored procedure.Use var when defining variables, for example, var username varchar2 (20 );When calling a variable, double quotation marks must be added before the variable name, for example, exec: username: =

Oracle changes a common table to a partitioned table

  Oracle normal tables cannot be directly converted to partitioned tables by modifying attributes. They must be transformed through reconstruction. The following describes three efficient methods and their respective features.   Method 1: use the

NULL and empty strings in Oracle (it's easy to confuse people)

  In Oracle, a keyword is NULL, indicating that a value is unknown and uncertain. Since it is unknown, there are several possibilities. Therefore, NULL is not a definite value. Let's take a look at two examples: Example 1: Declare V_b1 boolean: =

Four loops in Oracle (GOTO, For, While, Loop)

Four loops in Oracle (GOTO, For, While, Loop) [SQL] DECLARE x number; BEGIN x: = 9; -- cyclic point x: = X-1; DBMS_OUTPUT.PUT_LINE (X); IF X> 0 THEN GOTO repeat_loop; -- when the value of x is less than 9, go to repeat_loop end if; END;/FOR Loop

Oracle Control File Operations

Oracle Control File OperationsThe control file is the link connecting the instance and database. The structure information of the database is recorded. The control file is a binary file. The status of the current database is recorded. There can be

Oracle tablespace (view path, modify, create)

Oracle tablespace (view path, modify, create) 1 view tablespace path select * from dba_data_files;  2. Modify the tablespace size. ALTER TABLESPACE MAXDATA ADD DATAFILE '/oradata/XX/MAXDATA02.DBF' SIZE 1000M;   [SQL] can be viewed through PL/SQL. 1.

Add Oracle temp tablespace In the Aix System (bare device Mode)

Add the Oracle temp tablespace (raw device mode) in the Aix system to query the usage of the temporary tablespace: SELECT D.TABLESPACE_NAME,SPACE "SUM_SPACE(M)",BLOCKS SUM_BLOCKS,USED_SPACE "USED_SPACE(M)",ROUND(NVL(USED_SPACE,0)/SPACE*100,2)

The oracle SQL statement reads data from this month and month.

The oracle SQL statement reads data from this month and month. [SQL] -- from Monday to Sunday in China is from Sunday to Saturday select to_char (sysdate-1, 'D') from dual; -- Take the day of the week in China minus one week in foreign countries --

Migrate ORACLE11G test data files to other disk groups

Migrate the ORACLE11G test data file to another disk group and log on to the oracle instance to migrate the data file in the users tablespace from the DATA1 disk group to the DATA2 disk group. [Oracle @ IDM ~] $ Sqlplus/as sysdbaSQL * Plus: Release 1

Oracle FAQ (2)

Oracle Q & A (2) Oracle Q & A (1) http://www.bkjia.com/database/201309/242497.html 11. What is the use of nvl functions? NVL (string1, replace_with) function: If string1 is NULL, The NVL function returns the value of replace_with; otherwise, the

Demo of using catalog backup for rman

The demo of rman using catalog backup shows how to use catalog for RMAN backup and how to cancel the Backup Using catalog. Step 1: Create the rman catalog tablespace and users. [Oracle @ oel-01 ~] $ Sqlplus/as sysdbaSQL> create tablespace catalog1

RMAN multiple backup scripts

1. Introduction to related parameters: the command line parameter description TARGET is a connection string defined by the TARGET database. when connected to a TARGET database, it is a continuous SYSDBA connection. This user has the right to start

PL/SQL remote database connection exception handling

PL/SQL remote database connection exception handling1. An error occurred while parsing the specified connection identifier. Solution: configure the TNS_ADMIN environment variable with the variable value tnsnames. ora path 2 · I/O error 123 solution:

Explanation of Oracle Direct NFS network traffic test (1)

In terms of databases, NFS can also be applied. Today we will focus on Oracle Direct NFS. In this article, we have explained in detail the test process and specific configuration methods, and hope to help you. Then, we tested the Oracle Direct NFS

Install RHEL5.5 + Oracle 11g in VirtualBox

In a new environment, the company needs to install RHEL (Red Hat EnterPrise Linux, the same below) 5.5 64-bit and Oracle 11g 64-bit in a virtual machine environment, so it has been tossing for three days, the pain, only the person who knows. Here,

Total Pages: 2147 1 .... 1683 1684 1685 1686 1687 .... 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.