Common oracle database operation statements

Common oracle database operation statement [SQL] ------------------ SQL statement operation and help ------------------------ -- view the help information of a command help show; -- View all system variable value information show all; www.2cto.com --

How to view the Oracle database version

Method 1: v $ versionSQL> select * from v $ version; www.2cto.com BANNER implements Oracle Database 11g Enterprise Edition Release 11.1.0.7.0-64bit Production PL/SQL Release 11.1.0.7.0-Production CORE 11.1.0.7.0 Production TNS for Linux: Version 11.1

Ddl cannot be rolled back in oracle

The issue that ddl cannot be rolled back in oracle is raised on ITPUB. In SQL Server or some other databases, DDL statements can also be rolled back. Why cannot Oracle roll back DDL statements. This problem comes from: http://www.itpub.net/thread-130

Two Methods of oracle Paging

Two Methods of oracle paging: Paging generally uses two methods: 1. Using rownum2, the analysis function row_number () over () select * from (select rownum row_num, tt. * from (select * from cgidata. nbz_act_task_tel_rela t order by t. updated_date)

Oracle LOAD batch write data

Oracle LOAD batch writes data to the production line database only has query permission. You need to import 50 million pieces of data to the R & D line under the production line. The following tips may accelerate the import speed. 1. connect to the

Oracle displays the SQL Execution history of a session

Oracle displays the SQL Execution history of a session. 1. view the worst-performing Top 100 sqlSELECT * FROM (SELECT PARSING_USER_ID EXECUTIONS, SORTS, COMMAND_TYPE, DISK_READS, SQL _text FROM v $ sqlarea ORDER BY disk_reads DESC) WHERE ROWNUM

Sorting of null values

Oracle sorting of null values: 1. Oracle determines that NULL is the maximum value by default when Order by is used, therefore, if ASC is in ascending order, it is at the end, and DESC is in descending order. 2. When the input parameter is null, use

Oracle stored procedure queries one or more records

The oracle stored procedure queries one or more records to Create a basic table -- Create tablecreate table USER_INFORMATION (P_ID NUMBER, USER_LOGIN_NAME NVARCHAR2 (30) to Create a package: create or replace package pack_test is type cur_test is

Query the locked oracle table and the process of killing the locked table

Query the oracle-locked table and the process of killing the lock table. 1. First, check that the locked table contains too many processes: SELECT substr (v $ lock. sid, 1, 4) "SID", serial #, V $ SESSION. sid, substr (username,) "UserName", substr (

Solution to the error that occurs when Oracle10g is installed and uninstalled under Win7

Solution error when installing and uninstalling Oracle10g in Win7 solution error: A 32-bit Oracle10.2.0.1.0 is installed in Win7, and you want to install a 64-bit Oracle10g. When uninstalling with the Universal Installer, an error message is

CentOS 6.3 fails to handle Oracle 11g R2 dependent database check

CentOS 6.3 fails to check the dependency library of Oracle 11g R2. When the dependent database is checked, multiple dependent databases fail to check, prompting that the dependency library is not installed, such as libaio and unixODBC. Check that

Oracle unlock user

Oracle unlock users this article is intended to solve the problem of Oracle 10 Gb user unlocking and restricted execution permissions. It is hoped that this article will help you understand Oracle10 Gb user unlocking is helpful. 1) The user is

Oracle Image Storage

An example SQL> CREATE TABLE IMAGE_LOB (2 T_ID VARCHAR2 (5) NOT NULL, 3 T_IMAGE BLOB NOT NULL 4); TABLE created. Www.2cto.com SQL> CREATE OR REPLACE DIRECTORY IMAGES AS 'C: \ Inetpub \ wwwroot'; the DIRECTORY has been created. SQL> create or replace

Connect the oracle 10g client to the oracle 9i Database

The oracle 10g client connects to the oracle 9i Database oracle10g client to connect to the oracle9i database. Net Manager Configuration profile: naming method: TNSNAMES service name: Create-next step to page 4th, select the SID (oracle8 or a lower

Oracle spatial converts Geometry to a gml string

sdo

Oracle spatial converts Geometry to the gml string oracle spatial has a function that converts geometry to gml. The function name is SDO_UTIL.TO_GMLGEOMETRY (geo ).This geo is SDO. Geometry type, but the return value of this function is Clob type

Sys_connect_by_path function usage

Sys_connect_by_path function usage the sys_connect_by_path function is used to return the value of the hierarchy until the current row. Example: www.2cto.com SQL code select * from (select ltrim (sys_connect_by_path (id, ','), ',') id, ltrim

Oracle Date Field Operations

Oracle Date Field Operations in java oracle operations, Date field is a headache, in fact, a careful study is not difficult to grasp. For example, the table book contains two fields: name varchar2 (20) // book name and buydate Date // purchase Date.

Sort by stored procedure

Create or replace procedure sort_node www.2cto.com (node_xlid in varchar2) as v_start_node varchar2 (100); v_node1 varchar2 (100); v_node2 varchar2 (100); v_count number: = 0; v_index number: = 0; type start_nodes_table is table of varchar2 (100)

Use left and right connections to solve the problem that the query is empty

Use the left and right connections to solve the problem of null query. The right connection of Oracle is www.2cto.com, and. all h1 content: select. h1, B. h2 from a, B where. h1 = B. h1 (+) Right join, B. all h2 content: select. h1, B. h2 from a, B

View data usage

View data space usage use SQL statement View data space usage [code = & quot; SQL & quot;] www.2cto.com select dbf. tablespace_name corresponds to the tablespace, dbf. totalspace & quot; Total (M) & quot;, dbf. total totalblocks as blocks, dfs.

Total Pages: 2147 1 .... 1879 1880 1881 1882 1883 .... 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.