The usage of DBMS_ SQL in ORACLE is applicable to select operations. If dynamic SQL statements are used, perform the following steps: open cursor ---> parse ---> define column ---> excute ---> fetch rows ---> close cursor; perform the following
Oracle recursive statement Start with... Connect By clause recursive query is generally used for a table to maintain a tree structure. CREATE example TABLE: create table TBL_TEST (id number, NAME VARCHAR2 (100 BYTE), pid number default 0);
Oracle 11gR2 on CentOS to create a database 1. tmpfs configuration tmpfs is half of the memory by default. If only Oracle is installed on CentOS for database server usage, you want to set Oracle AMM to use 80% ~ 90% of memory, must be set to large
ORA-01480: trailing null missing from STR bind value problem [problem] Using PL/SQL to change data, the field in the table is varchar2 (4000 ), when you modify a data in a table, use for update directly to make a data change. The length of the data
Oracle array type the array type of Oracle. Example: SQL code create or replace function my_test (p_str varchar2) return number as -- Common variable v_var varchar2 (1000 ); -- fixed length array type v_ar is varray (10) of varchar2 (30); my_ar v_ar:
The difference between user_tab_columns and user_tab_cols in oracle depends on the oracle metadata create or replace view sys. user_tab_columns asselect TABLE_NAME, COLUMN_NAME, DATA_TYPE, direction, direction, DATA_LENGTH, DATA_PRECISION,
Oracle cold backup operation manual 1 There are three standard backup and recovery modes for Oracle cold backup: Backup Recovery (physical) and Import/Export (logical ), backup recovery can be divided into non-archive mode (Nonarchivelog-style) and
The Truncate and Delete statements in Oracle are described first. The truncate command: www.2cto.com Syntax: truncate table; The data in the table is cleared, and the storage space is released. After the task is run, the task is automatically
Oracle changes database character set encoding UTF8 first: connect sys/orcl as sysdba; www.2cto.com shutdown immediate; startup mount; alter session set SQL _trace = true; alter system enable restricted session; alter system set job_queue_processes =
Dynamic listening: When an ORACLE instance is started, or the command alter system register is used, or every minute, the PMON process dynamically registers with the listener. the instance_name and service_names parameters in ora dynamically
Oracle uses months_between (ddd. s_date, S. VALID_BEGIN_DATE) to calculate the difference of the month. The result is a decimal value. Www.2cto.com SQL code SELECT P. PILOT_ID basicInfoId, P. CLERK_CODE clerkCode, P. PILOT_NAME pilotName, S.
In Linux, a raw device is used to create an oracle tablespace. Today, a test is performed to create a tablespace in linux: 1. create logical volume: run # lvcreate-L 100 M-n vg30 vg02. bind the logical volume to the bare device as the root user:
Oracle TYPE OBJECT ========================= recently I learned advanced PL/SQL programming by myself, learn about object type ). Www.2cto.com specifically searched for the 10g official documentation, which is not based on: ==========================
ORACLE Database Data File Location migration 1. there are two ways to move a data file www.2cto.com to move a data file: 1. Move SQL> select name from v $ datafile; ------ 2. shut down Database SQL> shutdown immediate Database closed. database
Uninstalling an Oracle database is not as simple as deleting other software. Especially for new employees, when the database is deleted and re-installed, it is often re-installed, some inexplicable errors will be reported, or the installation will
Exp + parfile export the qualified record exp parfile = d:/test. par file = d:/back. dmp filesize = 2000 M log = d :/**. the purpose of logfilesize is to prevent some operating systems from supporting files larger than 2 GB, and the I/O performance
When analyzing the event enq TX row lock contention Analysis in the Oracle database performance report AWRRPT, it is found that the top 5 tasks waiting for the event first are enq: TX-row lock contention. Www.2cto.com Rpt code Top 5 Timed Events
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